From 25a11a89e9868afe1de5a11982b78f406d992d85 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Tue, 30 Jan 2024 13:38:47 +0100 Subject: [PATCH] PHPUnit : Refactoring Tests (Use local resource) --- .env.test | 3 +- .github/workflows/php.yml | 8 +- config/services.yaml | 3 +- src/Command/ImportCommand.php | 22 +- src/Controller/HealthCheckController.php | 10 +- src/Controller/ImportController.php | 22 +- src/Controller/ReportController.php | 10 +- src/Service/ReportLister.php | 10 +- ...rtImporter.php => ReportMochaImporter.php} | 2 +- tests/Controller/ImportControllerTest.php | 27 +- tests/Controller/ReportControllerTest.php | 22 +- .../resources/reports/2024-01-30-develop.json | 350953 +++++++++++++++ .../autoupgrade_2024-01-30-develop.json | 1 + 13 files changed, 351026 insertions(+), 67 deletions(-) rename src/Service/{ReportImporter.php => ReportMochaImporter.php} (99%) create mode 100644 tests/resources/reports/2024-01-30-develop.json create mode 100644 tests/resources/reports/autoupgrade_2024-01-30-develop.json diff --git a/.env.test b/.env.test index 12fc96f3..442054f2 100644 --- a/.env.test +++ b/.env.test @@ -4,4 +4,5 @@ APP_SECRET='$ecretf0rt3st' SYMFONY_DEPRECATIONS_HELPER=999999 DATABASE_URL="mysql://root:password@127.0.0.1:3306/qanightlyresults?serverVersion=8.0.23&charset=utf8mb4" -QANB_TOKEN='AZERTY' \ No newline at end of file +QANB_TOKEN='AZERTY' +#QANB_REPORT_PATH='./tests/resources/' \ No newline at end of file diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 6f5156b1..ea51ce05 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -101,7 +101,7 @@ jobs: - name: Inject data for AutoUpgrade run: | DATE=$(date -d "1 day ago" +"%Y-%m-%d") - php bin/console nightly:import \ + php bin/console nightly:import:mocha \ -p cli \ -c autoupgrade \ --env test \ @@ -110,11 +110,13 @@ jobs: - name: Inject data for Core run: | DATE=$(date -d "1 day ago" +"%Y-%m-%d") - php bin/console nightly:import \ + php bin/console nightly:import:mocha \ -p chromium \ -c functional \ --env test \ $DATE-develop.json - name: Run phpunit - run: ./vendor/bin/phpunit \ No newline at end of file + run: ./vendor/bin/phpunit + env: + QANB_REPORT_PATH: './tests/resources/' \ No newline at end of file diff --git a/config/services.yaml b/config/services.yaml index ebd31b6b..3feb2964 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -5,6 +5,7 @@ # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration parameters: QANB_GCPURL: 'https://storage.googleapis.com/prestashop-core-nightly/' + QANB_REPORT_PATH: '%env(default:QANB_GCPURL:QANB_REPORT_PATH)%' QANB_TOKEN: '%env(QANB_TOKEN)%' services: @@ -13,7 +14,7 @@ services: autowire: true # Automatically injects dependencies in your services. autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. bind: - $nightlyGCPUrl: '%QANB_GCPURL%' + $nightlyReportPath: '%QANB_REPORT_PATH%' $nightlyToken: '%QANB_TOKEN%' # makes classes in src/ available to be used as services diff --git a/src/Command/ImportCommand.php b/src/Command/ImportCommand.php index 8f8aead3..bf1e6a8e 100644 --- a/src/Command/ImportCommand.php +++ b/src/Command/ImportCommand.php @@ -2,7 +2,7 @@ namespace App\Command; -use App\Service\ReportImporter; +use App\Service\ReportMochaImporter; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -10,27 +10,27 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -#[AsCommand(name: 'nightly:import')] +#[AsCommand(name: 'nightly:import:mocha')] class ImportCommand extends Command { - private ReportImporter $reportImporter; + private ReportMochaImporter $reportImporter; - private string $nightlyGCPUrl; + private string $nightlyReportPath; - public function __construct(ReportImporter $reportImporter, string $nightlyGCPUrl) + public function __construct(ReportMochaImporter $reportImporter, string $nightlyReportPath) { parent::__construct(); $this->reportImporter = $reportImporter; - $this->nightlyGCPUrl = $nightlyGCPUrl; + $this->nightlyReportPath = $nightlyReportPath; } protected function configure(): void { $this ->addArgument('filename', InputArgument::REQUIRED) - ->addOption('platform', 'p', InputOption::VALUE_REQUIRED, '', ReportImporter::FILTER_PLATFORMS[0], ReportImporter::FILTER_PLATFORMS) - ->addOption('campaign', 'c', InputOption::VALUE_REQUIRED, '', ReportImporter::FILTER_CAMPAIGNS[0], ReportImporter::FILTER_CAMPAIGNS) + ->addOption('platform', 'p', InputOption::VALUE_REQUIRED, '', ReportMochaImporter::FILTER_PLATFORMS[0], ReportMochaImporter::FILTER_PLATFORMS) + ->addOption('campaign', 'c', InputOption::VALUE_REQUIRED, '', ReportMochaImporter::FILTER_CAMPAIGNS[0], ReportMochaImporter::FILTER_CAMPAIGNS) ; } @@ -47,7 +47,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int return Command::FAILURE; } - $fileContent = @file_get_contents($this->nightlyGCPUrl . 'reports/' . $input->getArgument('filename')); + $fileContent = @file_get_contents($this->nightlyReportPath . 'reports/' . $input->getArgument('filename')); if (!$fileContent) { $output->writeln('Unable to retrieve content from GCP URL'); @@ -62,7 +62,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } $startDate = \DateTime::createFromFormat( - ReportImporter::FORMAT_DATE_MOCHA6, + ReportMochaImporter::FORMAT_DATE_MOCHA6, $jsonContent->stats->start ); @@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $matchesVersion[1], $startDate, $jsonContent, - ReportImporter::FORMAT_DATE_MOCHA6 + ReportMochaImporter::FORMAT_DATE_MOCHA6 ); return Command::SUCCESS; diff --git a/src/Controller/HealthCheckController.php b/src/Controller/HealthCheckController.php index c3386765..6fa9f60f 100644 --- a/src/Controller/HealthCheckController.php +++ b/src/Controller/HealthCheckController.php @@ -17,11 +17,11 @@ public function __construct(ExecutionRepository $executionRepository) } #[Route('/healthcheck', methods: ['GET'])] - public function check(string $nightlyGCPUrl): JsonResponse + public function check(string $nightlyReportPath): JsonResponse { $data = [ 'database' => true, - 'gcp' => true, + 'gcp' => false, ]; // Check database @@ -36,9 +36,9 @@ public function check(string $nightlyGCPUrl): JsonResponse } // Check GCP - $gcpCall = @file_get_contents($nightlyGCPUrl); - if (!$gcpCall) { - $data['gcp'] = false; + $gcpCall = @file_get_contents($nightlyReportPath); + if ($gcpCall || !is_dir($nightlyReportPath)) { + $data['gcp'] = true; } return $this->json($data); diff --git a/src/Controller/ImportController.php b/src/Controller/ImportController.php index be07940e..28c076cb 100644 --- a/src/Controller/ImportController.php +++ b/src/Controller/ImportController.php @@ -3,7 +3,7 @@ namespace App\Controller; use App\Repository\ExecutionRepository; -use App\Service\ReportImporter; +use App\Service\ReportMochaImporter; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; @@ -14,11 +14,11 @@ class ImportController extends AbstractController { private ExecutionRepository $executionRepository; - private ReportImporter $reportImporter; + private ReportMochaImporter $reportImporter; private string $nightlyToken; - private string $nightlyGCPUrl; + private string $nightlyReportPath; private ?string $filename; @@ -34,14 +34,14 @@ class ImportController extends AbstractController public function __construct( ExecutionRepository $executionRepository, - ReportImporter $reportImporter, + ReportMochaImporter $reportImporter, string $nightlyToken, - string $nightlyGCPUrl + string $nightlyReportPath ) { $this->executionRepository = $executionRepository; $this->reportImporter = $reportImporter; $this->nightlyToken = $nightlyToken; - $this->nightlyGCPUrl = $nightlyGCPUrl; + $this->nightlyReportPath = $nightlyReportPath; } #[Route('/hook/reports/import', methods: ['GET'])] @@ -59,7 +59,7 @@ public function importReport(Request $request): JsonResponse $this->version, $this->startDate, $this->jsonContent, - ReportImporter::FORMAT_DATE_MOCHA6 + ReportMochaImporter::FORMAT_DATE_MOCHA6 ); return new JsonResponse([ @@ -102,7 +102,7 @@ private function checkAuth(Request $request): ?JsonResponse ], Response::HTTP_BAD_REQUEST); } - $fileContent = @file_get_contents($this->nightlyGCPUrl . 'reports/' . $this->filename); + $fileContent = @file_get_contents($this->nightlyReportPath . 'reports/' . $this->filename); if (!$fileContent) { return new JsonResponse([ 'message' => 'Unable to retrieve content from GCP URL', @@ -122,12 +122,12 @@ private function checkAuth(Request $request): ?JsonResponse $this->platform = $request->query->has('platform') ? $request->query->get('platform') : ( $request->query->has('browser') ? $request->query->get('browser') : null ); - $this->platform = in_array($this->platform, ReportImporter::FILTER_PLATFORMS) ? $this->platform : ReportImporter::FILTER_PLATFORMS[0]; + $this->platform = in_array($this->platform, ReportMochaImporter::FILTER_PLATFORMS) ? $this->platform : ReportMochaImporter::FILTER_PLATFORMS[0]; $this->campaign = $request->query->has('campaign') ? $request->query->get('campaign') : null; - $this->campaign = in_array($this->campaign, ReportImporter::FILTER_CAMPAIGNS) ? $this->campaign : ReportImporter::FILTER_CAMPAIGNS[0]; + $this->campaign = in_array($this->campaign, ReportMochaImporter::FILTER_CAMPAIGNS) ? $this->campaign : ReportMochaImporter::FILTER_CAMPAIGNS[0]; - $this->startDate = \DateTime::createFromFormat(ReportImporter::FORMAT_DATE_MOCHA6, $this->jsonContent->stats->start); + $this->startDate = \DateTime::createFromFormat(ReportMochaImporter::FORMAT_DATE_MOCHA6, $this->jsonContent->stats->start); // Check if there is no similar entry if (!$force && $this->executionRepository->findOneByNightly($this->version, $this->platform, $this->campaign, $this->startDate->format('Y-m-d'))) { diff --git a/src/Controller/ReportController.php b/src/Controller/ReportController.php index 348c1660..644661ec 100644 --- a/src/Controller/ReportController.php +++ b/src/Controller/ReportController.php @@ -19,18 +19,18 @@ class ReportController extends AbstractController private ReportSuiteBuilder $reportSuiteBuilder; - private string $nightlyGCPUrl; + private string $nightlyReportPath; public function __construct( ExecutionRepository $executionRepository, ReportLister $reportLister, ReportSuiteBuilder $reportSuiteBuilder, - string $nightlyGCPUrl + string $nightlyReportPath ) { $this->executionRepository = $executionRepository; $this->reportLister = $reportLister; $this->reportSuiteBuilder = $reportSuiteBuilder; - $this->nightlyGCPUrl = $nightlyGCPUrl; + $this->nightlyReportPath = $nightlyReportPath; } #[Route('/reports', methods: ['GET'])] @@ -66,10 +66,10 @@ public function reports(Request $request): JsonResponse $date = $execution->getStartDate()->format('Y-m-d'); if (isset($reportListing[$date][$execution->getVersion()]['zip'])) { - $download = $this->nightlyGCPUrl . $reportListing[$date][$execution->getVersion()]['zip']; + $download = $this->nightlyReportPath . $reportListing[$date][$execution->getVersion()]['zip']; } if (isset($reportListing[$date][$execution->getVersion()]['xml'])) { - $xml = $this->nightlyGCPUrl . $reportListing[$date][$execution->getVersion()]['xml']; + $xml = $this->nightlyReportPath . $reportListing[$date][$execution->getVersion()]['xml']; } $reports[] = [ diff --git a/src/Service/ReportLister.php b/src/Service/ReportLister.php index 3dc439f7..2fc5cd9d 100644 --- a/src/Service/ReportLister.php +++ b/src/Service/ReportLister.php @@ -4,11 +4,11 @@ class ReportLister { - public string $url; + public string $nightlyReportPath; - public function __construct(string $nightlyGCPUrl) + public function __construct(string $nightlyReportPath) { - $this->url = $nightlyGCPUrl; + $this->nightlyReportPath = $nightlyReportPath; } /** @@ -16,8 +16,8 @@ public function __construct(string $nightlyGCPUrl) */ public function get(): array { - $return = file_get_contents($this->url); - if (!$return) { + $return = @file_get_contents($this->nightlyReportPath); + if (!$return || !is_dir($this->nightlyReportPath)) { return []; } diff --git a/src/Service/ReportImporter.php b/src/Service/ReportMochaImporter.php similarity index 99% rename from src/Service/ReportImporter.php rename to src/Service/ReportMochaImporter.php index 9f2d02fc..94feb45a 100644 --- a/src/Service/ReportImporter.php +++ b/src/Service/ReportMochaImporter.php @@ -9,7 +9,7 @@ use App\Repository\TestRepository; use Doctrine\ORM\EntityManagerInterface; -class ReportImporter +class ReportMochaImporter { public const FILTER_PLATFORMS = ['chromium', 'firefox', 'webkit', 'cli']; diff --git a/tests/Controller/ImportControllerTest.php b/tests/Controller/ImportControllerTest.php index 180e7142..284bc1cc 100644 --- a/tests/Controller/ImportControllerTest.php +++ b/tests/Controller/ImportControllerTest.php @@ -6,17 +6,12 @@ class ImportControllerTest extends WebTestCase { - private static string $date = ''; - - public static function setUpBeforeClass(): void - { - self::$date = date('Y-m-d', strtotime('today')); - } + private const DATE_RESOURCE = '2024-01-30'; public function testReportOkAutoupgrade(): void { $client = static::createClient(); - $client->request('GET', '/hook/reports/import?filename=autoupgrade_' . self::$date . '-develop.json&token=AZERTY&campaign=autoupgrade&platform=cli'); + $client->request('GET', '/hook/reports/import?filename=autoupgrade_' . self::DATE_RESOURCE . '-develop.json&token=AZERTY&campaign=autoupgrade&platform=cli'); $response = $client->getResponse(); @@ -67,7 +62,7 @@ public function testReportWithParameterToken(): void public function testReportWithParameterFilename(): void { $client = static::createClient(); - $client->request('GET', '/hook/reports/import?filename=' . self::$date . '-develop.json'); + $client->request('GET', '/hook/reports/import?filename=' . self::DATE_RESOURCE . '-develop.json'); $response = $client->getResponse(); $this->assertEquals(400, $response->getStatusCode()); @@ -83,7 +78,7 @@ public function testReportWithParameterFilename(): void public function testReportWithParameterFilenameAndBakToken(): void { $client = static::createClient(); - $client->request('GET', '/hook/reports/import?filename=' . self::$date . '-develop.json&token=BAD'); + $client->request('GET', '/hook/reports/import?filename=' . self::DATE_RESOURCE . '-develop.json&token=BAD'); $response = $client->getResponse(); $this->assertEquals(401, $response->getStatusCode()); @@ -99,7 +94,7 @@ public function testReportWithParameterFilenameAndBakToken(): void public function testReportWithNoVersionInFilename(): void { $client = static::createClient(); - $client->request('GET', '/hook/reports/import?filename=' . self::$date . '.json&token=AZERTY'); + $client->request('GET', '/hook/reports/import?filename=' . self::DATE_RESOURCE . '.json&token=AZERTY'); $response = $client->getResponse(); $this->assertEquals(400, $response->getStatusCode()); @@ -115,7 +110,7 @@ public function testReportWithNoVersionInFilename(): void public function testReportWithBadVersionInFilename(): void { $client = static::createClient(); - $client->request('GET', '/hook/reports/import?filename=' . self::$date . '-.json&token=AZERTY'); + $client->request('GET', '/hook/reports/import?filename=' . self::DATE_RESOURCE . '-.json&token=AZERTY'); $response = $client->getResponse(); $this->assertEquals(400, $response->getStatusCode()); @@ -125,13 +120,13 @@ public function testReportWithBadVersionInFilename(): void $content = $response->getContent(); $content = json_decode($content, true); $this->assertArrayHasKey('message', $content); - $this->assertEquals('Version found not correct () from filename ' . self::$date . '-.json', $content['message']); + $this->assertEquals('Version found not correct () from filename ' . self::DATE_RESOURCE . '-.json', $content['message']); } public function testReportWithNotExistingFilename(): void { $client = static::createClient(); - $client->request('GET', '/hook/reports/import?filename=' . self::$date . '-truc.json&token=AZERTY'); + $client->request('GET', '/hook/reports/import?filename=' . self::DATE_RESOURCE . '-truc.json&token=AZERTY'); $response = $client->getResponse(); $this->assertEquals(400, $response->getStatusCode()); @@ -147,7 +142,7 @@ public function testReportWithNotExistingFilename(): void public function testReportOk(): void { $client = static::createClient(); - $client->request('GET', '/hook/reports/import?filename=' . self::$date . '-develop.json&token=AZERTY'); + $client->request('GET', '/hook/reports/import?filename=' . self::DATE_RESOURCE . '-develop.json&token=AZERTY'); $response = $client->getResponse(); $this->assertEquals(200, $response->getStatusCode()); @@ -165,7 +160,7 @@ public function testReportOk(): void public function testReportAlreadyExisting(): void { $client = static::createClient(); - $client->request('GET', '/hook/reports/import?filename=' . self::$date . '-develop.json&token=AZERTY'); + $client->request('GET', '/hook/reports/import?filename=' . self::DATE_RESOURCE . '-develop.json&token=AZERTY'); $response = $client->getResponse(); $this->assertEquals(403, $response->getStatusCode()); @@ -175,6 +170,6 @@ public function testReportAlreadyExisting(): void $content = $response->getContent(); $content = json_decode($content, true); $this->assertArrayHasKey('message', $content); - $this->assertEquals('A similar entry was found (criteria: version develop, platform chromium, campaign functional, date ' . self::$date . ').', $content['message']); + $this->assertEquals('A similar entry was found (criteria: version develop, platform chromium, campaign functional, date ' . self::DATE_RESOURCE . ').', $content['message']); } } diff --git a/tests/Controller/ReportControllerTest.php b/tests/Controller/ReportControllerTest.php index ebabccea..51a1b40f 100644 --- a/tests/Controller/ReportControllerTest.php +++ b/tests/Controller/ReportControllerTest.php @@ -2,11 +2,12 @@ namespace App\Tests\Controller; -use App\Service\ReportImporter; +use App\Service\ReportMochaImporter; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class ReportControllerTest extends WebTestCase { + private const DATE_RESOURCE = '2024-01-30'; private static int $reportId = 0; private static int $suiteId = 0; @@ -14,7 +15,12 @@ public static function setUpBeforeClass(): void { $data = file_get_contents('https://api-nightly.prestashop-project.org/reports?filter_version=develop&filter_campaign=functional'); $data = json_decode($data, true); - self::$reportId = $data[1]['id']; + foreach ($data as $datum) { + if ($datum['date'] === self::DATE_RESOURCE) { + self::$reportId = $datum['id']; + break; + } + } $data = file_get_contents('https://api-nightly.prestashop-project.org/reports/' . self::$reportId); $data = json_decode($data, true); @@ -55,11 +61,11 @@ public function testReports(): void $this->assertArrayHasKey('date', $item); $this->assertArrayHasKey('version', $item); $this->assertArrayHasKey('campaign', $item); - $this->assertContains($item['campaign'], ReportImporter::FILTER_CAMPAIGNS); + $this->assertContains($item['campaign'], ReportMochaImporter::FILTER_CAMPAIGNS); $this->assertArrayHasKey('browser', $item); - $this->assertContains($item['browser'], ReportImporter::FILTER_PLATFORMS); + $this->assertContains($item['browser'], ReportMochaImporter::FILTER_PLATFORMS); $this->assertArrayHasKey('platform', $item); - $this->assertContains($item['platform'], ReportImporter::FILTER_PLATFORMS); + $this->assertContains($item['platform'], ReportMochaImporter::FILTER_PLATFORMS); $this->assertEquals($item['browser'], $item['platform']); $this->assertArrayHasKey('start_date', $item); $this->assertArrayHasKey('end_date', $item); @@ -126,11 +132,11 @@ public function testReportID(): void $this->assertArrayHasKey('date', $content); $this->assertArrayHasKey('version', $content); $this->assertArrayHasKey('campaign', $content); - $this->assertContains($content['campaign'], ReportImporter::FILTER_CAMPAIGNS); + $this->assertContains($content['campaign'], ReportMochaImporter::FILTER_CAMPAIGNS); $this->assertArrayHasKey('browser', $content); - $this->assertContains($content['browser'], ReportImporter::FILTER_PLATFORMS); + $this->assertContains($content['browser'], ReportMochaImporter::FILTER_PLATFORMS); $this->assertArrayHasKey('platform', $content); - $this->assertContains($content['platform'], ReportImporter::FILTER_PLATFORMS); + $this->assertContains($content['platform'], ReportMochaImporter::FILTER_PLATFORMS); $this->assertEquals($content['browser'], $content['platform']); $this->assertArrayHasKey('start_date', $content); $this->assertArrayHasKey('end_date', $content); diff --git a/tests/resources/reports/2024-01-30-develop.json b/tests/resources/reports/2024-01-30-develop.json new file mode 100644 index 00000000..8451d8e1 --- /dev/null +++ b/tests/resources/reports/2024-01-30-develop.json @@ -0,0 +1,350953 @@ +{ + "stats": { + "suites": 38, + "tests": 13448, + "passes": 13409, + "pending": 39, + "failures": 0, + "testsRegistered": 13448, + "passPercent": 99.70999405116002, + "pendingPercent": 0.2900059488399762, + "other": 0, + "hasOther": false, + "skipped": 0, + "hasSkipped": false, + "start": "2024-01-30T01:42:13.343Z", + "end": "2024-01-30T02:21:52.459Z", + "duration": 2379116 + }, + "results": [ + { + "uuid": "ec5e95fe-3646-4092-84f2-48800901392c", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 364, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25cf85ff-9eb6-4546-a54d-62b567daf113", + "parentUUID": "ec5e95fe-3646-4092-84f2-48800901392c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8fab8cd-e1f4-49a3-8066-7a6cd662aafb", + "parentUUID": "ec5e95fe-3646-4092-84f2-48800901392c", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1e4f6e7-d985-42af-80d0-f6ccffd52b0c", + "parentUUID": "ec5e95fe-3646-4092-84f2-48800901392c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "title": "CLDR : Delete a currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/03_deleteCurrency.ts", + "file": "/campaigns/cldr/03_deleteCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"CLDR : Delete a currency\"", + "fullTitle": "CLDR : Delete a currency \"before all\" hook in \"CLDR : Delete a currency\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea86db9e-341c-4104-9f97-e6efe8ce34e8", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"CLDR : Delete a currency\"", + "fullTitle": "CLDR : Delete a currency \"after all\" hook in \"CLDR : Delete a currency\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3517967f-f757-4894-a422-b5b029c2c246", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Delete a currency should login in BO", + "timedOut": false, + "duration": 6565, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7dcf5ac-0954-4994-b4bd-118dd1104888", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Delete a currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 5393, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad3d13a8-1f68-467d-8844-bf4a6c95ff8e", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Delete a currency should go to Currencies Tab", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToCurrenciesTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7702686c-6133-49bf-adc2-305202b2348f", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Delete a currency should reset all filters", + "timedOut": false, + "duration": 2013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35419a18-8789-48ba-847f-1269f3351ea9", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Delete a currency should go to create new currency page", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToAddNewCurrencyPageGBP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fdd5bc4-595d-4434-a1af-801beca07873", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency GBP", + "fullTitle": "CLDR : Delete a currency should create the currency GBP", + "timedOut": false, + "duration": 6607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_createOfficialCurrencyGBP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "396c5410-a042-46a3-aa57-54839de390c0", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Delete a currency should go to create new currency page", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToAddNewCurrencyPageJPY\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffb16dc1-f325-43e8-afda-a64f03eabe64", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency JPY", + "fullTitle": "CLDR : Delete a currency should create the currency JPY", + "timedOut": false, + "duration": 6498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_createOfficialCurrencyJPY\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b486d0e4-122e-43b2-9e58-9bc7cfae8cd9", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Delete a currency should go to create new currency page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToAddNewCurrencyPageUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3efe3da3-a78f-4c0f-b363-6e6fae5c884d", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency USD", + "fullTitle": "CLDR : Delete a currency should create the currency USD", + "timedOut": false, + "duration": 6669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_createOfficialCurrencyUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4340a0b7-8407-4568-a1bc-5ea9012b1ddd", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Localization Tab", + "fullTitle": "CLDR : Delete a currency should go to Localization Tab", + "timedOut": false, + "duration": 1047, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToLocalizationTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationTab0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLocalizations(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70f33c83-b534-4d8e-b7e1-dc177d67913c", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'USD' as default currency", + "fullTitle": "CLDR : Delete a currency should choose 'USD' as default currency", + "timedOut": false, + "duration": 629, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_setUSDAsDefaultCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setUSDAsDefaultCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultCurrency(page, \"\".concat(currencies_2.default.usd.name, \" (\").concat(currencies_2.default.usd.isoCode, \")\"))];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(localization_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7646d876-e2c9-4f5f-931f-a845061d4cbf", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Delete a currency should go to Currencies Tab", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToCurrenciesTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef5bcc29-85a5-4c5c-a7bd-6778cebd638b", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'USD'", + "fullTitle": "CLDR : Delete a currency should filter by iso code of currency 'USD'", + "timedOut": false, + "duration": 367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_filterToUSDCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUSDCurrency0', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.usd.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.usd.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20dc9022-a223-470e-a3ad-2a43524bb22d", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Delete a currency should delete currency", + "timedOut": false, + "duration": 3442, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_deleteCurrencyUSDWithError\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrencyUSDWithError', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.cannotDeleteDefaultCurrencyMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "352b9adb-ac31-42ca-bac2-5992f2503df8", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Localization Tab", + "fullTitle": "CLDR : Delete a currency should go to Localization Tab", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToLocalizationTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationTab1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLocalizations(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d37891ee-d463-470c-aa55-ac6982be3b74", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'EUR' as default currency", + "fullTitle": "CLDR : Delete a currency should choose 'EUR' as default currency", + "timedOut": false, + "duration": 470, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_setEURAsDefaultCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setEURAsDefaultCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultCurrency(page, \"\".concat(currencies_2.default.euro.name, \" (\").concat(currencies_2.default.euro.isoCode, \")\"))];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(localization_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b86174d-b22b-4883-a019-fa1457ff7d75", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Delete a currency should go to Currencies Tab", + "timedOut": false, + "duration": 780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_goToCurrenciesTab2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9245aed-8b3e-4eda-829f-37c7d5fa96f1", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'USD'", + "fullTitle": "CLDR : Delete a currency should filter by iso code of currency 'USD'", + "timedOut": false, + "duration": 348, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_filterToUSDCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUSDCurrency1', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.usd.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.usd.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e13712f4-b763-418f-9f64-2568af27886c", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Delete a currency should delete currency", + "timedOut": false, + "duration": 1444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_deleteCurrencyUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrencyUSD', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63849bcd-8d69-48a7-9fee-6e16f25c0b25", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should select rows except 'EUR'", + "fullTitle": "CLDR : Delete a currency should select rows except 'EUR'", + "timedOut": false, + "duration": 1437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_resetAndSelectRowsExceptEUR\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterDelete, isBulkActionsEnabledBeforeSelect, numRow, textColumn, isBulkActionsEnabledAfterSelect;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAndSelectRowsExceptEUR', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterDelete).to.be.eq(numberOfCurrencies + currencies.length - 1);\n return [4 /*yield*/, currencies_1.default.isBulkActionsEnabled(page)];\n case 3:\n isBulkActionsEnabledBeforeSelect = _a.sent();\n (0, chai_1.expect)(isBulkActionsEnabledBeforeSelect).to.eq(false);\n numRow = 1;\n _a.label = 4;\n case 4:\n if (!(numRow <= numberOfCurrenciesAfterDelete)) return [3 /*break*/, 8];\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, numRow, 'iso_code')];\n case 5:\n textColumn = _a.sent();\n if (!(textColumn !== currencies_2.default.euro.isoCode)) return [3 /*break*/, 7];\n return [4 /*yield*/, currencies_1.default.selectRow(page, numRow)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7:\n numRow++;\n return [3 /*break*/, 4];\n case 8: return [4 /*yield*/, currencies_1.default.isBulkActionsEnabled(page)];\n case 9:\n isBulkActionsEnabledAfterSelect = _a.sent();\n (0, chai_1.expect)(isBulkActionsEnabledAfterSelect).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0a699b1-6fed-48ee-9c3b-75a2cd4bee80", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete currencies", + "fullTitle": "CLDR : Delete a currency should bulk delete currencies", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_deleteCurrency_bulkDeleteCurrencies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfCurrenciesAfterBulkDeete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCurrencies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.bulkDeleteCurrencies(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(currencies_1.default.successfulMultiDeleteMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterBulkDeete = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterBulkDeete).to.be.equal(numberOfCurrencies);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ef80b3c-2ac8-4a84-8e85-95921861e4da", + "parentUUID": "0b2f9dae-8981-4ff9-b9af-9fc501580435", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d7dcf5ac-0954-4994-b4bd-118dd1104888", + "ad3d13a8-1f68-467d-8844-bf4a6c95ff8e", + "7702686c-6133-49bf-adc2-305202b2348f", + "35419a18-8789-48ba-847f-1269f3351ea9", + "6fdd5bc4-595d-4434-a1af-801beca07873", + "396c5410-a042-46a3-aa57-54839de390c0", + "ffb16dc1-f325-43e8-afda-a64f03eabe64", + "b486d0e4-122e-43b2-9e58-9bc7cfae8cd9", + "3efe3da3-a78f-4c0f-b363-6e6fae5c884d", + "4340a0b7-8407-4568-a1bc-5ea9012b1ddd", + "70f33c83-b534-4d8e-b7e1-dc177d67913c", + "7646d876-e2c9-4f5f-931f-a845061d4cbf", + "ef5bcc29-85a5-4c5c-a7bd-6778cebd638b", + "20dc9022-a223-470e-a3ad-2a43524bb22d", + "352b9adb-ac31-42ca-bac2-5992f2503df8", + "d37891ee-d463-470c-aa55-ac6982be3b74", + "5b86174d-b22b-4883-a019-fa1457ff7d75", + "a9245aed-8b3e-4eda-829f-37c7d5fa96f1", + "e13712f4-b763-418f-9f64-2568af27886c", + "63849bcd-8d69-48a7-9fee-6e16f25c0b25", + "f0a699b1-6fed-48ee-9c3b-75a2cd4bee80", + "5ef80b3c-2ac8-4a84-8e85-95921861e4da" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 49880, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "title": "CLDR : Search a currency by ISO code", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "file": "/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"CLDR : Search a currency by ISO code\"", + "fullTitle": "CLDR : Search a currency by ISO code \"before all\" hook in \"CLDR : Search a currency by ISO code\"", + "timedOut": false, + "duration": 52, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f0a7899-630c-4ce4-a6e5-639731a620b7", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"CLDR : Search a currency by ISO code\"", + "fullTitle": "CLDR : Search a currency by ISO code \"after all\" hook in \"CLDR : Search a currency by ISO code\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "eea7552f-d040-49c0-ad69-ba4419b86587", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Search a currency by ISO code should login in BO", + "timedOut": false, + "duration": 1996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "771f3781-b776-442f-85d0-0062d9766a5c", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Search a currency by ISO code should go to 'International > Localization' page", + "timedOut": false, + "duration": 4926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6fb5e56-d83d-4297-8938-d698173ba523", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Search a currency by ISO code should go to Currencies Tab", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_goToCurrenciesTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6656d5d7-fc99-4f42-b1fc-5ef66f7fd167", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Search a currency by ISO code should reset all filters", + "timedOut": false, + "duration": 2022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0d61880-6ef7-4496-8e5f-b6ba2b9fe437", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Search a currency by ISO code should go to create new currency page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_goToAddNewCurrencyPageUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69c6167f-c232-4b76-9f95-5b2719051f6d", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency USD", + "fullTitle": "CLDR : Search a currency by ISO code should create the currency USD", + "timedOut": false, + "duration": 6341, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_createOfficialCurrencyUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9586c8ee-fb61-4bd3-9b68-00e9e4caa8f3", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Search a currency by ISO code should go to create new currency page", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_goToAddNewCurrencyPagePYG\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afa3a2b7-c470-49ac-aa0f-c1435619d1e2", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency PYG", + "fullTitle": "CLDR : Search a currency by ISO code should create the currency PYG", + "timedOut": false, + "duration": 6538, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_createOfficialCurrencyPYG\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2ea22f6-b951-4f3e-b59d-6e652f513053", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Search a currency by ISO code should go to create new currency page", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_goToAddNewCurrencyPageJPY\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81c28d86-7b72-40ca-a767-98610d46b809", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency JPY", + "fullTitle": "CLDR : Search a currency by ISO code should create the currency JPY", + "timedOut": false, + "duration": 6477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_createOfficialCurrencyJPY\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd425277-5e9a-4477-be31-d1449fef85f2", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Search a currency by ISO code should go to create new currency page", + "timedOut": false, + "duration": 976, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_goToAddNewCurrencyPageGBP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06afd619-8cb6-4364-8456-5a732b9605b7", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency GBP", + "fullTitle": "CLDR : Search a currency by ISO code should create the currency GBP", + "timedOut": false, + "duration": 6422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_createOfficialCurrencyGBP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(currency.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d9879b3-4a23-43f8-af2c-c45a9c3b2122", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code \"EUR\"", + "fullTitle": "CLDR : Search a currency by ISO code should filter by iso code \"EUR\"", + "timedOut": false, + "duration": 515, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_filterWithISOCodeEUR\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterWithISOCodeEUR', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', 'EUR')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.euro.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c78941e8-0c3b-465d-84a3-5dd419449cf6", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code \"US\"", + "fullTitle": "CLDR : Search a currency by ISO code should filter by iso code \"US\"", + "timedOut": false, + "duration": 359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_filterWithISOCodeUS\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterWithISOCodeUS', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', 'US')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.usd.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b257a0d0-0e08-41a5-a37f-db7d53a12090", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code \"PY\"", + "fullTitle": "CLDR : Search a currency by ISO code should filter by iso code \"PY\"", + "timedOut": false, + "duration": 3239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_filterWithISOCodePY\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumnRow1, textColumnRow2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterWithISOCodePY', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', 'PY')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, 'iso_code', 'asc')];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(2);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 5:\n textColumnRow1 = _a.sent();\n (0, chai_1.expect)(textColumnRow1).to.contains(currencies_2.default.jpy.isoCode);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 2, 'iso_code')];\n case 6:\n textColumnRow2 = _a.sent();\n (0, chai_1.expect)(textColumnRow2).to.contains(currencies_2.default.pyg.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c75ff4c-ef96-4122-9481-02bd20d87ab2", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code \"P\"", + "fullTitle": "CLDR : Search a currency by ISO code should filter by iso code \"P\"", + "timedOut": false, + "duration": 2302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_filterWithISOCodeP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumnRow1, textColumnRow2, textColumnRow3;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterWithISOCodeP', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', 'P')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, 'iso_code', 'asc')];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(3);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 5:\n textColumnRow1 = _a.sent();\n (0, chai_1.expect)(textColumnRow1).to.contains(currencies_2.default.gbp.isoCode);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 2, 'iso_code')];\n case 6:\n textColumnRow2 = _a.sent();\n (0, chai_1.expect)(textColumnRow2).to.contains(currencies_2.default.jpy.isoCode);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 3, 'iso_code')];\n case 7:\n textColumnRow3 = _a.sent();\n (0, chai_1.expect)(textColumnRow3).to.contains(currencies_2.default.pyg.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0937dbe-a753-4f82-8606-51253caccdf6", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code \"ABC\"", + "fullTitle": "CLDR : Search a currency by ISO code should filter by iso code \"ABC\"", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_filterWithISOCodeABC\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterWithISOCodeABC', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', 'ABC')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(0);\n return [4 /*yield*/, currencies_1.default.getTextForEmptyTable(page)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1da48430-ffed-4857-b008-aec999160125", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Search a currency by ISO code should reset all filters", + "timedOut": false, + "duration": 955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_resetFilterFinal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFinal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.eq(numberOfCurrencies + installedCurrencies.length);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b4915f9-32c3-45ae-96da-97968997671a", + "parentUUID": "15cb2fd4-3a8a-4122-b4ec-a5593e9f9644", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "29824204-53e4-4c71-baab-060f034c2f33", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "file": "/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0429595-50a5-4dbf-9425-867d4e5caa02", + "parentUUID": "29824204-53e4-4c71-baab-060f034c2f33", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b9cc518a-d228-4cd0-952e-beca790df9c7", + "parentUUID": "29824204-53e4-4c71-baab-060f034c2f33", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 1986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afc213e7-f652-4a95-9d6b-3a8488c1a29d", + "parentUUID": "29824204-53e4-4c71-baab-060f034c2f33", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_0_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b21ed21-909e-44f8-920b-4740d4288e92", + "parentUUID": "29824204-53e4-4c71-baab-060f034c2f33", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_0_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcf5b23f-7a33-4884-9a54-80e921ee978f", + "parentUUID": "29824204-53e4-4c71-baab-060f034c2f33", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'USD'", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should filter by iso code of currency 'USD'", + "timedOut": false, + "duration": 353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_0_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d675a71-4bd1-40eb-9017-f9f344d1fb2a", + "parentUUID": "29824204-53e4-4c71-baab-060f034c2f33", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_0_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9e115ad-eda6-4f80-99bb-8ef225c6bcf5", + "parentUUID": "29824204-53e4-4c71-baab-060f034c2f33", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "afc213e7-f652-4a95-9d6b-3a8488c1a29d", + "6b21ed21-909e-44f8-920b-4740d4288e92", + "dcf5b23f-7a33-4884-9a54-80e921ee978f", + "7d675a71-4bd1-40eb-9017-f9f344d1fb2a", + "a9e115ad-eda6-4f80-99bb-8ef225c6bcf5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9538, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "10e80df8-4a04-443d-8503-1f364ce14e2e", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "file": "/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32c710d1-6ee8-4488-9296-921b968644f5", + "parentUUID": "10e80df8-4a04-443d-8503-1f364ce14e2e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 3, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "735d86ae-8226-4af8-b902-04e00284bbac", + "parentUUID": "10e80df8-4a04-443d-8503-1f364ce14e2e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 1877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "802d0074-7850-485e-ae6e-089f639b4bb2", + "parentUUID": "10e80df8-4a04-443d-8503-1f364ce14e2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_1_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4928f949-3383-42d9-87a5-cedff9e579f3", + "parentUUID": "10e80df8-4a04-443d-8503-1f364ce14e2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_1_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b543797-7ac6-4600-8285-d92854004049", + "parentUUID": "10e80df8-4a04-443d-8503-1f364ce14e2e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'PYG'", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should filter by iso code of currency 'PYG'", + "timedOut": false, + "duration": 359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47310b29-2814-46ff-922b-a3360cec4d9f", + "parentUUID": "10e80df8-4a04-443d-8503-1f364ce14e2e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_1_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70b7c608-ab47-46a3-96b1-408361c7ce35", + "parentUUID": "10e80df8-4a04-443d-8503-1f364ce14e2e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "802d0074-7850-485e-ae6e-089f639b4bb2", + "4928f949-3383-42d9-87a5-cedff9e579f3", + "0b543797-7ac6-4600-8285-d92854004049", + "47310b29-2814-46ff-922b-a3360cec4d9f", + "70b7c608-ab47-46a3-96b1-408361c7ce35" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9436, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "922dd235-7884-435a-a302-bbad4e18f103", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "file": "/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16db1aa1-45e9-41d5-b69e-36b1f954e6be", + "parentUUID": "922dd235-7884-435a-a302-bbad4e18f103", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4b5f4aa5-4982-49c9-a3db-5bba6d961f14", + "parentUUID": "922dd235-7884-435a-a302-bbad4e18f103", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 1793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd82e9fd-638e-4225-88ac-538fe14e1ccd", + "parentUUID": "922dd235-7884-435a-a302-bbad4e18f103", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_2_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b4ba503-c99c-46b2-b855-70c9b8249f6e", + "parentUUID": "922dd235-7884-435a-a302-bbad4e18f103", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_2_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed81074e-768e-46db-a845-40f970d383e5", + "parentUUID": "922dd235-7884-435a-a302-bbad4e18f103", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'JPY'", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should filter by iso code of currency 'JPY'", + "timedOut": false, + "duration": 351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_2_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be50aaae-25bb-4936-bae2-9e49d8cb9ea4", + "parentUUID": "922dd235-7884-435a-a302-bbad4e18f103", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_2_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfc88a55-641f-4196-b9d8-b436fd87bd39", + "parentUUID": "922dd235-7884-435a-a302-bbad4e18f103", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd82e9fd-638e-4225-88ac-538fe14e1ccd", + "3b4ba503-c99c-46b2-b855-70c9b8249f6e", + "ed81074e-768e-46db-a845-40f970d383e5", + "be50aaae-25bb-4936-bae2-9e49d8cb9ea4", + "bfc88a55-641f-4196-b9d8-b436fd87bd39" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9295, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7077fe6e-6d0a-464e-aae3-fac57e6320dc", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "file": "/campaigns/cldr/04_searchCurrencyByISOCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0c2b679-60f5-43ac-9b74-230c54f76a81", + "parentUUID": "7077fe6e-6d0a-464e-aae3-fac57e6320dc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4b6c21c0-2553-4f23-950e-80d3f9f565e3", + "parentUUID": "7077fe6e-6d0a-464e-aae3-fac57e6320dc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 1805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90202bbe-098a-4411-b113-f20042dbd84d", + "parentUUID": "7077fe6e-6d0a-464e-aae3-fac57e6320dc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_3_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29e07341-1a89-4498-857b-85c9b1daca1e", + "parentUUID": "7077fe6e-6d0a-464e-aae3-fac57e6320dc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_3_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "741ada71-73e6-4bcb-a316-4ee756af6642", + "parentUUID": "7077fe6e-6d0a-464e-aae3-fac57e6320dc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'GBP'", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should filter by iso code of currency 'GBP'", + "timedOut": false, + "duration": 341, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_3_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c58da177-c815-49da-8814-8f84a2c038e7", + "parentUUID": "7077fe6e-6d0a-464e-aae3-fac57e6320dc", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Search a currency by ISO code POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByISOCode_postTest_3_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd15d76d-eec9-4553-8519-6eee60367335", + "parentUUID": "7077fe6e-6d0a-464e-aae3-fac57e6320dc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "90202bbe-098a-4411-b113-f20042dbd84d", + "29e07341-1a89-4498-857b-85c9b1daca1e", + "741ada71-73e6-4bcb-a316-4ee756af6642", + "c58da177-c815-49da-8814-8f84a2c038e7", + "fd15d76d-eec9-4553-8519-6eee60367335" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9274, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "771f3781-b776-442f-85d0-0062d9766a5c", + "a6fb5e56-d83d-4297-8938-d698173ba523", + "6656d5d7-fc99-4f42-b1fc-5ef66f7fd167", + "f0d61880-6ef7-4496-8e5f-b6ba2b9fe437", + "69c6167f-c232-4b76-9f95-5b2719051f6d", + "9586c8ee-fb61-4bd3-9b68-00e9e4caa8f3", + "afa3a2b7-c470-49ac-aa0f-c1435619d1e2", + "a2ea22f6-b951-4f3e-b59d-6e652f513053", + "81c28d86-7b72-40ca-a767-98610d46b809", + "fd425277-5e9a-4477-be31-d1449fef85f2", + "06afd619-8cb6-4364-8456-5a732b9605b7", + "7d9879b3-4a23-43f8-af2c-c45a9c3b2122", + "c78941e8-0c3b-465d-84a3-5dd419449cf6", + "b257a0d0-0e08-41a5-a37f-db7d53a12090", + "4c75ff4c-ef96-4122-9481-02bd20d87ab2", + "b0937dbe-a753-4f82-8606-51253caccdf6", + "1da48430-ffed-4857-b008-aec999160125", + "7b4915f9-32c3-45ae-96da-97968997671a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 46866, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "title": "CLDR : Search a currency by enable/disable", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/05_searchCurrencyByEnableDisable.ts", + "file": "/campaigns/cldr/05_searchCurrencyByEnableDisable.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"CLDR : Search a currency by enable/disable\"", + "fullTitle": "CLDR : Search a currency by enable/disable \"before all\" hook in \"CLDR : Search a currency by enable/disable\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88c11ee7-74d9-4158-92ad-e38de1f1060a", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"CLDR : Search a currency by enable/disable\"", + "fullTitle": "CLDR : Search a currency by enable/disable \"after all\" hook in \"CLDR : Search a currency by enable/disable\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f026059e-ccf4-4e57-9ca0-e3049f4d3552", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Search a currency by enable/disable should login in BO", + "timedOut": false, + "duration": 1786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81aa8f27-5078-4f2f-b5b3-ea1a3995d073", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Search a currency by enable/disable should go to 'International > Localization' page", + "timedOut": false, + "duration": 5008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fc6399b-31f1-4944-9437-36686e2dc55d", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Search a currency by enable/disable should go to Currencies Tab", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_goToCurrenciesTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5362ade-7ae7-42ca-a572-6f97de297ab9", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Search a currency by enable/disable should reset all filters", + "timedOut": false, + "duration": 360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b5a7ecb-8b5c-4aa6-aa01-6de9a34a328c", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Search a currency by enable/disable should go to create new currency page", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_goToAddNewCurrencyPageUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPageUSD', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bc301c6-444a-4c6b-a062-92bfe37aa9e4", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency USD", + "fullTitle": "CLDR : Search a currency by enable/disable should create the currency USD", + "timedOut": false, + "duration": 6440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_createOfficialCurrencyUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOfficialCurrencyUSD', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currencies_2.default.usd)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10752949-fd83-43cc-954f-413ac5378817", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'USD'", + "fullTitle": "CLDR : Search a currency by enable/disable should filter by iso code of currency 'USD'", + "timedOut": false, + "duration": 490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_filterToUSDCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUSDCurrency', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.usd.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.usd.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6aca9d49-4bb3-4bea-99e7-0c4514217b5d", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should disable currency 'USD'", + "fullTitle": "CLDR : Search a currency by enable/disable should disable currency 'USD'", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_disableCurrencyUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"disableCurrency\".concat(currencies_2.default.usd.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.setStatus(page, 1, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 3:\n status = _a.sent();\n (0, chai_1.expect)(status).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8cfba33-fcf2-49b0-afa7-a436eb980b69", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should search Enabled currencies", + "fullTitle": "CLDR : Search a currency by enable/disable should search Enabled currencies", + "timedOut": false, + "duration": 633, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_filterEnabledCurrencies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberEnabledCurrencies, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEnabledCurrencies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'select', 'active', '1')];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberEnabledCurrencies = _a.sent();\n (0, chai_1.expect)(numberEnabledCurrencies).to.be.eq(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.euro.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b8f855e-38db-4779-b522-fd1cf10708dd", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should search Disabled currencies", + "fullTitle": "CLDR : Search a currency by enable/disable should search Disabled currencies", + "timedOut": false, + "duration": 1150, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_filterDisabledCurrencies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberEnabledCurrencies, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterDisabledCurrencies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'select', 'active', '0')];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberEnabledCurrencies = _a.sent();\n (0, chai_1.expect)(numberEnabledCurrencies).to.be.eq(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.usd.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f93cce0e-87c4-4978-9e7c-12e772b9ae05", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should enable currency 'USD'", + "fullTitle": "CLDR : Search a currency by enable/disable should enable currency 'USD'", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_enableCurrencyUSD\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"enableCurrency\".concat(currencies_2.default.usd.isoCode), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.setStatus(page, 1, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextForEmptyTable(page)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d171158-51da-44d9-a2b9-4dc37c782eb5", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Search a currency by enable/disable should go to create new currency page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_goToAddNewCurrencyPageGBP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPageGBP', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68d09e40-a22b-4c75-a1be-be95dcd7bcee", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should create the currency GBP", + "fullTitle": "CLDR : Search a currency by enable/disable should create the currency GBP", + "timedOut": false, + "duration": 6162, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_createOfficialCurrencyGBP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOfficialCurrencyGBP', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currencies_2.default.gbp)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b0b8dd3-2aa2-4228-a231-feafc258fdb4", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Search a currency by enable/disable should reset all filters", + "timedOut": false, + "duration": 490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_resetFilterFinal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFinal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.eq(numberOfCurrencies + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b2c40f7-70e5-46ad-bc86-402300378d43", + "parentUUID": "19dc2dca-8878-4650-94b1-8ac1aabbc8ad", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "c369fe32-b08d-4da1-a266-6aab971c99de", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/05_searchCurrencyByEnableDisable.ts", + "file": "/campaigns/cldr/05_searchCurrencyByEnableDisable.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeab06b9-7336-4343-b16f-74969a196279", + "parentUUID": "c369fe32-b08d-4da1-a266-6aab971c99de", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "36b435d5-bb8e-4c60-9dc7-998207fde836", + "parentUUID": "c369fe32-b08d-4da1-a266-6aab971c99de", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 2014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6f8e4a3-e8f1-4c53-8b7d-0fe67459e126", + "parentUUID": "c369fe32-b08d-4da1-a266-6aab971c99de", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_postTest_1_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8553ebc9-6346-4b18-b7c6-495758d9c603", + "parentUUID": "c369fe32-b08d-4da1-a266-6aab971c99de", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_postTest_1_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea2b2b63-9786-47d1-aeb4-55a331b3cf41", + "parentUUID": "c369fe32-b08d-4da1-a266-6aab971c99de", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'USD'", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should filter by iso code of currency 'USD'", + "timedOut": false, + "duration": 415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5c3c333-b0dc-4254-a2d3-0efae7226e73", + "parentUUID": "c369fe32-b08d-4da1-a266-6aab971c99de", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_postTest_1_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d47540e-fc97-46fa-93ed-b649a479e475", + "parentUUID": "c369fe32-b08d-4da1-a266-6aab971c99de", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b6f8e4a3-e8f1-4c53-8b7d-0fe67459e126", + "8553ebc9-6346-4b18-b7c6-495758d9c603", + "ea2b2b63-9786-47d1-aeb4-55a331b3cf41", + "c5c3c333-b0dc-4254-a2d3-0efae7226e73", + "1d47540e-fc97-46fa-93ed-b649a479e475" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9633, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4139a8a7-c694-48c8-b1aa-45a533c75c1b", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/05_searchCurrencyByEnableDisable.ts", + "file": "/campaigns/cldr/05_searchCurrencyByEnableDisable.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74a7552c-80d2-41e6-9c68-5889511229bc", + "parentUUID": "4139a8a7-c694-48c8-b1aa-45a533c75c1b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "859a6718-f80e-490b-b21b-6e1a42229114", + "parentUUID": "4139a8a7-c694-48c8-b1aa-45a533c75c1b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 1880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6759ff5e-cc0d-45f6-8114-b76412811978", + "parentUUID": "4139a8a7-c694-48c8-b1aa-45a533c75c1b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_postTest_2_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c6b9ba1-4d5f-4dab-8013-ec31dfbd63a0", + "parentUUID": "4139a8a7-c694-48c8-b1aa-45a533c75c1b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_postTest_2_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dfa5cac-23e3-4dd8-9869-5e84e00711a5", + "parentUUID": "4139a8a7-c694-48c8-b1aa-45a533c75c1b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'GBP'", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should filter by iso code of currency 'GBP'", + "timedOut": false, + "duration": 352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_postTest_2_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ab9258a-c8d9-437c-83fa-32b01bc46b60", + "parentUUID": "4139a8a7-c694-48c8-b1aa-45a533c75c1b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Search a currency by enable/disable POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1443, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_searchCurrencyByEnableDisable_postTest_2_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbaa4225-5060-4ecb-bf6c-e52b23003bc1", + "parentUUID": "4139a8a7-c694-48c8-b1aa-45a533c75c1b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6759ff5e-cc0d-45f6-8114-b76412811978", + "4c6b9ba1-4d5f-4dab-8013-ec31dfbd63a0", + "5dfa5cac-23e3-4dd8-9869-5e84e00711a5", + "6ab9258a-c8d9-437c-83fa-32b01bc46b60", + "bbaa4225-5060-4ecb-bf6c-e52b23003bc1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9436, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "81aa8f27-5078-4f2f-b5b3-ea1a3995d073", + "6fc6399b-31f1-4944-9437-36686e2dc55d", + "d5362ade-7ae7-42ca-a572-6f97de297ab9", + "0b5a7ecb-8b5c-4aa6-aa01-6de9a34a328c", + "9bc301c6-444a-4c6b-a062-92bfe37aa9e4", + "10752949-fd83-43cc-954f-413ac5378817", + "6aca9d49-4bb3-4bea-99e7-0c4514217b5d", + "b8cfba33-fcf2-49b0-afa7-a436eb980b69", + "0b8f855e-38db-4779-b522-fd1cf10708dd", + "f93cce0e-87c4-4978-9e7c-12e772b9ae05", + "3d171158-51da-44d9-a2b9-4dc37c782eb5", + "68d09e40-a22b-4c75-a1be-be95dcd7bcee", + "7b0b8dd3-2aa2-4228-a231-feafc258fdb4", + "0b2c40f7-70e5-46ad-bc86-402300378d43" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 26733, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "title": "CLDR : Edit symbol / format currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/07_editSymbolFormatCurrency.ts", + "file": "/campaigns/cldr/07_editSymbolFormatCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"CLDR : Edit symbol / format currency\"", + "fullTitle": "CLDR : Edit symbol / format currency \"before all\" hook in \"CLDR : Edit symbol / format currency\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ebebd54-958f-4957-beea-dc9897a97a87", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"CLDR : Edit symbol / format currency\"", + "fullTitle": "CLDR : Edit symbol / format currency \"after all\" hook in \"CLDR : Edit symbol / format currency\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2113e8dd-c23f-4236-a539-3f96382df7c0", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Edit symbol / format currency should login in BO", + "timedOut": false, + "duration": 1790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8799e8dd-fea7-4b49-a0f1-224d41f16f0d", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Edit symbol / format currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e3162cb-388d-40d5-8d76-014dbaea8367", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Edit symbol / format currency should go to Currencies Tab", + "timedOut": false, + "duration": 783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_goToCurrenciesTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbe9e726-8c56-49b1-9df8-acceb3275044", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Edit symbol / format currency should reset all filters", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_resetFilter0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c9c71df-b85d-4039-b1f7-bf5f6ef71bd9", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'EUR'", + "fullTitle": "CLDR : Edit symbol / format currency should filter by iso code of currency 'EUR'", + "timedOut": false, + "duration": 328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_filterToEurCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToEurCurrency0', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.euro.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.euro.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "744d3e98-2acb-49c3-8666-bc5785204e6a", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the currency 'EUR'", + "fullTitle": "CLDR : Edit symbol / format currency should edit the currency 'EUR'", + "timedOut": false, + "duration": 1181, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_goToEuroCurrencyPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEuroCurrencyPage0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToEditCurrencyPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(currencies_2.default.euro.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c7406f3-ef18-46ee-aefe-833b0920512d", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should have multiples currencies formats", + "fullTitle": "CLDR : Edit symbol / format currency should have multiples currencies formats", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_checkMultipleFormats\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberCurrencyFormats;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMultipleFormats', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberCurrencyFormats = _a.sent();\n (0, chai_1.expect)(numberCurrencyFormats).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7650e8fe-282c-4a9e-831b-f2ce97b61a60", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the first currency format and open a modal", + "fullTitle": "CLDR : Edit symbol / format currency should edit the first currency format and open a modal", + "timedOut": false, + "duration": 63, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_editCurrencyFormat\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editCurrencyFormat', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.editCurrencyFormat(page, 1)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ff8c690-70c7-4847-9774-6e4a4f167b83", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should update the symbol by @ & the format", + "fullTitle": "CLDR : Edit symbol / format currency should update the symbol by @ & the format", + "timedOut": false, + "duration": 144, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_updateCurrencyFormat\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exampleFormat;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCurrencyFormat', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCurrencyFormatSymbol(page, customSymbol)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCurrencyFormatFormat(page, 'rightWithSpace')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCurrencyFormat(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextColumnFromTable(page, 1, 2)];\n case 5:\n exampleFormat = _a.sent();\n (0, chai_1.expect)(exampleFormat).to.endWith(\" \".concat(customSymbol));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a24bf782-58c1-4264-a4d3-0e7923631ce4", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the currency format", + "fullTitle": "CLDR : Edit symbol / format currency should reset the currency format", + "timedOut": false, + "duration": 68, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_resetCurrencyFormat\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var growlMessage, exampleFormat;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCurrencyFormat', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.resetCurrencyFormat(page, 1)];\n case 2:\n growlMessage = _a.sent();\n (0, chai_1.expect)(growlMessage).to.be.eq(add_1.default.resetCurrencyFormatMessage);\n return [4 /*yield*/, add_1.default.getTextColumnFromTable(page, 1, 2)];\n case 3:\n exampleFormat = _a.sent();\n (0, chai_1.expect)(exampleFormat).to.startWith(currencies_2.default.euro.symbol);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52905f3c-b8e5-4ca1-9c16-1b8b28527255", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the currency format #1 and open a modal", + "fullTitle": "CLDR : Edit symbol / format currency should edit the currency format #1 and open a modal", + "timedOut": false, + "duration": 43, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_editCurrencyFormat1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editCurrencyFormat\".concat(numRow), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.editCurrencyFormat(page, numRow)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0d7edb1-c1bc-43f7-ae6a-4d9a7a18b321", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should update the symbol by @ and the format", + "fullTitle": "CLDR : Edit symbol / format currency should update the symbol by @ and the format", + "timedOut": false, + "duration": 135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_updateCurrencyFormat1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exampleFormat;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCurrencyFormat\".concat(numRow), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCurrencyFormatSymbol(page, customSymbol)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCurrencyFormatFormat(page, 'rightWithSpace')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCurrencyFormat(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextColumnFromTable(page, numRow, 2)];\n case 5:\n exampleFormat = _a.sent();\n (0, chai_1.expect)(exampleFormat).to.endWith(\" \".concat(customSymbol));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06d8a069-da6a-4ec3-8216-deee35dbc871", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the currency format #2 and open a modal", + "fullTitle": "CLDR : Edit symbol / format currency should edit the currency format #2 and open a modal", + "timedOut": false, + "duration": 48, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_editCurrencyFormat2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editCurrencyFormat\".concat(numRow), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.editCurrencyFormat(page, numRow)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a6b9a0b-614b-4c54-81ab-f563b847bbc3", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should update the symbol by @ and the format", + "fullTitle": "CLDR : Edit symbol / format currency should update the symbol by @ and the format", + "timedOut": false, + "duration": 135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_updateCurrencyFormat2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exampleFormat;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCurrencyFormat\".concat(numRow), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCurrencyFormatSymbol(page, customSymbol)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCurrencyFormatFormat(page, 'rightWithSpace')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCurrencyFormat(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextColumnFromTable(page, numRow, 2)];\n case 5:\n exampleFormat = _a.sent();\n (0, chai_1.expect)(exampleFormat).to.endWith(\" \".concat(customSymbol));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2f77c96-0039-424e-aa64-9221c9359588", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should update the currency", + "fullTitle": "CLDR : Edit symbol / format currency should update the currency", + "timedOut": false, + "duration": 5488, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_resetCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, symbolCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCurrency0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCurrencyForm(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(currencies_1.default.successfulUpdateMessage);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'symbol')];\n case 3:\n symbolCurrency = _a.sent();\n (0, chai_1.expect)(symbolCurrency).to.be.eq(customSymbol);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1817ec67-72d4-464c-9382-96409fd9f298", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the currency 'EUR'", + "fullTitle": "CLDR : Edit symbol / format currency should edit the currency 'EUR'", + "timedOut": false, + "duration": 1263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_goToEuroCurrencyPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEuroCurrencyPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToEditCurrencyPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(currencies_2.default.euro.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1e337f1-2f05-4e0d-baaa-41f914b0375b", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should restore default settings'", + "fullTitle": "CLDR : Edit symbol / format currency should restore default settings'", + "timedOut": false, + "duration": 539, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_restoreDefaultSettings\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalRestore;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'restoreDefaultSettings', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.restoreDefaultSettings(page)];\n case 2:\n modalRestore = _a.sent();\n (0, chai_1.expect)(modalRestore).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35b70110-215f-409d-b354-64892bb8e7a2", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should check the restoration is done", + "fullTitle": "CLDR : Edit symbol / format currency should check the restoration is done", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_checkRestorationDone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exampleFormatRow1, exampleFormatRow2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkRestorationDone', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextColumnFromTable(page, 1, 2)];\n case 2:\n exampleFormatRow1 = _a.sent();\n (0, chai_1.expect)(exampleFormatRow1).to.startWith(currencies_2.default.euro.symbol);\n return [4 /*yield*/, add_1.default.getTextColumnFromTable(page, 2, 2)];\n case 3:\n exampleFormatRow2 = _a.sent();\n (0, chai_1.expect)(exampleFormatRow2).to.endWith(\" \".concat(currencies_2.default.euro.symbol));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f878c45-b611-401e-8baa-762bdb11a549", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should update the currency", + "fullTitle": "CLDR : Edit symbol / format currency should update the currency", + "timedOut": false, + "duration": 5503, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_resetCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, symbolCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCurrency1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCurrencyForm(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(currencies_1.default.successfulUpdateMessage);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'symbol')];\n case 3:\n symbolCurrency = _a.sent();\n (0, chai_1.expect)(symbolCurrency).to.be.eq(currencies_2.default.euro.symbol);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec16e4c5-9cf7-4b60-8d88-5c7f0796b80c", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Edit symbol / format currency should reset all filters", + "timedOut": false, + "duration": 425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_editSymbolFormatCurrency_resetFilter1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b536c56f-7642-4af7-a75d-45f8b4dc02be", + "parentUUID": "518c4af3-b4fb-4482-82f9-50b7d8ff2882", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8799e8dd-fea7-4b49-a0f1-224d41f16f0d", + "5e3162cb-388d-40d5-8d76-014dbaea8367", + "dbe9e726-8c56-49b1-9df8-acceb3275044", + "6c9c71df-b85d-4039-b1f7-bf5f6ef71bd9", + "744d3e98-2acb-49c3-8666-bc5785204e6a", + "4c7406f3-ef18-46ee-aefe-833b0920512d", + "7650e8fe-282c-4a9e-831b-f2ce97b61a60", + "9ff8c690-70c7-4847-9774-6e4a4f167b83", + "a24bf782-58c1-4264-a4d3-0e7923631ce4", + "52905f3c-b8e5-4ca1-9c16-1b8b28527255", + "b0d7edb1-c1bc-43f7-ae6a-4d9a7a18b321", + "06d8a069-da6a-4ec3-8216-deee35dbc871", + "0a6b9a0b-614b-4c54-81ab-f563b847bbc3", + "b2f77c96-0039-424e-aa64-9221c9359588", + "1817ec67-72d4-464c-9382-96409fd9f298", + "b1e337f1-2f05-4e0d-baaa-41f914b0375b", + "35b70110-215f-409d-b354-64892bb8e7a2", + "8f878c45-b611-401e-8baa-762bdb11a549", + "ec16e4c5-9cf7-4b60-8d88-5c7f0796b80c", + "b536c56f-7642-4af7-a75d-45f8b4dc02be" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 23216, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "title": "CLDR : Reset symbol / format settings", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/08_resetSymbolFormatSettings.ts", + "file": "/campaigns/cldr/08_resetSymbolFormatSettings.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"CLDR : Reset symbol / format settings\"", + "fullTitle": "CLDR : Reset symbol / format settings \"before all\" hook in \"CLDR : Reset symbol / format settings\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf6a9353-c9bc-47bf-a2ce-efc35c26fa6d", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"CLDR : Reset symbol / format settings\"", + "fullTitle": "CLDR : Reset symbol / format settings \"after all\" hook in \"CLDR : Reset symbol / format settings\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7f40fd74-17da-49aa-a87d-9ec4da6a3f2d", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Reset symbol / format settings should login in BO", + "timedOut": false, + "duration": 1999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f68ce24-c51f-4b23-ad95-a3c72007a819", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Reset symbol / format settings should go to 'International > Localization' page", + "timedOut": false, + "duration": 4920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aee80165-861e-4b45-a5d2-a990852f9a14", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Reset symbol / format settings should go to Currencies Tab", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_goToCurrenciesTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d75943e0-3545-4a8f-a68a-773b0bde6224", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Reset symbol / format settings should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_resetFilter0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fd75a90-073a-42a4-a20c-3cb26895f760", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'EUR'", + "fullTitle": "CLDR : Reset symbol / format settings should filter by iso code of currency 'EUR'", + "timedOut": false, + "duration": 400, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_filterToEurCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToEurCurrency0', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.euro.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.euro.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7da96d35-da9c-4844-98d7-3ca1934082ea", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the currency 'EUR'", + "fullTitle": "CLDR : Reset symbol / format settings should edit the currency 'EUR'", + "timedOut": false, + "duration": 1164, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_goToEuroCurrencyPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEuroCurrencyPage0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToEditCurrencyPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(currencies_2.default.euro.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4c7d4ba-c135-4457-9915-f439448840d7", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should have multiples currencies formats", + "fullTitle": "CLDR : Reset symbol / format settings should have multiples currencies formats", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_checkMultipleFormats\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberCurrencyFormats;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMultipleFormats', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberCurrencyFormats = _a.sent();\n (0, chai_1.expect)(numberCurrencyFormats).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48e60352-6dc8-4bee-a4ec-39326be50154", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the first currency format and open a modal", + "fullTitle": "CLDR : Reset symbol / format settings should edit the first currency format and open a modal", + "timedOut": false, + "duration": 55, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_editCurrencyFormat\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editCurrencyFormat', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.editCurrencyFormat(page, 1)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e8a788e-2271-42ac-9c1f-ba42626f9684", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should update the symbol by @", + "fullTitle": "CLDR : Reset symbol / format settings should update the symbol by @", + "timedOut": false, + "duration": 96, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_updateCurrencyFormatSymbol\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exampleFormat;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCurrencyFormatSymbol', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCurrencyFormatSymbol(page, customSymbol)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCurrencyFormat(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextColumnFromTable(page, 1, 2)];\n case 4:\n exampleFormat = _a.sent();\n (0, chai_1.expect)(exampleFormat).to.startWith(customSymbol);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b5b4bc1-9bda-4678-a31c-25cc9f9ef073", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should update the currency", + "fullTitle": "CLDR : Reset symbol / format settings should update the currency", + "timedOut": false, + "duration": 5277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_saveCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, symbolCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'saveCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCurrencyForm(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(currencies_1.default.successfulUpdateMessage);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'symbol')];\n case 3:\n symbolCurrency = _a.sent();\n (0, chai_1.expect)(symbolCurrency).to.be.eq(customSymbol);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccdf9ed5-9099-4716-a8c8-d3b6fbb9dfc5", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the currency 'EUR'", + "fullTitle": "CLDR : Reset symbol / format settings should edit the currency 'EUR'", + "timedOut": false, + "duration": 1667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_goToEuroCurrencyPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEuroCurrencyPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToEditCurrencyPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(currencies_2.default.euro.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7007cc2e-06c8-42ba-b231-d36af9cd16eb", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the currency format", + "fullTitle": "CLDR : Reset symbol / format settings should reset the currency format", + "timedOut": false, + "duration": 75, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_resetCurrencyFormat\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var growlMessage, exampleFormat;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCurrencyFormat', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.resetCurrencyFormat(page, 1)];\n case 2:\n growlMessage = _a.sent();\n (0, chai_1.expect)(growlMessage).to.be.eq(add_1.default.resetCurrencyFormatMessage);\n return [4 /*yield*/, add_1.default.getTextColumnFromTable(page, 1, 2)];\n case 3:\n exampleFormat = _a.sent();\n (0, chai_1.expect)(exampleFormat).to.startWith(currencies_2.default.euro.symbol);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68ba353e-8005-4367-87ce-c8d95c76c4c2", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should update the currency", + "fullTitle": "CLDR : Reset symbol / format settings should update the currency", + "timedOut": false, + "duration": 6095, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_resetCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, symbolCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCurrencyForm(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(currencies_1.default.successfulUpdateMessage);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'symbol')];\n case 3:\n symbolCurrency = _a.sent();\n (0, chai_1.expect)(symbolCurrency).to.be.eq(currencies_2.default.euro.symbol);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "693d0887-fbae-41f2-98b5-60e7a2b00c78", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Reset symbol / format settings should reset all filters", + "timedOut": false, + "duration": 417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_resetSymbolFormatSettings_resetFilter1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3373c3a2-4810-4f4e-b500-cfa1c3f49b31", + "parentUUID": "d6fb2b0f-e55e-4081-a362-e81ade0f19dd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9f68ce24-c51f-4b23-ad95-a3c72007a819", + "aee80165-861e-4b45-a5d2-a990852f9a14", + "d75943e0-3545-4a8f-a68a-773b0bde6224", + "2fd75a90-073a-42a4-a20c-3cb26895f760", + "7da96d35-da9c-4844-98d7-3ca1934082ea", + "d4c7d4ba-c135-4457-9915-f439448840d7", + "48e60352-6dc8-4bee-a4ec-39326be50154", + "4e8a788e-2271-42ac-9c1f-ba42626f9684", + "2b5b4bc1-9bda-4678-a31c-25cc9f9ef073", + "ccdf9ed5-9099-4716-a8c8-d3b6fbb9dfc5", + "7007cc2e-06c8-42ba-b231-d36af9cd16eb", + "68ba353e-8005-4367-87ce-c8d95c76c4c2", + "693d0887-fbae-41f2-98b5-60e7a2b00c78", + "3373c3a2-4810-4f4e-b500-cfa1c3f49b31" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 24967, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "title": "CLDR : Enable/Disable a currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/cldr/09_enableDisableCurrency.ts", + "file": "/campaigns/cldr/09_enableDisableCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"CLDR : Enable/Disable a currency\"", + "fullTitle": "CLDR : Enable/Disable a currency \"before all\" hook in \"CLDR : Enable/Disable a currency\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7367b8ce-084e-49a1-93bd-ffaebbe90111", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"CLDR : Enable/Disable a currency\"", + "fullTitle": "CLDR : Enable/Disable a currency \"after all\" hook in \"CLDR : Enable/Disable a currency\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7f3114ee-fac9-49e7-9eab-9a03e966425c", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "CLDR : Enable/Disable a currency should login in BO", + "timedOut": false, + "duration": 2110, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfbdf7c7-f6c1-4971-a647-1003eb7dba42", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "CLDR : Enable/Disable a currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30721e79-9626-4dfc-8024-392c9846f329", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Enable/Disable a currency should go to Currencies Tab", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_goToCurrenciesTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "840134ec-88f4-4acd-927b-cdc7372abd01", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Enable/Disable a currency should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_resetFilter0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8beabe8f-d147-44c8-82f6-73d26f05523a", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'EUR'", + "fullTitle": "CLDR : Enable/Disable a currency should filter by iso code of currency 'EUR'", + "timedOut": false, + "duration": 398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_filterToEurCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToEurCurrency0', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.euro.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.euro.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90bbaf17-bedc-47cd-a8b7-130aae794061", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the default currency and check the error message", + "fullTitle": "CLDR : Enable/Disable a currency should disable the default currency and check the error message", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_disableCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currencyStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.setStatus(page, 1, false)];\n case 2:\n isActionPerformed = _a.sent();\n (0, chai_1.expect)(isActionPerformed).to.eq(true);\n return [4 /*yield*/, currencies_1.default.getAlertDangerBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(currencies_1.default.cannotDisableDefaultCurrencyMessage);\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 4:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1ff50c4-d66c-44eb-b007-4adb3f41a869", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "CLDR : Enable/Disable a currency should reset all filters", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_resetFilter1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c495dc14-2436-4d15-ae48-7e7a5b4c8d03", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "CLDR : Enable/Disable a currency should go to create new currency page", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_goToAddNewCurrencyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "915992ef-8d8a-49bb-8e44-02aa93a9c08e", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should create official currency", + "fullTitle": "CLDR : Enable/Disable a currency should create official currency", + "timedOut": false, + "duration": 6264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_createOfficialCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOfficialCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currencyDollar)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "767f33a5-edae-4162-87f2-deea15e257e3", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'USD'", + "fullTitle": "CLDR : Enable/Disable a currency should filter by iso code of currency 'USD'", + "timedOut": false, + "duration": 501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_filterToDollarCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDollarCurrency0', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyDollar.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyDollar.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "726bf5e0-2b66-4ffe-98e0-fa92277165aa", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the currency 'USD'", + "fullTitle": "CLDR : Enable/Disable a currency should enable the currency 'USD'", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_enableDollarCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currencyStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableDollarCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.setStatus(page, 1, true)];\n case 2:\n isActionPerformed = _a.sent();\n (0, chai_1.expect)(isActionPerformed).to.eq(true);\n return [4 /*yield*/, currencies_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(currencies_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 4:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c872f8b-d25c-4c70-bc94-0b081bd8b85c", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Localization Tab", + "fullTitle": "CLDR : Enable/Disable a currency should go to Localization Tab", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_goToLocalizationTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationTab0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLocalizations(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9000fd44-b937-4d87-9c91-27f57c83ab0b", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'USD' as default currency", + "fullTitle": "CLDR : Enable/Disable a currency should choose 'USD' as default currency", + "timedOut": false, + "duration": 466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_setDollarAsDefaultCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setDollarAsDefaultCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultCurrency(page, \"\".concat(currencyDollar.name, \" (\").concat(currencyDollar.isoCode, \")\"))];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(localization_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1772a4a-8418-46c9-8400-e8261b34f133", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Enable/Disable a currency should go to Currencies Tab", + "timedOut": false, + "duration": 759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_goToCurrenciesTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67c82cfa-b1a8-4300-9e9c-e07473efb751", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'EUR'", + "fullTitle": "CLDR : Enable/Disable a currency should filter by iso code of currency 'EUR'", + "timedOut": false, + "duration": 331, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_filterToEurCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToEurCurrency1', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.euro.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.euro.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b295880-ed43-477a-83f3-7e98d6ea8494", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the currency 'EUR'", + "fullTitle": "CLDR : Enable/Disable a currency should disable the currency 'EUR'", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_disableEuroCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currencyStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableEuroCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.setStatus(page, 1, false)];\n case 2:\n isActionPerformed = _a.sent();\n (0, chai_1.expect)(isActionPerformed).to.eq(true);\n return [4 /*yield*/, currencies_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(currencies_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 4:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39bd218d-c7cd-47bc-86dd-d078ce13b61a", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the currency 'EUR'", + "fullTitle": "CLDR : Enable/Disable a currency should enable the currency 'EUR'", + "timedOut": false, + "duration": 279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_enableEuroCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currencyStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableEuroCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.setStatus(page, 1, true)];\n case 2:\n isActionPerformed = _a.sent();\n (0, chai_1.expect)(isActionPerformed).to.eq(true);\n return [4 /*yield*/, currencies_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(currencies_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 4:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec7694be-f738-4126-b4a9-7e3d75d8cb40", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Localization Tab", + "fullTitle": "CLDR : Enable/Disable a currency should go to Localization Tab", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_goToLocalizationTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationTab1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLocalizations(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ead5c47-f01b-47ed-9c00-a50dd1130c00", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'EUR' as default currency", + "fullTitle": "CLDR : Enable/Disable a currency should choose 'EUR' as default currency", + "timedOut": false, + "duration": 471, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_setEuroAsDefaultCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setEuroAsDefaultCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultCurrency(page, \"\".concat(currencies_2.default.euro.name, \" (\").concat(currencies_2.default.euro.isoCode, \")\"))];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(localization_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "205e6b4f-6a60-4c8f-8fa1-8bbde7a5a42c", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Currencies Tab", + "fullTitle": "CLDR : Enable/Disable a currency should go to Currencies Tab", + "timedOut": false, + "duration": 760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_goToCurrenciesTab2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesTab2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03087e65-4818-48e4-9eaf-1df664d16a95", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'USD'", + "fullTitle": "CLDR : Enable/Disable a currency should filter by iso code of currency 'USD'", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_filterToDollarCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDollarCurrency1', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyDollar.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyDollar.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "013f64fe-5bc7-4d1f-9dfe-b3b0be3adca0", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "CLDR : Enable/Disable a currency should delete currency", + "timedOut": false, + "duration": 1434, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebb02af0-0336-4bde-9b3a-8f63620fe292", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "CLDR : Enable/Disable a currency should reset filters", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"cldr_enableDisableCurrency_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81e82765-b75e-430b-8cfa-6bd4848e7963", + "parentUUID": "6a58eebf-7cbc-4be4-8ab5-3268d9a1e73c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bfbdf7c7-f6c1-4971-a647-1003eb7dba42", + "30721e79-9626-4dfc-8024-392c9846f329", + "840134ec-88f4-4acd-927b-cdc7372abd01", + "8beabe8f-d147-44c8-82f6-73d26f05523a", + "90bbaf17-bedc-47cd-a8b7-130aae794061", + "a1ff50c4-d66c-44eb-b007-4adb3f41a869", + "c495dc14-2436-4d15-ae48-7e7a5b4c8d03", + "915992ef-8d8a-49bb-8e44-02aa93a9c08e", + "767f33a5-edae-4162-87f2-deea15e257e3", + "726bf5e0-2b66-4ffe-98e0-fa92277165aa", + "0c872f8b-d25c-4c70-bc94-0b081bd8b85c", + "9000fd44-b937-4d87-9c91-27f57c83ab0b", + "d1772a4a-8418-46c9-8400-e8261b34f133", + "67c82cfa-b1a8-4300-9e9c-e07473efb751", + "3b295880-ed43-477a-83f3-7e98d6ea8494", + "39bd218d-c7cd-47bc-86dd-d078ce13b61a", + "ec7694be-f738-4126-b4a9-7e3d75d8cb40", + "7ead5c47-f01b-47ed-9c00-a50dd1130c00", + "205e6b4f-6a60-4c8f-8fa1-8bbde7a5a42c", + "03087e65-4818-48e4-9eaf-1df664d16a95", + "013f64fe-5bc7-4d1f-9dfe-b3b0be3adca0", + "ebb02af0-0336-4bde-9b3a-8f63620fe292", + "81e82765-b75e-430b-8cfa-6bd4848e7963" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27654, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "5e21d998-611b-4571-9373-8f49e2c76b9e", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 395, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00995f5f-7823-46df-9e15-fce17468a3dd", + "parentUUID": "5e21d998-611b-4571-9373-8f49e2c76b9e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 58, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3b7bf00-b070-4bdc-a6b5-8320337d2e3c", + "parentUUID": "5e21d998-611b-4571-9373-8f49e2c76b9e", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b39b3445-b5b6-45e5-9e61-c386793117e0", + "parentUUID": "5e21d998-611b-4571-9373-8f49e2c76b9e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "cc249823-6195-440e-9925-42bc03cbfdc1", + "title": "API : Internal Auth Server - Authorization Endpoint", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"API : Internal Auth Server - Authorization Endpoint\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint \"before all\" hook in \"API : Internal Auth Server - Authorization Endpoint\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.BO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93268de1-5cc9-4d6d-962c-dd6d5089ffc2", + "parentUUID": "cc249823-6195-440e-9925-42bc03cbfdc1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"API : Internal Auth Server - Authorization Endpoint\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint \"after all\" hook in \"API : Internal Auth Server - Authorization Endpoint\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "871abc9f-a6f5-4ee9-9cba-8dbf91680413", + "parentUUID": "cc249823-6195-440e-9925-42bc03cbfdc1", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4de57365-b1cf-4a63-9a1d-048e09232897", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e47b559d-940a-41ad-9756-0524de0709e4", + "parentUUID": "4de57365-b1cf-4a63-9a1d-048e09232897", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "75b22d2a-8d49-46d1-a1ee-5145649d599c", + "parentUUID": "4de57365-b1cf-4a63-9a1d-048e09232897", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 6347, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a8ec9a7-c598-49e1-b2b9-e81678eb2621", + "parentUUID": "4de57365-b1cf-4a63-9a1d-048e09232897", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 5303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ca3918e-02a1-411c-9ebd-d42cf2ff29ba", + "parentUUID": "4de57365-b1cf-4a63-9a1d-048e09232897", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 1115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8217091-af6d-4e03-99c6-0784ba9e4866", + "parentUUID": "4de57365-b1cf-4a63-9a1d-048e09232897", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0a8ec9a7-c598-49e1-b2b9-e81678eb2621", + "8ca3918e-02a1-411c-9ebd-d42cf2ff29ba", + "a8217091-af6d-4e03-99c6-0784ba9e4866" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12765, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6f15e7e1-68c8-4357-9def-ea4b07a6724f", + "title": "API Access : Fetch the client secret", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint API Access : Fetch the client secret should login in BO", + "timedOut": false, + "duration": 2067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f75cfe68-4541-4ed7-b6e6-82ac10f434ae", + "parentUUID": "6f15e7e1-68c8-4357-9def-ea4b07a6724f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint API Access : Fetch the client secret should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb60c1f0-f410-48f6-8b9c-6b0299e5c5a3", + "parentUUID": "6f15e7e1-68c8-4357-9def-ea4b07a6724f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint API Access : Fetch the client secret should check that no records found", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cea1c99-9327-4915-ae10-8ed73c862a74", + "parentUUID": "6f15e7e1-68c8-4357-9def-ea4b07a6724f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint API Access : Fetch the client secret should go to add New API Access page", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdcaea1c-e6b2-470f-ae80-845aba122ece", + "parentUUID": "6f15e7e1-68c8-4357-9def-ea4b07a6724f", + "isHook": false, + "skipped": false + }, + { + "title": "should create API Access", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint API Access : Fetch the client secret should create API Access", + "timedOut": false, + "duration": 1680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, clientAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, add_1.default.getAlertInfoBlockParagraphContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(add_1.default.apiAccessGeneratedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d6fa200-7d59-4b1f-b8be-185d93b2cc2f", + "parentUUID": "6f15e7e1-68c8-4357-9def-ea4b07a6724f", + "isHook": false, + "skipped": false + }, + { + "title": "should copy client secret", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint API Access : Fetch the client secret should copy client secret", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_copyClientSecret\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'copyClientSecret', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.copyClientSecret(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getClipboardText(page)];\n case 3:\n clientSecret = _a.sent();\n (0, chai_1.expect)(clientSecret.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee7fa426-e0a4-4df3-9bb5-4904c90ff554", + "parentUUID": "6f15e7e1-68c8-4357-9def-ea4b07a6724f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f75cfe68-4541-4ed7-b6e6-82ac10f434ae", + "eb60c1f0-f410-48f6-8b9c-6b0299e5c5a3", + "2cea1c99-9327-4915-ae10-8ed73c862a74", + "cdcaea1c-e6b2-470f-ae80-845aba122ece", + "1d6fa200-7d59-4b1f-b8be-185d93b2cc2f", + "ee7fa426-e0a4-4df3-9bb5-4904c90ff554" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8648, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fb55f0a8-0582-4135-9035-0dc847b661c5", + "title": "Authorization Endpoint", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method GET", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method GET", + "timedOut": false, + "duration": 84, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_requestAuthWithMethodGET\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodGET', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.get('api/oauth2/token')];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(405);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fdf6332-7da3-48be-bdb5-1930f1cb9e3a", + "parentUUID": "fb55f0a8-0582-4135-9035-0dc847b661c5", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST", + "timedOut": false, + "duration": 85, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_requestAuthWithMethodPOST\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOST', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token')];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(400);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b62199cd-84e2-4cf6-8c86-fd01e72c07f7", + "parentUUID": "fb55f0a8-0582-4135-9035-0dc847b661c5", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST with unuseful data", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST with unuseful data", + "timedOut": false, + "duration": 49, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_requestAuthWithMethodPOSTUnusefulData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOSTUnusefulData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token', {\n form: {\n notUsed: 'notUsed',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(400);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5f0be15-de57-4367-884e-62ba4fb96567", + "parentUUID": "fb55f0a8-0582-4135-9035-0dc847b661c5", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST with invalid data", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST with invalid data", + "timedOut": false, + "duration": 43, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_requestAuthWithMethodPOSTInvalidData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOSTInvalidData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token', {\n form: {\n client_id: 'bad_client_id',\n client_secret: 'bad_client_secret',\n grant_type: 'client_credentials',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(401);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eeeccaff-1c17-4139-8229-e50ff202f936", + "parentUUID": "fb55f0a8-0582-4135-9035-0dc847b661c5", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST with valid + unuseful data", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST with valid + unuseful data", + "timedOut": false, + "duration": 505, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_requestAuthWithMethodPOSTValidAndUnusefulData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOSTValidAndUnusefulData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token', {\n form: {\n client_id: clientAccess.clientId,\n client_secret: clientSecret,\n grant_type: 'client_credentials',\n notUsed: 'notUsed',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "544714ee-a843-41d7-bce4-c9b9f08895ed", + "parentUUID": "fb55f0a8-0582-4135-9035-0dc847b661c5", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST with valid data", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST with valid data", + "timedOut": false, + "duration": 501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_requestAuthWithMethodPOSTValidData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOSTValidData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token', {\n form: {\n client_id: clientAccess.clientId,\n client_secret: clientSecret,\n grant_type: 'client_credentials',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('token_type');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.eq('Bearer');\n (0, chai_1.expect)(jsonResponse).to.have.property('expires_in');\n (0, chai_1.expect)(jsonResponse.expires_in).to.be.eq(clientAccess.tokenLifetime);\n (0, chai_1.expect)(jsonResponse).to.have.property('access_token');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.a('string');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80d76e9d-2393-48b1-9a14-809f1464386b", + "parentUUID": "fb55f0a8-0582-4135-9035-0dc847b661c5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6fdf6332-7da3-48be-bdb5-1930f1cb9e3a", + "b62199cd-84e2-4cf6-8c86-fd01e72c07f7", + "d5f0be15-de57-4367-884e-62ba4fb96567", + "eeeccaff-1c17-4139-8229-e50ff202f936", + "544714ee-a843-41d7-bce4-c9b9f08895ed", + "80d76e9d-2393-48b1-9a14-809f1464386b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1267, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0515874f-cf7c-485c-a2f2-30ce2db6e469", + "title": "PRE-TEST: Delete an API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint PRE-TEST: Delete an API Access \"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d8144f8-9fa1-45ec-991b-b6dfc0892ba6", + "parentUUID": "0515874f-cf7c-485c-a2f2-30ce2db6e469", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint PRE-TEST: Delete an API Access \"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8b2b975b-ed2a-4e56-ab7a-03298a8aea19", + "parentUUID": "0515874f-cf7c-485c-a2f2-30ce2db6e469", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint PRE-TEST: Delete an API Access should login in BO", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b32721f-e8b7-460b-abee-e60665e87326", + "parentUUID": "0515874f-cf7c-485c-a2f2-30ce2db6e469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint PRE-TEST: Delete an API Access should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_postTest_0_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfAPIAccess = _a.sent();\n (0, chai_1.expect)(numberOfAPIAccess).to.gte(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "195e7363-1cc6-4892-bf05-a27829cf0343", + "parentUUID": "0515874f-cf7c-485c-a2f2-30ce2db6e469", + "isHook": false, + "skipped": false + }, + { + "title": "should delete API Access", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint PRE-TEST: Delete an API Access should delete API Access", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_postTest_0_deleteAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.deleteAPIAccess(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulDeleteMessage);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "486c7b13-f323-41bb-b8b3-72fe759f58d7", + "parentUUID": "0515874f-cf7c-485c-a2f2-30ce2db6e469", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7b32721f-e8b7-460b-abee-e60665e87326", + "195e7363-1cc6-4892-bf05-a27829cf0343", + "486c7b13-f323-41bb-b8b3-72fe759f58d7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6427, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0d3b7329-7d9b-4e9b-bfdc-9fa1a590f078", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/01_authorizationEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d05f657-4f28-4798-aecc-01e0393986d4", + "parentUUID": "0d3b7329-7d9b-4e9b-bfdc-9fa1a590f078", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "866b6c91-061b-4f87-bc88-fba8bbdb3400", + "parentUUID": "0d3b7329-7d9b-4e9b-bfdc-9fa1a590f078", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc2c8657-5d5c-4923-afcd-6fb215d4d3ba", + "parentUUID": "0d3b7329-7d9b-4e9b-bfdc-9fa1a590f078", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcab0592-9799-4954-8505-911bccfde60b", + "parentUUID": "0d3b7329-7d9b-4e9b-bfdc-9fa1a590f078", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "API : Internal Auth Server - Authorization Endpoint Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_authorizationEndpoint_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcb3d520-6b8e-4769-8696-368690a80eb0", + "parentUUID": "0d3b7329-7d9b-4e9b-bfdc-9fa1a590f078", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc2c8657-5d5c-4923-afcd-6fb215d4d3ba", + "bcab0592-9799-4954-8505-911bccfde60b", + "bcb3d520-6b8e-4769-8696-368690a80eb0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7075, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "efa13583-926c-4fc6-b27d-6a1fb8e423e7", + "title": "API : Internal Auth Server - Resource Endpoint", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"API : Internal Auth Server - Resource Endpoint\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint \"before all\" hook in \"API : Internal Auth Server - Resource Endpoint\"", + "timedOut": false, + "duration": 54, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.BO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "673a4835-4151-4d83-a8ee-d5e0b61d1959", + "parentUUID": "efa13583-926c-4fc6-b27d-6a1fb8e423e7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"API : Internal Auth Server - Resource Endpoint\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint \"after all\" hook in \"API : Internal Auth Server - Resource Endpoint\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "eb0f198f-1cdc-466b-b092-a32b8146bb2a", + "parentUUID": "efa13583-926c-4fc6-b27d-6a1fb8e423e7", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "96a4088d-4186-49cc-b22c-b4263376bc40", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc4465e4-6c82-4c0d-b66f-7c0157418654", + "parentUUID": "96a4088d-4186-49cc-b22c-b4263376bc40", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7719c4d3-a2ca-46e9-83b4-859ceb6d9194", + "parentUUID": "96a4088d-4186-49cc-b22c-b4263376bc40", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca7904eb-af1d-40f9-b6dc-2ac57a233f41", + "parentUUID": "96a4088d-4186-49cc-b22c-b4263376bc40", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da8fd711-b0aa-4fd8-a8c5-35819de70701", + "parentUUID": "96a4088d-4186-49cc-b22c-b4263376bc40", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bd641df-27cf-4c5b-9524-7e9ae093722e", + "parentUUID": "96a4088d-4186-49cc-b22c-b4263376bc40", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca7904eb-af1d-40f9-b6dc-2ac57a233f41", + "da8fd711-b0aa-4fd8-a8c5-35819de70701", + "4bd641df-27cf-4c5b-9524-7e9ae093722e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7502, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "99ad7840-03c9-4661-9bf0-4cef14dd3433", + "title": "BO - Advanced Parameter - API Access : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : Internal Auth Server - Resource Endpoint BO - Advanced Parameter - API Access : CRUD should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff57d08d-af90-420f-ae88-ce8e016faf39", + "parentUUID": "99ad7840-03c9-4661-9bf0-4cef14dd3433", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : Internal Auth Server - Resource Endpoint BO - Advanced Parameter - API Access : CRUD should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eacb7d8c-561b-4881-bb2e-eeffd663176a", + "parentUUID": "99ad7840-03c9-4661-9bf0-4cef14dd3433", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "API : Internal Auth Server - Resource Endpoint BO - Advanced Parameter - API Access : CRUD should check that no records found", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06cb69be-82b5-4d56-b553-aa46e3fa710a", + "parentUUID": "99ad7840-03c9-4661-9bf0-4cef14dd3433", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "API : Internal Auth Server - Resource Endpoint BO - Advanced Parameter - API Access : CRUD should go to add New API Access page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3fc9427-b544-4f7e-acda-ace442a11644", + "parentUUID": "99ad7840-03c9-4661-9bf0-4cef14dd3433", + "isHook": false, + "skipped": false + }, + { + "title": "should create API Access", + "fullTitle": "API : Internal Auth Server - Resource Endpoint BO - Advanced Parameter - API Access : CRUD should create API Access", + "timedOut": false, + "duration": 1687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, clientAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, add_1.default.getAlertInfoBlockParagraphContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(add_1.default.apiAccessGeneratedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d28c405c-571f-4994-85ad-204135a1e1b9", + "parentUUID": "99ad7840-03c9-4661-9bf0-4cef14dd3433", + "isHook": false, + "skipped": false + }, + { + "title": "should copy client secret", + "fullTitle": "API : Internal Auth Server - Resource Endpoint BO - Advanced Parameter - API Access : CRUD should copy client secret", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_copyClientSecret\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'copyClientSecret', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.copyClientSecret(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getClipboardText(page)];\n case 3:\n clientSecret = _a.sent();\n (0, chai_1.expect)(clientSecret.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "305dc5fd-3e3d-47a7-b0ee-32433cbb1211", + "parentUUID": "99ad7840-03c9-4661-9bf0-4cef14dd3433", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ff57d08d-af90-420f-ae88-ce8e016faf39", + "eacb7d8c-561b-4881-bb2e-eeffd663176a", + "06cb69be-82b5-4d56-b553-aa46e3fa710a", + "d3fc9427-b544-4f7e-acda-ace442a11644", + "d28c405c-571f-4994-85ad-204135a1e1b9", + "305dc5fd-3e3d-47a7-b0ee-32433cbb1211" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8056, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "71334850-7f5d-43fd-a92b-8a1e89ef9a0e", + "title": "Resource Endpoint", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the authorization endpoint and fetch valid token", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Resource Endpoint should request the authorization endpoint and fetch valid token", + "timedOut": false, + "duration": 505, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_requestAuthorizationEndpoint\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthorizationEndpoint', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token', {\n form: {\n client_id: clientAccess.clientId,\n client_secret: clientSecret,\n grant_type: 'client_credentials',\n scope: 'hook_read',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('access_token');\n (0, chai_1.expect)(jsonResponse.access_token).to.be.a('string');\n accessToken = jsonResponse.access_token;\n accessTokenExpired = api_1.default.setAccessTokenAsExpired(accessToken);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb699aeb-3565-4699-8055-4dac1aec9a9b", + "parentUUID": "71334850-7f5d-43fd-a92b-8a1e89ef9a0e", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/hook-status/1 without access token", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Resource Endpoint should request the endpoint /admin-dev/api/hook-status/1 without access token", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_requestEndpointWithoutAccessToken\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointWithoutAccessToken', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.get('api/hook-status/1')];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(401);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f522e698-79fd-45bb-b02e-86150a7ff51e", + "parentUUID": "71334850-7f5d-43fd-a92b-8a1e89ef9a0e", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/hook-status/1 with invalid access token", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Resource Endpoint should request the endpoint /admin-dev/api/hook-status/1 with invalid access token", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_requestEndpointWithInvalidAccessToken\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointWithInvalidAccessToken', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.get('api/hook-status/1', {\n headers: {\n Authorization: 'Bearer INVALIDTOKEN',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(401);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'WWW-Authenticate')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'WWW-Authenticate')).to.be.eq('Bearer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb81a80a-9cf5-43e4-95e7-c36f3c0ce41f", + "parentUUID": "71334850-7f5d-43fd-a92b-8a1e89ef9a0e", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/hook-status/1 with expired access token", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Resource Endpoint should request the endpoint /admin-dev/api/hook-status/1 with expired access token", + "timedOut": false, + "duration": 37, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_requestEndpointWithExpiredAccessToken\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointWithExpiredAccessToken', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.get('api/hook-status/1', {\n headers: {\n Authorization: \"Bearer \".concat(accessTokenExpired),\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(401);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'WWW-Authenticate')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'WWW-Authenticate')).to.be.eq('Bearer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7cd023f-4761-4ff1-8e52-b8de8d7f3368", + "parentUUID": "71334850-7f5d-43fd-a92b-8a1e89ef9a0e", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/hook-status/1 with valid access token", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Resource Endpoint should request the endpoint /admin-dev/api/hook-status/1 with valid access token", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_requestEndpointWithValidAccessToken\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointWithValidAccessToken', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.get('api/hook-status/1', {\n headers: {\n Authorization: \"Bearer \".concat(accessToken),\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('id');\n (0, chai_1.expect)(jsonResponse.id).to.be.a('number');\n (0, chai_1.expect)(jsonResponse).to.have.property('active');\n (0, chai_1.expect)(jsonResponse.active).to.be.a('boolean');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa462af3-6071-4d3d-a067-1546afeae135", + "parentUUID": "71334850-7f5d-43fd-a92b-8a1e89ef9a0e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cb699aeb-3565-4699-8055-4dac1aec9a9b", + "f522e698-79fd-45bb-b02e-86150a7ff51e", + "eb81a80a-9cf5-43e4-95e7-c36f3c0ce41f", + "b7cd023f-4761-4ff1-8e52-b8de8d7f3368", + "aa462af3-6071-4d3d-a067-1546afeae135" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 712, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dd904bbc-78b9-4605-a024-c8faae2dfcb2", + "title": "PRE-TEST: Delete an API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint PRE-TEST: Delete an API Access \"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79bca32d-0054-4ca1-914e-1430f7446d79", + "parentUUID": "dd904bbc-78b9-4605-a024-c8faae2dfcb2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint PRE-TEST: Delete an API Access \"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "70c92849-d30c-420d-8ded-f4258c64b03d", + "parentUUID": "dd904bbc-78b9-4605-a024-c8faae2dfcb2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : Internal Auth Server - Resource Endpoint PRE-TEST: Delete an API Access should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18f55875-d00b-4597-90dc-8aa4d8a6785a", + "parentUUID": "dd904bbc-78b9-4605-a024-c8faae2dfcb2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : Internal Auth Server - Resource Endpoint PRE-TEST: Delete an API Access should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_postTest_0_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfAPIAccess = _a.sent();\n (0, chai_1.expect)(numberOfAPIAccess).to.gte(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1ad3954-d189-4d10-b3ce-658edf3bd0e5", + "parentUUID": "dd904bbc-78b9-4605-a024-c8faae2dfcb2", + "isHook": false, + "skipped": false + }, + { + "title": "should delete API Access", + "fullTitle": "API : Internal Auth Server - Resource Endpoint PRE-TEST: Delete an API Access should delete API Access", + "timedOut": false, + "duration": 836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_postTest_0_deleteAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.deleteAPIAccess(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulDeleteMessage);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c52882f-f15b-43c6-9896-c4def31fc12e", + "parentUUID": "dd904bbc-78b9-4605-a024-c8faae2dfcb2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "18f55875-d00b-4597-90dc-8aa4d8a6785a", + "e1ad3954-d189-4d10-b3ce-658edf3bd0e5", + "1c52882f-f15b-43c6-9896-c4def31fc12e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6402, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "abd73a1f-081b-4fcb-bbb5-6ba5c03e2826", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/01_internalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d230078a-b2b3-42c2-85f1-9e450db604bd", + "parentUUID": "abd73a1f-081b-4fcb-bbb5-6ba5c03e2826", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "df23910a-0799-4b85-9cf7-f7d613ff2084", + "parentUUID": "abd73a1f-081b-4fcb-bbb5-6ba5c03e2826", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebec8add-b0af-4e67-ad6e-4c41f60b1f87", + "parentUUID": "abd73a1f-081b-4fcb-bbb5-6ba5c03e2826", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d5a1ec0-cd17-4e69-992d-914da838a4ae", + "parentUUID": "abd73a1f-081b-4fcb-bbb5-6ba5c03e2826", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "API : Internal Auth Server - Resource Endpoint Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 481, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_internalAuthServer_resourceEndpoint_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1be8677f-71be-4501-b82a-cc0b0de38300", + "parentUUID": "abd73a1f-081b-4fcb-bbb5-6ba5c03e2826", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ebec8add-b0af-4e67-ad6e-4c41f60b1f87", + "6d5a1ec0-cd17-4e69-992d-914da838a4ae", + "1be8677f-71be-4501-b82a-cc0b0de38300" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7100, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d95acd8f-1ebc-4827-b91d-54d188a55d4a", + "title": "API : External Auth Server - Authorization Endpoint", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/01_authorizationEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/01_authorizationEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"API : External Auth Server - Authorization Endpoint\"", + "fullTitle": "API : External Auth Server - Authorization Endpoint \"before all\" hook in \"API : External Auth Server - Authorization Endpoint\"", + "timedOut": false, + "duration": 3, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, playwright_1.request.newContext({\n baseURL: global.BO.URL,\n // @todo : Remove it when Puppeteer will accept self signed certificates\n ignoreHTTPSErrors: true,\n })];\n case 1:\n apiContextBO = _a.sent();\n if (!global.GENERATE_FAILED_STEPS) {\n /*\n apiContextKeycloak = await request.newContext({\n baseURL: global.keycloakConfig.keycloakExternalUrl,\n // @todo : Remove it when Puppeteer will accept self signed certificates\n ignoreHTTPSErrors: true,\n });\n \n accessTokenKeycloak = await keycloakHelper.createClient(\n global.keycloakConfig.keycloakClientId,\n 'PrestaShop Client ID',\n false,\n true,\n );\n expect(accessTokenKeycloak.length).to.be.gt(0);\n */\n }\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2766ca95-cda2-47cf-85ca-7c52d48804fc", + "parentUUID": "d95acd8f-1ebc-4827-b91d-54d188a55d4a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"API : External Auth Server - Authorization Endpoint\"", + "fullTitle": "API : External Auth Server - Authorization Endpoint \"after all\" hook in \"API : External Auth Server - Authorization Endpoint\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (!global.GENERATE_FAILED_STEPS) {\n /*\n const isRemoved: boolean = await keycloakHelper.removeClient(global.keycloakConfig.keycloakClientId);\n expect(isRemoved).to.eq(true);\n */\n }\n return [2 /*return*/];\n });\n });", + "err": {}, + "uuid": "0c524547-1670-4352-8d45-ad9243849949", + "parentUUID": "d95acd8f-1ebc-4827-b91d-54d188a55d4a", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "9c2c419d-1cf8-4d8c-b8ae-9e5964baa745", + "title": "Authorization Endpoint", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/01_authorizationEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/01_authorizationEndpoint.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method GET", + "fullTitle": "API : External Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method GET", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_authorizationEndpoint_requestAuthWithMethodGET\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodGET', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContextBO.get('api/oauth2/token')];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(405);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01938976-5e89-4aa8-9a67-9a4a19f2ab54", + "parentUUID": "9c2c419d-1cf8-4d8c-b8ae-9e5964baa745", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST", + "fullTitle": "API : External Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_authorizationEndpoint_requestAuthWithMethodPOST\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOST', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContextBO.post('api/oauth2/token')];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(400);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "237e0a14-7026-431a-843f-aef9c9e7f81e", + "parentUUID": "9c2c419d-1cf8-4d8c-b8ae-9e5964baa745", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST with unuseful data", + "fullTitle": "API : External Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST with unuseful data", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_authorizationEndpoint_requestAuthWithMethodPOSTUnusefulData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOSTUnusefulData', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContextBO.post('api/oauth2/token', {\n form: {\n notUsed: 'notUsed',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(400);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b16c2a07-f758-4696-a3f3-855410083e25", + "parentUUID": "9c2c419d-1cf8-4d8c-b8ae-9e5964baa745", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST with invalid data", + "fullTitle": "API : External Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST with invalid data", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_authorizationEndpoint_requestAuthWithMethodPOSTInvalidData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOSTInvalidData', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContextBO.post('api/oauth2/token', {\n form: {\n client_id: 'bad_client_id',\n client_secret: 'bad_client_secret',\n grant_type: 'client_credentials',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(401);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ba63a39-146b-4ae4-b9e5-dee5432f8487", + "parentUUID": "9c2c419d-1cf8-4d8c-b8ae-9e5964baa745", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST with valid + unuseful data", + "fullTitle": "API : External Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST with valid + unuseful data", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_authorizationEndpoint_requestAuthWithMethodPOSTValidAndUnusefulData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOSTValidAndUnusefulData', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContextBO.post('api/oauth2/token', {\n form: {\n client_id: 'my_client_id',\n client_secret: 'prestashop',\n grant_type: 'client_credentials',\n notUsed: 'notUsed',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f01d9f7e-7267-4150-945d-8f38efbc90e5", + "parentUUID": "9c2c419d-1cf8-4d8c-b8ae-9e5964baa745", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token with method POST with valid data", + "fullTitle": "API : External Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /admin-dev/api/oauth2/token with method POST with valid data", + "timedOut": false, + "duration": 1, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_authorizationEndpoint_requestAuthWithMethodPOSTValidData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestAuthWithMethodPOSTValidData', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContextBO.post('api/oauth2/token', {\n form: {\n client_id: 'my_client_id',\n client_secret: 'prestashop',\n grant_type: 'client_credentials',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('token_type');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.eq('Bearer');\n (0, chai_1.expect)(jsonResponse).to.have.property('expires_in');\n (0, chai_1.expect)(jsonResponse.expires_in).to.be.eq(3600);\n (0, chai_1.expect)(jsonResponse).to.have.property('access_token');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.a('string');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "775e02d3-dbc9-42f1-9f85-653162f0ad6f", + "parentUUID": "9c2c419d-1cf8-4d8c-b8ae-9e5964baa745", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /realms/master/protocol/openid-connect/token (Keycloak) with method POST with valid data", + "fullTitle": "API : External Auth Server - Authorization Endpoint Authorization Endpoint should request the endpoint /realms/master/protocol/openid-connect/token (Keycloak) with method POST with valid data", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_authorizationEndpoint_requestKeycloakWithMethodPOSTValidData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestKeycloakWithMethodPOSTValidData', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContextKeycloak.post('/realms/master/protocol/openid-connect/token', {\n form: {\n client_id: global.keycloakConfig.keycloakClientId,\n client_secret: accessTokenKeycloak,\n grant_type: 'client_credentials',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('token_type');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.eq('Bearer');\n (0, chai_1.expect)(jsonResponse).to.have.property('expires_in');\n (0, chai_1.expect)(jsonResponse.expires_in).to.be.eq(60);\n (0, chai_1.expect)(jsonResponse).to.have.property('access_token');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.a('string');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e7e4074-74b7-4831-b19b-824dfcd7ece6", + "parentUUID": "9c2c419d-1cf8-4d8c-b8ae-9e5964baa745", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [], + "failures": [], + "pending": [ + "01938976-5e89-4aa8-9a67-9a4a19f2ab54", + "237e0a14-7026-431a-843f-aef9c9e7f81e", + "b16c2a07-f758-4696-a3f3-855410083e25", + "7ba63a39-146b-4ae4-b9e5-dee5432f8487", + "f01d9f7e-7267-4150-945d-8f38efbc90e5", + "775e02d3-dbc9-42f1-9f85-653162f0ad6f", + "0e7e4074-74b7-4831-b19b-824dfcd7ece6" + ], + "skipped": [], + "duration": 1, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8a0ba405-918c-4c77-9a25-ae6f347f6103", + "title": "API : External Auth Server - Resource Endpoint", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"API : External Auth Server - Resource Endpoint\"", + "fullTitle": "API : External Auth Server - Resource Endpoint \"before all\" hook in \"API : External Auth Server - Resource Endpoint\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.BO.URL)];\n case 3:\n apiContext = _a.sent();\n if (!global.GENERATE_FAILED_STEPS) {\n /*\n const apiContextKeycloak: APIRequestContext = await request.newContext({\n baseURL: global.keycloakConfig.keycloakExternalUrl,\n // @todo : Remove it when Playwright will accept self signed certificates\n ignoreHTTPSErrors: true,\n });\n \n const clientSecretKeycloak: string = await keycloakHelper.createClient(\n global.keycloakConfig.keycloakClientId,\n 'PrestaShop Client ID',\n false,\n true,\n );\n expect(clientSecretKeycloak.length).to.be.gt(0);\n \n const apiResponse: APIResponse = await apiContextKeycloak.post('realms/master/protocol/openid-connect/token', {\n form: {\n client_id: global.keycloakConfig.keycloakClientId,\n client_secret: clientSecretKeycloak,\n grant_type: 'client_credentials',\n },\n });\n expect(apiResponse.status()).to.eq(200);\n \n const jsonResponse = await apiResponse.json();\n expect(jsonResponse).to.have.property('access_token');\n expect(jsonResponse.access_token).to.be.a('string');\n \n accessTokenKeycloak = jsonResponse.access_token;\n accessTokenExpiredKeycloak = api.setAccessTokenAsExpired(accessTokenKeycloak);\n */\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f18db45e-4f90-4351-a6a3-0cf5eace5ae9", + "parentUUID": "8a0ba405-918c-4c77-9a25-ae6f347f6103", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"API : External Auth Server - Resource Endpoint\"", + "fullTitle": "API : External Auth Server - Resource Endpoint \"after all\" hook in \"API : External Auth Server - Resource Endpoint\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n if (!global.GENERATE_FAILED_STEPS) {\n /*\n const isRemoved: boolean = await keycloakHelper.removeClient(global.keycloakConfig.keycloakClientId);\n expect(isRemoved).to.eq(true);\n */\n }\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bbcbe9c7-8bbf-45c3-9c48-39233fb6e547", + "parentUUID": "8a0ba405-918c-4c77-9a25-ae6f347f6103", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "title": "Install module Keycloak OAuth2 connector demo", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install module Keycloak OAuth2 connector demo\"", + "fullTitle": "API : External Auth Server - Resource Endpoint Install module Keycloak OAuth2 connector demo \"before all\" hook in \"Install module Keycloak OAuth2 connector demo\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "711369d3-07c0-4005-8c56-3cf0533a0f76", + "parentUUID": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install module Keycloak OAuth2 connector demo\"", + "fullTitle": "API : External Auth Server - Resource Endpoint Install module Keycloak OAuth2 connector demo \"after all\" hook in \"Install module Keycloak OAuth2 connector demo\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('module.zip')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "69c11dfd-2ded-4579-9202-dd3022aacbe5", + "parentUUID": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : External Auth Server - Resource Endpoint Install module Keycloak OAuth2 connector demo should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1052f2f3-711a-4190-8429-22573e4df505", + "parentUUID": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "isHook": false, + "skipped": false + }, + { + "title": "should download the zip of the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "API : External Auth Server - Resource Endpoint Install module Keycloak OAuth2 connector demo should download the zip of the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_preTest_1_downloadModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.downloadFile(module.releaseZip, 'module.zip')];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist('module.zip')];\n case 3:\n found = _a.sent();\n (0, chai_1.expect)(found).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74cd4a00-81a9-49d7-b12a-aa3f34296d5d", + "parentUUID": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "API : External Auth Server - Resource Endpoint Install module Keycloak OAuth2 connector demo should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_preTest_1_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b53216d-b5e8-4104-9f02-eba7bedc75a6", + "parentUUID": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "isHook": false, + "skipped": false + }, + { + "title": "should upload the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "API : External Auth Server - Resource Endpoint Install module Keycloak OAuth2 connector demo should upload the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 1872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_preTest_1_uploadModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uploadModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.uploadModule(page, 'module.zip')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uploadModuleSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "205b060e-0832-43b1-bbd5-d9e4a3207585", + "parentUUID": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "isHook": false, + "skipped": false + }, + { + "title": "should close upload module modal", + "fullTitle": "API : External Auth Server - Resource Endpoint Install module Keycloak OAuth2 connector demo should close upload module modal", + "timedOut": false, + "duration": 253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_preTest_1_closeModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeUploadModuleModal(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fe0fd29-ec6f-437a-8815-98014f1594e5", + "parentUUID": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "API : External Auth Server - Resource Endpoint Install module Keycloak OAuth2 connector demo should search the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 5602, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_preTest_1_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, module)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, 'Module is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "388f4d61-a466-4a8d-8ca7-52651b89282a", + "parentUUID": "0e379a16-c342-494e-8ea7-7a71d0b4a305", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1052f2f3-711a-4190-8429-22573e4df505", + "74cd4a00-81a9-49d7-b12a-aa3f34296d5d", + "4b53216d-b5e8-4104-9f02-eba7bedc75a6", + "205b060e-0832-43b1-bbd5-d9e4a3207585", + "4fe0fd29-ec6f-437a-8815-98014f1594e5", + "388f4d61-a466-4a8d-8ca7-52651b89282a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16365, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "title": "Resource Endpoint", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should login in BO", + "timedOut": false, + "duration": 1966, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n this.skip();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7b1272b-2c33-4127-bd59-fb95b225b9ab", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_2.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_2.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_2.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b4e9a67-1520-4e58-8b07-028bcf8c7b34", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should search the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, moduleManager_2.moduleManager.searchModule(page, modules_1.default.keycloak)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, 'Module is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "971e7247-c5a9-4743-a9ea-fd75ede9bbdf", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should go to the configuration page of the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, moduleManager_2.moduleManager.goToConfigurationPage(page, modules_1.default.keycloak.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, keycloakConnectorDemo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(keycloakConnectorDemo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ecbf8a7-5f9f-4483-89b8-da3c526e0e09", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + }, + { + "title": "should define the Keycloak Realm endpoint", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should define the Keycloak Realm endpoint", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_setKeycloakRealmEndpoint\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setKeycloakRealmEndpoint', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, keycloakConnectorDemo_1.default.setKeycloakEndpoint(page, \"\".concat(global.keycloakConfig.keycloakInternalUrl, \"/realms/master\"))];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(keycloakConnectorDemo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb1e3287-f0d2-483d-95aa-5286f3c6fd91", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/hook-status/1 without access token", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should request the endpoint /admin-dev/api/hook-status/1 without access token", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_requestEndpointWithoutAccessToken\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointWithoutAccessToken', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContext.get('api/hook-status/1')];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(401);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'WWW-Authenticate')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'WWW-Authenticate')).to.be.eq('Bearer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03e96b41-60fe-4b9a-831c-7b82b4648abc", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/hook-status/1 with invalid access token", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should request the endpoint /admin-dev/api/hook-status/1 with invalid access token", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_requestEndpointWithInvalidAccessToken\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointWithInvalidAccessToken', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContext.get('api/hook-status/1', {\n headers: {\n Authorization: 'Bearer INVALIDTOKEN',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(401);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'WWW-Authenticate')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'WWW-Authenticate')).to.be.eq('Bearer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8358b19-d6b0-48e5-80f2-27c1a2590fd6", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/hook-status/1 with expired access token", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should request the endpoint /admin-dev/api/hook-status/1 with expired access token", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_requestEndpointWithExpiredAccessToken\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointWithExpiredAccessToken', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContext.get('api/hook-status/1', {\n headers: {\n Authorization: \"Bearer \".concat(accessTokenExpiredKeycloak),\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(401);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'WWW-Authenticate')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'WWW-Authenticate')).to.be.eq('Bearer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53da6e91-76bf-49fe-a26e-2ab6fc47502d", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/hook-status/1 with valid access token", + "fullTitle": "API : External Auth Server - Resource Endpoint Resource Endpoint should request the endpoint /admin-dev/api/hook-status/1 with valid access token", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_requestEndpointWithValidAccessToken\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointWithValidAccessToken', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, apiContext.get('api/hook-status/1', {\n headers: {\n Authorization: \"Bearer \".concat(accessTokenKeycloak),\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('id');\n (0, chai_1.expect)(jsonResponse.id).to.be.a('number');\n (0, chai_1.expect)(jsonResponse).to.have.property('active');\n (0, chai_1.expect)(jsonResponse.active).to.be.a('boolean');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "232bd469-2da3-4e7a-a53f-98fa55e9a740", + "parentUUID": "4126dcf7-8786-4334-8bc1-316a6fe8de92", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [], + "failures": [], + "pending": [ + "d7b1272b-2c33-4127-bd59-fb95b225b9ab", + "9b4e9a67-1520-4e58-8b07-028bcf8c7b34", + "971e7247-c5a9-4743-a9ea-fd75ede9bbdf", + "4ecbf8a7-5f9f-4483-89b8-da3c526e0e09", + "fb1e3287-f0d2-483d-95aa-5286f3c6fd91", + "03e96b41-60fe-4b9a-831c-7b82b4648abc", + "f8358b19-d6b0-48e5-80f2-27c1a2590fd6", + "53da6e91-76bf-49fe-a26e-2ab6fc47502d", + "232bd469-2da3-4e7a-a53f-98fa55e9a740" + ], + "skipped": [], + "duration": 1966, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "432f2ba1-cb48-4411-a0e0-5da1ae77b96c", + "title": "Uninstall module Keycloak OAuth2 connector demo", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/02_resourceEndpoint.ts", + "file": "/campaigns/functional/API/01_clientCredentialGrantFlow/02_externalAuthServer/02_resourceEndpoint.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall module Keycloak OAuth2 connector demo\"", + "fullTitle": "API : External Auth Server - Resource Endpoint Uninstall module Keycloak OAuth2 connector demo \"before all\" hook in \"Uninstall module Keycloak OAuth2 connector demo\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60077f4f-7c58-4a6f-97e0-272d890ee451", + "parentUUID": "432f2ba1-cb48-4411-a0e0-5da1ae77b96c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall module Keycloak OAuth2 connector demo\"", + "fullTitle": "API : External Auth Server - Resource Endpoint Uninstall module Keycloak OAuth2 connector demo \"after all\" hook in \"Uninstall module Keycloak OAuth2 connector demo\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f237caf7-fbbf-40e6-80d8-f0db1eb16a57", + "parentUUID": "432f2ba1-cb48-4411-a0e0-5da1ae77b96c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : External Auth Server - Resource Endpoint Uninstall module Keycloak OAuth2 connector demo should login in BO", + "timedOut": false, + "duration": 1825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5df231cf-dd36-4591-b784-e760038f6920", + "parentUUID": "432f2ba1-cb48-4411-a0e0-5da1ae77b96c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "API : External Auth Server - Resource Endpoint Uninstall module Keycloak OAuth2 connector demo should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5254, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_postTest_1_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3feedf0c-ff22-47d8-b6c4-de35c0e3adb1", + "parentUUID": "432f2ba1-cb48-4411-a0e0-5da1ae77b96c", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "API : External Auth Server - Resource Endpoint Uninstall module Keycloak OAuth2 connector demo should search the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_postTest_1_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.keycloak)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, 'Module is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "156ad1c8-a1aa-4a66-a8b4-926725fde667", + "parentUUID": "432f2ba1-cb48-4411-a0e0-5da1ae77b96c", + "isHook": false, + "skipped": false + }, + { + "title": "should uninstall the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "API : External Auth Server - Resource Endpoint Uninstall module Keycloak OAuth2 connector demo should uninstall the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 2376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_clientCredentialGrantFlow_externalAuthServer_resourceEndpoint_postTest_1_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, module, 'uninstall')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uninstallModuleSuccessMessage(module.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "356240d4-cb54-422c-aaec-836f90bedc9e", + "parentUUID": "432f2ba1-cb48-4411-a0e0-5da1ae77b96c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5df231cf-dd36-4591-b784-e760038f6920", + "3feedf0c-ff22-47d8-b6c4-de35c0e3adb1", + "156ad1c8-a1aa-4a66-a8b4-926725fde667", + "356240d4-cb54-422c-aaec-836f90bedc9e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10120, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aace4abb-f8de-4fef-986d-f115ef59a15e", + "title": "API : GET /api/api-access/{apiAccessId}", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "file": "/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"API : GET /api/api-access/{apiAccessId}\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} \"before all\" hook in \"API : GET /api/api-access/{apiAccessId}\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.BO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2d3ca18-4dc8-41f7-a261-451c1121307c", + "parentUUID": "aace4abb-f8de-4fef-986d-f115ef59a15e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"API : GET /api/api-access/{apiAccessId}\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} \"after all\" hook in \"API : GET /api/api-access/{apiAccessId}\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2354c24a-9549-47c6-a714-081d939853ee", + "parentUUID": "aace4abb-f8de-4fef-986d-f115ef59a15e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "792a295e-de61-467e-9f60-2920f9672f20", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "file": "/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9e3ce98-4bd6-4f98-ae0d-f5269105de20", + "parentUUID": "792a295e-de61-467e-9f60-2920f9672f20", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "96aa324e-1f8f-4c7d-b494-ab472b429286", + "parentUUID": "792a295e-de61-467e-9f60-2920f9672f20", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 5727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0990f688-c779-4fd3-bfc9-9617aeb2b49e", + "parentUUID": "792a295e-de61-467e-9f60-2920f9672f20", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 5291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a192a3f-b760-4b9a-9925-9ff384e5d381", + "parentUUID": "792a295e-de61-467e-9f60-2920f9672f20", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 1074, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2924dbf-c76a-4d73-ad6e-ba272923f8f1", + "parentUUID": "792a295e-de61-467e-9f60-2920f9672f20", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0990f688-c779-4fd3-bfc9-9617aeb2b49e", + "6a192a3f-b760-4b9a-9925-9ff384e5d381", + "a2924dbf-c76a-4d73-ad6e-ba272923f8f1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12092, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dca6baac-62a8-40b0-abd5-4326128e2a09", + "title": "BackOffice : Fetch the access token", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "file": "/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Fetch the access token should login in BO", + "timedOut": false, + "duration": 1820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "328e348f-99e7-4176-9fe1-7791418a4a40", + "parentUUID": "dca6baac-62a8-40b0-abd5-4326128e2a09", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Fetch the access token should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8f8adfa-fcb6-4d29-806a-143071f6e4fe", + "parentUUID": "dca6baac-62a8-40b0-abd5-4326128e2a09", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Fetch the access token should check that no records found", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd66caed-4d1c-49f7-a0c6-e4fd91003cf8", + "parentUUID": "dca6baac-62a8-40b0-abd5-4326128e2a09", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Fetch the access token should go to add New API Access page", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94221c2a-8ee9-4d3c-bffd-49536296b38e", + "parentUUID": "dca6baac-62a8-40b0-abd5-4326128e2a09", + "isHook": false, + "skipped": false + }, + { + "title": "should create API Access", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Fetch the access token should create API Access", + "timedOut": false, + "duration": 1793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, clientAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, add_1.default.getAlertInfoBlockParagraphContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(add_1.default.apiAccessGeneratedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f539e0a4-ac6b-4722-beeb-4636a8608ba2", + "parentUUID": "dca6baac-62a8-40b0-abd5-4326128e2a09", + "isHook": false, + "skipped": false + }, + { + "title": "should copy client secret", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Fetch the access token should copy client secret", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_copyClientSecret\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'copyClientSecret', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.copyClientSecret(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getClipboardText(page)];\n case 3:\n clientSecret = _a.sent();\n (0, chai_1.expect)(clientSecret.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d149887d-773a-491a-b3b2-7a5375a3224c", + "parentUUID": "dca6baac-62a8-40b0-abd5-4326128e2a09", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Fetch the access token should request the endpoint /admin-dev/api/oauth2/token", + "timedOut": false, + "duration": 537, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_requestOauth2Token\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestOauth2Token', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token', {\n form: {\n client_id: clientAccess.clientId,\n client_secret: clientSecret,\n grant_type: 'client_credentials',\n scope: 'api_access_read',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('access_token');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.a('string');\n accessToken = jsonResponse.access_token;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f324ece6-ffcf-4f08-b13f-172409badfc3", + "parentUUID": "dca6baac-62a8-40b0-abd5-4326128e2a09", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "328e348f-99e7-4176-9fe1-7791418a4a40", + "e8f8adfa-fcb6-4d29-806a-143071f6e4fe", + "fd66caed-4d1c-49f7-a0c6-e4fd91003cf8", + "94221c2a-8ee9-4d3c-bffd-49536296b38e", + "f539e0a4-ac6b-4722-beeb-4636a8608ba2", + "d149887d-773a-491a-b3b2-7a5375a3224c", + "f324ece6-ffcf-4f08-b13f-172409badfc3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8976, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4df0fbfe-9e50-464e-b958-9632412ca86f", + "title": "BackOffice : Expected data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "file": "/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Expected data should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_returnToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87211b2c-a902-458a-bd8f-e89faec12433", + "parentUUID": "4df0fbfe-9e50-464e-b958-9632412ca86f", + "isHook": false, + "skipped": false + }, + { + "title": "should get informations", + "fullTitle": "API : GET /api/api-access/{apiAccessId} BackOffice : Expected data should get informations", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_getInformations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getInformations', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, APIAccess_1.default.getTextColumn(page, 'id_api_access', 1)];\n case 2:\n idApiAccess = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(idApiAccess).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56c96d46-e985-432a-9bdb-be261ab84c0d", + "parentUUID": "4df0fbfe-9e50-464e-b958-9632412ca86f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "87211b2c-a902-458a-bd8f-e89faec12433", + "56c96d46-e985-432a-9bdb-be261ab84c0d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3826, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7d674179-d2f2-47be-987c-dc5155fe052a", + "title": "API : Check Data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "file": "/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint /admin-dev/api/api-access/{apiAccessId}", + "fullTitle": "API : GET /api/api-access/{apiAccessId} API : Check Data should request the endpoint /admin-dev/api/api-access/{apiAccessId}", + "timedOut": false, + "duration": 94, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_requestEndpoint\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpoint', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.get(\"api/api-access/\".concat(idApiAccess), {\n headers: {\n Authorization: \"Bearer \".concat(accessToken),\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cd41f19-13d2-4c1b-a8f8-78bf97b6b6a6", + "parentUUID": "7d674179-d2f2-47be-987c-dc5155fe052a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `apiAccessId`", + "fullTitle": "API : GET /api/api-access/{apiAccessId} API : Check Data should check the JSON Response : `apiAccessId`", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_checkResponseApiAccessId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseApiAccessId', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('apiAccessId');\n (0, chai_1.expect)(jsonResponse.apiAccessId).to.be.a('number');\n (0, chai_1.expect)(jsonResponse.apiAccessId).to.be.equal(idApiAccess);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81098389-9ba3-4906-a7e8-674c1524f5c7", + "parentUUID": "7d674179-d2f2-47be-987c-dc5155fe052a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `clientName`", + "fullTitle": "API : GET /api/api-access/{apiAccessId} API : Check Data should check the JSON Response : `clientName`", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_checkResponseClientName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseClientName', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('clientName');\n (0, chai_1.expect)(jsonResponse.clientName).to.be.a('string');\n (0, chai_1.expect)(jsonResponse.clientName).to.be.equal(clientAccess.clientName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "821ddeac-0fc7-4e63-adb0-b422aee8ada8", + "parentUUID": "7d674179-d2f2-47be-987c-dc5155fe052a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `description`", + "fullTitle": "API : GET /api/api-access/{apiAccessId} API : Check Data should check the JSON Response : `description`", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_checkResponseDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseDescription', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('description');\n (0, chai_1.expect)(jsonResponse.description).to.be.a('string');\n (0, chai_1.expect)(jsonResponse.description).to.be.equal(clientAccess.description);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56586c27-2cc6-4dd1-ad87-76643b9ed7f2", + "parentUUID": "7d674179-d2f2-47be-987c-dc5155fe052a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `enabled`", + "fullTitle": "API : GET /api/api-access/{apiAccessId} API : Check Data should check the JSON Response : `enabled`", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_checkResponseEnabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseEnabled', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('enabled');\n (0, chai_1.expect)(jsonResponse.enabled).to.be.a('boolean');\n (0, chai_1.expect)(jsonResponse.enabled).to.be.equal(clientAccess.enabled);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bff26e77-e4ad-4c84-bbf9-d46c4228f917", + "parentUUID": "7d674179-d2f2-47be-987c-dc5155fe052a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9cd41f19-13d2-4c1b-a8f8-78bf97b6b6a6", + "81098389-9ba3-4906-a7e8-674c1524f5c7", + "821ddeac-0fc7-4e63-adb0-b422aee8ada8", + "56586c27-2cc6-4dd1-ad87-76643b9ed7f2", + "bff26e77-e4ad-4c84-bbf9-d46c4228f917" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 96, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fd6f269e-3df1-4fa8-80aa-e5fd67a31d2c", + "title": "PRE-TEST: Delete an API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "file": "/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} PRE-TEST: Delete an API Access \"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc887333-a7e1-4d72-84ed-a4e3e218d500", + "parentUUID": "fd6f269e-3df1-4fa8-80aa-e5fd67a31d2c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} PRE-TEST: Delete an API Access \"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "76865a10-b925-494a-aa5d-5f035aeb6700", + "parentUUID": "fd6f269e-3df1-4fa8-80aa-e5fd67a31d2c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/api-access/{apiAccessId} PRE-TEST: Delete an API Access should login in BO", + "timedOut": false, + "duration": 1759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36bc4844-4229-4e2a-9d47-7bd1d8ce689f", + "parentUUID": "fd6f269e-3df1-4fa8-80aa-e5fd67a31d2c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : GET /api/api-access/{apiAccessId} PRE-TEST: Delete an API Access should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_postTest_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfAPIAccess = _a.sent();\n (0, chai_1.expect)(numberOfAPIAccess).to.gte(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1d70e99-6ffe-4a6a-ab47-b19ebb4e8a15", + "parentUUID": "fd6f269e-3df1-4fa8-80aa-e5fd67a31d2c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete API Access", + "fullTitle": "API : GET /api/api-access/{apiAccessId} PRE-TEST: Delete an API Access should delete API Access", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_postTest_deleteAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.deleteAPIAccess(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulDeleteMessage);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d901baf-1e57-4fb4-a831-5aec98dce0ac", + "parentUUID": "fd6f269e-3df1-4fa8-80aa-e5fd67a31d2c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "36bc4844-4229-4e2a-9d47-7bd1d8ce689f", + "c1d70e99-6ffe-4a6a-ab47-b19ebb4e8a15", + "9d901baf-1e57-4fb4-a831-5aec98dce0ac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6443, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "212938fc-5313-4ca5-a33e-e13b4dacc30c", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "file": "/campaigns/functional/API/02_endpoints/01_apiAccess/01_getAPIApiAccessId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c32452f9-5e0f-40a1-8af4-793c15b41712", + "parentUUID": "212938fc-5313-4ca5-a33e-e13b4dacc30c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d4544388-21be-44a4-9d95-4f3c946f648b", + "parentUUID": "212938fc-5313-4ca5-a33e-e13b4dacc30c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa940c4e-d680-47b6-9cd0-d4c05ee32b78", + "parentUUID": "212938fc-5313-4ca5-a33e-e13b4dacc30c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12edf4df-4d6d-412b-92c0-012b4b519fed", + "parentUUID": "212938fc-5313-4ca5-a33e-e13b4dacc30c", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "API : GET /api/api-access/{apiAccessId} Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_apiAccess_getAPIApiAccessId_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c7331d4-c955-483f-a267-257286709319", + "parentUUID": "212938fc-5313-4ca5-a33e-e13b4dacc30c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aa940c4e-d680-47b6-9cd0-d4c05ee32b78", + "12edf4df-4d6d-412b-92c0-012b4b519fed", + "9c7331d4-c955-483f-a267-257286709319" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7101, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7095093b-077d-4aef-86d9-588e0e764b96", + "title": "API : GET /api/hook-status/{id}", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"API : GET /api/hook-status/{id}\"", + "fullTitle": "API : GET /api/hook-status/{id} \"before all\" hook in \"API : GET /api/hook-status/{id}\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.BO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45046fc6-8f30-403e-9e6e-2d8a0ab9d9bb", + "parentUUID": "7095093b-077d-4aef-86d9-588e0e764b96", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"API : GET /api/hook-status/{id}\"", + "fullTitle": "API : GET /api/hook-status/{id} \"after all\" hook in \"API : GET /api/hook-status/{id}\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d4eacd71-da4d-43fc-ab33-325fbe5102eb", + "parentUUID": "7095093b-077d-4aef-86d9-588e0e764b96", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4c6135cb-745d-4358-bfe7-228b0d8b8712", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/hook-status/{id} Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71dbfd19-f3ec-4ef6-a769-4876bb0d2489", + "parentUUID": "4c6135cb-745d-4358-bfe7-228b0d8b8712", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/hook-status/{id} Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "29ede4a9-e9de-4a32-b8eb-da900d3ba1aa", + "parentUUID": "4c6135cb-745d-4358-bfe7-228b0d8b8712", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/hook-status/{id} Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "596e0863-dc9f-469d-a1c9-9dc8b94f6e60", + "parentUUID": "4c6135cb-745d-4358-bfe7-228b0d8b8712", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : GET /api/hook-status/{id} Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bd05fd8-f76c-4f31-bfad-d1d635e6f885", + "parentUUID": "4c6135cb-745d-4358-bfe7-228b0d8b8712", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "API : GET /api/hook-status/{id} Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f766d26a-b91d-48a8-a081-df6382d56afd", + "parentUUID": "4c6135cb-745d-4358-bfe7-228b0d8b8712", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "596e0863-dc9f-469d-a1c9-9dc8b94f6e60", + "1bd05fd8-f76c-4f31-bfad-d1d635e6f885", + "f766d26a-b91d-48a8-a081-df6382d56afd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7483, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "95ee7df3-e7fa-418d-b7b5-d21b84790f99", + "title": "BackOffice : Fetch the access token", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Fetch the access token should login in BO", + "timedOut": false, + "duration": 1750, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6db4f1d2-992e-442e-83ab-a2e8daee86b0", + "parentUUID": "95ee7df3-e7fa-418d-b7b5-d21b84790f99", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Fetch the access token should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e4994ef-11d4-41a4-9c8d-fb7f3fd1ed06", + "parentUUID": "95ee7df3-e7fa-418d-b7b5-d21b84790f99", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Fetch the access token should check that no records found", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74486cc4-e8df-4504-a699-61bd8567ae2e", + "parentUUID": "95ee7df3-e7fa-418d-b7b5-d21b84790f99", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Fetch the access token should go to add New API Access page", + "timedOut": false, + "duration": 777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "543eefe0-1ffd-42e5-b1dd-289f8b5b1258", + "parentUUID": "95ee7df3-e7fa-418d-b7b5-d21b84790f99", + "isHook": false, + "skipped": false + }, + { + "title": "should create API Access", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Fetch the access token should create API Access", + "timedOut": false, + "duration": 1741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, clientAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, add_1.default.getAlertInfoBlockParagraphContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(add_1.default.apiAccessGeneratedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eed81407-f32d-4a7c-b2f9-b41058a85a63", + "parentUUID": "95ee7df3-e7fa-418d-b7b5-d21b84790f99", + "isHook": false, + "skipped": false + }, + { + "title": "should copy client secret", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Fetch the access token should copy client secret", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_copyClientSecret\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'copyClientSecret', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.copyClientSecret(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getClipboardText(page)];\n case 3:\n clientSecret = _a.sent();\n (0, chai_1.expect)(clientSecret.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f6a2678-a9ae-4ae5-a2c7-f376a3013ae5", + "parentUUID": "95ee7df3-e7fa-418d-b7b5-d21b84790f99", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Fetch the access token should request the endpoint /admin-dev/api/oauth2/token", + "timedOut": false, + "duration": 502, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_requestOauth2Token\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestOauth2Token', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token', {\n form: {\n client_id: clientAccess.clientId,\n client_secret: clientSecret,\n grant_type: 'client_credentials',\n scope: 'hook_read',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('access_token');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.a('string');\n accessToken = jsonResponse.access_token;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d45b1e7a-e78c-41ac-b654-02a005c0f1f6", + "parentUUID": "95ee7df3-e7fa-418d-b7b5-d21b84790f99", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6db4f1d2-992e-442e-83ab-a2e8daee86b0", + "7e4994ef-11d4-41a4-9c8d-fb7f3fd1ed06", + "74486cc4-e8df-4504-a699-61bd8567ae2e", + "543eefe0-1ffd-42e5-b1dd-289f8b5b1258", + "eed81407-f32d-4a7c-b2f9-b41058a85a63", + "6f6a2678-a9ae-4ae5-a2c7-f376a3013ae5", + "d45b1e7a-e78c-41ac-b654-02a005c0f1f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8636, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "79d97146-7e94-4ff3-a12b-c1d720e079f7", + "title": "BackOffice : Expected data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Design > Positions' page", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Expected data should go to 'Design > Positions' page", + "timedOut": false, + "duration": 5631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_goToPositionsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPositionsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.positionsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, positions_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, positions_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(positions_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08c1274a-55c1-4bcc-84f9-896f4533dda9", + "parentUUID": "79d97146-7e94-4ff3-a12b-c1d720e079f7", + "isHook": false, + "skipped": false + }, + { + "title": "should get the hook informations", + "fullTitle": "API : GET /api/hook-status/{id} BackOffice : Expected data should get the hook informations", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_getHookInformations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getHookInformations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.getHookId(page, 0)];\n case 2:\n idHook = _a.sent();\n (0, chai_1.expect)(idHook).to.be.gt(0);\n return [4 /*yield*/, positions_1.default.getHookStatus(page, 0)];\n case 3:\n statusHook = _a.sent();\n (0, chai_1.expect)(statusHook).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a04c1690-28a2-4013-b6a6-c24a4006dc70", + "parentUUID": "79d97146-7e94-4ff3-a12b-c1d720e079f7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "08c1274a-55c1-4bcc-84f9-896f4533dda9", + "a04c1690-28a2-4013-b6a6-c24a4006dc70" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5650, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e2025e25-b1be-44df-83a9-bd107f50d704", + "title": "API : Check Data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint /admin-dev/api/hook-status/{id}", + "fullTitle": "API : GET /api/hook-status/{id} API : Check Data should request the endpoint /admin-dev/api/hook-status/{id}", + "timedOut": false, + "duration": 75, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_requestEndpoint\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpoint', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.get(\"api/hook-status/\".concat(idHook), {\n headers: {\n Authorization: \"Bearer \".concat(accessToken),\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2afcc3a-7ca0-4c3f-a9c3-d27ab3ff6c1c", + "parentUUID": "e2025e25-b1be-44df-83a9-bd107f50d704", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `id`", + "fullTitle": "API : GET /api/hook-status/{id} API : Check Data should check the JSON Response : `id`", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_checkResponseId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseId', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('id');\n (0, chai_1.expect)(jsonResponse.id).to.be.a('number');\n (0, chai_1.expect)(jsonResponse.id).to.be.equal(idHook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcaf082c-937a-4366-b06c-1b0af667ccca", + "parentUUID": "e2025e25-b1be-44df-83a9-bd107f50d704", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `active`", + "fullTitle": "API : GET /api/hook-status/{id} API : Check Data should check the JSON Response : `active`", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_checkResponseActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseActive', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('active');\n (0, chai_1.expect)(jsonResponse.active).to.be.a('boolean');\n (0, chai_1.expect)(jsonResponse.active).to.be.equal(statusHook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e00073d-15d5-478e-8b10-f2aace367081", + "parentUUID": "e2025e25-b1be-44df-83a9-bd107f50d704", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d2afcc3a-7ca0-4c3f-a9c3-d27ab3ff6c1c", + "bcaf082c-937a-4366-b06c-1b0af667ccca", + "8e00073d-15d5-478e-8b10-f2aace367081" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 75, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4c30d90e-c3fb-4098-9f2d-eac932a1c951", + "title": "PRE-TEST: Delete an API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : GET /api/hook-status/{id} PRE-TEST: Delete an API Access \"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9da725ae-5e03-4d08-880b-aee5412a483c", + "parentUUID": "4c30d90e-c3fb-4098-9f2d-eac932a1c951", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : GET /api/hook-status/{id} PRE-TEST: Delete an API Access \"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "079b51f6-8fd9-4525-87f0-402e4dc80f8a", + "parentUUID": "4c30d90e-c3fb-4098-9f2d-eac932a1c951", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/hook-status/{id} PRE-TEST: Delete an API Access should login in BO", + "timedOut": false, + "duration": 1753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b8df39a-42b3-4a5b-80ac-fdf51e316a71", + "parentUUID": "4c30d90e-c3fb-4098-9f2d-eac932a1c951", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : GET /api/hook-status/{id} PRE-TEST: Delete an API Access should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_postTest_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfAPIAccess = _a.sent();\n (0, chai_1.expect)(numberOfAPIAccess).to.gte(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02ba4575-7d19-4bd1-bbf2-717768f3d1d3", + "parentUUID": "4c30d90e-c3fb-4098-9f2d-eac932a1c951", + "isHook": false, + "skipped": false + }, + { + "title": "should delete API Access", + "fullTitle": "API : GET /api/hook-status/{id} PRE-TEST: Delete an API Access should delete API Access", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_postTest_deleteAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.deleteAPIAccess(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulDeleteMessage);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7925999b-e99b-44de-97f0-b9951f787d5a", + "parentUUID": "4c30d90e-c3fb-4098-9f2d-eac932a1c951", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b8df39a-42b3-4a5b-80ac-fdf51e316a71", + "02ba4575-7d19-4bd1-bbf2-717768f3d1d3", + "7925999b-e99b-44de-97f0-b9951f787d5a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6447, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dc95321d-45d0-4f50-aaab-471c61f53729", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/hook-status/{id} Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e482ebe-e2bf-4fce-90cb-6d7552139df4", + "parentUUID": "dc95321d-45d0-4f50-aaab-471c61f53729", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/hook-status/{id} Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "05ea604e-731c-4d41-b7f6-5de96be95775", + "parentUUID": "dc95321d-45d0-4f50-aaab-471c61f53729", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/hook-status/{id} Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c7c0473-9539-47c4-8a7c-db0fba953029", + "parentUUID": "dc95321d-45d0-4f50-aaab-471c61f53729", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : GET /api/hook-status/{id} Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d31ddcfa-bd07-4327-ab0f-070aa80bc9e4", + "parentUUID": "dc95321d-45d0-4f50-aaab-471c61f53729", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "API : GET /api/hook-status/{id} Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 488, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHookStatusId_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "376494bd-545f-45a6-8a36-163f3ffae01f", + "parentUUID": "dc95321d-45d0-4f50-aaab-471c61f53729", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8c7c0473-9539-47c4-8a7c-db0fba953029", + "d31ddcfa-bd07-4327-ab0f-070aa80bc9e4", + "376494bd-545f-45a6-8a36-163f3ffae01f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7102, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f3897099-83e3-47c5-9ad1-ed322911c3f0", + "title": "API : GET /api/hooks/{id}", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"API : GET /api/hooks/{id}\"", + "fullTitle": "API : GET /api/hooks/{id} \"before all\" hook in \"API : GET /api/hooks/{id}\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.BO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a703304f-1840-4264-b715-d63928e67cec", + "parentUUID": "f3897099-83e3-47c5-9ad1-ed322911c3f0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"API : GET /api/hooks/{id}\"", + "fullTitle": "API : GET /api/hooks/{id} \"after all\" hook in \"API : GET /api/hooks/{id}\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ec7174c2-ae09-4973-bba9-8b18841bc928", + "parentUUID": "f3897099-83e3-47c5-9ad1-ed322911c3f0", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "982b7897-92c2-4bd2-94f2-ab1af4a51ee3", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/hooks/{id} Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3001e215-e29b-4439-9019-9d7c09f90b8e", + "parentUUID": "982b7897-92c2-4bd2-94f2-ab1af4a51ee3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/hooks/{id} Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "52ca40ba-c392-4b79-932d-0e141ba72caa", + "parentUUID": "982b7897-92c2-4bd2-94f2-ab1af4a51ee3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/hooks/{id} Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33120b06-8467-4d44-9096-2745065322d3", + "parentUUID": "982b7897-92c2-4bd2-94f2-ab1af4a51ee3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : GET /api/hooks/{id} Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91dee7b0-e9bf-476d-b4cf-3279c204e23a", + "parentUUID": "982b7897-92c2-4bd2-94f2-ab1af4a51ee3", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "API : GET /api/hooks/{id} Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24379496-adb6-41d3-860b-bcc12f019f39", + "parentUUID": "982b7897-92c2-4bd2-94f2-ab1af4a51ee3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "33120b06-8467-4d44-9096-2745065322d3", + "91dee7b0-e9bf-476d-b4cf-3279c204e23a", + "24379496-adb6-41d3-860b-bcc12f019f39" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7522, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1958c82a-73c5-45ce-ab85-22a42a4f7808", + "title": "BackOffice : Fetch the access token", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Fetch the access token should login in BO", + "timedOut": false, + "duration": 1738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa2e8b56-3128-451d-94a4-d411b8b81a41", + "parentUUID": "1958c82a-73c5-45ce-ab85-22a42a4f7808", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Fetch the access token should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a08b69c-8189-408b-b6fe-1677f9dd24fc", + "parentUUID": "1958c82a-73c5-45ce-ab85-22a42a4f7808", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Fetch the access token should check that no records found", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "581a35bb-fff1-405b-a3c3-4e6e2d870636", + "parentUUID": "1958c82a-73c5-45ce-ab85-22a42a4f7808", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Fetch the access token should go to add New API Access page", + "timedOut": false, + "duration": 773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "548f8502-a757-46a6-8c3d-247e0d6f9d0c", + "parentUUID": "1958c82a-73c5-45ce-ab85-22a42a4f7808", + "isHook": false, + "skipped": false + }, + { + "title": "should create API Access", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Fetch the access token should create API Access", + "timedOut": false, + "duration": 1698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, clientAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, add_1.default.getAlertInfoBlockParagraphContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(add_1.default.apiAccessGeneratedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca47cbc8-a46a-4f20-8741-d990ac39f85e", + "parentUUID": "1958c82a-73c5-45ce-ab85-22a42a4f7808", + "isHook": false, + "skipped": false + }, + { + "title": "should copy client secret", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Fetch the access token should copy client secret", + "timedOut": false, + "duration": 40, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_copyClientSecret\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'copyClientSecret', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.copyClientSecret(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getClipboardText(page)];\n case 3:\n clientSecret = _a.sent();\n (0, chai_1.expect)(clientSecret.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05d21cd4-651a-4952-8d7a-a61e4076d847", + "parentUUID": "1958c82a-73c5-45ce-ab85-22a42a4f7808", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint /admin-dev/api/oauth2/token", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Fetch the access token should request the endpoint /admin-dev/api/oauth2/token", + "timedOut": false, + "duration": 503, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_requestOauth2Token\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse, jsonResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestOauth2Token', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.post('api/oauth2/token', {\n form: {\n client_id: clientAccess.clientId,\n client_secret: clientSecret,\n grant_type: 'client_credentials',\n scope: 'hook_read',\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('access_token');\n (0, chai_1.expect)(jsonResponse.token_type).to.be.a('string');\n accessToken = jsonResponse.access_token;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b65423d-fcd4-4b35-900d-5f06fc791245", + "parentUUID": "1958c82a-73c5-45ce-ab85-22a42a4f7808", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aa2e8b56-3128-451d-94a4-d411b8b81a41", + "2a08b69c-8189-408b-b6fe-1677f9dd24fc", + "581a35bb-fff1-405b-a3c3-4e6e2d870636", + "548f8502-a757-46a6-8c3d-247e0d6f9d0c", + "ca47cbc8-a46a-4f20-8741-d990ac39f85e", + "05d21cd4-651a-4952-8d7a-a61e4076d847", + "4b65423d-fcd4-4b35-900d-5f06fc791245" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8595, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa0d40fe-1d56-4013-bde1-e0db06db5c0f", + "title": "BackOffice : Expected data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Design > Positions' page", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Expected data should go to 'Design > Positions' page", + "timedOut": false, + "duration": 5022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_goToPositionsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPositionsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.positionsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, positions_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, positions_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(positions_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26e96c38-a8d8-4a0c-9183-faa06c77d4df", + "parentUUID": "fa0d40fe-1d56-4013-bde1-e0db06db5c0f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the hook informations", + "fullTitle": "API : GET /api/hooks/{id} BackOffice : Expected data should get the hook informations", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_getHookInformations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getHookInformations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.getHookId(page, 0)];\n case 2:\n idHook = _a.sent();\n (0, chai_1.expect)(idHook).to.be.gt(0);\n return [4 /*yield*/, positions_1.default.getHookStatus(page, 0)];\n case 3:\n statusHook = _a.sent();\n (0, chai_1.expect)(statusHook).to.be.equal(true);\n return [4 /*yield*/, positions_1.default.getHookName(page, 0)];\n case 4:\n nameHook = _a.sent();\n (0, chai_1.expect)(nameHook.length).to.be.gt(0);\n return [4 /*yield*/, positions_1.default.getHookDescription(page, 0)];\n case 5:\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/34552\n //titleHook = await positionsPage.getHookStatus(page, 0);\n //expect(titleHook.length).to.be.gt(0);\n descriptionHook = _a.sent();\n (0, chai_1.expect)(descriptionHook.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55e46b76-80e2-48b5-af57-85ea87ef3c3e", + "parentUUID": "fa0d40fe-1d56-4013-bde1-e0db06db5c0f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "26e96c38-a8d8-4a0c-9183-faa06c77d4df", + "55e46b76-80e2-48b5-af57-85ea87ef3c3e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5061, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a862c120-953f-43de-8d02-522683fd1e45", + "title": "API : Check Data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint /admin-dev/api/hooks/{id}", + "fullTitle": "API : GET /api/hooks/{id} API : Check Data should request the endpoint /admin-dev/api/hooks/{id}", + "timedOut": false, + "duration": 68, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_requestEndpoint\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpoint', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiContext.get(\"api/hooks/\".concat(idHook), {\n headers: {\n Authorization: \"Bearer \".concat(accessToken),\n },\n })];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n (0, chai_1.expect)(api_1.default.hasResponseHeader(apiResponse, 'Content-Type')).to.eq(true);\n (0, chai_1.expect)(api_1.default.getResponseHeader(apiResponse, 'Content-Type')).to.contains('application/json');\n return [4 /*yield*/, apiResponse.json()];\n case 3:\n jsonResponse = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a741f3de-efc6-4ce8-a60f-7b2482657beb", + "parentUUID": "a862c120-953f-43de-8d02-522683fd1e45", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `id`", + "fullTitle": "API : GET /api/hooks/{id} API : Check Data should check the JSON Response : `id`", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_checkResponseId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseId', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('id');\n (0, chai_1.expect)(jsonResponse.id).to.be.a('number');\n (0, chai_1.expect)(jsonResponse.id).to.be.equal(idHook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94a6988e-1b34-4dec-be1a-4d7351fec057", + "parentUUID": "a862c120-953f-43de-8d02-522683fd1e45", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `active`", + "fullTitle": "API : GET /api/hooks/{id} API : Check Data should check the JSON Response : `active`", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_checkResponseActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseActive', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('active');\n (0, chai_1.expect)(jsonResponse.active).to.be.a('boolean');\n (0, chai_1.expect)(jsonResponse.active).to.be.equal(statusHook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a650cb4-bc4c-4b0b-8fd7-f32770285285", + "parentUUID": "a862c120-953f-43de-8d02-522683fd1e45", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `name`", + "fullTitle": "API : GET /api/hooks/{id} API : Check Data should check the JSON Response : `name`", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_checkResponseName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseName', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('name');\n (0, chai_1.expect)(jsonResponse.name).to.be.a('string');\n (0, chai_1.expect)(jsonResponse.name).to.be.equal(nameHook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a21732fe-92b7-4d73-9b58-406febabf1ec", + "parentUUID": "a862c120-953f-43de-8d02-522683fd1e45", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `title`", + "fullTitle": "API : GET /api/hooks/{id} API : Check Data should check the JSON Response : `title`", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_checkResponseTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseTitle', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3285562-65a9-431a-b1a6-d21f0e09aa63", + "parentUUID": "a862c120-953f-43de-8d02-522683fd1e45", + "isHook": false, + "skipped": false + }, + { + "title": "should check the JSON Response : `description`", + "fullTitle": "API : GET /api/hooks/{id} API : Check Data should check the JSON Response : `description`", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_checkResponseDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResponseDescription', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(jsonResponse).to.have.property('description');\n (0, chai_1.expect)(jsonResponse.description).to.be.a('string');\n (0, chai_1.expect)(jsonResponse.description).to.be.equal(descriptionHook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ba687e8-70ec-419a-91f6-604257587cca", + "parentUUID": "a862c120-953f-43de-8d02-522683fd1e45", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a741f3de-efc6-4ce8-a60f-7b2482657beb", + "94a6988e-1b34-4dec-be1a-4d7351fec057", + "2a650cb4-bc4c-4b0b-8fd7-f32770285285", + "a21732fe-92b7-4d73-9b58-406febabf1ec", + "5ba687e8-70ec-419a-91f6-604257587cca" + ], + "failures": [], + "pending": [ + "c3285562-65a9-431a-b1a6-d21f0e09aa63" + ], + "skipped": [], + "duration": 69, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1becf6f3-a3ef-4cef-8bb6-f629f31a1692", + "title": "PRE-TEST: Delete an API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : GET /api/hooks/{id} PRE-TEST: Delete an API Access \"before all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea693e4f-871c-4e5b-a992-c9e0d0ab98be", + "parentUUID": "1becf6f3-a3ef-4cef-8bb6-f629f31a1692", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "fullTitle": "API : GET /api/hooks/{id} PRE-TEST: Delete an API Access \"after all\" hook in \"PRE-TEST: Delete an API Access\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e75a0d38-2698-4bbf-b4bf-eb5bb42e51e1", + "parentUUID": "1becf6f3-a3ef-4cef-8bb6-f629f31a1692", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/hooks/{id} PRE-TEST: Delete an API Access should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d33032f4-affa-4c68-a3b8-d5d96ac57039", + "parentUUID": "1becf6f3-a3ef-4cef-8bb6-f629f31a1692", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "API : GET /api/hooks/{id} PRE-TEST: Delete an API Access should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_postTest_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfAPIAccess = _a.sent();\n (0, chai_1.expect)(numberOfAPIAccess).to.gte(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0b0de12-2be3-4867-9cb3-cf3ba3abd212", + "parentUUID": "1becf6f3-a3ef-4cef-8bb6-f629f31a1692", + "isHook": false, + "skipped": false + }, + { + "title": "should delete API Access", + "fullTitle": "API : GET /api/hooks/{id} PRE-TEST: Delete an API Access should delete API Access", + "timedOut": false, + "duration": 826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_postTest_deleteAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.deleteAPIAccess(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulDeleteMessage);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "654aa61c-1e2f-4297-a227-236f82cd74b2", + "parentUUID": "1becf6f3-a3ef-4cef-8bb6-f629f31a1692", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d33032f4-affa-4c68-a3b8-d5d96ac57039", + "d0b0de12-2be3-4867-9cb3-cf3ba3abd212", + "654aa61c-1e2f-4297-a227-236f82cd74b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6398, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5542ef69-7399-4d4c-809f-896a53aaa1f2", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "file": "/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/hooks/{id} Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91945fea-093c-4c83-aabb-9f90fd62b17d", + "parentUUID": "5542ef69-7399-4d4c-809f-896a53aaa1f2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "API : GET /api/hooks/{id} Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "26ada867-a581-44aa-893e-f77b48459efb", + "parentUUID": "5542ef69-7399-4d4c-809f-896a53aaa1f2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "API : GET /api/hooks/{id} Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79003742-346d-4ccb-a8c1-05cbb517648a", + "parentUUID": "5542ef69-7399-4d4c-809f-896a53aaa1f2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "API : GET /api/hooks/{id} Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8374d440-58cf-4add-bdcd-cb1c998406b0", + "parentUUID": "5542ef69-7399-4d4c-809f-896a53aaa1f2", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "API : GET /api/hooks/{id} Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 474, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_API_endpoints_hook_getAPIHooksId_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d73095cd-85e3-48c8-ab12-f974aca915f0", + "parentUUID": "5542ef69-7399-4d4c-809f-896a53aaa1f2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "79003742-346d-4ccb-a8c1-05cbb517648a", + "8374d440-58cf-4add-bdcd-cb1c998406b0", + "d73095cd-85e3-48c8-ab12-f974aca915f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7074, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "8ee86b3d-d4cb-467c-be28-760935b6e8d4", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 379, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25018ca5-751e-4868-8035-9722810da95f", + "parentUUID": "8ee86b3d-d4cb-467c-be28-760935b6e8d4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61223286-c8b7-4a16-9a10-09b44a58ca92", + "parentUUID": "8ee86b3d-d4cb-467c-be28-760935b6e8d4", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dce8ba5-0223-4190-a146-bc52facb7550", + "parentUUID": "8ee86b3d-d4cb-467c-be28-760935b6e8d4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "title": "BO - Advanced Parameters - Performance : Enable/Disable debug mode", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/02_performance/02_debugMode.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/02_performance/02_debugMode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Performance : Enable/Disable debug mode\"", + "fullTitle": "BO - Advanced Parameters - Performance : Enable/Disable debug mode \"before all\" hook in \"BO - Advanced Parameters - Performance : Enable/Disable debug mode\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f6a67a2-1d46-4f20-a1dc-bb54e63cb87d", + "parentUUID": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Performance : Enable/Disable debug mode\"", + "fullTitle": "BO - Advanced Parameters - Performance : Enable/Disable debug mode \"after all\" hook in \"BO - Advanced Parameters - Performance : Enable/Disable debug mode\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "068e0d7c-ffb9-45a2-bb17-bdf6adf5dbce", + "parentUUID": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Performance : Enable/Disable debug mode should login in BO", + "timedOut": false, + "duration": 6449, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "027eaf0f-9c2a-4515-8833-057dedb19eba", + "parentUUID": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Performance' page", + "fullTitle": "BO - Advanced Parameters - Performance : Enable/Disable debug mode should go to 'Advanced Parameters > Performance' page", + "timedOut": false, + "duration": 4309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_performance_debugMode_goToPerformancePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPerformancePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.performanceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, performance_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(performance_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18cd25ca-4d69-4f81-a60f-ed2938001607", + "parentUUID": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "isHook": false, + "skipped": false + }, + { + "title": "should enable debug mode", + "fullTitle": "BO - Advanced Parameters - Performance : Enable/Disable debug mode should enable debug mode", + "timedOut": false, + "duration": 5864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_performance_debugMode_enableDebugMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DebugMode\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, performance_1.default.setDebugMode(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(performance_1.default.successUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af119d20-c0a3-4671-aa7e-bdc4dc4b63d4", + "parentUUID": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the debug toolbar", + "fullTitle": "BO - Advanced Parameters - Performance : Enable/Disable debug mode should check the debug toolbar", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_performance_debugMode_checkDebugMode0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkDebugMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, performance_1.default.isDebugModeToggleVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce3aa6ed-1253-4cc1-8dcd-2a6aea6a3379", + "parentUUID": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "isHook": false, + "skipped": false + }, + { + "title": "should disable debug mode", + "fullTitle": "BO - Advanced Parameters - Performance : Enable/Disable debug mode should disable debug mode", + "timedOut": false, + "duration": 1288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_performance_debugMode_disableDebugMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DebugMode\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, performance_1.default.setDebugMode(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(performance_1.default.successUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15263db1-c1c6-431d-a125-f28fb8d137a5", + "parentUUID": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the debug toolbar", + "fullTitle": "BO - Advanced Parameters - Performance : Enable/Disable debug mode should check the debug toolbar", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_performance_debugMode_checkDebugMode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkDebugMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, performance_1.default.isDebugModeToggleVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b6760bd-be2e-49d0-abb9-6c626a1552f0", + "parentUUID": "82ba210e-f7f0-45b4-a780-06a0de9e22e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "027eaf0f-9c2a-4515-8833-057dedb19eba", + "18cd25ca-4d69-4f81-a60f-ed2938001607", + "af119d20-c0a3-4671-aa7e-bdc4dc4b63d4", + "ce3aa6ed-1253-4cc1-8dcd-2a6aea6a3379", + "15263db1-c1c6-431d-a125-f28fb8d137a5", + "5b6760bd-be2e-49d0-abb9-6c626a1552f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 18917, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "title": "BO - Advanced Parameters - Administration : Check general options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/01_general.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/01_general.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Administration : Check general options\"", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options \"before all\" hook in \"BO - Advanced Parameters - Administration : Check general options\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5bff720-5ae6-4310-8888-4b87287918bf", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Administration : Check general options\"", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options \"after all\" hook in \"BO - Advanced Parameters - Administration : Check general options\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "96b08a75-9187-432b-a5f6-3fa253262be7", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should login in BO", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8304fda9-7155-4065-9904-141531aab468", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Administration' page", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should go to 'Advanced Parameters > Administration' page", + "timedOut": false, + "duration": 3860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_goToAdministrationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdministrationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.administrationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(administration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4e12ca8-e4f5-49ae-8098-34b7d3b08091", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should disable 'Cookie's IP address'", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should disable 'Cookie's IP address'", + "timedOut": false, + "duration": 375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_disableCookiesIPAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableCookiesIPAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setCookiesIPAddress(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.saveGeneralForm(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "560a73db-f1af-4c2b-b24d-9d5d67fc17ec", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Cookie's IP address' is disabled", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should check that the 'Cookie's IP address' is disabled", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_checkThatCookieIpAddressDisabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatCookieIpAddressDisabled', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.isCheckCookiesAddressEnabled(page)];\n case 2:\n isEnabled = _a.sent();\n (0, chai_1.expect)(isEnabled).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76a85dbc-0def-4d2c-87a5-df7e7ffb1b7d", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should enable 'Cookie's IP address'", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should enable 'Cookie's IP address'", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_enableCookiesIPAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableCookiesIPAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setCookiesIPAddress(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.saveGeneralForm(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32e48926-3d03-4850-9151-b42c41063468", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Cookie's IP address' is enabled", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should check that the 'Cookie's IP address' is enabled", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_checkThatCookieIpAddressEnabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatCookieIpAddressEnabled', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.isCheckCookiesAddressEnabled(page)];\n case 2:\n isEnabled = _a.sent();\n (0, chai_1.expect)(isEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29f81199-9f2b-4d1e-b293-b4937e2b51bf", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should update 'Lifetime of front office cookies'", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should update 'Lifetime of front office cookies'", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_updateLifetimeOfFOCookies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateLifetimeOfFOCookies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setLifetimeFOCookies(page, 500)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.saveGeneralForm(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30e0eb6c-0c13-4b81-983e-83309890cd8d", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should update ' Lifetime of back office cookies'", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should update ' Lifetime of back office cookies'", + "timedOut": false, + "duration": 330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_updateLifetimeOfBOCookies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateLifetimeOfBOCookies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setLifetimeBOCookies(page, 500)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.saveGeneralForm(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b153b6e-df2f-40cb-b0ef-68afad506ff5", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should update 'Cookie SameSite' to 'Strict' value", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should update 'Cookie SameSite' to 'Strict' value", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_updateCookieSameSite1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCookieSameSite1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setCookieSameSite(page, 'Strict')];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.saveGeneralForm(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fa46a45-c59d-4b82-89d3-6fe927b8f7f4", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should update 'Cookie SameSite' to 'None' value", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should update 'Cookie SameSite' to 'None' value", + "timedOut": false, + "duration": 345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_updateCookieSameSite2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCookieSameSite2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setCookieSameSite(page, 'None')];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.saveGeneralForm(page)];\n case 3:\n message = _a.sent();\n if (global.INSTALL.ENABLE_SSL) {\n (0, chai_1.expect)(message).to.eq(administration_1.default.successfulUpdateMessage);\n }\n else {\n (0, chai_1.expect)(message).to.eq(administration_1.default.dangerAlertCookieSameSite);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6bb3b71-337d-4227-8e1a-43ca29f5831c", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + }, + { + "title": "should update 'Cookie SameSite' to 'default' value", + "fullTitle": "BO - Advanced Parameters - Administration : Check general options should update 'Cookie SameSite' to 'default' value", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_general_updateCookieSameSite3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCookieSameSite3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setCookieSameSite(page, 'Lax')];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.saveGeneralForm(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2894652a-3c25-4303-a72a-7a2297d2632c", + "parentUUID": "30a0f8ea-2056-4a1f-91fc-bb2cb1286012", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8304fda9-7155-4065-9904-141531aab468", + "d4e12ca8-e4f5-49ae-8098-34b7d3b08091", + "560a73db-f1af-4c2b-b24d-9d5d67fc17ec", + "76a85dbc-0def-4d2c-87a5-df7e7ffb1b7d", + "32e48926-3d03-4850-9151-b42c41063468", + "29f81199-9f2b-4d1e-b293-b4937e2b51bf", + "30e0eb6c-0c13-4b81-983e-83309890cd8d", + "9b153b6e-df2f-40cb-b0ef-68afad506ff5", + "1fa46a45-c59d-4b82-89d3-6fe927b8f7f4", + "c6bb3b71-337d-4227-8e1a-43ca29f5831c", + "2894652a-3c25-4303-a72a-7a2297d2632c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7969, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cfca6310-21ff-4cf0-970a-2bf640317fc8", + "title": "BO - Advanced Parameters - Administration : Upload quota", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/02_uploadQuota.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/02_uploadQuota.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Administration : Upload quota\"", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota \"before all\" hook in \"BO - Advanced Parameters - Administration : Upload quota\"", + "timedOut": false, + "duration": 937, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create image with size > 2MB\n return [4 /*yield*/, files_1.default.generateImage(firstFileData.filename, 1000, 1500, 92)];\n case 3:\n // Create image with size > 2MB\n _a.sent();\n // Create image with size < 2MB\n return [4 /*yield*/, files_1.default.generateImage(secondFileData.filename, 1000, 1500, 70)];\n case 4:\n // Create image with size < 2MB\n _a.sent();\n // Create image with size < 1MB\n return [4 /*yield*/, files_1.default.generateImage(thirdFileData.filename, 100, 200)];\n case 5:\n // Create image with size < 1MB\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc42fa5f-1dd6-41bc-82b5-0e93171fea18", + "parentUUID": "cfca6310-21ff-4cf0-970a-2bf640317fc8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Administration : Upload quota\"", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota \"after all\" hook in \"BO - Advanced Parameters - Administration : Upload quota\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(firstFileData.filename)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(secondFileData.filename)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(thirdFileData.filename)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5364cb7f-0ae6-4d59-871b-c6ee80375fa2", + "parentUUID": "cfca6310-21ff-4cf0-970a-2bf640317fc8", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0f88935b-762f-4121-a3f3-472c132c20dd", + "title": "Check 'Maximum size for attached files'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/02_uploadQuota.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/02_uploadQuota.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for attached files' should login in BO", + "timedOut": false, + "duration": 1754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "416085e6-0050-4a98-857b-4c18f6977296", + "parentUUID": "0f88935b-762f-4121-a3f3-472c132c20dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Administration' page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for attached files' should go to 'Advanced Parameters > Administration' page", + "timedOut": false, + "duration": 3839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToAdministrationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdministrationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.administrationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(administration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acf01562-7575-4179-b82f-14c522d02dcb", + "parentUUID": "0f88935b-762f-4121-a3f3-472c132c20dd", + "isHook": false, + "skipped": false + }, + { + "title": "should set the 'Maximum size for attached files' to 2MB", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for attached files' should set the 'Maximum size for attached files' to 2MB", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_setMaximumSizeForAttachedFiles\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMaximumSizeForAttachedFiles', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setMaxSizeAttachedFiles(page, 2)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60d3b10b-e0a9-4246-ac53-79e62bea68c9", + "parentUUID": "0f88935b-762f-4121-a3f3-472c132c20dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Files' page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for attached files' should go to 'Catalog > Files' page", + "timedOut": false, + "duration": 4608, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToFilesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFilesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.filesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(files_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "674b0bac-9c28-4529-8cc2-3c9222b951d8", + "parentUUID": "0f88935b-762f-4121-a3f3-472c132c20dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new file page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for attached files' should go to new file page", + "timedOut": false, + "duration": 753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToNewFilePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewFilePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_2.default.goToAddNewFilePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61c15c5b-4fad-4893-883f-64e7cc022314", + "parentUUID": "0f88935b-762f-4121-a3f3-472c132c20dd", + "isHook": false, + "skipped": false + }, + { + "title": "should try to upload a file > 2MB and check the error message alert", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for attached files' should try to upload a file > 2MB and check the error message alert", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_createFileAndCheckError\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createFileAndCheckError', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditFile(page, firstFileData, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getTextDanger(page)];\n case 3:\n errorAlert = _a.sent();\n (0, chai_1.expect)(errorAlert).to.equal('Upload error. Please check your server configurations for the maximum upload size allowed.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce01e726-6420-4cb2-8f9e-e1a29433ce8e", + "parentUUID": "0f88935b-762f-4121-a3f3-472c132c20dd", + "isHook": false, + "skipped": false + }, + { + "title": "should upload a file < 2MB and check the validation message", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for attached files' should upload a file < 2MB and check the validation message", + "timedOut": false, + "duration": 1553, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_createFileAndCheckSuccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createFileAndCheckSuccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditFile(page, secondFileData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(files_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9af9757d-2bd5-489e-94a2-e393568dc438", + "parentUUID": "0f88935b-762f-4121-a3f3-472c132c20dd", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created file", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for attached files' should delete the created file", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_deleteFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_2.default.deleteFile(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(files_2.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "194e6bf5-43dd-4a4a-bfa2-5633e9a42124", + "parentUUID": "0f88935b-762f-4121-a3f3-472c132c20dd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "416085e6-0050-4a98-857b-4c18f6977296", + "acf01562-7575-4179-b82f-14c522d02dcb", + "60d3b10b-e0a9-4246-ac53-79e62bea68c9", + "674b0bac-9c28-4529-8cc2-3c9222b951d8", + "61c15c5b-4fad-4893-883f-64e7cc022314", + "ce01e726-6420-4cb2-8f9e-e1a29433ce8e", + "9af9757d-2bd5-489e-94a2-e393568dc438", + "194e6bf5-43dd-4a4a-bfa2-5633e9a42124" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14707, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "title": "Check 'Maximum size for a downloadable product'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/02_uploadQuota.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/02_uploadQuota.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Administration' page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should go to 'Advanced Parameters > Administration' page", + "timedOut": false, + "duration": 3603, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToAdministrationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdministrationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.administrationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(administration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96913ce0-6797-4c61-9f34-b840582440fe", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + }, + { + "title": "should set the 'Maximum size for a downloadable product' to 2MB", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should set the 'Maximum size for a downloadable product' to 2MB", + "timedOut": false, + "duration": 316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_setMaximumSizeForAttachedFiles2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMaximumSizeForAttachedFiles2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setMaxSizeDownloadedProduct(page, 2)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccfa6fad-9cb9-4f5c-b470-09bac0f399fe", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ee4cf7b-dc05-4bae-8664-af2d7c2d8135", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 220, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89a61416-421a-4c50-9068-363831a7c95c", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Virtual product'", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should choose 'Virtual product'", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_chooseVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, firstVirtualProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "773cadca-f406-436c-95f9-40c3767b3169", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should go to new product page", + "timedOut": false, + "duration": 58, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToNewFoProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewFoProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92a10541-787b-4c65-9607-2d8393225eb5", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + }, + { + "title": "should try to add a file in virtual tab > 2 MB and check the error message", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should try to add a file in virtual tab > 2 MB and check the error message", + "timedOut": false, + "duration": 2684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_createVirtualProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createVirtualProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, firstVirtualProductData.name, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setVirtualProduct(page, firstVirtualProductData)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnSaveProductButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.getErrorMessageInDownloadFileInput(page)];\n case 5:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.contains('The file is too large')\n .and.to.contains('Allowed maximum size is 2 MB.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c06f012d-4791-4976-9fb7-36abdfe09f1d", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + }, + { + "title": "should try to add a file in virtual tab < 2 MB", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should try to add a file in virtual tab < 2 MB", + "timedOut": false, + "duration": 1769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_createVirtualProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createVirtualProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setVirtualProduct(page, secondVirtualProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcfef47f-120b-4869-ae89-09f8da274992", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created product", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a downloadable product' should delete the created product", + "timedOut": false, + "duration": 1509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_deleteCreatedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCreatedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31b6e6e2-6239-43cd-8701-3305582ec349", + "parentUUID": "96f203a5-3e2d-4766-93ff-762eea15a5f6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "96913ce0-6797-4c61-9f34-b840582440fe", + "ccfa6fad-9cb9-4f5c-b470-09bac0f399fe", + "1ee4cf7b-dc05-4bae-8664-af2d7c2d8135", + "89a61416-421a-4c50-9068-363831a7c95c", + "773cadca-f406-436c-95f9-40c3767b3169", + "92a10541-787b-4c65-9607-2d8393225eb5", + "c06f012d-4791-4976-9fb7-36abdfe09f1d", + "dcfef47f-120b-4869-ae89-09f8da274992", + "31b6e6e2-6239-43cd-8701-3305582ec349" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15718, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "title": "Check 'Maximum size for a product's image'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/02_uploadQuota.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/02_uploadQuota.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Administration' page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should go to 'Advanced Parameters > Administration' page", + "timedOut": false, + "duration": 3581, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToAdministrationPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdministrationPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.administrationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(administration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfec0025-41e5-404f-bd48-7daf297ea396", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + }, + { + "title": "should set the 'Maximum size for a product' to 1MB", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should set the 'Maximum size for a product' to 1MB", + "timedOut": false, + "duration": 292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_setMaximumSizeForAttachedFiles3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMaximumSizeForAttachedFiles3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setMaxSizeForProductImage(page, 1)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25c79eb5-6909-4370-8b83-bb23f4a0a236", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToProductsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b2e2b14-5e8c-4458-b0d6-26579b382b4e", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_clickOnNewProductButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf4e4d1c-2e3b-46d8-bc70-597c36dce2d7", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should choose 'Standard product'", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, firstStandardProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05d55cb7-8854-41d3-baeb-43e73ea91008", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_goToNewFoProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewFoProductPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8327f01b-7693-4dd3-9c11-62399b3440ed", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product and add an image size > 1MB then check the error message", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should create standard product and add an image size > 1MB then check the error message", + "timedOut": false, + "duration": 1859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_addImageAndCheckErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addImageAndCheckErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, firstVirtualProductData.name, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.uploadProductImages(page, [firstStandardProductData.coverImage, firstStandardProductData.thumbImage])];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getGrowlMessageContent(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq('Max file size allowed is \"1048576\" bytes.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cd6ae4d-2253-4943-9a8b-6caf84b72204", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product and add an image size < 1MB then check the validation message", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should create standard product and add an image size < 1MB then check the validation message", + "timedOut": false, + "duration": 1765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_addImageAndCheckSuccessMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addImageAndCheckSuccessMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, firstVirtualProductData.name, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.uploadProductImages(page, [secondStandardProductData.coverImage, secondStandardProductData.thumbImage])];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "450aff59-e3bc-4803-8994-efc74c8451f9", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created product", + "fullTitle": "BO - Advanced Parameters - Administration : Upload quota Check 'Maximum size for a product's image' should delete the created product", + "timedOut": false, + "duration": 1576, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_uploadQuota_deleteFile2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFile2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5772b03-7fb6-4ece-aba8-d738837f3d2a", + "parentUUID": "850ec307-e82f-4fa7-abc0-73384cda4dd2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bfec0025-41e5-404f-bd48-7daf297ea396", + "25c79eb5-6909-4370-8b83-bb23f4a0a236", + "9b2e2b14-5e8c-4458-b0d6-26579b382b4e", + "cf4e4d1c-2e3b-46d8-bc70-597c36dce2d7", + "05d55cb7-8854-41d3-baeb-43e73ea91008", + "8327f01b-7693-4dd3-9c11-62399b3440ed", + "6cd6ae4d-2253-4943-9a8b-6caf84b72204", + "450aff59-e3bc-4803-8994-efc74c8451f9", + "e5772b03-7fb6-4ece-aba8-d738837f3d2a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14860, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aae43ad6-fdee-4d9c-a452-6b3ac03bf74f", + "title": "BO - Advanced Parameters - Administration : Check notifications", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Administration : Check notifications\"", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications \"before all\" hook in \"BO - Advanced Parameters - Administration : Check notifications\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0d8616a-e26e-45e9-a112-8cb34e3e2adc", + "parentUUID": "aae43ad6-fdee-4d9c-a452-6b3ac03bf74f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Administration : Check notifications\"", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications \"after all\" hook in \"BO - Advanced Parameters - Administration : Check notifications\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "eb80309a-1244-400f-b918-dedda34f79cf", + "parentUUID": "aae43ad6-fdee-4d9c-a452-6b3ac03bf74f", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d6842cde-10aa-44a5-8b14-f1817345ccb6", + "title": "Disable all notifications", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Disable all notifications should login in BO", + "timedOut": false, + "duration": 1691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c45bddc1-6efd-4403-a88e-76ffe816a757", + "parentUUID": "d6842cde-10aa-44a5-8b14-f1817345ccb6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on notifications icon", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Disable all notifications should click on notifications icon", + "timedOut": false, + "duration": 198, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_clickOnNotificationsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotificationsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNotificationsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsLink(page)];\n case 2:\n isNotificationsVisible = _a.sent();\n (0, chai_1.expect)(isNotificationsVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsTab(page, 'customers')];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsTab(page, 'messages')];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22540419-3755-4d01-8556-dbbd81f68a37", + "parentUUID": "d6842cde-10aa-44a5-8b14-f1817345ccb6", + "isHook": false, + "skipped": false + }, + { + "title": "should refresh the page and check that the notifications number is equal to 0", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Disable all notifications should refresh the page and check that the notifications number is equal to 0", + "timedOut": false, + "duration": 2203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_refreshPageAndCheckNotificationsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'refreshPageAndCheckNotificationsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getAllNotificationsNumber(page)];\n case 3:\n number = _a.sent();\n (0, chai_1.expect)(number).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79bac0ac-90b1-490c-bba7-ad705566debd", + "parentUUID": "d6842cde-10aa-44a5-8b14-f1817345ccb6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Administration' page", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Disable all notifications should go to 'Advanced Parameters > Administration' page", + "timedOut": false, + "duration": 3810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goToAdministrationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdministrationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.administrationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(administration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "546783ff-7dc5-4a87-b5f5-8049dfd14f8f", + "parentUUID": "d6842cde-10aa-44a5-8b14-f1817345ccb6", + "isHook": false, + "skipped": false + }, + { + "title": "should disable all notifications", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Disable all notifications should disable all notifications", + "timedOut": false, + "duration": 2664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_disableAllNotifications\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableAllNotifications', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setShowNotificationsForNewOrders(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [4 /*yield*/, administration_1.default.setShowNotificationsForNewCustomers(page, false)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [4 /*yield*/, administration_1.default.setShowNotificationsForNewMessages(page, false)];\n case 4:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9721d97-d39d-4b18-b2ec-30cb537b82b9", + "parentUUID": "d6842cde-10aa-44a5-8b14-f1817345ccb6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the notifications icon is not visible in the header page", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Disable all notifications should check that the notifications icon is not visible in the header page", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_checkIconNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isLinkVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIconNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.isNotificationsLinkVisible(page)];\n case 2:\n isLinkVisible = _a.sent();\n (0, chai_1.expect)(isLinkVisible).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "368c56e2-41ee-49ae-978d-654ca11bb756", + "parentUUID": "d6842cde-10aa-44a5-8b14-f1817345ccb6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c45bddc1-6efd-4403-a88e-76ffe816a757", + "22540419-3755-4d01-8556-dbbd81f68a37", + "79bac0ac-90b1-490c-bba7-ad705566debd", + "546783ff-7dc5-4a87-b5f5-8049dfd14f8f", + "b9721d97-d39d-4b18-b2ec-30cb537b82b9", + "368c56e2-41ee-49ae-978d-654ca11bb756" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11567, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f9099142-bf0c-4ca3-b600-5130b4555487", + "title": "Check 'Show notifications for new orders'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should enable new notifications for new orders", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should enable new notifications for new orders", + "timedOut": false, + "duration": 865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_enableNotificationsNewOrders\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableNotificationsNewOrders', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setShowNotificationsForNewOrders(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c315edb-8267-428e-9db5-1a50064e3bcc", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should view my shop", + "timedOut": false, + "duration": 1853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f262a32f-d880-4f88-b708-581bf0b9bf1c", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should go to login page", + "timedOut": false, + "duration": 715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goToLoginFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c6b2017-d6f1-4ba5-8088-e4fd4ffd38a8", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should sign in with default customer", + "timedOut": false, + "duration": 651, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_sighInFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_2.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a649066e-67f0-4951-a12d-6501bebed64d", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should add product to cart", + "timedOut": false, + "duration": 7333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14a0656d-0047-4481-8f44-cdc477c7f8c2", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should go to delivery step", + "timedOut": false, + "duration": 1067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10fbc331-6836-4a10-b13b-314d4673c4ae", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should go to payment step", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "feeb6173-586a-4bcf-a4af-e034c6c32c3b", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should choose payment method and confirm the order", + "timedOut": false, + "duration": 1558, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1f7b6fb-53ae-4a05-abf0-10fb0cd3eebb", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should go back to BO", + "timedOut": false, + "duration": 251, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(administration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca626d42-345c-41d6-8a45-88a9ec1dc209", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should check notifications number", + "timedOut": false, + "duration": 2015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_checkNotificationsNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getAllNotificationsNumber(page)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba80a2c9-27c8-4eaf-9f26-143933ed3355", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should click on notifications icon", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should click on notifications icon", + "timedOut": false, + "duration": 66, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_clickOnNotificationsLink2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotificationsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNotificationsLink2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.clickOnNotificationsLink(page)];\n case 2:\n isNotificationsVisible = _a.sent();\n (0, chai_1.expect)(isNotificationsVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d319192-5661-4de4-b4ac-8d60afab5bf9", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number in orders tab", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should check notifications number in orders tab", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_checkNotificationsInOrdersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsInOrdersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getNotificationsNumberInTab(page, 'orders')];\n case 2:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "defe2339-5cfc-4f74-bb5b-af27f8d8ae8c", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should check that customers tab is not visible", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should check that customers tab is not visible", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_isCustomersTabInvisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isCustomersTabInvisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.isNotificationsTabVisible(page, 'customers')];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e203b7b8-5de9-4c48-a980-dc0477545d56", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + }, + { + "title": "should check that messages tab is not visible", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new orders' should check that messages tab is not visible", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_isMessagesTabInvisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isMessagesTabInvisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.isNotificationsTabVisible(page, 'messages')];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b61c13e8-953c-4849-80cf-8ab35b6b60d6", + "parentUUID": "f9099142-bf0c-4ca3-b600-5130b4555487", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9c315edb-8267-428e-9db5-1a50064e3bcc", + "f262a32f-d880-4f88-b708-581bf0b9bf1c", + "8c6b2017-d6f1-4ba5-8088-e4fd4ffd38a8", + "a649066e-67f0-4951-a12d-6501bebed64d", + "14a0656d-0047-4481-8f44-cdc477c7f8c2", + "10fbc331-6836-4a10-b13b-314d4673c4ae", + "feeb6173-586a-4bcf-a4af-e034c6c32c3b", + "f1f7b6fb-53ae-4a05-abf0-10fb0cd3eebb", + "ca626d42-345c-41d6-8a45-88a9ec1dc209", + "ba80a2c9-27c8-4eaf-9f26-143933ed3355", + "9d319192-5661-4de4-b4ac-8d60afab5bf9", + "defe2339-5cfc-4f74-bb5b-af27f8d8ae8c", + "e203b7b8-5de9-4c48-a980-dc0477545d56", + "b61c13e8-953c-4849-80cf-8ab35b6b60d6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 18703, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "28aea286-4bc4-4866-ac01-49a5438a2701", + "title": "Check 'Show notifications for new customers'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should enable new notifications for new customers", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should enable new notifications for new customers", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_enableNotificationsNewCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableNotificationsNewCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setShowNotificationsForNewCustomers(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2aa8a93a-e7db-4920-bfd9-45944be1fcaf", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcd97eb1-bb82-493d-9e76-98e57a05f5b4", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should go to add new customer page", + "timedOut": false, + "duration": 866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fa3bd5d-ed57-418f-8fa1-b39f77f5d57b", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer and check result", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should create customer and check result", + "timedOut": false, + "duration": 1573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, createCustomerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c9f20a4-b7c4-497e-bc90-423d1fe7dfcd", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should check notifications number", + "timedOut": false, + "duration": 2004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_checkNotificationsNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsNumber3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllNotificationsNumber(page)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b710155f-001e-4922-a2d8-7b60b347dad6", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + }, + { + "title": "should click on notifications icon", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should click on notifications icon", + "timedOut": false, + "duration": 35, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_clickOnNotificationsLink3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotificationsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNotificationsLink3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.clickOnNotificationsLink(page)];\n case 2:\n isNotificationsVisible = _a.sent();\n (0, chai_1.expect)(isNotificationsVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec6de33a-51c9-414b-a1d3-6b3ff92d79c1", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number in customers tab", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should check notifications number in customers tab", + "timedOut": false, + "duration": 2064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_checkNotificationsInCustomersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsInCustomersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsTab(page, 'customers')];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getNotificationsNumberInTab(page, 'customers')];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bbf0a4a-9616-400a-afae-39a1f8b988ad", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + }, + { + "title": "should refresh the page and check the notifications number", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should refresh the page and check the notifications number", + "timedOut": false, + "duration": 2190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_refreshPageAndCheckNotificationsNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'refreshPageAndCheckNotificationsNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getAllNotificationsNumber(page)];\n case 3:\n number = _a.sent();\n (0, chai_1.expect)(number).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26214e44-3692-4ec5-95cf-a9798754d290", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + }, + { + "title": "should check that messages tab is not visible", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new customers' should check that messages tab is not visible", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_isMessagesTabInvisible2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isMessagesTabInvisible2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.isNotificationsTabVisible(page, 'messages')];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0998242f-8a85-4ffe-a7d9-07b840993cce", + "parentUUID": "28aea286-4bc4-4866-ac01-49a5438a2701", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2aa8a93a-e7db-4920-bfd9-45944be1fcaf", + "fcd97eb1-bb82-493d-9e76-98e57a05f5b4", + "0fa3bd5d-ed57-418f-8fa1-b39f77f5d57b", + "0c9f20a4-b7c4-497e-bc90-423d1fe7dfcd", + "b710155f-001e-4922-a2d8-7b60b347dad6", + "ec6de33a-51c9-414b-a1d3-6b3ff92d79c1", + "6bbf0a4a-9616-400a-afae-39a1f8b988ad", + "26214e44-3692-4ec5-95cf-a9798754d290", + "0998242f-8a85-4ffe-a7d9-07b840993cce" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14410, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "title": "Check 'Show notifications for new messages'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Administration' page", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' should go to 'Advanced Parameters > Administration' page", + "timedOut": false, + "duration": 3643, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goToAdministrationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdministrationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.administrationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(administration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31b8cf2c-4496-444c-b60e-0e13e0246230", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + }, + { + "title": "should enable new notifications for new messages", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' should enable new notifications for new messages", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_enableNotificationsNewMessages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableNotificationsNewMessages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.setShowNotificationsForNewMessages(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(administration_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ae83648-1d98-402c-a101-7a990d3ad809", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' should view my shop", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d369dafb-4aa2-44c5-8d81-ed58cf70f2c5", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' should go to order history page", + "timedOut": false, + "duration": 1438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98472d4f-ae05-4dbf-95bb-c233dfcdc1ef", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + }, + { + "title": "Go to order details and send message", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' Go to order details and send message", + "timedOut": false, + "duration": 1847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.addAMessage(page, messageOption, messageSend)];\n case 3:\n successMessageText = _a.sent();\n (0, chai_1.expect)(successMessageText).to.equal(orderDetails_1.default.successMessageText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b89209b2-3dc7-456e-8e5c-49657c0b5d17", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' should go back to BO", + "timedOut": false, + "duration": 173, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, dashboard_1.default.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(administration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d2224dc-e4a0-49c4-b2af-56ddbd314473", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' should check notifications number", + "timedOut": false, + "duration": 2015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_checkNotificationsNumber4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsNumber4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getAllNotificationsNumber(page)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86118c1d-8353-4359-b306-2e89fd77000f", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + }, + { + "title": "should click on notifications icon", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' should click on notifications icon", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_clickOnNotificationsLink4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotificationsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNotificationsLink4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.clickOnNotificationsLink(page)];\n case 2:\n isNotificationsVisible = _a.sent();\n (0, chai_1.expect)(isNotificationsVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5cc06d6-2053-4f11-a51e-1eb810bf6a9a", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + }, + { + "title": "should check the notifications number in messages tab", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications Check 'Show notifications for new messages' should check the notifications number in messages tab", + "timedOut": false, + "duration": 2058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_clickMessagesTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickMessagesTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, administration_1.default.clickOnNotificationsTab(page, 'messages')];\n case 2:\n _a.sent();\n return [4 /*yield*/, administration_1.default.getNotificationsNumberInTab(page, 'messages')];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecf30a6f-dcd7-4221-b653-cd1a1c158b8e", + "parentUUID": "36014bc4-1373-4f52-a88f-37c39a5f1d25", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "31b8cf2c-4496-444c-b60e-0e13e0246230", + "4ae83648-1d98-402c-a101-7a990d3ad809", + "d369dafb-4aa2-44c5-8d81-ed58cf70f2c5", + "98472d4f-ae05-4dbf-95bb-c233dfcdc1ef", + "b89209b2-3dc7-456e-8e5c-49657c0b5d17", + "0d2224dc-e4a0-49c4-b2af-56ddbd314473", + "86118c1d-8353-4359-b306-2e89fd77000f", + "d5cc06d6-2053-4f11-a51e-1eb810bf6a9a", + "ecf30a6f-dcd7-4221-b653-cd1a1c158b8e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13858, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52335424-ab78-460c-984c-97bcdbf1b053", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/03_administration/03_notifications.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e93a0b4f-f8f3-495b-91b1-2507f680ac8f", + "parentUUID": "52335424-ab78-460c-984c-97bcdbf1b053", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ef5caf29-45de-43d1-915b-38bc2baf4a33", + "parentUUID": "52335424-ab78-460c-984c-97bcdbf1b053", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75335f76-1feb-43dc-ae8e-e870dccefb66", + "parentUUID": "52335424-ab78-460c-984c-97bcdbf1b053", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5037, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c3ddc97-4dd0-4d8e-b78a-87cbc0dbff45", + "parentUUID": "52335424-ab78-460c-984c-97bcdbf1b053", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "548aab1c-0831-42a4-ad84-b9d134a4bd75", + "parentUUID": "52335424-ab78-460c-984c-97bcdbf1b053", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1122, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad6037e9-4deb-4f37-bb5f-012f74b0598c", + "parentUUID": "52335424-ab78-460c-984c-97bcdbf1b053", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1582, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66ca0d8b-3a49-4761-885f-32c573941f18", + "parentUUID": "52335424-ab78-460c-984c-97bcdbf1b053", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Advanced Parameters - Administration : Check notifications POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_administration_notifications_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c05da65-e321-4dca-aea1-50f7a9d21b19", + "parentUUID": "52335424-ab78-460c-984c-97bcdbf1b053", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75335f76-1feb-43dc-ae8e-e870dccefb66", + "8c3ddc97-4dd0-4d8e-b78a-87cbc0dbff45", + "548aab1c-0831-42a4-ad84-b9d134a4bd75", + "ad6037e9-4deb-4f37-bb5f-012f74b0598c", + "66ca0d8b-3a49-4761-885f-32c573941f18", + "6c05da65-e321-4dca-aea1-50f7a9d21b19" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11854, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2815085d-03c8-4fc9-8c11-f572e380ecc8", + "title": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Email : Filter, delete and bulk delete emails\"", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails \"before all\" hook in \"BO - Advanced Parameters - Email : Filter, delete and bulk delete emails\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14a3a957-0fb1-48b9-bfb6-9719f2e1eba7", + "parentUUID": "2815085d-03c8-4fc9-8c11-f572e380ecc8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Email : Filter, delete and bulk delete emails\"", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails \"after all\" hook in \"BO - Advanced Parameters - Email : Filter, delete and bulk delete emails\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1f6a6f6c-e226-493c-952e-695aaca25188", + "parentUUID": "2815085d-03c8-4fc9-8c11-f572e380ecc8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea9a6bdb-69a1-45b1-9504-8949150b9dc9", + "parentUUID": "2815085d-03c8-4fc9-8c11-f572e380ecc8", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "title": "Create order to have emails in the table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Create order to have emails in the table should view my shop", + "timedOut": false, + "duration": 1745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0ed400c-a5ea-42ea-a4b7-0d8a89b2b3ad", + "parentUUID": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Create order to have emails in the table should add the first product to the cart", + "timedOut": false, + "duration": 4229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2de26ec4-4511-40f1-91cf-44fd19ea189b", + "parentUUID": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and sign in", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Create order to have emails in the table should proceed to checkout and sign in", + "timedOut": false, + "duration": 1277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4eddb1b0-0d52-4ea3-8e0f-3af1f1a426f0", + "parentUUID": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Create order to have emails in the table should go to delivery step", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "943d2489-3348-4805-96bc-f7e53da8bfc8", + "parentUUID": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Create order to have emails in the table should go to payment step", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d74d1b97-f92a-4a2e-8efc-7a583b4f9f1d", + "parentUUID": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "isHook": false, + "skipped": false + }, + { + "title": "should pay the order", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Create order to have emails in the table should pay the order", + "timedOut": false, + "duration": 1502, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_payTheOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'payTheOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "951c6e60-eb7a-461a-9a05-2d52dd1407b0", + "parentUUID": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from FO", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Create order to have emails in the table should logout from FO", + "timedOut": false, + "duration": 1188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_logoutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logoutFO', baseContext)];\n case 1:\n _a.sent();\n // Logout from FO\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n // Logout from FO\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0248d2f3-3af9-4a79-b810-e95c786ebfb0", + "parentUUID": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Create order to have emails in the table should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go Back to BO\n page = _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d86aceb-6227-46f1-ae55-f189e265f3e6", + "parentUUID": "7846fd49-f7c9-4945-94f6-8d6120692fb2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d0ed400c-a5ea-42ea-a4b7-0d8a89b2b3ad", + "2de26ec4-4511-40f1-91cf-44fd19ea189b", + "4eddb1b0-0d52-4ea3-8e0f-3af1f1a426f0", + "943d2489-3348-4805-96bc-f7e53da8bfc8", + "d74d1b97-f92a-4a2e-8efc-7a583b4f9f1d", + "951c6e60-eb7a-461a-9a05-2d52dd1407b0", + "0248d2f3-3af9-4a79-b810-e95c786ebfb0", + "1d86aceb-6227-46f1-ae55-f189e265f3e6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11037, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "title": "Filter E-mail table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 3899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_goToEmailPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a53af83-3630-4f61-afbc-9cc3cd7da824", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of email logs", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should reset all filters and get number of email logs", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmails = _a.sent();\n (0, chai_1.expect)(numberOfEmails).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b36c3b85-4792-428d-978c-e8f5e851db3f", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter E-mail table by 'id_mail'", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should filter E-mail table by 'id_mail'", + "timedOut": false, + "duration": 2391, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterFilter).to.be.at.most(numberOfEmails);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfEmailsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, email_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa95ef17-a7b9-48c5-8ee2-75695dc9cf63", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should reset all filters", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterByIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmailsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterReset).to.be.equal(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52c64d9c-cc8f-4950-83de-bd331b56d8a2", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter E-mail table by 'recipient'", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should filter E-mail table by 'recipient'", + "timedOut": false, + "duration": 2402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterByRecipient\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterFilter).to.be.at.most(numberOfEmails);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfEmailsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, email_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf4930dc-4b4a-4667-8643-b3750362ca28", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should reset all filters", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterByRecipientReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmailsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterReset).to.be.equal(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8610a9c-3608-4be2-8767-4c5cea98fb06", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter E-mail table by 'template'", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should filter E-mail table by 'template'", + "timedOut": false, + "duration": 2366, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterByTemplate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterFilter).to.be.at.most(numberOfEmails);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfEmailsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, email_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d283f9fa-1f26-48b5-8212-1e0422025539", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should reset all filters", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterByTemplateReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmailsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterReset).to.be.equal(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "786674f3-5b4d-4718-9bd5-9f8dee0f8293", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter E-mail table by 'id_lang'", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should filter E-mail table by 'id_lang'", + "timedOut": false, + "duration": 2362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterByLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterFilter).to.be.at.most(numberOfEmails);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfEmailsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, email_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ba694db-ea53-4fb7-9c59-5114e4acce0c", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should reset all filters", + "timedOut": false, + "duration": 833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterByLanguageReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmailsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterReset).to.be.equal(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14ed84ad-b889-44f3-88bb-8591e3fc0a32", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter E-mail table by 'subject'", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should filter E-mail table by 'subject'", + "timedOut": false, + "duration": 2362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterBySubject\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterFilter).to.be.at.most(numberOfEmails);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfEmailsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, email_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2d57810-11f6-4f9e-a57c-a70286180e23", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should reset all filters", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterBySubjectReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmailsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterReset).to.be.equal(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a10452c4-4bc8-4c53-aab4-3598249de4e9", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter E-mail table by date sent 'From' and 'To'", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should filter E-mail table by date sent 'From' and 'To'", + "timedOut": false, + "duration": 990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterByDateSent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByDateSent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogsByDate(page, today, today)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterFilter).to.be.at.most(numberOfEmails);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfEmailsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, email_1.default.getTextColumn(page, 'date_add', row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(today);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9669439f-013d-45e5-8372-b5d60a916cca", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Filter E-mail table should reset all filters", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_dateSentReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'dateSentReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmailsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterReset).to.be.equal(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65495df2-a04a-4735-91a6-2718b2c0badb", + "parentUUID": "5f3471c7-7f02-4ad1-8000-901205e7d9c8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9a53af83-3630-4f61-afbc-9cc3cd7da824", + "b36c3b85-4792-428d-978c-e8f5e851db3f", + "aa95ef17-a7b9-48c5-8ee2-75695dc9cf63", + "52c64d9c-cc8f-4950-83de-bd331b56d8a2", + "cf4930dc-4b4a-4667-8643-b3750362ca28", + "e8610a9c-3608-4be2-8767-4c5cea98fb06", + "d283f9fa-1f26-48b5-8212-1e0422025539", + "786674f3-5b4d-4718-9bd5-9f8dee0f8293", + "9ba694db-ea53-4fb7-9c59-5114e4acce0c", + "14ed84ad-b889-44f3-88bb-8591e3fc0a32", + "c2d57810-11f6-4f9e-a57c-a70286180e23", + "a10452c4-4bc8-4c53-aab4-3598249de4e9", + "9669439f-013d-45e5-8372-b5d60a916cca", + "65495df2-a04a-4735-91a6-2718b2c0badb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 23304, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eae3aada-9ad6-4338-b72d-cd88f0946694", + "title": "Delete E-mail", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter email list by 'subject'", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Delete E-mail should filter email list by 'subject'", + "timedOut": false, + "duration": 2435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_filterBySubjectToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBySubjectToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogs(page, 'input', 'subject', paymentMethods_1.default.wirePayment.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterFilter).to.be.at.most(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ef15a8a-e484-4400-9632-5bea4a845199", + "parentUUID": "eae3aada-9ad6-4338-b72d-cd88f0946694", + "isHook": false, + "skipped": false + }, + { + "title": "should delete email", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Delete E-mail should delete email", + "timedOut": false, + "duration": 1428, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_deleteEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.deleteEmailLog(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(email_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f732a74b-ee89-42c6-8de4-fa3ca8e48a57", + "parentUUID": "eae3aada-9ad6-4338-b72d-cd88f0946694", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Delete E-mail should reset all filters", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmailsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterReset).to.be.equal(numberOfEmails - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e1e45ff-2188-4db1-a440-91bcb9775fc7", + "parentUUID": "eae3aada-9ad6-4338-b72d-cd88f0946694", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9ef15a8a-e484-4400-9632-5bea4a845199", + "f732a74b-ee89-42c6-8de4-fa3ca8e48a57", + "2e1e45ff-2188-4db1-a440-91bcb9775fc7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4166, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b3e98bd7-bb9d-4047-85bb-4a458c6f8d90", + "title": "Delete E-mail by bulk action", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/01_filterDeleteAndBulkActionsEmails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete all emails", + "fullTitle": "BO - Advanced Parameters - Email : Filter, delete and bulk delete emails Delete E-mail by bulk action should delete all emails", + "timedOut": false, + "duration": 937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_filterDeleteAndBulkActionsEmails_BulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'BulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.deleteEmailLogsBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(email_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c3eced5-cb10-4a62-a0b8-eec608ad2416", + "parentUUID": "b3e98bd7-bb9d-4047-85bb-4a458c6f8d90", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5c3eced5-cb10-4a62-a0b8-eec608ad2416" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 937, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "ea9a6bdb-69a1-45b1-9504-8949150b9dc9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1731, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5648ca58-55c4-40d0-8353-c7835e072519", + "title": "BO - Advanced Parameters - E-mail : Enable/Disable log emails", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/02_enableDisableLogEmails.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/02_enableDisableLogEmails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - E-mail : Enable/Disable log emails\"", + "fullTitle": "BO - Advanced Parameters - E-mail : Enable/Disable log emails \"before all\" hook in \"BO - Advanced Parameters - E-mail : Enable/Disable log emails\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33b61b77-3b4d-4f62-97a3-87718380d438", + "parentUUID": "5648ca58-55c4-40d0-8353-c7835e072519", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - E-mail : Enable/Disable log emails\"", + "fullTitle": "BO - Advanced Parameters - E-mail : Enable/Disable log emails \"after all\" hook in \"BO - Advanced Parameters - E-mail : Enable/Disable log emails\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "990aae0e-c641-4866-a623-90ece40ffc75", + "parentUUID": "5648ca58-55c4-40d0-8353-c7835e072519", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - E-mail : Enable/Disable log emails should login in BO", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89369fb2-de23-4d42-bf6e-6ed8347c74e1", + "parentUUID": "5648ca58-55c4-40d0-8353-c7835e072519", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - E-mail : Enable/Disable log emails should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 3846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_enableDisableLogEmails_goToEmailPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07614112-498e-40ba-9349-47b78a60cb28", + "parentUUID": "5648ca58-55c4-40d0-8353-c7835e072519", + "isHook": false, + "skipped": false + }, + { + "title": "should disable log emails", + "fullTitle": "BO - Advanced Parameters - E-mail : Enable/Disable log emails should disable log emails", + "timedOut": false, + "duration": 340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_enableDisableLogEmails_disableLogEmails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"LogEmails\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setLogEmails(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61b30f23-807a-4470-81ad-9b8eca52d648", + "parentUUID": "5648ca58-55c4-40d0-8353-c7835e072519", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of E-mail table", + "fullTitle": "BO - Advanced Parameters - E-mail : Enable/Disable log emails should check the existence of E-mail table", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_enableDisableLogEmails_checkEmailTable0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEmailTable\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.isLogEmailsTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5959c565-f6e4-40fd-910f-db18a58a8515", + "parentUUID": "5648ca58-55c4-40d0-8353-c7835e072519", + "isHook": false, + "skipped": false + }, + { + "title": "should enable log emails", + "fullTitle": "BO - Advanced Parameters - E-mail : Enable/Disable log emails should enable log emails", + "timedOut": false, + "duration": 294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_enableDisableLogEmails_enableLogEmails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"LogEmails\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setLogEmails(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6adca16-7bf5-4d42-b89b-60e4d7bfde1a", + "parentUUID": "5648ca58-55c4-40d0-8353-c7835e072519", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of E-mail table", + "fullTitle": "BO - Advanced Parameters - E-mail : Enable/Disable log emails should check the existence of E-mail table", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_enableDisableLogEmails_checkEmailTable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEmailTable\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.isLogEmailsTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ab4dcc3-d308-4406-a1e6-d03132f6c941", + "parentUUID": "5648ca58-55c4-40d0-8353-c7835e072519", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "89369fb2-de23-4d42-bf6e-6ed8347c74e1", + "07614112-498e-40ba-9349-47b78a60cb28", + "61b30f23-807a-4470-81ad-9b8eca52d648", + "5959c565-f6e4-40fd-910f-db18a58a8515", + "a6adca16-7bf5-4d42-b89b-60e4d7bfde1a", + "1ab4dcc3-d308-4406-a1e6-d03132f6c941" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7204, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e2ba6092-1407-446d-bfb2-47cda53d1dbe", + "title": "BO - Advanced Parameters - Email : Send test email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/03_sendTestEmail/01_sendTestEmail.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/03_sendTestEmail/01_sendTestEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Email : Send test email\"", + "fullTitle": "BO - Advanced Parameters - Email : Send test email \"before all\" hook in \"BO - Advanced Parameters - Email : Send test email\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "569a5d9b-5665-4079-b56f-d4f92b7cb81d", + "parentUUID": "e2ba6092-1407-446d-bfb2-47cda53d1dbe", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Email : Send test email\"", + "fullTitle": "BO - Advanced Parameters - Email : Send test email \"after all\" hook in \"BO - Advanced Parameters - Email : Send test email\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9c93a076-b4d8-4abd-811b-cd66a09cd27e", + "parentUUID": "e2ba6092-1407-446d-bfb2-47cda53d1dbe", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Email : Send test email should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34384faa-b3f3-406e-92f7-8a126fadf7d6", + "parentUUID": "e2ba6092-1407-446d-bfb2-47cda53d1dbe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - Email : Send test email should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 3849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sendTestEmail_sendTestEmail_goToEmailPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ee5bda4-7350-40e5-a3be-69ade017b109", + "parentUUID": "e2ba6092-1407-446d-bfb2-47cda53d1dbe", + "isHook": false, + "skipped": false + }, + { + "title": "should check successful message after sending test email", + "fullTitle": "BO - Advanced Parameters - Email : Send test email should check successful message after sending test email", + "timedOut": false, + "duration": 389, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sendTestEmail_sendTestEmail_sendTestEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendTestEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.sendTestEmail(page, global.BO.EMAIL)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(email_1.default.sendTestEmailSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c480eab-d902-4ad3-8b26-4b219a2bae7a", + "parentUUID": "e2ba6092-1407-446d-bfb2-47cda53d1dbe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "34384faa-b3f3-406e-92f7-8a126fadf7d6", + "7ee5bda4-7350-40e5-a3be-69ade017b109", + "6c480eab-d902-4ad3-8b26-4b219a2bae7a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5974, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "22babaec-0702-426c-bd50-907f97b9a56b", + "title": "BO - Advanced Parameters - E-mail : Sort and pagination emails", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - E-mail : Sort and pagination emails\"", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails \"before all\" hook in \"BO - Advanced Parameters - E-mail : Sort and pagination emails\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01a79f67-49d8-40e4-9a44-678b7fc7ce15", + "parentUUID": "22babaec-0702-426c-bd50-907f97b9a56b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - E-mail : Sort and pagination emails\"", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails \"after all\" hook in \"BO - Advanced Parameters - E-mail : Sort and pagination emails\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c743a98e-e7d5-438a-8eb9-9abdfdf22829", + "parentUUID": "22babaec-0702-426c-bd50-907f97b9a56b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails should login in BO", + "timedOut": false, + "duration": 1700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bee7331a-9897-44f0-9572-2ce5a03fd77b", + "parentUUID": "22babaec-0702-426c-bd50-907f97b9a56b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "8400b000-d6c8-4370-b6e4-be1a1dbc3934", + "title": "Erase emails", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Erase emails should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_goToEmailPageToEraseEmails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailPageToEraseEmails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e394eead-6454-4065-9917-3da1c67a1524", + "parentUUID": "8400b000-d6c8-4370-b6e4-be1a1dbc3934", + "isHook": false, + "skipped": false + }, + { + "title": "should erase all emails", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Erase emails should erase all emails", + "timedOut": false, + "duration": 376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_eraseEmails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLines;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'eraseEmails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.eraseAllEmails(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(email_1.default.successfulDeleteMessage);\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLines = _a.sent();\n (0, chai_1.expect)(numberOfLines).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a544019-47f4-4e3b-a7ed-73d7c9fb3929", + "parentUUID": "8400b000-d6c8-4370-b6e4-be1a1dbc3934", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e394eead-6454-4065-9917-3da1c67a1524", + "6a544019-47f4-4e3b-a7ed-73d7c9fb3929" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5217, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "title": "Create 6 orders to have emails in the table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should go to FO page", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language on FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language on FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "611f5425-7335-42a9-be61-fc7317f69a73", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should go to login page", + "timedOut": false, + "duration": 692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_goToLoginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b47ddccf-8a70-4eeb-a194-8f656f3e2a8d", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should sign in with default customer", + "timedOut": false, + "duration": 479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "384c32e9-5871-43e3-b8a3-c065be713e80", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order n°1", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should create the order n°1", + "timedOut": false, + "duration": 8001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_createOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 7:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 8:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 9:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "002c2e11-8fd1-4038-947c-a3ca40509759", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order n°2", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should create the order n°2", + "timedOut": false, + "duration": 7437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_createOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 7:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 8:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 9:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17acbe94-9393-4285-9d37-dec06b81b48d", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order n°3", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should create the order n°3", + "timedOut": false, + "duration": 7470, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_createOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 7:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 8:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 9:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4a423a5-7e2d-4510-ae69-52d2caaa299f", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order n°4", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should create the order n°4", + "timedOut": false, + "duration": 7468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_createOrder3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 7:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 8:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 9:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ec00b8f-c30a-4776-99ad-02572639f1ed", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order n°5", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should create the order n°5", + "timedOut": false, + "duration": 7479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_createOrder4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 7:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 8:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 9:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e7be014-4840-4051-b070-01c1159f2dc1", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order n°6", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should create the order n°6", + "timedOut": false, + "duration": 7466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_createOrder5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 7:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 8:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 9:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "327582c4-b12d-4e91-929e-f5112e0cfcd0", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should sign out from FO", + "timedOut": false, + "duration": 1211, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06679966-46be-4cc5-95f5-b02fc2487b76", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Create 6 orders to have emails in the table should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go Back to BO\n page = _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8b00576-b59a-4a11-b9e1-2895f1d2c533", + "parentUUID": "e142e8ef-cbc7-47c9-9f72-20b03c9cd5a5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "611f5425-7335-42a9-be61-fc7317f69a73", + "b47ddccf-8a70-4eeb-a194-8f656f3e2a8d", + "384c32e9-5871-43e3-b8a3-c065be713e80", + "002c2e11-8fd1-4038-947c-a3ca40509759", + "17acbe94-9393-4285-9d37-dec06b81b48d", + "a4a423a5-7e2d-4510-ae69-52d2caaa299f", + "7ec00b8f-c30a-4776-99ad-02572639f1ed", + "3e7be014-4840-4051-b070-01c1159f2dc1", + "327582c4-b12d-4e91-929e-f5112e0cfcd0", + "06679966-46be-4cc5-95f5-b02fc2487b76", + "e8b00576-b59a-4a11-b9e1-2895f1d2c533" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 49437, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d0bd8160-b7f7-42f7-bccd-4a66aac49ee9", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Pagination next and previous should go to 'Advanced parameters > E-mail' page", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_goToEmailPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d931a51-4db3-4da8-baae-de6ea21bb787", + "parentUUID": "d0bd8160-b7f7-42f7-bccd-4a66aac49ee9", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 324, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b920de89-efc3-4bf3-b3b1-d6bba3ba8f0a", + "parentUUID": "d0bd8160-b7f7-42f7-bccd-4a66aac49ee9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Pagination next and previous should click on next", + "timedOut": false, + "duration": 250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd59d6fe-61df-4581-bb87-0d62645bf9fb", + "parentUUID": "d0bd8160-b7f7-42f7-bccd-4a66aac49ee9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Pagination next and previous should click on previous", + "timedOut": false, + "duration": 261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aea7b4d1-7238-4362-8ced-4318dabf5077", + "parentUUID": "d0bd8160-b7f7-42f7-bccd-4a66aac49ee9", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "582923b3-cd86-40e5-aaf0-dfc59073a722", + "parentUUID": "d0bd8160-b7f7-42f7-bccd-4a66aac49ee9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2d931a51-4db3-4da8-baae-de6ea21bb787", + "b920de89-efc3-4bf3-b3b1-d6bba3ba8f0a", + "bd59d6fe-61df-4581-bb87-0d62645bf9fb", + "aea7b4d1-7238-4362-8ced-4318dabf5077", + "582923b3-cd86-40e5-aaf0-dfc59073a722" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1438, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "title": "Sort E-mail table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_mail' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'id_mail' 'desc' and check result", + "timedOut": false, + "duration": 2189, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d189a782-4c09-4b72-b4b5-b6361a2262f9", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'recipient' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'recipient' 'asc' and check result", + "timedOut": false, + "duration": 3006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByRecipientAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aaa735a7-9c5c-47eb-bc75-c7559dd3d302", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'recipient' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'recipient' 'desc' and check result", + "timedOut": false, + "duration": 3034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByRecipientDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fa76624-9a16-4d62-aed4-27fd6eaf8fe1", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'template' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'template' 'desc' and check result", + "timedOut": false, + "duration": 3936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByTemplateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48b439ce-7af4-4d3a-80cf-fadf9e17fcd5", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'template' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'template' 'asc' and check result", + "timedOut": false, + "duration": 3047, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByTemplateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23572189-49b7-49a7-a1a8-9ad7ab504a77", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'language' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'language' 'desc' and check result", + "timedOut": false, + "duration": 3982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByLanguageDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76a1062e-2715-45f6-a43b-e66f988004ca", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'language' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'language' 'asc' and check result", + "timedOut": false, + "duration": 3042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByLanguageAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d337e1a4-ac86-498f-87b3-313d7f263616", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'date_add' 'desc' and check result", + "timedOut": false, + "duration": 3932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByDateAddDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ef2254a-7f12-46cf-bd90-03dd70a3e123", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'date_add' 'asc' and check result", + "timedOut": false, + "duration": 3041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByDateAddAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8012e165-dbc8-4430-8678-2fb8a14704b7", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'subject' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'subject' 'desc' and check result", + "timedOut": false, + "duration": 4057, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortBySubjectDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cee7262-53e0-495d-960b-f1f4712d8245", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'subject' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'subject' 'asc' and check result", + "timedOut": false, + "duration": 3089, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortBySubjectAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9b153a8-8ee1-4493-93cb-2361d37cbaf3", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_mail' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Sort E-mail table should sort by 'id_mail' 'asc' and check result", + "timedOut": false, + "duration": 3105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, email_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21aa4d68-9600-4e0b-9117-75a3c27b6616", + "parentUUID": "0584ea57-bb9f-4401-9142-db8baa2cf148", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d189a782-4c09-4b72-b4b5-b6361a2262f9", + "aaa735a7-9c5c-47eb-bc75-c7559dd3d302", + "4fa76624-9a16-4d62-aed4-27fd6eaf8fe1", + "48b439ce-7af4-4d3a-80cf-fadf9e17fcd5", + "23572189-49b7-49a7-a1a8-9ad7ab504a77", + "76a1062e-2715-45f6-a43b-e66f988004ca", + "d337e1a4-ac86-498f-87b3-313d7f263616", + "9ef2254a-7f12-46cf-bd90-03dd70a3e123", + "8012e165-dbc8-4430-8678-2fb8a14704b7", + "2cee7262-53e0-495d-960b-f1f4712d8245", + "f9b153a8-8ee1-4493-93cb-2361d37cbaf3", + "21aa4d68-9600-4e0b-9117-75a3c27b6616" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 39460, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6d958ab9-1484-40ad-8a2c-dbc3e337e3ea", + "title": "Delete emails by bulk action", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/04_email/03_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete all emails", + "fullTitle": "BO - Advanced Parameters - E-mail : Sort and pagination emails Delete emails by bulk action should delete all emails", + "timedOut": false, + "duration": 947, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_email_sortAndPagination_BulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'BulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.deleteEmailLogsBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(email_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e4212f4-11b5-4ab4-8d4c-cd076eff4c05", + "parentUUID": "6d958ab9-1484-40ad-8a2c-dbc3e337e3ea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9e4212f4-11b5-4ab4-8d4c-cd076eff4c05" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 947, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bee7331a-9897-44f0-9572-2ce5a03fd77b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1700, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "274f38df-4ab2-468a-885b-2e6740205e5e", + "title": "BO - Advanced Parameters - Import : Download sample csv files", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Import : Download sample csv files\"", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files \"before all\" hook in \"BO - Advanced Parameters - Import : Download sample csv files\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bf7fdbf-58e7-4156-b44a-1ff7cf392c47", + "parentUUID": "274f38df-4ab2-468a-885b-2e6740205e5e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Import : Download sample csv files\"", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files \"after all\" hook in \"BO - Advanced Parameters - Import : Download sample csv files\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b6e04d06-b78f-49fb-8eb1-7b974df2f767", + "parentUUID": "274f38df-4ab2-468a-885b-2e6740205e5e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9e70b04-8e28-400f-89b0-aca13b667552", + "parentUUID": "274f38df-4ab2-468a-885b-2e6740205e5e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef03a6df-675c-4182-83e9-db7352cf02d5", + "parentUUID": "274f38df-4ab2-468a-885b-2e6740205e5e", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e20a94ca-837c-4d14-adaf-17b65253d796", + "title": "Download and check text for categories_import sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download categories_import sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for categories_import sample file should download categories_import sample file", + "timedOut": false, + "duration": 205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_categories_importDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad49c40a-6b4d-439c-9e27-3269805ff988", + "parentUUID": "e20a94ca-837c-4d14-adaf-17b65253d796", + "isHook": false, + "skipped": false + }, + { + "title": "should check categories_import sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for categories_import sample file should check categories_import sample text file", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_categories_importcheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "858d2073-6870-493a-a43a-2661328eecc4", + "parentUUID": "e20a94ca-837c-4d14-adaf-17b65253d796", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ad49c40a-6b4d-439c-9e27-3269805ff988", + "858d2073-6870-493a-a43a-2661328eecc4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 206, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c855798c-8fb8-4929-99e0-3bd804024137", + "title": "Download and check text for products_import sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download products_import sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for products_import sample file should download products_import sample file", + "timedOut": false, + "duration": 191, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_products_importDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "780da610-d0e9-47ab-bbde-565bfde112a7", + "parentUUID": "c855798c-8fb8-4929-99e0-3bd804024137", + "isHook": false, + "skipped": false + }, + { + "title": "should check products_import sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for products_import sample file should check products_import sample text file", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_products_importcheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0883cda-b0a1-4cdc-8331-1141ccea4489", + "parentUUID": "c855798c-8fb8-4929-99e0-3bd804024137", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "780da610-d0e9-47ab-bbde-565bfde112a7", + "b0883cda-b0a1-4cdc-8331-1141ccea4489" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 191, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fff2bd67-f645-423c-a0a8-8bbcecdc33e9", + "title": "Download and check text for combinations_import sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download combinations_import sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for combinations_import sample file should download combinations_import sample file", + "timedOut": false, + "duration": 174, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_combinations_importDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9943731-72a4-4b00-92e2-b44459833cfc", + "parentUUID": "fff2bd67-f645-423c-a0a8-8bbcecdc33e9", + "isHook": false, + "skipped": false + }, + { + "title": "should check combinations_import sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for combinations_import sample file should check combinations_import sample text file", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_combinations_importcheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55ff8c1a-8559-4c30-8c2f-4a514bf190fe", + "parentUUID": "fff2bd67-f645-423c-a0a8-8bbcecdc33e9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d9943731-72a4-4b00-92e2-b44459833cfc", + "55ff8c1a-8559-4c30-8c2f-4a514bf190fe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 174, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "86ceadb9-025e-41d4-b5f1-d80e8758fc53", + "title": "Download and check text for customers_import sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download customers_import sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for customers_import sample file should download customers_import sample file", + "timedOut": false, + "duration": 182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_customers_importDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7c98679-71c6-48a6-9063-62a9fa5529b6", + "parentUUID": "86ceadb9-025e-41d4-b5f1-d80e8758fc53", + "isHook": false, + "skipped": false + }, + { + "title": "should check customers_import sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for customers_import sample file should check customers_import sample text file", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_customers_importcheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fdb44f3-5fbd-4b4a-8a84-25e0f1e518d0", + "parentUUID": "86ceadb9-025e-41d4-b5f1-d80e8758fc53", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c7c98679-71c6-48a6-9063-62a9fa5529b6", + "1fdb44f3-5fbd-4b4a-8a84-25e0f1e518d0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 182, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9bfcabc6-6171-4366-ae4d-7822f329775a", + "title": "Download and check text for addresses_import sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download addresses_import sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for addresses_import sample file should download addresses_import sample file", + "timedOut": false, + "duration": 185, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_addresses_importDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a7239d4-cbe3-418d-92cb-fbbae5db778c", + "parentUUID": "9bfcabc6-6171-4366-ae4d-7822f329775a", + "isHook": false, + "skipped": false + }, + { + "title": "should check addresses_import sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for addresses_import sample file should check addresses_import sample text file", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_addresses_importcheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68d0d815-7666-4816-afe5-c9380e0d559a", + "parentUUID": "9bfcabc6-6171-4366-ae4d-7822f329775a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6a7239d4-cbe3-418d-92cb-fbbae5db778c", + "68d0d815-7666-4816-afe5-c9380e0d559a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 186, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "36efbf99-5d26-4a84-bdf4-419f0bdf6213", + "title": "Download and check text for brands_import sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download brands_import sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for brands_import sample file should download brands_import sample file", + "timedOut": false, + "duration": 182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_brands_importDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b49ee81-d148-4a95-a7a0-73343d3fc384", + "parentUUID": "36efbf99-5d26-4a84-bdf4-419f0bdf6213", + "isHook": false, + "skipped": false + }, + { + "title": "should check brands_import sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for brands_import sample file should check brands_import sample text file", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_brands_importcheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a137997-9146-42b0-b5b9-a17ea55a4946", + "parentUUID": "36efbf99-5d26-4a84-bdf4-419f0bdf6213", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1b49ee81-d148-4a95-a7a0-73343d3fc384", + "8a137997-9146-42b0-b5b9-a17ea55a4946" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 182, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "88853867-ff1d-4b94-9eb7-e354b7cc5a27", + "title": "Download and check text for suppliers_import sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download suppliers_import sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for suppliers_import sample file should download suppliers_import sample file", + "timedOut": false, + "duration": 183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_suppliers_importDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be114d08-593c-41fb-bc65-8e35b182e28c", + "parentUUID": "88853867-ff1d-4b94-9eb7-e354b7cc5a27", + "isHook": false, + "skipped": false + }, + { + "title": "should check suppliers_import sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for suppliers_import sample file should check suppliers_import sample text file", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_suppliers_importcheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6a5fb02-07bd-480a-99fc-d0e33e5a8f05", + "parentUUID": "88853867-ff1d-4b94-9eb7-e354b7cc5a27", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "be114d08-593c-41fb-bc65-8e35b182e28c", + "c6a5fb02-07bd-480a-99fc-d0e33e5a8f05" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 183, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "04e38bfb-560a-4cb0-8260-9bc1a4c1a99d", + "title": "Download and check text for alias_import sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download alias_import sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for alias_import sample file should download alias_import sample file", + "timedOut": false, + "duration": 182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_alias_importDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e1cb426-f0c4-42ab-8b10-773172d8c40c", + "parentUUID": "04e38bfb-560a-4cb0-8260-9bc1a4c1a99d", + "isHook": false, + "skipped": false + }, + { + "title": "should check alias_import sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for alias_import sample file should check alias_import sample text file", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_alias_importcheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dda214eb-116e-45d7-b024-822cc4666262", + "parentUUID": "04e38bfb-560a-4cb0-8260-9bc1a4c1a99d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0e1cb426-f0c4-42ab-8b10-773172d8c40c", + "dda214eb-116e-45d7-b024-822cc4666262" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 182, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "23942c9c-b063-4c55-9d7d-88acbe147f1d", + "title": "Download and check text for store_contacts sample file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/01_downloadSampleFiles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download store_contacts sample file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for store_contacts sample file should download store_contacts sample file", + "timedOut": false, + "duration": 183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_store_contactsDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"DownloadFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, sampleFile.args.type)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, \"\".concat(sampleFile.args.type, \" sample file was not downloaded\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0980e69b-c1fa-431b-880d-fbc538d8e9a0", + "parentUUID": "23942c9c-b063-4c55-9d7d-88acbe147f1d", + "isHook": false, + "skipped": false + }, + { + "title": "should check store_contacts sample text file", + "fullTitle": "BO - Advanced Parameters - Import : Download sample csv files Download and check text for store_contacts sample file should check store_contacts sample text file", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_downloadSampleFiles_store_contactscheckTextFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(sampleFile.args.type, \"checkTextFile\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, sampleFile.args.textToCheck)];\n case 2:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"Text was not found in \".concat(sampleFile.args.type, \" sample file\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab66870f-e6e0-48cd-87f0-da2ee59fd4cb", + "parentUUID": "23942c9c-b063-4c55-9d7d-88acbe147f1d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0980e69b-c1fa-431b-880d-fbc538d8e9a0", + "ab66870f-e6e0-48cd-87f0-da2ee59fd4cb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 183, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e9e70b04-8e28-400f-89b0-aca13b667552", + "ef03a6df-675c-4182-83e9-db7352cf02d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6615, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f88595bb-01d2-4d6c-891f-8690d30e7460", + "title": "BO - Advanced Parameters - Import : Import file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Import : Import file\"", + "fullTitle": "BO - Advanced Parameters - Import : Import file \"before all\" hook in \"BO - Advanced Parameters - Import : Import file\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b3b4e8d-72a8-4063-bb5f-9fcc533ae9b1", + "parentUUID": "f88595bb-01d2-4d6c-891f-8690d30e7460", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Import : Import file\"", + "fullTitle": "BO - Advanced Parameters - Import : Import file \"after all\" hook in \"BO - Advanced Parameters - Import : Import file\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete downloaded csv files\n return [4 /*yield*/, files_1.default.deleteFile(firstFile)];\n case 2:\n // Delete downloaded csv files\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(secondFile)];\n case 3:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c19fad3c-1154-4479-826e-19af71e851ef", + "parentUUID": "f88595bb-01d2-4d6c-891f-8690d30e7460", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "69fe6129-3c31-4877-96f7-00772b01e40e", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Advanced Parameters - Import : Import file PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9aec44f5-f847-431c-bd1a-376006946e49", + "parentUUID": "69fe6129-3c31-4877-96f7-00772b01e40e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Advanced Parameters - Import : Import file PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "44c9bc46-771e-44b9-8285-e46bab1bd1d6", + "parentUUID": "69fe6129-3c31-4877-96f7-00772b01e40e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Import : Import file PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64793de8-2222-4d62-9321-c186f3ecc3cb", + "parentUUID": "69fe6129-3c31-4877-96f7-00772b01e40e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - Import : Import file PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07bd6bb7-0360-4055-a804-5aa6ca387a86", + "parentUUID": "69fe6129-3c31-4877-96f7-00772b01e40e", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Advanced Parameters - Import : Import file PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 587, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d94b972f-28f8-4957-870d-c26f002057cb", + "parentUUID": "69fe6129-3c31-4877-96f7-00772b01e40e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "64793de8-2222-4d62-9321-c186f3ecc3cb", + "07bd6bb7-0360-4055-a804-5aa6ca387a86", + "d94b972f-28f8-4957-870d-c26f002057cb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c520748e-d397-49e7-a479-e0b347e7fcc5", + "title": "Import : Import file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file should login in BO", + "timedOut": false, + "duration": 1767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08082f95-13e0-4ded-905f-27071f15db9f", + "parentUUID": "c520748e-d397-49e7-a479-e0b347e7fcc5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98bf8b27-4dd6-4068-9c3d-bb756e87360f", + "parentUUID": "c520748e-d397-49e7-a479-e0b347e7fcc5", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b8fcde33-45d4-4596-8727-e846937bc6f8", + "title": "Download then import alias simple file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download 'Sample alias file' file", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Download then import alias simple file should download 'Sample alias file' file", + "timedOut": false, + "duration": 188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_downloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, 'alias_import')];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'alias_import sample file was not downloaded').to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc28a2ef-140b-4634-9adf-3532721840a6", + "parentUUID": "b8fcde33-45d4-4596-8727-e846937bc6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should upload the file", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Download then import alias simple file should upload the file", + "timedOut": false, + "duration": 2053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.renameFile(filePath, 'alias.csv')];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, 'Alias', firstFile)];\n case 3:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).to.contains(firstFile);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db3c62c2-7d56-4aea-ab31-d09f9c863f02", + "parentUUID": "b8fcde33-45d4-4596-8727-e846937bc6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Download then import alias simple file should go to next import file step", + "timedOut": false, + "duration": 345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).to.contains(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "924e10dd-50e9-469b-8a31-a3ffae61d419", + "parentUUID": "b8fcde33-45d4-4596-8727-e846937bc6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Download then import alias simple file should start import file", + "timedOut": false, + "duration": 254, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).to.contains(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48891a9c-b3e7-4d19-bc39-c17e522addbf", + "parentUUID": "b8fcde33-45d4-4596-8727-e846937bc6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Download then import alias simple file should check that the import is completed", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .to.contains('Data imported')\n .and.to.contains('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02dec738-c0a2-4a09-9e38-304d272e9f37", + "parentUUID": "b8fcde33-45d4-4596-8727-e846937bc6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Download then import alias simple file should close import progress modal", + "timedOut": false, + "duration": 1171, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0534b4a9-8e28-4626-92de-64d118fb4b8a", + "parentUUID": "b8fcde33-45d4-4596-8727-e846937bc6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should check if reset password mail is in mailbox", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Download then import alias simple file should check if reset password mail is in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_checkIfImportMailFileIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfImportMailFileIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Import complete\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db65ff69-eed6-4b36-8337-0588a29f1052", + "parentUUID": "b8fcde33-45d4-4596-8727-e846937bc6f8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bc28a2ef-140b-4634-9adf-3532721840a6", + "db3c62c2-7d56-4aea-ab31-d09f9c863f02", + "924e10dd-50e9-469b-8a31-a3ffae61d419", + "48891a9c-b3e7-4d19-bc39-c17e522addbf", + "02dec738-c0a2-4a09-9e38-304d272e9f37", + "0534b4a9-8e28-4626-92de-64d118fb4b8a", + "db65ff69-eed6-4b36-8337-0588a29f1052" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4242, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1df31e35-534a-4e70-a24d-92b7708adee4", + "title": "Check choose from history / FTP then import suppliers simple file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download 'Sample suppliers file' file", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should download 'Sample suppliers file' file", + "timedOut": false, + "duration": 203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_downloadFile2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadFile2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.downloadSampleFile(page, 'suppliers_import')];\n case 2:\n secondFilePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(secondFilePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'suppliers sample file was not downloaded').to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1709fdeb-697b-40f5-979a-1c6bea8dce4c", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should upload the file", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should upload the file", + "timedOut": false, + "duration": 2054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_importFile2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.renameFile(secondFilePath, 'suppliers.csv')];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, 'Suppliers', secondFile)];\n case 3:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain('suppliers.csv');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b30292b-c316-418f-9a1b-e843c6f7f09c", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the downloaded file and check the existence of the button choose from history", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should click on the downloaded file and check the existence of the button choose from history", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_clickOnDownloadedFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDownloadedFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.clickOnDownloadedFile(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.isChooseFromHistoryButtonVisible(page)];\n case 3:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de3083a4-ec06-4172-b5d9-179812415354", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Choose from history / FTP'", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should click on 'Choose from history / FTP'", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_clickOnChooseFromHistory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFilesListTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnChooseFromHistory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.chooseFromHistoryFTP(page)];\n case 2:\n isFilesListTableVisible = _a.sent();\n (0, chai_1.expect)(isFilesListTableVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa48b2b8-dddb-45fb-a14c-8c92c30cc698", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the imported files list", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should check the imported files list", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_checkImportedFilesList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var importedFilesList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImportedFilesList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportedFilesList(page)];\n case 2:\n importedFilesList = _a.sent();\n (0, chai_1.expect)(importedFilesList).to.contains(firstFile)\n .and.to.contains(secondFile);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "add9f224-485d-4952-ac60-1c1243db65ad", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the first imported file", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should delete the first imported file", + "timedOut": false, + "duration": 351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_deleteFirstFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFirstFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.deleteFile(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80495fc9-c530-4a39-8d34-07bbbbf40fea", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should use the second imported file", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should use the second imported file", + "timedOut": false, + "duration": 134, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_useSecondFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'useSecondFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.chooseFromHistoryFTP(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.useFile(page, 1)];\n case 3:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).to.contains(secondFile);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02a4815c-e29d-4243-85c2-5dc063f85248", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should go to next import file step", + "timedOut": false, + "duration": 327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_nextStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.selectFileType(page, 'Suppliers')];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 3:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).to.contains(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8e8d695-8264-40a0-b87f-c397b5cbf4e9", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should start import file", + "timedOut": false, + "duration": 250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_confirmImport2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).to.contains(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c537f357-4ac7-48d5-b508-b82d5adc1b6b", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should check that the import is completed", + "timedOut": false, + "duration": 201, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_waitForImport2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .to.contains('Data imported')\n .and.to.contains('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc7457b4-f03d-4355-a398-69955bd00082", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should close import progress modal", + "timedOut": false, + "duration": 1173, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_closeImportModal2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba63af25-8aac-4978-a3e5-9adc6e854f07", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + }, + { + "title": "should check if reset password mail is in mailbox", + "fullTitle": "BO - Advanced Parameters - Import : Import file Import : Import file Check choose from history / FTP then import suppliers simple file should check if reset password mail is in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_checkIfImportFTPFileIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfImportFTPFileIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Import complete\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14e89c17-c1be-4b98-8ccc-25215198c805", + "parentUUID": "1df31e35-534a-4e70-a24d-92b7708adee4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1709fdeb-697b-40f5-979a-1c6bea8dce4c", + "5b30292b-c316-418f-9a1b-e843c6f7f09c", + "de3083a4-ec06-4172-b5d9-179812415354", + "fa48b2b8-dddb-45fb-a14c-8c92c30cc698", + "add9f224-485d-4952-ac60-1c1243db65ad", + "80495fc9-c530-4a39-8d34-07bbbbf40fea", + "02a4815c-e29d-4243-85c2-5dc063f85248", + "f8e8d695-8264-40a0-b87f-c397b5cbf4e9", + "c537f357-4ac7-48d5-b508-b82d5adc1b6b", + "cc7457b4-f03d-4355-a398-69955bd00082", + "ba63af25-8aac-4978-a3e5-9adc6e854f07", + "14e89c17-c1be-4b98-8ccc-25215198c805" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4806, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "08082f95-13e0-4ded-905f-27071f15db9f", + "98bf8b27-4dd6-4068-9c3d-bb756e87360f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6718, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e457d921-add0-47c1-b451-7a6509856830", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/05_import/02_importFile.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Advanced Parameters - Import : Import file POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c7ee591-d9a3-4d3c-b88c-27ae3991f0a9", + "parentUUID": "e457d921-add0-47c1-b451-7a6509856830", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Advanced Parameters - Import : Import file POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2a388f07-3496-4c8c-8658-4a03cc843cae", + "parentUUID": "e457d921-add0-47c1-b451-7a6509856830", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Import : Import file POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "176abbd3-bc95-4bb9-aafd-75fc9b1ac2e0", + "parentUUID": "e457d921-add0-47c1-b451-7a6509856830", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - Import : Import file POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e796385f-b08a-461c-95fd-409109be3969", + "parentUUID": "e457d921-add0-47c1-b451-7a6509856830", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Advanced Parameters - Import : Import file POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_import_importFile_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3158fa98-85b9-4b1a-a9a7-cb482acc8167", + "parentUUID": "e457d921-add0-47c1-b451-7a6509856830", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "176abbd3-bc95-4bb9-aafd-75fc9b1ac2e0", + "e796385f-b08a-461c-95fd-409109be3969", + "3158fa98-85b9-4b1a-a9a7-cb482acc8167" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7009, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "49b09be0-ad3d-4075-abd9-4fc4059b152b", + "title": "BO - Advanced Parameters - Team : Filter and quick edit Employees", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Filter and quick edit Employees\"", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees \"before all\" hook in \"BO - Advanced Parameters - Team : Filter and quick edit Employees\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e42e080-d979-45e9-a83e-0bb298d21d16", + "parentUUID": "49b09be0-ad3d-4075-abd9-4fc4059b152b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Filter and quick edit Employees\"", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees \"after all\" hook in \"BO - Advanced Parameters - Team : Filter and quick edit Employees\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9962faf6-1ed4-4ac1-b39b-4c165ea664a9", + "parentUUID": "49b09be0-ad3d-4075-abd9-4fc4059b152b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees should login in BO", + "timedOut": false, + "duration": 1753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85534612-ece8-44bc-8343-878d7189355c", + "parentUUID": "49b09be0-ad3d-4075-abd9-4fc4059b152b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7e92173-6d93-44f5-8909-acb713b36f13", + "parentUUID": "49b09be0-ad3d-4075-abd9-4fc4059b152b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees should reset all filters and get number of employees", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9732d0e6-65d7-491a-8b8e-3b40d391eb57", + "parentUUID": "49b09be0-ad3d-4075-abd9-4fc4059b152b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6413c2c1-dc2d-4498-8b79-54a48997d6a0", + "title": "PRE-TEST : Create employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees PRE-TEST : Create employee should go to add new employee page", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_goToNewEmployeePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewEmployeePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df43f203-d316-432f-adcc-a85d5a5c1c0a", + "parentUUID": "6413c2c1-dc2d-4498-8b79-54a48997d6a0", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees PRE-TEST : Create employee should create employee", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_createEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, createEmployeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e170bd4-dc19-4006-8798-729409eee1d6", + "parentUUID": "6413c2c1-dc2d-4498-8b79-54a48997d6a0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "df43f203-d316-432f-adcc-a85d5a5c1c0a", + "7e170bd4-dc19-4006-8798-729409eee1d6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1737, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1e4d7394-fb9b-48af-aa51-842a99939709", + "title": "Filter the table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_employee '1'", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should filter by id_employee '1'", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterFilter, i, employeeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterFilter).to.be.at.most(numberOfEmployees);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, team_1.default.getStatus(page, i)];\n case 5:\n employeeStatus = _a.sent();\n (0, chai_1.expect)(employeeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64f5eb0b-cc8c-44ae-9db9-6a668e3ae12c", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should reset all filters", + "timedOut": false, + "duration": 328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.above(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ede95b9-ea51-4375-9401-5c2ffd18cd01", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by firstname 'Clemmie'", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should filter by firstname 'Clemmie'", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterFirstName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterFilter, i, employeeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterFilter).to.be.at.most(numberOfEmployees);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, team_1.default.getStatus(page, i)];\n case 5:\n employeeStatus = _a.sent();\n (0, chai_1.expect)(employeeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "822e59ff-9625-4464-9a20-cd8ff5433a71", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should reset all filters", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterFirstNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.above(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63207239-fdf9-4c13-bd8d-ebd5254ffee2", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by lastname 'Beier'", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should filter by lastname 'Beier'", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterLastName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterFilter, i, employeeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterFilter).to.be.at.most(numberOfEmployees);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, team_1.default.getStatus(page, i)];\n case 5:\n employeeStatus = _a.sent();\n (0, chai_1.expect)(employeeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad90f785-8c74-4dc3-b9f4-dbb4bfcf3001", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should reset all filters", + "timedOut": false, + "duration": 319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterLastNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.above(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07233dc6-3d39-4371-9ff7-a80f3c74ca9b", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by email 'Clemmie_Grady1@prestashop.com'", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should filter by email 'Clemmie_Grady1@prestashop.com'", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterFilter, i, employeeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterFilter).to.be.at.most(numberOfEmployees);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, team_1.default.getStatus(page, i)];\n case 5:\n employeeStatus = _a.sent();\n (0, chai_1.expect)(employeeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6250809-01ff-4efc-b06b-d4ef3992ce1e", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should reset all filters", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterEmailReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.above(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c88088f5-fafe-4bc7-bd14-662ecc6e382e", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '0'", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should filter by active '0'", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterFilter, i, employeeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterFilter).to.be.at.most(numberOfEmployees);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, team_1.default.getStatus(page, i)];\n case 5:\n employeeStatus = _a.sent();\n (0, chai_1.expect)(employeeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67b3bbaa-cd19-4c14-afbc-939b18282e7c", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Filter the table should reset all filters", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterActiveReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.above(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e57ea2b8-9465-4dba-b62e-92b0972c7388", + "parentUUID": "1e4d7394-fb9b-48af-aa51-842a99939709", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "64f5eb0b-cc8c-44ae-9db9-6a668e3ae12c", + "8ede95b9-ea51-4375-9401-5c2ffd18cd01", + "822e59ff-9625-4464-9a20-cd8ff5433a71", + "63207239-fdf9-4c13-bd8d-ebd5254ffee2", + "ad90f785-8c74-4dc3-b9f4-dbb4bfcf3001", + "07233dc6-3d39-4371-9ff7-a80f3c74ca9b", + "e6250809-01ff-4efc-b06b-d4ef3992ce1e", + "c88088f5-fafe-4bc7-bd14-662ecc6e382e", + "67b3bbaa-cd19-4c14-afbc-939b18282e7c", + "e57ea2b8-9465-4dba-b62e-92b0972c7388" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6136, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9d448cff-ca11-490a-b9ee-2e487210a3af", + "title": "Quick edit Employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by Email address", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Quick edit Employee should filter by Email address", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterForQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', createEmployeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterFilter).to.be.at.most(numberOfEmployees);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, i, 'email')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createEmployeeData.email);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "169374ec-123f-4af9-a6c7-870c8776e670", + "parentUUID": "9d448cff-ca11-490a-b9ee-2e487210a3af", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the employee from the table", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Quick edit Employee should disable the employee from the table", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_disableEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(employeeStatus.args.status, \"Employee\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.setStatus(page, 1, employeeStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, team_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(team_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, team_1.default.getStatus(page, 1)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(employeeStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e7769b9-a2d8-4796-86dd-c19c31b32c8c", + "parentUUID": "9d448cff-ca11-490a-b9ee-2e487210a3af", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the employee from the table", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees Quick edit Employee should enable the employee from the table", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_enableEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(employeeStatus.args.status, \"Employee\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.setStatus(page, 1, employeeStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, team_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(team_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, team_1.default.getStatus(page, 1)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(employeeStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ba73429-6afc-42db-96cd-caa7bf05aae2", + "parentUUID": "9d448cff-ca11-490a-b9ee-2e487210a3af", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "169374ec-123f-4af9-a6c7-870c8776e670", + "9e7769b9-a2d8-4796-86dd-c19c31b32c8c", + "4ba73429-6afc-42db-96cd-caa7bf05aae2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1820, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9826ce4b-e6bd-40ab-9b6c-28ef7bf7198f", + "title": "POST-TEST : Delete employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/01_filterAndQuickEditEmployees.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by email", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees POST-TEST : Delete employee should filter list by email", + "timedOut": false, + "duration": 934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', createEmployeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createEmployeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcb6c0f6-bd48-4c00-aa86-fd71423e18cb", + "parentUUID": "9826ce4b-e6bd-40ab-9b6c-28ef7bf7198f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employee", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees POST-TEST : Delete employee should delete employee", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_deleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteEmployee(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3c8dbb5-4141-431a-8943-0269549f8a94", + "parentUUID": "9826ce4b-e6bd-40ab-9b6c-28ef7bf7198f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of employees", + "fullTitle": "BO - Advanced Parameters - Team : Filter and quick edit Employees POST-TEST : Delete employee should reset filter and check the number of employees", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_filterAndQuickEditEmployees_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72429cf4-6fb0-4db1-a57b-0f10c97cafc6", + "parentUUID": "9826ce4b-e6bd-40ab-9b6c-28ef7bf7198f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fcb6c0f6-bd48-4c00-aa86-fd71423e18cb", + "e3c8dbb5-4141-431a-8943-0269549f8a94", + "72429cf4-6fb0-4db1-a57b-0f10c97cafc6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2664, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "85534612-ece8-44bc-8343-878d7189355c", + "a7e92173-6d93-44f5-8909-acb713b36f13", + "9732d0e6-65d7-491a-8b8e-3b40d391eb57" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8643, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "495a918b-cdda-4475-b3dc-544c79392dd1", + "title": "BO - Advanced Parameters - Team : CRUD Employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : CRUD Employee\"", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee \"before all\" hook in \"BO - Advanced Parameters - Team : CRUD Employee\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5a5cf15-1ffa-4013-b8af-e7deef4fcb41", + "parentUUID": "495a918b-cdda-4475-b3dc-544c79392dd1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : CRUD Employee\"", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee \"after all\" hook in \"BO - Advanced Parameters - Team : CRUD Employee\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ad7fddb7-fa2f-4910-b861-f50e25571727", + "parentUUID": "495a918b-cdda-4475-b3dc-544c79392dd1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee should login in BO", + "timedOut": false, + "duration": 1752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e651ed20-f846-4627-83c7-472eb303b22f", + "parentUUID": "495a918b-cdda-4475-b3dc-544c79392dd1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eab4119e-36dd-444c-9aa5-6f39bec1bfeb", + "parentUUID": "495a918b-cdda-4475-b3dc-544c79392dd1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee should reset all filters and get number of employees", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea83dceb-42fc-4993-96e4-d39c98f4204e", + "parentUUID": "495a918b-cdda-4475-b3dc-544c79392dd1", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "431bb925-53f4-4345-b91e-b73f9071719e", + "title": "Create employee and check Sign in", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Create employee and check Sign in should go to add new employee page", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_goToNewEmployeePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewEmployeePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1640b6d9-5261-40b0-b28d-a7ca2f221979", + "parentUUID": "431bb925-53f4-4345-b91e-b73f9071719e", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee and check result", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Create employee and check Sign in should create employee and check result", + "timedOut": false, + "duration": 840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_createEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, createEmployeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb564e6c-0b50-440e-8bd5-3464681f97b3", + "parentUUID": "431bb925-53f4-4345-b91e-b73f9071719e", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Create employee and check Sign in should logout from BO", + "timedOut": false, + "duration": 689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d13e2310-6321-46bc-94e4-a2fe75a56e52", + "parentUUID": "431bb925-53f4-4345-b91e-b73f9071719e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with new account and verify the default page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Create employee and check Sign in should sign in with new account and verify the default page", + "timedOut": false, + "duration": 1131, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_signInWithCreatedEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInWithCreatedEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.successLogin(page, createEmployeeData.email, createEmployeeData.password)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8f95bfa-2292-40f0-bfbe-24ceada682b9", + "parentUUID": "431bb925-53f4-4345-b91e-b73f9071719e", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Create employee and check Sign in should logout from BO", + "timedOut": false, + "duration": 696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df6c271c-baa8-4aaa-953a-6e36fd8264f8", + "parentUUID": "431bb925-53f4-4345-b91e-b73f9071719e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1640b6d9-5261-40b0-b28d-a7ca2f221979", + "eb564e6c-0b50-440e-8bd5-3464681f97b3", + "d13e2310-6321-46bc-94e4-a2fe75a56e52", + "e8f95bfa-2292-40f0-bfbe-24ceada682b9", + "df6c271c-baa8-4aaa-953a-6e36fd8264f8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4198, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4f515608-c0d8-4bf5-b8b8-6d7453c52107", + "title": "Update employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee should login in BO", + "timedOut": false, + "duration": 1465, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0950935-12ba-44b8-af25-1767fe1ab9a9", + "parentUUID": "4f515608-c0d8-4bf5-b8b8-6d7453c52107", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "title": "Update the password and the default page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Update the password and the default page should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_goToEmployeePageForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeePageForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1eeadcb-139d-4f0a-9771-76a2fc9b77ea", + "parentUUID": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Update the password and the default page should filter list by email", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', createEmployeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createEmployeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e7bec36-c6b2-4505-8279-5e71e242d280", + "parentUUID": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit employee page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Update the password and the default page should go to edit employee page", + "timedOut": false, + "duration": 832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_goToEditEmployeePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditEmployeePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToEditEmployeePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(createEmployeeData.lastName, createEmployeeData.firstName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35c522ef-6ca8-4434-9fc3-c30e8893a34c", + "parentUUID": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "isHook": false, + "skipped": false + }, + { + "title": "should update the employee account", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Update the password and the default page should update the employee account", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_updateEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, firstEditEmployeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3345f26-3c20-4911-9d90-28aa5db4fc26", + "parentUUID": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel and verify the new employee's number", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Update the password and the default page should click on cancel and verify the new employee's number", + "timedOut": false, + "duration": 1100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_verifyNumberOfEmployeeAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyNumberOfEmployeeAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.cancel(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfEmployeesAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterUpdate).to.be.equal(numberOfEmployees + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c7777ea-2995-4f20-9eb8-4b6145492801", + "parentUUID": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Update the password and the default page should logout from BO", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e54130c-f30b-4248-95be-1002f7856c80", + "parentUUID": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with edited account and verify the default page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Update the password and the default page should sign in with edited account and verify the default page", + "timedOut": false, + "duration": 1206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_signInWithUpdatedEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInWithUpdatedEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.successLogin(page, firstEditEmployeeData.email, firstEditEmployeeData.password)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65c9a4b3-6b67-44f7-a0d2-79c303f2b8e0", + "parentUUID": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Update the password and the default page should logout from BO", + "timedOut": false, + "duration": 685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83d51a6e-2a6c-4b50-814c-cced050b04ed", + "parentUUID": "707ae7b7-7422-4dae-ad78-ac38cbe70065", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f1eeadcb-139d-4f0a-9771-76a2fc9b77ea", + "0e7bec36-c6b2-4505-8279-5e71e242d280", + "35c522ef-6ca8-4434-9fc3-c30e8893a34c", + "c3345f26-3c20-4911-9d90-28aa5db4fc26", + "2c7777ea-2995-4f20-9eb8-4b6145492801", + "5e54130c-f30b-4248-95be-1002f7856c80", + "65c9a4b3-6b67-44f7-a0d2-79c303f2b8e0", + "83d51a6e-2a6c-4b50-814c-cced050b04ed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9923, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "61596c52-45e5-4376-8c3a-53b7c58db914", + "title": "Disable the employee and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Disable the employee and check it should login in BO", + "timedOut": false, + "duration": 1431, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e6fa170-7b3a-41b1-9347-dde39cd594a0", + "parentUUID": "61596c52-45e5-4376-8c3a-53b7c58db914", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Disable the employee and check it should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3597, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_goToEmployeesPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7e5618c-b220-44e0-8e8c-a1ec8ca0599d", + "parentUUID": "61596c52-45e5-4376-8c3a-53b7c58db914", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Disable the employee and check it should filter list by email", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_filterEmployeesToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmployeesToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', firstEditEmployeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(firstEditEmployeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "081f2c82-966d-4078-b484-64de5fd483b8", + "parentUUID": "61596c52-45e5-4376-8c3a-53b7c58db914", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit employee page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Disable the employee and check it should go to edit employee page", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_goToEditEmployeePageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditEmployeePageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToEditEmployeePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(firstEditEmployeeData.lastName, firstEditEmployeeData.firstName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "227e58d0-7c46-4b8a-9d39-93dd715e77b2", + "parentUUID": "61596c52-45e5-4376-8c3a-53b7c58db914", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the employee account", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Disable the employee and check it should disable the employee account", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_disableEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, secondEditEmployeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "578dae5f-3aeb-4d90-be28-ca7d4f33d8b6", + "parentUUID": "61596c52-45e5-4376-8c3a-53b7c58db914", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Disable the employee and check it should logout from BO", + "timedOut": false, + "duration": 679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39141e21-5b3c-4599-b304-972a1faf789b", + "parentUUID": "61596c52-45e5-4376-8c3a-53b7c58db914", + "isHook": false, + "skipped": false + }, + { + "title": "should test sign in with the disabled employee", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Update employee Disable the employee and check it should test sign in with the disabled employee", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_signInWithDisabledEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInWithDisabledEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.failedLogin(page, secondEditEmployeeData.email, secondEditEmployeeData.password)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getLoginError(page)];\n case 3:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.default.loginErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d161d189-407f-479a-bcfe-0a7472a0d569", + "parentUUID": "61596c52-45e5-4376-8c3a-53b7c58db914", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0e6fa170-7b3a-41b1-9347-dde39cd594a0", + "a7e5618c-b220-44e0-8e8c-a1ec8ca0599d", + "081f2c82-966d-4078-b484-64de5fd483b8", + "227e58d0-7c46-4b8a-9d39-93dd715e77b2", + "578dae5f-3aeb-4d90-be28-ca7d4f33d8b6", + "39141e21-5b3c-4599-b304-972a1faf789b", + "d161d189-407f-479a-bcfe-0a7472a0d569" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8578, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b0950935-12ba-44b8-af25-1767fe1ab9a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1465, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e098774d-babc-4995-89d4-2aba36f9c404", + "title": "Delete employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/02_CRUDEmployee.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Delete employee should login in BO", + "timedOut": false, + "duration": 1444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec8238d7-6c26-467b-b4b7-33efee3a1dcb", + "parentUUID": "e098774d-babc-4995-89d4-2aba36f9c404", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Delete employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_goToEmployeesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a62e68aa-4192-433b-9ddc-167e62da5d21", + "parentUUID": "e098774d-babc-4995-89d4-2aba36f9c404", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Delete employee should filter list by email", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_filterEmployeesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmployeesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', secondEditEmployeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(secondEditEmployeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4479f500-ddac-4874-9383-a69a91d0aa40", + "parentUUID": "e098774d-babc-4995-89d4-2aba36f9c404", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employee", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Delete employee should delete employee", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_deleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteEmployee(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8091476c-48bf-48df-95d8-0b1efb430094", + "parentUUID": "e098774d-babc-4995-89d4-2aba36f9c404", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of employees", + "fullTitle": "BO - Advanced Parameters - Team : CRUD Employee Delete employee should reset filter and check the number of employees", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_CRUDEmployee_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0404dc90-3d1a-43bf-aaab-3480b4b575a5", + "parentUUID": "e098774d-babc-4995-89d4-2aba36f9c404", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ec8238d7-6c26-467b-b4b7-33efee3a1dcb", + "a62e68aa-4192-433b-9ddc-167e62da5d21", + "4479f500-ddac-4874-9383-a69a91d0aa40", + "8091476c-48bf-48df-95d8-0b1efb430094", + "0404dc90-3d1a-43bf-aaab-3480b4b575a5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7669, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e651ed20-f846-4627-83c7-472eb303b22f", + "eab4119e-36dd-444c-9aa5-6f39bec1bfeb", + "ea83dceb-42fc-4993-96e4-d39c98f4204e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8627, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f161f8f6-87ea-475d-aba4-179f7fb37463", + "title": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees\"", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees \"before all\" hook in \"BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8d1070f-77a0-456c-b788-7236d0e7d089", + "parentUUID": "f161f8f6-87ea-475d-aba4-179f7fb37463", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees\"", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees \"after all\" hook in \"BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7c9837fd-7e49-434b-a917-c392146022a4", + "parentUUID": "f161f8f6-87ea-475d-aba4-179f7fb37463", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "264170ae-9750-4e07-bae4-a1cddb00c5c8", + "parentUUID": "f161f8f6-87ea-475d-aba4-179f7fb37463", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "932ae539-dd0e-4dcf-a3f6-0bc0f99a63a9", + "parentUUID": "f161f8f6-87ea-475d-aba4-179f7fb37463", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees should reset all filters and get number of employees", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b829d5c8-e667-4b4f-99b1-1bf5b11b52f5", + "parentUUID": "f161f8f6-87ea-475d-aba4-179f7fb37463", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "22a1eedc-b06d-49bf-911e-f4d2286ca0df", + "title": "Case 1 : Try to enable/disable the default employee with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by First name", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 1 : Try to enable/disable the default employee with Bulk Actions should filter by First name", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_filterDefaultEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterDefaultEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'firstname', employees_1.default.DefaultEmployee.firstName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'firstname')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(employees_1.default.DefaultEmployee.firstName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64e2e11b-0d27-4d3e-aa42-d8cef3daabf2", + "parentUUID": "22a1eedc-b06d-49bf-911e-f4d2286ca0df", + "isHook": false, + "skipped": false + }, + { + "title": "should try to disable default employee and check the error message", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 1 : Try to enable/disable the default employee with Bulk Actions should try to disable default employee and check the error message", + "timedOut": false, + "duration": 430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_disableDefaultEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var disableTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(employeeStatus.args.status, \"DefaultEmployee\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.bulkSetStatus(page, employeeStatus.args.enable, false)];\n case 2:\n disableTextResult = _a.sent();\n (0, chai_1.expect)(disableTextResult).to.be.equal(team_1.default.errorDeleteOwnAccountMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0db4cbcd-84f6-45f6-a44d-cde3e981999f", + "parentUUID": "22a1eedc-b06d-49bf-911e-f4d2286ca0df", + "isHook": false, + "skipped": false + }, + { + "title": "should try to enable default employee and check the error message", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 1 : Try to enable/disable the default employee with Bulk Actions should try to enable default employee and check the error message", + "timedOut": false, + "duration": 417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_enableDefaultEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var disableTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(employeeStatus.args.status, \"DefaultEmployee\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.bulkSetStatus(page, employeeStatus.args.enable, false)];\n case 2:\n disableTextResult = _a.sent();\n (0, chai_1.expect)(disableTextResult).to.be.equal(team_1.default.errorDeleteOwnAccountMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c412373-d7a3-4e4f-bc5e-e4092cd0386f", + "parentUUID": "22a1eedc-b06d-49bf-911e-f4d2286ca0df", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "64e2e11b-0d27-4d3e-aa42-d8cef3daabf2", + "0db4cbcd-84f6-45f6-a44d-cde3e981999f", + "0c412373-d7a3-4e4f-bc5e-e4092cd0386f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1775, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b4d7107c-c38a-4591-a850-acfaf5470480", + "title": "Case 1 : Try to delete default employee with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should try to delete default employee and check the error message", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 1 : Try to delete default employee with Bulk Actions should try to delete default employee and check the error message", + "timedOut": false, + "duration": 959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_bulkDeleteDefaultEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteDefaultEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteBulkActions(page, false)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(team_1.default.errorDeleteOwnAccountMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35cb3027-abc3-4c4a-b6b0-f22547d63881", + "parentUUID": "b4d7107c-c38a-4591-a850-acfaf5470480", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "35cb3027-abc3-4c4a-b6b0-f22547d63881" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 959, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "847f36dc-0773-4efd-8c78-0fca3c9f54da", + "title": "Case 2 : Create 2 employees then filter the table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Create 2 employees then filter the table should go to add new employee page", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_goToNewEmployeePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8ac3624-fa1a-4db5-b67d-cf7643e57076", + "parentUUID": "847f36dc-0773-4efd-8c78-0fca3c9f54da", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Create 2 employees then filter the table should create employee", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_createEmployee1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7def6295-d640-4e0d-a284-60469899b3aa", + "parentUUID": "847f36dc-0773-4efd-8c78-0fca3c9f54da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Create 2 employees then filter the table should go to add new employee page", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_goToNewEmployeePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3512da45-111e-4aed-9971-824344c8cc58", + "parentUUID": "847f36dc-0773-4efd-8c78-0fca3c9f54da", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Create 2 employees then filter the table should create employee", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_createEmployee2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea3f0735-64f3-4d28-8071-4fd5c9663ddc", + "parentUUID": "847f36dc-0773-4efd-8c78-0fca3c9f54da", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e8ac3624-fa1a-4db5-b67d-cf7643e57076", + "7def6295-d640-4e0d-a284-60469899b3aa", + "3512da45-111e-4aed-9971-824344c8cc58", + "ea3f0735-64f3-4d28-8071-4fd5c9663ddc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3271, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8f5b1881-f293-4831-a295-a0fc08518340", + "title": "Case 2 : Enable/Disable the created employees with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by First name", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Enable/Disable the created employees with Bulk Actions should filter by First name", + "timedOut": false, + "duration": 917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_filterForBulkEditStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkEditStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'firstname', firstEmployeeData.firstName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterFilter).to.be.at.most(numberOfEmployees + 2);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, i, 'firstname')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(firstEmployeeData.firstName);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20a4143b-6718-4540-a2d6-ef146ee3b5d5", + "parentUUID": "8f5b1881-f293-4831-a295-a0fc08518340", + "isHook": false, + "skipped": false + }, + { + "title": "should disable employees with Bulk Actions and check result", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Enable/Disable the created employees with Bulk Actions should disable employees with Bulk Actions and check result", + "timedOut": false, + "duration": 409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_disableEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var disableTextResult, numberOfEmployeesInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(employeeStatus.args.status, \"Employee\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.bulkSetStatus(page, employeeStatus.args.enable)];\n case 2:\n disableTextResult = _a.sent();\n (0, chai_1.expect)(disableTextResult).to.be.equal(team_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesInGrid = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, team_1.default.getStatus(page, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(employeeStatus.args.enable);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e72b280f-3065-49e7-902b-1dafe1454307", + "parentUUID": "8f5b1881-f293-4831-a295-a0fc08518340", + "isHook": false, + "skipped": false + }, + { + "title": "should enable employees with Bulk Actions and check result", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Enable/Disable the created employees with Bulk Actions should enable employees with Bulk Actions and check result", + "timedOut": false, + "duration": 420, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_enableEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var disableTextResult, numberOfEmployeesInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(employeeStatus.args.status, \"Employee\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.bulkSetStatus(page, employeeStatus.args.enable)];\n case 2:\n disableTextResult = _a.sent();\n (0, chai_1.expect)(disableTextResult).to.be.equal(team_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesInGrid = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfEmployeesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, team_1.default.getStatus(page, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(employeeStatus.args.enable);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b898ba0f-f939-4520-bf87-850433771220", + "parentUUID": "8f5b1881-f293-4831-a295-a0fc08518340", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "20a4143b-6718-4540-a2d6-ef146ee3b5d5", + "e72b280f-3065-49e7-902b-1dafe1454307", + "b898ba0f-f939-4520-bf87-850433771220" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1746, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f6401256-e3b0-46de-b66e-48d55624369a", + "title": "Case 2 : Delete employees with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/03_employeesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete employees with Bulk Actions and check result", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Delete employees with Bulk Actions should delete employees with Bulk Actions and check result", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_bulkDeleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(team_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5add622-923a-4c5b-90f6-4226c3eb201c", + "parentUUID": "f6401256-e3b0-46de-b66e-48d55624369a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Team : Create/Disable/Enable and bulk delete Employees Case 2 : Delete employees with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_employeesBulkActions_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aec7f78b-29f1-4d6c-a96e-cf5deba1142c", + "parentUUID": "f6401256-e3b0-46de-b66e-48d55624369a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b5add622-923a-4c5b-90f6-4226c3eb201c", + "aec7f78b-29f1-4d6c-a96e-cf5deba1142c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1788, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "264170ae-9750-4e07-bae4-a1cddb00c5c8", + "932ae539-dd0e-4dcf-a3f6-0bc0f99a63a9", + "b829d5c8-e667-4b4f-99b1-1bf5b11b52f5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8586, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ded27f23-817a-4f13-872e-d75ba0cc6917", + "title": "BO - Advanced Parameters - Team : Help card in Employee page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/04_helpCard.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/04_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Help card in Employee page\"", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Employee page \"before all\" hook in \"BO - Advanced Parameters - Team : Help card in Employee page\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "914d8cd1-daa2-49cb-aae9-c076d29357fd", + "parentUUID": "ded27f23-817a-4f13-872e-d75ba0cc6917", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Help card in Employee page\"", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Employee page \"after all\" hook in \"BO - Advanced Parameters - Team : Help card in Employee page\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fa3dd578-911c-4308-a163-9e417987b888", + "parentUUID": "ded27f23-817a-4f13-872e-d75ba0cc6917", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Employee page should login in BO", + "timedOut": false, + "duration": 1738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "626e5e9f-ce48-45c3-a1b2-5e8cb3b6ead0", + "parentUUID": "ded27f23-817a-4f13-872e-d75ba0cc6917", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Employee page should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_helpCard_goToEmployeesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47b4baaf-2386-4680-a795-ae7925c2d59b", + "parentUUID": "ded27f23-817a-4f13-872e-d75ba0cc6917", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Employee page should open the help side bar and check the document language", + "timedOut": false, + "duration": 119, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, team_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb04fc88-c788-4cbf-afad-d7fb086173a9", + "parentUUID": "ded27f23-817a-4f13-872e-d75ba0cc6917", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Employee page should close the help side bar", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarNotVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72bd9849-7cc3-45a6-8469-686f2e979a2f", + "parentUUID": "ded27f23-817a-4f13-872e-d75ba0cc6917", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "626e5e9f-ce48-45c3-a1b2-5e8cb3b6ead0", + "47b4baaf-2386-4680-a795-ae7925c2d59b", + "fb04fc88-c788-4cbf-afad-d7fb086173a9", + "72bd9849-7cc3-45a6-8469-686f2e979a2f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6773, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "112a84d1-979b-4145-bf19-a3c63adb7932", + "title": "BO - Advanced Parameters - Team : Sort and pagination employees", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Sort and pagination employees\"", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees \"before all\" hook in \"BO - Advanced Parameters - Team : Sort and pagination employees\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a39b3ee3-c193-4bd4-bf04-073e5a53a247", + "parentUUID": "112a84d1-979b-4145-bf19-a3c63adb7932", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Sort and pagination employees\"", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees \"after all\" hook in \"BO - Advanced Parameters - Team : Sort and pagination employees\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0413d0b7-c06d-405c-aadd-1a0f23bddac0", + "parentUUID": "112a84d1-979b-4145-bf19-a3c63adb7932", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66edd5da-9499-4d8c-988b-970d51f5d839", + "parentUUID": "112a84d1-979b-4145-bf19-a3c63adb7932", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees should go to 'Advanced parameters > Team' page", + "timedOut": false, + "duration": 4859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4343ffc6-a353-4a3b-b938-43cb7c2b6851", + "parentUUID": "112a84d1-979b-4145-bf19-a3c63adb7932", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees should reset all filters and get number of employees", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ee76f04-9c59-437b-b19c-79a556f9463d", + "parentUUID": "112a84d1-979b-4145-bf19-a3c63adb7932", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "070bc357-e27c-437f-953b-0406f86127bf", + "title": "Create 10 employees in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c128650b-ec68-4491-abd8-33f422e36978", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°1", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°1", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f23b29b9-0c63-4d58-8b35-c03a57d9f7b6", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ab9a4ce-e8d5-42ce-b0d5-264a12c3ea64", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°2", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°2", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80458d7a-6ef3-47c7-a1e3-098aa9b035a1", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25450d8d-0f64-4d8b-9f39-857e605927c8", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°3", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°3", + "timedOut": false, + "duration": 827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3686cafd-1c79-4db8-b684-df9314ee21e1", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b782d2f6-912c-4fdd-b07e-0c4bbd7beda8", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°4", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°4", + "timedOut": false, + "duration": 671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29fdc90a-e340-4fd8-ab51-fb0e4322eb7d", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "676e5425-c831-45ef-8125-8cf1b96a820a", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°5", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°5", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4067c7d9-c2f2-47f9-a5a8-d405e74d1bae", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68adbb19-09b7-4770-9fbd-41c39f3d959a", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°6", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°6", + "timedOut": false, + "duration": 852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "041d40ee-1e58-467c-a064-1558c4aa3f97", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3dee6b8-261e-4d7a-9410-01a351b6c952", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°7", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°7", + "timedOut": false, + "duration": 894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0ace30b-98cf-41ca-927d-f528e8437c8f", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c1f6dea-678b-434e-8313-fb3f17002c7f", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°8", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°8", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ae092dc-5e99-442d-8ff2-5aedb1a2e7e9", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "217ef8db-3c03-42a0-9ae8-11161f8fc0ae", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°9", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°9", + "timedOut": false, + "duration": 906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c54c3ffc-9c2c-46ad-b65d-d6756f8621ab", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should go to add new employee page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_goToNewEmployeePage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewEmployeePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14ce1bf8-18cc-4dad-8957-b967577abc55", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee n°10", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Create 10 employees in BO should create employee n°10", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_createEmployee10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfEmployeesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createEmployee\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [4 /*yield*/, team_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmployeesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterCreation).to.be.equal(numberOfEmployees + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ccc7a62-5f97-45ca-b4d6-d9dae49d27b0", + "parentUUID": "070bc357-e27c-437f-953b-0406f86127bf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c128650b-ec68-4491-abd8-33f422e36978", + "f23b29b9-0c63-4d58-8b35-c03a57d9f7b6", + "9ab9a4ce-e8d5-42ce-b0d5-264a12c3ea64", + "80458d7a-6ef3-47c7-a1e3-098aa9b035a1", + "25450d8d-0f64-4d8b-9f39-857e605927c8", + "3686cafd-1c79-4db8-b684-df9314ee21e1", + "b782d2f6-912c-4fdd-b07e-0c4bbd7beda8", + "29fdc90a-e340-4fd8-ab51-fb0e4322eb7d", + "676e5425-c831-45ef-8125-8cf1b96a820a", + "4067c7d9-c2f2-47f9-a5a8-d405e74d1bae", + "68adbb19-09b7-4770-9fbd-41c39f3d959a", + "041d40ee-1e58-467c-a064-1558c4aa3f97", + "d3dee6b8-261e-4d7a-9410-01a351b6c952", + "c0ace30b-98cf-41ca-927d-f528e8437c8f", + "8c1f6dea-678b-434e-8313-fb3f17002c7f", + "9ae092dc-5e99-442d-8ff2-5aedb1a2e7e9", + "217ef8db-3c03-42a0-9ae8-11161f8fc0ae", + "c54c3ffc-9c2c-46ad-b65d-d6756f8621ab", + "14ce1bf8-18cc-4dad-8957-b967577abc55", + "0ccc7a62-5f97-45ca-b4d6-d9dae49d27b0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16487, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "title": "Sort employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_employee' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'id_employee' 'desc' and check result", + "timedOut": false, + "duration": 2979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByIDDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d298303-4be0-421a-ba45-e3675f5e7141", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'firstname' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'firstname' 'desc' and check result", + "timedOut": false, + "duration": 3825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByFirstNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d4a42ed-5b78-4dec-9c2b-aaf8ed0328d8", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'firstname' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'firstname' 'asc' and check result", + "timedOut": false, + "duration": 2969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByFirstNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e77618e0-be03-461a-b9cf-768cd6023ef5", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'lastname' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'lastname' 'desc' and check result", + "timedOut": false, + "duration": 3811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByLastNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58fd270f-231d-4bbf-8134-f80ea4083888", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'lastname' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'lastname' 'asc' and check result", + "timedOut": false, + "duration": 3009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByLastNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c27197d-6afa-4b22-9d3b-f3dd18d37fdc", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'email' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'email' 'desc' and check result", + "timedOut": false, + "duration": 3819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByEmailDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81909bb5-c4b8-4d1c-837c-3d923e78439b", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'email' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'email' 'asc' and check result", + "timedOut": false, + "duration": 2976, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByEmailAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23f0842e-bdaa-49dd-a9e9-8c7d2b4d06a8", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'profile' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'profile' 'desc' and check result", + "timedOut": false, + "duration": 3842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByProfileDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "851569a0-b9a3-48c0-935e-9807ebfb7994", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'profile' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'profile' 'asc' and check result", + "timedOut": false, + "duration": 2998, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByProfileAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8c8ed3e-7836-4648-be31-88c6ed4b9605", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 4053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByActiveDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "096bb50a-62b7-4487-8d39-118a3577b963", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 3130, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByActiveAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a3ec789-864b-4e01-9ef9-393b7e59e91d", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_employee' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Sort employee should sort by 'id_employee' 'asc' and check result", + "timedOut": false, + "duration": 3008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_sortByIDAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, team_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca9585ae-2bed-4d2f-9c5a-ad2f8c21d7c5", + "parentUUID": "f1bcc0e9-3871-41c8-846f-6d5614d31613", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2d298303-4be0-421a-ba45-e3675f5e7141", + "3d4a42ed-5b78-4dec-9c2b-aaf8ed0328d8", + "e77618e0-be03-461a-b9cf-768cd6023ef5", + "58fd270f-231d-4bbf-8134-f80ea4083888", + "8c27197d-6afa-4b22-9d3b-f3dd18d37fdc", + "81909bb5-c4b8-4d1c-837c-3d923e78439b", + "23f0842e-bdaa-49dd-a9e9-8c7d2b4d06a8", + "851569a0-b9a3-48c0-935e-9807ebfb7994", + "c8c8ed3e-7836-4648-be31-88c6ed4b9605", + "096bb50a-62b7-4487-8d39-118a3577b963", + "3a3ec789-864b-4e01-9ef9-393b7e59e91d", + "ca9585ae-2bed-4d2f-9c5a-ad2f8c21d7c5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 40419, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "90d62e7f-efb7-4a12-a695-d626d8fa1907", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38fa7136-f46e-44f1-becf-3ade1cdb5b58", + "parentUUID": "90d62e7f-efb7-4a12-a695-d626d8fa1907", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Pagination next and previous should click on next", + "timedOut": false, + "duration": 822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2959225-ee68-461f-938c-db97b301c196", + "parentUUID": "90d62e7f-efb7-4a12-a695-d626d8fa1907", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Pagination next and previous should click on previous", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6923a890-8308-4b8f-8b5c-b3f212e97f07", + "parentUUID": "90d62e7f-efb7-4a12-a695-d626d8fa1907", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "513fd87a-72d0-4612-bb67-6f3b778baec2", + "parentUUID": "90d62e7f-efb7-4a12-a695-d626d8fa1907", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "38fa7136-f46e-44f1-becf-3ade1cdb5b58", + "e2959225-ee68-461f-938c-db97b301c196", + "6923a890-8308-4b8f-8b5c-b3f212e97f07", + "513fd87a-72d0-4612-bb67-6f3b778baec2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2127, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c5f7be4d-35b2-4d87-90e6-f988d106bf3b", + "title": "Delete employees with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/employees/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by email", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Delete employees with Bulk Actions should filter list by email", + "timedOut": false, + "duration": 1008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', employeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(employeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b851d6d9-a934-4e8d-b812-e7005905c80b", + "parentUUID": "c5f7be4d-35b2-4d87-90e6-f988d106bf3b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employees with Bulk Actions and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Delete employees with Bulk Actions should delete employees with Bulk Actions and check result", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_bulkDeleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(team_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35abe903-6ea3-42d2-9d4e-fb6648bed5e6", + "parentUUID": "c5f7be4d-35b2-4d87-90e6-f988d106bf3b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Team : Sort and pagination employees Delete employees with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_employees_sortAndPagination_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56bcfc81-b90d-42ae-a74e-af5c9215e8f1", + "parentUUID": "c5f7be4d-35b2-4d87-90e6-f988d106bf3b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b851d6d9-a934-4e8d-b812-e7005905c80b", + "35abe903-6ea3-42d2-9d4e-fb6648bed5e6", + "56bcfc81-b90d-42ae-a74e-af5c9215e8f1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2849, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "66edd5da-9499-4d8c-988b-970d51f5d839", + "4343ffc6-a353-4a3b-b938-43cb7c2b6851", + "3ee76f04-9c59-437b-b19c-79a556f9463d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8595, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d01b27bd-88d0-4549-a6c4-faf75d793bc4", + "title": "BO - Advanced Parameters - Team - Permission : Edit menu", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team - Permission : Edit menu\"", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu \"before all\" hook in \"BO - Advanced Parameters - Team - Permission : Edit menu\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cfcdc07-89fc-4225-8dc0-a621f8f7d255", + "parentUUID": "d01b27bd-88d0-4549-a6c4-faf75d793bc4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team - Permission : Edit menu\"", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu \"after all\" hook in \"BO - Advanced Parameters - Team - Permission : Edit menu\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0fa4df9f-a9f4-4d20-bc9d-2ba00374b433", + "parentUUID": "d01b27bd-88d0-4549-a6c4-faf75d793bc4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "208a4a08-5315-46c6-8b64-38b1d675763b", + "title": "Go to 'Logistician' profile", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Go to 'Logistician' profile should login in BO", + "timedOut": false, + "duration": 1720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4df9e3d3-bff7-4618-9a6d-61a2253e9117", + "parentUUID": "208a4a08-5315-46c6-8b64-38b1d675763b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Go to 'Logistician' profile should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1faa8181-7e8f-4465-9514-3db148d7f34f", + "parentUUID": "208a4a08-5315-46c6-8b64-38b1d675763b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Permissions' tab", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Go to 'Logistician' profile should go to 'Permissions' tab", + "timedOut": false, + "duration": 1501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_goToPermissionsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPermissionsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToPermissionsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Permissions tab is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4752f37-4a4d-4185-a65e-1488c04a5e9e", + "parentUUID": "208a4a08-5315-46c6-8b64-38b1d675763b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Logistician' profile", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Go to 'Logistician' profile should click on 'Logistician' profile", + "timedOut": false, + "duration": 135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_goToProfileSubTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSubTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProfileSubTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.goToProfileSubTab(page, 'logistician')];\n case 2:\n isSubTabOpened = _a.sent();\n (0, chai_1.expect)(isSubTabOpened, 'Profile sub-tab is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5457c1e5-8ca5-473a-8a1c-ca33be024264", + "parentUUID": "208a4a08-5315-46c6-8b64-38b1d675763b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4df9e3d3-bff7-4618-9a6d-61a2253e9117", + "1faa8181-7e8f-4465-9514-3db148d7f34f", + "f4752f37-4a4d-4185-a65e-1488c04a5e9e", + "5457c1e5-8ca5-473a-8a1c-ca33be024264" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8230, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "534bad15-df24-4594-add9-7abeb4f347ad", + "title": "Check all checkboxes for all the menu and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the checkbox 'ALL' from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all checkboxes for all the menu and check it should check the checkbox 'ALL' from the header", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllCheckbox', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllPages(page, 'all')];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf170848-18bd-46fd-841d-fc57103de9ff", + "parentUUID": "534bad15-df24-4594-add9-7abeb4f347ad", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'view' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all checkboxes for all the menu and check it should check that everything in 'view' permission is checked", + "timedOut": false, + "duration": 743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_check_view1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check_\".concat(test.args.action, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7977af8e-94d0-4e49-9da7-d20f1e58f786", + "parentUUID": "534bad15-df24-4594-add9-7abeb4f347ad", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'add' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all checkboxes for all the menu and check it should check that everything in 'add' permission is checked", + "timedOut": false, + "duration": 722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_check_add1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check_\".concat(test.args.action, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76c61652-7269-459a-909a-4e7034d3d1b8", + "parentUUID": "534bad15-df24-4594-add9-7abeb4f347ad", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'edit' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all checkboxes for all the menu and check it should check that everything in 'edit' permission is checked", + "timedOut": false, + "duration": 723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_check_edit1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check_\".concat(test.args.action, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6321d945-ddc2-4dcc-809a-f294be35b505", + "parentUUID": "534bad15-df24-4594-add9-7abeb4f347ad", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'delete' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all checkboxes for all the menu and check it should check that everything in 'delete' permission is checked", + "timedOut": false, + "duration": 722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_check_delete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check_\".concat(test.args.action, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81e2c545-f29b-4cab-be43-85970e694ae7", + "parentUUID": "534bad15-df24-4594-add9-7abeb4f347ad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cf170848-18bd-46fd-841d-fc57103de9ff", + "7977af8e-94d0-4e49-9da7-d20f1e58f786", + "76c61652-7269-459a-909a-4e7034d3d1b8", + "6321d945-ddc2-4dcc-809a-f294be35b505", + "81e2c545-f29b-4cab-be43-85970e694ae7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3800, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e06ee6a3-ed03-4e44-b8fe-7087d168f49d", + "title": "Uncheck all checkboxes for all the menu and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should uncheck the checkbox 'ALL' from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Uncheck all checkboxes for all the menu and check it should uncheck the checkbox 'ALL' from the header", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_uncheckAllCheckbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uncheckAllCheckbox', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllPages(page, 'all', false)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6570444-9989-4b04-8ba3-fb2ccdc0e25a", + "parentUUID": "e06ee6a3-ed03-4e44-b8fe-7087d168f49d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'view' permission is unchecked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Uncheck all checkboxes for all the menu and check it should check that everything in 'view' permission is unchecked", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_unchecked_view1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"unchecked_\".concat(test.args.action, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action, false)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b10d00a8-742f-40fe-861d-7128389b5063", + "parentUUID": "e06ee6a3-ed03-4e44-b8fe-7087d168f49d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'add' permission is unchecked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Uncheck all checkboxes for all the menu and check it should check that everything in 'add' permission is unchecked", + "timedOut": false, + "duration": 747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_unchecked_add1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"unchecked_\".concat(test.args.action, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action, false)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e444f7ac-293e-48de-af82-970757e48ab7", + "parentUUID": "e06ee6a3-ed03-4e44-b8fe-7087d168f49d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'edit' permission is unchecked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Uncheck all checkboxes for all the menu and check it should check that everything in 'edit' permission is unchecked", + "timedOut": false, + "duration": 677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_unchecked_edit1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"unchecked_\".concat(test.args.action, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action, false)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "658dc14c-49e6-4f29-8edd-f4213773bad8", + "parentUUID": "e06ee6a3-ed03-4e44-b8fe-7087d168f49d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'delete' permission is unchecked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Uncheck all checkboxes for all the menu and check it should check that everything in 'delete' permission is unchecked", + "timedOut": false, + "duration": 662, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_unchecked_delete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"unchecked_\".concat(test.args.action, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action, false)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "697bef9a-b603-435e-bc03-0b02cd37f09d", + "parentUUID": "e06ee6a3-ed03-4e44-b8fe-7087d168f49d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b6570444-9989-4b04-8ba3-fb2ccdc0e25a", + "b10d00a8-742f-40fe-861d-7128389b5063", + "e444f7ac-293e-48de-af82-970757e48ab7", + "658dc14c-49e6-4f29-8edd-f4213773bad8", + "697bef9a-b603-435e-bc03-0b02cd37f09d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4466, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "title": "Check checkbox by permission and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check 'view' checkbox from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check checkbox by permission and check it should check 'view' checkbox from the header", + "timedOut": false, + "duration": 1533, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckbox_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckbox_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllPages(page, test.args.action)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43b0b6d7-9cd3-4ff5-ba83-1d3b52052293", + "parentUUID": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'view' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check checkbox by permission and check it should check that everything in 'view' permission is checked", + "timedOut": false, + "duration": 653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckboxForpermission0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckboxForpermission\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a3c3dcf-b205-4580-a687-fc64976973e7", + "parentUUID": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'add' checkbox from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check checkbox by permission and check it should check 'add' checkbox from the header", + "timedOut": false, + "duration": 3563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckbox_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckbox_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllPages(page, test.args.action)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "528fa4e2-df16-4602-950d-97f60c9926c6", + "parentUUID": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'add' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check checkbox by permission and check it should check that everything in 'add' permission is checked", + "timedOut": false, + "duration": 669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckboxForpermission1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckboxForpermission\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73241139-8d81-4c8e-81e8-63bf8327941f", + "parentUUID": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'edit' checkbox from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check checkbox by permission and check it should check 'edit' checkbox from the header", + "timedOut": false, + "duration": 3563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckbox_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckbox_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllPages(page, test.args.action)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f712913f-b3db-4a2c-8f2c-b2c8c6b89c65", + "parentUUID": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'edit' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check checkbox by permission and check it should check that everything in 'edit' permission is checked", + "timedOut": false, + "duration": 677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckboxForpermission2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckboxForpermission\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed02195e-f8b9-4390-8ec7-8ceb4d0bb888", + "parentUUID": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'delete' checkbox from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check checkbox by permission and check it should check 'delete' checkbox from the header", + "timedOut": false, + "duration": 3560, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckbox_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckbox_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllPages(page, test.args.action)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cd4474f-3144-4fde-a1e8-a3026a32afae", + "parentUUID": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'delete' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check checkbox by permission and check it should check that everything in 'delete' permission is checked", + "timedOut": false, + "duration": 664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAllCheckboxForpermission3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckboxForpermission\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isBulkPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e7d7aeb-f905-45cf-b348-231a979c102f", + "parentUUID": "5bed9988-246a-49ce-bba6-0b08030fbf30", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "43b0b6d7-9cd3-4ff5-ba83-1d3b52052293", + "0a3c3dcf-b205-4580-a687-fc64976973e7", + "528fa4e2-df16-4602-950d-97f60c9926c6", + "73241139-8d81-4c8e-81e8-63bf8327941f", + "f712913f-b3db-4a2c-8f2c-b2c8c6b89c65", + "ed02195e-f8b9-4390-8ec7-8ceb4d0bb888", + "9cd4474f-3144-4fde-a1e8-a3026a32afae", + "1e7d7aeb-f905-45cf-b348-231a979c102f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14882, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "43b4146a-93b1-4eff-b8d6-f67b05b08261", + "title": "Refresh the page and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should refresh the page", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Refresh the page and check result should refresh the page", + "timedOut": false, + "duration": 422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_refreshPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSubTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'refreshPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.goToProfileSubTab(page, 'logistician')];\n case 3:\n isSubTabOpened = _a.sent();\n (0, chai_1.expect)(isSubTabOpened, 'Profile sub-tab is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e098a5ed-3b59-48c5-a773-a6b52c150df2", + "parentUUID": "43b4146a-93b1-4eff-b8d6-f67b05b08261", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'view' permission is checked for all menu", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Refresh the page and check result should check that 'view' permission is checked for all menu", + "timedOut": false, + "duration": 704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAfterRefreshPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAfterRefreshPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfPagesUnChecked(page, test.args.action)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57a8f8f3-74e4-46b7-bab8-a94cd2a94407", + "parentUUID": "43b4146a-93b1-4eff-b8d6-f67b05b08261", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'add' permission is checked for all menu", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Refresh the page and check result should check that 'add' permission is checked for all menu", + "timedOut": false, + "duration": 700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAfterRefreshPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAfterRefreshPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfPagesUnChecked(page, test.args.action)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db644d0e-3785-4627-ab61-04abceb027e9", + "parentUUID": "43b4146a-93b1-4eff-b8d6-f67b05b08261", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'edit' permission is checked for all menu", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Refresh the page and check result should check that 'edit' permission is checked for all menu", + "timedOut": false, + "duration": 677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAfterRefreshPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAfterRefreshPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfPagesUnChecked(page, test.args.action)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "566bcb08-a1ce-432d-b036-106b8c22d44e", + "parentUUID": "43b4146a-93b1-4eff-b8d6-f67b05b08261", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'delete' permission is checked for all menu", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Refresh the page and check result should check that 'delete' permission is checked for all menu", + "timedOut": false, + "duration": 663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAfterRefreshPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAfterRefreshPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfPagesUnChecked(page, test.args.action)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f778bdbf-a54a-4a71-a30a-e533146ad851", + "parentUUID": "43b4146a-93b1-4eff-b8d6-f67b05b08261", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'all' permission is checked for all menu", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Refresh the page and check result should check that 'all' permission is checked for all menu", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkAfterRefreshPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAfterRefreshPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfPagesUnChecked(page, test.args.action)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a4b782c-c5a7-41fb-8e4d-55ab9d46a820", + "parentUUID": "43b4146a-93b1-4eff-b8d6-f67b05b08261", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e098a5ed-3b59-48c5-a773-a6b52c150df2", + "57a8f8f3-74e4-46b7-bab8-a94cd2a94407", + "db644d0e-3785-4627-ab61-04abceb027e9", + "566bcb08-a1ce-432d-b036-106b8c22d44e", + "f778bdbf-a54a-4a71-a30a-e533146ad851", + "6a4b782c-c5a7-41fb-8e4d-55ab9d46a820" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3867, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "title": "Check all permissions for Orders and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/01_editMenu.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should uncheck the checkbox 'ALL' from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should uncheck the checkbox 'ALL' from the header", + "timedOut": false, + "duration": 5400, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_uncheckAll\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uncheckAll', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllPages(page, 'all', false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllPages(page, 'all', false)];\n case 3:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4978672-889c-4319-8f3c-92b979e455d3", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + }, + { + "title": "should set the permission 'All' for 'Orders'", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should set the permission 'All' for 'Orders'", + "timedOut": false, + "duration": 8312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_setPermission\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPermission', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermission(page, 'AdminParentOrders', 'all')];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf985b6e-e880-49c4-a76f-a472e34c2bee", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of checkbox checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should check the number of checkbox checked", + "timedOut": false, + "duration": 752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkNumberOfCheckbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCheckBoxes, number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfCheckbox', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfElementInMenu(page)];\n case 2:\n numberOfCheckBoxes = _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfPagesUnChecked(page, 'all')];\n case 3:\n number = _a.sent();\n (0, chai_1.expect)(numberOfCheckBoxes - number).to.eq(6);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22918c65-fc76-4f2c-b4f9-c35acfe927d9", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the menu 'SELL' is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should check that the menu 'SELL' is checked", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkMenu0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenu\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isPageChecked(page, test.args.className, 'all')];\n case 2:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f005f51-c02e-4124-a209-ca1d2bfb4a93", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the menu 'AdminParentOrders' is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should check that the menu 'AdminParentOrders' is checked", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkMenu1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenu\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isPageChecked(page, test.args.className, 'all')];\n case 2:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04e052d5-5481-415c-849b-7beab9ebc1c2", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the menu 'AdminCatalog' is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should check that the menu 'AdminCatalog' is checked", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkMenu2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenu\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isPageChecked(page, test.args.className, 'all')];\n case 2:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff6300cd-6c6e-4056-8ea3-a846e6ac7575", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the menu 'AdminParentCustomer' is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should check that the menu 'AdminParentCustomer' is checked", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkMenu3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenu\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isPageChecked(page, test.args.className, 'all')];\n case 2:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "797a9623-c238-4752-a79d-393215668fb6", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the menu 'AdminParentCustomerThreads' is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should check that the menu 'AdminParentCustomerThreads' is checked", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkMenu4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenu\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isPageChecked(page, test.args.className, 'all')];\n case 2:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1af4d37b-c4b4-44ae-97b3-623d5f3cfa37", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the menu 'AdminStats' is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit menu Check all permissions for Orders and check result should check that the menu 'AdminStats' is checked", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editMenu_checkMenu5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenu\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isPageChecked(page, test.args.className, 'all')];\n case 2:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e0edc1b-6ef7-4572-89be-917dd49bf670", + "parentUUID": "ca512646-c134-489c-84f0-4bbfaa4f6845", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b4978672-889c-4319-8f3c-92b979e455d3", + "bf985b6e-e880-49c4-a76f-a472e34c2bee", + "22918c65-fc76-4f2c-b4f9-c35acfe927d9", + "4f005f51-c02e-4124-a209-ca1d2bfb4a93", + "04e052d5-5481-415c-849b-7beab9ebc1c2", + "ff6300cd-6c6e-4056-8ea3-a846e6ac7575", + "797a9623-c238-4752-a79d-393215668fb6", + "1af4d37b-c4b4-44ae-97b3-623d5f3cfa37", + "8e0edc1b-6ef7-4572-89be-917dd49bf670" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14492, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ab7d545c-b1f8-4aba-ae0b-b6789d073957", + "title": "BO - Advanced Parameters - Team - Permission : Edit modules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/02_editModules.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/02_editModules.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team - Permission : Edit modules\"", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules \"before all\" hook in \"BO - Advanced Parameters - Team - Permission : Edit modules\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f496c2a-28f0-4c9e-b0d9-43b284bb3f9c", + "parentUUID": "ab7d545c-b1f8-4aba-ae0b-b6789d073957", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team - Permission : Edit modules\"", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules \"after all\" hook in \"BO - Advanced Parameters - Team - Permission : Edit modules\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d85eedce-ee42-4a2a-9ea2-b6fd5b43030f", + "parentUUID": "ab7d545c-b1f8-4aba-ae0b-b6789d073957", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d57a0409-8a7a-4afa-8af3-7ba42f48eacc", + "title": "Go to 'Logistician' profile", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/02_editModules.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/02_editModules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Go to 'Logistician' profile should login in BO", + "timedOut": false, + "duration": 1757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d16af4c4-cec2-4228-ae97-98728ce021cf", + "parentUUID": "d57a0409-8a7a-4afa-8af3-7ba42f48eacc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Go to 'Logistician' profile should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24ddb138-9507-4c9d-b60e-6e99a0501f30", + "parentUUID": "d57a0409-8a7a-4afa-8af3-7ba42f48eacc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Permissions' tab", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Go to 'Logistician' profile should go to 'Permissions' tab", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_goToPermissionsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPermissionsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToPermissionsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Permissions tab is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "934e8caa-0f86-426a-82e1-a99d8dc2e192", + "parentUUID": "d57a0409-8a7a-4afa-8af3-7ba42f48eacc", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Logistician' profile", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Go to 'Logistician' profile should click on 'Logistician' profile", + "timedOut": false, + "duration": 126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_goToProfileSubTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSubTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProfileSubTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.goToProfileSubTab(page, 'logistician')];\n case 2:\n isSubTabOpened = _a.sent();\n (0, chai_1.expect)(isSubTabOpened, 'Profile sub-tab is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3aba7236-a3fa-4b1f-8538-4070ab4a9c56", + "parentUUID": "d57a0409-8a7a-4afa-8af3-7ba42f48eacc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d16af4c4-cec2-4228-ae97-98728ce021cf", + "24ddb138-9507-4c9d-b60e-6e99a0501f30", + "934e8caa-0f86-426a-82e1-a99d8dc2e192", + "3aba7236-a3fa-4b1f-8538-4070ab4a9c56" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7654, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1e8c15ee-0445-40f7-9f65-c42ddd8c399c", + "title": "Check checkbox by permission for all modules and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/02_editModules.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/02_editModules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check 'view' checkbox from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Check checkbox by permission for all modules and check it should check 'view' checkbox from the header", + "timedOut": false, + "duration": 269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAllCheckbox_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckbox_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllModules(page, test.args.action)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80ca4baa-28f9-4a2d-a036-2c6940c88021", + "parentUUID": "1e8c15ee-0445-40f7-9f65-c42ddd8c399c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'view' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Check checkbox by permission for all modules and check it should check that everything in 'view' permission is checked", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAllCheckboxForBlock0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckboxForBlock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isAllPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5792782-ee88-44d3-994d-5e44e7feb08d", + "parentUUID": "1e8c15ee-0445-40f7-9f65-c42ddd8c399c", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'configure' checkbox from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Check checkbox by permission for all modules and check it should check 'configure' checkbox from the header", + "timedOut": false, + "duration": 4578, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAllCheckbox_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckbox_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllModules(page, test.args.action)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c66be38-766b-4e1f-92da-1a6417e0be65", + "parentUUID": "1e8c15ee-0445-40f7-9f65-c42ddd8c399c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'configure' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Check checkbox by permission for all modules and check it should check that everything in 'configure' permission is checked", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAllCheckboxForBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckboxForBlock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isAllPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "285a1aa0-5a78-42e4-bdca-42cd2b27ef99", + "parentUUID": "1e8c15ee-0445-40f7-9f65-c42ddd8c399c", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'uninstall' checkbox from the header", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Check checkbox by permission for all modules and check it should check 'uninstall' checkbox from the header", + "timedOut": false, + "duration": 4559, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAllCheckbox_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckbox_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermissionOnAllModules(page, test.args.action)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4250b8e5-f6a2-473e-bcdc-54b4b5505aa9", + "parentUUID": "1e8c15ee-0445-40f7-9f65-c42ddd8c399c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that everything in 'uninstall' permission is checked", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Check checkbox by permission for all modules and check it should check that everything in 'uninstall' permission is checked", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAllCheckboxForBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkPermissionPerformed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAllCheckboxForBlock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.isAllPermissionPerformed(page, test.args.action)];\n case 2:\n isBulkPermissionPerformed = _a.sent();\n (0, chai_1.expect)(isBulkPermissionPerformed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba5dda0a-e6f1-4079-b606-d9c76696e743", + "parentUUID": "1e8c15ee-0445-40f7-9f65-c42ddd8c399c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "80ca4baa-28f9-4a2d-a036-2c6940c88021", + "f5792782-ee88-44d3-994d-5e44e7feb08d", + "0c66be38-766b-4e1f-92da-1a6417e0be65", + "285a1aa0-5a78-42e4-bdca-42cd2b27ef99", + "4250b8e5-f6a2-473e-bcdc-54b4b5505aa9", + "ba5dda0a-e6f1-4079-b606-d9c76696e743" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9423, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b139a8ba-681d-4710-9794-b913cc01982b", + "title": "Refresh the page and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/permission/02_editModules.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/permission/02_editModules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should refresh the page", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Refresh the page and check result should refresh the page", + "timedOut": false, + "duration": 413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_refreshPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSubTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'refreshPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.goToProfileSubTab(page, 'logistician')];\n case 3:\n isSubTabOpened = _a.sent();\n (0, chai_1.expect)(isSubTabOpened, 'Profile sub-tab is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9061c17c-a05f-4f25-90ae-b6dd3d3aca65", + "parentUUID": "b139a8ba-681d-4710-9794-b913cc01982b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'view' permission is checked for all menu", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Refresh the page and check result should check that 'view' permission is checked for all menu", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAfterRefreshPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfModulesUnchecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAfterRefreshPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfModulesUnChecked(page, test.args.action)];\n case 2:\n numberOfModulesUnchecked = _a.sent();\n (0, chai_1.expect)(numberOfModulesUnchecked).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd3ce22d-620b-4bae-bf1b-c30d8cdf383b", + "parentUUID": "b139a8ba-681d-4710-9794-b913cc01982b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'configure' permission is checked for all menu", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Refresh the page and check result should check that 'configure' permission is checked for all menu", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAfterRefreshPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfModulesUnchecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAfterRefreshPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfModulesUnChecked(page, test.args.action)];\n case 2:\n numberOfModulesUnchecked = _a.sent();\n (0, chai_1.expect)(numberOfModulesUnchecked).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a14c319-af92-4ba8-931a-f8cb190a7a7e", + "parentUUID": "b139a8ba-681d-4710-9794-b913cc01982b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'uninstall' permission is checked for all menu", + "fullTitle": "BO - Advanced Parameters - Team - Permission : Edit modules Refresh the page and check result should check that 'uninstall' permission is checked for all menu", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_permission_editModules_checkAfterRefreshPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfModulesUnchecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAfterRefreshPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.getNumberOfModulesUnChecked(page, test.args.action)];\n case 2:\n numberOfModulesUnchecked = _a.sent();\n (0, chai_1.expect)(numberOfModulesUnchecked).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cdc7eb7-422b-4041-b45f-5a5e1e4ac87a", + "parentUUID": "b139a8ba-681d-4710-9794-b913cc01982b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9061c17c-a05f-4f25-90ae-b6dd3d3aca65", + "fd3ce22d-620b-4bae-bf1b-c30d8cdf383b", + "4a14c319-af92-4ba8-931a-f8cb190a7a7e", + "5cdc7eb7-422b-4041-b45f-5a5e1e4ac87a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 449, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d296f038-da45-4fc4-84da-060e33da6f9a", + "title": "BO - Advanced Parameters - Team : Filter roles table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/01_filterRoles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/01_filterRoles.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Filter roles table\"", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table \"before all\" hook in \"BO - Advanced Parameters - Team : Filter roles table\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24bbba1f-ae15-4053-b7b3-a65f77a8a32d", + "parentUUID": "d296f038-da45-4fc4-84da-060e33da6f9a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Filter roles table\"", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table \"after all\" hook in \"BO - Advanced Parameters - Team : Filter roles table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "84449e88-587a-4087-b0a4-3b93f2455de4", + "parentUUID": "d296f038-da45-4fc4-84da-060e33da6f9a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42ff8f2c-e4f6-499c-8e61-d7b94e2fbbfc", + "parentUUID": "d296f038-da45-4fc4-84da-060e33da6f9a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_filterRoles_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7d25815-affc-4dc0-9deb-f8d2ab512906", + "parentUUID": "d296f038-da45-4fc4-84da-060e33da6f9a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Roles' page", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table should go to 'Roles' page", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_filterRoles_goToRolesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToRolesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToRolesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(roles_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ed06b72-d75e-46f8-90e2-385ec846a116", + "parentUUID": "d296f038-da45-4fc4-84da-060e33da6f9a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of roles", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table should reset all filters and get number of roles", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_filterRoles_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProfiles = _a.sent();\n (0, chai_1.expect)(numberOfProfiles).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "175b17d2-af68-4a78-85d6-018e854a5433", + "parentUUID": "d296f038-da45-4fc4-84da-060e33da6f9a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b9d6b2b2-7012-4429-aba6-4ee4f06189cd", + "title": "Filter roles table in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/01_filterRoles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/01_filterRoles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by id_profile", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table Filter roles table in BO should filter list by id_profile", + "timedOut": false, + "duration": 868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_filterRoles_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProfilesAfterFilter, i, textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.filterRoles(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfProfilesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProfilesAfterFilter).to.be.at.most(numberOfProfiles);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProfilesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, roles_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 5:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dc687ef-8aa1-4ad1-9cd0-622bdebfd809", + "parentUUID": "b9d6b2b2-7012-4429-aba6-4ee4f06189cd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table Filter roles table in BO should reset filter", + "timedOut": false, + "duration": 307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_filterRoles_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProfilesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProfilesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProfilesAfterDelete).to.be.equal(numberOfProfiles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "386af707-01d5-49a2-ac0c-2e340fb97702", + "parentUUID": "b9d6b2b2-7012-4429-aba6-4ee4f06189cd", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table Filter roles table in BO should filter list by name", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_filterRoles_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProfilesAfterFilter, i, textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.filterRoles(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfProfilesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProfilesAfterFilter).to.be.at.most(numberOfProfiles);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProfilesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, roles_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 5:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "182ad553-9666-48ed-b60e-402b954d220a", + "parentUUID": "b9d6b2b2-7012-4429-aba6-4ee4f06189cd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Advanced Parameters - Team : Filter roles table Filter roles table in BO should reset filter", + "timedOut": false, + "duration": 313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_filterRoles_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProfilesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProfilesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProfilesAfterDelete).to.be.equal(numberOfProfiles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59e5b706-a932-4141-bcb5-39c4ec531eae", + "parentUUID": "b9d6b2b2-7012-4429-aba6-4ee4f06189cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5dc687ef-8aa1-4ad1-9cd0-622bdebfd809", + "386af707-01d5-49a2-ac0c-2e340fb97702", + "182ad553-9666-48ed-b60e-402b954d220a", + "59e5b706-a932-4141-bcb5-39c4ec531eae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2373, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "42ff8f2c-e4f6-499c-8e61-d7b94e2fbbfc", + "a7d25815-affc-4dc0-9deb-f8d2ab512906", + "6ed06b72-d75e-46f8-90e2-385ec846a116", + "175b17d2-af68-4a78-85d6-018e854a5433" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9365, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3c9b4b36-3ba7-405d-b095-06c34e52b6a1", + "title": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/02_CRUDRoles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/02_CRUDRoles.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO\"", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO \"before all\" hook in \"BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7f2efc6-35bb-4462-adcc-d2b779592e69", + "parentUUID": "3c9b4b36-3ba7-405d-b095-06c34e52b6a1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO\"", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO \"after all\" hook in \"BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "03562789-7430-4e90-a9d2-b46141904ee1", + "parentUUID": "3c9b4b36-3ba7-405d-b095-06c34e52b6a1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO should login in BO", + "timedOut": false, + "duration": 1700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd647a0f-5e79-4e09-95aa-744b2efef365", + "parentUUID": "3c9b4b36-3ba7-405d-b095-06c34e52b6a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bde5fbc-c350-4652-8f48-73e07c73121e", + "parentUUID": "3c9b4b36-3ba7-405d-b095-06c34e52b6a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Roles' page", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO should go to 'Roles' page", + "timedOut": false, + "duration": 777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_goToRolesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToRolesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToRolesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(roles_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e057ed8d-aa93-4fdf-9bb4-f578b5f4198f", + "parentUUID": "3c9b4b36-3ba7-405d-b095-06c34e52b6a1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of roles", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO should reset all filters and get number of roles", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRoles = _a.sent();\n (0, chai_1.expect)(numberOfRoles).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75eb4cac-3452-4927-bb1f-a1323f36aa4e", + "parentUUID": "3c9b4b36-3ba7-405d-b095-06c34e52b6a1", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "5e9a25ab-fcb9-4623-8317-5c016981ecdd", + "title": "Create role in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/02_CRUDRoles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/02_CRUDRoles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new role page", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO Create role in BO should go to add new role page", + "timedOut": false, + "duration": 747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_goToNewRolePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewRolePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea256315-f97e-4999-81c3-94e2737cc727", + "parentUUID": "5e9a25ab-fcb9-4623-8317-5c016981ecdd", + "isHook": false, + "skipped": false + }, + { + "title": "should create role and check result", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO Create role in BO should create role and check result", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_createRole\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfRolesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createRole', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [4 /*yield*/, roles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfRolesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterCreation).to.be.equal(numberOfRoles + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a74159e-9d4e-45d6-9f45-382900c52117", + "parentUUID": "5e9a25ab-fcb9-4623-8317-5c016981ecdd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ea256315-f97e-4999-81c3-94e2737cc727", + "5a74159e-9d4e-45d6-9f45-382900c52117" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1655, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8a76a82e-67d9-4841-8646-718d459b3608", + "title": "Update role", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/02_CRUDRoles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/02_CRUDRoles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO Update role should filter list by name", + "timedOut": false, + "duration": 862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.filterRoles(page, 'input', 'name', createRoleData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(createRoleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8ef590b-93b0-4635-b505-8cbaafc47fbb", + "parentUUID": "8a76a82e-67d9-4841-8646-718d459b3608", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit role page", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO Update role should go to edit role page", + "timedOut": false, + "duration": 771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_goToEditRole\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditRole', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToEditRolePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(createRoleData.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b83cabc0-adfe-439e-8891-95902cf374eb", + "parentUUID": "8a76a82e-67d9-4841-8646-718d459b3608", + "isHook": false, + "skipped": false + }, + { + "title": "should update the role", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO Update role should update the role", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_updateRole\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateRole', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, editRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f96082e9-c627-4cd3-950d-56b503b9a32c", + "parentUUID": "8a76a82e-67d9-4841-8646-718d459b3608", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f8ef590b-93b0-4635-b505-8cbaafc47fbb", + "b83cabc0-adfe-439e-8891-95902cf374eb", + "f96082e9-c627-4cd3-950d-56b503b9a32c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2514, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8bd8dfd7-166e-460c-a180-ad253491ac18", + "title": "Delete role", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/02_CRUDRoles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/02_CRUDRoles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO Delete role should filter list by name", + "timedOut": false, + "duration": 865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.filterRoles(page, 'input', 'name', editRoleData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(editRoleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b15c0ff5-3b9e-4d08-948a-5b9d0c4482a6", + "parentUUID": "8bd8dfd7-166e-460c-a180-ad253491ac18", + "isHook": false, + "skipped": false + }, + { + "title": "should delete role", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO Delete role should delete role", + "timedOut": false, + "duration": 1417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_deleteRole\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteRole', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.deleteRole(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(roles_1.default.successfulDeleteMessage).to.contains(textResult);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d59de45a-8dfb-4703-b59b-30cb760086f9", + "parentUUID": "8bd8dfd7-166e-460c-a180-ad253491ac18", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of roles", + "fullTitle": "BO - Advanced Parameters - Team : Create, Read, Update and Delete role in BO Delete role should reset filter and check the number of roles", + "timedOut": false, + "duration": 310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_CRUDRoles_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bba99c9d-24a1-449c-9ae6-c80782343b54", + "parentUUID": "8bd8dfd7-166e-460c-a180-ad253491ac18", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b15c0ff5-3b9e-4d08-948a-5b9d0c4482a6", + "d59de45a-8dfb-4703-b59b-30cb760086f9", + "bba99c9d-24a1-449c-9ae6-c80782343b54" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2592, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "cd647a0f-5e79-4e09-95aa-744b2efef365", + "6bde5fbc-c350-4652-8f48-73e07c73121e", + "e057ed8d-aa93-4fdf-9bb4-f578b5f4198f", + "75eb4cac-3452-4927-bb1f-a1323f36aa4e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9346, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7fcbb056-7350-4e81-bbfb-ee53789a557c", + "title": "BO - Advanced Parameters - Team : Help card in Roles page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/03_helpCard.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/03_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Help card in Roles page\"", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Roles page \"before all\" hook in \"BO - Advanced Parameters - Team : Help card in Roles page\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e01a2ba-783f-44e7-8c53-c606f1199b27", + "parentUUID": "7fcbb056-7350-4e81-bbfb-ee53789a557c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Help card in Roles page\"", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Roles page \"after all\" hook in \"BO - Advanced Parameters - Team : Help card in Roles page\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "42232c16-f0e2-408c-8399-22bec514fd7f", + "parentUUID": "7fcbb056-7350-4e81-bbfb-ee53789a557c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Roles page should login in BO", + "timedOut": false, + "duration": 1708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5cce47c-7509-4e27-8169-8ddfc5ec0403", + "parentUUID": "7fcbb056-7350-4e81-bbfb-ee53789a557c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Roles page should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_helpCard_goToEmployeesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81cf77c7-2193-4b0e-a10e-4ebf526573af", + "parentUUID": "7fcbb056-7350-4e81-bbfb-ee53789a557c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Roles' page", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Roles page should go to 'Roles' page", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_helpCard_goToRolesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToRolesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToRolesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(roles_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e9b944e-50d8-426f-857c-df38fe850de9", + "parentUUID": "7fcbb056-7350-4e81-bbfb-ee53789a557c", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Roles page should open the help side bar and check the document language", + "timedOut": false, + "duration": 145, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, roles_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a013a474-1123-4e5f-9980-59a45febd9d3", + "parentUUID": "7fcbb056-7350-4e81-bbfb-ee53789a557c", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Advanced Parameters - Team : Help card in Roles page should close the help side bar", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9613967-efed-4eee-b4db-0c6de236098b", + "parentUUID": "7fcbb056-7350-4e81-bbfb-ee53789a557c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a5cce47c-7509-4e27-8169-8ddfc5ec0403", + "81cf77c7-2193-4b0e-a10e-4ebf526573af", + "2e9b944e-50d8-426f-857c-df38fe850de9", + "a013a474-1123-4e5f-9980-59a45febd9d3", + "c9613967-efed-4eee-b4db-0c6de236098b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7523, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5d437796-fedf-4293-8810-8ff6f62eabde", + "title": "BO - Advanced Parameters - Team : Sort Roles table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/04_sortRoles.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/04_sortRoles.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Sort Roles table\"", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table \"before all\" hook in \"BO - Advanced Parameters - Team : Sort Roles table\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56a08c85-d06e-4608-83dc-5a73495f0195", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Sort Roles table\"", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table \"after all\" hook in \"BO - Advanced Parameters - Team : Sort Roles table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "71f6c673-b18a-44d0-b33a-5a3e295fec85", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table should login in BO", + "timedOut": false, + "duration": 1720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1befe8e8-c959-40fa-bf0e-04255ab2431a", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_sortRoles_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c1dd585-69bf-4d60-953b-eef8fc17234a", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Roles' page", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table should go to 'Roles' page", + "timedOut": false, + "duration": 777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_sortRoles_goToRolesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToRolesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToRolesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(roles_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29f26dfa-3a22-4bae-b37c-192e6b47d439", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of roles", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table should reset all filters and get number of roles", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_sortRoles_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRoles = _a.sent();\n (0, chai_1.expect)(numberOfRoles).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea63d8b3-d310-4715-bf21-44438c56dcef", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_profile' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table should sort by 'id_profile' 'desc' and check result", + "timedOut": false, + "duration": 2812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_sortRoles_sortByIDDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, roles_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fac924a9-172d-45cd-bd51-5a5ece84f1ac", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3562, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_sortRoles_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, roles_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0ba6e79-5c58-4d04-83cd-975d30ccd8b1", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 2811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_sortRoles_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, roles_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1b51bae-59b5-4ccf-a520-f4828b4c4104", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_profile' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Team : Sort Roles table should sort by 'id_profile' 'asc' and check result", + "timedOut": false, + "duration": 2816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_sortRoles_sortByIDAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, roles_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4717f48a-07b2-41cd-a47e-663356eb303d", + "parentUUID": "5d437796-fedf-4293-8810-8ff6f62eabde", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1befe8e8-c959-40fa-bf0e-04255ab2431a", + "7c1dd585-69bf-4d60-953b-eef8fc17234a", + "29f26dfa-3a22-4bae-b37c-192e6b47d439", + "ea63d8b3-d310-4715-bf21-44438c56dcef", + "fac924a9-172d-45cd-bd51-5a5ece84f1ac", + "e0ba6e79-5c58-4d04-83cd-975d30ccd8b1", + "d1b51bae-59b5-4ccf-a520-f4828b4c4104", + "4717f48a-07b2-41cd-a47e-663356eb303d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21358, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "48547777-cd4a-4266-8b11-c3c7987d567e", + "title": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/05_paginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/05_paginationAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions\"", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions \"before all\" hook in \"BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9440e3d7-45e8-4909-b504-2da53c3394e9", + "parentUUID": "48547777-cd4a-4266-8b11-c3c7987d567e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions\"", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions \"after all\" hook in \"BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e306f9f7-f2ad-4ad2-b000-afd0163b96de", + "parentUUID": "48547777-cd4a-4266-8b11-c3c7987d567e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "368ac1c1-6660-46c0-a2a3-6a0c4e059fdd", + "parentUUID": "48547777-cd4a-4266-8b11-c3c7987d567e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToAdvancedParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "176365bc-e182-4ac0-906f-51c0c4cef9bb", + "parentUUID": "48547777-cd4a-4266-8b11-c3c7987d567e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Roles' page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions should go to 'Roles' page", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToRolesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToRolesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToRolesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(roles_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a68cbd1-3205-47b5-b509-34b7a0f215a9", + "parentUUID": "48547777-cd4a-4266-8b11-c3c7987d567e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of roles", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions should reset all filters and get number of roles", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRoles = _a.sent();\n (0, chai_1.expect)(numberOfRoles).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7899bab3-68ce-46af-993f-e27b49fe938e", + "parentUUID": "48547777-cd4a-4266-8b11-c3c7987d567e", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b10985e9-2782-43dc-963a-f111a57b8249", + "title": "Create 10 roles in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/05_paginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/05_paginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c93a2433-443c-4fae-ae13-c81b32504e0e", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°1", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°1", + "timedOut": false, + "duration": 887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6dbd75e2-69dd-4301-856d-b5b42b8386ff", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d89e61bb-1b33-401c-90cb-e276c1dd0faa", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d91db0b-287c-4524-ae2c-287a384cf14a", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°2", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°2", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d75b878d-a157-4cc2-9610-bc6f76e4fe85", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87235ca2-8011-4eff-8897-40575aed94bc", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "312b45b0-c786-46bd-8989-3ccf0832f82e", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°3", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°3", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0053ba7-051c-47df-9384-6c38f93d3eef", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "797b584b-5610-4be2-ba13-07c37c39b93b", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3e60c2c-2725-4133-ba7e-8535a7e9d163", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°4", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°4", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7862491-501a-4572-b58b-14bc8e548fd8", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99d5568f-258e-4bdb-9264-50c396b6f911", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bf581b1-6ad0-463e-b18d-bfae2403e1ba", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°5", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°5", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d8afb58-19d8-4886-bacb-b79a1bf831d6", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29ab009b-ba31-4a5f-a7dd-36e78dd4c945", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c47316ad-7eb1-4e18-bcf2-053b1c8b7a3e", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°6", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°6", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "336ad676-e202-49e1-9702-e8d2b47f8d31", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6f1a3e9-917e-43f5-a5ff-354d2fdd17cd", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd770f3c-770a-4ead-befb-f5a68f45c284", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°7", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°7", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88377276-3dac-4cbe-99ed-9180bf713770", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91837206-140e-4d61-9842-22431dc30107", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "194a9bc0-dbe5-4d8e-834a-042f6a5cc310", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°8", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°8", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2dd950d-ada7-4ead-81c4-415e1eb881e7", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f05a2d7-0154-4d9e-ba45-894bd3bca055", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29d04620-c3b5-4928-b9cd-26cc726fa5c1", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°9", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°9", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "408403aa-8811-4e95-9e01-1984dbfc870e", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45c1cff8-6383-4c2f-b493-81669fa22f33", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new profile page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should go to add new profile page", + "timedOut": false, + "duration": 732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_goToNewRolePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewRolePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.goToAddNewRolePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c3e53f2-4815-403e-81f7-2a38ebc063f0", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should create profile n°10", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should create profile n°10", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_CreateRole9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateRole\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditRole(page, createRoleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(roles_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e53019f0-9ddc-4859-9d84-19f6b5b89466", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + }, + { + "title": "should check roles number", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Create 10 roles in BO should check roles number", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_checkProfilesNumber9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProfilesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91101054-92de-435a-b062-11a676199004", + "parentUUID": "b10985e9-2782-43dc-963a-f111a57b8249", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c93a2433-443c-4fae-ae13-c81b32504e0e", + "6dbd75e2-69dd-4301-856d-b5b42b8386ff", + "d89e61bb-1b33-401c-90cb-e276c1dd0faa", + "2d91db0b-287c-4524-ae2c-287a384cf14a", + "d75b878d-a157-4cc2-9610-bc6f76e4fe85", + "87235ca2-8011-4eff-8897-40575aed94bc", + "312b45b0-c786-46bd-8989-3ccf0832f82e", + "d0053ba7-051c-47df-9384-6c38f93d3eef", + "797b584b-5610-4be2-ba13-07c37c39b93b", + "e3e60c2c-2725-4133-ba7e-8535a7e9d163", + "f7862491-501a-4572-b58b-14bc8e548fd8", + "99d5568f-258e-4bdb-9264-50c396b6f911", + "9bf581b1-6ad0-463e-b18d-bfae2403e1ba", + "4d8afb58-19d8-4886-bacb-b79a1bf831d6", + "29ab009b-ba31-4a5f-a7dd-36e78dd4c945", + "c47316ad-7eb1-4e18-bcf2-053b1c8b7a3e", + "336ad676-e202-49e1-9702-e8d2b47f8d31", + "d6f1a3e9-917e-43f5-a5ff-354d2fdd17cd", + "cd770f3c-770a-4ead-befb-f5a68f45c284", + "88377276-3dac-4cbe-99ed-9180bf713770", + "91837206-140e-4d61-9842-22431dc30107", + "194a9bc0-dbe5-4d8e-834a-042f6a5cc310", + "d2dd950d-ada7-4ead-81c4-415e1eb881e7", + "0f05a2d7-0154-4d9e-ba45-894bd3bca055", + "29d04620-c3b5-4928-b9cd-26cc726fa5c1", + "408403aa-8811-4e95-9e01-1984dbfc870e", + "45c1cff8-6383-4c2f-b493-81669fa22f33", + "6c3e53f2-4815-403e-81f7-2a38ebc063f0", + "e53019f0-9ddc-4859-9d84-19f6b5b89466", + "91101054-92de-435a-b062-11a676199004" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 36330, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b708a8ab-73f4-4c03-bf14-bd2b2909b497", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/05_paginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/05_paginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1a142f3-945b-4efc-a1fa-06f279f36c07", + "parentUUID": "b708a8ab-73f4-4c03-bf14-bd2b2909b497", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Pagination next and previous should click on next", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a92552a-0c28-4292-8269-7a169c48ae4b", + "parentUUID": "b708a8ab-73f4-4c03-bf14-bd2b2909b497", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Pagination next and previous should click on previous", + "timedOut": false, + "duration": 783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "258b7daf-543e-48f8-b1f2-0d3cef1756fc", + "parentUUID": "b708a8ab-73f4-4c03-bf14-bd2b2909b497", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 210, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b70b37b6-c884-4569-b3b6-4c0987cda72c", + "parentUUID": "b708a8ab-73f4-4c03-bf14-bd2b2909b497", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e1a142f3-945b-4efc-a1fa-06f279f36c07", + "9a92552a-0c28-4292-8269-7a169c48ae4b", + "258b7daf-543e-48f8-b1f2-0d3cef1756fc", + "b70b37b6-c884-4569-b3b6-4c0987cda72c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1977, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d333010a-0eb3-43b3-be18-a0f24065b8cd", + "title": "Delete roles with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/06_team/roles/05_paginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/06_team/roles/05_paginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by Name", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Delete roles with Bulk Actions should filter list by Name", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.filterRoles(page, 'input', 'name', createRoleData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, roles_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(createRoleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "849396aa-d0a8-4f6f-bcd3-9f496c3e7ee3", + "parentUUID": "d333010a-0eb3-43b3-be18-a0f24065b8cd", + "isHook": false, + "skipped": false + }, + { + "title": "should delete roles with Bulk Actions and check result", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Delete roles with Bulk Actions should delete roles with Bulk Actions and check result", + "timedOut": false, + "duration": 1483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_bulkDeleteProfile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteProfile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.deleteBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(roles_1.default.successfulDeleteMessage).to.be.contains(deleteTextResult);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aaa0cca9-b9e9-42d8-a256-cc49e448087c", + "parentUUID": "d333010a-0eb3-43b3-be18-a0f24065b8cd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Team : Pagination and delete roles by bulk actions Delete roles with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_team_roles_paginationAndBulkActions_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfRolesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, roles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfRolesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfRolesAfterDelete).to.be.equal(numberOfRoles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e2a0096-f22f-4c56-847e-4e38461892e4", + "parentUUID": "d333010a-0eb3-43b3-be18-a0f24065b8cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "849396aa-d0a8-4f6f-bcd3-9f496c3e7ee3", + "aaa0cca9-b9e9-42d8-a256-cc49e448087c", + "7e2a0096-f22f-4c56-847e-4e38461892e4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2699, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "368ac1c1-6660-46c0-a2a3-6a0c4e059fdd", + "176365bc-e182-4ac0-906f-51c0c4cef9bb", + "1a68cbd1-3205-47b5-b509-34b7a0f215a9", + "7899bab3-68ce-46af-993f-e27b49fe938e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9360, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "0b5f1a0b-aa12-4eae-8753-513db3934cf0", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 439, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecba7f12-66ab-4868-b8eb-2b176df825cd", + "parentUUID": "0b5f1a0b-aa12-4eae-8753-513db3934cf0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 60, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dd24de8-faa4-4c49-8e43-89d309cda52a", + "parentUUID": "0b5f1a0b-aa12-4eae-8753-513db3934cf0", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "984ad591-3b61-41df-8b67-8112b4edddb6", + "parentUUID": "0b5f1a0b-aa12-4eae-8753-513db3934cf0", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "cf2ffc52-be4b-4cb7-861f-967616d57b68", + "title": "BO - Advanced Parameters - Database : Generate db backup and download it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/01_createAndDeleteDbBackup.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/01_createAndDeleteDbBackup.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Database : Generate db backup and download it\"", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it \"before all\" hook in \"BO - Advanced Parameters - Database : Generate db backup and download it\"", + "timedOut": false, + "duration": 53, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04101c59-694f-4e7f-bd0d-8d3ffdc6e638", + "parentUUID": "cf2ffc52-be4b-4cb7-861f-967616d57b68", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Database : Generate db backup and download it\"", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it \"after all\" hook in \"BO - Advanced Parameters - Database : Generate db backup and download it\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "871e0350-e948-4fd7-bc12-08678a4e5181", + "parentUUID": "cf2ffc52-be4b-4cb7-861f-967616d57b68", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it should login in BO", + "timedOut": false, + "duration": 6885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd299e02-a12c-4480-b799-5c93a3e39b73", + "parentUUID": "cf2ffc52-be4b-4cb7-861f-967616d57b68", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 5343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_createAndDeleteDbBackup_goToSqlManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSqlManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9244b47e-030a-4694-8321-7fbdf7139db5", + "parentUUID": "cf2ffc52-be4b-4cb7-861f-967616d57b68", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'DB Backup' page", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it should go to 'DB Backup' page", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_createAndDeleteDbBackup_goToDbBackupPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDbBackupPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToDbBackupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dbBackup_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b868959-0124-4e20-b5c0-f9cbd7dc9977", + "parentUUID": "cf2ffc52-be4b-4cb7-861f-967616d57b68", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b3b26867-d2c3-49f1-9eda-97914ee6c52e", + "title": "Generate new backup", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/01_createAndDeleteDbBackup.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/01_createAndDeleteDbBackup.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check number of db backups", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it Generate new backup should check number of db backups", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_createAndDeleteDbBackup_checkNumberOfDbBackups\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfDbBackups', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfBackups = _a.sent();\n (0, chai_1.expect)(numberOfBackups).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34e9a6fc-de7e-46bd-8f84-fce02944d723", + "parentUUID": "b3b26867-d2c3-49f1-9eda-97914ee6c52e", + "isHook": false, + "skipped": false + }, + { + "title": "should generate new db backup", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it Generate new backup should generate new db backup", + "timedOut": false, + "duration": 587, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_createAndDeleteDbBackup_generateNewDbBackup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateNewDbBackup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab72db94-6449-4d1a-8b9b-02ae1ff119de", + "parentUUID": "b3b26867-d2c3-49f1-9eda-97914ee6c52e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "34e9a6fc-de7e-46bd-8f84-fce02944d723", + "ab72db94-6449-4d1a-8b9b-02ae1ff119de" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 605, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8010134d-59bd-4b1f-899e-b8e543c0afc3", + "title": "Download db backup created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/01_createAndDeleteDbBackup.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/01_createAndDeleteDbBackup.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download db backup created and check file existence", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it Download db backup created should download db backup created and check file existence", + "timedOut": false, + "duration": 207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_createAndDeleteDbBackup_DownloadDbBackup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'DownloadDbBackup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.downloadDbBackup(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n found = _a.sent();\n (0, chai_1.expect)(found, 'Download backup file failed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8c54cb2-361b-443b-be2f-4a287cc1bfd8", + "parentUUID": "8010134d-59bd-4b1f-899e-b8e543c0afc3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f8c54cb2-361b-443b-be2f-4a287cc1bfd8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 207, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8d404f5b-59af-4e20-a84b-8d6de54b6a31", + "title": "Delete db backup created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/01_createAndDeleteDbBackup.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/01_createAndDeleteDbBackup.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete db backup created", + "fullTitle": "BO - Advanced Parameters - Database : Generate db backup and download it Delete db backup created should delete db backup created", + "timedOut": false, + "duration": 1456, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_createAndDeleteDbBackup_deleteDbBackup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteDbBackup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.deleteBackup(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(dbBackup_1.default.successfulDeleteMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterDelete).to.equal(numberOfBackups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "523947b5-2f7b-49db-b0bc-d6222e191c66", + "parentUUID": "8d404f5b-59af-4e20-a84b-8d6de54b6a31", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "523947b5-2f7b-49db-b0bc-d6222e191c66" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1456, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bd299e02-a12c-4480-b799-5c93a3e39b73", + "9244b47e-030a-4694-8321-7fbdf7139db5", + "9b868959-0124-4e20-b5c0-f9cbd7dc9977" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13105, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4d0142ca-aa18-42b4-8b31-3aa8f2d4d05a", + "title": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/02_paginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/02_paginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup\"", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup \"before all\" hook in \"BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9946da3f-8191-47a5-807a-fcc0e9841e09", + "parentUUID": "4d0142ca-aa18-42b4-8b31-3aa8f2d4d05a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup\"", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup \"after all\" hook in \"BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e0c28a62-28a2-4312-8096-6db21956f43a", + "parentUUID": "4d0142ca-aa18-42b4-8b31-3aa8f2d4d05a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup should login in BO", + "timedOut": false, + "duration": 1864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69cd056b-42bd-4c8f-bd40-9c7a6544a4e3", + "parentUUID": "4d0142ca-aa18-42b4-8b31-3aa8f2d4d05a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 4856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_goToSqlManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSqlManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd176070-6a99-4e82-91ad-22066fdfa943", + "parentUUID": "4d0142ca-aa18-42b4-8b31-3aa8f2d4d05a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'DB Backup' page", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup should go to 'DB Backup' page", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_goToDbBackupPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDbBackupPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToDbBackupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dbBackup_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7df6055-780a-4d44-afd8-af3f09a6a49b", + "parentUUID": "4d0142ca-aa18-42b4-8b31-3aa8f2d4d05a", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of db backups", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup should get number of db backups", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_checkNumberOfDbBackups\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfDbBackups', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfBackups = _a.sent();\n (0, chai_1.expect)(numberOfBackups).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "030e3de9-1c2a-4043-9c12-35e21409af5c", + "parentUUID": "4d0142ca-aa18-42b4-8b31-3aa8f2d4d05a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "9e010f61-85ed-4493-99e6-001419e659bf", + "title": "Create 11 new DB Backup in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/02_paginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/02_paginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should generate db backup n°1", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°1", + "timedOut": false, + "duration": 536, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "096783b1-4c27-4f3a-a57f-6204859ed81b", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°2", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°2", + "timedOut": false, + "duration": 479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dd79495-9936-4148-9b95-986329fe3f60", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°3", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°3", + "timedOut": false, + "duration": 480, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d9d2fd4-5281-4259-b93b-7fb2f4af041f", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°4", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°4", + "timedOut": false, + "duration": 507, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7a5ef80-db3f-465d-ab64-7b355f4a45dd", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°5", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°5", + "timedOut": false, + "duration": 477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce16d83f-afe9-439c-8fb6-f5ec441be1a3", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°6", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°6", + "timedOut": false, + "duration": 487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cf74c24-1af9-405b-8a41-6e6d531ca0b7", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°7", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°7", + "timedOut": false, + "duration": 493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa9e011f-2ef7-41ba-a9b9-3ef343280cd2", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°8", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°8", + "timedOut": false, + "duration": 487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6736108-7e8f-4c87-9a89-77b38c337340", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°9", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°9", + "timedOut": false, + "duration": 499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9354cdae-1173-40a5-8db6-6943b1336af9", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°10", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°10", + "timedOut": false, + "duration": 494, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39fcc46f-9a2e-4038-9be5-5def71b59da0", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + }, + { + "title": "should generate db backup n°11", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Create 11 new DB Backup in BO should generate db backup n°11", + "timedOut": false, + "duration": 605, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_generateNewDbBackup10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"generateNewDbBackup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.createDbDbBackup(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(dbBackup_1.default.successfulBackupCreationMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterCreation).to.equal(numberOfBackups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e371da4-6483-4b9b-9b49-4ca101797f6d", + "parentUUID": "9e010f61-85ed-4493-99e6-001419e659bf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "096783b1-4c27-4f3a-a57f-6204859ed81b", + "5dd79495-9936-4148-9b95-986329fe3f60", + "9d9d2fd4-5281-4259-b93b-7fb2f4af041f", + "b7a5ef80-db3f-465d-ab64-7b355f4a45dd", + "ce16d83f-afe9-439c-8fb6-f5ec441be1a3", + "5cf74c24-1af9-405b-8a41-6e6d531ca0b7", + "aa9e011f-2ef7-41ba-a9b9-3ef343280cd2", + "a6736108-7e8f-4c87-9a89-77b38c337340", + "9354cdae-1173-40a5-8db6-6943b1336af9", + "39fcc46f-9a2e-4038-9be5-5def71b59da0", + "4e371da4-6483-4b9b-9b49-4ca101797f6d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5544, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7c4f93d6-9465-4e27-8752-c0915fceb83c", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/02_paginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/02_paginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e152dd6c-9d2c-4d17-93b0-5b603a5cac0c", + "parentUUID": "7c4f93d6-9465-4e27-8752-c0915fceb83c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Pagination next and previous should click on next", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35f4a045-dff1-48b8-b44d-3ef99d5bc75f", + "parentUUID": "7c4f93d6-9465-4e27-8752-c0915fceb83c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Pagination next and previous should click on previous", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df117c15-33bb-4d64-85ed-74cb4aa3007d", + "parentUUID": "7c4f93d6-9465-4e27-8752-c0915fceb83c", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed50deaf-bb6c-4356-840c-1e5e9cf0b430", + "parentUUID": "7c4f93d6-9465-4e27-8752-c0915fceb83c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e152dd6c-9d2c-4d17-93b0-5b603a5cac0c", + "35f4a045-dff1-48b8-b44d-3ef99d5bc75f", + "df117c15-33bb-4d64-85ed-74cb4aa3007d", + "ed50deaf-bb6c-4356-840c-1e5e9cf0b430" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3156, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31fc31db-f7d6-4eff-bfde-1fddbe534283", + "title": "Bulk delete the 11 DB Backups created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/02_paginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/02_paginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete DB Backups", + "fullTitle": "BO - Advanced Parameters - Database : Pagination and bulk delete DB Backup Bulk delete the 11 DB Backups created should delete DB Backups", + "timedOut": false, + "duration": 1469, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_paginationAndBulkDelete_bulkDeleteDbBackups\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBackupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteDbBackups', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.deleteWithBulkActions(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(dbBackup_1.default.successfulMultiDeleteMessage);\n return [4 /*yield*/, dbBackup_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfBackupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfBackupsAfterDelete).to.equal(numberOfBackups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a6eff48-51a3-435e-bec4-029f2022cf4b", + "parentUUID": "31fc31db-f7d6-4eff-bfde-1fddbe534283", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0a6eff48-51a3-435e-bec4-029f2022cf4b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1469, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "69cd056b-42bd-4c8f-bd40-9c7a6544a4e3", + "bd176070-6a99-4e82-91ad-22066fdfa943", + "d7df6055-780a-4d44-afd8-af3f09a6a49b", + "030e3de9-1c2a-4043-9c12-35e21409af5c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7521, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "589dee6a-daa9-44fa-8249-44a8dbda1c5a", + "title": "BO - Advanced Parameters - Database : Help card in DB Backup page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/03_helpCard.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/dbBackup/03_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Database : Help card in DB Backup page\"", + "fullTitle": "BO - Advanced Parameters - Database : Help card in DB Backup page \"before all\" hook in \"BO - Advanced Parameters - Database : Help card in DB Backup page\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c89751f9-3c0d-45f5-8fb1-0b9104bebb12", + "parentUUID": "589dee6a-daa9-44fa-8249-44a8dbda1c5a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Database : Help card in DB Backup page\"", + "fullTitle": "BO - Advanced Parameters - Database : Help card in DB Backup page \"after all\" hook in \"BO - Advanced Parameters - Database : Help card in DB Backup page\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cd2b3e60-0ed5-4984-a7ce-29a326a1ded9", + "parentUUID": "589dee6a-daa9-44fa-8249-44a8dbda1c5a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Database : Help card in DB Backup page should login in BO", + "timedOut": false, + "duration": 1757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "411e1ead-1fd2-4020-84ec-2b9ddb371108", + "parentUUID": "589dee6a-daa9-44fa-8249-44a8dbda1c5a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Help card in DB Backup page should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 4856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_helpCard_goToSqlManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSqlManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cdbffb8-3572-45ae-a068-766c7603279e", + "parentUUID": "589dee6a-daa9-44fa-8249-44a8dbda1c5a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'DB Backup' page", + "fullTitle": "BO - Advanced Parameters - Database : Help card in DB Backup page should go to 'DB Backup' page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_helpCard_goToDbBackupPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDbBackupPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToDbBackupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dbBackup_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1531fcbf-aaeb-4d22-916d-67d7f0b21f03", + "parentUUID": "589dee6a-daa9-44fa-8249-44a8dbda1c5a", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Advanced Parameters - Database : Help card in DB Backup page should open the help side bar and check the document language", + "timedOut": false, + "duration": 159, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, dbBackup_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "411c81fc-5da5-4cf9-b164-caf7a83e6865", + "parentUUID": "589dee6a-daa9-44fa-8249-44a8dbda1c5a", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Advanced Parameters - Database : Help card in DB Backup page should close the help side bar", + "timedOut": false, + "duration": 52, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_dbBackup_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dbBackup_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarNotVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07037b21-64dc-4018-b47e-785b8058e727", + "parentUUID": "589dee6a-daa9-44fa-8249-44a8dbda1c5a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "411e1ead-1fd2-4020-84ec-2b9ddb371108", + "7cdbffb8-3572-45ae-a068-766c7603279e", + "1531fcbf-aaeb-4d22-916d-67d7f0b21f03", + "411c81fc-5da5-4cf9-b164-caf7a83e6865", + "07037b21-64dc-4018-b47e-785b8058e727" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7596, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9c3e0dcf-b342-4d11-bc80-5cf5b0081e27", + "title": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Database : Create, View, update and delete SQL query\"", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query \"before all\" hook in \"BO - Advanced Parameters - Database : Create, View, update and delete SQL query\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc8b505c-6bc5-49e3-a0f2-62d96e8f4718", + "parentUUID": "9c3e0dcf-b342-4d11-bc80-5cf5b0081e27", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Database : Create, View, update and delete SQL query\"", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query \"after all\" hook in \"BO - Advanced Parameters - Database : Create, View, update and delete SQL query\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "da46cd54-4cbb-47c3-a433-764e76abbcea", + "parentUUID": "9c3e0dcf-b342-4d11-bc80-5cf5b0081e27", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query should login in BO", + "timedOut": false, + "duration": 1795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "951c524e-a53c-46c6-a45d-cc2cc02e4e53", + "parentUUID": "9c3e0dcf-b342-4d11-bc80-5cf5b0081e27", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 4849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_goToDatabasePageToCreateNewSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDatabasePageToCreateNewSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51fe05eb-6d76-4a9e-9e07-2694bbcead3f", + "parentUUID": "9c3e0dcf-b342-4d11-bc80-5cf5b0081e27", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_firstResetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstResetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSQLQuery = _a.sent();\n if (numberOfSQLQuery !== 0) {\n (0, chai_1.expect)(numberOfSQLQuery).to.be.above(0);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4b1cc00-7ac9-464e-bec6-b89e6626707a", + "parentUUID": "9c3e0dcf-b342-4d11-bc80-5cf5b0081e27", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "466a533d-9457-4c45-80af-1f4986e5d243", + "title": "Create new SQL query", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'New SQL query' page", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Create new SQL query should go to 'New SQL query' page", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_goToNewSQLQueryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewSQLQueryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d045be7f-cf0a-4214-bb09-95c4dfa35d0d", + "parentUUID": "466a533d-9457-4c45-80af-1f4986e5d243", + "isHook": false, + "skipped": false + }, + { + "title": "should create new SQL query", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Create new SQL query should create new SQL query", + "timedOut": false, + "duration": 1045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_createNewSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "282d4447-eb00-4abf-80b4-f7dd1e92b765", + "parentUUID": "466a533d-9457-4c45-80af-1f4986e5d243", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d045be7f-cf0a-4214-bb09-95c4dfa35d0d", + "282d4447-eb00-4abf-80b4-f7dd1e92b765" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1854, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3b29d8ec-086a-4f60-9ad0-7823ee6912d3", + "title": "View SQL query created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query View SQL query created should filter list by name", + "timedOut": false, + "duration": 2908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_filterToViewCreatedSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCreatedSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, 'name', sqlQueryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n sqlQueryName = _a.sent();\n (0, chai_1.expect)(sqlQueryName).to.contains(sqlQueryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56c1e45b-15e8-4ba7-a273-4a70596cfd42", + "parentUUID": "3b29d8ec-086a-4f60-9ad0-7823ee6912d3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view button", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query View SQL query created should click on view button", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_goToViewNewSQLQueryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewNewSQLQueryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToViewSQLQueryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84961fcc-7cc1-426b-bdc0-17dea542c574", + "parentUUID": "3b29d8ec-086a-4f60-9ad0-7823ee6912d3", + "isHook": false, + "skipped": false + }, + { + "title": "should check sql query result number", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query View SQL query created should check sql query result number", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_checkNewSQLQueryResultNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewSQLQueryResultNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getSQLQueryResultNumber(page)];\n case 2:\n sqlQueryNumber = _a.sent();\n (0, chai_1.expect)(sqlQueryNumber).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "208175e2-7e64-44f8-b1b9-1e1698b3a75f", + "parentUUID": "3b29d8ec-086a-4f60-9ad0-7823ee6912d3", + "isHook": false, + "skipped": false + }, + { + "title": "should check columns name", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query View SQL query created should check columns name", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_checkColumnsNameForNewSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, columnNameText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkColumnsNameForNewSQLQuery', baseContext)];\n case 1:\n _a.sent();\n i = 0;\n _a.label = 2;\n case 2:\n if (!(i <= sqlTables_1.default.ps_alias.columns.length - 1)) return [3 /*break*/, 5];\n return [4 /*yield*/, view_1.default.getColumnName(page, i + 1)];\n case 3:\n columnNameText = _a.sent();\n (0, chai_1.expect)(columnNameText).to.be.equal(sqlTables_1.default.ps_alias.columns[i]);\n _a.label = 4;\n case 4:\n i++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36e009f5-b46d-4f3f-88c9-150e275ef7c8", + "parentUUID": "3b29d8ec-086a-4f60-9ad0-7823ee6912d3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "56c1e45b-15e8-4ba7-a273-4a70596cfd42", + "84961fcc-7cc1-426b-bdc0-17dea542c574", + "208175e2-7e64-44f8-b1b9-1e1698b3a75f", + "36e009f5-b46d-4f3f-88c9-150e275ef7c8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3808, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f1c76079-3dbf-4f4b-8143-f1c8590c5a97", + "title": "Update SQL query created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Update SQL query created should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 3860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_goToDatabaseToUpdateSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDatabaseToUpdateSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToSubMenu(page, view_1.default.advancedParametersLink, view_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df8efaf8-1e76-4fe8-905e-d519568b0329", + "parentUUID": "f1c76079-3dbf-4f4b-8143-f1c8590c5a97", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Update SQL query created should filter list by name", + "timedOut": false, + "duration": 1202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_filterToEditSqlQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToEditSqlQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, 'name', sqlQueryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n sqlQueryName = _a.sent();\n (0, chai_1.expect)(sqlQueryName).to.contains(sqlQueryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f47cd899-5312-4d77-b801-eef6a050669f", + "parentUUID": "f1c76079-3dbf-4f4b-8143-f1c8590c5a97", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit 'SQL Query' page", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Update SQL query created should go to edit 'SQL Query' page", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_goToEditPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToEditSQLQueryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34bae921-4253-4fcc-b1fd-6ca7c50f4395", + "parentUUID": "f1c76079-3dbf-4f4b-8143-f1c8590c5a97", + "isHook": false, + "skipped": false + }, + { + "title": "should update SQL query", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Update SQL query created should update SQL query", + "timedOut": false, + "duration": 1274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_updateSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfSQLQueryAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, editSqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfSQLQueryAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfSQLQueryAfterUpdate).to.be.equal(numberOfSQLQuery + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "244a3f70-13a3-455d-9989-8f994083c233", + "parentUUID": "f1c76079-3dbf-4f4b-8143-f1c8590c5a97", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "df8efaf8-1e76-4fe8-905e-d519568b0329", + "f47cd899-5312-4d77-b801-eef6a050669f", + "34bae921-4253-4fcc-b1fd-6ca7c50f4395", + "244a3f70-13a3-455d-9989-8f994083c233" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7212, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4d1e1371-1389-40e6-a28d-a164ad4c5612", + "title": "View SQL query updated", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query View SQL query updated should filter list by name", + "timedOut": false, + "duration": 2911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_filterToViewUpdatedSQlQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewUpdatedSQlQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, 'name', editSqlQueryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n sqlQueryName = _a.sent();\n (0, chai_1.expect)(sqlQueryName).to.contains(editSqlQueryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3aa0df4f-097a-4635-a795-e74b4d466cf9", + "parentUUID": "4d1e1371-1389-40e6-a28d-a164ad4c5612", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view button", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query View SQL query updated should click on view button", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_goToViewUpdatedSQLQueryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewUpdatedSQLQueryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToViewSQLQueryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68a040a9-dd70-404d-8219-25f42afe5982", + "parentUUID": "4d1e1371-1389-40e6-a28d-a164ad4c5612", + "isHook": false, + "skipped": false + }, + { + "title": "should check sql query result number", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query View SQL query updated should check sql query result number", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_checkUpdatedSQLQueryResultNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedSQLQueryResultNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getSQLQueryResultNumber(page)];\n case 2:\n sqlQueryNumber = _a.sent();\n (0, chai_1.expect)(sqlQueryNumber).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2797e17-ff57-4890-8821-6389befa1cd1", + "parentUUID": "4d1e1371-1389-40e6-a28d-a164ad4c5612", + "isHook": false, + "skipped": false + }, + { + "title": "should check columns name", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query View SQL query updated should check columns name", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_checkColumnsNameForUpdatedSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, columnNameText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkColumnsNameForUpdatedSQLQuery', baseContext)];\n case 1:\n _a.sent();\n i = 0;\n _a.label = 2;\n case 2:\n if (!(i <= sqlTables_1.default.ps_access.columns.length - 1)) return [3 /*break*/, 5];\n return [4 /*yield*/, view_1.default.getColumnName(page, i + 1)];\n case 3:\n columnNameText = _a.sent();\n (0, chai_1.expect)(columnNameText).to.be.equal(sqlTables_1.default.ps_access.columns[i]);\n _a.label = 4;\n case 4:\n i++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84561364-10ad-4b53-958c-c30ee6295c96", + "parentUUID": "4d1e1371-1389-40e6-a28d-a164ad4c5612", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3aa0df4f-097a-4635-a795-e74b4d466cf9", + "68a040a9-dd70-404d-8219-25f42afe5982", + "e2797e17-ff57-4890-8821-6389befa1cd1", + "84561364-10ad-4b53-958c-c30ee6295c96" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3808, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bd224f0b-d775-4cb3-a8d8-83eeb0be8cbe", + "title": "Delete SQL query", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/01_CRUDSqlQuery.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Delete SQL query should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 3791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_goToDatabasePageToDeleteSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDatabasePageToDeleteSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToSubMenu(page, view_1.default.advancedParametersLink, view_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "163fe620-e0b3-4dc3-892d-a1742406793e", + "parentUUID": "bd224f0b-d775-4cb3-a8d8-83eeb0be8cbe", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Delete SQL query should filter list by name", + "timedOut": false, + "duration": 1273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_filterToDeleteSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDeleteSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, 'name', editSqlQueryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n sqlQueryName = _a.sent();\n (0, chai_1.expect)(sqlQueryName).to.contains(editSqlQueryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b907e6a-b3d1-46f3-b9fa-a5e6669abc1b", + "parentUUID": "bd224f0b-d775-4cb3-a8d8-83eeb0be8cbe", + "isHook": false, + "skipped": false + }, + { + "title": "should delete SQL query", + "fullTitle": "BO - Advanced Parameters - Database : Create, View, update and delete SQL query Delete SQL query should delete SQL query", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_CRUDSqlQuery_deleteSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfSQLQueryAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.deleteSQLQuery(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(sqlManager_1.default.successfulDeleteMessage);\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfSQLQueryAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfSQLQueryAfterDelete).to.be.equal(numberOfSQLQuery);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8aa7ba1-e5f9-4c0f-b46d-4d2a473eff88", + "parentUUID": "bd224f0b-d775-4cb3-a8d8-83eeb0be8cbe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "163fe620-e0b3-4dc3-892d-a1742406793e", + "8b907e6a-b3d1-46f3-b9fa-a5e6669abc1b", + "d8aa7ba1-e5f9-4c0f-b46d-4d2a473eff88" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6786, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "951c524e-a53c-46c6-a45d-cc2cc02e4e53", + "51fe05eb-6d76-4a9e-9e07-2694bbcead3f", + "d4b1cc00-7ac9-464e-bec6-b89e6626707a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8651, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c41d85fe-7c88-44cd-a3be-852abf66765f", + "title": "BO - Advanced Parameters - Database : Help card in SQL Manager page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/02_helpCard.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/02_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Database : Help card in SQL Manager page\"", + "fullTitle": "BO - Advanced Parameters - Database : Help card in SQL Manager page \"before all\" hook in \"BO - Advanced Parameters - Database : Help card in SQL Manager page\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9fb8863-f18e-4634-8ab4-19a91a07d246", + "parentUUID": "c41d85fe-7c88-44cd-a3be-852abf66765f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Database : Help card in SQL Manager page\"", + "fullTitle": "BO - Advanced Parameters - Database : Help card in SQL Manager page \"after all\" hook in \"BO - Advanced Parameters - Database : Help card in SQL Manager page\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c0087537-4438-468f-bf66-e91ae55a1548", + "parentUUID": "c41d85fe-7c88-44cd-a3be-852abf66765f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Database : Help card in SQL Manager page should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "add62bc7-2448-4b3f-a3eb-4af151f1c654", + "parentUUID": "c41d85fe-7c88-44cd-a3be-852abf66765f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Help card in SQL Manager page should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 4897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_helpCard_goToSqlManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSqlManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a35ae5d-324d-4702-995c-fff888b9c2ad", + "parentUUID": "c41d85fe-7c88-44cd-a3be-852abf66765f", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Advanced Parameters - Database : Help card in SQL Manager page should open the help side bar and check the document language", + "timedOut": false, + "duration": 123, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, sqlManager_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6716c68-8307-4f91-a3f7-a8e8a2d94910", + "parentUUID": "c41d85fe-7c88-44cd-a3be-852abf66765f", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Advanced Parameters - Database : Help card in SQL Manager page should close the help side bar", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6caa2380-a962-4af7-9131-3423ad7c651a", + "parentUUID": "c41d85fe-7c88-44cd-a3be-852abf66765f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "add62bc7-2448-4b3f-a3eb-4af151f1c654", + "6a35ae5d-324d-4702-995c-fff888b9c2ad", + "e6716c68-8307-4f91-a3f7-a8e8a2d94910", + "6caa2380-a962-4af7-9131-3423ad7c651a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6788, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bbf944eb-75de-4d58-a0e8-d200f6ca28ad", + "title": "BO - Advanced Parameters - Database : Export SQL query", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/03_exportSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/03_exportSqlQuery.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Database : Export SQL query\"", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query \"before all\" hook in \"BO - Advanced Parameters - Database : Export SQL query\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49a2b573-fcb2-4853-86d0-1952ee045146", + "parentUUID": "bbf944eb-75de-4d58-a0e8-d200f6ca28ad", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Database : Export SQL query\"", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query \"after all\" hook in \"BO - Advanced Parameters - Database : Export SQL query\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "57049df6-3724-4a91-8bc5-05e27c0a167c", + "parentUUID": "bbf944eb-75de-4d58-a0e8-d200f6ca28ad", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query should login in BO", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63589fd9-72bd-4293-be13-df5c72880ed4", + "parentUUID": "bbf944eb-75de-4d58-a0e8-d200f6ca28ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 4830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_exportSqlQuery_goToDatabasePageToCreateNewSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDatabasePageToCreateNewSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9fe1413-b830-49e6-82dd-24728f8efad5", + "parentUUID": "bbf944eb-75de-4d58-a0e8-d200f6ca28ad", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_exportSqlQuery_firstResetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstResetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSQLQueries = _a.sent();\n if (numberOfSQLQueries !== 0) {\n (0, chai_1.expect)(numberOfSQLQueries).to.be.above(0);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5243f937-035e-4ee2-ad84-678d9be9762e", + "parentUUID": "bbf944eb-75de-4d58-a0e8-d200f6ca28ad", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "4edc6249-348a-441d-82eb-5265504bcc48", + "title": "Create new SQL query", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/03_exportSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/03_exportSqlQuery.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'New SQL query' page", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query Create new SQL query should go to 'New SQL query' page", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_exportSqlQuery_goToNewSQLQueryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewSQLQueryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "975b0c39-2d3a-46cf-8d8d-8383a1274be3", + "parentUUID": "4edc6249-348a-441d-82eb-5265504bcc48", + "isHook": false, + "skipped": false + }, + { + "title": "should create new SQL query", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query Create new SQL query should create new SQL query", + "timedOut": false, + "duration": 959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_exportSqlQuery_createNewSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d13a0e55-f709-4d6b-b07e-a139f4df4579", + "parentUUID": "4edc6249-348a-441d-82eb-5265504bcc48", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "975b0c39-2d3a-46cf-8d8d-8383a1274be3", + "d13a0e55-f709-4d6b-b07e-a139f4df4579" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1735, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a1482868-9837-41ed-b8d7-018c0afbf6dc", + "title": "Export SQL query", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/03_exportSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/03_exportSqlQuery.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should export sql query to a csv file", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query Export SQL query should export sql query to a csv file", + "timedOut": false, + "duration": 207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_exportSqlQuery_exportSqlQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'exportSqlQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.exportSqlResultDataToCsv(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'Export of data has failed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00062f88-fc38-47d8-a185-8e370e53778c", + "parentUUID": "a1482868-9837-41ed-b8d7-018c0afbf6dc", + "isHook": false, + "skipped": false + }, + { + "title": "should check existence of query result data in csv file", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query Export SQL query should check existence of query result data in csv file", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_exportSqlQuery_checkSqlQueryInCsvFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfQuery, row, textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSqlQueryInCsvFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfQuery = _a.sent();\n row = 1;\n _a.label = 3;\n case 3:\n if (!(row <= numberOfQuery)) return [3 /*break*/, 6];\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, fileContent, true, true)];\n case 4:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"\".concat(fileContent, \" was not found in the file\")).to.eq(true);\n _a.label = 5;\n case 5:\n row++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f65ae2ab-ba50-47ec-a71c-f77ab3f0ca37", + "parentUUID": "a1482868-9837-41ed-b8d7-018c0afbf6dc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "00062f88-fc38-47d8-a185-8e370e53778c", + "f65ae2ab-ba50-47ec-a71c-f77ab3f0ca37" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 213, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9a00c56f-15ad-43d1-884f-abf97d65097c", + "title": "Delete SQL query", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/03_exportSqlQuery.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/03_exportSqlQuery.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query Delete SQL query should filter list by name", + "timedOut": false, + "duration": 3214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_exportSqlQuery_filterToDeleteSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDeleteSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, 'name', sqlQueryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n sqlQueryName = _a.sent();\n (0, chai_1.expect)(sqlQueryName).to.contains(sqlQueryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0b983b2-2448-4bc0-94eb-305f37543685", + "parentUUID": "9a00c56f-15ad-43d1-884f-abf97d65097c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete SQL query", + "fullTitle": "BO - Advanced Parameters - Database : Export SQL query Delete SQL query should delete SQL query", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_exportSqlQuery_deleteSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfSQLQueriesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.deleteSQLQuery(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(sqlManager_1.default.successfulDeleteMessage);\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfSQLQueriesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfSQLQueriesAfterDelete).to.be.equal(numberOfSQLQueries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13e68e8a-2ca0-4509-ab95-3c54ccfaba87", + "parentUUID": "9a00c56f-15ad-43d1-884f-abf97d65097c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f0b983b2-2448-4bc0-94eb-305f37543685", + "13e68e8a-2ca0-4509-ab95-3c54ccfaba87" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4946, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "63589fd9-72bd-4293-be13-df5c72880ed4", + "c9fe1413-b830-49e6-82dd-24728f8efad5", + "5243f937-035e-4ee2-ad84-678d9be9762e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8545, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b788a7cf-1448-4233-8f2a-5113c3d5d011", + "title": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table\"", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table \"before all\" hook in \"BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d59eaac-4776-4ff6-8c0b-39f77cfbeb4c", + "parentUUID": "b788a7cf-1448-4233-8f2a-5113c3d5d011", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table\"", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table \"after all\" hook in \"BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6d99f01a-fb4f-489c-827a-3bcd01e3229f", + "parentUUID": "b788a7cf-1448-4233-8f2a-5113c3d5d011", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcc94073-93c9-4756-8694-6040e1bc7fbf", + "parentUUID": "b788a7cf-1448-4233-8f2a-5113c3d5d011", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Database' page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table should go to 'Advanced Parameters > Database' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToDatabasePageToCreateNewSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDatabasePageToCreateNewSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b8b76da-f40f-4a25-8f73-c9033a1a1091", + "parentUUID": "b788a7cf-1448-4233-8f2a-5113c3d5d011", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_firstResetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstResetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSQLQueries = _a.sent();\n if (numberOfSQLQueries !== 0) {\n (0, chai_1.expect)(numberOfSQLQueries).to.be.above(0);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08e5b5db-d6ec-4195-a157-eceea2788f95", + "parentUUID": "b788a7cf-1448-4233-8f2a-5113c3d5d011", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "ac68ad92-5a60-4248-a081-6cf238524c58", + "title": "Create 11 SQL queries in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2e823db-ed04-48b0-8cda-ecb0817caad7", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°1 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°1 and check result", + "timedOut": false, + "duration": 963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72927e08-59e7-49ca-96fb-a1d77f7f36ea", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 758, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15d5c657-fe8b-43ad-9476-8bfe3f4f2fac", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°2 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°2 and check result", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5e2749b-54a0-42f7-ae1b-2ef2ae90f379", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf9dd76a-0341-4bf7-af12-a17868663add", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°3 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°3 and check result", + "timedOut": false, + "duration": 985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5f14963-8e67-45ad-95ef-6e0a5f612b5e", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f4051f9-abb4-454b-9cf1-f3ba4620d107", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°4 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°4 and check result", + "timedOut": false, + "duration": 981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b0cce7e-1673-4465-b6e6-60894337e8fa", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bfd8668-7060-46bc-bce5-656227258a50", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°5 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°5 and check result", + "timedOut": false, + "duration": 969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd5543e6-7440-45b2-9841-13fa4a95420e", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cd7c7e3-aac7-42e6-9043-69ce24dbcb91", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°6 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°6 and check result", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7a116d4-c3a1-4821-be35-003629557c23", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88baace7-f5a2-41fc-9265-4027a4257842", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°7 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°7 and check result", + "timedOut": false, + "duration": 1039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f987157-b543-4f8a-a272-18d575ab8f18", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f004ea1-5999-477a-b4ef-31ba4adac455", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°8 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°8 and check result", + "timedOut": false, + "duration": 969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b30ae817-0568-4293-8c7b-f2fb5d7c03da", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efbf0b14-78cd-4e77-a219-4be21f233d1c", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°9 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°9 and check result", + "timedOut": false, + "duration": 971, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30ce150c-8fcb-49af-8bab-2ead84d2f3e9", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea654f18-3c3e-47a3-9cc9-2e3fb6b68fbd", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°10 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°10 and check result", + "timedOut": false, + "duration": 969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4bb924d-a6c1-44fc-94bf-3330b8e11f68", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new SQL query page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should go to add new SQL query page", + "timedOut": false, + "duration": 753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_goToAddSqlQueryPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddSqlQueryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93137597-5f86-4c41-b91b-8a1470bc8c53", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + }, + { + "title": "should create SQL query n°11 and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Create 11 SQL queries in BO should create SQL query n°11 and check result", + "timedOut": false, + "duration": 968, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_createOrderStatus10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(sqlManager_1.default.successfulCreationMessage);\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfSQLQueries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8da2a5d3-8d57-431d-9fd4-02020d02eced", + "parentUUID": "ac68ad92-5a60-4248-a081-6cf238524c58", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b2e823db-ed04-48b0-8cda-ecb0817caad7", + "72927e08-59e7-49ca-96fb-a1d77f7f36ea", + "15d5c657-fe8b-43ad-9476-8bfe3f4f2fac", + "e5e2749b-54a0-42f7-ae1b-2ef2ae90f379", + "bf9dd76a-0341-4bf7-af12-a17868663add", + "f5f14963-8e67-45ad-95ef-6e0a5f612b5e", + "4f4051f9-abb4-454b-9cf1-f3ba4620d107", + "0b0cce7e-1673-4465-b6e6-60894337e8fa", + "5bfd8668-7060-46bc-bce5-656227258a50", + "fd5543e6-7440-45b2-9841-13fa4a95420e", + "8cd7c7e3-aac7-42e6-9043-69ce24dbcb91", + "d7a116d4-c3a1-4821-be35-003629557c23", + "88baace7-f5a2-41fc-9265-4027a4257842", + "2f987157-b543-4f8a-a272-18d575ab8f18", + "0f004ea1-5999-477a-b4ef-31ba4adac455", + "b30ae817-0568-4293-8c7b-f2fb5d7c03da", + "efbf0b14-78cd-4e77-a219-4be21f233d1c", + "30ce150c-8fcb-49af-8bab-2ead84d2f3e9", + "ea654f18-3c3e-47a3-9cc9-2e3fb6b68fbd", + "a4bb924d-a6c1-44fc-94bf-3330b8e11f68", + "93137597-5f86-4c41-b91b-8a1470bc8c53", + "8da2a5d3-8d57-431d-9fd4-02020d02eced" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19081, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "612aa16a-37c0-4179-ab80-348feef73c68", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a581934-ba4e-4130-bc31-36e2eff9647e", + "parentUUID": "612aa16a-37c0-4179-ab80-348feef73c68", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Pagination next and previous should click on next", + "timedOut": false, + "duration": 783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd55d8b6-0b91-4a38-92b3-f13f1183e20d", + "parentUUID": "612aa16a-37c0-4179-ab80-348feef73c68", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6746e6e2-3ef5-4786-8b73-bbdd5aab778e", + "parentUUID": "612aa16a-37c0-4179-ab80-348feef73c68", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9ec7bad-9940-4069-bdc7-b0c538ad70f1", + "parentUUID": "612aa16a-37c0-4179-ab80-348feef73c68", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2a581934-ba4e-4130-bc31-36e2eff9647e", + "cd55d8b6-0b91-4a38-92b3-f13f1183e20d", + "6746e6e2-3ef5-4786-8b73-bbdd5aab778e", + "b9ec7bad-9940-4069-bdc7-b0c538ad70f1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3115, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7be4eb18-61cc-42f2-bdc0-3e848a7d9ee7", + "title": "Filter SQL manager table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_request_sql '5'", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Filter SQL manager table should filter by id_request_sql '5'", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfSQLQueries + 11);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2dc57eb-b536-4bce-8aeb-c388ff59b3f7", + "parentUUID": "7be4eb18-61cc-42f2-bdc0-3e848a7d9ee7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Filter SQL manager table should reset all filters", + "timedOut": false, + "duration": 318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_resetFilter0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSQLQueries = _a.sent();\n (0, chai_1.expect)(numberOfSQLQueries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5e2d551-acf1-456b-8eeb-424e40ca4c41", + "parentUUID": "7be4eb18-61cc-42f2-bdc0-3e848a7d9ee7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'todelete5'", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Filter SQL manager table should filter by name 'todelete5'", + "timedOut": false, + "duration": 894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_filterByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfSQLQueries + 11);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f33d14b7-2279-4002-9d4b-08cf1ad7c453", + "parentUUID": "7be4eb18-61cc-42f2-bdc0-3e848a7d9ee7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Filter SQL manager table should reset all filters", + "timedOut": false, + "duration": 321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_resetFilter1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSQLQueries = _a.sent();\n (0, chai_1.expect)(numberOfSQLQueries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ac87068-387e-44da-9a11-1a367ac4b8bd", + "parentUUID": "7be4eb18-61cc-42f2-bdc0-3e848a7d9ee7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by sql 'select * from tst_alias'", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Filter SQL manager table should filter by sql 'select * from tst_alias'", + "timedOut": false, + "duration": 1018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_filterBySqlQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfSQLQueries + 11);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9caf1fa4-fd13-4155-9049-97b31e2a7322", + "parentUUID": "7be4eb18-61cc-42f2-bdc0-3e848a7d9ee7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Filter SQL manager table should reset all filters", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_resetFilter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSQLQueries = _a.sent();\n (0, chai_1.expect)(numberOfSQLQueries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27b154f5-1a19-4cfe-bdcd-1f9b9d9fe902", + "parentUUID": "7be4eb18-61cc-42f2-bdc0-3e848a7d9ee7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c2dc57eb-b536-4bce-8aeb-c388ff59b3f7", + "e5e2d551-acf1-456b-8eeb-424e40ca4c41", + "f33d14b7-2279-4002-9d4b-08cf1ad7c453", + "7ac87068-387e-44da-9a11-1a367ac4b8bd", + "9caf1fa4-fd13-4155-9049-97b31e2a7322", + "27b154f5-1a19-4cfe-bdcd-1f9b9d9fe902" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3751, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "01f724db-4b55-49dc-9030-0bdeb44b9758", + "title": "Sort SQL manager table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_request_sql' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Sort SQL manager table should sort by 'id_request_sql' 'desc' and check result", + "timedOut": false, + "duration": 2190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, sqlManager_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bfb98cd-86f4-4876-a5c3-5f0a6dc15e7a", + "parentUUID": "01f724db-4b55-49dc-9030-0bdeb44b9758", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Sort SQL manager table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 2924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, sqlManager_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3401b83e-3fba-4c85-a5ed-241a3da1916a", + "parentUUID": "01f724db-4b55-49dc-9030-0bdeb44b9758", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Sort SQL manager table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3056, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, sqlManager_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0400ad2c-dfac-4cd9-89d0-155526ce1ced", + "parentUUID": "01f724db-4b55-49dc-9030-0bdeb44b9758", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'sql' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Sort SQL manager table should sort by 'sql' 'asc' and check result", + "timedOut": false, + "duration": 3008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_sortBySQLAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, sqlManager_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9dc4f9c-19dd-4d13-88f0-21dc2cf64e4a", + "parentUUID": "01f724db-4b55-49dc-9030-0bdeb44b9758", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'sql' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Sort SQL manager table should sort by 'sql' 'desc' and check result", + "timedOut": false, + "duration": 2964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_sortBySQLDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, sqlManager_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e32870b5-69b7-49ea-9e5b-5e8a07029ee0", + "parentUUID": "01f724db-4b55-49dc-9030-0bdeb44b9758", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_request_sql' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Sort SQL manager table should sort by 'id_request_sql' 'asc' and check result", + "timedOut": false, + "duration": 2973, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, sqlManager_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f4b78ad-4072-48e2-addf-3812ff56ce84", + "parentUUID": "01f724db-4b55-49dc-9030-0bdeb44b9758", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9bfb98cd-86f4-4876-a5c3-5f0a6dc15e7a", + "3401b83e-3fba-4c85-a5ed-241a3da1916a", + "0400ad2c-dfac-4cd9-89d0-155526ce1ced", + "a9dc4f9c-19dd-4d13-88f0-21dc2cf64e4a", + "e32870b5-69b7-49ea-9e5b-5e8a07029ee0", + "5f4b78ad-4072-48e2-addf-3812ff56ce84" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17115, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "74079c48-80ab-4dca-8f38-bac8f7e5123f", + "title": "Delete sql queries with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/07_database/sqlManager/04_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Delete sql queries with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee1ee40c-8a6a-4c72-865f-bc0164ca482c", + "parentUUID": "74079c48-80ab-4dca-8f38-bac8f7e5123f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories with Bulk Actions and check result", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Delete sql queries with Bulk Actions should delete categories with Bulk Actions and check result", + "timedOut": false, + "duration": 1477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.deleteWithBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(sqlManager_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98b04b80-f3d3-4797-a206-c7c2d5b1fa49", + "parentUUID": "74079c48-80ab-4dca-8f38-bac8f7e5123f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Database : Filter, sort and pagination SQL manager table Delete sql queries with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 305, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_database_sqlManager_filterSortAndPagination_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfSQLQueries - 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "859f3b26-e062-4cd0-ae85-fc66d82d4f48", + "parentUUID": "74079c48-80ab-4dca-8f38-bac8f7e5123f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ee1ee40c-8a6a-4c72-865f-bc0164ca482c", + "98b04b80-f3d3-4797-a206-c7c2d5b1fa49", + "859f3b26-e062-4cd0-ae85-fc66d82d4f48" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2726, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bcc94073-93c9-4756-8694-6040e1bc7fbf", + "1b8b76da-f40f-4a25-8f73-c9033a1a1091", + "08e5b5db-d6ec-4195-a157-eceea2788f95" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8579, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b3baaafc-a0d4-47b0-b24d-92265c188392", + "title": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Logs : Filter, sort and pagination logs table\"", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table \"before all\" hook in \"BO - Advanced Parameters - Logs : Filter, sort and pagination logs table\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2eb6842f-9b20-4471-99b3-6032288384fc", + "parentUUID": "b3baaafc-a0d4-47b0-b24d-92265c188392", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Logs : Filter, sort and pagination logs table\"", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table \"after all\" hook in \"BO - Advanced Parameters - Logs : Filter, sort and pagination logs table\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c7790945-1554-4fd0-806f-9c60cf77a0f0", + "parentUUID": "b3baaafc-a0d4-47b0-b24d-92265c188392", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table should login in BO", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eff9d13a-c899-46dd-a36a-a0b4ba8db3fc", + "parentUUID": "b3baaafc-a0d4-47b0-b24d-92265c188392", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Logs' page", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table should go to 'Advanced Parameters > Logs' page", + "timedOut": false, + "duration": 4905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_goToLogsPageToEraseLogs\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLogsPageToEraseLogs', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.logsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(logs_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f698f49-b9b3-4ec4-b971-5c35067a620a", + "parentUUID": "b3baaafc-a0d4-47b0-b24d-92265c188392", + "isHook": false, + "skipped": false + }, + { + "title": "should erase all logs", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table should erase all logs", + "timedOut": false, + "duration": 401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_eraseLogs\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'eraseLogs', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.eraseAllLogs(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(logs_1.default.successfulUpdateMessage);\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLogs = _a.sent();\n (0, chai_1.expect)(numberOfLogs).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f19538b4-cd0b-4baf-bca8-a1fcd500fba1", + "parentUUID": "b3baaafc-a0d4-47b0-b24d-92265c188392", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "title": "Logout then login 11 times to have 11 logs", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should logout from BO n°1", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°1", + "timedOut": false, + "duration": 678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77c44821-049b-44fd-b9b9-b3430548eed8", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°1", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°1", + "timedOut": false, + "duration": 1460, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8abf9d62-77f4-4033-badf-0e99a3174a84", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°2", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°2", + "timedOut": false, + "duration": 1670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3040b959-c335-45c9-aa3f-afff186a5a3c", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°2", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°2", + "timedOut": false, + "duration": 1426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0b576b5-80d6-4118-991b-3f87867f0b19", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°3", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°3", + "timedOut": false, + "duration": 1671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d68e4cf-00d2-4b82-96f2-57ef098e8212", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°3", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°3", + "timedOut": false, + "duration": 1432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9998a57c-c096-4f90-b1f7-6328ede96623", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°4", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°4", + "timedOut": false, + "duration": 1672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e368dec-889b-4ecf-9008-e41c784b9715", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°4", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°4", + "timedOut": false, + "duration": 1434, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93106817-66e8-4a75-9296-994e94e3a25c", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°5", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°5", + "timedOut": false, + "duration": 1663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26d1efc0-8854-4593-9176-8e6dca637721", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°5", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°5", + "timedOut": false, + "duration": 1436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b5ed14a-ef88-42d6-9f81-27d18fa9f95b", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°6", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°6", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7159b61c-9f75-4631-97ec-71e8ba5d468a", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°6", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°6", + "timedOut": false, + "duration": 1445, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf0548c7-096b-4973-b70a-fca9a2e59c22", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°7", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°7", + "timedOut": false, + "duration": 1702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e82442b-9500-4acb-8028-b7d0c6c4e58b", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°7", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°7", + "timedOut": false, + "duration": 1467, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "559c1b4b-5c0a-4e3a-bc6d-2e3a6594e9b0", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°8", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°8", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13a38e04-f74a-4526-b158-92d5e3298eb9", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°8", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°8", + "timedOut": false, + "duration": 1446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f5f3738-b391-43d1-a8e4-e7311612c407", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°9", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°9", + "timedOut": false, + "duration": 1667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bcae15a-2409-4055-8647-4b49d3b3f68e", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°9", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°9", + "timedOut": false, + "duration": 1432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ebfcf31-25b8-42e4-8ec3-0b02f94be329", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°10", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°10", + "timedOut": false, + "duration": 1672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ea05d96-b934-4648-b599-f00cdd0fefed", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°10", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°10", + "timedOut": false, + "duration": 1416, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2096ef90-71e9-42f1-a8de-7b04af684967", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO n°11", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should logout from BO n°11", + "timedOut": false, + "duration": 1661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bf706db-e8dc-4352-bbb7-11beb25e7607", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO n°11", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should login in BO n°11", + "timedOut": false, + "duration": 1437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "088cb669-97e6-45ec-ae3a-1c5b89fe1f3b", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > Logs' page", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should go to 'Advanced parameters > Logs' page", + "timedOut": false, + "duration": 3691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_goToLogsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLogsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.logsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(logs_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "346befe5-deb8-49d2-8bb2-7ca5c5ef83e2", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of logs", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Logout then login 11 times to have 11 logs should check the number of logs", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_checkLogsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLogsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfElements = _a.sent();\n (0, chai_1.expect)(numberOfElements).to.be.equal(11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d18c05a-d2ad-4a86-bb72-2cf7253d88ec", + "parentUUID": "2f2de464-ac85-45a5-b406-c2e6ca0ab580", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "77c44821-049b-44fd-b9b9-b3430548eed8", + "8abf9d62-77f4-4033-badf-0e99a3174a84", + "3040b959-c335-45c9-aa3f-afff186a5a3c", + "c0b576b5-80d6-4118-991b-3f87867f0b19", + "7d68e4cf-00d2-4b82-96f2-57ef098e8212", + "9998a57c-c096-4f90-b1f7-6328ede96623", + "4e368dec-889b-4ecf-9008-e41c784b9715", + "93106817-66e8-4a75-9296-994e94e3a25c", + "26d1efc0-8854-4593-9176-8e6dca637721", + "6b5ed14a-ef88-42d6-9f81-27d18fa9f95b", + "7159b61c-9f75-4631-97ec-71e8ba5d468a", + "cf0548c7-096b-4973-b70a-fca9a2e59c22", + "9e82442b-9500-4acb-8028-b7d0c6c4e58b", + "559c1b4b-5c0a-4e3a-bc6d-2e3a6594e9b0", + "13a38e04-f74a-4526-b158-92d5e3298eb9", + "8f5f3738-b391-43d1-a8e4-e7311612c407", + "9bcae15a-2409-4055-8647-4b49d3b3f68e", + "1ebfcf31-25b8-42e4-8ec3-0b02f94be329", + "3ea05d96-b934-4648-b599-f00cdd0fefed", + "2096ef90-71e9-42f1-a8de-7b04af684967", + "9bf706db-e8dc-4352-bbb7-11beb25e7607", + "088cb669-97e6-45ec-ae3a-1c5b89fe1f3b", + "346befe5-deb8-49d2-8bb2-7ca5c5ef83e2", + "2d18c05a-d2ad-4a86-bb72-2cf7253d88ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 36913, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4d768b02-34cb-4ba4-a665-060ca54895c6", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced parameters > Logs' page", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Pagination next and previous should go to 'Advanced parameters > Logs' page", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_goToLogsPageToFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numberOfElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLogsPageToFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(logs_1.default.pageTitle);\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfElements = _a.sent();\n (0, chai_1.expect)(numberOfElements).to.be.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e095b86-c7bc-4366-9a9a-f43f6b360992", + "parentUUID": "4d768b02-34cb-4ba4-a665-060ca54895c6", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "266f465c-a3c1-42cb-a1c5-ab7b65e82339", + "parentUUID": "4d768b02-34cb-4ba4-a665-060ca54895c6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Pagination next and previous should click on next", + "timedOut": false, + "duration": 790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b229fbe-c5e9-4b8c-b3b8-fb21328c9eba", + "parentUUID": "4d768b02-34cb-4ba4-a665-060ca54895c6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7fcc95c-8887-4ce1-a3d6-7ac95d632970", + "parentUUID": "4d768b02-34cb-4ba4-a665-060ca54895c6", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a68fe82-70b8-42ed-b7fa-8aa5e60dc28c", + "parentUUID": "4d768b02-34cb-4ba4-a665-060ca54895c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7e095b86-c7bc-4366-9a9a-f43f6b360992", + "266f465c-a3c1-42cb-a1c5-ab7b65e82339", + "1b229fbe-c5e9-4b8c-b3b8-fb21328c9eba", + "a7fcc95c-8887-4ce1-a3d6-7ac95d632970", + "0a68fe82-70b8-42ed-b7fa-8aa5e60dc28c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3373, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "title": "Filter Logs table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_log '50'", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should filter by id_log '50'", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.filterLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLogsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterFilter).to.be.at.most(numberOfLogs + 11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLogsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, logs_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e47c7b3c-0f00-4229-b2d6-a2881cd1ec92", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should reset all filters", + "timedOut": false, + "duration": 2830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLogsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterReset).to.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96cc72c2-13f3-4d56-802c-d23f441ad52a", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by employee 'Beier'", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should filter by employee 'Beier'", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.filterLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLogsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterFilter).to.be.at.most(numberOfLogs + 11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLogsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, logs_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1777d67-b568-4fe4-bbab-746afbe0d096", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should reset all filters", + "timedOut": false, + "duration": 2816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByEmployeeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLogsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterReset).to.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b9f02f4-9f92-455e-b886-22cac2ced00a", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by severity 'Error'", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should filter by severity 'Error'", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterBySeverity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.filterLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLogsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterFilter).to.be.at.most(numberOfLogs + 11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLogsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, logs_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f67ca4e-7c00-49cb-95e8-3a77534aa0d9", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should reset all filters", + "timedOut": false, + "duration": 2812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterBySeverityReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLogsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterReset).to.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82f1b544-23dc-410c-a6ef-9253adca6690", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by message 'Back office'", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should filter by message 'Back office'", + "timedOut": false, + "duration": 981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.filterLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLogsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterFilter).to.be.at.most(numberOfLogs + 11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLogsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, logs_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13475aab-e41a-47cf-9163-8a58daf3d5c1", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should reset all filters", + "timedOut": false, + "duration": 2830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByMessageReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLogsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterReset).to.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d90a66e5-faa1-4154-9737-c587c5816e83", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by object_type 'Cart'", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should filter by object_type 'Cart'", + "timedOut": false, + "duration": 883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByObjectType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.filterLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLogsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterFilter).to.be.at.most(numberOfLogs + 11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLogsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, logs_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4834a96c-de9e-4d03-ab97-603bf7bd3266", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should reset all filters", + "timedOut": false, + "duration": 2829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByObjectTypeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLogsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterReset).to.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "494c18d1-d845-4f66-bd78-8d2d2def6c5c", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by object_id '2'", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should filter by object_id '2'", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByObjectID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.filterLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLogsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterFilter).to.be.at.most(numberOfLogs + 11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLogsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, logs_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "334e6f34-1763-46ca-a7ee-d63afa15cba9", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should reset all filters", + "timedOut": false, + "duration": 2904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByObjectIDReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLogsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterReset).to.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6766a806-5adf-4420-8e78-7dbb6c13d19d", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by error_code '1'", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should filter by error_code '1'", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByErrorCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.filterLogs(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLogsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterFilter).to.be.at.most(numberOfLogs + 11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLogsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, logs_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc9c4c51-82fc-4f4b-8984-7aaab5793616", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should reset all filters", + "timedOut": false, + "duration": 2826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByErrorCodeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLogsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterReset).to.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b09737e2-c414-4295-8873-1f8277e33d13", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should filter logs by date sent 'From' and 'To'", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should filter logs by date sent 'From' and 'To'", + "timedOut": false, + "duration": 1187, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_filterByDateSent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByDateSent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.filterLogsByDate(page, today, today)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailsAfterFilter).to.be.at.most(numberOfLogs + 11);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfEmailsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, logs_1.default.getTextColumn(page, row, 'date_add')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(today);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a455611-29aa-41d6-98dc-137b4abe0f4c", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Filter Logs table should reset all filters", + "timedOut": false, + "duration": 2831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_resetFilterAfterFilterByDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLogsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterFilterByDate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLogsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLogsAfterReset).to.equal(numberOfLogs + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdd3b832-81d1-4d2f-b405-ec62324cb27b", + "parentUUID": "e475c65e-fb45-4816-bfbd-ce1a6f080654", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e47c7b3c-0f00-4229-b2d6-a2881cd1ec92", + "96cc72c2-13f3-4d56-802c-d23f441ad52a", + "e1777d67-b568-4fe4-bbab-746afbe0d096", + "2b9f02f4-9f92-455e-b886-22cac2ced00a", + "1f67ca4e-7c00-49cb-95e8-3a77534aa0d9", + "82f1b544-23dc-410c-a6ef-9253adca6690", + "13475aab-e41a-47cf-9163-8a58daf3d5c1", + "d90a66e5-faa1-4154-9737-c587c5816e83", + "4834a96c-de9e-4d03-ab97-603bf7bd3266", + "494c18d1-d845-4f66-bd78-8d2d2def6c5c", + "334e6f34-1763-46ca-a7ee-d63afa15cba9", + "6766a806-5adf-4420-8e78-7dbb6c13d19d", + "fc9c4c51-82fc-4f4b-8984-7aaab5793616", + "b09737e2-c414-4295-8873-1f8277e33d13", + "6a455611-29aa-41d6-98dc-137b4abe0f4c", + "fdd3b832-81d1-4d2f-b405-ec62324cb27b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 30202, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "title": "Sort logs table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/01_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_log' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'id_log' 'desc' and check result", + "timedOut": false, + "duration": 2174, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15502325-611a-4af7-b8ff-706f8ecd0f8e", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'employee' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'employee' 'asc' and check result", + "timedOut": false, + "duration": 2973, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByEmployeeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "664d015d-3d63-4a6c-8577-fb5ac751be45", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'employee' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'employee' 'desc' and check result", + "timedOut": false, + "duration": 3215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByEmployeeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "537faf9c-858b-4068-8601-5ce3ed920c70", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'severity' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'severity' 'desc' and check result", + "timedOut": false, + "duration": 3961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortBySeverityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c77fb85f-4aed-44b1-92c4-eb7f05a40696", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'severity' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'severity' 'asc' and check result", + "timedOut": false, + "duration": 3048, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortBySeverityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "501f5cf6-8139-43af-ac6a-747ff8ea261d", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'message' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'message' 'desc' and check result", + "timedOut": false, + "duration": 4018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByMessageDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa4c3da1-e1a0-4afc-8ce3-4d34ccf2ae8b", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'message' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'message' 'asc' and check result", + "timedOut": false, + "duration": 3151, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByMessageAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b659f697-5317-46c2-a3db-eddd7fd8e460", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'object_type' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'object_type' 'desc' and check result", + "timedOut": false, + "duration": 3972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByObjectTypeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe2ce1ab-7a2a-45d0-ab47-9905633de2bf", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'object_type' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'object_type' 'asc' and check result", + "timedOut": false, + "duration": 3013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByObjectTypeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbe946ca-e77e-4875-8081-76b884646484", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'object_id' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'object_id' 'desc' and check result", + "timedOut": false, + "duration": 3882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByObjectIDDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2a5d2e2-67ec-43ed-982b-75ce084c0818", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'object_id' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'object_id' 'asc' and check result", + "timedOut": false, + "duration": 3009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByObjectIDAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40f073b7-4ce1-4ece-8aa5-f842b5afe4ab", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'error_code' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'error_code' 'desc' and check result", + "timedOut": false, + "duration": 3901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByErrorCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "186a3732-c7f7-4103-9026-9ec176954f89", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'error_code' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'error_code' 'asc' and check result", + "timedOut": false, + "duration": 3004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByErrorCodeDAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0503ba36-8c7e-4950-8bc4-9c8dafdf5413", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'date_add' 'desc' and check result", + "timedOut": false, + "duration": 3901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByDateAddDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "209bf239-a45d-4233-93bf-b1c311033f94", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'date_add' 'asc' and check result", + "timedOut": false, + "duration": 3017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByDateAddAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05a6e38b-c95e-42a2-b398-a8b39f451735", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_log' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Logs : Filter, sort and pagination logs table Sort logs table should sort by 'id_log' 'asc' and check result", + "timedOut": false, + "duration": 3097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, logs_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1217cc09-4d5d-457f-9edf-d0dc5282bcfc", + "parentUUID": "fb555319-25f4-4d55-bb4b-0972fc3ed211", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "15502325-611a-4af7-b8ff-706f8ecd0f8e", + "664d015d-3d63-4a6c-8577-fb5ac751be45", + "537faf9c-858b-4068-8601-5ce3ed920c70", + "c77fb85f-4aed-44b1-92c4-eb7f05a40696", + "501f5cf6-8139-43af-ac6a-747ff8ea261d", + "aa4c3da1-e1a0-4afc-8ce3-4d34ccf2ae8b", + "b659f697-5317-46c2-a3db-eddd7fd8e460", + "fe2ce1ab-7a2a-45d0-ab47-9905633de2bf", + "dbe946ca-e77e-4875-8081-76b884646484", + "b2a5d2e2-67ec-43ed-982b-75ce084c0818", + "40f073b7-4ce1-4ece-8aa5-f842b5afe4ab", + "186a3732-c7f7-4103-9026-9ec176954f89", + "0503ba36-8c7e-4950-8bc4-9c8dafdf5413", + "209bf239-a45d-4233-93bf-b1c311033f94", + "05a6e38b-c95e-42a2-b398-a8b39f451735", + "1217cc09-4d5d-457f-9edf-d0dc5282bcfc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 53336, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "eff9d13a-c899-46dd-a36a-a0b4ba8db3fc", + "3f698f49-b9b3-4ec4-b971-5c35067a620a", + "f19538b4-cd0b-4baf-bca8-a1fcd500fba1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7000, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "841f10a8-31aa-458f-b2b9-a5e31cb33db2", + "title": "BO - Advanced Parameters - Logs : Logs by email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Logs : Logs by email\"", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email \"before all\" hook in \"BO - Advanced Parameters - Logs : Logs by email\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17fffc18-0433-4a21-9b92-d9ab50b59fa9", + "parentUUID": "841f10a8-31aa-458f-b2b9-a5e31cb33db2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Logs : Logs by email\"", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email \"after all\" hook in \"BO - Advanced Parameters - Logs : Logs by email\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4edf7ae0-9380-4533-a2c7-8d41d74988f3", + "parentUUID": "841f10a8-31aa-458f-b2b9-a5e31cb33db2", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "380cc509-b624-455b-b805-e45368fb018a", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ece2c4f-1cbe-44ea-a6d4-a2afabc4d92e", + "parentUUID": "380cc509-b624-455b-b805-e45368fb018a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fde20edf-d5f1-4c77-85de-c34e378f128d", + "parentUUID": "380cc509-b624-455b-b805-e45368fb018a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7aea7f3d-908c-4fa9-9236-71825f948af6", + "parentUUID": "380cc509-b624-455b-b805-e45368fb018a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bce7ae9d-d810-43f8-a262-96edc8f6b7f6", + "parentUUID": "380cc509-b624-455b-b805-e45368fb018a", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 579, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6da72aa-4493-45ed-96c4-e7bf31ddd263", + "parentUUID": "380cc509-b624-455b-b805-e45368fb018a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7aea7f3d-908c-4fa9-9236-71825f948af6", + "bce7ae9d-d810-43f8-a262-96edc8f6b7f6", + "f6da72aa-4493-45ed-96c4-e7bf31ddd263" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7239, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "378bfcf7-0b57-4da8-ac14-d8b8bbea04e7", + "title": "PRE-TEST: Create product 'Bespoke Frozen Salad'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'Bespoke Frozen Salad'\"", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Create product 'Bespoke Frozen Salad' \"before all\" hook in \"PRE-TEST: Create product 'Bespoke Frozen Salad'\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8edd5de3-47a8-4582-a466-2e4efcaae648", + "parentUUID": "378bfcf7-0b57-4da8-ac14-d8b8bbea04e7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'Bespoke Frozen Salad'\"", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Create product 'Bespoke Frozen Salad' \"after all\" hook in \"PRE-TEST: Create product 'Bespoke Frozen Salad'\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3dcf7b17-236f-4a5b-a77a-413ee2852ec9", + "parentUUID": "378bfcf7-0b57-4da8-ac14-d8b8bbea04e7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Create product 'Bespoke Frozen Salad' should login in BO", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fd49515-3a1c-47e0-a4b8-5fd3d2b57d00", + "parentUUID": "378bfcf7-0b57-4da8-ac14-d8b8bbea04e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Create product 'Bespoke Frozen Salad' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_preTest_2_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d61374d3-c6b7-4590-ae70-b4bb47f92707", + "parentUUID": "378bfcf7-0b57-4da8-ac14-d8b8bbea04e7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Create product 'Bespoke Frozen Salad' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_preTest_2_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d22c863-f5a4-470b-902e-1f29d47d3f99", + "parentUUID": "378bfcf7-0b57-4da8-ac14-d8b8bbea04e7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Create product 'Bespoke Frozen Salad' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_preTest_2_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c9d3f45-17c0-4b51-8183-f3c85da7ee66", + "parentUUID": "378bfcf7-0b57-4da8-ac14-d8b8bbea04e7", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email PRE-TEST: Create product 'Bespoke Frozen Salad' should create product", + "timedOut": false, + "duration": 5383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_preTest_2_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04956c4b-9e50-4722-99ab-1ada9e40f475", + "parentUUID": "378bfcf7-0b57-4da8-ac14-d8b8bbea04e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7fd49515-3a1c-47e0-a4b8-5fd3d2b57d00", + "d61374d3-c6b7-4590-ae70-b4bb47f92707", + "3d22c863-f5a4-470b-902e-1f29d47d3f99", + "4c9d3f45-17c0-4b51-8183-f3c85da7ee66", + "04956c4b-9e50-4722-99ab-1ada9e40f475" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13227, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "title": "Logs by email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should login in BO", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b51518c-363b-4647-a916-1418c3e4e3be", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Logs' page", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should go to 'Advanced Parameters > Logs' page", + "timedOut": false, + "duration": 4889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_goToLogsPageToEraseLogs\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLogsPageToEraseLogs', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.logsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, logs_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, logs_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(logs_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cf38406-faf0-435d-9f54-4242740c9616", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid email in 'Send emails to' input and check the error message", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should enter an invalid email in 'Send emails to' input and check the error message", + "timedOut": false, + "duration": 430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_setInvalidEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setInvalidEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.setEmail(page, 'demo@prestashop.')];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq('Invalid email: demo@prestashop..');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6377141d-bb3b-4396-a603-5ea6b7e75be9", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + }, + { + "title": "should enter a valid email in 'Send emails to' input", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should enter a valid email in 'Send emails to' input", + "timedOut": false, + "duration": 392, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_setValidEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setValidEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.setEmail(page, employees_1.default.DefaultEmployee.email)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq(logs_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af6d3ed0-79e7-40fb-bcdc-f97b609fb8e5", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Informative Only' in minimum severity level", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should choose 'Informative Only' in minimum severity level", + "timedOut": false, + "duration": 327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_chooseSeverity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseSeverity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, logs_1.default.setMinimumSeverityLevel(page, 'Informative only')];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq(logs_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d0f0490-10a8-47f4-b511-0052a60429e2", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79d259ac-776b-4204-b874-3e873f396fc3", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should go to the first product page", + "timedOut": false, + "duration": 1435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_goToEditPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62357a1b-874d-4c8c-8116-3519b0e2fc39", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product name", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should edit the product name", + "timedOut": false, + "duration": 2465, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_editProductNameEn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductNameEn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, faker_1.faker.commerce.productName(), 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06e0982f-79b0-4719-bd98-55fe0a564d7f", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Logs by email should check the confirmation email", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_checkConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject)\n .to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Log: You have a new alert from your store\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3fdc044-ef30-4f1c-9ed4-1e21812ee97f", + "parentUUID": "6ba981d2-8e4a-4617-9717-d49dc08ddb81", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6b51518c-363b-4647-a916-1418c3e4e3be", + "4cf38406-faf0-435d-9f54-4242740c9616", + "6377141d-bb3b-4396-a603-5ea6b7e75be9", + "af6d3ed0-79e7-40fb-bcdc-f97b609fb8e5", + "2d0f0490-10a8-47f4-b511-0052a60429e2", + "79d259ac-776b-4204-b874-3e873f396fc3", + "62357a1b-874d-4c8c-8116-3519b0e2fc39", + "06e0982f-79b0-4719-bd98-55fe0a564d7f", + "a3fdc044-ef30-4f1c-9ed4-1e21812ee97f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15370, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ca2e4e60-aa1e-40ea-b584-0989468a233b", + "title": "Delete created product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email Delete created product should delete product", + "timedOut": false, + "duration": 1490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb162e4b-b317-4717-b44f-e63594904677", + "parentUUID": "ca2e4e60-aa1e-40ea-b584-0989468a233b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eb162e4b-b317-4717-b44f-e63594904677" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1490, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa3be76f-2205-489b-b71a-c923533acfbf", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/08_logs/02_logsByEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af687af3-80b6-487b-b415-2648edaed76e", + "parentUUID": "fa3be76f-2205-489b-b71a-c923533acfbf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "767a5815-9549-487f-adc7-57c9ccf5e3a1", + "parentUUID": "fa3be76f-2205-489b-b71a-c923533acfbf", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13fa0158-e21e-40ce-9b03-36bd6dd6961f", + "parentUUID": "fa3be76f-2205-489b-b71a-c923533acfbf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_postTest_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1557e47f-989b-4490-ad0c-d0c3c9053956", + "parentUUID": "fa3be76f-2205-489b-b71a-c923533acfbf", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Advanced Parameters - Logs : Logs by email POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_logs_logsByEmail_postTest_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ef9ec3d-fdd8-4eac-bc48-d2b4fdc2b97a", + "parentUUID": "fa3be76f-2205-489b-b71a-c923533acfbf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "13fa0158-e21e-40ce-9b03-36bd6dd6961f", + "1557e47f-989b-4490-ad0c-d0c3c9053956", + "2ef9ec3d-fdd8-4eac-bc48-d2b4fdc2b97a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7131, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f0c6f65d-8ac3-4bb4-91fe-1c762d206502", + "title": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/01_CRUDWebservice.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/01_CRUDWebservice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO \"before all\" hook in \"BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a30fe79-33f3-4ce2-82d2-aa525cc5b0e3", + "parentUUID": "f0c6f65d-8ac3-4bb4-91fe-1c762d206502", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO \"after all\" hook in \"BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "689170d4-bc2d-4b9a-b57d-3b9ea2304894", + "parentUUID": "f0c6f65d-8ac3-4bb4-91fe-1c762d206502", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO should login in BO", + "timedOut": false, + "duration": 1987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a38fecd-b21c-4dc8-bd1a-0b42b5dd96cd", + "parentUUID": "f0c6f65d-8ac3-4bb4-91fe-1c762d206502", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea2746ae-7eb7-4876-84a6-6d3a500d29a6", + "parentUUID": "f0c6f65d-8ac3-4bb4-91fe-1c762d206502", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO should reset all filters and get number of webservices", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n if (numberOfWebserviceKeys !== 0)\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ca5e214-4bfe-4e28-ab8d-60ab3356343e", + "parentUUID": "f0c6f65d-8ac3-4bb4-91fe-1c762d206502", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e1ded17a-228e-4bba-9097-4cb92b9dd078", + "title": "Create webservice key", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/01_CRUDWebservice.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/01_CRUDWebservice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Create webservice key should go to add new webservice key page", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_goToAddNewWebserviceKeyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewWebserviceKeyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4822a635-7637-4168-b28d-44dbfdf61442", + "parentUUID": "e1ded17a-228e-4bba-9097-4cb92b9dd078", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key and check result", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Create webservice key should create webservice key and check result", + "timedOut": false, + "duration": 1344, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_createWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, createWebserviceData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d092f82-cb29-4fd5-80ec-3716a733d5d2", + "parentUUID": "e1ded17a-228e-4bba-9097-4cb92b9dd078", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4822a635-7637-4168-b28d-44dbfdf61442", + "1d092f82-cb29-4fd5-80ec-3716a733d5d2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2234, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fe8f73f5-bc5e-41a3-a76b-2e858e5bda75", + "title": "Update webservice key", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/01_CRUDWebservice.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/01_CRUDWebservice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by key description", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Update webservice key should filter list by key description", + "timedOut": false, + "duration": 963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_filterAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var key;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', createWebserviceData.keyDescription)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 3:\n key = _a.sent();\n (0, chai_1.expect)(key).to.contains(createWebserviceData.keyDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79bf8eea-7e4a-43b7-b04b-676692687743", + "parentUUID": "fe8f73f5-bc5e-41a3-a76b-2e858e5bda75", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit webservice page", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Update webservice key should go to edit webservice page", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_goToEditWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToEditWebservicePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce863db9-e72d-4b39-b48a-659577432176", + "parentUUID": "fe8f73f5-bc5e-41a3-a76b-2e858e5bda75", + "isHook": false, + "skipped": false + }, + { + "title": "should update the webservice key and check result", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Update webservice key should update the webservice key and check result", + "timedOut": false, + "duration": 1113, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_updateWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, editWebserviceData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "333a8c5c-77af-45af-b5fc-95be696ff40e", + "parentUUID": "fe8f73f5-bc5e-41a3-a76b-2e858e5bda75", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Update webservice key should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_resetFilterAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfWebserviceKeyAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeyAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeyAfterDelete).to.be.equal(numberOfWebserviceKeys + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca2332e8-b147-481e-b2eb-d18e3cd0dac3", + "parentUUID": "fe8f73f5-bc5e-41a3-a76b-2e858e5bda75", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "79bf8eea-7e4a-43b7-b04b-676692687743", + "ce863db9-e72d-4b39-b48a-659577432176", + "333a8c5c-77af-45af-b5fc-95be696ff40e", + "ca2332e8-b147-481e-b2eb-d18e3cd0dac3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3281, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3fdc4203-4487-41b2-9415-1ea2afa3a7ac", + "title": "Delete webservice key", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/01_CRUDWebservice.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/01_CRUDWebservice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by key description", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Delete webservice key should filter list by key description", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var key;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', editWebserviceData.keyDescription)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 3:\n key = _a.sent();\n (0, chai_1.expect)(key).to.contains(editWebserviceData.keyDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28a51032-43a4-48aa-a752-68c658da51eb", + "parentUUID": "3fdc4203-4487-41b2-9415-1ea2afa3a7ac", + "isHook": false, + "skipped": false + }, + { + "title": "should delete webservice key", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Delete webservice key should delete webservice key", + "timedOut": false, + "duration": 1086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_deleteWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.deleteWebserviceKey(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(webservice_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "596921df-c818-49f1-86f8-c606272da44c", + "parentUUID": "3fdc4203-4487-41b2-9415-1ea2afa3a7ac", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Create, Read, Update and Delete webservice key in BO Delete webservice key should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_CRUDWebservice_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfWebserviceKeyAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeyAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeyAfterDelete).to.be.equal(numberOfWebserviceKeys);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3a97ff1-ec99-4f7e-b614-90f8274da8da", + "parentUUID": "3fdc4203-4487-41b2-9415-1ea2afa3a7ac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "28a51032-43a4-48aa-a752-68c658da51eb", + "596921df-c818-49f1-86f8-c606272da44c", + "f3a97ff1-ec99-4f7e-b614-90f8274da8da" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2824, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0a38fecd-b21c-4dc8-bd1a-0b42b5dd96cd", + "ea2746ae-7eb7-4876-84a6-6d3a500d29a6", + "4ca5e214-4bfe-4e28-ab8d-60ab3356343e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8857, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "438d25e2-70f9-40b5-8dc9-7383a1f52aa4", + "title": "BO - Advanced Parameters - Webservice : Quick edit webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/02_quickEditWebservice.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/02_quickEditWebservice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Webservice : Quick edit webservice\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice \"before all\" hook in \"BO - Advanced Parameters - Webservice : Quick edit webservice\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4509290e-0ed8-4e65-8671-56ef3bf8d4ea", + "parentUUID": "438d25e2-70f9-40b5-8dc9-7383a1f52aa4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Webservice : Quick edit webservice\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice \"after all\" hook in \"BO - Advanced Parameters - Webservice : Quick edit webservice\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f9217ac2-e210-4961-9748-7be889d7595d", + "parentUUID": "438d25e2-70f9-40b5-8dc9-7383a1f52aa4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice should login in BO", + "timedOut": false, + "duration": 1905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c3f1678-a5be-4124-970b-d18f4df007fa", + "parentUUID": "438d25e2-70f9-40b5-8dc9-7383a1f52aa4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > Webservice' page", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice should go to 'Advanced parameters > Webservice' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_quickEditWebservice_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec1c0acb-cb21-4ecc-806c-1fc5ab2e7265", + "parentUUID": "438d25e2-70f9-40b5-8dc9-7383a1f52aa4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice should reset all filters and get number of webservices", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_quickEditWebservice_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n if (numberOfWebserviceKeys !== 0)\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ced4b416-f1d6-4bcb-b927-fbe1ca53e72b", + "parentUUID": "438d25e2-70f9-40b5-8dc9-7383a1f52aa4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice should go to add new webservice key page", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_quickEditWebservice_goToAddNewWebserviceKeyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewWebserviceKeyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef960cea-3b53-4236-9857-fcd552c72431", + "parentUUID": "438d25e2-70f9-40b5-8dc9-7383a1f52aa4", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice should create webservice key", + "timedOut": false, + "duration": 1335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_quickEditWebservice_createWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webServiceData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a21b2fa7-182c-42d1-8ed5-01b0b41b538a", + "parentUUID": "438d25e2-70f9-40b5-8dc9-7383a1f52aa4", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "52ddd069-1db3-41d0-8d74-7c458fd79e38", + "title": "Quick edit webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/02_quickEditWebservice.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/02_quickEditWebservice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should disable the webservice", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice Quick edit webservice should disable the webservice", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_quickEditWebservice_disableWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, webserviceStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(webservice.args.status, \"Webservice\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setStatus(page, 1, webservice.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, webservice_1.default.getValidationMessage(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(webservice_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, webservice_1.default.getStatus(page, 1)];\n case 5:\n webserviceStatus = _a.sent();\n (0, chai_1.expect)(webserviceStatus).to.be.equal(webservice.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e42abd0-c910-49a1-b1dd-ae899f142dbf", + "parentUUID": "52ddd069-1db3-41d0-8d74-7c458fd79e38", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the webservice", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice Quick edit webservice should enable the webservice", + "timedOut": false, + "duration": 283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_quickEditWebservice_enableWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, webserviceStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(webservice.args.status, \"Webservice\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setStatus(page, 1, webservice.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, webservice_1.default.getValidationMessage(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(webservice_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, webservice_1.default.getStatus(page, 1)];\n case 5:\n webserviceStatus = _a.sent();\n (0, chai_1.expect)(webserviceStatus).to.be.equal(webservice.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f949103-f212-479c-a56e-869c5a74c1f6", + "parentUUID": "52ddd069-1db3-41d0-8d74-7c458fd79e38", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7e42abd0-c910-49a1-b1dd-ae899f142dbf", + "0f949103-f212-479c-a56e-869c5a74c1f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 567, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f3c545a7-8d68-44c3-aa97-500ee9dbff9d", + "title": "Delete the created webservice key", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/02_quickEditWebservice.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/02_quickEditWebservice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the created webservice key", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice Delete the created webservice key should delete the created webservice key", + "timedOut": false, + "duration": 1045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_quickEditWebservice_deleteWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.deleteWebserviceKey(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(webservice_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9566d2b6-a59c-4d71-b21a-143ae5149581", + "parentUUID": "f3c545a7-8d68-44c3-aa97-500ee9dbff9d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Quick edit webservice Delete the created webservice key should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_quickEditWebservice_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfWebserviceKeys);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52489293-c141-4628-9b93-a921744a8be9", + "parentUUID": "f3c545a7-8d68-44c3-aa97-500ee9dbff9d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9566d2b6-a59c-4d71-b21a-143ae5149581", + "52489293-c141-4628-9b93-a921744a8be9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3051, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "9c3f1678-a5be-4124-970b-d18f4df007fa", + "ec1c0acb-cb21-4ecc-806c-1fc5ab2e7265", + "ced4b416-f1d6-4bcb-b927-fbe1ca53e72b", + "ef960cea-3b53-4236-9857-fcd552c72431", + "a21b2fa7-182c-42d1-8ed5-01b0b41b538a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10964, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "adecc8d3-a0a7-480f-8674-ffdc9821a495", + "title": "BO - Advanced Parameters - Webservice : Help card in webservice page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/03_helpCard.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/03_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Webservice : Help card in webservice page\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Help card in webservice page \"before all\" hook in \"BO - Advanced Parameters - Webservice : Help card in webservice page\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "865a745a-1124-44de-a1fd-f85279ef7a51", + "parentUUID": "adecc8d3-a0a7-480f-8674-ffdc9821a495", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Webservice : Help card in webservice page\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Help card in webservice page \"after all\" hook in \"BO - Advanced Parameters - Webservice : Help card in webservice page\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "50f721ed-8254-4c15-a652-83ac5663da76", + "parentUUID": "adecc8d3-a0a7-480f-8674-ffdc9821a495", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Webservice : Help card in webservice page should login in BO", + "timedOut": false, + "duration": 1939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a531760-8df6-40cb-abb1-65e74a6b5863", + "parentUUID": "adecc8d3-a0a7-480f-8674-ffdc9821a495", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "BO - Advanced Parameters - Webservice : Help card in webservice page should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_helpCard_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48bf980e-34a1-4150-ab79-9ab0ab05aaeb", + "parentUUID": "adecc8d3-a0a7-480f-8674-ffdc9821a495", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Advanced Parameters - Webservice : Help card in webservice page should open the help side bar and check the document language", + "timedOut": false, + "duration": 130, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, webservice_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd927dc8-0ba5-4d4c-8aec-5d36958cce01", + "parentUUID": "adecc8d3-a0a7-480f-8674-ffdc9821a495", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Advanced Parameters - Webservice : Help card in webservice page should close the help side bar", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarNotVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ad33a49-abc0-462e-8eaf-072c53949244", + "parentUUID": "adecc8d3-a0a7-480f-8674-ffdc9821a495", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8a531760-8df6-40cb-abb1-65e74a6b5863", + "48bf980e-34a1-4150-ab79-9ab0ab05aaeb", + "cd927dc8-0ba5-4d4c-8aec-5d36958cce01", + "8ad33a49-abc0-462e-8eaf-072c53949244" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6948, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "be998772-d6d0-4b37-91f1-4bccbcc2c19b", + "title": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys \"before all\" hook in \"BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19796a7d-ad88-495c-be50-c9ddcee0c6df", + "parentUUID": "be998772-d6d0-4b37-91f1-4bccbcc2c19b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys \"after all\" hook in \"BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8826db03-16d7-4f16-82ef-e995c1ffd90a", + "parentUUID": "be998772-d6d0-4b37-91f1-4bccbcc2c19b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys should login in BO", + "timedOut": false, + "duration": 1919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11105c37-d479-4090-8679-6861bd0d6ae8", + "parentUUID": "be998772-d6d0-4b37-91f1-4bccbcc2c19b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > Webservice' page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys should go to 'Advanced parameters > Webservice' page", + "timedOut": false, + "duration": 4840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d575e889-35dc-40c8-94bf-f5b3aa7a2a9e", + "parentUUID": "be998772-d6d0-4b37-91f1-4bccbcc2c19b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys should reset all filters and get number of webservices", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n if (numberOfWebserviceKeys !== 0) {\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.above(0);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "385ed09c-7afc-4551-a292-f8e648d8c4e2", + "parentUUID": "be998772-d6d0-4b37-91f1-4bccbcc2c19b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e6009617-b518-43f6-973b-472457dc3b9e", + "title": "Create 11 webservice keys in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "739a9964-d455-468b-bdda-2fd5407375de", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°1", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°1", + "timedOut": false, + "duration": 1249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f50134a4-7c0b-43b6-bc10-c8324cff3be0", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a329d7ae-2fea-43de-9204-87d1cba50714", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°2", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°2", + "timedOut": false, + "duration": 1251, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05720ec6-76d3-4f84-bedb-1caa40e78154", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a00365e2-ee54-4241-8d0d-b876067e7492", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°3", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°3", + "timedOut": false, + "duration": 1239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a699068a-fc81-4119-90a8-303f51fbc14c", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18323781-8510-4d68-92e4-a2cba6400eea", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°4", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°4", + "timedOut": false, + "duration": 1245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62855363-a286-4afb-bee1-2c13e30919f2", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13ec550e-578d-4c44-b44f-46ce24d81c99", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°5", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°5", + "timedOut": false, + "duration": 1242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97d58285-7012-44a2-ae30-2546d90f70ba", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88e029f5-6873-411d-af94-0bc8fb4ee4c8", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°6", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°6", + "timedOut": false, + "duration": 1250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35fd6176-eaed-4920-9879-5c60a00d48db", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b0f9799-0615-49e9-9461-cf2c5339e9ab", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°7", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°7", + "timedOut": false, + "duration": 1245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4edde9e-da4d-46f1-b033-88678cec7766", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67581ff6-1550-4c50-89b6-5aa58f8fa69e", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°8", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°8", + "timedOut": false, + "duration": 1251, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e24ff673-5fd4-4ee1-8577-6a3ab0200ba0", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f32ab4d2-ea51-4056-be4a-a7e67db68a24", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°9", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°9", + "timedOut": false, + "duration": 1244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac596be9-4f78-4aff-bf19-f69ce2d0160c", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "797c2bc5-2ab8-41ec-a699-86a1f1b90a80", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°10", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°10", + "timedOut": false, + "duration": 1257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10db18e9-b955-473b-8710-0c3d22664ab9", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should go to add new webservice key page", + "timedOut": false, + "duration": 859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_goToAddNewWebserviceKeyPage_10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6d20ba2-1465-4c6b-883b-141d8feec38a", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key n°11", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Create 11 webservice keys in BO should create webservice key n°11", + "timedOut": false, + "duration": 1260, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_createWebserviceKey_10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c153683a-3e05-47a5-8ab7-80aac277caf3", + "parentUUID": "e6009617-b518-43f6-973b-472457dc3b9e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "739a9964-d455-468b-bdda-2fd5407375de", + "f50134a4-7c0b-43b6-bc10-c8324cff3be0", + "a329d7ae-2fea-43de-9204-87d1cba50714", + "05720ec6-76d3-4f84-bedb-1caa40e78154", + "a00365e2-ee54-4241-8d0d-b876067e7492", + "a699068a-fc81-4119-90a8-303f51fbc14c", + "18323781-8510-4d68-92e4-a2cba6400eea", + "62855363-a286-4afb-bee1-2c13e30919f2", + "13ec550e-578d-4c44-b44f-46ce24d81c99", + "97d58285-7012-44a2-ae30-2546d90f70ba", + "88e029f5-6873-411d-af94-0bc8fb4ee4c8", + "35fd6176-eaed-4920-9879-5c60a00d48db", + "3b0f9799-0615-49e9-9461-cf2c5339e9ab", + "f4edde9e-da4d-46f1-b033-88678cec7766", + "67581ff6-1550-4c50-89b6-5aa58f8fa69e", + "e24ff673-5fd4-4ee1-8577-6a3ab0200ba0", + "f32ab4d2-ea51-4056-be4a-a7e67db68a24", + "ac596be9-4f78-4aff-bf19-f69ce2d0160c", + "797c2bc5-2ab8-41ec-a699-86a1f1b90a80", + "10db18e9-b955-473b-8710-0c3d22664ab9", + "e6d20ba2-1465-4c6b-883b-141d8feec38a", + "c153683a-3e05-47a5-8ab7-80aac277caf3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 23153, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2969bf92-6f98-4c0b-8fbc-f1508b543948", + "title": "Filter webservice table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by key", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Filter webservice table should filter list by key", + "timedOut": false, + "duration": 901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_filterByKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, wenServiceStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, webservice_1.default.getStatus(page, i)];\n case 5:\n wenServiceStatus = _a.sent();\n (0, chai_1.expect)(wenServiceStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5471971-42d3-4657-8766-555cc681fc29", + "parentUUID": "2969bf92-6f98-4c0b-8fbc-f1508b543948", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Filter webservice table should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_resetFilter_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfWebserviceKeys + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4b7a419-afc5-42f9-afa2-3ea944dee353", + "parentUUID": "2969bf92-6f98-4c0b-8fbc-f1508b543948", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by description", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Filter webservice table should filter list by description", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_filterByDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, wenServiceStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, webservice_1.default.getStatus(page, i)];\n case 5:\n wenServiceStatus = _a.sent();\n (0, chai_1.expect)(wenServiceStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56e9eea3-3680-4e57-bdab-9c59104b0afc", + "parentUUID": "2969bf92-6f98-4c0b-8fbc-f1508b543948", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Filter webservice table should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_resetFilter_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfWebserviceKeys + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf1a24b7-099d-4507-8702-9db08eee416b", + "parentUUID": "2969bf92-6f98-4c0b-8fbc-f1508b543948", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by active", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Filter webservice table should filter list by active", + "timedOut": false, + "duration": 887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_filterByStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, wenServiceStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, webservice_1.default.getStatus(page, i)];\n case 5:\n wenServiceStatus = _a.sent();\n (0, chai_1.expect)(wenServiceStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c83d873b-0be2-4f02-8f46-01e079a07d5f", + "parentUUID": "2969bf92-6f98-4c0b-8fbc-f1508b543948", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Filter webservice table should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_resetFilter_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfWebserviceKeys + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db945321-fd7f-4cc1-bbd2-352d1f8935a5", + "parentUUID": "2969bf92-6f98-4c0b-8fbc-f1508b543948", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e5471971-42d3-4657-8766-555cc681fc29", + "e4b7a419-afc5-42f9-afa2-3ea944dee353", + "56e9eea3-3680-4e57-bdab-9c59104b0afc", + "bf1a24b7-099d-4507-8702-9db08eee416b", + "c83d873b-0be2-4f02-8f46-01e079a07d5f", + "db945321-fd7f-4cc1-bbd2-352d1f8935a5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3619, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d974cc35-d7b5-4d3a-a8d9-363c65ef7002", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76438eac-5857-4c2b-b4c9-3df37d1a6087", + "parentUUID": "d974cc35-d7b5-4d3a-a8d9-363c65ef7002", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Pagination next and previous should click on next", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2353721a-1672-4b25-a0eb-d42402bc6e87", + "parentUUID": "d974cc35-d7b5-4d3a-a8d9-363c65ef7002", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Pagination next and previous should click on previous", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "232f620d-7215-4f05-8cd6-461577b33b1e", + "parentUUID": "d974cc35-d7b5-4d3a-a8d9-363c65ef7002", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3454bdca-cfe6-4f7f-a1ba-bff8598d7323", + "parentUUID": "d974cc35-d7b5-4d3a-a8d9-363c65ef7002", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76438eac-5857-4c2b-b4c9-3df37d1a6087", + "2353721a-1672-4b25-a0eb-d42402bc6e87", + "232f620d-7215-4f05-8cd6-461577b33b1e", + "3454bdca-cfe6-4f7f-a1ba-bff8598d7323" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3094, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "220a8884-9f8b-4d40-bcf9-748aef44b292", + "title": "Sort webservice keys table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'key' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Sort webservice keys table should sort by 'key' 'desc' and check result", + "timedOut": false, + "duration": 3754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_sortByKeyDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, webservice_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfc482a8-83eb-4ae9-a332-531ae5394dcf", + "parentUUID": "220a8884-9f8b-4d40-bcf9-748aef44b292", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Sort webservice keys table should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 3030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_sortByEnabledAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, webservice_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3950e3b-d5ef-4693-8c6e-072ae848e9a3", + "parentUUID": "220a8884-9f8b-4d40-bcf9-748aef44b292", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Sort webservice keys table should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 2964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_sortByEnabledDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, webservice_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cd69279-a122-440f-ae61-5d13a103471a", + "parentUUID": "220a8884-9f8b-4d40-bcf9-748aef44b292", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'key' 'asc' and check result", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Sort webservice keys table should sort by 'key' 'asc' and check result", + "timedOut": false, + "duration": 3048, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_sortByKeyAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, webservice_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fbd7bd91-e2e6-491e-b690-d3401d048afe", + "parentUUID": "220a8884-9f8b-4d40-bcf9-748aef44b292", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bfc482a8-83eb-4ae9-a332-531ae5394dcf", + "b3950e3b-d5ef-4693-8c6e-072ae848e9a3", + "0cd69279-a122-440f-ae61-5d13a103471a", + "fbd7bd91-e2e6-491e-b690-d3401d048afe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12796, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3c2217bb-ecb1-487e-a917-28b1b4761001", + "title": "Delete the created webservice keys by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/04_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by key description", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Delete the created webservice keys by bulk actions should filter list by key description", + "timedOut": false, + "duration": 952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_filterAfterEnableDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var key;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterAfterEnableDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 3:\n key = _a.sent();\n (0, chai_1.expect)(key).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e93c2807-6417-45bc-a56c-559b31fe66b5", + "parentUUID": "3c2217bb-ecb1-487e-a917-28b1b4761001", + "isHook": false, + "skipped": false + }, + { + "title": "should delete webservice keys created", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Delete the created webservice keys by bulk actions should delete webservice keys created", + "timedOut": false, + "duration": 3335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_deleteWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.deleteWithBulkActions(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(webservice_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e884c6a-2590-41b2-915b-556df7e52e97", + "parentUUID": "3c2217bb-ecb1-487e-a917-28b1b4761001", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Filter, Sort and pagination web service keys Delete the created webservice keys by bulk actions should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_filterSortPagination_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfWebserviceKeys);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50f7a56a-ea9c-4a5e-954c-1205400ef40e", + "parentUUID": "3c2217bb-ecb1-487e-a917-28b1b4761001", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e93c2807-6417-45bc-a56c-559b31fe66b5", + "1e884c6a-2590-41b2-915b-556df7e52e97", + "50f7a56a-ea9c-4a5e-954c-1205400ef40e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5089, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "11105c37-d479-4090-8679-6861bd0d6ae8", + "d575e889-35dc-40c8-94bf-f5b3aa7a2a9e", + "385ed09c-7afc-4551-a292-f8e648d8c4e2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8766, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4800e3b6-0db3-487e-8430-4b750096bb15", + "title": "BO - Advanced Parameters - Webservice : Bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/05_bulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/05_bulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Webservice : Bulk actions\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions \"before all\" hook in \"BO - Advanced Parameters - Webservice : Bulk actions\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b44c2b8-2def-4c6a-99c6-a4ac0a7d3149", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Webservice : Bulk actions\"", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions \"after all\" hook in \"BO - Advanced Parameters - Webservice : Bulk actions\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1cfbd492-9d8f-40e6-9cac-b1a25d7a85a7", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions should login in BO", + "timedOut": false, + "duration": 1953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "134d67a7-7f9b-4ba0-9a17-68e63e456c32", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > Webservice' page", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions should go to 'Advanced parameters > Webservice' page", + "timedOut": false, + "duration": 4829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4dfffdf-44b4-41db-b0f4-e9de9c5a03a5", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions should reset all filters and get number of webservices", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n if (numberOfWebserviceKeys !== 0)\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4abe33fd-8b2f-4bf3-a519-3d23489796ec", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions should go to add new webservice key page", + "timedOut": false, + "duration": 891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_goToAddNewWebserviceKeyPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d8c0ad0-ca6e-4039-ae2d-7603bcf334d1", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions should create webservice key", + "timedOut": false, + "duration": 1267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_createWebserviceKey_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, test.args.webserviceToCreate, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7022fb5-c606-414a-81bd-2cd2bf8fcc9c", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions should go to add new webservice key page", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_goToAddNewWebserviceKeyPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewWebserviceKeyPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2aff71f6-7818-4731-a3fd-55f29ead73b4", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions should create webservice key", + "timedOut": false, + "duration": 1305, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_createWebserviceKey_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createWebserviceKey_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, test.args.webserviceToCreate, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.equal(numberOfWebserviceKeys + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae2ae8d2-0e6f-47f1-86a0-2641f87f0944", + "parentUUID": "4800e3b6-0db3-487e-8430-4b750096bb15", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "24a5e277-3b39-4fdc-83b6-4a7ec37d73bb", + "title": "Enable/Disable the created webservice keys by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/05_bulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/05_bulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by key description", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions Enable/Disable the created webservice keys by bulk actions should filter list by key description", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_filterAfterSort\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var key;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterAfterSort', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 3:\n key = _a.sent();\n (0, chai_1.expect)(key).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a6e0c17-0bf0-4306-bc16-a2bb8d02de23", + "parentUUID": "24a5e277-3b39-4fdc-83b6-4a7ec37d73bb", + "isHook": false, + "skipped": false + }, + { + "title": "should disable with bulk actions and check result", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions Enable/Disable the created webservice keys by bulk actions should disable with bulk actions and check result", + "timedOut": false, + "duration": 421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_disableWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeys, i, webserviceStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"WebserviceKey\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(webservice_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeys = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfWebserviceKeys)) return [3 /*break*/, 7];\n return [4 /*yield*/, webservice_1.default.getStatus(page, i)];\n case 5:\n webserviceStatus = _a.sent();\n (0, chai_1.expect)(webserviceStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e91a8a0e-789f-4ecd-b71f-64716fc7cb3d", + "parentUUID": "24a5e277-3b39-4fdc-83b6-4a7ec37d73bb", + "isHook": false, + "skipped": false + }, + { + "title": "should enable with bulk actions and check result", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions Enable/Disable the created webservice keys by bulk actions should enable with bulk actions and check result", + "timedOut": false, + "duration": 428, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_enableWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeys, i, webserviceStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"WebserviceKey\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(webservice_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeys = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfWebserviceKeys)) return [3 /*break*/, 7];\n return [4 /*yield*/, webservice_1.default.getStatus(page, i)];\n case 5:\n webserviceStatus = _a.sent();\n (0, chai_1.expect)(webserviceStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67ecba15-387e-4704-a30d-a6c51c76a264", + "parentUUID": "24a5e277-3b39-4fdc-83b6-4a7ec37d73bb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7a6e0c17-0bf0-4306-bc16-a2bb8d02de23", + "e91a8a0e-789f-4ecd-b71f-64716fc7cb3d", + "67ecba15-387e-4704-a30d-a6c51c76a264" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1726, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "af0cca53-c115-4d72-a6c5-b5da5d5e2700", + "title": "Delete the created webservice keys by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/09_webservice/05_bulkActions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/09_webservice/05_bulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions Delete the created webservice keys by bulk actions should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_resetFilterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfWebserviceKeys + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d7262b3-4227-4204-a3d7-034642daad51", + "parentUUID": "af0cca53-c115-4d72-a6c5-b5da5d5e2700", + "isHook": false, + "skipped": false + }, + { + "title": "should delete webservice keys created", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions Delete the created webservice keys by bulk actions should delete webservice keys created", + "timedOut": false, + "duration": 1320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_deleteWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.deleteWithBulkActions(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(webservice_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf164a76-c91d-4f8d-a058-f1fcb5ed5372", + "parentUUID": "af0cca53-c115-4d72-a6c5-b5da5d5e2700", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "BO - Advanced Parameters - Webservice : Bulk actions Delete the created webservice keys by bulk actions should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_webservice_bulkActions_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfWebserviceKeys);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec3280a5-96c1-4d63-be39-e1ef04da00c4", + "parentUUID": "af0cca53-c115-4d72-a6c5-b5da5d5e2700", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9d7262b3-4227-4204-a3d7-034642daad51", + "bf164a76-c91d-4f8d-a058-f1fcb5ed5372", + "ec3280a5-96c1-4d63-be39-e1ef04da00c4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4140, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "134d67a7-7f9b-4ba0-9a17-68e63e456c32", + "d4dfffdf-44b4-41db-b0f4-e9de9c5a03a5", + "4abe33fd-8b2f-4bf3-a519-3d23489796ec", + "7d8c0ad0-ca6e-4039-ae2d-7603bcf334d1", + "a7022fb5-c606-414a-81bd-2cd2bf8fcc9c", + "2aff71f6-7818-4731-a3fd-55f29ead73b4", + "ae2ae8d2-0e6f-47f1-86a0-2641f87f0944" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13106, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b4c28f1a-596d-400c-b024-38c31ac700d3", + "title": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO \"before all\" hook in \"BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83464b76-78d2-485c-a22a-4b7b569f9e2d", + "parentUUID": "b4c28f1a-596d-400c-b024-38c31ac700d3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO \"after all\" hook in \"BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2246a4b8-7518-499d-9b94-47c7be364d05", + "parentUUID": "b4c28f1a-596d-400c-b024-38c31ac700d3", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "f4a535e1-945f-4687-9b77-38a7c0b2f094", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f24c93ca-fe09-497e-ad3f-b25afb1eb42f", + "parentUUID": "f4a535e1-945f-4687-9b77-38a7c0b2f094", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "27630166-1e0c-4b2c-b8a5-90414abd8beb", + "parentUUID": "f4a535e1-945f-4687-9b77-38a7c0b2f094", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Enable the multistore should login in BO", + "timedOut": false, + "duration": 1931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26ea4989-cb97-4394-9d4a-7290572c8dd0", + "parentUUID": "f4a535e1-945f-4687-9b77-38a7c0b2f094", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b7d6f74-8758-419b-9b29-068e768a7106", + "parentUUID": "f4a535e1-945f-4687-9b77-38a7c0b2f094", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 976, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "646f5498-9f9f-4801-81d5-e4d1db0b2399", + "parentUUID": "f4a535e1-945f-4687-9b77-38a7c0b2f094", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "26ea4989-cb97-4394-9d4a-7290572c8dd0", + "4b7d6f74-8758-419b-9b29-068e768a7106", + "646f5498-9f9f-4801-81d5-e4d1db0b2399" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7738, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "64408bfb-530b-4674-bccd-eb247034ac68", + "title": "Create shop group", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Create shop group should login in BO", + "timedOut": false, + "duration": 2076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6253d53-6f51-483b-a3ae-fc4871059d4c", + "parentUUID": "64408bfb-530b-4674-bccd-eb247034ac68", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Create shop group should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 4737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fc9f82c-150c-4d54-a29d-3d79c120e1a6", + "parentUUID": "64408bfb-530b-4674-bccd-eb247034ac68", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of shop group", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Create shop group should get number of shop group", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_getNumberOfShopGroups\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfShopGroups', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfShopGroups = _a.sent();\n (0, chai_1.expect)(numberOfShopGroups).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c17f601-290e-42f8-9462-0bc6b1896165", + "parentUUID": "64408bfb-530b-4674-bccd-eb247034ac68", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Create shop group should go to add new shop group page", + "timedOut": false, + "duration": 852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_goToAddNewShopGroupPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewShopGroupPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2bfdf70-003f-4c7d-94fe-85fd35f29ce2", + "parentUUID": "64408bfb-530b-4674-bccd-eb247034ac68", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Create shop group should create shop group and check result", + "timedOut": false, + "duration": 1252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_createShopGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createShopGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, createShopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5687c1ba-00cd-4f7a-94ab-f5ac7d6d026c", + "parentUUID": "64408bfb-530b-4674-bccd-eb247034ac68", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a6253d53-6f51-483b-a3ae-fc4871059d4c", + "2fc9f82c-150c-4d54-a29d-3d79c120e1a6", + "5c17f601-290e-42f8-9462-0bc6b1896165", + "b2bfdf70-003f-4c7d-94fe-85fd35f29ce2", + "5687c1ba-00cd-4f7a-94ab-f5ac7d6d026c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8923, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a15cac81-558c-432d-911a-afcb30a4bc62", + "title": "Update shop group", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit the created shop group page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Update shop group should go to edit the created shop group page", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_goToEditShopGroupPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditShopGroupPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', createShopGroupData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.gotoEditShopGroupPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a9de811-67fd-43bb-8783-051dddc48db6", + "parentUUID": "a15cac81-558c-432d-911a-afcb30a4bc62", + "isHook": false, + "skipped": false + }, + { + "title": "should edit shop group and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Update shop group should edit shop group and check result", + "timedOut": false, + "duration": 4054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_updateShopGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateShopGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, updateShopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfShopGroupsAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterUpdate).to.be.equal(numberOfShopGroups + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb3d968e-6b35-42a4-b160-b9932f10dcb3", + "parentUUID": "a15cac81-558c-432d-911a-afcb30a4bc62", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3a9de811-67fd-43bb-8783-051dddc48db6", + "eb3d968e-6b35-42a4-b160-b9932f10dcb3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5824, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f72422bf-64d8-4e81-9ebc-7cb4d646412b", + "title": "Create shop for the updated shop group", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Create shop for the updated shop group should go to add new shop page", + "timedOut": false, + "duration": 988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_goToAddNewShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71ee4150-f00d-4606-9b42-5af61321a841", + "parentUUID": "f72422bf-64d8-4e81-9ebc-7cb4d646412b", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Create shop for the updated shop group should create shop", + "timedOut": false, + "duration": 1336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_createShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setShop(page, shopData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aae8664b-d8ea-427a-b247-4a2e2ab92d09", + "parentUUID": "f72422bf-64d8-4e81-9ebc-7cb4d646412b", + "isHook": false, + "skipped": false + }, + { + "title": "should get the id of the new shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Create shop for the updated shop group should get the id of the new shop", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_getShopID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShops, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getShopID', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfShops = _b.sent();\n (0, chai_1.expect)(numberOfShops).to.be.above(0);\n _a = parseInt;\n return [4 /*yield*/, shop_1.default.getTextColumn(page, 1, 'id_shop')];\n case 3:\n shopID = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a33af53c-9976-4bcc-8801-b7a721bcc37d", + "parentUUID": "f72422bf-64d8-4e81-9ebc-7cb4d646412b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "71ee4150-f00d-4606-9b42-5af61321a841", + "aae8664b-d8ea-427a-b247-4a2e2ab92d09", + "a33af53c-9976-4bcc-8801-b7a721bcc37d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2336, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8d275b8c-9a79-4323-a8ce-6c47ba291888", + "title": "Check that there is no delete button in the edited shop group", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Check that there is no delete button in the edited shop group should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 4619, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_goToMultiStorePageToDeleteShopGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePageToDeleteShopGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4efebe73-4d9d-445f-9c10-d8d215eb408f", + "parentUUID": "8d275b8c-9a79-4323-a8ce-6c47ba291888", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is no delete button", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Check that there is no delete button in the edited shop group should check that there is no delete button", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_checkNoDeleteButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoDeleteButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', updateShopGroupData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.isActionToggleButtonVisible(page, 1)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ded06a0-d035-4251-b266-5968ad7737be", + "parentUUID": "8d275b8c-9a79-4323-a8ce-6c47ba291888", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4efebe73-4d9d-445f-9c10-d8d215eb408f", + "2ded06a0-d035-4251-b266-5968ad7737be" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5541, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7c26211e-9110-4f1e-9b1d-10d45300c830", + "title": "Delete shop then shop group", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the created shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Delete shop then shop group should go to the created shop page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_goToCreatedShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreatedShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToShopPage(page, shopID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(updateShopGroupData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cca5f46-a520-4b3d-b1b2-edcb19f9555b", + "parentUUID": "7c26211e-9110-4f1e-9b1d-10d45300c830", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Delete shop then shop group should delete the shop", + "timedOut": false, + "duration": 4430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_deleteShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShops, textResult, numberOfShopsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfShops = _a.sent();\n (0, chai_1.expect)(numberOfShops).to.be.above(1);\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', shopData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 4:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [4 /*yield*/, shop_1.default.resetAndGetNumberOfLines(page)];\n case 5:\n numberOfShopsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopsAfterDelete).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dddb4c2b-411b-4231-b8b1-3b9947a3754b", + "parentUUID": "7c26211e-9110-4f1e-9b1d-10d45300c830", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Delete shop then shop group should go to 'Advanced parameters > Multistore' page", + "timedOut": false, + "duration": 3611, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_goToMultiStorePageToDeleteShopGroup2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePageToDeleteShopGroup2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d921e4c-94c5-4579-bb7c-59f1d6b131b6", + "parentUUID": "7c26211e-9110-4f1e-9b1d-10d45300c830", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Delete shop then shop group should delete the shop group", + "timedOut": false, + "duration": 5012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_deleteEditedSHopGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEditedSHopGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', updateShopGroupData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d23360d2-0ebb-4789-8bdd-62866569ba1b", + "parentUUID": "7c26211e-9110-4f1e-9b1d-10d45300c830", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5cca5f46-a520-4b3d-b1b2-edcb19f9555b", + "dddb4c2b-411b-4231-b8b1-3b9947a3754b", + "1d921e4c-94c5-4579-bb7c-59f1d6b131b6", + "d23360d2-0ebb-4789-8bdd-62866569ba1b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13846, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fc9cb307-0fb9-44a3-b60a-009590845f73", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/01_CRUDShopGroups.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7a01390-27fa-432a-a22f-da3eb965ab93", + "parentUUID": "fc9cb307-0fb9-44a3-b60a-009590845f73", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a78d4eea-8dad-4a09-8623-c69fa98580b3", + "parentUUID": "fc9cb307-0fb9-44a3-b60a-009590845f73", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Disable the multistore should login in BO", + "timedOut": false, + "duration": 1989, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a8b8763-d02a-44dc-9801-114c78c478e9", + "parentUUID": "fc9cb307-0fb9-44a3-b60a-009590845f73", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0ce8e9e-a9b9-4ac8-afb2-8ef19ece96c8", + "parentUUID": "fc9cb307-0fb9-44a3-b60a-009590845f73", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop groups in BO Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShopGroups_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb5663fd-89f4-4143-bbe9-7e2dd97c2742", + "parentUUID": "fc9cb307-0fb9-44a3-b60a-009590845f73", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0a8b8763-d02a-44dc-9801-114c78c478e9", + "b0ce8e9e-a9b9-4ac8-afb2-8ef19ece96c8", + "eb5663fd-89f4-4143-bbe9-7e2dd97c2742" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7219, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "28e33048-8642-4ee6-a782-858cb63accbe", + "title": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table\"", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table \"before all\" hook in \"BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cc43b44-8b66-4bf1-a56d-cbee8a358225", + "parentUUID": "28e33048-8642-4ee6-a782-858cb63accbe", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table\"", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table \"after all\" hook in \"BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "625f0d97-037f-48ac-ae1a-2f6bf648c421", + "parentUUID": "28e33048-8642-4ee6-a782-858cb63accbe", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "8d33ea3b-a16f-4444-9403-2474f0afce2e", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68cb311a-065c-46b9-ac53-82fafb0d6572", + "parentUUID": "8d33ea3b-a16f-4444-9403-2474f0afce2e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5e8b007c-8b2e-498c-9f8b-51ef7da1b6fb", + "parentUUID": "8d33ea3b-a16f-4444-9403-2474f0afce2e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Enable the multistore should login in BO", + "timedOut": false, + "duration": 2000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2c8097c-fcbb-4d1d-9675-80d1b6a3a918", + "parentUUID": "8d33ea3b-a16f-4444-9403-2474f0afce2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d48e5864-2458-4d22-94de-c3e9100ad0a7", + "parentUUID": "8d33ea3b-a16f-4444-9403-2474f0afce2e", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "623c1234-6791-49e5-afbc-b380f2690cee", + "parentUUID": "8d33ea3b-a16f-4444-9403-2474f0afce2e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e2c8097c-fcbb-4d1d-9675-80d1b6a3a918", + "d48e5864-2458-4d22-94de-c3e9100ad0a7", + "623c1234-6791-49e5-afbc-b380f2690cee" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7226, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7399f613-79f1-4080-9a51-c70e2ec706ec", + "title": "Go to 'Advanced Parameters > Multistore' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Go to 'Advanced Parameters > Multistore' page should login in BO", + "timedOut": false, + "duration": 2032, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ac17552-af54-4787-ae2e-2195865dd77e", + "parentUUID": "7399f613-79f1-4080-9a51-c70e2ec706ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Go to 'Advanced Parameters > Multistore' page should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 4638, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7fc8db8-ca72-4570-a30c-6c160a04bcf5", + "parentUUID": "7399f613-79f1-4080-9a51-c70e2ec706ec", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of shop groups", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Go to 'Advanced Parameters > Multistore' page should get number of shop groups", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_getNumberOfShopGroups\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfShopGroups', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfShopGroups = _a.sent();\n (0, chai_1.expect)(numberOfShopGroups).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c01d0f1-3127-4995-88bd-96d70d5bdca2", + "parentUUID": "7399f613-79f1-4080-9a51-c70e2ec706ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9ac17552-af54-4787-ae2e-2195865dd77e", + "d7fc8db8-ca72-4570-a30c-6c160a04bcf5", + "9c01d0f1-3127-4995-88bd-96d70d5bdca2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6674, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "title": "Create 20 shop groups", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fa2329b-2929-4369-8487-996e64dd141a", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°1 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°1 and check result", + "timedOut": false, + "duration": 1234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a7e6afb-959e-47ed-8482-31b6129cb9ab", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efc35c92-b2f1-4bc9-a2b9-4137d77d0fac", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°2 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°2 and check result", + "timedOut": false, + "duration": 1226, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a663e825-e907-4fb9-b0be-5b670bcb3b4e", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc5b65df-0cb8-4637-9ee3-386751495fd8", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°3 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°3 and check result", + "timedOut": false, + "duration": 1218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fcb7c7f-5f39-4872-860b-ce254503e88d", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85c3ccb8-306d-495f-89c7-747a609d82b9", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°4 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°4 and check result", + "timedOut": false, + "duration": 1232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13c29b88-5fc4-44a0-b8ad-c328b733a609", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d318c3f-3394-41f6-a2f3-bc8c5247f3c8", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°5 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°5 and check result", + "timedOut": false, + "duration": 1224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df6aee1c-aaf4-4f40-9e8d-25a34fe1ba25", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "479fbd3a-bed4-485b-ab38-c312898fc6af", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°6 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°6 and check result", + "timedOut": false, + "duration": 1232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5702147e-0e20-48b1-868d-1ce0e31e7790", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3db5872e-d2ab-4900-9c68-522cf1362f14", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°7 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°7 and check result", + "timedOut": false, + "duration": 1230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d61bbab5-8030-41e2-9bb1-4a982dd4881c", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66a2af7a-c570-465d-b3a4-23e1ec48a1b5", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°8 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°8 and check result", + "timedOut": false, + "duration": 1244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bb2037f-1acd-4629-909b-00ee66ec3545", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "982a54d9-018e-4e91-8ee8-df6dbd664034", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°9 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°9 and check result", + "timedOut": false, + "duration": 1230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee1c0420-f520-43b3-87ea-9ef86c9acd9b", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e681819-32ee-460b-a48b-435bac068a5b", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°10 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°10 and check result", + "timedOut": false, + "duration": 1243, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4651e46a-4859-4a0d-bd10-df45b225a89a", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d78079b8-3355-4b5f-9a96-6044a102c067", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°11 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°11 and check result", + "timedOut": false, + "duration": 1228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61831dfb-4231-40ec-9c5b-1d6c2831c0c3", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db458372-329f-428b-8480-331e58cb1713", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°12 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°12 and check result", + "timedOut": false, + "duration": 1242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3109c75-4928-432a-b6c8-79b21484cc83", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c562dce-40fb-4ce3-8059-5f54f6078fb7", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°13 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°13 and check result", + "timedOut": false, + "duration": 1232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c9ef7ed-e27d-4e04-b9bb-d8529f522c99", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "645332a6-24bd-4879-a196-91f043fb9cc0", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°14 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°14 and check result", + "timedOut": false, + "duration": 1233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fa40401-3457-4fb9-bcfe-5246da1b363e", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c462e9d8-eba2-40c2-8564-04ea15958819", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°15 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°15 and check result", + "timedOut": false, + "duration": 1245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0ec4463-aac3-4f7f-9dd7-33212aad385c", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa7fed95-a863-49b3-b51c-cc653c6105f2", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°16 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°16 and check result", + "timedOut": false, + "duration": 1249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "724f7052-a3c3-40f1-beac-bc1301a5561f", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec7212b4-762a-4810-a5c0-191f43ca53bd", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°17 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°17 and check result", + "timedOut": false, + "duration": 1248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a80431c-9ac0-47bf-baf6-e59ea4ceaf30", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a441b092-bd8d-4151-9045-517c36c47c51", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°18 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°18 and check result", + "timedOut": false, + "duration": 1240, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "702d7c4f-50af-4f03-91e7-ceedb54e21f9", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "640fed1d-25a3-4504-8228-805be65dc29d", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°19 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°19 and check result", + "timedOut": false, + "duration": 1242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b9168c9-1a2a-4ad8-b852-7664aaae3a6c", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop group page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should go to add new shop group page", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_goToAddNewShopGroupPage19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf167e7d-7f62-488e-93fc-f54a29f5cc51", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop group n°20 and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Create 20 shop groups should create shop group n°20 and check result", + "timedOut": false, + "duration": 1246, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_createShopGroup19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShopGroup(page, shopGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterCreation).to.be.equal(numberOfShopGroups + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22e6edd4-7ae9-4b7c-8d81-880c613b8fc4", + "parentUUID": "b774d7e2-57f4-4acc-8cf7-d80f2850f25f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2fa2329b-2929-4369-8487-996e64dd141a", + "5a7e6afb-959e-47ed-8482-31b6129cb9ab", + "efc35c92-b2f1-4bc9-a2b9-4137d77d0fac", + "a663e825-e907-4fb9-b0be-5b670bcb3b4e", + "dc5b65df-0cb8-4637-9ee3-386751495fd8", + "9fcb7c7f-5f39-4872-860b-ce254503e88d", + "85c3ccb8-306d-495f-89c7-747a609d82b9", + "13c29b88-5fc4-44a0-b8ad-c328b733a609", + "3d318c3f-3394-41f6-a2f3-bc8c5247f3c8", + "df6aee1c-aaf4-4f40-9e8d-25a34fe1ba25", + "479fbd3a-bed4-485b-ab38-c312898fc6af", + "5702147e-0e20-48b1-868d-1ce0e31e7790", + "3db5872e-d2ab-4900-9c68-522cf1362f14", + "d61bbab5-8030-41e2-9bb1-4a982dd4881c", + "66a2af7a-c570-465d-b3a4-23e1ec48a1b5", + "7bb2037f-1acd-4629-909b-00ee66ec3545", + "982a54d9-018e-4e91-8ee8-df6dbd664034", + "ee1c0420-f520-43b3-87ea-9ef86c9acd9b", + "6e681819-32ee-460b-a48b-435bac068a5b", + "4651e46a-4859-4a0d-bd10-df45b225a89a", + "d78079b8-3355-4b5f-9a96-6044a102c067", + "61831dfb-4231-40ec-9c5b-1d6c2831c0c3", + "db458372-329f-428b-8480-331e58cb1713", + "c3109c75-4928-432a-b6c8-79b21484cc83", + "4c562dce-40fb-4ce3-8059-5f54f6078fb7", + "7c9ef7ed-e27d-4e04-b9bb-d8529f522c99", + "645332a6-24bd-4879-a196-91f043fb9cc0", + "4fa40401-3457-4fb9-bcfe-5246da1b363e", + "c462e9d8-eba2-40c2-8564-04ea15958819", + "d0ec4463-aac3-4f7f-9dd7-33212aad385c", + "fa7fed95-a863-49b3-b51c-cc653c6105f2", + "724f7052-a3c3-40f1-beac-bc1301a5561f", + "ec7212b4-762a-4810-a5c0-191f43ca53bd", + "6a80431c-9ac0-47bf-baf6-e59ea4ceaf30", + "a441b092-bd8d-4151-9045-517c36c47c51", + "702d7c4f-50af-4f03-91e7-ceedb54e21f9", + "640fed1d-25a3-4504-8228-805be65dc29d", + "3b9168c9-1a2a-4ad8-b852-7664aaae3a6c", + "bf167e7d-7f62-488e-93fc-f54a29f5cc51", + "22e6edd4-7ae9-4b7c-8d81-880c613b8fc4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 41558, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aaf0b669-413e-438f-885b-d3506ad46a52", + "title": "Filter shop groups table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by id_shop_group", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Filter shop groups table should filter list by id_shop_group", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_filterBy_id_shop_group\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, multistore_2.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "919b1458-2601-4221-8175-f35645b63a9c", + "parentUUID": "aaf0b669-413e-438f-885b-d3506ad46a52", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shop groups", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Filter shop groups table should reset filter and check the number of shop groups", + "timedOut": false, + "duration": 2866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_resetFilter_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfShopGroups + 20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "002164f8-7b5b-463e-8664-a327c4e7624d", + "parentUUID": "aaf0b669-413e-438f-885b-d3506ad46a52", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by a!name", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Filter shop groups table should filter list by a!name", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_filterBy_a!name\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, multistore_2.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18131887-7290-47ba-bf85-bcc72c949046", + "parentUUID": "aaf0b669-413e-438f-885b-d3506ad46a52", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shop groups", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Filter shop groups table should reset filter and check the number of shop groups", + "timedOut": false, + "duration": 2864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_resetFilter_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.equal(numberOfShopGroups + 20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "612178ce-5f63-4494-9773-dc06e006ee87", + "parentUUID": "aaf0b669-413e-438f-885b-d3506ad46a52", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "919b1458-2601-4221-8175-f35645b63a9c", + "002164f8-7b5b-463e-8664-a327c4e7624d", + "18131887-7290-47ba-bf85-bcc72c949046", + "612178ce-5f63-4494-9773-dc06e006ee87" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7574, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "71dca2c2-58a3-4223-95ca-01482cc00476", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c2089e7-29b4-4252-8358-459cac3e27f5", + "parentUUID": "71dca2c2-58a3-4223-95ca-01482cc00476", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Pagination next and previous should click on next", + "timedOut": false, + "duration": 887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c2942c1-eaa4-466b-bb12-1c95a60fc987", + "parentUUID": "71dca2c2-58a3-4223-95ca-01482cc00476", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4771f7d4-4a12-44e2-b650-ce4c34c8ca53", + "parentUUID": "71dca2c2-58a3-4223-95ca-01482cc00476", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c885cf2-77b8-484e-b00e-e4817deb93fa", + "parentUUID": "71dca2c2-58a3-4223-95ca-01482cc00476", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5c2089e7-29b4-4252-8358-459cac3e27f5", + "5c2942c1-eaa4-466b-bb12-1c95a60fc987", + "4771f7d4-4a12-44e2-b650-ce4c34c8ca53", + "2c885cf2-77b8-484e-b00e-e4817deb93fa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2472, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fdb1c237-21f8-452c-a9b1-5fd877faf2a1", + "title": "Sort shop groups table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_shop_group' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Sort shop groups table should sort by 'id_shop_group' 'down' and check result", + "timedOut": false, + "duration": 1223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, multistore_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8c08457-74dc-4365-944f-8523cc925302", + "parentUUID": "fdb1c237-21f8-452c-a9b1-5fd877faf2a1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!name' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Sort shop groups table should sort by 'a!name' 'up' and check result", + "timedOut": false, + "duration": 1200, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_sortByShopNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, multistore_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae243745-1f0e-4503-96f6-6614791be854", + "parentUUID": "fdb1c237-21f8-452c-a9b1-5fd877faf2a1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!name' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Sort shop groups table should sort by 'a!name' 'down' and check result", + "timedOut": false, + "duration": 1178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_sortByShopNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, multistore_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb72adab-7bc2-4ee9-8346-d3e74996f95a", + "parentUUID": "fdb1c237-21f8-452c-a9b1-5fd877faf2a1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_shop_group' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Sort shop groups table should sort by 'id_shop_group' 'up' and check result", + "timedOut": false, + "duration": 1302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, multistore_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58a73894-0904-44e0-91fb-90cbb05c2ad0", + "parentUUID": "fdb1c237-21f8-452c-a9b1-5fd877faf2a1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a8c08457-74dc-4365-944f-8523cc925302", + "ae243745-1f0e-4503-96f6-6614791be854", + "fb72adab-7bc2-4ee9-8346-d3e74996f95a", + "58a73894-0904-44e0-91fb-90cbb05c2ad0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4903, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "title": "Delete all shop groups created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the shop group 'todelete0'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete0'", + "timedOut": false, + "duration": 5047, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c861860f-fa7d-4de7-976a-ef0d92a0abe4", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete1'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete1'", + "timedOut": false, + "duration": 5034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99cac69f-ceb4-47b8-9ad1-f781d0ea8e40", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete2'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete2'", + "timedOut": false, + "duration": 5059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afccf776-c97c-4c83-a356-1afd2f203e35", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete3'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete3'", + "timedOut": false, + "duration": 5030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f59ac567-95c7-4951-a010-6c4dc69833d3", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete4'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete4'", + "timedOut": false, + "duration": 5021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36fc7272-1c06-406a-884a-f6c844d077d3", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete5'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete5'", + "timedOut": false, + "duration": 5028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "805d3744-18e5-4f9f-bcf6-d5e278d6a7e9", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete6'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete6'", + "timedOut": false, + "duration": 5028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ee79c81-6ccb-412f-8511-0dc66cecc109", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete7'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete7'", + "timedOut": false, + "duration": 5252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91f7609f-7f86-4e74-8cbc-559f23ed4906", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete8'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete8'", + "timedOut": false, + "duration": 5017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee2d1a00-703f-41ec-8ef1-de1b5c9d02c7", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete9'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete9'", + "timedOut": false, + "duration": 5011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54d1ee44-3ace-4a60-8cc8-a6402cf541a6", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete10'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete10'", + "timedOut": false, + "duration": 4995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1881260c-19d1-414b-a07b-a20fbb6e8273", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete11'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete11'", + "timedOut": false, + "duration": 5003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c54005b-6253-40bd-a193-fd3bf0c7a118", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete12'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete12'", + "timedOut": false, + "duration": 4991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "441aae00-a21f-45eb-ad53-a55605456b1a", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete13'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete13'", + "timedOut": false, + "duration": 5038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "caa32a88-6104-4d7a-8141-0e613abb5cdd", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete14'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete14'", + "timedOut": false, + "duration": 5062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ecdcadf-070b-40c8-b0b6-983e6c5224fd", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete15'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete15'", + "timedOut": false, + "duration": 5002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20d67223-f62a-4971-ac9b-e0a57e0b6e40", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete16'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete16'", + "timedOut": false, + "duration": 5014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a417802a-a33d-4068-af42-dbd7d0fd4c56", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete17'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete17'", + "timedOut": false, + "duration": 5015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c53d0b11-2c8f-40b1-a0b1-3ccd1707997e", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete18'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete18'", + "timedOut": false, + "duration": 5000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40af5e91-2d4e-4009-aeac-fe6afe9b9203", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop group 'todelete19'", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Delete all shop groups created should delete the shop group 'todelete19'", + "timedOut": false, + "duration": 5050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_deleteShopGroup19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfShopGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.filterTable(page, 'a!name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.deleteShopGroup(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulDeleteMessage);\n return [4 /*yield*/, multistore_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfShopGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfShopGroupsAfterDelete).to.be.equal(numberOfShopGroups + 20 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "318318ff-01fe-42b7-8622-56f697845c29", + "parentUUID": "2c66739f-bc2e-42db-a8c0-fcef3fab1131", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c861860f-fa7d-4de7-976a-ef0d92a0abe4", + "99cac69f-ceb4-47b8-9ad1-f781d0ea8e40", + "afccf776-c97c-4c83-a356-1afd2f203e35", + "f59ac567-95c7-4951-a010-6c4dc69833d3", + "36fc7272-1c06-406a-884a-f6c844d077d3", + "805d3744-18e5-4f9f-bcf6-d5e278d6a7e9", + "4ee79c81-6ccb-412f-8511-0dc66cecc109", + "91f7609f-7f86-4e74-8cbc-559f23ed4906", + "ee2d1a00-703f-41ec-8ef1-de1b5c9d02c7", + "54d1ee44-3ace-4a60-8cc8-a6402cf541a6", + "1881260c-19d1-414b-a07b-a20fbb6e8273", + "2c54005b-6253-40bd-a193-fd3bf0c7a118", + "441aae00-a21f-45eb-ad53-a55605456b1a", + "caa32a88-6104-4d7a-8141-0e613abb5cdd", + "5ecdcadf-070b-40c8-b0b6-983e6c5224fd", + "20d67223-f62a-4971-ac9b-e0a57e0b6e40", + "a417802a-a33d-4068-af42-dbd7d0fd4c56", + "c53d0b11-2c8f-40b1-a0b1-3ccd1707997e", + "40af5e91-2d4e-4009-aeac-fe6afe9b9203", + "318318ff-01fe-42b7-8622-56f697845c29" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 100697, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f51a9edf-5669-446b-9b8c-b06394e1087f", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/02_filterSortAndPaginationShopGroups.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba349ed1-2ab2-4e86-bd56-ec690c8e521b", + "parentUUID": "f51a9edf-5669-446b-9b8c-b06394e1087f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "48d9e57a-5052-4b98-bb56-d53dd220e977", + "parentUUID": "f51a9edf-5669-446b-9b8c-b06394e1087f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Disable the multistore should login in BO", + "timedOut": false, + "duration": 1982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "824e7906-5dd0-48fc-a100-5d1029aabdf4", + "parentUUID": "f51a9edf-5669-446b-9b8c-b06394e1087f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b8c4fe3-c05f-46bf-a85b-3ac09713b463", + "parentUUID": "f51a9edf-5669-446b-9b8c-b06394e1087f", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Advanced Parameters - MultiStore : Filter, sort and pagination shop group table Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopGroups_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f598328-d12e-4160-b3a9-0c95027dadac", + "parentUUID": "f51a9edf-5669-446b-9b8c-b06394e1087f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "824e7906-5dd0-48fc-a100-5d1029aabdf4", + "5b8c4fe3-c05f-46bf-a85b-3ac09713b463", + "4f598328-d12e-4160-b3a9-0c95027dadac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7177, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5267fc11-abb1-4ac5-b2ac-41068b747d42", + "title": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO \"before all\" hook in \"BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a01f8791-34ec-4657-8525-dba993d00bb2", + "parentUUID": "5267fc11-abb1-4ac5-b2ac-41068b747d42", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO \"after all\" hook in \"BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e50124cd-8abd-4996-b057-1aa1d0326ca0", + "parentUUID": "5267fc11-abb1-4ac5-b2ac-41068b747d42", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2c373489-cf13-4b90-8742-897f708f5ad8", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d4627e7-182e-4436-baac-7e30cd3dc753", + "parentUUID": "2c373489-cf13-4b90-8742-897f708f5ad8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b6f7181e-e03f-4da4-8d37-c51516585541", + "parentUUID": "2c373489-cf13-4b90-8742-897f708f5ad8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Enable the multistore should login in BO", + "timedOut": false, + "duration": 2060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "371bc3e7-c650-4ea4-bbb5-b81d9e391514", + "parentUUID": "2c373489-cf13-4b90-8742-897f708f5ad8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3166d8aa-c0a2-45f6-b75c-64785d0be4a4", + "parentUUID": "2c373489-cf13-4b90-8742-897f708f5ad8", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96512c11-7675-4194-a574-a5091aee2bf1", + "parentUUID": "2c373489-cf13-4b90-8742-897f708f5ad8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "371bc3e7-c650-4ea4-bbb5-b81d9e391514", + "3166d8aa-c0a2-45f6-b75c-64785d0be4a4", + "96512c11-7675-4194-a574-a5091aee2bf1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7285, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "50aae399-3c88-456f-8da0-d3ec37d9e515", + "title": "Create shop", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Create shop should login in BO", + "timedOut": false, + "duration": 2003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1dfa631-78b6-4a4d-841c-4ec63e7454b5", + "parentUUID": "50aae399-3c88-456f-8da0-d3ec37d9e515", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Create shop should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 4639, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a34b9f78-29ad-4e51-9f48-cbe0941908d2", + "parentUUID": "50aae399-3c88-456f-8da0-d3ec37d9e515", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Create shop should go to add new shop page", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_goToAddNewShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d11954f0-5626-4acd-90cd-ea1d679467cb", + "parentUUID": "50aae399-3c88-456f-8da0-d3ec37d9e515", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Create shop should create shop", + "timedOut": false, + "duration": 1278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_createShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, createShopData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f35bec7-7304-4cf1-9fb4-c36c02b5a67c", + "parentUUID": "50aae399-3c88-456f-8da0-d3ec37d9e515", + "isHook": false, + "skipped": false + }, + { + "title": "should get the id of the new shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Create shop should get the id of the new shop", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_getShopID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShops, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getShopID', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfShops = _b.sent();\n (0, chai_1.expect)(numberOfShops).to.be.above(0);\n _a = parseInt;\n return [4 /*yield*/, shop_1.default.getTextColumn(page, 1, 'id_shop')];\n case 3:\n shopID = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb08b282-5b7e-4927-afdf-c6644d35c367", + "parentUUID": "50aae399-3c88-456f-8da0-d3ec37d9e515", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d1dfa631-78b6-4a4d-841c-4ec63e7454b5", + "a34b9f78-29ad-4e51-9f48-cbe0941908d2", + "d11954f0-5626-4acd-90cd-ea1d679467cb", + "5f35bec7-7304-4cf1-9fb4-c36c02b5a67c", + "fb08b282-5b7e-4927-afdf-c6644d35c367" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8871, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7b8fabce-b080-408f-8092-ddc6e7d4f8ec", + "title": "Update shop", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit the created shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Update shop should go to edit the created shop page", + "timedOut": false, + "duration": 1836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_goToEditShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', createShopData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.gotoEditShopPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f30ceac-5ab9-42f8-8deb-018594921189", + "parentUUID": "7b8fabce-b080-408f-8092-ddc6e7d4f8ec", + "isHook": false, + "skipped": false + }, + { + "title": "should edit shop and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Update shop should edit shop and check result", + "timedOut": false, + "duration": 1232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_updateShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, updateShopData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce0c9485-140d-474f-8294-e43cddb15246", + "parentUUID": "7b8fabce-b080-408f-8092-ddc6e7d4f8ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Update shop should go to add URL", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_goToAddURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', updateShopData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToSetURL(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "683d85f4-4a50-4bed-803c-225e5c2df859", + "parentUUID": "7b8fabce-b080-408f-8092-ddc6e7d4f8ec", + "isHook": false, + "skipped": false + }, + { + "title": "should set URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Update shop should set URL", + "timedOut": false, + "duration": 1248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_addURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, updateShopData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82b755b4-3421-4de7-9cc9-7070e39809f1", + "parentUUID": "7b8fabce-b080-408f-8092-ddc6e7d4f8ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6f30ceac-5ab9-42f8-8deb-018594921189", + "ce0c9485-140d-474f-8294-e43cddb15246", + "683d85f4-4a50-4bed-803c-225e5c2df859", + "82b755b4-3421-4de7-9cc9-7070e39809f1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6100, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ab919ff7-5737-484d-86ad-863542f0e7d2", + "title": "Delete shop", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the created shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Delete shop should go to the created shop page", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_goToCreatedShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreatedShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToShopPage(page, shopID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(updateShopData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a6830f2-d898-43f8-aaa2-8f874ae9791d", + "parentUUID": "ab919ff7-5737-484d-86ad-863542f0e7d2", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Delete shop should delete the shop", + "timedOut": false, + "duration": 1594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_deleteShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', updateShopData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78a8685b-3be8-4f79-b338-909ddfca1666", + "parentUUID": "ab919ff7-5737-484d-86ad-863542f0e7d2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0a6830f2-d898-43f8-aaa2-8f874ae9791d", + "78a8685b-3be8-4f79-b338-909ddfca1666" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2399, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "36bbfe66-eb59-4fa2-891c-91486c776582", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/03_CRUDShops.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c84e0d12-2c87-4ba1-911d-72c69225df3d", + "parentUUID": "36bbfe66-eb59-4fa2-891c-91486c776582", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a864c887-ccd9-40e4-ab4d-0a58056a6564", + "parentUUID": "36bbfe66-eb59-4fa2-891c-91486c776582", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Disable the multistore should login in BO", + "timedOut": false, + "duration": 2112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d373935-7853-44d6-8b67-ab7ffb98aca0", + "parentUUID": "36bbfe66-eb59-4fa2-891c-91486c776582", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5610db75-6eea-4ba2-ba51-4e7acc35046f", + "parentUUID": "36bbfe66-eb59-4fa2-891c-91486c776582", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Create, Read, Update and Delete shop in BO Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 363, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_CRUDShops_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64c9aaf1-df22-40a7-8438-98451a5c7f01", + "parentUUID": "36bbfe66-eb59-4fa2-891c-91486c776582", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1d373935-7853-44d6-8b67-ab7ffb98aca0", + "5610db75-6eea-4ba2-ba51-4e7acc35046f", + "64c9aaf1-df22-40a7-8438-98451a5c7f01" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7318, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fae304c2-97a7-4dd3-abb4-7775a046eacf", + "title": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Multistore : Filter, sort and pagination shops\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops \"before all\" hook in \"BO - Advanced Parameters - Multistore : Filter, sort and pagination shops\"", + "timedOut": false, + "duration": 50, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e353dbe-9d66-45b4-b243-0c0d9dff3204", + "parentUUID": "fae304c2-97a7-4dd3-abb4-7775a046eacf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Multistore : Filter, sort and pagination shops\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops \"after all\" hook in \"BO - Advanced Parameters - Multistore : Filter, sort and pagination shops\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a62c103e-b17e-4a63-b155-2226bfa2471e", + "parentUUID": "fae304c2-97a7-4dd3-abb4-7775a046eacf", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "78ec8982-e439-4f57-bd86-1a18c6cf6e2f", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a58033bb-274f-42fc-946f-b0a56835cb3e", + "parentUUID": "78ec8982-e439-4f57-bd86-1a18c6cf6e2f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "01f8fb53-2e22-4637-b2a4-660b46391793", + "parentUUID": "78ec8982-e439-4f57-bd86-1a18c6cf6e2f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Enable the multistore should login in BO", + "timedOut": false, + "duration": 1960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "233aacc8-091d-4150-9ec2-cc83f08cb6cf", + "parentUUID": "78ec8982-e439-4f57-bd86-1a18c6cf6e2f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be159638-247f-4230-814f-2cdb12b96bbd", + "parentUUID": "78ec8982-e439-4f57-bd86-1a18c6cf6e2f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 380, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16b855e4-c3ee-43d1-8884-fe71b4c84526", + "parentUUID": "78ec8982-e439-4f57-bd86-1a18c6cf6e2f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "233aacc8-091d-4150-9ec2-cc83f08cb6cf", + "be159638-247f-4230-814f-2cdb12b96bbd", + "16b855e4-c3ee-43d1-8884-fe71b4c84526" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7172, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1d174c10-cc60-4a29-9338-af1b4057aa2e", + "title": "Go to 'Multistore' page and create the first shop", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Go to 'Multistore' page and create the first shop should login in BO", + "timedOut": false, + "duration": 2001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22215416-7f90-4130-bd27-b33e57884844", + "parentUUID": "1d174c10-cc60-4a29-9338-af1b4057aa2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Go to 'Multistore' page and create the first shop should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 4667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9aa21cde-c283-4c6d-a6bb-9bb5313921fd", + "parentUUID": "1d174c10-cc60-4a29-9338-af1b4057aa2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Go to 'Multistore' page and create the first shop should go to add new shop page", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewShopsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89c87d02-000e-4342-8644-d0816da7eaca", + "parentUUID": "1d174c10-cc60-4a29-9338-af1b4057aa2e", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Go to 'Multistore' page and create the first shop should create shop", + "timedOut": false, + "duration": 1281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createFirstShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createFirstShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d759bae4-8473-465b-841c-9ab34069d027", + "parentUUID": "1d174c10-cc60-4a29-9338-af1b4057aa2e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "22215416-7f90-4130-bd27-b33e57884844", + "9aa21cde-c283-4c6d-a6bb-9bb5313921fd", + "89c87d02-000e-4342-8644-d0816da7eaca", + "d759bae4-8473-465b-841c-9ab34069d027" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8926, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "title": "Create 19 shops", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "827dd6b3-4609-47c4-8b2b-1ef288d6feae", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°1", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°1", + "timedOut": false, + "duration": 1284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ba85398-d8e8-4f7d-9f0b-2053de3b298d", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99cd6aee-7e7b-4a00-8e1a-44cfcecf0e8f", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°2", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°2", + "timedOut": false, + "duration": 1281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ded9f475-0215-4f9f-a82d-e41e766cf754", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "952ab24b-677b-4757-8e54-b8e20348a3f1", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°3", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°3", + "timedOut": false, + "duration": 1276, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8423b18b-e70e-46cd-b685-427efe508848", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a545e853-459b-4a5d-869a-e3ca358372bd", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°4", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°4", + "timedOut": false, + "duration": 1299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fb11162-eae5-457a-b9d7-859fdf06abcc", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30767d0d-c74a-47c0-8f87-9daeb32ee89d", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°5", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°5", + "timedOut": false, + "duration": 1334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "457ac6b7-0ff5-4a89-850b-ab94086a52db", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a16864cb-1ca0-4bc7-8f0b-41add420b511", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°6", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°6", + "timedOut": false, + "duration": 1329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cceeee2-e204-43c7-a678-25d92124bc1f", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28edb2d7-87a3-42c3-8842-c275782cd1a0", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°7", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°7", + "timedOut": false, + "duration": 1308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e12d9f9c-611e-4743-9944-27a2e805173a", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91d0fdb2-61ed-4306-bf99-ab410ff992d4", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°8", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°8", + "timedOut": false, + "duration": 1319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc88f98f-c9df-4028-be23-5d1f019d50b4", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cd29177-5008-4863-a5cb-95e196d75268", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°9", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°9", + "timedOut": false, + "duration": 1317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16ea30c6-1ecf-4f7e-8c0a-9de5434bb639", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e12e9e3b-1865-4287-91c7-b32b24ff63f8", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°10", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°10", + "timedOut": false, + "duration": 1339, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a80e5953-e48a-4615-8fd2-b33ef85e7019", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af30a395-a324-4d90-9948-66a7f78d9563", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°11", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°11", + "timedOut": false, + "duration": 1338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e4507a0-84fb-45f8-9238-4e9f661b5090", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48678f18-ca7e-4a1f-8938-f4e02dfec4b0", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°12", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°12", + "timedOut": false, + "duration": 1361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3954206e-404a-473d-8e26-a36b80ae7d46", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97758cf8-d984-41c4-b6a2-c36c881ab81c", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°13", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°13", + "timedOut": false, + "duration": 1342, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc8adca7-891f-46b9-acfc-ec05c414d944", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06e8dafe-1d99-478e-833d-f3a66b2b593b", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°14", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°14", + "timedOut": false, + "duration": 1351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63ce1569-8637-4282-8163-7ef23bbf3688", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b803765-52af-4b3b-8655-9061b9baa863", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°15", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°15", + "timedOut": false, + "duration": 1356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4d28521-874c-4091-bb22-8484f02c55de", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e44b1943-6d12-4f27-8e91-759d5b6493b6", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°16", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°16", + "timedOut": false, + "duration": 1367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecda0540-6ca0-4c8f-81d0-3592068807ae", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "596ffda1-1915-409a-9a9d-8f0eef9a2e4a", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°17", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°17", + "timedOut": false, + "duration": 1384, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a573753-8d05-4822-85b0-7845f1527a7b", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ca62386-6396-4ad0-bf58-bd57b305c182", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°18", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°18", + "timedOut": false, + "duration": 1396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d568f296-4d2b-48cd-8cee-4048221c1f99", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should go to add new shop page", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_goToAddNewShopsPage18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewShopsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4a56f8e-6e8e-4a5d-8230-364d80797469", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop n°19", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Create 19 shops should create shop n°19", + "timedOut": false, + "duration": 1429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_createShop18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, shopCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d8b5c0f-f486-45cb-b84c-69630c7d622b", + "parentUUID": "a1cebf7a-aca9-4ea4-8ffe-f11c8a3f0923", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "827dd6b3-4609-47c4-8b2b-1ef288d6feae", + "8ba85398-d8e8-4f7d-9f0b-2053de3b298d", + "99cd6aee-7e7b-4a00-8e1a-44cfcecf0e8f", + "ded9f475-0215-4f9f-a82d-e41e766cf754", + "952ab24b-677b-4757-8e54-b8e20348a3f1", + "8423b18b-e70e-46cd-b685-427efe508848", + "a545e853-459b-4a5d-869a-e3ca358372bd", + "1fb11162-eae5-457a-b9d7-859fdf06abcc", + "30767d0d-c74a-47c0-8f87-9daeb32ee89d", + "457ac6b7-0ff5-4a89-850b-ab94086a52db", + "a16864cb-1ca0-4bc7-8f0b-41add420b511", + "5cceeee2-e204-43c7-a678-25d92124bc1f", + "28edb2d7-87a3-42c3-8842-c275782cd1a0", + "e12d9f9c-611e-4743-9944-27a2e805173a", + "91d0fdb2-61ed-4306-bf99-ab410ff992d4", + "cc88f98f-c9df-4028-be23-5d1f019d50b4", + "8cd29177-5008-4863-a5cb-95e196d75268", + "16ea30c6-1ecf-4f7e-8c0a-9de5434bb639", + "e12e9e3b-1865-4287-91c7-b32b24ff63f8", + "a80e5953-e48a-4615-8fd2-b33ef85e7019", + "af30a395-a324-4d90-9948-66a7f78d9563", + "7e4507a0-84fb-45f8-9238-4e9f661b5090", + "48678f18-ca7e-4a1f-8938-f4e02dfec4b0", + "3954206e-404a-473d-8e26-a36b80ae7d46", + "97758cf8-d984-41c4-b6a2-c36c881ab81c", + "cc8adca7-891f-46b9-acfc-ec05c414d944", + "06e8dafe-1d99-478e-833d-f3a66b2b593b", + "63ce1569-8637-4282-8163-7ef23bbf3688", + "4b803765-52af-4b3b-8655-9061b9baa863", + "a4d28521-874c-4091-bb22-8484f02c55de", + "e44b1943-6d12-4f27-8e91-759d5b6493b6", + "ecda0540-6ca0-4c8f-81d0-3592068807ae", + "596ffda1-1915-409a-9a9d-8f0eef9a2e4a", + "1a573753-8d05-4822-85b0-7845f1527a7b", + "2ca62386-6396-4ad0-bf58-bd57b305c182", + "d568f296-4d2b-48cd-8cee-4048221c1f99", + "f4a56f8e-6e8e-4a5d-8230-364d80797469", + "0d8b5c0f-f486-45cb-b84c-69630c7d622b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 43703, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3e521833-307b-40e2-b6ee-def4194ac74e", + "title": "Filter shops table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by id_shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should filter list by id_shop", + "timedOut": false, + "duration": 935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_filterBy_id_shop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shop_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93916be5-9c3a-45b1-9cde-a8c4dae759ab", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_resetFilter_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe9b45bd-80c8-418b-a8f2-cffddb8a1a7b", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by a!name", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should filter list by a!name", + "timedOut": false, + "duration": 980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_filterBy_a!name\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shop_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f201413d-ff9e-4cb2-ae4f-a93d3f531944", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_resetFilter_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eaec73e3-7cf5-43cb-9587-3de6655941bb", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by gs!name", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should filter list by gs!name", + "timedOut": false, + "duration": 1163, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_filterBy_gs!name\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shop_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff9e0fad-9449-492f-8eec-680bf78f18c5", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_resetFilter_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55c3f5b2-045f-477c-91ea-fe595472a09a", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by cl!name", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should filter list by cl!name", + "timedOut": false, + "duration": 1133, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_filterBy_cl!name\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shop_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e44341a0-bbfc-4de8-ad41-cc09cc6799df", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_resetFilter_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4e4ceb4-7bd2-4b92-be97-2fc941a81593", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by url", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should filter list by url", + "timedOut": false, + "duration": 952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_filterBy_url\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shop_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "768cac3e-9d75-4f3f-a357-537f3214c5e1", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Filter shops table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_resetFilter_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c46ed106-f6e3-4159-a3b7-168fa8c1ec09", + "parentUUID": "3e521833-307b-40e2-b6ee-def4194ac74e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "93916be5-9c3a-45b1-9cde-a8c4dae759ab", + "fe9b45bd-80c8-418b-a8f2-cffddb8a1a7b", + "f201413d-ff9e-4cb2-ae4f-a93d3f531944", + "eaec73e3-7cf5-43cb-9587-3de6655941bb", + "ff9e0fad-9449-492f-8eec-680bf78f18c5", + "55c3f5b2-045f-477c-91ea-fe595472a09a", + "e44341a0-bbfc-4de8-ad41-cc09cc6799df", + "c4e4ceb4-7bd2-4b92-be97-2fc941a81593", + "768cac3e-9d75-4f3f-a357-537f3214c5e1", + "c46ed106-f6e3-4159-a3b7-168fa8c1ec09" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19738, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3466ef41-fc42-4231-8e0d-4f82594bf029", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01cf3813-f345-4a38-9f72-8d4ec053832d", + "parentUUID": "3466ef41-fc42-4231-8e0d-4f82594bf029", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Pagination next and previous should click on next", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e893b92e-9dc5-4ced-b793-f1e08762b5c9", + "parentUUID": "3466ef41-fc42-4231-8e0d-4f82594bf029", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Pagination next and previous should click on previous", + "timedOut": false, + "duration": 947, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4eb0b6b-803b-4db1-990f-214e39577dc2", + "parentUUID": "3466ef41-fc42-4231-8e0d-4f82594bf029", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "613ee7b9-a11f-4378-acdb-a3cefa1639b3", + "parentUUID": "3466ef41-fc42-4231-8e0d-4f82594bf029", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "01cf3813-f345-4a38-9f72-8d4ec053832d", + "e893b92e-9dc5-4ced-b793-f1e08762b5c9", + "a4eb0b6b-803b-4db1-990f-214e39577dc2", + "613ee7b9-a11f-4378-acdb-a3cefa1639b3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3760, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31452af2-a652-4c0f-a9c1-243695fe2691", + "title": "Sort shops table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_shop' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'id_shop' 'down' and check result", + "timedOut": false, + "duration": 1253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e78e2dc-a1e7-44da-832c-f1e62bc402d3", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!name' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'a!name' 'up' and check result", + "timedOut": false, + "duration": 1297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByShopNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00d383fb-7ba2-4c91-b39f-45733ae5777d", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!name' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'a!name' 'down' and check result", + "timedOut": false, + "duration": 1294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByShopNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1d68a61-343f-4419-8fb9-04bb6ddcbce4", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'gs!name' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'gs!name' 'up' and check result", + "timedOut": false, + "duration": 1182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByShopGroupAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "944e6ead-bd71-4c01-a166-254ae1737698", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'gs!name' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'gs!name' 'down' and check result", + "timedOut": false, + "duration": 1296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByShopGroupDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dbc6927-11a0-4397-a75e-d57cffd2a3c3", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'cl!name' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'cl!name' 'up' and check result", + "timedOut": false, + "duration": 1376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByMessageAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e516734-b618-4304-b9f4-9876b34536eb", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'cl!name' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'cl!name' 'down' and check result", + "timedOut": false, + "duration": 1270, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByRootCategoryDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c07fa45-347c-45fd-bb40-0a39d218f59e", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'url' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'url' 'up' and check result", + "timedOut": false, + "duration": 1166, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByURLAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bacf0d7-2261-4f29-bcd8-fafb1c25bafc", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'url' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'url' 'down' and check result", + "timedOut": false, + "duration": 1264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByURLDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ef74618-f5ba-4ad5-90c3-38dd2c86a5f8", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_shop' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Sort shops table should sort by 'id_shop' 'up' and check result", + "timedOut": false, + "duration": 1303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shop_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c685860b-16fa-421f-9002-5b8c68e757ed", + "parentUUID": "31452af2-a652-4c0f-a9c1-243695fe2691", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1e78e2dc-a1e7-44da-832c-f1e62bc402d3", + "00d383fb-7ba2-4c91-b39f-45733ae5777d", + "d1d68a61-343f-4419-8fb9-04bb6ddcbce4", + "944e6ead-bd71-4c01-a166-254ae1737698", + "9dbc6927-11a0-4397-a75e-d57cffd2a3c3", + "8e516734-b618-4304-b9f4-9876b34536eb", + "5c07fa45-347c-45fd-bb40-0a39d218f59e", + "4bacf0d7-2261-4f29-bcd8-fafb1c25bafc", + "5ef74618-f5ba-4ad5-90c3-38dd2c86a5f8", + "c685860b-16fa-421f-9002-5b8c68e757ed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12701, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d470fae9-14a1-4118-87d2-16d217ede7da", + "title": "delete all shops created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the shop 'Todelete0'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete0'", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a48e9801-13dc-4552-b991-1a6f1dde02d9", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete1'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete1'", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60376884-fc53-48a4-8683-184ac8f887f6", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete2'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete2'", + "timedOut": false, + "duration": 1704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2be66944-bf4f-4b10-b7f4-2e5bd59d503f", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete3'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete3'", + "timedOut": false, + "duration": 1652, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b5b7572-ff61-4a73-b8cc-19c74ec8df95", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete4'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete4'", + "timedOut": false, + "duration": 1650, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e75a6393-f796-444f-8513-bfce3464d53e", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete5'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete5'", + "timedOut": false, + "duration": 1735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9967cd6c-2f91-4871-9096-8383b49da473", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete6'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete6'", + "timedOut": false, + "duration": 1653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a74aa58-e261-4640-b5db-8b76c18cdaf5", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete7'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete7'", + "timedOut": false, + "duration": 1691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87ce5505-4827-4670-af06-033419bbfc05", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete8'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete8'", + "timedOut": false, + "duration": 1632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fa9d3c0-3acb-49e9-8cf8-9204df0dd330", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete9'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete9'", + "timedOut": false, + "duration": 1646, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f745f32-b5db-404b-bcea-ba7c23b71cbc", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete10'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete10'", + "timedOut": false, + "duration": 1643, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96cdd0fc-d4c1-4001-98d9-b1dde5616e91", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete11'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete11'", + "timedOut": false, + "duration": 1652, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0b2d4d3-9539-49a1-9677-fb92eceebdd2", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete12'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete12'", + "timedOut": false, + "duration": 1657, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c930d78-5b4b-47b7-b371-6d442dff9ef7", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete13'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete13'", + "timedOut": false, + "duration": 1651, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c46fadfb-0894-428d-be77-47f88d85299b", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete14'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete14'", + "timedOut": false, + "duration": 1631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b3f1ef0-7732-429d-830b-919b65827ca7", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete15'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete15'", + "timedOut": false, + "duration": 1629, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a1a7a1a-1333-4227-9434-0c0cf202cc80", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete16'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete16'", + "timedOut": false, + "duration": 1635, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43ec8d0b-0613-4f5f-a31e-4e3c59e3bf3c", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete17'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete17'", + "timedOut": false, + "duration": 1610, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7f47e41-cf6c-40d1-896d-e00f815fe059", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete18'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete18'", + "timedOut": false, + "duration": 1631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acdc71aa-4427-48bb-b286-955735c2f822", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop 'Todelete19'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops delete all shops created should delete the shop 'Todelete19'", + "timedOut": false, + "duration": 1621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_deleteShop19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', \"Todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4bcffd6-176a-4017-9d0d-fea3cb959006", + "parentUUID": "d470fae9-14a1-4118-87d2-16d217ede7da", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a48e9801-13dc-4552-b991-1a6f1dde02d9", + "60376884-fc53-48a4-8683-184ac8f887f6", + "2be66944-bf4f-4b10-b7f4-2e5bd59d503f", + "9b5b7572-ff61-4a73-b8cc-19c74ec8df95", + "e75a6393-f796-444f-8513-bfce3464d53e", + "9967cd6c-2f91-4871-9096-8383b49da473", + "1a74aa58-e261-4640-b5db-8b76c18cdaf5", + "87ce5505-4827-4670-af06-033419bbfc05", + "0fa9d3c0-3acb-49e9-8cf8-9204df0dd330", + "8f745f32-b5db-404b-bcea-ba7c23b71cbc", + "96cdd0fc-d4c1-4001-98d9-b1dde5616e91", + "d0b2d4d3-9539-49a1-9677-fb92eceebdd2", + "4c930d78-5b4b-47b7-b371-6d442dff9ef7", + "c46fadfb-0894-428d-be77-47f88d85299b", + "5b3f1ef0-7732-429d-830b-919b65827ca7", + "6a1a7a1a-1333-4227-9434-0c0cf202cc80", + "43ec8d0b-0613-4f5f-a31e-4e3c59e3bf3c", + "f7f47e41-cf6c-40d1-896d-e00f815fe059", + "acdc71aa-4427-48bb-b286-955735c2f822", + "a4bcffd6-176a-4017-9d0d-fea3cb959006" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 33159, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f790a17f-ee71-4205-8364-d684802e3d93", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/04_filterSortAndPaginationShops.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9776dfa-8a38-4d49-9877-4cf8ea6eb971", + "parentUUID": "f790a17f-ee71-4205-8364-d684802e3d93", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fa1407d0-f3e1-40be-9061-cc3d8c7c2bf8", + "parentUUID": "f790a17f-ee71-4205-8364-d684802e3d93", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Disable the multistore should login in BO", + "timedOut": false, + "duration": 1968, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77b46b2e-6eb8-424e-abd7-4658639b2bcb", + "parentUUID": "f790a17f-ee71-4205-8364-d684802e3d93", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b7c9f4d-1234-4169-aaa0-35b3d12aa8d9", + "parentUUID": "f790a17f-ee71-4205-8364-d684802e3d93", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shops Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShops_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df8495c8-8280-4444-8a33-557e12aefb56", + "parentUUID": "f790a17f-ee71-4205-8364-d684802e3d93", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "77b46b2e-6eb8-424e-abd7-4658639b2bcb", + "4b7c9f4d-1234-4169-aaa0-35b3d12aa8d9", + "df8495c8-8280-4444-8a33-557e12aefb56" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7174, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e660c808-228c-47e1-8878-a319ce69343e", + "title": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls \"before all\" hook in \"BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d2db368-504a-4020-b64d-db38816d0587", + "parentUUID": "e660c808-228c-47e1-8878-a319ce69343e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls \"after all\" hook in \"BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls\"", + "timedOut": false, + "duration": 15, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3388891e-cd49-409a-ab6f-512983c3b774", + "parentUUID": "e660c808-228c-47e1-8878-a319ce69343e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "9651e237-d0f5-4326-9f0d-3b225334d2c1", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8aafe1aa-5b5f-4e5f-90d8-987f66568dae", + "parentUUID": "9651e237-d0f5-4326-9f0d-3b225334d2c1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9a57f886-cc9c-46f1-a662-f6d553dc3a7f", + "parentUUID": "9651e237-d0f5-4326-9f0d-3b225334d2c1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Enable the multistore should login in BO", + "timedOut": false, + "duration": 1929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0784679-2ba0-42d6-8faa-4c5b0231cb00", + "parentUUID": "9651e237-d0f5-4326-9f0d-3b225334d2c1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69d0f010-6472-4ef3-83f8-687341b1861a", + "parentUUID": "9651e237-d0f5-4326-9f0d-3b225334d2c1", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cca7e29-7948-474d-87f4-ff3ae09a5504", + "parentUUID": "9651e237-d0f5-4326-9f0d-3b225334d2c1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d0784679-2ba0-42d6-8faa-4c5b0231cb00", + "69d0f010-6472-4ef3-83f8-687341b1861a", + "1cca7e29-7948-474d-87f4-ff3ae09a5504" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7143, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b82ac745-8acf-467c-90b7-e907c10b45d1", + "title": "Go to 'Multistore' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Go to 'Multistore' page should login in BO", + "timedOut": false, + "duration": 2044, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b8a3eae-dfb4-4529-a050-003c65f57203", + "parentUUID": "b82ac745-8acf-467c-90b7-e907c10b45d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Go to 'Multistore' page should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 3639, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c88dd950-0416-43d5-99b3-0b45abae26bf", + "parentUUID": "b82ac745-8acf-467c-90b7-e907c10b45d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Urls' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Go to 'Multistore' page should go to 'Shop Urls' page", + "timedOut": false, + "duration": 778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToShopUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToShopURLPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e97c4a12-8dbe-4647-8fe1-bac5092929f8", + "parentUUID": "b82ac745-8acf-467c-90b7-e907c10b45d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b8a3eae-dfb4-4529-a050-003c65f57203", + "c88dd950-0416-43d5-99b3-0b45abae26bf", + "e97c4a12-8dbe-4647-8fe1-bac5092929f8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6461, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ef068c12-5cc5-46ab-920c-975311504d24", + "title": "Create 20 shop Urls", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "655a1202-f7eb-431e-ba95-29928a96c631", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°1", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°1", + "timedOut": false, + "duration": 1248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c1dae41-c6d5-45b0-b0eb-523f1dfd90bf", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46ee2e15-103a-4dd9-8311-9c63ba914b68", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°2", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°2", + "timedOut": false, + "duration": 1238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9af1c48a-51df-407c-ae93-a7ffc11940cc", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cc9913e-3be3-42c6-9365-f6f82cee8c7b", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°3", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°3", + "timedOut": false, + "duration": 1243, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fab274fa-f40f-4ba2-accb-f2f6b35888eb", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a8da091-a16a-4e85-be4f-888047811f68", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°4", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°4", + "timedOut": false, + "duration": 1271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70ccbba2-3542-4929-b7a0-5686616535b8", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "035b1ca7-b621-45e4-aaab-02d66aa197ef", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°5", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°5", + "timedOut": false, + "duration": 1245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3bcea4c-2a13-4305-aa6b-2e0ada280fd6", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bab6409-ead1-41e2-877f-00c1824954ab", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°6", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°6", + "timedOut": false, + "duration": 1263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d47e0555-d44f-4994-8c26-c8be32feb411", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e0235bf-cebc-4e52-b761-50c02f642366", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°7", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°7", + "timedOut": false, + "duration": 1247, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04a8b9f2-3aff-4cc0-ae27-88b1560f87da", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72d70b7a-22ac-487f-9344-e141df8a1a52", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°8", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°8", + "timedOut": false, + "duration": 1276, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3095fcb-dac4-4db8-83ca-b61ba2cbcef1", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bb1bea1-c960-4d21-9e05-eccf6a04e70a", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°9", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°9", + "timedOut": false, + "duration": 1273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2830a0cc-5b9e-4fcf-bfc8-fc1fef6ee419", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80b6cf86-2a50-44f8-8b29-e45f048e575d", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°10", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°10", + "timedOut": false, + "duration": 1263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2cc4941-09fd-4504-b48b-5d7ac1d7ae1b", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7377f7be-b410-4109-99bb-f9b23aa87a33", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°11", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°11", + "timedOut": false, + "duration": 1256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4f21123-8d4c-4ca7-a1ad-0bdd5c509ed7", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7382e07-3fc7-468a-96ff-7773dfd7f6e0", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°12", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°12", + "timedOut": false, + "duration": 1288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca0f6fca-f86b-4d72-b9f9-147182bb3e03", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "679e65d9-cbc7-46af-a842-7e52b484d4ae", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°13", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°13", + "timedOut": false, + "duration": 1274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cdcff3f-084f-4aa0-90f1-acd0b8ed7175", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65525b17-d54b-4a2c-a8d5-fa68f4e1ee43", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°14", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°14", + "timedOut": false, + "duration": 1282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "756bd9d8-4d26-481e-82af-d888a771316c", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cebd27c-4e60-4f2a-bd72-58be07b992e5", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°15", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°15", + "timedOut": false, + "duration": 1283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ab1a5ea-f58c-4c5e-ba82-f3f955c91b9d", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40f08516-218a-421e-ae86-d8ddf358e1b6", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°16", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°16", + "timedOut": false, + "duration": 1303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cea0054-211c-47d2-8ab1-f86b82d0e85b", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "768bdcd2-2813-4429-af00-b8738776ab1f", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°17", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°17", + "timedOut": false, + "duration": 1300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58903533-6e43-4658-9e6c-6829823aca2b", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0e8674b-fa82-4a8c-baf4-0f68038dadb3", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°18", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°18", + "timedOut": false, + "duration": 1296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1123d97d-537f-412e-979c-e6da4f2d05c8", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05f3b87a-45b9-4ab6-a3c4-5eace2c20ea4", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°19", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°19", + "timedOut": false, + "duration": 1279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bd8dde0-c66a-4595-b0c1-33051b36c4b4", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should go to add shop URL", + "timedOut": false, + "duration": 917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_goToAddURL19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae3432ed-c494-42c7-b233-705b0677fe30", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URl n°20", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Create 20 shop Urls should create shop URl n°20", + "timedOut": false, + "duration": 1294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_addURL19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, shopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e07e4648-87a5-4d57-a432-137dc7b6f93e", + "parentUUID": "ef068c12-5cc5-46ab-920c-975311504d24", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "655a1202-f7eb-431e-ba95-29928a96c631", + "1c1dae41-c6d5-45b0-b0eb-523f1dfd90bf", + "46ee2e15-103a-4dd9-8311-9c63ba914b68", + "9af1c48a-51df-407c-ae93-a7ffc11940cc", + "4cc9913e-3be3-42c6-9365-f6f82cee8c7b", + "fab274fa-f40f-4ba2-accb-f2f6b35888eb", + "5a8da091-a16a-4e85-be4f-888047811f68", + "70ccbba2-3542-4929-b7a0-5686616535b8", + "035b1ca7-b621-45e4-aaab-02d66aa197ef", + "a3bcea4c-2a13-4305-aa6b-2e0ada280fd6", + "1bab6409-ead1-41e2-877f-00c1824954ab", + "d47e0555-d44f-4994-8c26-c8be32feb411", + "3e0235bf-cebc-4e52-b761-50c02f642366", + "04a8b9f2-3aff-4cc0-ae27-88b1560f87da", + "72d70b7a-22ac-487f-9344-e141df8a1a52", + "b3095fcb-dac4-4db8-83ca-b61ba2cbcef1", + "6bb1bea1-c960-4d21-9e05-eccf6a04e70a", + "2830a0cc-5b9e-4fcf-bfc8-fc1fef6ee419", + "80b6cf86-2a50-44f8-8b29-e45f048e575d", + "d2cc4941-09fd-4504-b48b-5d7ac1d7ae1b", + "7377f7be-b410-4109-99bb-f9b23aa87a33", + "e4f21123-8d4c-4ca7-a1ad-0bdd5c509ed7", + "b7382e07-3fc7-468a-96ff-7773dfd7f6e0", + "ca0f6fca-f86b-4d72-b9f9-147182bb3e03", + "679e65d9-cbc7-46af-a842-7e52b484d4ae", + "0cdcff3f-084f-4aa0-90f1-acd0b8ed7175", + "65525b17-d54b-4a2c-a8d5-fa68f4e1ee43", + "756bd9d8-4d26-481e-82af-d888a771316c", + "7cebd27c-4e60-4f2a-bd72-58be07b992e5", + "1ab1a5ea-f58c-4c5e-ba82-f3f955c91b9d", + "40f08516-218a-421e-ae86-d8ddf358e1b6", + "3cea0054-211c-47d2-8ab1-f86b82d0e85b", + "768bdcd2-2813-4429-af00-b8738776ab1f", + "58903533-6e43-4658-9e6c-6829823aca2b", + "f0e8674b-fa82-4a8c-baf4-0f68038dadb3", + "1123d97d-537f-412e-979c-e6da4f2d05c8", + "05f3b87a-45b9-4ab6-a3c4-5eace2c20ea4", + "3bd8dde0-c66a-4595-b0c1-33051b36c4b4", + "ae3432ed-c494-42c7-b233-705b0677fe30", + "e07e4648-87a5-4d57-a432-137dc7b6f93e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 43999, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "title": "Filter shop table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by id_shop_url", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should filter list by id_shop_url", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_filterBy_id_shop_url\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, url_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6538e7ae-fdd5-4413-847b-ad4bfa8cb24e", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_resetFilter_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35a4cc4f-3a58-485a-950b-b2439ea90325", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by s!name", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should filter list by s!name", + "timedOut": false, + "duration": 1144, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_filterBy_s!name\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, url_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e54487bb-9dd8-4409-84c7-88156f4d1b38", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_resetFilter_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e7eea1c-576b-4519-a797-7dbf5fa91695", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by url", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should filter list by url", + "timedOut": false, + "duration": 935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_filterBy_url\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, url_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a1e0bc8-fc98-487c-9255-b46a069c4928", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_resetFilter_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d480e92-8da9-486d-91d8-b3005d934706", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by main", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should filter list by main", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_filterBy_main\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, url_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16a0cdf8-4cf7-4281-ae76-32c3f08f9f18", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_resetFilter_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c56b1a4-2657-444c-a1bd-a426bd94eb13", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by active", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should filter list by active", + "timedOut": false, + "duration": 999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_filterBy_active\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterBy_\".concat(test.args.filterBy), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, url_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fe245bb-49de-41ff-a536-563b89d2fdee", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of shops", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Filter shop table should reset filter and check the number of shops", + "timedOut": false, + "duration": 2899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_resetFilter_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElement;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfElement = _a.sent();\n (0, chai_1.expect)(numberOfElement).to.be.above(20);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43c1fe5a-a35c-453d-8b31-6c77a8dd029c", + "parentUUID": "4baaf36b-e5d3-497f-ae14-99c73b2b035e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6538e7ae-fdd5-4413-847b-ad4bfa8cb24e", + "35a4cc4f-3a58-485a-950b-b2439ea90325", + "e54487bb-9dd8-4409-84c7-88156f4d1b38", + "8e7eea1c-576b-4519-a797-7dbf5fa91695", + "2a1e0bc8-fc98-487c-9255-b46a069c4928", + "5d480e92-8da9-486d-91d8-b3005d934706", + "16a0cdf8-4cf7-4281-ae76-32c3f08f9f18", + "8c56b1a4-2657-444c-a1bd-a426bd94eb13", + "0fe245bb-49de-41ff-a536-563b89d2fdee", + "43c1fe5a-a35c-453d-8b31-6c77a8dd029c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19354, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ab98e234-a7cb-40ff-a19f-17471d03882d", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84f903bf-3caf-4440-ac1a-741c55a0aca7", + "parentUUID": "ab98e234-a7cb-40ff-a19f-17471d03882d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Pagination next and previous should click on next", + "timedOut": false, + "duration": 884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58b662ad-0090-41ce-8f24-be8aa92f3ce0", + "parentUUID": "ab98e234-a7cb-40ff-a19f-17471d03882d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Pagination next and previous should click on previous", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85e3a21a-afa9-4e45-83ba-e5de67fcdbd1", + "parentUUID": "ab98e234-a7cb-40ff-a19f-17471d03882d", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f95dc63c-b9b9-4f6b-8d76-90c55b41a48c", + "parentUUID": "ab98e234-a7cb-40ff-a19f-17471d03882d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "84f903bf-3caf-4440-ac1a-741c55a0aca7", + "58b662ad-0090-41ce-8f24-be8aa92f3ce0", + "85e3a21a-afa9-4e45-83ba-e5de67fcdbd1", + "f95dc63c-b9b9-4f6b-8d76-90c55b41a48c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3630, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5b5bea66-8533-4452-926d-eff58ca65ec7", + "title": "Sort shop Urls table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_shop_url' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Sort shop Urls table should sort by 'id_shop_url' 'down' and check result", + "timedOut": false, + "duration": 1214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, url_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06cb01b1-0e33-45ca-aebb-50844fdf26bc", + "parentUUID": "5b5bea66-8533-4452-926d-eff58ca65ec7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 's!name' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Sort shop Urls table should sort by 's!name' 'up' and check result", + "timedOut": false, + "duration": 1229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_sortByShopNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, url_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2d8871b-01a3-4ebc-8665-4d3bf12b7f18", + "parentUUID": "5b5bea66-8533-4452-926d-eff58ca65ec7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 's!name' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Sort shop Urls table should sort by 's!name' 'down' and check result", + "timedOut": false, + "duration": 1301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_sortByShopNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, url_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1560f6b6-f36b-40ff-9141-5575d029231d", + "parentUUID": "5b5bea66-8533-4452-926d-eff58ca65ec7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'url' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Sort shop Urls table should sort by 'url' 'up' and check result", + "timedOut": false, + "duration": 1271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_sortByUrlAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, url_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5494c86-4f81-4d59-81fa-c58a6928bc66", + "parentUUID": "5b5bea66-8533-4452-926d-eff58ca65ec7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'url' 'down' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Sort shop Urls table should sort by 'url' 'down' and check result", + "timedOut": false, + "duration": 1161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_sortByUrlDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, url_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b35bc9a-3eab-441f-92db-ee6664b85e2e", + "parentUUID": "5b5bea66-8533-4452-926d-eff58ca65ec7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_shop_url' 'up' and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Sort shop Urls table should sort by 'id_shop_url' 'up' and check result", + "timedOut": false, + "duration": 1250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, url_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c6a5c3a-1d4e-4497-91f2-4dcc0b48d847", + "parentUUID": "5b5bea66-8533-4452-926d-eff58ca65ec7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "06cb01b1-0e33-45ca-aebb-50844fdf26bc", + "f2d8871b-01a3-4ebc-8665-4d3bf12b7f18", + "1560f6b6-f36b-40ff-9141-5575d029231d", + "f5494c86-4f81-4d59-81fa-c58a6928bc66", + "8b35bc9a-3eab-441f-92db-ee6664b85e2e", + "2c6a5c3a-1d4e-4497-91f2-4dcc0b48d847" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7426, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "title": "delete all shops created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the shop url contains 'ToDelete1Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete1Shop'", + "timedOut": false, + "duration": 2227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl0_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b7d8460-adfb-4990-b39e-330c3b684382", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete2Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete2Shop'", + "timedOut": false, + "duration": 2172, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl1_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35f9a924-04f4-4679-b076-099c39d560bc", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete3Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete3Shop'", + "timedOut": false, + "duration": 2182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl2_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3851a738-0c8e-4aad-9dc0-56b415957169", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete4Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete4Shop'", + "timedOut": false, + "duration": 2202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl3_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2de0cd55-0f23-49e5-964e-8275c41090ee", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete5Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete5Shop'", + "timedOut": false, + "duration": 2202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl4_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e76e81b9-a711-4498-a3cd-ba89742a4d07", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete6Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete6Shop'", + "timedOut": false, + "duration": 2175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl5_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1029e25f-ba80-4cd1-87e0-b1f6617fdd29", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete7Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete7Shop'", + "timedOut": false, + "duration": 2170, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl6_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1bd01a0-c86c-4dd9-bd46-f4d12fbc1b51", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete8Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete8Shop'", + "timedOut": false, + "duration": 2245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl7_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "911ff616-759a-4185-8a15-719736e92cfa", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete9Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete9Shop'", + "timedOut": false, + "duration": 2165, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl8_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd6d2f45-9e93-467a-9aec-7736b153a7d5", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete10Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete10Shop'", + "timedOut": false, + "duration": 2171, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl9_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2a8a514-5c60-41f9-aa97-8aacb474013c", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete11Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete11Shop'", + "timedOut": false, + "duration": 2193, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl10_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8af12930-fad2-4393-b04b-e82eb7d8ebd3", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete12Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete12Shop'", + "timedOut": false, + "duration": 2203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl11_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c43f125-a58a-47ff-8d16-edfe6ceb4592", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete13Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete13Shop'", + "timedOut": false, + "duration": 2205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl12_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3045823-7ff6-402e-999e-b08b144ed27e", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete14Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete14Shop'", + "timedOut": false, + "duration": 2197, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl13_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94475d16-4464-468e-a7c4-067c3ffee599", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete15Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete15Shop'", + "timedOut": false, + "duration": 2273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl14_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28b061f0-46be-4a5d-9e97-ca690794daaa", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete16Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete16Shop'", + "timedOut": false, + "duration": 2210, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl15_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb474853-be0f-4110-9167-9b5ce7536a15", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete17Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete17Shop'", + "timedOut": false, + "duration": 2206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl16_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f6a97a3-9dd2-4d5d-a229-94843758e6a5", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete18Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete18Shop'", + "timedOut": false, + "duration": 2193, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl17_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e50c554-e0a0-4973-8cd3-b91406888fbb", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete19Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete19Shop'", + "timedOut": false, + "duration": 2198, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl18_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "124abfa1-71eb-41d9-a2d4-9a370a629ac0", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the shop url contains 'ToDelete20Shop'", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls delete all shops created should delete the shop url contains 'ToDelete20Shop'", + "timedOut": false, + "duration": 2185, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_deleteShopUrl19_\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteShopUrl\".concat(index, \"_\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', \"ToDelete\".concat(index + 1, \"Shop\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92e17c5e-e6a0-4944-b72e-4cd9aa044a2d", + "parentUUID": "4dbd0189-32ff-4f05-a10e-4143d35325fb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b7d8460-adfb-4990-b39e-330c3b684382", + "35f9a924-04f4-4679-b076-099c39d560bc", + "3851a738-0c8e-4aad-9dc0-56b415957169", + "2de0cd55-0f23-49e5-964e-8275c41090ee", + "e76e81b9-a711-4498-a3cd-ba89742a4d07", + "1029e25f-ba80-4cd1-87e0-b1f6617fdd29", + "a1bd01a0-c86c-4dd9-bd46-f4d12fbc1b51", + "911ff616-759a-4185-8a15-719736e92cfa", + "fd6d2f45-9e93-467a-9aec-7736b153a7d5", + "b2a8a514-5c60-41f9-aa97-8aacb474013c", + "8af12930-fad2-4393-b04b-e82eb7d8ebd3", + "0c43f125-a58a-47ff-8d16-edfe6ceb4592", + "c3045823-7ff6-402e-999e-b08b144ed27e", + "94475d16-4464-468e-a7c4-067c3ffee599", + "28b061f0-46be-4a5d-9e97-ca690794daaa", + "bb474853-be0f-4110-9167-9b5ce7536a15", + "3f6a97a3-9dd2-4d5d-a229-94843758e6a5", + "9e50c554-e0a0-4973-8cd3-b91406888fbb", + "124abfa1-71eb-41d9-a2d4-9a370a629ac0", + "92e17c5e-e6a0-4944-b72e-4cd9aa044a2d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 43974, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "feb9612a-7bfb-45b9-a4a0-2fe2c2d5d0b5", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/05_filterSortAndPaginationShopUrls.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47f2b6d0-9741-4a75-a5e4-ef259d1f2eed", + "parentUUID": "feb9612a-7bfb-45b9-a4a0-2fe2c2d5d0b5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "67d1bcf4-c9ad-43b7-8d77-9a91958af6a1", + "parentUUID": "feb9612a-7bfb-45b9-a4a0-2fe2c2d5d0b5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Disable the multistore should login in BO", + "timedOut": false, + "duration": 2215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69098960-563d-44c7-a622-5585801c3569", + "parentUUID": "feb9612a-7bfb-45b9-a4a0-2fe2c2d5d0b5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a680e45-2f8d-49f8-9bed-e71317d33dda", + "parentUUID": "feb9612a-7bfb-45b9-a4a0-2fe2c2d5d0b5", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Filter, sort and pagination shop Urls Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_filterSortAndPaginationShopUrls_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa53846c-6657-42a2-965f-2aab4a99d1d2", + "parentUUID": "feb9612a-7bfb-45b9-a4a0-2fe2c2d5d0b5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "69098960-563d-44c7-a622-5585801c3569", + "2a680e45-2f8d-49f8-9bed-e71317d33dda", + "aa53846c-6657-42a2-965f-2aab4a99d1d2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7510, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0ed067b8-266f-456c-815f-5283c91c8724", + "title": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls \"before all\" hook in \"BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "377d31be-31ae-444a-8248-aa4bd44d9b25", + "parentUUID": "0ed067b8-266f-456c-815f-5283c91c8724", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls \"after all\" hook in \"BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "be163921-f542-4ff5-8ec0-7f6305100162", + "parentUUID": "0ed067b8-266f-456c-815f-5283c91c8724", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "bd13abe1-2321-4d40-bad1-e56bcae29fc2", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d9d5986-6929-47ec-9965-1da889cbeba5", + "parentUUID": "bd13abe1-2321-4d40-bad1-e56bcae29fc2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8774f831-00f2-4264-94f2-0f4f434a2134", + "parentUUID": "bd13abe1-2321-4d40-bad1-e56bcae29fc2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Enable the multistore should login in BO", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27921672-62e1-4717-be70-024d893fe7d5", + "parentUUID": "bd13abe1-2321-4d40-bad1-e56bcae29fc2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7e47a0e-fba3-48db-8960-df5e8114b1f8", + "parentUUID": "bd13abe1-2321-4d40-bad1-e56bcae29fc2", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 411, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68b1d95a-f1a2-4a20-994a-3e4c0499247a", + "parentUUID": "bd13abe1-2321-4d40-bad1-e56bcae29fc2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "27921672-62e1-4717-be70-024d893fe7d5", + "d7e47a0e-fba3-48db-8960-df5e8114b1f8", + "68b1d95a-f1a2-4a20-994a-3e4c0499247a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7266, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cb28bdc0-33ad-47c7-8897-c4e0e30dfce8", + "title": "Go to 'Multistore' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Go to 'Multistore' page should login in BO", + "timedOut": false, + "duration": 2132, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc6fa473-3fb7-411b-8e4f-5ec6bcd49239", + "parentUUID": "cb28bdc0-33ad-47c7-8897-c4e0e30dfce8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Go to 'Multistore' page should go to 'Advanced parameters > Multistore' page", + "timedOut": false, + "duration": 3694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df531ed6-c901-4f08-9ac9-973eb9094505", + "parentUUID": "cb28bdc0-33ad-47c7-8897-c4e0e30dfce8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to shop Urls page", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Go to 'Multistore' page should go to shop Urls page", + "timedOut": false, + "duration": 792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_goToShopUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToShopURLPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59e75da0-490b-4b12-b5c5-92e5ee190864", + "parentUUID": "cb28bdc0-33ad-47c7-8897-c4e0e30dfce8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get the number of shop urls", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Go to 'Multistore' page should reset filter and get the number of shop urls", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShopUrls = _a.sent();\n (0, chai_1.expect)(numberOfShopUrls).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "027c118d-3c0f-491a-8ef5-3d74551d28cb", + "parentUUID": "cb28bdc0-33ad-47c7-8897-c4e0e30dfce8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cc6fa473-3fb7-411b-8e4f-5ec6bcd49239", + "df531ed6-c901-4f08-9ac9-973eb9094505", + "59e75da0-490b-4b12-b5c5-92e5ee190864", + "027c118d-3c0f-491a-8ef5-3d74551d28cb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6636, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d0d2ea8d-adb4-4027-8118-c5375824c2c8", + "title": "Create shop Url", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Create shop Url should go to add shop URL", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_goToAddURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78fa5eee-3f12-4234-93b8-990aa6949f0d", + "parentUUID": "d0d2ea8d-adb4-4027-8118-c5375824c2c8", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Create shop Url should create shop URL", + "timedOut": false, + "duration": 1267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_addURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, ShopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e064435a-dffe-4328-973e-0cee3eb84a27", + "parentUUID": "d0d2ea8d-adb4-4027-8118-c5375824c2c8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "78fa5eee-3f12-4234-93b8-990aa6949f0d", + "e064435a-dffe-4328-973e-0cee3eb84a27" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2142, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "565148df-21af-4ef4-9e2d-69654a5433e7", + "title": "Quick edit shop url", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Quick edit shop url should filter list by URL", + "timedOut": false, + "duration": 955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_filterForQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShopUrlsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', ShopUrlData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopUrlsAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfShopUrlsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, url_1.default.getTextColumn(page, i, 'url')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(ShopUrlData.name);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82962869-fe8b-4d30-81a2-2d7a8f059dc6", + "parentUUID": "565148df-21af-4ef4-9e2d-69654a5433e7", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the column 'Enabled'", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Quick edit shop url should disable the column 'Enabled'", + "timedOut": false, + "duration": 556, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_disable_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.setStatus(page, 1, test.args.column, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n if (test.args.columnName === 'Enabled') {\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successUpdateMessage);\n }\n else {\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successfulUpdateMessage);\n }\n _a.label = 4;\n case 4: return [4 /*yield*/, url_1.default.getStatus(page, 1, test.args.column)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a3a9138-fdfb-47e8-b3b4-6206f4f6a64c", + "parentUUID": "565148df-21af-4ef4-9e2d-69654a5433e7", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the column 'Enabled'", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Quick edit shop url should enable the column 'Enabled'", + "timedOut": false, + "duration": 475, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_enable_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.setStatus(page, 1, test.args.column, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n if (test.args.columnName === 'Enabled') {\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successUpdateMessage);\n }\n else {\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successfulUpdateMessage);\n }\n _a.label = 4;\n case 4: return [4 /*yield*/, url_1.default.getStatus(page, 1, test.args.column)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bef104d5-c7f8-4b90-b0aa-3e78b6d00b25", + "parentUUID": "565148df-21af-4ef4-9e2d-69654a5433e7", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the column 'Is it the mail URL'", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Quick edit shop url should enable the column 'Is it the mail URL'", + "timedOut": false, + "duration": 703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_enable_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.setStatus(page, 1, test.args.column, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n if (test.args.columnName === 'Enabled') {\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successUpdateMessage);\n }\n else {\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successfulUpdateMessage);\n }\n _a.label = 4;\n case 4: return [4 /*yield*/, url_1.default.getStatus(page, 1, test.args.column)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14f5c441-2cf6-4ac3-abb0-1771b92327b1", + "parentUUID": "565148df-21af-4ef4-9e2d-69654a5433e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Quick edit shop url should reset all filters", + "timedOut": false, + "duration": 2884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_resetFilterAfterEnableDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShopUrlsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterEnableDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShopUrlsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShopUrlsAfterReset).to.be.equal(numberOfShopUrls + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01f05004-56c0-4619-b22a-a5617c453e32", + "parentUUID": "565148df-21af-4ef4-9e2d-69654a5433e7", + "isHook": false, + "skipped": false + }, + { + "title": "should set the default URL as the main URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Quick edit shop url should set the default URL as the main URL", + "timedOut": false, + "duration": 545, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_setDefaultMainURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setDefaultMainURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.setStatus(page, 1, '5', true)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successfulUpdateMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, url_1.default.getStatus(page, 1, '5')];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf1aca8f-fad1-483f-88d2-c98837ed0650", + "parentUUID": "565148df-21af-4ef4-9e2d-69654a5433e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "82962869-fe8b-4d30-81a2-2d7a8f059dc6", + "0a3a9138-fdfb-47e8-b3b4-6206f4f6a64c", + "bef104d5-c7f8-4b90-b0aa-3e78b6d00b25", + "14f5c441-2cf6-4ac3-abb0-1771b92327b1", + "01f05004-56c0-4619-b22a-a5617c453e32", + "cf1aca8f-fad1-483f-88d2-c98837ed0650" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6118, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c66ede40-fbc1-4396-966e-4afa8affbae2", + "title": "Bulk actions shop url", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Bulk actions shop url should filter list by URL", + "timedOut": false, + "duration": 971, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_filterForBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShopUrlsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', ShopUrlData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShopUrlsAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfShopUrlsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, url_1.default.getTextColumn(page, i, 'url')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(ShopUrlData.name);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4681a777-8d9a-40f7-8c14-2f921a5d8769", + "parentUUID": "c66ede40-fbc1-4396-966e-4afa8affbae2", + "isHook": false, + "skipped": false + }, + { + "title": "should disable shop url with Bulk Actions and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Bulk actions shop url should disable shop url with Bulk Actions and check result", + "timedOut": false, + "duration": 563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_disableShopUrl\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.status, \"ShopUrl\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.bulkSetStatus(page, test.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Status is not updated!').to.contains(url_1.default.successUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eff3b871-8015-49bf-b541-736eca19597f", + "parentUUID": "c66ede40-fbc1-4396-966e-4afa8affbae2", + "isHook": false, + "skipped": false + }, + { + "title": "should enable shop url with Bulk Actions and check result", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Bulk actions shop url should enable shop url with Bulk Actions and check result", + "timedOut": false, + "duration": 1134, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_enableShopUrl\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.status, \"ShopUrl\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.bulkSetStatus(page, test.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Status is not updated!').to.contains(url_1.default.successUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0186cc86-6d99-47ed-a252-a423bc29d566", + "parentUUID": "c66ede40-fbc1-4396-966e-4afa8affbae2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Bulk actions shop url should reset all filters", + "timedOut": false, + "duration": 2868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_resetFilterAfterBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShopUrlsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterBulkActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShopUrlsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShopUrlsAfterReset).to.be.equal(numberOfShopUrls + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "716ae6f2-f781-4dae-8585-77cdd8a821f6", + "parentUUID": "c66ede40-fbc1-4396-966e-4afa8affbae2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4681a777-8d9a-40f7-8c14-2f921a5d8769", + "eff3b871-8015-49bf-b541-736eca19597f", + "0186cc86-6d99-47ed-a252-a423bc29d566", + "716ae6f2-f781-4dae-8585-77cdd8a821f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5536, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4d64153e-aec8-4a7d-a765-5cef76bac180", + "title": "delete the created shop url", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the shop url contains 'ToDelete'", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls delete the created shop url should delete the shop url contains 'ToDelete'", + "timedOut": false, + "duration": 2254, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_deleteShopUrl\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteShopUrl', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.filterTable(page, 'input', 'url', ShopUrlData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(url_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c9ab17c-3696-40e9-9e64-bd4f05ee5d26", + "parentUUID": "4d64153e-aec8-4a7d-a765-5cef76bac180", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c9ab17c-3696-40e9-9e64-bd4f05ee5d26" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2254, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "550abeb4-4428-4cee-8e27-9fe8272d3bbe", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/06_quickEditAndBulkActionsShopUrls.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f89990c-ff13-4833-8a74-18643b0ffb8c", + "parentUUID": "550abeb4-4428-4cee-8e27-9fe8272d3bbe", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e7d63c42-a420-445b-a6dc-c55f41f2ec1b", + "parentUUID": "550abeb4-4428-4cee-8e27-9fe8272d3bbe", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Disable the multistore should login in BO", + "timedOut": false, + "duration": 2122, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7dfb4f50-0652-4469-9d5d-0bb836311e31", + "parentUUID": "550abeb4-4428-4cee-8e27-9fe8272d3bbe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56429a17-4785-4d61-aa4d-f09f78e32f73", + "parentUUID": "550abeb4-4428-4cee-8e27-9fe8272d3bbe", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Quick edit and bulk actions shop Urls Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_quickEditAndBulkActionsShopUrls_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfb3e597-b8f2-4612-8708-f2047181cd42", + "parentUUID": "550abeb4-4428-4cee-8e27-9fe8272d3bbe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7dfb4f50-0652-4469-9d5d-0bb836311e31", + "56429a17-4785-4d61-aa4d-f09f78e32f73", + "bfb3e597-b8f2-4612-8708-f2047181cd42" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7372, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "560c8c38-1829-4504-9684-625dc67fdeb4", + "title": "BO - Advanced Parameters - Multistore : Edit URL options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Multistore : Edit URL options\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options \"before all\" hook in \"BO - Advanced Parameters - Multistore : Edit URL options\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e3e0b23-9732-4fa1-8715-920883d29d20", + "parentUUID": "560c8c38-1829-4504-9684-625dc67fdeb4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Multistore : Edit URL options\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options \"after all\" hook in \"BO - Advanced Parameters - Multistore : Edit URL options\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "af7cfbd1-b96f-470d-9657-5726b9e0c92d", + "parentUUID": "560c8c38-1829-4504-9684-625dc67fdeb4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "1311666c-d962-4f21-97ce-9aee83d98cc1", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "239bea19-4063-49d3-a474-87b824f5ec3c", + "parentUUID": "1311666c-d962-4f21-97ce-9aee83d98cc1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8174c053-06a2-4587-a2a6-84c211a9ae25", + "parentUUID": "1311666c-d962-4f21-97ce-9aee83d98cc1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Enable the multistore should login in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db35c096-0d9e-4e7d-bb48-073e5be0a14c", + "parentUUID": "1311666c-d962-4f21-97ce-9aee83d98cc1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76649a53-461c-4c08-b343-f0ae2dd594ef", + "parentUUID": "1311666c-d962-4f21-97ce-9aee83d98cc1", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6d70f68-af0c-48cf-a7c2-860d1f3ddb3e", + "parentUUID": "1311666c-d962-4f21-97ce-9aee83d98cc1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db35c096-0d9e-4e7d-bb48-073e5be0a14c", + "76649a53-461c-4c08-b343-f0ae2dd594ef", + "b6d70f68-af0c-48cf-a7c2-860d1f3ddb3e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7245, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3ad7466c-5508-43c5-8314-23347e8eb535", + "title": "Go to 'Multistore' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Go to 'Multistore' page should login in BO", + "timedOut": false, + "duration": 2086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c0802f3-f5b7-46af-b381-611d73060a29", + "parentUUID": "3ad7466c-5508-43c5-8314-23347e8eb535", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Go to 'Multistore' page should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 3684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7451023-e1b9-4293-97ed-2c20c2d3e0c4", + "parentUUID": "3ad7466c-5508-43c5-8314-23347e8eb535", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Urls' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Go to 'Multistore' page should go to 'Shop Urls' page", + "timedOut": false, + "duration": 777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_goToShopUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToShopURLPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df3a5b79-406a-4b87-b8c7-fbc34c34535d", + "parentUUID": "3ad7466c-5508-43c5-8314-23347e8eb535", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0c0802f3-f5b7-46af-b381-611d73060a29", + "f7451023-e1b9-4293-97ed-2c20c2d3e0c4", + "df3a5b79-406a-4b87-b8c7-fbc34c34535d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6547, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9c33d565-2487-4023-9be4-03ed87871ac4", + "title": "Edit URL options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit the first shop URL page", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Edit URL options should go to edit the first shop URL page", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_goToEditShopUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditShopUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToEditShopURLPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba6ed192-4386-4d4b-8b03-3dcb7691189b", + "parentUUID": "9c33d565-2487-4023-9be4-03ed87871ac4", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the main URL and check the error message", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Edit URL options should disable the main URL and check the error message", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_disableMainURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableMainURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setMainURL(page, 'off')];\n case 2:\n errorAlertMessage = _a.sent();\n (0, chai_1.expect)(errorAlertMessage).to.contains(addURL_1.default.errorDisableMainURLMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7d723ea-7e68-4cfd-bfe8-110a87dee92b", + "parentUUID": "9c33d565-2487-4023-9be4-03ed87871ac4", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the shop and check the error message", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Edit URL options should disable the shop and check the error message", + "timedOut": false, + "duration": 351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_disableShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setShopStatus(page, 'off')];\n case 2:\n errorAlertMessage = _a.sent();\n (0, chai_1.expect)(errorAlertMessage).to.contains(addURL_1.default.errorDisableMainURLMessage)\n .and.to.contains(addURL_1.default.ErrorDisableShopMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fa1c4af-67d5-481b-a1c6-7124c389b515", + "parentUUID": "9c33d565-2487-4023-9be4-03ed87871ac4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Edit URL options should go to add shop URL", + "timedOut": false, + "duration": 864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_goToAddURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.goToAddNewUrl(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b82fd67b-09f3-4d27-b0ef-761eabcd5fe9", + "parentUUID": "9c33d565-2487-4023-9be4-03ed87871ac4", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Edit URL options should create shop URL", + "timedOut": false, + "duration": 1259, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_addURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, ShopUrlData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7652953d-2232-4625-823b-82a714a93e5b", + "parentUUID": "9c33d565-2487-4023-9be4-03ed87871ac4", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the shop URL for the created url", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Edit URL options should disable the shop URL for the created url", + "timedOut": false, + "duration": 468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_disableShopURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var resultMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableShopURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.setStatus(page, 2, '6', false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0546f4ec-e755-4590-9457-b9102712027a", + "parentUUID": "9c33d565-2487-4023-9be4-03ed87871ac4", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the main URL for the created url", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Edit URL options should enable the main URL for the created url", + "timedOut": false, + "duration": 714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_enableMainURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableMainURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.setStatus(page, 2, '5', true)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successfulUpdateMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, url_1.default.getStatus(page, 1, '6')];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42286239-ef98-4546-8eb1-fc6770d6e964", + "parentUUID": "9c33d565-2487-4023-9be4-03ed87871ac4", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the main URL for the first url", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Edit URL options should enable the main URL for the first url", + "timedOut": false, + "duration": 485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_disableSHopURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var resultMessage, mainStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableSHopURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.setStatus(page, 1, '5', true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, url_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(url_1.default.successfulUpdateMessage);\n return [4 /*yield*/, url_1.default.getStatus(page, 1, '6')];\n case 4:\n mainStatus = _a.sent();\n (0, chai_1.expect)(mainStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94ceca9b-5efe-4cfa-a900-aa35b0b510fb", + "parentUUID": "9c33d565-2487-4023-9be4-03ed87871ac4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ba6ed192-4386-4d4b-8b03-3dcb7691189b", + "b7d723ea-7e68-4cfd-bfe8-110a87dee92b", + "9fa1c4af-67d5-481b-a1c6-7124c389b515", + "b82fd67b-09f3-4d27-b0ef-761eabcd5fe9", + "7652953d-2232-4625-823b-82a714a93e5b", + "0546f4ec-e755-4590-9457-b9102712027a", + "42286239-ef98-4546-8eb1-fc6770d6e964", + "94ceca9b-5efe-4cfa-a900-aa35b0b510fb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5964, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2ce9f882-bd12-4995-ae80-16fe4ab421c6", + "title": "POST-TEST: Delete created shop URL", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the created shop url", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options POST-TEST: Delete created shop URL should delete the created shop url", + "timedOut": false, + "duration": 1279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_deleteShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, url_1.default.deleteShopURL(page, 2)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f672f22-5af0-4fd6-a8ed-5251b22bd333", + "parentUUID": "2ce9f882-bd12-4995-ae80-16fe4ab421c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3f672f22-5af0-4fd6-a8ed-5251b22bd333" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1279, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "743ffe6c-4b05-471b-bdb5-146454a82f03", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/07_editUrlOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d3f7c7b-409a-4dd1-b39b-7e57c3727496", + "parentUUID": "743ffe6c-4b05-471b-bdb5-146454a82f03", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e7a19516-69e1-487a-a665-1eed48239235", + "parentUUID": "743ffe6c-4b05-471b-bdb5-146454a82f03", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Disable the multistore should login in BO", + "timedOut": false, + "duration": 2142, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0492c664-adde-4e15-8f41-143368a872ac", + "parentUUID": "743ffe6c-4b05-471b-bdb5-146454a82f03", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cec83949-dd9b-44b5-956b-9584f4caff78", + "parentUUID": "743ffe6c-4b05-471b-bdb5-146454a82f03", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Edit URL options Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 389, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_editUrlOptions_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90201f80-5abe-4437-b967-5cf7b553d6f9", + "parentUUID": "743ffe6c-4b05-471b-bdb5-146454a82f03", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0492c664-adde-4e15-8f41-143368a872ac", + "cec83949-dd9b-44b5-956b-9584f4caff78", + "90201f80-5abe-4437-b967-5cf7b553d6f9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7397, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5ff41340-3764-400d-9731-3143f4e7b71b", + "title": "BO - Advanced Parameters - Multistore : Multistore options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameters - Multistore : Multistore options\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options \"before all\" hook in \"BO - Advanced Parameters - Multistore : Multistore options\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab2e2855-9290-487f-802e-c890d4417c3b", + "parentUUID": "5ff41340-3764-400d-9731-3143f4e7b71b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameters - Multistore : Multistore options\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options \"after all\" hook in \"BO - Advanced Parameters - Multistore : Multistore options\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4a0370e1-d8db-401f-9df0-22507b70782d", + "parentUUID": "5ff41340-3764-400d-9731-3143f4e7b71b", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "32589e45-56e9-4a12-8e4d-0a9e9b003627", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7eecd4e-8eaa-4278-a818-72f53923fe31", + "parentUUID": "32589e45-56e9-4a12-8e4d-0a9e9b003627", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "07e47157-e63c-443b-b68a-851817582451", + "parentUUID": "32589e45-56e9-4a12-8e4d-0a9e9b003627", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Enable the multistore should login in BO", + "timedOut": false, + "duration": 2073, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "745ffe07-425d-4b54-b699-f7d689c84783", + "parentUUID": "32589e45-56e9-4a12-8e4d-0a9e9b003627", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8142729c-efd4-4100-8709-18d738a6924d", + "parentUUID": "32589e45-56e9-4a12-8e4d-0a9e9b003627", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39333eae-05c0-4fa6-bf47-5c459c14808a", + "parentUUID": "32589e45-56e9-4a12-8e4d-0a9e9b003627", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "745ffe07-425d-4b54-b699-f7d689c84783", + "8142729c-efd4-4100-8709-18d738a6924d", + "39333eae-05c0-4fa6-bf47-5c459c14808a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7340, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "23dcea33-272d-4182-9093-2ed9fd615c59", + "title": "PRE-TEST : Create new store and set URL", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options PRE-TEST : Create new store and set URL should login in BO", + "timedOut": false, + "duration": 2036, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6786e2b-8b74-4256-865f-7e8067e8ab65", + "parentUUID": "23dcea33-272d-4182-9093-2ed9fd615c59", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options PRE-TEST : Create new store and set URL should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 3686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "065c4401-ad2c-4ed0-9cbc-f4f090b4b488", + "parentUUID": "23dcea33-272d-4182-9093-2ed9fd615c59", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options PRE-TEST : Create new store and set URL should go to add new shop page", + "timedOut": false, + "duration": 983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_goToAddNewShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "074226f9-7018-4221-b60c-6c680873321f", + "parentUUID": "23dcea33-272d-4182-9093-2ed9fd615c59", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options PRE-TEST : Create new store and set URL should create shop", + "timedOut": false, + "duration": 1393, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_createShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, createShopData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb19bb49-d215-48d5-b69d-a6dc8205ce8c", + "parentUUID": "23dcea33-272d-4182-9093-2ed9fd615c59", + "isHook": false, + "skipped": false + }, + { + "title": "should get the id of the new shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options PRE-TEST : Create new store and set URL should get the id of the new shop", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_getShopID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShops, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getShopID', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, shop_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfShops = _b.sent();\n (0, chai_1.expect)(numberOfShops).to.be.above(0);\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', createShopData.name)];\n case 3:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, shop_1.default.getTextColumn(page, 1, 'id_shop')];\n case 4:\n shopID = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bcb14d7-ccec-48e0-98dc-de0fb176ef5e", + "parentUUID": "23dcea33-272d-4182-9093-2ed9fd615c59", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options PRE-TEST : Create new store and set URL should go to add URL", + "timedOut": false, + "duration": 1790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_goToAddURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', createShopData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToSetURL(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "261f332e-58ef-49ac-80c9-0b34c77a7d60", + "parentUUID": "23dcea33-272d-4182-9093-2ed9fd615c59", + "isHook": false, + "skipped": false + }, + { + "title": "should set URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options PRE-TEST : Create new store and set URL should set URL", + "timedOut": false, + "duration": 1269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_addURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, createShopData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eacfc04c-87a2-4740-a108-d19f7a7b2858", + "parentUUID": "23dcea33-272d-4182-9093-2ed9fd615c59", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d6786e2b-8b74-4256-865f-7e8067e8ab65", + "065c4401-ad2c-4ed0-9cbc-f4f090b4b488", + "074226f9-7018-4221-b60c-6c680873321f", + "fb19bb49-d215-48d5-b69d-a6dc8205ce8c", + "6bcb14d7-ccec-48e0-98dc-de0fb176ef5e", + "261f332e-58ef-49ac-80c9-0b34c77a7d60", + "eacfc04c-87a2-4740-a108-d19f7a7b2858" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12085, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "980f5175-1f15-4c77-bd5c-6f8cb5fb6623", + "title": "Multistore options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on Default shop link and select the new store on Default store select", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Multistore options should click on Default shop link and select the new store on Default store select", + "timedOut": false, + "duration": 1752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_selectCreatedStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectCreatedStore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToShopGroupPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.selectDefaultStore(page, createShopData.name)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(multistore_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebe5cad6-b689-4ece-8f11-8efe25467280", + "parentUUID": "980f5175-1f15-4c77-bd5c-6f8cb5fb6623", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Multistore options should go to add new shop page", + "timedOut": false, + "duration": 1102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_goToAddNewShopPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewShopPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "431eb3c4-fce2-492d-b581-96210d84443e", + "parentUUID": "980f5175-1f15-4c77-bd5c-6f8cb5fb6623", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the source store is the created shop in the pre-condition", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Multistore options should check that the source store is the created shop in the pre-condition", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_checkSourceStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sourceStore;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSourceStore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSourceStore(page)];\n case 2:\n sourceStore = _a.sent();\n (0, chai_1.expect)(sourceStore).to.equal(createShopData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "543b5ae6-c472-4f71-b15f-788675ca7e95", + "parentUUID": "980f5175-1f15-4c77-bd5c-6f8cb5fb6623", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Multistore options should create shop", + "timedOut": false, + "duration": 1439, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_createShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, secondCreateShopData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5243a063-cd9f-463f-a3b5-096a57d2e9cd", + "parentUUID": "980f5175-1f15-4c77-bd5c-6f8cb5fb6623", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Multistore options should go to add URL", + "timedOut": false, + "duration": 1825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_goToAddURL2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddURL2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', secondCreateShopData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToSetURL(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ce25dd3-2647-40c3-abf7-7f96edbe9a35", + "parentUUID": "980f5175-1f15-4c77-bd5c-6f8cb5fb6623", + "isHook": false, + "skipped": false + }, + { + "title": "should set URL", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Multistore options should set URL", + "timedOut": false, + "duration": 1266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_addURL2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addURL2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, secondCreateShopData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64ce9ad7-b0b9-4a04-9b26-aa898e6ee386", + "parentUUID": "980f5175-1f15-4c77-bd5c-6f8cb5fb6623", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Default shop link and select the default store on Default store select", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Multistore options should click on Default shop link and select the default store on Default store select", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_selectDefaultStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectDefaultStore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToShopGroupPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.selectDefaultStore(page, global.INSTALL.SHOP_NAME)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(multistore_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e07b88a2-247a-40b1-b1b7-a72b5f3df0d5", + "parentUUID": "980f5175-1f15-4c77-bd5c-6f8cb5fb6623", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ebe5cad6-b689-4ece-8f11-8efe25467280", + "431eb3c4-fce2-492d-b581-96210d84443e", + "543b5ae6-c472-4f71-b15f-788675ca7e95", + "5243a063-cd9f-463f-a3b5-096a57d2e9cd", + "0ce25dd3-2647-40c3-abf7-7f96edbe9a35", + "64ce9ad7-b0b9-4a04-9b26-aa898e6ee386", + "e07b88a2-247a-40b1-b1b7-a72b5f3df0d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9139, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f3750da6-f4c0-4354-ac1d-172804a7bd05", + "title": "POST-TEST: Delete shop", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the created shop page and delete the first created shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options POST-TEST: Delete shop should go to the created shop page and delete the first created shop", + "timedOut": false, + "duration": 2469, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_deleteFirstSHop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFirstSHop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToShopPage(page, shopID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', createShopData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 4:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc09730d-00e1-4a89-a978-edc6baeb891f", + "parentUUID": "f3750da6-f4c0-4354-ac1d-172804a7bd05", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the second created shop", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options POST-TEST: Delete shop should delete the second created shop", + "timedOut": false, + "duration": 1666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_deleteShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', secondCreateShopData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.deleteShop(page, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(shop_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8908d069-2f7b-4fba-a6c9-ac28ba80ebc0", + "parentUUID": "f3750da6-f4c0-4354-ac1d-172804a7bd05", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bc09730d-00e1-4a89-a978-edc6baeb891f", + "8908d069-2f7b-4fba-a6c9-ac28ba80ebc0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4135, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1cd01a86-e1de-4138-aa99-72ee3f494f09", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/10_multistore/08_multistoreOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7193ca3-5b7d-4a2a-92e3-6df2b38afb9a", + "parentUUID": "1cd01a86-e1de-4138-aa99-72ee3f494f09", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0f593109-9e4e-4514-9049-15afa7ebbf20", + "parentUUID": "1cd01a86-e1de-4138-aa99-72ee3f494f09", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Disable the multistore should login in BO", + "timedOut": false, + "duration": 2206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55023c8d-d3bf-472b-bd0a-8d9dc6a68314", + "parentUUID": "1cd01a86-e1de-4138-aa99-72ee3f494f09", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d5b0ddd-ad88-4dc4-984b-94502d0d173a", + "parentUUID": "1cd01a86-e1de-4138-aa99-72ee3f494f09", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Advanced Parameters - Multistore : Multistore options Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_multistore_multistoreOptions_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26a3bc95-fafb-4814-895a-3a4d704de946", + "parentUUID": "1cd01a86-e1de-4138-aa99-72ee3f494f09", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "55023c8d-d3bf-472b-bd0a-8d9dc6a68314", + "7d5b0ddd-ad88-4dc4-984b-94502d0d173a", + "26a3bc95-fafb-4814-895a-3a4d704de946" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7434, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "9c64686e-285b-42d1-83e7-fce03271d599", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1216, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2af329fc-5014-4794-beee-d24453acc052", + "parentUUID": "9c64686e-285b-42d1-83e7-fce03271d599", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 55, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdf6958b-d63c-4805-a9d4-e8897ee8ce4a", + "parentUUID": "9c64686e-285b-42d1-83e7-fce03271d599", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de919c38-9794-4d80-9543-049898afde76", + "parentUUID": "9c64686e-285b-42d1-83e7-fce03271d599", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "98783163-b676-4c34-a17b-7bc716025ae9", + "title": "BO - Advanced Parameter - API Access : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/01_CRUD.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/01_CRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameter - API Access : CRUD\"", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD \"before all\" hook in \"BO - Advanced Parameter - API Access : CRUD\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f5521b3-402b-4e56-8bff-2ff5491df52e", + "parentUUID": "98783163-b676-4c34-a17b-7bc716025ae9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameter - API Access : CRUD\"", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD \"after all\" hook in \"BO - Advanced Parameter - API Access : CRUD\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2395a8c6-3bce-4afa-9583-cb9002ce58f8", + "parentUUID": "98783163-b676-4c34-a17b-7bc716025ae9", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0435c9d0-d6ab-4fc0-9890-ac850f3c02e5", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/01_CRUD.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/01_CRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7ad265b-d6de-4134-985d-e3b7ff1c492e", + "parentUUID": "0435c9d0-d6ab-4fc0-9890-ac850f3c02e5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b92c532d-27ac-4119-be97-966f6f13d2b9", + "parentUUID": "0435c9d0-d6ab-4fc0-9890-ac850f3c02e5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 6710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22435780-110f-4b56-9da2-251797b5f7ab", + "parentUUID": "0435c9d0-d6ab-4fc0-9890-ac850f3c02e5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 5379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da8c3bf0-d502-4986-922a-76fed0a0744c", + "parentUUID": "0435c9d0-d6ab-4fc0-9890-ac850f3c02e5", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 1090, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1825a84-f558-4fa5-a64f-d6fb3357c68e", + "parentUUID": "0435c9d0-d6ab-4fc0-9890-ac850f3c02e5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "22435780-110f-4b56-9da2-251797b5f7ab", + "da8c3bf0-d502-4986-922a-76fed0a0744c", + "a1825a84-f558-4fa5-a64f-d6fb3357c68e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13179, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2a3ec931-5c4a-467e-9614-2b4649638547", + "title": "BO - Advanced Parameter - API Access : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/01_CRUD.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/01_CRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD BO - Advanced Parameter - API Access : CRUD should login in BO", + "timedOut": false, + "duration": 2321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51d1df78-9cb8-4114-945d-075abaf1770b", + "parentUUID": "2a3ec931-5c4a-467e-9614-2b4649638547", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD BO - Advanced Parameter - API Access : CRUD should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "221e8f6e-25c7-402c-90c3-010dc626dd95", + "parentUUID": "2a3ec931-5c4a-467e-9614-2b4649638547", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD BO - Advanced Parameter - API Access : CRUD should check that no records found", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db9f6732-b4f4-4b50-b316-6421d1c00e9d", + "parentUUID": "2a3ec931-5c4a-467e-9614-2b4649638547", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD BO - Advanced Parameter - API Access : CRUD should go to add New API Access page", + "timedOut": false, + "duration": 999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a70ae9e-1578-424d-a4bd-a1e4b244e21b", + "parentUUID": "2a3ec931-5c4a-467e-9614-2b4649638547", + "isHook": false, + "skipped": false + }, + { + "title": "should create API Access", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD BO - Advanced Parameter - API Access : CRUD should create API Access", + "timedOut": false, + "duration": 5460, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, createAPIAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(add_1.default.successfulCreationMessage);\n // Go back to list to get number of elements because creation form redirects to edition form\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 3:\n // Go back to list to get number of elements because creation form redirects to edition form\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f7de26f-1425-4fdb-b59f-d879cfd8d87f", + "parentUUID": "2a3ec931-5c4a-467e-9614-2b4649638547", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit API Access page", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD BO - Advanced Parameter - API Access : CRUD should go to edit API Access page", + "timedOut": false, + "duration": 836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_goToEditAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToEditAPIAccessPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleEdit(createAPIAccess.clientName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb44c198-0fd1-4611-b179-0d51e0da305e", + "parentUUID": "2a3ec931-5c4a-467e-9614-2b4649638547", + "isHook": false, + "skipped": false + }, + { + "title": "should edit API Access", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD BO - Advanced Parameter - API Access : CRUD should edit API Access", + "timedOut": false, + "duration": 4933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_editAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, editAPIAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n // Go back to list to get number of elements because edition form redirects to itself\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 3:\n // Go back to list to get number of elements because edition form redirects to itself\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d1f550c-b15f-4ffe-8266-614ec4405aa4", + "parentUUID": "2a3ec931-5c4a-467e-9614-2b4649638547", + "isHook": false, + "skipped": false + }, + { + "title": "should delete API Access", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD BO - Advanced Parameter - API Access : CRUD should delete API Access", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_deleteAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.deleteAPIAccess(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulDeleteMessage);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fe6b918-295c-4b00-990e-4b5b51b97f98", + "parentUUID": "2a3ec931-5c4a-467e-9614-2b4649638547", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "51d1df78-9cb8-4114-945d-075abaf1770b", + "221e8f6e-25c7-402c-90c3-010dc626dd95", + "db9f6732-b4f4-4b50-b316-6421d1c00e9d", + "1a70ae9e-1578-424d-a4bd-a1e4b244e21b", + "8f7de26f-1425-4fdb-b59f-d879cfd8d87f", + "bb44c198-0fd1-4611-b179-0d51e0da305e", + "9d1f550c-b15f-4ffe-8266-614ec4405aa4", + "7fe6b918-295c-4b00-990e-4b5b51b97f98" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19318, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "16e8704d-2ba2-4aa6-90ea-14dcea631258", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/01_CRUD.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/01_CRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33da9c04-e10d-494b-94f6-b8d6bc1641ec", + "parentUUID": "16e8704d-2ba2-4aa6-90ea-14dcea631258", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "19bb1e69-01d8-40db-9ba4-e2dd631a4a3f", + "parentUUID": "16e8704d-2ba2-4aa6-90ea-14dcea631258", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74750b5b-1043-440d-a116-d032fca873c0", + "parentUUID": "16e8704d-2ba2-4aa6-90ea-14dcea631258", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a143b85-0d04-4306-88ad-b307dfd30c1b", + "parentUUID": "16e8704d-2ba2-4aa6-90ea-14dcea631258", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "BO - Advanced Parameter - API Access : CRUD Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 502, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_CRUD_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b026d244-955d-4be9-8c3c-38acd48c72a0", + "parentUUID": "16e8704d-2ba2-4aa6-90ea-14dcea631258", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74750b5b-1043-440d-a116-d032fca873c0", + "4a143b85-0d04-4306-88ad-b307dfd30c1b", + "b026d244-955d-4be9-8c3c-38acd48c72a0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7151, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "607058f1-62da-4391-b61b-831e216cdb10", + "title": "BO - Advanced Parameter - API Access : Add API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/02_addAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/02_addAPIAccess.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameter - API Access : Add API Access\"", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access \"before all\" hook in \"BO - Advanced Parameter - API Access : Add API Access\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c3e3741-0c0f-4f2c-bae5-58ef03647a57", + "parentUUID": "607058f1-62da-4391-b61b-831e216cdb10", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameter - API Access : Add API Access\"", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access \"after all\" hook in \"BO - Advanced Parameter - API Access : Add API Access\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "04f76ff6-f089-406c-8c18-2604c40d45e0", + "parentUUID": "607058f1-62da-4391-b61b-831e216cdb10", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "61c9087d-7edb-4a8f-9aad-ec303409b4cd", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/02_addAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/02_addAPIAccess.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "565a5f82-3808-4170-a89f-82a804b298b3", + "parentUUID": "61c9087d-7edb-4a8f-9aad-ec303409b4cd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5ba5ab58-45b0-428e-a62b-c2731ea85738", + "parentUUID": "61c9087d-7edb-4a8f-9aad-ec303409b4cd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3022244f-8205-4335-b1f2-48a2206164e6", + "parentUUID": "61c9087d-7edb-4a8f-9aad-ec303409b4cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84070fbb-7c20-47f4-989a-d0859619b7ba", + "parentUUID": "61c9087d-7edb-4a8f-9aad-ec303409b4cd", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0e4244e-1146-4505-b05d-577c3e91184a", + "parentUUID": "61c9087d-7edb-4a8f-9aad-ec303409b4cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3022244f-8205-4335-b1f2-48a2206164e6", + "84070fbb-7c20-47f4-989a-d0859619b7ba", + "f0e4244e-1146-4505-b05d-577c3e91184a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7652, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "title": "BO - Advanced Parameter - API Access : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/02_addAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/02_addAPIAccess.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should login in BO", + "timedOut": false, + "duration": 1781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df2bad63-2a18-40b6-930f-9a3c3819b790", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f95a2dd-5ae0-42c1-997c-f7121a250e29", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should check that no records found", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0bb461a-ed50-4dbc-943f-bc44ea1bba33", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should go to add New API Access page", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3593f624-592f-4918-b14e-0096e1122150", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + }, + { + "title": "should create API Access", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should create API Access", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, createAPIAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, add_1.default.getAlertInfoBlockParagraphContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(add_1.default.apiAccessGeneratedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8933eb2-2e94-4392-9840-6b74d0252adf", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + }, + { + "title": "should copy client secret", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should copy client secret", + "timedOut": false, + "duration": 43, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_copyClientSecret\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var clipboardContent, clientSecret;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'copyClientSecret', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.copyClientSecret(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getClipboardText(page)];\n case 3:\n clipboardContent = _a.sent();\n (0, chai_1.expect)(clipboardContent.length).to.be.gt(0);\n return [4 /*yield*/, add_1.default.getClientSecret(page)];\n case 4:\n clientSecret = _a.sent();\n (0, chai_1.expect)(clientSecret.length).to.be.gt(0);\n (0, chai_1.expect)(clipboardContent).to.be.equal(clientSecret);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b6490cb-8313-4bef-8be6-51eee208d843", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + }, + { + "title": "should reload page", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should reload page", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_reloadPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasAlertBlock;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reloadPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.hasAlertBlock(page)];\n case 2:\n hasAlertBlock = _a.sent();\n (0, chai_1.expect)(hasAlertBlock).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f77ce5c-0646-49a1-a771-caf584bf61e8", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should return to the list", + "timedOut": false, + "duration": 3793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_returnList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnList', baseContext)];\n case 1:\n _a.sent();\n // Go back to list to get number of elements because edition form redirects to itself\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n // Go back to list to get number of elements because edition form redirects to itself\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c81e5699-c74c-48bf-a823-8eaf334e8345", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + }, + { + "title": "should delete API Access", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access BO - Advanced Parameter - API Access : CRUD should delete API Access", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_deleteAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.deleteAPIAccess(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulDeleteMessage);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6efe54fc-7e24-4c27-a6c7-475dc1f8ba1f", + "parentUUID": "264aad76-5c08-492c-a963-b6ea7cdf63e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "df2bad63-2a18-40b6-930f-9a3c3819b790", + "5f95a2dd-5ae0-42c1-997c-f7121a250e29", + "c0bb461a-ed50-4dbc-943f-bc44ea1bba33", + "3593f624-592f-4918-b14e-0096e1122150", + "f8933eb2-2e94-4392-9840-6b74d0252adf", + "9b6490cb-8313-4bef-8be6-51eee208d843", + "9f77ce5c-0646-49a1-a771-caf584bf61e8", + "c81e5699-c74c-48bf-a823-8eaf334e8345", + "6efe54fc-7e24-4c27-a6c7-475dc1f8ba1f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13790, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d9de3ebb-9bbf-4f79-896e-88b7214a712a", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/02_addAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/02_addAPIAccess.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed4ceb64-b519-4cdd-b28b-a91dcc8312a7", + "parentUUID": "d9de3ebb-9bbf-4f79-896e-88b7214a712a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c054bc7f-7e54-4cef-8436-94fb5db2e266", + "parentUUID": "d9de3ebb-9bbf-4f79-896e-88b7214a712a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed48d903-03ad-4d4d-b399-f6af45743bcd", + "parentUUID": "d9de3ebb-9bbf-4f79-896e-88b7214a712a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5711cd07-07f0-4f80-9cb7-90ef503caaa9", + "parentUUID": "d9de3ebb-9bbf-4f79-896e-88b7214a712a", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "BO - Advanced Parameter - API Access : Add API Access Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 497, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_addAPIAccess_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99da3948-cd18-4749-a943-093434ff8d53", + "parentUUID": "d9de3ebb-9bbf-4f79-896e-88b7214a712a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ed48d903-03ad-4d4d-b399-f6af45743bcd", + "5711cd07-07f0-4f80-9cb7-90ef503caaa9", + "99da3948-cd18-4749-a943-093434ff8d53" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7126, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3b3c53c0-1936-4305-a88a-81b5c8367bb7", + "title": "BO - Advanced Parameter - Authorization Server : Edit API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Advanced Parameter - Authorization Server : Edit API Access\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access \"before all\" hook in \"BO - Advanced Parameter - Authorization Server : Edit API Access\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e382fd3c-73b6-4d23-aad3-d999110721bc", + "parentUUID": "3b3c53c0-1936-4305-a88a-81b5c8367bb7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Advanced Parameter - Authorization Server : Edit API Access\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access \"after all\" hook in \"BO - Advanced Parameter - Authorization Server : Edit API Access\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "800fe520-f8b6-4dfc-9594-9ce285100798", + "parentUUID": "3b3c53c0-1936-4305-a88a-81b5c8367bb7", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "12a055e3-ce85-4bf2-abc1-7e2e944ed3fa", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48cadc00-ac24-4bb7-9500-67d2afe8783f", + "parentUUID": "12a055e3-ce85-4bf2-abc1-7e2e944ed3fa", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2a8d4cbb-37a6-4958-a4fe-8ff3204fc30f", + "parentUUID": "12a055e3-ce85-4bf2-abc1-7e2e944ed3fa", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65f58d4c-a37d-483f-817f-2b8048542746", + "parentUUID": "12a055e3-ce85-4bf2-abc1-7e2e944ed3fa", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5e8fa66-5845-4544-bb4e-1a6a86b25a49", + "parentUUID": "12a055e3-ce85-4bf2-abc1-7e2e944ed3fa", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30b4c855-cbfd-461d-ad17-35f5d5f1242b", + "parentUUID": "12a055e3-ce85-4bf2-abc1-7e2e944ed3fa", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "65f58d4c-a37d-483f-817f-2b8048542746", + "c5e8fa66-5845-4544-bb4e-1a6a86b25a49", + "30b4c855-cbfd-461d-ad17-35f5d5f1242b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7664, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8ad3564e-8e10-4049-8849-df109ec21dbf", + "title": "PRE-TEST: Create an API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create an API Access\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access PRE-TEST: Create an API Access \"before all\" hook in \"PRE-TEST: Create an API Access\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "717b26a0-c90d-49b4-82bb-5bb8412f96ab", + "parentUUID": "8ad3564e-8e10-4049-8849-df109ec21dbf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create an API Access\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access PRE-TEST: Create an API Access \"after all\" hook in \"PRE-TEST: Create an API Access\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6bf99825-200b-4a6a-bc04-b24fdbc4593a", + "parentUUID": "8ad3564e-8e10-4049-8849-df109ec21dbf", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access PRE-TEST: Create an API Access should login in BO", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bb90148-f2f6-4247-9f0e-2e13cf99ade5", + "parentUUID": "8ad3564e-8e10-4049-8849-df109ec21dbf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access PRE-TEST: Create an API Access should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_preTest_0_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfAPIAccess = _a.sent();\n (0, chai_1.expect)(numberOfAPIAccess).to.gte(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edea3c39-bf1a-40c2-84d6-fd011e274ed7", + "parentUUID": "8ad3564e-8e10-4049-8849-df109ec21dbf", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access PRE-TEST: Create an API Access should check that no records found", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_preTest_0_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68d55ae9-a574-455b-8fe0-69c47b254d32", + "parentUUID": "8ad3564e-8e10-4049-8849-df109ec21dbf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access PRE-TEST: Create an API Access should go to add New API Access page", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_preTest_0_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e38afb42-0f6b-45b1-8102-ed4a23eb70b6", + "parentUUID": "8ad3564e-8e10-4049-8849-df109ec21dbf", + "isHook": false, + "skipped": false + }, + { + "title": "should create API Access", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access PRE-TEST: Create an API Access should create API Access", + "timedOut": false, + "duration": 5330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_preTest_0_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, apiAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n // Go back to list to get number of elements because creation form redirects to edition form\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 3:\n // Go back to list to get number of elements because creation form redirects to edition form\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(numberOfAPIAccess + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67024f0d-2814-41b5-9780-0ee045b785cb", + "parentUUID": "8ad3564e-8e10-4049-8849-df109ec21dbf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4bb90148-f2f6-4247-9f0e-2e13cf99ade5", + "edea3c39-bf1a-40c2-84d6-fd011e274ed7", + "68d55ae9-a574-455b-8fe0-69c47b254d32", + "e38afb42-0f6b-45b1-8102-ed4a23eb70b6", + "67024f0d-2814-41b5-9780-0ee045b785cb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11763, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "title": "BO - Advanced Parameter - API Access : Edit API Access", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should login in BO", + "timedOut": false, + "duration": 1767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15aac509-efc2-4bfb-9f17-1e12c2d1e46f", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 3847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7793118a-2143-4b4b-b15a-09317c1c960c", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit API Access page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should go to edit API Access page", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_goToEditAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToEditAPIAccessPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleEdit(createAPIAccess.clientName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "627f503f-9d77-4d4a-8ea1-d3ccea5e040e", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should edit API Access", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should edit API Access", + "timedOut": false, + "duration": 1245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_editAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addAPIAccess(page, editAPIAccess)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd73a7fc-a984-4346-808c-b47cb8a23ccf", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check information", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should check information", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_checkInformations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var tokenLifetime, hasScopeHookRead, hasScopeHookWrite;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInformations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getValue(page, 'tokenLifetime')];\n case 2:\n tokenLifetime = _a.sent();\n (0, chai_1.expect)(tokenLifetime).to.be.equal(editAPIAccess.tokenLifetime.toString());\n return [4 /*yield*/, add_1.default.isAPIScopeChecked(page, 'hook_read')];\n case 3:\n hasScopeHookRead = _a.sent();\n (0, chai_1.expect)(hasScopeHookRead).to.be.equal(false);\n return [4 /*yield*/, add_1.default.isAPIScopeChecked(page, 'hook_write')];\n case 4:\n hasScopeHookWrite = _a.sent();\n (0, chai_1.expect)(hasScopeHookWrite).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38a9bb17-4ef5-47bf-a3a0-31a84a7fc6b7", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the application", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should disable the application", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_disableApplication\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableApplication', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setEnabled(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveForm(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d57b8403-d895-4d6f-9694-1be2d8a546f1", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check information", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should check information", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_checkInformationsAfterDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInformationsAfterDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.isEnabled(page)];\n case 2:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7db60bd-f530-4293-b0ef-f70814880af3", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should return to the list", + "timedOut": false, + "duration": 3784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_returnToListAfterDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToListAfterDisable', baseContext)];\n case 1:\n _a.sent();\n // Go back to list to get number of elements because edition form redirects to itself\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n // Go back to list to get number of elements because edition form redirects to itself\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4e0355e-b996-4691-9275-c58ec0775e24", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check list", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should check list", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_checkListAfterDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkListAfterDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getStatus(page, 1)];\n case 2:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7022dac-0e77-4325-997c-27f6c22f66d8", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit API Access page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should go to edit API Access page", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_goToEditAPIAccessPageAfterDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAPIAccessPageAfterDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToEditAPIAccessPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleEdit(editAPIAccess.clientName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d1a3741-79e7-4525-8434-83c429b39ea6", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the application", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should enable the application", + "timedOut": false, + "duration": 987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_enableApplication\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableApplication', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setEnabled(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveForm(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b462447-08eb-4b10-bb0d-3f5089e30a50", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check information", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should check information", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_checkInformationsAfterEnable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInformationsAfterEnable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.isEnabled(page)];\n case 2:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb27e3bf-3ec7-478e-916b-22930b70165f", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should return to the list", + "timedOut": false, + "duration": 3798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_returnToListAfterEnable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToListAfterEnable', baseContext)];\n case 1:\n _a.sent();\n // Go back to list to get number of elements because edition form redirects to itself\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n // Go back to list to get number of elements because edition form redirects to itself\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc2aefe9-2200-47c4-94c7-677a0118cdb5", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check list", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should check list", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_checkListAfterEnable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkListAfterEnable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getStatus(page, 1)];\n case 2:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39b225d4-28b6-46f2-8728-cba7fd9c11ba", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit API Access page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should go to edit API Access page", + "timedOut": false, + "duration": 755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_goToEditAPIAccessPageAfterEnable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAPIAccessPageAfterEnable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToEditAPIAccessPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleEdit(editAPIAccess.clientName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f653a16c-f6ca-4a5d-ad1d-381138fee341", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate the client secret", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should regenerate the client secret", + "timedOut": false, + "duration": 1376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_regenerateClientSecret\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'regenerateClientSecret', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.regenerateClientSecret(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, add_1.default.getAlertInfoBlockParagraphContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(add_1.default.apiAccessRegeneratedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b190ae0-06df-431c-88d3-be0cb7e64970", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should copy client secret", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should copy client secret", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_copyClientSecret\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var clipboardContent, clientSecret;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'copyClientSecret', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.copyClientSecret(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getClipboardText(page)];\n case 3:\n clipboardContent = _a.sent();\n (0, chai_1.expect)(clipboardContent.length).to.be.gt(0);\n return [4 /*yield*/, add_1.default.getClientSecret(page)];\n case 4:\n clientSecret = _a.sent();\n (0, chai_1.expect)(clientSecret.length).to.be.gt(0);\n (0, chai_1.expect)(clipboardContent).to.be.equal(clientSecret);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7ba1407-adb2-43f7-aa40-8a68b5a3002f", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should reload page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should reload page", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_createAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasAlertBlock;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.hasAlertBlock(page)];\n case 2:\n hasAlertBlock = _a.sent();\n (0, chai_1.expect)(hasAlertBlock).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2ec844a-01ba-4022-853c-500c97b26d5b", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should return to the list", + "timedOut": false, + "duration": 3820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_returnToList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToList', baseContext)];\n case 1:\n _a.sent();\n // Go back to list to get number of elements because edition form redirects to itself\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n // Go back to list to get number of elements because edition form redirects to itself\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efc9a15e-c4f8-4df8-90f1-b047316368c6", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete API Access", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access BO - Advanced Parameter - API Access : Edit API Access should delete API Access", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_deleteAPIAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAPIAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.deleteAPIAccess(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulDeleteMessage);\n return [4 /*yield*/, APIAccess_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1461bfc-5ac3-4070-9435-5b3e6c1cfb3e", + "parentUUID": "77d552d4-5ff4-445c-b22e-de26126c6bfb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "15aac509-efc2-4bfb-9f17-1e12c2d1e46f", + "7793118a-2143-4b4b-b15a-09317c1c960c", + "627f503f-9d77-4d4a-8ea1-d3ccea5e040e", + "cd73a7fc-a984-4346-808c-b47cb8a23ccf", + "38a9bb17-4ef5-47bf-a3a0-31a84a7fc6b7", + "d57b8403-d895-4d6f-9694-1be2d8a546f1", + "e7db60bd-f530-4293-b0ef-f70814880af3", + "c4e0355e-b996-4691-9275-c58ec0775e24", + "d7022dac-0e77-4325-997c-27f6c22f66d8", + "5d1a3741-79e7-4525-8434-83c429b39ea6", + "8b462447-08eb-4b10-bb0d-3f5089e30a50", + "cb27e3bf-3ec7-478e-916b-22930b70165f", + "bc2aefe9-2200-47c4-94c7-677a0118cdb5", + "39b225d4-28b6-46f2-8728-cba7fd9c11ba", + "f653a16c-f6ca-4a5d-ad1d-381138fee341", + "1b190ae0-06df-431c-88d3-be0cb7e64970", + "a7ba1407-adb2-43f7-aa40-8a68b5a3002f", + "e2ec844a-01ba-4022-853c-500c97b26d5b", + "efc9a15e-c4f8-4df8-90f1-b047316368c6", + "e1461bfc-5ac3-4070-9435-5b3e6c1cfb3e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25890, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "085ad4ac-b8bb-4d5c-99f9-49e2820c97c2", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "file": "/campaigns/functional/BO/14_advancedParameters/12_authorizationServer/03_editAPIAccess.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cdc3fb1-36cc-4ab1-bb3e-85b4038338f9", + "parentUUID": "085ad4ac-b8bb-4d5c-99f9-49e2820c97c2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a382c7a8-7f0f-4090-9cc8-9c1579151773", + "parentUUID": "085ad4ac-b8bb-4d5c-99f9-49e2820c97c2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e656aa83-bee2-422c-b39e-023d4642bc6f", + "parentUUID": "085ad4ac-b8bb-4d5c-99f9-49e2820c97c2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0686343a-3f75-4cb5-a5ef-d13ebfa67c4b", + "parentUUID": "085ad4ac-b8bb-4d5c-99f9-49e2820c97c2", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "BO - Advanced Parameter - Authorization Server : Edit API Access Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 510, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_advancedParameters_authorizationServer_editAPIAccess_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73fde50f-8791-4efd-9779-c2fec2f052f9", + "parentUUID": "085ad4ac-b8bb-4d5c-99f9-49e2820c97c2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e656aa83-bee2-422c-b39e-023d4642bc6f", + "0686343a-3f75-4cb5-a5ef-d13ebfa67c4b", + "73fde50f-8791-4efd-9779-c2fec2f052f9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7179, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "c7269bb5-f621-4569-96e3-5a7fa4bb8f24", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 447, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ed6a3d3-435d-42d7-88a0-064825f5eeb8", + "parentUUID": "c7269bb5-f621-4569-96e3-5a7fa4bb8f24", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3a954ca-79a2-4c61-8366-1869bac17aab", + "parentUUID": "c7269bb5-f621-4569-96e3-5a7fa4bb8f24", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3998491b-5461-40e3-9839-3ef79929433f", + "parentUUID": "c7269bb5-f621-4569-96e3-5a7fa4bb8f24", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4d25cf17-c097-41bc-a36f-aac011b34379", + "title": "BO - Catalog - Products : Filter in Products Page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/01_filterProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/01_filterProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Filter in Products Page\"", + "fullTitle": "BO - Catalog - Products : Filter in Products Page \"before all\" hook in \"BO - Catalog - Products : Filter in Products Page\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eca4bf7a-b1e2-4d46-8e84-50702b2f602c", + "parentUUID": "4d25cf17-c097-41bc-a36f-aac011b34379", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Filter in Products Page\"", + "fullTitle": "BO - Catalog - Products : Filter in Products Page \"after all\" hook in \"BO - Catalog - Products : Filter in Products Page\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d0fc4d68-2e78-4046-b94d-14b74fa2d1d0", + "parentUUID": "4d25cf17-c097-41bc-a36f-aac011b34379", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "ac850341-94c6-43f1-96e4-326feeea4b22", + "title": "Filter products table : Go to BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/01_filterProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/01_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table : Go to BO should login in BO", + "timedOut": false, + "duration": 6362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "961a9896-d8c3-400a-9e11-ed8ff6e49fb9", + "parentUUID": "ac850341-94c6-43f1-96e4-326feeea4b22", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table : Go to BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f19353fd-03a6-4a9b-a3d8-24af1983ccc1", + "parentUUID": "ac850341-94c6-43f1-96e4-326feeea4b22", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no filter is applied by default", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table : Go to BO should check that no filter is applied by default", + "timedOut": false, + "duration": 1013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_checkNoFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.isResetButtonVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Reset button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5be99243-a724-49f7-be6e-cff2c2de61d9", + "parentUUID": "ac850341-94c6-43f1-96e4-326feeea4b22", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of products", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table : Go to BO should get number of products", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromHeader(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "162afa63-8b95-4b54-ac45-aae70d8f4646", + "parentUUID": "ac850341-94c6-43f1-96e4-326feeea4b22", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "961a9896-d8c3-400a-9e11-ed8ff6e49fb9", + "f19353fd-03a6-4a9b-a3d8-24af1983ccc1", + "5be99243-a724-49f7-be6e-cff2c2de61d9", + "162afa63-8b95-4b54-ac45-aae70d8f4646" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11838, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f9929cb8-9895-4c53-b200-9318f7e19845", + "title": "Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/01_filterProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/01_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by 'id_product' min upper than max and check error message", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'id_product' min upper than max and check error message", + "timedOut": false, + "duration": 1125, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterIDMinUpperMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAlertDangerBlockContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(test.args.alertDanger);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7101523a-9b9a-46b9-83a6-b7c0a974d3dc", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'price' min upper than max and check error message", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'price' min upper than max and check error message", + "timedOut": false, + "duration": 986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterPriceMinUpperMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAlertDangerBlockContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(test.args.alertDanger);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b723b0c2-e98d-4aa2-8e70-8cc7c2b2af3f", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'quantity' min upper than max and check error message", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'quantity' min upper than max and check error message", + "timedOut": false, + "duration": 444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterQuantityMinUpperMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAlertDangerBlockContent(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(test.args.alertDanger);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb9b7e47-46f7-4eb0-a674-1b4f78662970", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'id_product' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'id_product' and check result", + "timedOut": false, + "duration": 1972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterIDMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n case 'toBeTrue':\n (0, chai_1.expect)(textColumn).to.eq(true);\n break;\n default:\n (0, chai_1.expect)(textColumn).to.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a1d568c-a376-4651-898e-cca9bafecd01", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 3026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetAfterfilterIDMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "322a660f-ce77-45dc-a2aa-57adce201fb1", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'product_name' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'product_name' and check result", + "timedOut": false, + "duration": 1285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n case 'toBeTrue':\n (0, chai_1.expect)(textColumn).to.eq(true);\n break;\n default:\n (0, chai_1.expect)(textColumn).to.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dec58297-06cb-4b84-955b-a7879102a966", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetAfterfilterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "761523df-1333-4341-a63b-8c770f17b884", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'reference' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'reference' and check result", + "timedOut": false, + "duration": 486, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n case 'toBeTrue':\n (0, chai_1.expect)(textColumn).to.eq(true);\n break;\n default:\n (0, chai_1.expect)(textColumn).to.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "281744e4-0c8c-4f0c-a42e-1b8c35f747d7", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetAfterfilterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7aad31ba-1685-423f-9ceb-ba263ac70e0b", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'category' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'category' and check result", + "timedOut": false, + "duration": 1278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n case 'toBeTrue':\n (0, chai_1.expect)(textColumn).to.eq(true);\n break;\n default:\n (0, chai_1.expect)(textColumn).to.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ecc4093-971a-4a6c-b925-e458e498818c", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetAfterfilterCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "259fa462-d2fb-47e8-87f2-e17cc4cbe5e1", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'price' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'price' and check result", + "timedOut": false, + "duration": 1298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterPriceMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n case 'toBeTrue':\n (0, chai_1.expect)(textColumn).to.eq(true);\n break;\n default:\n (0, chai_1.expect)(textColumn).to.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88a5757a-c1b6-4db5-a23d-2055f3d2946d", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetAfterfilterPriceMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d92013ba-3068-4e3e-b728-123e0417dd22", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'quantity' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'quantity' and check result", + "timedOut": false, + "duration": 493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterQuantityMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n case 'toBeTrue':\n (0, chai_1.expect)(textColumn).to.eq(true);\n break;\n default:\n (0, chai_1.expect)(textColumn).to.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a49e8c0-f532-4a61-bf02-faabaf6a0671", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 3022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetAfterfilterQuantityMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ff8e6f9-8d6a-4988-8174-0d37213c3c51", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'active' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'active' and check result", + "timedOut": false, + "duration": 498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterStatusYes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n case 'toBeTrue':\n (0, chai_1.expect)(textColumn).to.eq(true);\n break;\n default:\n (0, chai_1.expect)(textColumn).to.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08ec8f9e-515f-4cda-9aa2-7e27a7435922", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetAfterfilterStatusYes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3635c26-0209-412f-8833-51eacc1b39aa", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Status' No and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'Status' No and check result", + "timedOut": false, + "duration": 328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterByStatusNo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByStatusNo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'active', 'No', 'select')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextForEmptyTable(page)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68f6bafd-3878-4ef9-8f50-5ddbe4178734", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetFilterByStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterByStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ccee33f-9272-40b5-9552-5b9c632077cc", + "parentUUID": "f9929cb8-9895-4c53-b200-9318f7e19845", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7101523a-9b9a-46b9-83a6-b7c0a974d3dc", + "b723b0c2-e98d-4aa2-8e70-8cc7c2b2af3f", + "eb9b7e47-46f7-4eb0-a674-1b4f78662970", + "8a1d568c-a376-4651-898e-cca9bafecd01", + "322a660f-ce77-45dc-a2aa-57adce201fb1", + "dec58297-06cb-4b84-955b-a7879102a966", + "761523df-1333-4341-a63b-8c770f17b884", + "281744e4-0c8c-4f0c-a42e-1b8c35f747d7", + "7aad31ba-1685-423f-9ceb-ba263ac70e0b", + "9ecc4093-971a-4a6c-b925-e458e498818c", + "259fa462-d2fb-47e8-87f2-e17cc4cbe5e1", + "88a5757a-c1b6-4db5-a23d-2055f3d2946d", + "d92013ba-3068-4e3e-b728-123e0417dd22", + "7a49e8c0-f532-4a61-bf02-faabaf6a0671", + "8ff8e6f9-8d6a-4988-8174-0d37213c3c51", + "08ec8f9e-515f-4cda-9aa2-7e27a7435922", + "b3635c26-0209-412f-8833-51eacc1b39aa", + "68f6bafd-3878-4ef9-8f50-5ddbe4178734", + "1ccee33f-9272-40b5-9552-5b9c632077cc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 33787, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "title": "Filter products table by : Category and Position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/01_filterProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/01_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by category 'Home'", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : Category and Position should filter by category 'Home'", + "timedOut": false, + "duration": 489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_filterByCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProductsByCategory(page, 'Home')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c33ce75e-0be5-47c2-a124-407e9d619c5a", + "parentUUID": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the filter by category button name", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : Category and Position should check the filter by category button name", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_checkFilterButtonName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var filterButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFilterButtonName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getFilterByCategoryButtonName(page)];\n case 2:\n filterButtonName = _a.sent();\n (0, chai_1.expect)(filterButtonName).to.equal('Filter by categories (Home)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0df50f6-5f04-4f99-8df0-f16829fe8f5b", + "parentUUID": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Clear filter' link is visible", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : Category and Position should check that the 'Clear filter' link is visible", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_checkClearFilterLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkClearFilterLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.isClearFilterLinkVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ec2192d-f8c6-49f2-9a27-696c613fb22b", + "parentUUID": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new column 'Position' is visible", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : Category and Position should check that the new column 'Position' is visible", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_checkPositionColumn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPositionColumn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.isPositionColumnVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffb53490-8b76-4e0f-a93f-1a51541b8a6a", + "parentUUID": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : Category and Position should reset filter", + "timedOut": false, + "duration": 2973, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_resetFilterByPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterByPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc1e1172-933b-4e48-b388-2d7707b194c7", + "parentUUID": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Clear filter' button", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : Category and Position should click on 'Clear filter' button", + "timedOut": false, + "duration": 396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_clickOnClearFilterButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnClearFilterButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnClearFilterLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5282ad5a-d29c-4f96-a5b7-8aa4d4042044", + "parentUUID": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Clear filter' link is not visible", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : Category and Position should check that the 'Clear filter' link is not visible", + "timedOut": false, + "duration": 2002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_checkClearFilterLinkNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkClearFilterLinkNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.isClearFilterLinkVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e310df3-c6bc-419a-8fe2-237f4fe8d6b5", + "parentUUID": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new column 'Position' is not visible", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : Category and Position should check that the new column 'Position' is not visible", + "timedOut": false, + "duration": 2001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterProducts_checkPositionColumnNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPositionColumnNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.isPositionColumnVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "576e4d5c-8468-4bcc-a56b-05feaa4be225", + "parentUUID": "d0bc326b-93ac-45cd-a4ad-712f55c4051c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c33ce75e-0be5-47c2-a124-407e9d619c5a", + "e0df50f6-5f04-4f99-8df0-f16829fe8f5b", + "1ec2192d-f8c6-49f2-9a27-696c613fb22b", + "ffb53490-8b76-4e0f-a93f-1a51541b8a6a", + "cc1e1172-933b-4e48-b388-2d7707b194c7", + "5282ad5a-d29c-4f96-a5b7-8aa4d4042044", + "4e310df3-c6bc-419a-8fe2-237f4fe8d6b5", + "576e4d5c-8468-4bcc-a56b-05feaa4be225" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7888, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "73d61228-3a5d-4153-a1f6-9d0a297d15fb", + "title": "BO - Catalog - Products : CRUD standard product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : CRUD standard product\"", + "fullTitle": "BO - Catalog - Products : CRUD standard product \"before all\" hook in \"BO - Catalog - Products : CRUD standard product\"", + "timedOut": false, + "duration": 175, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 4];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.coverImage)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n if (!newProductData.thumbImage) return [3 /*break*/, 6];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.thumbImage)];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e938efe4-fd92-45a1-8ca4-735d96b0f34d", + "parentUUID": "73d61228-3a5d-4153-a1f6-9d0a297d15fb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : CRUD standard product\"", + "fullTitle": "BO - Catalog - Products : CRUD standard product \"after all\" hook in \"BO - Catalog - Products : CRUD standard product\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 3];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.coverImage)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n if (!newProductData.thumbImage) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.thumbImage)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f1edb885-2b56-4803-a41d-16be61e11467", + "parentUUID": "73d61228-3a5d-4153-a1f6-9d0a297d15fb", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a38e782a-0be1-485e-b067-25a40f7638da", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should login in BO", + "timedOut": false, + "duration": 1757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "736b662f-9ee6-4cd0-a9fd-2b02168ec70a", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4989, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c6dc4b2-a99b-42cb-90a1-b4f9ef3418da", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b308de77-a528-420e-bd73-7e6337c99858", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should check the standard product description", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_checkStandardProductDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStandardProductDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "373aed39-d251-480c-b6b8-e1f576db721b", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should choose 'Standard product'", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cd761e6-5d6e-47b8-a023-c55c886b1fb2", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should go to new product page", + "timedOut": false, + "duration": 49, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "697e3914-4c01-4a3e-97f3-68871b45e872", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should create standard product", + "timedOut": false, + "duration": 6002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "535d55b2-d6cb-4c3d-ab84-a90b58543a2f", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product header details", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should check the product header details", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_checkProductHeaderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductHeaderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(newProductData.priceTaxExcluded, newProductData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 3:\n productHeaderSummary = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equal(\"\\u20AC\".concat((newProductData.priceTaxExcluded.toFixed(2)), \" tax excl.\")),\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equal(\"\\u20AC\".concat((newProductData.priceTaxExcluded + taxValue).toFixed(2), \" tax incl. (tax rule: \").concat(newProductData.tax, \"%)\")),\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal(\"\".concat(newProductData.quantity, \" in stock\")),\n (0, chai_1.expect)(productHeaderSummary.reference).to.contains(newProductData.reference),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e27d20a-f31a-4730-91d0-12bb96e5d441", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_checkSaveButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSaveButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8929fb3-a25e-4e9c-9dc1-d3323942135f", + "parentUUID": "a38e782a-0be1-485e-b067-25a40f7638da", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "736b662f-9ee6-4cd0-a9fd-2b02168ec70a", + "4c6dc4b2-a99b-42cb-90a1-b4f9ef3418da", + "b308de77-a528-420e-bd73-7e6337c99858", + "373aed39-d251-480c-b6b8-e1f576db721b", + "9cd761e6-5d6e-47b8-a023-c55c886b1fb2", + "697e3914-4c01-4a3e-97f3-68871b45e872", + "535d55b2-d6cb-4c3d-ab84-a90b58543a2f", + "7e27d20a-f31a-4730-91d0-12bb96e5d441", + "d8929fb3-a25e-4e9c-9dc1-d3323942135f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13946, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6b2736f5-171a-474d-90aa-be3bd08ffd01", + "title": "View product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD standard product View product should preview product", + "timedOut": false, + "duration": 1951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51f5e565-72a6-4287-a0a3-18d8cf966832", + "parentUUID": "6b2736f5-171a-474d-90aa-be3bd08ffd01", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD standard product View product should check all product information", + "timedOut": false, + "duration": 142, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(newProductData.priceTaxExcluded, newProductData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(newProductData.name),\n (0, chai_1.expect)(result.price.toFixed(2)).to.equal((newProductData.priceTaxExcluded + taxValue).toFixed(2)),\n (0, chai_1.expect)(result.summary).to.equal(newProductData.summary),\n (0, chai_1.expect)(result.description).to.equal(newProductData.description),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d44f291e-025c-42ae-beca-8b8e7902fe7c", + "parentUUID": "6b2736f5-171a-474d-90aa-be3bd08ffd01", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD standard product View product should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e2edb25-8664-433a-8a62-46e1303966c0", + "parentUUID": "6b2736f5-171a-474d-90aa-be3bd08ffd01", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "51f5e565-72a6-4287-a0a3-18d8cf966832", + "d44f291e-025c-42ae-beca-8b8e7902fe7c", + "7e2edb25-8664-433a-8a62-46e1303966c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2098, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "34ba6698-3349-4ac9-b4f7-7fa9a59a8c53", + "title": "Edit product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should edit the created product", + "fullTitle": "BO - Catalog - Products : CRUD standard product Edit product should edit the created product", + "timedOut": false, + "duration": 3675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_editProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, editProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef6c4cc3-3cbb-4e65-89af-cb0cd960f2b3", + "parentUUID": "34ba6698-3349-4ac9-b4f7-7fa9a59a8c53", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product header details", + "fullTitle": "BO - Catalog - Products : CRUD standard product Edit product should check the product header details", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_checkEditedProductHeaderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductHeaderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(editProductData.priceTaxExcluded, editProductData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 3:\n productHeaderSummary = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equal(\"\\u20AC\".concat((editProductData.priceTaxExcluded.toFixed(2)), \" tax excl.\")),\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equal(\"\\u20AC\".concat((editProductData.priceTaxExcluded + taxValue).toFixed(2), \" tax incl. (tax rule: \").concat(editProductData.tax, \"%)\")),\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal(\"\".concat(editProductData.quantity + newProductData.quantity, \" in stock\")),\n (0, chai_1.expect)(productHeaderSummary.reference).to.contains(editProductData.reference),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "214d5cd0-64cf-4537-b2c0-48ebe12522d9", + "parentUUID": "34ba6698-3349-4ac9-b4f7-7fa9a59a8c53", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ef6c4cc3-3cbb-4e65-89af-cb0cd960f2b3", + "214d5cd0-64cf-4537-b2c0-48ebe12522d9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3714, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c207a7ac-45fb-4b28-aca5-901cd2e513d5", + "title": "View edited product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD standard product View edited product should preview product", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_previewEditedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewEditedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0d583fe-bf3a-4e00-81fa-c8895baa056c", + "parentUUID": "c207a7ac-45fb-4b28-aca5-901cd2e513d5", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD standard product View edited product should check all product information", + "timedOut": false, + "duration": 150, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_checkEditedProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(editProductData.priceTaxExcluded, editProductData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(editProductData.name),\n (0, chai_1.expect)(result.price.toFixed(2)).to.equal((editProductData.priceTaxExcluded + taxValue).toFixed(2)),\n (0, chai_1.expect)(result.description).to.equal(editProductData.description),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a33aa097-dbd3-48b1-a319-f9a1d9319d46", + "parentUUID": "c207a7ac-45fb-4b28-aca5-901cd2e513d5", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD standard product View edited product should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca0c5f39-458a-4f38-85fd-5145961583be", + "parentUUID": "c207a7ac-45fb-4b28-aca5-901cd2e513d5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b0d583fe-bf3a-4e00-81fa-c8895baa056c", + "a33aa097-dbd3-48b1-a319-f9a1d9319d46", + "ca0c5f39-458a-4f38-85fd-5145961583be" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1853, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "038d5e45-855a-4ac8-ae7a-0323e7551352", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/02_CRUDStandardProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : CRUD standard product Delete product should delete product", + "timedOut": false, + "duration": 1570, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDStandardProduct_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f13eaa47-ff3b-481b-80b3-e459dde234fb", + "parentUUID": "038d5e45-855a-4ac8-ae7a-0323e7551352", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f13eaa47-ff3b-481b-80b3-e459dde234fb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1570, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5ec00a42-3664-48e6-a9bb-d16767508cd4", + "title": "BO - Catalog - Products : CRUD product with combinations", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : CRUD product with combinations\"", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations \"before all\" hook in \"BO - Catalog - Products : CRUD product with combinations\"", + "timedOut": false, + "duration": 121, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 4];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.coverImage)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n if (!newProductData.thumbImage) return [3 /*break*/, 6];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.thumbImage)];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50c3626a-956d-459a-a19d-703be4d62cad", + "parentUUID": "5ec00a42-3664-48e6-a9bb-d16767508cd4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : CRUD product with combinations\"", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations \"after all\" hook in \"BO - Catalog - Products : CRUD product with combinations\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 3];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.coverImage)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n if (!newProductData.thumbImage) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.thumbImage)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d23bd442-558a-4401-9c77-6640ff73abe9", + "parentUUID": "5ec00a42-3664-48e6-a9bb-d16767508cd4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d08758f6-169c-4030-88a4-02d8c0bae783", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should login in BO", + "timedOut": false, + "duration": 1776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f4d1613-b0fa-49fb-a29c-94ac441b1271", + "parentUUID": "d08758f6-169c-4030-88a4-02d8c0bae783", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e690ccd-da6c-4914-b77a-49b753166fd5", + "parentUUID": "d08758f6-169c-4030-88a4-02d8c0bae783", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1a5b3f6-a0b3-460d-98a0-247d7d98e435", + "parentUUID": "d08758f6-169c-4030-88a4-02d8c0bae783", + "isHook": false, + "skipped": false + }, + { + "title": "should select the product with combination and check the description", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should select the product with combination and check the description", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_checkStandardProductDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStandardProductDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 3:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.productWithCombinationsDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fec3012-d65b-4dc8-a8ee-e25d90e59592", + "parentUUID": "d08758f6-169c-4030-88a4-02d8c0bae783", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_chooseProductWithCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseProductWithCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60ffc6b2-a099-4cf3-9ace-7d1034aed422", + "parentUUID": "d08758f6-169c-4030-88a4-02d8c0bae783", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should create product", + "timedOut": false, + "duration": 4674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_createProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa1b3198-60ff-4bcd-93bb-5cc1994dee28", + "parentUUID": "d08758f6-169c-4030-88a4-02d8c0bae783", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5f4d1613-b0fa-49fb-a29c-94ac441b1271", + "7e690ccd-da6c-4914-b77a-49b753166fd5", + "d1a5b3f6-a0b3-460d-98a0-247d7d98e435", + "1fec3012-d65b-4dc8-a8ee-e25d90e59592", + "60ffc6b2-a099-4cf3-9ace-7d1034aed422", + "fa1b3198-60ff-4bcd-93bb-5cc1994dee28" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12537, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "73d7ec1e-9ef6-42c4-bef9-d87cff5cf217", + "title": "Create combinations", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Combinations' tab and click on 'Attributes & Features' link", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create combinations should go to 'Combinations' tab and click on 'Attributes & Features' link", + "timedOut": false, + "duration": 1254, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_checkAttributes&FeaturesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAttributes&FeaturesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnAttributesAndFeaturesLink(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bd4d78e-fdb0-4a4d-ba34-57649b1d9a34", + "parentUUID": "73d7ec1e-9ef6-42c4-bef9-d87cff5cf217", + "isHook": false, + "skipped": false + }, + { + "title": "should close 'Attributes & Features' page", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create combinations should close 'Attributes & Features' page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_closePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fbf4c53e-1bae-43ec-912e-006fde429118", + "parentUUID": "73d7ec1e-9ef6-42c4-bef9-d87cff5cf217", + "isHook": false, + "skipped": false + }, + { + "title": "should create combinations and check generate combinations button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create combinations should create combinations and check generate combinations button", + "timedOut": false, + "duration": 2748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_createCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var generateCombinationsButton;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setProductAttributes(page, newProductData.attributes)];\n case 2:\n generateCombinationsButton = _a.sent();\n (0, chai_1.expect)(generateCombinationsButton).to.equal(combinationsTab_1.default.generateCombinationsMessage(40));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a6a4702-73eb-42b4-a681-96d971568815", + "parentUUID": "73d7ec1e-9ef6-42c4-bef9-d87cff5cf217", + "isHook": false, + "skipped": false + }, + { + "title": "should click on generate combinations button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create combinations should click on generate combinations button", + "timedOut": false, + "duration": 832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_generateCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulGenerateCombinationsMessage(40));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ef86379-426c-4b93-9a77-48c61a19aad2", + "parentUUID": "73d7ec1e-9ef6-42c4-bef9-d87cff5cf217", + "isHook": false, + "skipped": false + }, + { + "title": "combinations generation modal should be closed", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create combinations combinations generation modal should be closed", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_generateCombinationsModalIsClosed1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinationsModalIsClosed1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinationModalIsClosed(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28c663de-e0e2-4c71-b587-11cb9fb9f714", + "parentUUID": "73d7ec1e-9ef6-42c4-bef9-d87cff5cf217", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0bd4d78e-fdb0-4a4d-ba34-57649b1d9a34", + "fbf4c53e-1bae-43ec-912e-006fde429118", + "1a6a4702-73eb-42b4-a681-96d971568815", + "5ef86379-426c-4b93-9a77-48c61a19aad2", + "28c663de-e0e2-4c71-b587-11cb9fb9f714" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4844, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a889c73b-e40e-465c-9d33-ca065b655cd3", + "title": "Edit combinations", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should edit the first combination", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit combinations should edit the first combination", + "timedOut": false, + "duration": 4296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_editFirstCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editFirstCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.editCombination(page, firstCombinationData)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a665b693-a6fb-47f1-bc86-fe50b6cd7874", + "parentUUID": "a889c73b-e40e-465c-9d33-ca065b655cd3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit icon for the second combination and check the modal", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit combinations should click on edit icon for the second combination and check the modal", + "timedOut": false, + "duration": 238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_clickOnEditSecondCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditSecondCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnEditIcon(page, 2)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91e88d05-9bd0-4b1d-af6f-60555ac0cf80", + "parentUUID": "a889c73b-e40e-465c-9d33-ca065b655cd3", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the combination from the modal", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit combinations should edit the combination from the modal", + "timedOut": false, + "duration": 2603, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_editSecondCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editSecondCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.editCombinationFromModal(page, secondCombinationData)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "daada6b1-282d-48c4-ad1d-af57bbfe632a", + "parentUUID": "a889c73b-e40e-465c-9d33-ca065b655cd3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the recent stock movement in the modal", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit combinations should check the recent stock movement in the modal", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_checkStockMovement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStockMovement', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getRecentStockMovements(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.dateTime).to.contains(todayDate),\n (0, chai_1.expect)(result.employee).to.equal(\"\".concat(global.BO.FIRSTNAME, \" \").concat(global.BO.LASTNAME)),\n (0, chai_1.expect)(result.quantity).to.equal(secondCombinationData.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83954af4-7cd6-43a8-8578-5398bba016db", + "parentUUID": "a889c73b-e40e-465c-9d33-ca065b655cd3", + "isHook": false, + "skipped": false + }, + { + "title": "should close the modal", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit combinations should close the modal", + "timedOut": false, + "duration": 2056, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_closeModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.closeEditCombinationModal(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05ad5be3-8c0b-432b-81f1-6ec58f0110eb", + "parentUUID": "a889c73b-e40e-465c-9d33-ca065b655cd3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a665b693-a6fb-47f1-bc86-fe50b6cd7874", + "91e88d05-9bd0-4b1d-af6f-60555ac0cf80", + "daada6b1-282d-48c4-ad1d-af57bbfe632a", + "83954af4-7cd6-43a8-8578-5398bba016db", + "05ad5be3-8c0b-432b-81f1-6ec58f0110eb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9215, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "title": "Sort combinations table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 100 per page", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should change the items number to 100 per page", + "timedOut": false, + "duration": 2037, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_changeItemNumberTo100\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo100', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.selectPaginationLimit(page, 100)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2a00d57-8f46-4327-8be5-920884dcf593", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'combination_id' 'desc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'combination_id' 'desc' and check result", + "timedOut": false, + "duration": 3325, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88d9941e-362f-458b-984c-67d06313eb7b", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'impact_on_price_te' 'asc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'impact_on_price_te' 'asc' and check result", + "timedOut": false, + "duration": 2374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByImpactOnPriceTExcAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95b8a263-00af-4fba-a2c7-e1fe1e707260", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'impact_on_price_te' 'desc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'impact_on_price_te' 'desc' and check result", + "timedOut": false, + "duration": 2383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByImpactOnPriceTExcDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0910155a-88db-4943-b26c-4fd3ff449acd", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'impact_on_price_ti' 'asc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'impact_on_price_ti' 'asc' and check result", + "timedOut": false, + "duration": 2381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByImpactOnPriceTIncAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcd6e946-311e-4661-a7b4-b2e45bded5b1", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'impact_on_price_ti' 'desc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'impact_on_price_ti' 'desc' and check result", + "timedOut": false, + "duration": 2362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByImpactOnPriceTIncDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "843070df-d9a1-44b1-ac00-11db4ccaef11", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'final_price_te' 'asc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'final_price_te' 'asc' and check result", + "timedOut": false, + "duration": 2946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByFinalPriceTaxExcAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f655a45a-9e6c-4483-8f0e-af6fd01e95a3", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'final_price_te' 'desc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'final_price_te' 'desc' and check result", + "timedOut": false, + "duration": 2899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByFinalPriceTaxExcDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fa80d19-3838-478a-9821-5bc22378398c", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'delta_quantity_quantity' 'asc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'delta_quantity_quantity' 'asc' and check result", + "timedOut": false, + "duration": 2114, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByQuantityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be598179-61df-4141-9cff-79df8d758a07", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'delta_quantity_quantity' 'desc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'delta_quantity_quantity' 'desc' and check result", + "timedOut": false, + "duration": 2113, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByQuantityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3acfed17-ede4-441f-98ca-973069483e8b", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'combination_id' 'asc' and check result", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Sort combinations table should sort by 'combination_id' 'asc' and check result", + "timedOut": false, + "duration": 2959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.sortTable(page, test.args.sortBy, test.args.column, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getAllRowsColumnContent(page, 40, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc96ec42-2650-49c0-ade1-5cb8e07d8630", + "parentUUID": "53b1ccb3-ca0f-416c-8e2c-c930f0d7b859", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c2a00d57-8f46-4327-8be5-920884dcf593", + "88d9941e-362f-458b-984c-67d06313eb7b", + "95b8a263-00af-4fba-a2c7-e1fe1e707260", + "0910155a-88db-4943-b26c-4fd3ff449acd", + "fcd6e946-311e-4661-a7b4-b2e45bded5b1", + "843070df-d9a1-44b1-ac00-11db4ccaef11", + "f655a45a-9e6c-4483-8f0e-af6fd01e95a3", + "0fa80d19-3838-478a-9821-5bc22378398c", + "be598179-61df-4141-9cff-79df8d758a07", + "3acfed17-ede4-441f-98ca-973069483e8b", + "fc96ec42-2650-49c0-ade1-5cb8e07d8630" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27893, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a5828a7d-27e3-4eaf-b82e-62e358a3ae5b", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 2040, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 4)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "670e8f3d-efc4-42b5-886f-3e41f76077bb", + "parentUUID": "a5828a7d-27e3-4eaf-b82e-62e358a3ae5b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Pagination next and previous should click on next", + "timedOut": false, + "duration": 2050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 4)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "913d8c11-4be1-42e4-8030-d969425f1f60", + "parentUUID": "a5828a7d-27e3-4eaf-b82e-62e358a3ae5b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Pagination next and previous should click on previous", + "timedOut": false, + "duration": 2053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 4)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c043401-444e-4892-b39a-73be12119fd0", + "parentUUID": "a5828a7d-27e3-4eaf-b82e-62e358a3ae5b", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 2036, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f459f8af-2d27-414e-b58c-0a0085c789a9", + "parentUUID": "a5828a7d-27e3-4eaf-b82e-62e358a3ae5b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "670e8f3d-efc4-42b5-886f-3e41f76077bb", + "913d8c11-4be1-42e4-8030-d969425f1f60", + "7c043401-444e-4892-b39a-73be12119fd0", + "f459f8af-2d27-414e-b58c-0a0085c789a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8179, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fb8ce318-1271-48ed-bf64-d73a0ef1a89e", + "title": "Delete combination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should try to delete the first combination then cancel", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Delete combination should try to delete the first combination then cancel", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_deleteFirstCombinationCancel\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFirstCombinationCancel', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnDeleteIcon(page, 'cancel')];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8f6c1d2-a481-4ef8-8a69-72dd8252796f", + "parentUUID": "fb8ce318-1271-48ed-bf64-d73a0ef1a89e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the first combination", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Delete combination should delete the first combination", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_deleteFirstCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFirstCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnDeleteIcon(page, 'delete')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(add_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa5dd855-54d6-484b-a6b5-1b4e607aae9c", + "parentUUID": "fb8ce318-1271-48ed-bf64-d73a0ef1a89e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b8f6c1d2-a481-4ef8-8a69-72dd8252796f", + "fa5dd855-54d6-484b-a6b5-1b4e607aae9c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1578, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "42e85059-ff85-47bc-b4aa-affbab31abed", + "title": "Filter combinations table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by size", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Filter combinations table should filter by size", + "timedOut": false, + "duration": 604, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_filterBySize\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, name;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBySize', baseContext)];\n case 1:\n _a.sent();\n // Filter by the first color in the list GREY\n return [4 /*yield*/, combinationsTab_1.default.filterCombinationsBySize(page, 1)];\n case 2:\n // Filter by the first color in the list GREY\n _a.sent();\n i = 1;\n _a.label = 3;\n case 3:\n if (!(i <= 3)) return [3 /*break*/, 6];\n return [4 /*yield*/, combinationsTab_1.default.getTextColumn(page, 'name', i)];\n case 4:\n name = _a.sent();\n (0, chai_1.expect)(name).to.contains('Size - S');\n _a.label = 5;\n case 5:\n i++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c93cfdc5-d115-4ee3-898c-ce87ed0bcc09", + "parentUUID": "42e85059-ff85-47bc-b4aa-affbab31abed", + "isHook": false, + "skipped": false + }, + { + "title": "should check the filter by size button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Filter combinations table should check the filter by size button", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_checkFilterBySizeButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var buttonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFilterBySizeButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getFilterBySizeButtonName(page)];\n case 2:\n buttonName = _a.sent();\n (0, chai_1.expect)(buttonName).to.equal('Size (1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0caa92a3-9ccc-47ce-b010-9f33d00476e0", + "parentUUID": "42e85059-ff85-47bc-b4aa-affbab31abed", + "isHook": false, + "skipped": false + }, + { + "title": "should clear filter", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Filter combinations table should clear filter", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_clearFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCombinations;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clearFilter(page)];\n case 2:\n numberOfCombinations = _a.sent();\n (0, chai_1.expect)(numberOfCombinations).to.equal(39);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ee7ce91-b67a-461a-bf87-8a05aede3e97", + "parentUUID": "42e85059-ff85-47bc-b4aa-affbab31abed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c93cfdc5-d115-4ee3-898c-ce87ed0bcc09", + "0caa92a3-9ccc-47ce-b010-9f33d00476e0", + "0ee7ce91-b67a-461a-bf87-8a05aede3e97" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 899, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7f88a5e3-2ce6-4ee9-a128-ceb3639f4b00", + "title": "Bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should select all combinations", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Bulk actions should select all combinations", + "timedOut": false, + "duration": 199, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_selectAllCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkActionsButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectAllCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.selectAllCombinations(page)];\n case 2:\n isBulkActionsButtonVisible = _a.sent();\n (0, chai_1.expect)(isBulkActionsButtonVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b58783c4-0064-4075-82ba-22896bc228d6", + "parentUUID": "7f88a5e3-2ce6-4ee9-a128-ceb3639f4b00", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit combinations by bulk actions and check the modal title", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Bulk actions should click on edit combinations by bulk actions and check the modal title", + "timedOut": false, + "duration": 2281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_clickOnEditByBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditByBulkActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnEditCombinationsByBulkActions(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).to.equal(combinationsTab_1.default.editCombinationsModalTitle(39));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d9cdc39-0eff-407a-aaca-991ca118482e", + "parentUUID": "7f88a5e3-2ce6-4ee9-a128-ceb3639f4b00", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Stocks, Retail price and Specific references", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Bulk actions should edit Stocks, Retail price and Specific references", + "timedOut": false, + "duration": 3340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_editStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.editCombinationsByBulkActions(page, editStockData)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.editCombinationsModalMessage(39));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18542ad1-4575-40f6-b326-e8f535ed486b", + "parentUUID": "7f88a5e3-2ce6-4ee9-a128-ceb3639f4b00", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b58783c4-0064-4075-82ba-22896bc228d6", + "1d9cdc39-0eff-407a-aaca-991ca118482e", + "18542ad1-4575-40f6-b326-e8f535ed486b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5820, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "feba0300-8c15-4ba3-9a08-625e2b1e8ac1", + "title": "Edit product and check the header details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Pricing tab and edit retail price, enable the product then save", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product and check the header details should go to Pricing tab and edit retail price, enable the product then save", + "timedOut": false, + "duration": 3149, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_saveProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'saveProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setProductPricing(page, pricingData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, true)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bece3ce-a9cc-4b9b-98d5-266c405b3237", + "parentUUID": "feba0300-8c15-4ba3-9a08-625e2b1e8ac1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product and check the header details should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_checkSaveButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSaveButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal(add_1.default.saveAndPublishButtonName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "485e667c-ca7a-4567-a303-1ff041e4b5ad", + "parentUUID": "feba0300-8c15-4ba3-9a08-625e2b1e8ac1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product header details", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product and check the header details should check the product header details", + "timedOut": false, + "duration": 57, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_checkEditedProductHeaderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductHeaderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(pricingData.priceTaxExcluded, 20)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 3:\n productHeaderSummary = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equal(\"\\u20AC\".concat((pricingData.priceTaxExcluded.toFixed(2)), \" tax excl.\")),\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equal(\"\\u20AC\".concat((pricingData.priceTaxExcluded + taxValue).toFixed(2), \" tax incl. (tax rule: 20%)\")),\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal('930 in stock'),\n (0, chai_1.expect)(productHeaderSummary.reference).to.contains(newProductData.reference),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3083201-34b1-4c56-b45c-24e06a01f713", + "parentUUID": "feba0300-8c15-4ba3-9a08-625e2b1e8ac1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2bece3ce-a9cc-4b9b-98d5-266c405b3237", + "485e667c-ca7a-4567-a303-1ff041e4b5ad", + "a3083201-34b1-4c56-b45c-24e06a01f713" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3214, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9e1c5e8d-5ecb-4dd4-a67b-8065885cb413", + "title": "Check product in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Check product in FO should preview product", + "timedOut": false, + "duration": 1877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdcc7c92-c6d0-4bc4-8b10-907d865812c1", + "parentUUID": "9e1c5e8d-5ecb-4dd4-a67b-8065885cb413", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Check product in FO should check all product information", + "timedOut": false, + "duration": 169, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result, productAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(pricingData.priceTaxExcluded + secondCombinationData.impactOnPriceTExc, 20)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(newProductData.name),\n (0, chai_1.expect)(result.price).to.equal(pricingData.priceTaxExcluded + secondCombinationData.impactOnPriceTExc + taxValue),\n (0, chai_1.expect)(result.summary).to.equal(newProductData.summary),\n (0, chai_1.expect)(result.description).to.equal(newProductData.description),\n ])];\n case 4:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductAttributes(page)];\n case 5:\n productAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productAttributes[0].name).to.equal(newProductData.attributes[0].name),\n (0, chai_1.expect)(productAttributes[0].value).to.equal(newProductData.attributes[0].values.join(' ')),\n (0, chai_1.expect)(productAttributes[1].name).to.equal(newProductData.attributes[1].name),\n (0, chai_1.expect)(productAttributes[1].value).to.equal(editProductAttributesData[1].values.join(' ')),\n ])];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca1556e2-4960-4118-a85c-a490d7998989", + "parentUUID": "9e1c5e8d-5ecb-4dd4-a67b-8065885cb413", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bdcc7c92-c6d0-4bc4-8b10-907d865812c1", + "ca1556e2-4960-4118-a85c-a490d7998989" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2046, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0671443a-d8e3-44a3-bd0b-6625beb775ec", + "title": "Edit product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2a4df9e-3d0d-4412-8125-1724a975e30d", + "parentUUID": "0671443a-d8e3-44a3-bd0b-6625beb775ec", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the created product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should edit the created product", + "timedOut": false, + "duration": 3076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_editProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, editProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b14fe4fa-f019-47c0-90ab-9a05dd5d7d4d", + "parentUUID": "0671443a-d8e3-44a3-bd0b-6625beb775ec", + "isHook": false, + "skipped": false + }, + { + "title": "should add combinations and check generate combinations button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should add combinations and check generate combinations button", + "timedOut": false, + "duration": 754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_addCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var generateCombinationsButton;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setProductAttributes(page, editProductData.attributes)];\n case 2:\n generateCombinationsButton = _a.sent();\n (0, chai_1.expect)(generateCombinationsButton).to.equal(combinationsTab_1.default.generateCombinationsMessage(6));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7093d850-9647-4373-8d9c-c0899abe40ef", + "parentUUID": "0671443a-d8e3-44a3-bd0b-6625beb775ec", + "isHook": false, + "skipped": false + }, + { + "title": "should click on generate combinations button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should click on generate combinations button", + "timedOut": false, + "duration": 247, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_generateCombinations2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinations2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulGenerateCombinationsMessage(6));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5abf3e5e-7909-46c2-ba7f-2fa13c3ad43d", + "parentUUID": "0671443a-d8e3-44a3-bd0b-6625beb775ec", + "isHook": false, + "skipped": false + }, + { + "title": "combinations generation modal should be closed", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product combinations generation modal should be closed", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_generateCombinationsModalIsClosed2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinationsModalIsClosed2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinationModalIsClosed(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6747cb4b-f506-488a-afca-a3858796f943", + "parentUUID": "0671443a-d8e3-44a3-bd0b-6625beb775ec", + "isHook": false, + "skipped": false + }, + { + "title": "should save the product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should save the product", + "timedOut": false, + "duration": 1855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_saveProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'saveProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 2:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f6488ef-3ef8-473b-a4ac-66019320b457", + "parentUUID": "0671443a-d8e3-44a3-bd0b-6625beb775ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d2a4df9e-3d0d-4412-8125-1724a975e30d", + "b14fe4fa-f019-47c0-90ab-9a05dd5d7d4d", + "7093d850-9647-4373-8d9c-c0899abe40ef", + "5abf3e5e-7909-46c2-ba7f-2fa13c3ad43d", + "6747cb4b-f506-488a-afca-a3858796f943", + "0f6488ef-3ef8-473b-a4ac-66019320b457" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5951, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "639656e0-b89a-40aa-839c-cdee7f0fb103", + "title": "Check product in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Check product in FO should preview product", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_previewEditedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewEditedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d778bfd9-836a-480f-abc4-98d5ec3fbd3e", + "parentUUID": "639656e0-b89a-40aa-839c-cdee7f0fb103", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Check product in FO should check all product information", + "timedOut": false, + "duration": 150, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_checkEditedProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, productAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(editProductData.name),\n (0, chai_1.expect)(result.price).to.equal(editProductData.price + secondCombinationData.impactOnPriceTExc),\n (0, chai_1.expect)(result.description).to.equal(editProductData.description),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductAttributes(page)];\n case 4:\n productAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productAttributes[0].name).to.equal(editProductAttributesData[0].name),\n (0, chai_1.expect)(productAttributes[0].value).to.equal(editProductAttributesData[0].values.join(' ')),\n (0, chai_1.expect)(productAttributes[1].name).to.equal(editProductAttributesData[1].name),\n (0, chai_1.expect)(productAttributes[1].value).to.equal(editProductAttributesData[1].values.join(' ')),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1ec9383-51b3-4212-bc5f-094bb621140a", + "parentUUID": "639656e0-b89a-40aa-839c-cdee7f0fb103", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Check product in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fabb9bec-a412-45bb-b370-f60a3d114167", + "parentUUID": "639656e0-b89a-40aa-839c-cdee7f0fb103", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d778bfd9-836a-480f-abc4-98d5ec3fbd3e", + "f1ec9383-51b3-4212-bc5f-094bb621140a", + "fabb9bec-a412-45bb-b370-f60a3d114167" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1894, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "277f8fd2-a0b4-49ce-a675-169ce74c4a2d", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Delete product should delete product", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDProductWithCombinations_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b95ee956-a587-4198-b908-6317b94897a4", + "parentUUID": "277f8fd2-a0b4-49ce-a675-169ce74c4a2d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b95ee956-a587-4198-b908-6317b94897a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2005, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1c4b5475-8c4b-4419-b9b8-4c3b37d96b00", + "title": "BO - Catalog - Products : CRUD pack of products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : CRUD pack of products\"", + "fullTitle": "BO - Catalog - Products : CRUD pack of products \"before all\" hook in \"BO - Catalog - Products : CRUD pack of products\"", + "timedOut": false, + "duration": 114, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 4];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.coverImage)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n if (!newProductData.thumbImage) return [3 /*break*/, 6];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.thumbImage)];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2f1a615-dc05-4572-a38f-0ba65c843fb2", + "parentUUID": "1c4b5475-8c4b-4419-b9b8-4c3b37d96b00", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : CRUD pack of products\"", + "fullTitle": "BO - Catalog - Products : CRUD pack of products \"after all\" hook in \"BO - Catalog - Products : CRUD pack of products\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 3];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.coverImage)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n if (!newProductData.thumbImage) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.thumbImage)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0ed0b6c0-16fb-4e54-ae95-f317a6ee363c", + "parentUUID": "1c4b5475-8c4b-4419-b9b8-4c3b37d96b00", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "761227b3-fb78-4575-9a9d-f53e56e837eb", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "954a2618-0f93-4c20-85ee-1ac1c9d74fac", + "title": "Select pack of products type and go to create product page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Select pack of products type and go to create product page should login in BO", + "timedOut": false, + "duration": 1746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "995f4ba3-893f-4294-ac8e-c97f9a3171f7", + "parentUUID": "954a2618-0f93-4c20-85ee-1ac1c9d74fac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Select pack of products type and go to create product page should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b4ed736-69f4-436a-936a-cb065f285c03", + "parentUUID": "954a2618-0f93-4c20-85ee-1ac1c9d74fac", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Select pack of products type and go to create product page should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9dfc332-8cf1-492a-9f75-40b11f3653ec", + "parentUUID": "954a2618-0f93-4c20-85ee-1ac1c9d74fac", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Pack of products'", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Select pack of products type and go to create product page should choose 'Pack of products'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_choosePackOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'choosePackOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ff1c5e7-56f3-423e-beb1-8ab6b931ace3", + "parentUUID": "954a2618-0f93-4c20-85ee-1ac1c9d74fac", + "isHook": false, + "skipped": false + }, + { + "title": "should select the pack of products and check the description", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Select pack of products type and go to create product page should select the pack of products and check the description", + "timedOut": false, + "duration": 79, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkPackOfProductsDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPackOfProductsDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 3:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.packOfProductsDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47f099bc-de4f-4aad-ae1d-5ea1bd588f88", + "parentUUID": "954a2618-0f93-4c20-85ee-1ac1c9d74fac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Select pack of products type and go to create product page should go to new product page", + "timedOut": false, + "duration": 55, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40156aa2-cafc-4f20-be68-dc90efde2691", + "parentUUID": "954a2618-0f93-4c20-85ee-1ac1c9d74fac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "995f4ba3-893f-4294-ac8e-c97f9a3171f7", + "2b4ed736-69f4-436a-936a-cb065f285c03", + "c9dfc332-8cf1-492a-9f75-40b11f3653ec", + "4ff1c5e7-56f3-423e-beb1-8ab6b931ace3", + "47f099bc-de4f-4aad-ae1d-5ea1bd588f88", + "40156aa2-cafc-4f20-be68-dc90efde2691" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7896, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "title": "Add different types of products to the pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add a sample product to the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should add a sample product to the pack", + "timedOut": false, + "duration": 6450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_createPackOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createPackOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37517f04-727c-4574-a3e6-156bb53d4ce6", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the same product and check that no results found", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should search for the same product and check that no results found", + "timedOut": false, + "duration": 1072, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_searchSameProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchSameProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.searchProduct(page, 'demo_11')];\n case 2:\n searchResult = _a.sent();\n (0, chai_1.expect)(searchResult).to.equal('No results found for \"demo_11\"');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fbaa88d-411b-4ff1-b61f-ff53ed0ee765", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should search for a non existent product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should search for a non existent product", + "timedOut": false, + "duration": 1090, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_searchNonExistentProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonExistentProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.searchProduct(page, 'Pack mug')];\n case 2:\n searchResult = _a.sent();\n (0, chai_1.expect)(searchResult).to.equal('No results found for \"Pack mug\"');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca7d1b41-3172-4f03-932b-1d8d699c2807", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should search for a 'product with combination'", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should search for a 'product with combination'", + "timedOut": false, + "duration": 1081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_searchProductToPack0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProductToPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.searchProduct(page, test.args.product.name)];\n case 2:\n searchResult = _a.sent();\n (0, chai_1.expect)(searchResult).to.equal(test.args.resultOfSearch);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbe3a6d7-2c46-4bd1-a1e9-f5ab6c9980c0", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of product in list", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the number of product in list", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkNumberOfProductsInList0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberOfProductsInList\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getNumberOfSearchedProduct(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(test.args.numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20425318-7ed5-4807-830d-8b276dfb3874", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the third combination", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should choose the third combination", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_chooseThirdCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isListOfProductVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseThirdCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.selectProductFromList(page, 3)];\n case 2:\n isListOfProductVisible = _a.sent();\n (0, chai_1.expect)(isListOfProductVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f236850b-b2b4-4992-b41b-eced85b03933", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the number of products in the pack", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkNumberOfProductsInPack0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberOfProductsInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getNumberOfProductsInPack(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(index + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d2d8245-d0f2-4f5d-b1b1-5882a05f4484", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the selected product information", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the selected product information", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkProductInformationBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductInformationBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getProductInPackInformation(page, index + 2)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.defaultImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.productToChooseName),\n (0, chai_1.expect)(result.reference).to.equal(\"Ref: \".concat(test.args.product.reference)),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a4d2466-fa58-4158-a0ba-a1769c224522", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should search for a 'virtual product'", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should search for a 'virtual product'", + "timedOut": false, + "duration": 1064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_searchProductToPack1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProductToPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.searchProduct(page, test.args.product.name)];\n case 2:\n searchResult = _a.sent();\n (0, chai_1.expect)(searchResult).to.equal(test.args.resultOfSearch);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55e48299-e87e-47af-9a70-d135b348f0bf", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of product in list", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the number of product in list", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkNumberOfProductsInList1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberOfProductsInList\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getNumberOfSearchedProduct(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(test.args.numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33a8db44-aeda-4388-b3fd-33ce08647ef3", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the searched product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should choose the searched product", + "timedOut": false, + "duration": 89, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_chooseProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isListOfProductVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.selectProductFromList(page, 1)];\n case 2:\n isListOfProductVisible = _a.sent();\n (0, chai_1.expect)(isListOfProductVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ec8aab2-715b-4b0e-92e3-641e8cdee23a", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the number of products in the pack", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkNumberOfProductsInPack1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberOfProductsInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getNumberOfProductsInPack(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(index + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b082355d-4bb7-445b-bd79-3a6a92553d14", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the selected product information", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the selected product information", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkProductInformationBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductInformationBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getProductInPackInformation(page, index + 2)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.defaultImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.productToChooseName),\n (0, chai_1.expect)(result.reference).to.equal(\"Ref: \".concat(test.args.product.reference)),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8871dfc3-293c-4b4c-b91f-3b81d02d6e1e", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should search for a 'customized product'", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should search for a 'customized product'", + "timedOut": false, + "duration": 1066, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_searchProductToPack2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProductToPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.searchProduct(page, test.args.product.name)];\n case 2:\n searchResult = _a.sent();\n (0, chai_1.expect)(searchResult).to.equal(test.args.resultOfSearch);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e07fc06-ce2e-4bd6-a7a1-980b2165d143", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of product in list", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the number of product in list", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkNumberOfProductsInList2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberOfProductsInList\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getNumberOfSearchedProduct(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(test.args.numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc27f17d-f709-406a-9653-546a66b168ab", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the searched product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should choose the searched product", + "timedOut": false, + "duration": 55, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_chooseProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isListOfProductVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.selectProductFromList(page, 1)];\n case 2:\n isListOfProductVisible = _a.sent();\n (0, chai_1.expect)(isListOfProductVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69c1d10f-d715-4fab-b1a6-e012fea84820", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the number of products in the pack", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkNumberOfProductsInPack2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberOfProductsInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getNumberOfProductsInPack(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(index + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7b0dedc-4bed-4e16-975f-c25ec63733e2", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the selected product information", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Create product Add different types of products to the pack should check the selected product information", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkProductInformationBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductInformationBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getProductInPackInformation(page, index + 2)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.defaultImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.productToChooseName),\n (0, chai_1.expect)(result.reference).to.equal(\"Ref: \".concat(test.args.product.reference)),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afd6ba19-64e4-4515-b2f9-f83e81e340f9", + "parentUUID": "77d6f062-eb7d-47c7-9ac6-a903c758f1bc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "37517f04-727c-4574-a3e6-156bb53d4ce6", + "5fbaa88d-411b-4ff1-b61f-ff53ed0ee765", + "ca7d1b41-3172-4f03-932b-1d8d699c2807", + "bbe3a6d7-2c46-4bd1-a1e9-f5ab6c9980c0", + "20425318-7ed5-4807-830d-8b276dfb3874", + "f236850b-b2b4-4992-b41b-eced85b03933", + "8d2d8245-d0f2-4f5d-b1b1-5882a05f4484", + "1a4d2466-fa58-4158-a0ba-a1769c224522", + "55e48299-e87e-47af-9a70-d135b348f0bf", + "33a8db44-aeda-4388-b3fd-33ce08647ef3", + "8ec8aab2-715b-4b0e-92e3-641e8cdee23a", + "b082355d-4bb7-445b-bd79-3a6a92553d14", + "8871dfc3-293c-4b4c-b91f-3b81d02d6e1e", + "8e07fc06-ce2e-4bd6-a7a1-980b2165d143", + "bc27f17d-f709-406a-9653-546a66b168ab", + "69c1d10f-d715-4fab-b1a6-e012fea84820", + "a7b0dedc-4bed-4e16-975f-c25ec63733e2", + "afd6ba19-64e4-4515-b2f9-f83e81e340f9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12101, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "25156112-0ecd-4212-93a5-7d2c0202392e", + "title": "Edit/Delete product in pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should try to edit the quantity of the customized product by a negative value", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should try to edit the quantity of the customized product by a negative value", + "timedOut": false, + "duration": 596, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_tryToEditByNegativeValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'tryToEditByNegativeValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.setProductQuantity(page, 0, -1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.saveAndGetProductInPackErrorMessage(page, 1)];\n case 3:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.equal('This value should be greater than or equal to 1.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2daf83ee-5ec2-490b-b7b9-d3195ddf3bb7", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + }, + { + "title": "should try to edit the quantity of the customized product by a text", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should try to edit the quantity of the customized product by a text", + "timedOut": false, + "duration": 697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_tryToEditByText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'tryToEditByText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.setProductQuantity(page, 0, 'test')];\n case 2:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.saveAndGetProductInPackErrorMessage(page, 1)];\n case 3:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.equal('This value should be of type numeric.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eb1d2bb-4c47-47dd-ac20-28bd3315ba9b", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + }, + { + "title": "should set a valid quantity then save the product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should set a valid quantity then save the product", + "timedOut": false, + "duration": 1568, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_setValidQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setValidQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.setProductQuantity(page, 0, 15)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e020e918-fcf1-4696-ac46-0c6b76e34954", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + }, + { + "title": "should try delete the customized product then cancel", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should try delete the customized product then cancel", + "timedOut": false, + "duration": 529, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_cancelDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'cancelDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.deleteProduct(page, 1, false)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dade6ca0-b448-4ebc-902b-e394c7c7d5d2", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the customized product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should delete the customized product", + "timedOut": false, + "duration": 1414, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_deleteCustomizedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstProductInList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomizedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.deleteProduct(page, 1, true)];\n case 2:\n firstProductInList = _a.sent();\n (0, chai_1.expect)(firstProductInList).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f727ed06-2ecd-49fa-95b1-45de279e699a", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the quantity and the minimum quantity of the pack then save", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should edit the quantity and the minimum quantity of the pack then save", + "timedOut": false, + "duration": 1808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_editMinimumQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editMinimumQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.editPackOfProducts(page, editPackData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bb6fc00-98c5-4256-8ebf-0a29f6b959e5", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the recent stock movement", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should check the recent stock movement", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkStockMovement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStockMovement', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getStockMovement(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.dateTime).to.contains(todayDate),\n (0, chai_1.expect)(result.employee).to.equal(\"\".concat(employees_1.default.DefaultEmployee.firstName, \" \").concat(employees_1.default.DefaultEmployee.lastName)),\n (0, chai_1.expect)(result.quantity).to.equal(editPackData.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f50163a5-99e3-4760-9286-ef00078eba96", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Pricing tab and edit retail price, enable the product then save", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should go to Pricing tab and edit retail price, enable the product then save", + "timedOut": false, + "duration": 1830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_editRetailPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editRetailPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setProductPricing(page, pricingData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, true)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54613395-45c7-4815-a86a-0d5a8c032a8c", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product header details", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit/Delete product in pack should check the product header details", + "timedOut": false, + "duration": 44, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkProductHeaderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductHeaderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(pricingData.priceTaxExcluded, 20)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 3:\n productHeaderSummary = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equal(\"\\u20AC\".concat((pricingData.priceTaxExcluded.toFixed(2)), \" tax excl.\")),\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equal(\"\\u20AC\".concat((pricingData.priceTaxExcluded + taxValue).toFixed(2), \" tax incl. (tax rule: 20%)\")),\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal('100 in stock'),\n (0, chai_1.expect)(productHeaderSummary.reference).to.contains(newProductData.reference),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ddf6ec8-3371-4f0d-bbf6-f6709f6b472a", + "parentUUID": "25156112-0ecd-4212-93a5-7d2c0202392e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2daf83ee-5ec2-490b-b7b9-d3195ddf3bb7", + "3eb1d2bb-4c47-47dd-ac20-28bd3315ba9b", + "e020e918-fcf1-4696-ac46-0c6b76e34954", + "dade6ca0-b448-4ebc-902b-e394c7c7d5d2", + "f727ed06-2ecd-49fa-95b1-45de279e699a", + "0bb6fc00-98c5-4256-8ebf-0a29f6b959e5", + "f50163a5-99e3-4760-9286-ef00078eba96", + "54613395-45c7-4815-a86a-0d5a8c032a8c", + "1ddf6ec8-3371-4f0d-bbf6-f6709f6b472a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8502, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "16b7a098-0887-4603-ae36-a9f071a17056", + "title": "Check product in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check product in FO should preview product", + "timedOut": false, + "duration": 1930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_previewProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d80e8d79-6bfa-4633-85bc-cc438da719b6", + "parentUUID": "16b7a098-0887-4603-ae36-a9f071a17056", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check product in FO should check all product information", + "timedOut": false, + "duration": 142, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkAllProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(pricingData.priceTaxExcluded, 20)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(newProductData.name),\n (0, chai_1.expect)(result.price.toFixed(2)).to.equal((pricingData.priceTaxExcluded + taxValue).toFixed(2)),\n (0, chai_1.expect)(result.summary).to.equal(newProductData.summary),\n (0, chai_1.expect)(result.description).to.equal(newProductData.description),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1faad2fc-093b-4081-b81e-bbcb2e626856", + "parentUUID": "16b7a098-0887-4603-ae36-a9f071a17056", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mug The best is yet to come' in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check product in FO should check the product 'Mug The best is yet to come' in the pack", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkProductInPack0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInPackList(page, index + 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.coverImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.product.name),\n (0, chai_1.expect)(result.price).to.equal(\"\\u20AC\".concat(test.args.product.finalPrice.toFixed(2))),\n (0, chai_1.expect)(result.quantity).to.equal(test.args.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b03d3a05-cda8-40f9-8d37-66344972a6bb", + "parentUUID": "16b7a098-0887-4603-ae36-a9f071a17056", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mountain fox - Vector graphics' in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check product in FO should check the product 'Mountain fox - Vector graphics' in the pack", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkProductInPack1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInPackList(page, index + 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.coverImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.product.name),\n (0, chai_1.expect)(result.price).to.equal(\"\\u20AC\".concat(test.args.product.finalPrice.toFixed(2))),\n (0, chai_1.expect)(result.quantity).to.equal(test.args.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8812263d-a6d6-4d8f-8ee4-c0f6cda1e198", + "parentUUID": "16b7a098-0887-4603-ae36-a9f071a17056", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Customizable mug' in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check product in FO should check the product 'Customizable mug' in the pack", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkProductInPack2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInPackList(page, index + 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.coverImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.product.name),\n (0, chai_1.expect)(result.price).to.equal(\"\\u20AC\".concat(test.args.product.finalPrice.toFixed(2))),\n (0, chai_1.expect)(result.quantity).to.equal(test.args.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "804f078f-bce2-4787-af53-8f7b3c52e3f4", + "parentUUID": "16b7a098-0887-4603-ae36-a9f071a17056", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d80e8d79-6bfa-4633-85bc-cc438da719b6", + "1faad2fc-093b-4081-b81e-bbcb2e626856", + "b03d3a05-cda8-40f9-8d37-66344972a6bb", + "8812263d-a6d6-4d8f-8ee4-c0f6cda1e198", + "804f078f-bce2-4787-af53-8f7b3c52e3f4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2139, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6d7b1089-e132-4da5-bd91-025a3b7fcd02", + "title": "Edit product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit product should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e10361c-8c01-4987-ac18-0b4692eeaa11", + "parentUUID": "6d7b1089-e132-4da5-bd91-025a3b7fcd02", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the created product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Edit product should edit the created product", + "timedOut": false, + "duration": 5022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_editProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, editProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8034b537-9baa-4c46-a7b9-ef6c4a3e7913", + "parentUUID": "6d7b1089-e132-4da5-bd91-025a3b7fcd02", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4e10361c-8c01-4987-ac18-0b4692eeaa11", + "8034b537-9baa-4c46-a7b9-ef6c4a3e7913" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5026, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8f33196f-8b8d-46d7-91b5-5ed1cfe438ec", + "title": "Check edited product in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check edited product in FO should preview product", + "timedOut": false, + "duration": 1759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_previewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6c2e3c4-4c41-4780-a8c8-a48bbeded92c", + "parentUUID": "8f33196f-8b8d-46d7-91b5-5ed1cfe438ec", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check edited product in FO should check all product information", + "timedOut": false, + "duration": 138, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(editProductData.priceTaxExcluded, 10)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(editProductData.name),\n (0, chai_1.expect)(result.price.toFixed(2)).to.equal((editProductData.priceTaxExcluded + taxValue).toFixed(2)),\n (0, chai_1.expect)(result.summary).to.equal(editProductData.summary),\n (0, chai_1.expect)(result.description).to.equal(editProductData.description),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "515aacab-3cf6-4544-a6a0-335e93e5e11d", + "parentUUID": "8f33196f-8b8d-46d7-91b5-5ed1cfe438ec", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mug The best is yet to come' in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check edited product in FO should check the product 'Mug The best is yet to come' in the pack", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkEditProductInPack0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEditProductInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInPackList(page, index + 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.coverImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.product.name),\n (0, chai_1.expect)(result.price).to.equal(\"\\u20AC\".concat(test.args.product.finalPrice.toFixed(2))),\n (0, chai_1.expect)(result.quantity).to.equal(test.args.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97e216bb-2578-4336-8b1e-7aac79576607", + "parentUUID": "8f33196f-8b8d-46d7-91b5-5ed1cfe438ec", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mountain fox - Vector graphics' in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check edited product in FO should check the product 'Mountain fox - Vector graphics' in the pack", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkEditProductInPack1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEditProductInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInPackList(page, index + 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.coverImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.product.name),\n (0, chai_1.expect)(result.price).to.equal(\"\\u20AC\".concat(test.args.product.finalPrice.toFixed(2))),\n (0, chai_1.expect)(result.quantity).to.equal(test.args.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecd92191-c11f-4582-9cc3-f0406cd372e9", + "parentUUID": "8f33196f-8b8d-46d7-91b5-5ed1cfe438ec", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Brown bear - Vector graphics' in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check edited product in FO should check the product 'Brown bear - Vector graphics' in the pack", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkEditProductInPack2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEditProductInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInPackList(page, index + 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.coverImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.product.name),\n (0, chai_1.expect)(result.price).to.equal(\"\\u20AC\".concat(test.args.product.finalPrice.toFixed(2))),\n (0, chai_1.expect)(result.quantity).to.equal(test.args.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9787a13-3d3a-484c-b65f-a2c07243d313", + "parentUUID": "8f33196f-8b8d-46d7-91b5-5ed1cfe438ec", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Customizable mug' in the pack", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Check edited product in FO should check the product 'Customizable mug' in the pack", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_checkEditProductInPack3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEditProductInPack\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInPackList(page, index + 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(test.args.product.coverImage),\n (0, chai_1.expect)(result.name).to.equal(test.args.product.name),\n (0, chai_1.expect)(result.price).to.equal(\"\\u20AC\".concat(test.args.product.finalPrice.toFixed(2))),\n (0, chai_1.expect)(result.quantity).to.equal(test.args.quantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e10176ab-4236-4f88-abde-9be18201ca15", + "parentUUID": "8f33196f-8b8d-46d7-91b5-5ed1cfe438ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e6c2e3c4-4c41-4780-a8c8-a48bbeded92c", + "515aacab-3cf6-4544-a6a0-335e93e5e11d", + "97e216bb-2578-4336-8b1e-7aac79576607", + "ecd92191-c11f-4582-9cc3-f0406cd372e9", + "e9787a13-3d3a-484c-b65f-a2c07243d313", + "e10176ab-4236-4f88-abde-9be18201ca15" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1989, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1829fb4e-62ce-4be5-8a65-310442835b36", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/04_CRUDPackOfProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Delete product should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a0c5f92-82d2-46b1-a039-4723cf420706", + "parentUUID": "1829fb4e-62ce-4be5-8a65-310442835b36", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : CRUD pack of products Delete product should delete product", + "timedOut": false, + "duration": 1522, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDPackOfProducts_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e27e2cf-2b36-4143-a504-e515ff9f6fa9", + "parentUUID": "1829fb4e-62ce-4be5-8a65-310442835b36", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9a0c5f92-82d2-46b1-a039-4723cf420706", + "3e27e2cf-2b36-4143-a504-e515ff9f6fa9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1527, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2c807b09-f3b6-48e6-8627-24a73c86a171", + "title": "BO - Catalog - Products : CRUD virtual product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : CRUD virtual product\"", + "fullTitle": "BO - Catalog - Products : CRUD virtual product \"before all\" hook in \"BO - Catalog - Products : CRUD virtual product\"", + "timedOut": false, + "duration": 170, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 4];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.coverImage)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n if (!newProductData.thumbImage) return [3 /*break*/, 6];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.thumbImage)];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6: return [4 /*yield*/, files_1.default.generateImage(newProductData.fileName)];\n case 7:\n _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n mails.push(email);\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21368861-0aea-4d95-85a0-8b10cb2e94b3", + "parentUUID": "2c807b09-f3b6-48e6-8627-24a73c86a171", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : CRUD virtual product\"", + "fullTitle": "BO - Catalog - Products : CRUD virtual product \"after all\" hook in \"BO - Catalog - Products : CRUD virtual product\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 3];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.coverImage)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n if (!newProductData.thumbImage) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.thumbImage)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, files_1.default.deleteFile(newProductData.fileName)];\n case 6:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ac6e75b4-703e-4487-b27f-cbdb8672aa4b", + "parentUUID": "2c807b09-f3b6-48e6-8627-24a73c86a171", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "ed9ac8aa-c87d-48ea-a198-95cfa6516e2a", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Catalog - Products : CRUD virtual product PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "392c75b8-6eae-4045-bdae-52b32dc0767e", + "parentUUID": "ed9ac8aa-c87d-48ea-a198-95cfa6516e2a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Catalog - Products : CRUD virtual product PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "37051591-053a-4d8e-b06c-1f93b79827ac", + "parentUUID": "ed9ac8aa-c87d-48ea-a198-95cfa6516e2a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD virtual product PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "676adbce-174c-4cd1-8cf3-d44d5edb31bd", + "parentUUID": "ed9ac8aa-c87d-48ea-a198-95cfa6516e2a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5845bea4-67b6-4040-a447-6156586413ea", + "parentUUID": "ed9ac8aa-c87d-48ea-a198-95cfa6516e2a", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Catalog - Products : CRUD virtual product PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6533a9f4-8d46-438f-9585-c5dc274c97b1", + "parentUUID": "ed9ac8aa-c87d-48ea-a198-95cfa6516e2a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "676adbce-174c-4cd1-8cf3-d44d5edb31bd", + "5845bea4-67b6-4040-a447-6156586413ea", + "6533a9f4-8d46-438f-9585-c5dc274c97b1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7215, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a112796d-ab62-41f6-84ae-a93ab5c4b923", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "834f0b08-8de0-4c8b-ac5e-51c715db49cc", + "parentUUID": "a112796d-ab62-41f6-84ae-a93ab5c4b923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3be93afe-7156-44f8-bfee-da8c7434948d", + "parentUUID": "a112796d-ab62-41f6-84ae-a93ab5c4b923", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "935fcd2a-dbcb-42bf-94bb-b5a438ef8729", + "parentUUID": "a112796d-ab62-41f6-84ae-a93ab5c4b923", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Virtual product'", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should choose 'Virtual product'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_chooseVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31dce106-d461-41bf-89f9-c9a08d2e6cad", + "parentUUID": "a112796d-ab62-41f6-84ae-a93ab5c4b923", + "isHook": false, + "skipped": false + }, + { + "title": "should check the virtual product description", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should check the virtual product description", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_checkVirtualProductDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkVirtualProductDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.virtualProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03f6f2de-424b-4edc-aa38-caef4dd7cc7f", + "parentUUID": "a112796d-ab62-41f6-84ae-a93ab5c4b923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToNewFoProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewFoProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b585fff-91b8-44d7-a51f-74503a46cee7", + "parentUUID": "a112796d-ab62-41f6-84ae-a93ab5c4b923", + "isHook": false, + "skipped": false + }, + { + "title": "should create virtual product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should create virtual product", + "timedOut": false, + "duration": 5607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_createVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "240b3bc5-b368-48f8-afc0-4382d2395452", + "parentUUID": "a112796d-ab62-41f6-84ae-a93ab5c4b923", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "834f0b08-8de0-4c8b-ac5e-51c715db49cc", + "3be93afe-7156-44f8-bfee-da8c7434948d", + "935fcd2a-dbcb-42bf-94bb-b5a438ef8729", + "31dce106-d461-41bf-89f9-c9a08d2e6cad", + "03f6f2de-424b-4edc-aa38-caef4dd7cc7f", + "6b585fff-91b8-44d7-a51f-74503a46cee7", + "240b3bc5-b368-48f8-afc0-4382d2395452" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13436, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8cd6b3bb-96a9-476a-b17b-82fb7daa1f88", + "title": "View product in BO & FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the product header details", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO should check the product header details", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_checkProductHeaderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductHeaderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(newProductData.priceTaxExcluded, newProductData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 3:\n productHeaderSummary = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equal(\"\\u20AC\".concat((newProductData.priceTaxExcluded.toFixed(2)), \" tax excl.\")),\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equal(\"\\u20AC\".concat((newProductData.priceTaxExcluded + taxValue).toFixed(2), \" tax incl. (tax rule: \").concat(newProductData.tax, \"%)\")),\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal(\"\".concat(newProductData.quantity, \" in stock\")),\n (0, chai_1.expect)(productHeaderSummary.reference).to.contains(newProductData.reference),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a298d324-16be-4f7e-a035-a5f2292dca1f", + "parentUUID": "8cd6b3bb-96a9-476a-b17b-82fb7daa1f88", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_checkSaveButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSaveButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal(add_1.default.saveAndPublishButtonName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e03281f-922f-456a-847a-69c80e061963", + "parentUUID": "8cd6b3bb-96a9-476a-b17b-82fb7daa1f88", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO should preview product", + "timedOut": false, + "duration": 1858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa914cd2-45d6-42b8-8f52-8ff3cede4069", + "parentUUID": "8cd6b3bb-96a9-476a-b17b-82fb7daa1f88", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO should check all product information", + "timedOut": false, + "duration": 145, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(newProductData.priceTaxExcluded, newProductData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(newProductData.name),\n (0, chai_1.expect)(result.price.toFixed(2)).to.equal((newProductData.priceTaxExcluded + taxValue).toFixed(2)),\n (0, chai_1.expect)(result.summary).to.equal(newProductData.summary),\n (0, chai_1.expect)(result.description).to.equal(newProductData.description),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6da91caf-eef1-46b7-b801-6f4577824168", + "parentUUID": "8cd6b3bb-96a9-476a-b17b-82fb7daa1f88", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "720eff55-265c-4b54-b347-a881086e1302", + "title": "Create order to check uploaded file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add product to cart", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should add product to cart", + "timedOut": false, + "duration": 5455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 2:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5688f37c-500d-40da-9ab4-4ca1c9394cd9", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and sign in", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should proceed to checkout and sign in", + "timedOut": false, + "duration": 1335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d44a99ae-f4fd-40bb-a330-1537b47dcaee", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should go to payment step", + "timedOut": false, + "duration": 294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6dfb4ba0-e466-43bd-aa70-bade48085ff5", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should pay the order", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should pay the order", + "timedOut": false, + "duration": 1443, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_payTheOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'payTheOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "779ca54e-acc8-4528-83f0-49d6c7385784", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80692f27-b878-4715-8ef8-b16fddbe099c", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c3cca37-f8dd-49fa-bf52-b506aac3abd9", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should update order status", + "timedOut": false, + "duration": 1439, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cd03eb1-28ba-4f1b-9203-be05aa71a86f", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should view my shop", + "timedOut": false, + "duration": 1088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7474ee74-0c75-4f46-af56-a49f4add3970", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should go to my account page", + "timedOut": false, + "duration": 720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acd529de-7fc2-48ed-b378-99612ffb22f7", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should go to order history page", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df3f5614-c373-4a6f-81a4-53777a3a40f7", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should go to order details page", + "timedOut": false, + "duration": 767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da819f37-4723-4ed2-9428-923517d01845", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should download the file", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should download the file", + "timedOut": false, + "duration": 256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_checkDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDownloadFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.clickOnDownloadLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(newProductData.fileName, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d85183f4-6642-43df-bbd3-7a764c7e36fd", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View product in BO & FO Create order to check uploaded file should check if the mail is in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_checkIfMailIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfMailIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n // 0 : [Mon Shop] Awaiting bank wire payment\n // 1 : [Mon Shop] Order confirmation\n // 2 : [Mon Shop] The virtual product that you bought is available for download\n // 3 : [Mon Shop] Payment accepted\n (0, chai_1.expect)(mails.length).to.be.gte(3);\n (0, chai_1.expect)(mails[2].subject).to.be.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] The virtual product that you bought is available for download\"));\n (0, chai_1.expect)(mails[2].text).to.contains('Product(s) to download');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06231c0f-4a79-4def-841f-8e7e258d46a1", + "parentUUID": "720eff55-265c-4b54-b347-a881086e1302", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5688f37c-500d-40da-9ab4-4ca1c9394cd9", + "d44a99ae-f4fd-40bb-a330-1537b47dcaee", + "6dfb4ba0-e466-43bd-aa70-bade48085ff5", + "779ca54e-acc8-4528-83f0-49d6c7385784", + "80692f27-b878-4715-8ef8-b16fddbe099c", + "5c3cca37-f8dd-49fa-bf52-b506aac3abd9", + "4cd03eb1-28ba-4f1b-9203-be05aa71a86f", + "7474ee74-0c75-4f46-af56-a49f4add3970", + "acd529de-7fc2-48ed-b378-99612ffb22f7", + "df3f5614-c373-4a6f-81a4-53777a3a40f7", + "da819f37-4723-4ed2-9428-923517d01845", + "d85183f4-6642-43df-bbd3-7a764c7e36fd", + "06231c0f-4a79-4def-841f-8e7e258d46a1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17295, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a298d324-16be-4f7e-a035-a5f2292dca1f", + "6e03281f-922f-456a-847a-69c80e061963", + "fa914cd2-45d6-42b8-8f52-8ff3cede4069", + "6da91caf-eef1-46b7-b801-6f4577824168" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2053, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ca236bf6-bd0e-457b-8191-5a75160de3e7", + "title": "Edit product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should close the FO page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should close the FO page", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fea0319-b432-4b37-8189-cf67624ad514", + "parentUUID": "ca236bf6-bd0e-457b-8191-5a75160de3e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToProductsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1df31d4-1d36-4b03-977b-de614bf823cb", + "parentUUID": "ca236bf6-bd0e-457b-8191-5a75160de3e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should go to the first product page", + "timedOut": false, + "duration": 1126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goToFirstProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afe70e52-5524-45f4-8c0e-52c1cefea02d", + "parentUUID": "ca236bf6-bd0e-457b-8191-5a75160de3e7", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the created product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should edit the created product", + "timedOut": false, + "duration": 3164, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_editCreatedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editCreatedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, editProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "393fef35-ec2e-4361-a9f5-73f5640ebfb9", + "parentUUID": "ca236bf6-bd0e-457b-8191-5a75160de3e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product header details", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should check the product header details", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_checkEditedProductHeaderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductHeaderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(editProductData.priceTaxExcluded, editProductData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 3:\n productHeaderSummary = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equal(\"\\u20AC\".concat((editProductData.priceTaxExcluded.toFixed(2)), \" tax excl.\")),\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equal(\"\\u20AC\".concat((editProductData.priceTaxExcluded + taxValue).toFixed(2), \" tax incl. (tax rule: \").concat(editProductData.tax, \"%)\")),\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal(\"\".concat(editProductData.quantity + newProductData.quantity - 1, \" in stock\")),\n (0, chai_1.expect)(productHeaderSummary.reference).to.contains(editProductData.reference),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db6da1a8-25c9-4d0c-9924-797025beb26f", + "parentUUID": "ca236bf6-bd0e-457b-8191-5a75160de3e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9fea0319-b432-4b37-8189-cf67624ad514", + "f1df31d4-1d36-4b03-977b-de614bf823cb", + "afe70e52-5524-45f4-8c0e-52c1cefea02d", + "393fef35-ec2e-4361-a9f5-73f5640ebfb9", + "db6da1a8-25c9-4d0c-9924-797025beb26f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9115, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f985ada9-b95b-40a1-9628-3fa0c6b68a11", + "title": "View edited product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View edited product should preview product", + "timedOut": false, + "duration": 1848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_previewEditedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewEditedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "339e1b30-6b4e-42e1-998f-ee0e2fd3e347", + "parentUUID": "f985ada9-b95b-40a1-9628-3fa0c6b68a11", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View edited product should check all product information", + "timedOut": false, + "duration": 141, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_checkEditedProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(editProductData.priceTaxExcluded, editProductData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(editProductData.name),\n (0, chai_1.expect)(result.price.toFixed(2)).to.equal((editProductData.priceTaxExcluded + taxValue).toFixed(2)),\n (0, chai_1.expect)(result.description).to.equal(editProductData.description),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8906177f-9e7d-4087-9962-c44b6e61371c", + "parentUUID": "f985ada9-b95b-40a1-9628-3fa0c6b68a11", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD virtual product View edited product should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "332a1681-7b83-4c8c-9cff-558c39112e32", + "parentUUID": "f985ada9-b95b-40a1-9628-3fa0c6b68a11", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "339e1b30-6b4e-42e1-998f-ee0e2fd3e347", + "8906177f-9e7d-4087-9962-c44b6e61371c", + "332a1681-7b83-4c8c-9cff-558c39112e32" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1995, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c83ed5b8-115a-44de-a71d-760742bee7b9", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Delete product should delete product", + "timedOut": false, + "duration": 1499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c3dfba8-63a1-4aab-98d8-77cf55f9e454", + "parentUUID": "c83ed5b8-115a-44de-a71d-760742bee7b9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2c3dfba8-63a1-4aab-98d8-77cf55f9e454" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1499, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6425ee77-bb40-4722-9ce5-a9ce7f57aeeb", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/05_CRUDVirtualProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Catalog - Products : CRUD virtual product POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd1b5451-429f-4f2f-b4b2-a91ee3d30068", + "parentUUID": "6425ee77-bb40-4722-9ce5-a9ce7f57aeeb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Catalog - Products : CRUD virtual product POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "aa53c2ec-f27d-4022-8e72-a7a5e92f1486", + "parentUUID": "6425ee77-bb40-4722-9ce5-a9ce7f57aeeb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD virtual product POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea564682-cffd-4564-b510-79cb5dcb9f9f", + "parentUUID": "6425ee77-bb40-4722-9ce5-a9ce7f57aeeb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_postTest_1_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cab37a08-a9d9-4286-931f-e69c8f3225cb", + "parentUUID": "6425ee77-bb40-4722-9ce5-a9ce7f57aeeb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Catalog - Products : CRUD virtual product POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_CRUDVirtualProduct_postTest_1_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d4212f6-adf3-4bac-afb3-19f2c036b8de", + "parentUUID": "6425ee77-bb40-4722-9ce5-a9ce7f57aeeb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ea564682-cffd-4564-b510-79cb5dcb9f9f", + "cab37a08-a9d9-4286-931f-e69c8f3225cb", + "9d4212f6-adf3-4bac-afb3-19f2c036b8de" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6963, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6669cc32-fd51-43c5-a5a7-c4ec572360a4", + "title": "BO - Catalog - Products : Duplicate product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/06_duplicateProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/06_duplicateProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Duplicate product\"", + "fullTitle": "BO - Catalog - Products : Duplicate product \"before all\" hook in \"BO - Catalog - Products : Duplicate product\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ae7fe4f-0c9d-4393-afa9-eeaa69832de4", + "parentUUID": "6669cc32-fd51-43c5-a5a7-c4ec572360a4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Duplicate product\"", + "fullTitle": "BO - Catalog - Products : Duplicate product \"after all\" hook in \"BO - Catalog - Products : Duplicate product\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1bcc8e0a-66e0-49b8-b7e6-2308c5fc5ffe", + "parentUUID": "6669cc32-fd51-43c5-a5a7-c4ec572360a4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "title": "Duplicate product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/06_duplicateProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/06_duplicateProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should login in BO", + "timedOut": false, + "duration": 1782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63c5f378-8ed8-4af6-9ac1-5936ef7168b9", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3354e67-5a34-4a29-8ec6-903d603abf3c", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of products", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should get number of products", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromHeader(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bce18cb7-9c24-4fe0-b73c-db62bb48efde", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by reference 'demo_14'", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should filter by reference 'demo_14'", + "timedOut": false, + "duration": 1269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_filterByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'reference', products_2.default.demo_14.reference)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3a642bd-17e3-49ba-a12b-31d59ec67616", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should click on duplicate button", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should click on duplicate button", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_clickOnDuplicateProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDuplicateProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDuplicateProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "779c1531-1d62-475d-9116-9bcff70ba93f", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should duplicate product", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should duplicate product", + "timedOut": false, + "duration": 1647, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_duplicateProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'duplicateProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(add_1.default.successfulDuplicateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "626aca69-61ac-4dec-b6d8-2017eae99d71", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should click on duplicate button from the footer of create product page", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should click on duplicate button from the footer of create product page", + "timedOut": false, + "duration": 1465, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_clickDuplicateFromFooterPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickDuplicateFromFooterPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.duplicateProduct(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(add_1.default.successfulDuplicateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8a7dc60-3f94-487c-8f6c-fbd83a2670f3", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Go to catalog' button", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should click on 'Go to catalog' button", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_goToCatalogPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f19224b7-806a-44b6-b7fd-0326077643cb", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of duplicated products", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should check the number of duplicated products", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterDuplicate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 2:\n numberOfProductsAfterDuplicate = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterDuplicate).to.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d032ba1-aff3-40a4-ba10-3039effb2c4a", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + }, + { + "title": "should check the name of the duplicated product", + "fullTitle": "BO - Catalog - Products : Duplicate product Duplicate product should check the name of the duplicated product", + "timedOut": false, + "duration": 356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_checkNameDuplicatedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNameDuplicatedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', 'copy of')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contain(\"copy of copy of \".concat(products_2.default.demo_14.name));\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 2)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contain(\"copy of \".concat(products_2.default.demo_14.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba9f72d9-4397-449d-9965-8244d6df0eb7", + "parentUUID": "2e42bac9-b1f2-40c5-b516-f9817d549946", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "63c5f378-8ed8-4af6-9ac1-5936ef7168b9", + "a3354e67-5a34-4a29-8ec6-903d603abf3c", + "bce18cb7-9c24-4fe0-b73c-db62bb48efde", + "f3a642bd-17e3-49ba-a12b-31d59ec67616", + "779c1531-1d62-475d-9116-9bcff70ba93f", + "626aca69-61ac-4dec-b6d8-2017eae99d71", + "b8a7dc60-3f94-487c-8f6c-fbd83a2670f3", + "f19224b7-806a-44b6-b7fd-0326077643cb", + "1d032ba1-aff3-40a4-ba10-3039effb2c4a", + "ba9f72d9-4397-449d-9965-8244d6df0eb7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13547, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f289331d-8707-43b2-bbd6-b44b82c7c5f8", + "title": "Bulk delete duplicated products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/06_duplicateProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/06_duplicateProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should select the 2 products", + "fullTitle": "BO - Catalog - Products : Duplicate product Bulk delete duplicated products should select the 2 products", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae587537-3aaf-4ddc-ba28-c211f50ed130", + "parentUUID": "f289331d-8707-43b2-bbd6-b44b82c7c5f8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Catalog - Products : Duplicate product Bulk delete duplicated products should click on bulk actions button", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_clickOnBulkDeleteButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBulkDeleteButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal('Deleting 2 products');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "717326c0-0fdb-42be-9a9d-a0f58a4761b8", + "parentUUID": "f289331d-8707-43b2-bbd6-b44b82c7c5f8", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete products", + "fullTitle": "BO - Catalog - Products : Duplicate product Bulk delete duplicated products should bulk delete products", + "timedOut": false, + "duration": 490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_bulkDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal('Deleting 2 / 2 products');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ed22711-8f74-46c0-bc85-3616a4e664fc", + "parentUUID": "f289331d-8707-43b2-bbd6-b44b82c7c5f8", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Catalog - Products : Duplicate product Bulk delete duplicated products should close progress modal", + "timedOut": false, + "duration": 473, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_closeProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeProgressModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'delete')];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96a4421b-e83d-4db5-baff-7565b49fe245", + "parentUUID": "f289331d-8707-43b2-bbd6-b44b82c7c5f8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Duplicate product Bulk delete duplicated products should reset filter", + "timedOut": false, + "duration": 2892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_duplicateProduct_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "568de64b-9084-4e71-8f1d-421a250a1442", + "parentUUID": "f289331d-8707-43b2-bbd6-b44b82c7c5f8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ae587537-3aaf-4ddc-ba28-c211f50ed130", + "717326c0-0fdb-42be-9a9d-a0f58a4761b8", + "5ed22711-8f74-46c0-bc85-3616a4e664fc", + "96a4421b-e83d-4db5-baff-7565b49fe245", + "568de64b-9084-4e71-8f1d-421a250a1442" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4191, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1334ff59-fa9c-40bf-a9d4-7b77154471bd", + "title": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions\"", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions \"before all\" hook in \"BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "520af458-f64d-448f-ba37-690fac28462e", + "parentUUID": "1334ff59-fa9c-40bf-a9d4-7b77154471bd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions\"", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions \"after all\" hook in \"BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ca5531e8-95e9-4fcb-bc74-0763c9f7042c", + "parentUUID": "1334ff59-fa9c-40bf-a9d4-7b77154471bd", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "382d85ab-7810-404e-8d95-b34518a3ccd6", + "title": "Create first product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create first product should login in BO", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec3f0426-946d-4c9d-8eb2-94f11df8382d", + "parentUUID": "382d85ab-7810-404e-8d95-b34518a3ccd6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create first product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "966c2a07-519f-4e8d-92ef-03cc1a8eb294", + "parentUUID": "382d85ab-7810-404e-8d95-b34518a3ccd6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create first product should reset filter and get number of products", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fd3cd16-9a1f-43db-8077-5567a1918acc", + "parentUUID": "382d85ab-7810-404e-8d95-b34518a3ccd6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create first product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25eb0029-2d82-45f8-b904-bd619b79a967", + "parentUUID": "382d85ab-7810-404e-8d95-b34518a3ccd6", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create first product should choose 'Standard product'", + "timedOut": false, + "duration": 859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, firstProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b1173f6-5556-415a-9a12-56c6770a66bd", + "parentUUID": "382d85ab-7810-404e-8d95-b34518a3ccd6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create first product should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c97f3ff6-712f-434c-9212-79da0faaa956", + "parentUUID": "382d85ab-7810-404e-8d95-b34518a3ccd6", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create first product should create standard product", + "timedOut": false, + "duration": 5283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, firstProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a73a38b8-1fab-4a13-b588-eff0ae96c81c", + "parentUUID": "382d85ab-7810-404e-8d95-b34518a3ccd6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ec3f0426-946d-4c9d-8eb2-94f11df8382d", + "966c2a07-519f-4e8d-92ef-03cc1a8eb294", + "1fd3cd16-9a1f-43db-8077-5567a1918acc", + "25eb0029-2d82-45f8-b904-bd619b79a967", + "9b1173f6-5556-415a-9a12-56c6770a66bd", + "c97f3ff6-712f-434c-9212-79da0faaa956", + "a73a38b8-1fab-4a13-b588-eff0ae96c81c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13164, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0cd04ffb-6ac0-4e8d-83d5-3a4e58423a79", + "title": "Create second product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create second product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_clickOnNewProductButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f487bf74-4270-440d-aa22-a019fe4d3830", + "parentUUID": "0cd04ffb-6ac0-4e8d-83d5-3a4e58423a79", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create second product should choose 'Standard product'", + "timedOut": false, + "duration": 2444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_chooseStandardProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, secondProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isChooseProductIframeVisible(page)];\n case 3:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad7e73ce-cf81-4c4b-b653-140a8b1b9dbc", + "parentUUID": "0cd04ffb-6ac0-4e8d-83d5-3a4e58423a79", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Create second product should create product", + "timedOut": false, + "duration": 4835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_createSecondProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSecondProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, secondProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bbb21e5-4357-4eac-bf51-e674f7133d12", + "parentUUID": "0cd04ffb-6ac0-4e8d-83d5-3a4e58423a79", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f487bf74-4270-440d-aa22-a019fe4d3830", + "ad7e73ce-cf81-4c4b-b653-140a8b1b9dbc", + "4bbb21e5-4357-4eac-bf51-e674f7133d12" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7569, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "074a9d75-83dd-4fe2-a91d-9a4a7ce0b78a", + "title": "Go to catalog page and filter by the name of created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Go to catalog' button", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Go to catalog page and filter by the name of created products should click on 'Go to catalog' button", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_goToCatalogPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87395731-8ffd-4eac-ae26-3989034d3f88", + "parentUUID": "074a9d75-83dd-4fe2-a91d-9a4a7ce0b78a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Name' and check result", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Go to catalog page and filter by the name of created products should filter list by 'Name' and check result", + "timedOut": false, + "duration": 1287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', 'myFavoriteProduct', 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(2);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('myFavoriteProduct');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9af8d21-fd6f-4a14-b08b-640d4f7ec5fa", + "parentUUID": "074a9d75-83dd-4fe2-a91d-9a4a7ce0b78a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "87395731-8ffd-4eac-ae26-3989034d3f88", + "f9af8d21-fd6f-4a14-b08b-640d4f7ec5fa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2161, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0710d912-f924-47ce-aa85-c889da82d769", + "title": "Bulk enable created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should select the 2 products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk enable created products should select the 2 products", + "timedOut": false, + "duration": 32, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_selectProducts0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectProducts\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "325a55e4-69f1-4268-9a2f-61541d37b90f", + "parentUUID": "0710d912-f924-47ce-aa85-c889da82d769", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk enable created products should click on bulk actions button", + "timedOut": false, + "duration": 285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_clickOnBulkActionsButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnBulkActionsButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, test.args.action)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"\".concat(test.args.message, \" \").concat(test.args.productsNumber, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f70f342-5ae8-4596-a0a1-f0ffca29d7ff", + "parentUUID": "0710d912-f924-47ce-aa85-c889da82d769", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk enable products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk enable created products should bulk enable products", + "timedOut": false, + "duration": 492, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_bulkenableProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action, \"Product\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, test.args.action)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"\".concat(test.args.message, \" \").concat(test.args.productsNumber, \" / \").concat(test.args.productsNumber, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36a29308-8a7e-40e9-8f4a-8af74f9d0406", + "parentUUID": "0710d912-f924-47ce-aa85-c889da82d769", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk enable created products should close progress modal", + "timedOut": false, + "duration": 498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_closeenableProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"close\".concat(test.args.action, \"ProgressModal\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, test.args.action)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e8f67aa-7c85-46cf-8f49-094282b16c22", + "parentUUID": "0710d912-f924-47ce-aa85-c889da82d769", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "325a55e4-69f1-4268-9a2f-61541d37b90f", + "5f70f342-5ae8-4596-a0a1-f0ffca29d7ff", + "36a29308-8a7e-40e9-8f4a-8af74f9d0406", + "4e8f67aa-7c85-46cf-8f49-094282b16c22" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1307, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0fc8abb4-cb3d-4001-aea4-e7a476af2902", + "title": "Bulk disable created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should select the 2 products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk disable created products should select the 2 products", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_selectProducts1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectProducts\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf11aaf5-7827-4e60-92d2-91b4ec730528", + "parentUUID": "0fc8abb4-cb3d-4001-aea4-e7a476af2902", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk disable created products should click on bulk actions button", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_clickOnBulkActionsButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnBulkActionsButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, test.args.action)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"\".concat(test.args.message, \" \").concat(test.args.productsNumber, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d7bdddf-1359-46c9-9e6b-858b264b2c6a", + "parentUUID": "0fc8abb4-cb3d-4001-aea4-e7a476af2902", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk disable products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk disable created products should bulk disable products", + "timedOut": false, + "duration": 509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_bulkdisableProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action, \"Product\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, test.args.action)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"\".concat(test.args.message, \" \").concat(test.args.productsNumber, \" / \").concat(test.args.productsNumber, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "564a0f58-8919-4ed3-aca6-be7d6a8552a8", + "parentUUID": "0fc8abb4-cb3d-4001-aea4-e7a476af2902", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk disable created products should close progress modal", + "timedOut": false, + "duration": 493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_closedisableProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"close\".concat(test.args.action, \"ProgressModal\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, test.args.action)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bf5d176-8811-4a77-b996-3ead28d06b11", + "parentUUID": "0fc8abb4-cb3d-4001-aea4-e7a476af2902", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cf11aaf5-7827-4e60-92d2-91b4ec730528", + "2d7bdddf-1359-46c9-9e6b-858b264b2c6a", + "564a0f58-8919-4ed3-aca6-be7d6a8552a8", + "6bf5d176-8811-4a77-b996-3ead28d06b11" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1379, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8a484089-3aaa-4c84-aa0e-a6605bc8e816", + "title": "Bulk duplicate created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should select the 2 products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk duplicate created products should select the 2 products", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_selectProducts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectProducts\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6a3f498-4ee6-449b-a335-153f6e142365", + "parentUUID": "8a484089-3aaa-4c84-aa0e-a6605bc8e816", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk duplicate created products should click on bulk actions button", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_clickOnBulkActionsButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnBulkActionsButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, test.args.action)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"\".concat(test.args.message, \" \").concat(test.args.productsNumber, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b51bef29-68d5-4884-92c8-3d498a12d13c", + "parentUUID": "8a484089-3aaa-4c84-aa0e-a6605bc8e816", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk duplicate products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk duplicate created products should bulk duplicate products", + "timedOut": false, + "duration": 607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_bulkduplicateProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action, \"Product\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, test.args.action)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"\".concat(test.args.message, \" \").concat(test.args.productsNumber, \" / \").concat(test.args.productsNumber, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50d8f300-8004-4d44-84d0-2a6654268761", + "parentUUID": "8a484089-3aaa-4c84-aa0e-a6605bc8e816", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk duplicate created products should close progress modal", + "timedOut": false, + "duration": 412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_closeduplicateProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"close\".concat(test.args.action, \"ProgressModal\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, test.args.action)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9159183-7a2d-4a2c-963a-c96ec928f1cf", + "parentUUID": "8a484089-3aaa-4c84-aa0e-a6605bc8e816", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e6a3f498-4ee6-449b-a335-153f6e142365", + "b51bef29-68d5-4884-92c8-3d498a12d13c", + "50d8f300-8004-4d44-84d0-2a6654268761", + "e9159183-7a2d-4a2c-963a-c96ec928f1cf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1368, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8c230bb1-1d1a-42f0-8ff5-f441cc6030aa", + "title": "Bulk delete created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/07_productBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should select the 2 products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk delete created products should select the 2 products", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_selectProducts3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectProducts\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e97f72ee-a264-41c0-9fdc-f1366d34b7cd", + "parentUUID": "8c230bb1-1d1a-42f0-8ff5-f441cc6030aa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk delete created products should click on bulk actions button", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_clickOnBulkActionsButton3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnBulkActionsButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, test.args.action)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"\".concat(test.args.message, \" \").concat(test.args.productsNumber, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0913125b-649a-4b42-bef0-166907aafadb", + "parentUUID": "8c230bb1-1d1a-42f0-8ff5-f441cc6030aa", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk delete created products should bulk delete products", + "timedOut": false, + "duration": 507, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_bulkdeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action, \"Product\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, test.args.action)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"\".concat(test.args.message, \" \").concat(test.args.productsNumber, \" / \").concat(test.args.productsNumber, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "250d2c2b-9f96-4d7d-8913-27a5e9b64600", + "parentUUID": "8c230bb1-1d1a-42f0-8ff5-f441cc6030aa", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk delete created products should close progress modal", + "timedOut": false, + "duration": 461, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_closedeleteProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"close\".concat(test.args.action, \"ProgressModal\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, test.args.action)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91a2deef-a01f-40f2-84d0-a7f54616495c", + "parentUUID": "8c230bb1-1d1a-42f0-8ff5-f441cc6030aa", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Products : Enable, disable, duplicate and Delete products with bulk actions Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_productBulkActions_checkNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductAfterBulkActions;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductAfterBulkActions = _a.sent();\n (0, chai_1.expect)(numberOfProductAfterBulkActions).to.be.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a94ad46c-9fa0-4e43-94de-e66d27a32583", + "parentUUID": "8c230bb1-1d1a-42f0-8ff5-f441cc6030aa", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e97f72ee-a264-41c0-9fdc-f1366d34b7cd", + "0913125b-649a-4b42-bef0-166907aafadb", + "250d2c2b-9f96-4d7d-8913-27a5e9b64600", + "91a2deef-a01f-40f2-84d0-a7f54616495c", + "a94ad46c-9fa0-4e43-94de-e66d27a32583" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4224, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "title": "BO - Catalog - Products : Header", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/08_header.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/08_header.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Header\"", + "fullTitle": "BO - Catalog - Products : Header \"before all\" hook in \"BO - Catalog - Products : Header\"", + "timedOut": false, + "duration": 85, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.generateImage(productCoverImage)];\n case 3:\n _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.coverImage)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f1f2901-7185-4e67-be73-5cd6865fadf0", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Header\"", + "fullTitle": "BO - Catalog - Products : Header \"after all\" hook in \"BO - Catalog - Products : Header\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(productCoverImage)];\n case 2:\n _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 4];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.coverImage)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d5b3d27d-19f7-4f70-a8e3-cfe29b563cc6", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Header should login in BO", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fb43c4c-4b10-4fc1-863a-2a6511d807e2", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Header should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae302cb1-6267-444d-a573-3f6413e5dff3", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Header should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 226, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bdedda7-8ba5-48ed-b6b1-0b0924c5e901", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Catalog - Products : Header should check the standard product description", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_checkStandardProductDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStandardProductDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "952be9f7-48c4-4add-8610-932d8dba3449", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : Header should choose 'Standard product'", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4400219f-8f3e-44e8-8703-d07083474ff3", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : Header should go to new product page", + "timedOut": false, + "duration": 49, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a59fa7d1-5ac6-44d1-971e-1554bed5a3b0", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Header should create standard product", + "timedOut": false, + "duration": 5227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e7e9b75-d29e-4ef9-aea5-308b8d86e894", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Go to catalog' button", + "fullTitle": "BO - Catalog - Products : Header should click on 'Go to catalog' button", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_goToCatalogPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c65914c7-3058-4860-a2b5-0a0ed7eeef3e", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Products : Header should reset filter and get number of products", + "timedOut": false, + "duration": 32, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbd2ad15-d008-4abd-a640-cf4e90a48a9d", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Refined Soft Mouse' and check result", + "fullTitle": "BO - Catalog - Products : Header should filter list by 'Refined Soft Mouse' and check result", + "timedOut": false, + "duration": 1269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_filterListByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', newProductData.name, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.eq(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd211643-5bd1-48e5-ab4d-9d6a4a79ee05", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Products : Header should go to the first product page", + "timedOut": false, + "duration": 1077, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_goToEditPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 4:\n productHeaderSummaryInitial = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0b7eeba-a29f-401a-b972-d864266008c0", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product name (in English)", + "fullTitle": "BO - Catalog - Products : Header should edit the product name (in English)", + "timedOut": false, + "duration": 1656, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_editProductNameEn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductNameEn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, productNameEn, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5107c753-d922-48bb-bc81-c94e0cd3a2ba", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product name (in French)", + "fullTitle": "BO - Catalog - Products : Header should edit the product name (in French)", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_editProductNameFr\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductNameFr', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, productNameFr, 'fr')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0b22cc1-0806-44bd-8fae-74817b7b2945", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the Pricing tab", + "fullTitle": "BO - Catalog - Products : Header should go to the Pricing tab", + "timedOut": false, + "duration": 73, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_goToPricingTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPricingTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'pricing')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a493c6b3-0254-49a7-a60c-245be780113b", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the retail price", + "fullTitle": "BO - Catalog - Products : Header should edit the retail price", + "timedOut": false, + "duration": 1479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_editRetailPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editRetailPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setRetailPrice(page, false, productRetailPriceTaxIncluded)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 4:\n productHeaderSummary = _a.sent();\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equals(\"\\u20AC\".concat(productRetailPriceTaxExcluded.toFixed(2), \" tax excl.\"));\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equals(\"\\u20AC\".concat(productRetailPriceTaxIncluded.toFixed(2), \" tax incl. (tax rule: \").concat(newProductData.tax, \"%)\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5085e3ea-4798-4c62-ace6-e65ab7dbec7e", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the Stocks tab", + "fullTitle": "BO - Catalog - Products : Header should go to the Stocks tab", + "timedOut": false, + "duration": 90, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_goToStocksTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'stock')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'stock')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af1bc7dc-db04-47d7-bb37-f667172b856b", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should add items to stock", + "fullTitle": "BO - Catalog - Products : Header should add items to stock", + "timedOut": false, + "duration": 1419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_addItemsToStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addItemsToStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setQuantityDelta(page, 10)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 4:\n productHeaderSummary = _a.sent();\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal(\"\".concat(productQuantity + 10, \" in stock\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "000bd01e-4fb0-4254-965c-118499817182", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should subtract items to stock", + "fullTitle": "BO - Catalog - Products : Header should subtract items to stock", + "timedOut": false, + "duration": 1472, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_subtractItemsToStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subtractItemsToStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setQuantityDelta(page, -75)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 4:\n productHeaderSummary = _a.sent();\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal(\"\".concat(productQuantity + 10 - 75, \" in stock\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d96a5da-a069-43b9-a345-6fd5760ec287", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the Description tab", + "fullTitle": "BO - Catalog - Products : Header should go to the Description tab", + "timedOut": false, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_goToDescriptionTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDescriptionTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'description')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'description')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b1bb03e-6ff3-47cd-a5a8-da13a8225ee7", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should add image", + "fullTitle": "BO - Catalog - Products : Header should add image", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_addImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numOfImages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.addProductImages(page, [productCoverImage])];\n case 2:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getNumberOfImages(page)];\n case 3:\n numOfImages = _a.sent();\n (0, chai_1.expect)(numOfImages).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "291804d3-3da2-42df-8ec9-050622040981", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should set image information", + "fullTitle": "BO - Catalog - Products : Header should set image information", + "timedOut": false, + "duration": 645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_setImageInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setImageInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setProductImageInformation(page, 2, true, 'Caption EN', 'Caption FR')];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.be.eq(descriptionTab_1.default.settingUpdatedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4e52eb2-80d9-4f85-8784-e4d0368e03d0", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should check image has changed", + "fullTitle": "BO - Catalog - Products : Header should check image has changed", + "timedOut": false, + "duration": 645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_checkImageHasChanged\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImageHasChanged', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 3:\n productHeaderSummary = _a.sent();\n (0, chai_1.expect)(productHeaderSummary.imageUrl).to.be.not.eq(productHeaderSummaryInitial.imageUrl);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c06f8310-efa6-4172-8873-2bd8b124bd4b", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should change product type", + "fullTitle": "BO - Catalog - Products : Header should change product type", + "timedOut": false, + "duration": 1917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_changeProductType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeProductType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.changeProductType(page, 'virtual')];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.be.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7144a654-59ca-40b5-9650-f45ae4004a18", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should check product type has changed", + "fullTitle": "BO - Catalog - Products : Header should check product type has changed", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_checkTypeHasChanged\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productType, isTabVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTypeHasChanged', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductType(page)];\n case 2:\n productType = _a.sent();\n (0, chai_1.expect)(productType).to.be.eq('virtual');\n return [4 /*yield*/, add_1.default.isTabVisible(page, 'stock')];\n case 3:\n isTabVisible = _a.sent();\n (0, chai_1.expect)(isTabVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f09c87cb-361b-4717-af0c-545628decc4a", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the Details tab", + "fullTitle": "BO - Catalog - Products : Header should go to the Details tab", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_goToDetailsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDetailsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'details')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'details')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b737b84e-0ed2-47ba-b97b-9322754b2699", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should set references", + "fullTitle": "BO - Catalog - Products : Header should set references", + "timedOut": false, + "duration": 1683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_setReferences\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setReferences', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setMPN(page, productMPN)];\n case 2:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setUPC(page, productUPC)];\n case 3:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setEAN13(page, productEAN13)];\n case 4:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setISBN(page, productISBN)];\n case 5:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 6:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78b1d36f-4a63-4836-a418-504534a29ea8", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should check references", + "fullTitle": "BO - Catalog - Products : Header should check references", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_checkReferences\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReferences', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 2:\n productHeaderSummary = _a.sent();\n (0, chai_1.expect)(productHeaderSummary.mpn).to.be.eq(productMPN);\n (0, chai_1.expect)(productHeaderSummary.upc).to.be.eq(productUPC);\n (0, chai_1.expect)(productHeaderSummary.ean_13).to.be.eq(productEAN13);\n (0, chai_1.expect)(productHeaderSummary.isbn).to.be.eq(productISBN);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce8fc23e-7a3c-48d7-ac77-75abc1219d50", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should set offline", + "fullTitle": "BO - Catalog - Products : Header should set offline", + "timedOut": false, + "duration": 1468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_setOffline\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setOffline', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ceb07416-3b0f-4235-922a-3ca1402ed851", + "parentUUID": "a0579172-32c4-4d93-a1c3-6c39ca95e4fe", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "title": "POST-TEST: Delete product 'Refined Soft Mouse'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/08_header.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/08_header.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Refined Soft Mouse'\"", + "fullTitle": "BO - Catalog - Products : Header POST-TEST: Delete product 'Refined Soft Mouse' \"before all\" hook in \"POST-TEST: Delete product 'Refined Soft Mouse'\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "272d8ea3-bff1-4d2b-b52e-65aff6d3680d", + "parentUUID": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Refined Soft Mouse'\"", + "fullTitle": "BO - Catalog - Products : Header POST-TEST: Delete product 'Refined Soft Mouse' \"after all\" hook in \"POST-TEST: Delete product 'Refined Soft Mouse'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0873ae1f-ae51-4b17-a04e-9424ef35eb72", + "parentUUID": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Header POST-TEST: Delete product 'Refined Soft Mouse' should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35644a10-ac45-4998-8864-09a1451c415b", + "parentUUID": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Header POST-TEST: Delete product 'Refined Soft Mouse' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_postTest_0_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4a25b5c-a166-4326-86eb-a9905f5542b7", + "parentUUID": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Products : Header POST-TEST: Delete product 'Refined Soft Mouse' should reset all filters", + "timedOut": false, + "duration": 2962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_postTest_0_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fe1da4c-80a6-49c4-a206-abc80987ddf4", + "parentUUID": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Catalog - Products : Header POST-TEST: Delete product 'Refined Soft Mouse' should click on delete product button", + "timedOut": false, + "duration": 272, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_postTest_0_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a64f8ae-f71f-4aa3-9ec0-3ff1b0c0c672", + "parentUUID": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Header POST-TEST: Delete product 'Refined Soft Mouse' should delete product", + "timedOut": false, + "duration": 675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_postTest_0_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bee0567-59a1-42e7-9c9f-f0a94bc518ac", + "parentUUID": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Header POST-TEST: Delete product 'Refined Soft Mouse' should reset filter", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_header_postTest_0_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5407447-a012-46c3-b955-86a52fac1904", + "parentUUID": "c446608d-c802-4c69-ba93-d6b779f5b4db", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "35644a10-ac45-4998-8864-09a1451c415b", + "c4a25b5c-a166-4326-86eb-a9905f5542b7", + "8fe1da4c-80a6-49c4-a206-abc80987ddf4", + "1a64f8ae-f71f-4aa3-9ec0-3ff1b0c0c672", + "3bee0567-59a1-42e7-9c9f-f0a94bc518ac", + "f5407447-a012-46c3-b955-86a52fac1904" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9497, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "4fb43c4c-4b10-4fc1-863a-2a6511d807e2", + "ae302cb1-6267-444d-a573-3f6413e5dff3", + "4bdedda7-8ba5-48ed-b6b1-0b0924c5e901", + "952be9f7-48c4-4add-8610-932d8dba3449", + "4400219f-8f3e-44e8-8703-d07083474ff3", + "a59fa7d1-5ac6-44d1-971e-1554bed5a3b0", + "6e7e9b75-d29e-4ef9-aea5-308b8d86e894", + "c65914c7-3058-4860-a2b5-0a0ed7eeef3e", + "bbd2ad15-d008-4abd-a640-cf4e90a48a9d", + "cd211643-5bd1-48e5-ab4d-9d6a4a79ee05", + "b0b7eeba-a29f-401a-b972-d864266008c0", + "5107c753-d922-48bb-bc81-c94e0cd3a2ba", + "f0b22cc1-0806-44bd-8fae-74817b7b2945", + "a493c6b3-0254-49a7-a60c-245be780113b", + "5085e3ea-4798-4c62-ace6-e65ab7dbec7e", + "af1bc7dc-db04-47d7-bb37-f667172b856b", + "000bd01e-4fb0-4254-965c-118499817182", + "9d96a5da-a069-43b9-a345-6fd5760ec287", + "7b1bb03e-6ff3-47cd-a5a8-da13a8225ee7", + "291804d3-3da2-42df-8ec9-050622040981", + "f4e52eb2-80d9-4f85-8784-e4d0368e03d0", + "c06f8310-efa6-4172-8873-2bd8b124bd4b", + "7144a654-59ca-40b5-9650-f45ae4004a18", + "f09c87cb-361b-4717-af0c-545628decc4a", + "b737b84e-0ed2-47ba-b97b-9322754b2699", + "78b1d36f-4a63-4836-a418-504534a29ea8", + "ce8fc23e-7a3c-48d7-ac77-75abc1219d50", + "ceb07416-3b0f-4235-922a-3ca1402ed851" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 31629, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "title": "BO - Catalog - Products : Footer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/09_footer.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/09_footer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Footer\"", + "fullTitle": "BO - Catalog - Products : Footer \"before all\" hook in \"BO - Catalog - Products : Footer\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfe3577a-3145-4e9f-8b5b-23df3a975a23", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Footer\"", + "fullTitle": "BO - Catalog - Products : Footer \"after all\" hook in \"BO - Catalog - Products : Footer\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "94214206-fd2d-48bc-bad3-b2de12be31cc", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Footer should login in BO", + "timedOut": false, + "duration": 1844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56ad73e9-8d63-48f1-a186-6d2118f2944d", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Footer should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_footer_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d006eae-4bbd-4f7d-b5ec-cd3257f1e3cc", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter a product named \"Mug The adventure begins\"", + "fullTitle": "BO - Catalog - Products : Footer should filter a product named \"Mug The adventure begins\"", + "timedOut": false, + "duration": 1293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_footer_filterProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', products_2.default.demo_12.name, 'input')];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(products_2.default.demo_12.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66131dcf-cc77-4af4-b323-ffcec3b978c8", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product", + "fullTitle": "BO - Catalog - Products : Footer should edit the product", + "timedOut": false, + "duration": 1222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_footer_goToEditPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0190394-e7d4-459a-a61a-42b5263615c1", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": false, + "skipped": false + }, + { + "title": "should duplicate the product", + "fullTitle": "BO - Catalog - Products : Footer should duplicate the product", + "timedOut": false, + "duration": 1402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_footer_duplicateProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'duplicateProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.duplicateProduct(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(add_1.default.successfulDuplicateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51286081-e9ae-4cfc-822f-b5c671de1f19", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the duplicated product", + "fullTitle": "BO - Catalog - Products : Footer should check the duplicated product", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_footer_checkDuplicatedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nameEN, nameFR;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDuplicatedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductName(page, 'en')];\n case 2:\n nameEN = _a.sent();\n (0, chai_1.expect)(nameEN).to.equal(\"copy of \".concat(products_2.default.demo_12.name));\n return [4 /*yield*/, add_1.default.getProductName(page, 'fr')];\n case 3:\n nameFR = _a.sent();\n (0, chai_1.expect)(nameFR).to.equal(\"copie de \".concat(products_2.default.demo_12.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d44842f-a086-42d5-abdf-3659a4b74c25", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the duplicated product", + "fullTitle": "BO - Catalog - Products : Footer should delete the duplicated product", + "timedOut": false, + "duration": 1443, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_footer_deleteDuplicatedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteDuplicatedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(add_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e5d1294-2252-47f2-b061-d73f997a9230", + "parentUUID": "4e6ea9ab-545f-4190-b2f7-a7376ec1c6a4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "56ad73e9-8d63-48f1-a186-6d2118f2944d", + "2d006eae-4bbd-4f7d-b5ec-cd3257f1e3cc", + "66131dcf-cc77-4af4-b323-ffcec3b978c8", + "a0190394-e7d4-459a-a61a-42b5263615c1", + "51286081-e9ae-4cfc-822f-b5c671de1f19", + "6d44842f-a086-42d5-abdf-3659a4b74c25", + "3e5d1294-2252-47f2-b061-d73f997a9230" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12146, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60dc2dfe-d084-4d69-b017-9cfa71a56914", + "title": "BO - Catalog - Products : Description tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/10_descriptionTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/10_descriptionTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Description tab\"", + "fullTitle": "BO - Catalog - Products : Description tab \"before all\" hook in \"BO - Catalog - Products : Description tab\"", + "timedOut": false, + "duration": 77, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.generateImage(productCoverImage)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.generateImage(replaceProductCoverImage)];\n case 4:\n _a.sent();\n if (!productData.coverImage) return [3 /*break*/, 6];\n return [4 /*yield*/, files_1.default.generateImage(productData.coverImage)];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b3e6d1a-cd6c-498d-85ee-f2fdc558c927", + "parentUUID": "60dc2dfe-d084-4d69-b017-9cfa71a56914", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Description tab\"", + "fullTitle": "BO - Catalog - Products : Description tab \"after all\" hook in \"BO - Catalog - Products : Description tab\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(productCoverImage)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(replaceProductCoverImage)];\n case 3:\n _a.sent();\n if (!productData.coverImage) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.deleteFile(productData.coverImage)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cc93a82f-b47d-4d65-a493-5cfc63e99b5c", + "parentUUID": "60dc2dfe-d084-4d69-b017-9cfa71a56914", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/10_descriptionTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/10_descriptionTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Description tab Create product should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1d93df4-25a8-4867-bb00-143450b39f98", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Description tab Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d270d23-f872-4ef1-b449-c44eef28fb1a", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Products : Description tab Create product should reset filter and get number of products", + "timedOut": false, + "duration": 2946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99f60008-e88b-4188-8085-20ea5349facf", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Description tab Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "354030c9-54e5-4aa0-8aec-62814f76e2d7", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : Description tab Create product should choose 'Standard product'", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c76e183-e7b6-409b-a8bc-0870858b08fa", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page and set product name", + "fullTitle": "BO - Catalog - Products : Description tab Create product should go to new product page and set product name", + "timedOut": false, + "duration": 3066, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, productData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, productData.status)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b08d0f35-f4bd-4390-8094-f4adccadc5b1", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should add 3 images", + "fullTitle": "BO - Catalog - Products : Description tab Create product should add 3 images", + "timedOut": false, + "duration": 942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_addImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numOfImages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.addProductImages(page, [productData.coverImage, productCoverImage, replaceProductCoverImage])];\n case 2:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getNumberOfImages(page)];\n case 3:\n numOfImages = _a.sent();\n (0, chai_1.expect)(numOfImages).to.eq(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62fc4b44-3c33-4809-889e-9c1d08d6f7bb", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should set image information", + "fullTitle": "BO - Catalog - Products : Description tab Create product should set image information", + "timedOut": false, + "duration": 556, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_setImageInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setImageInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setProductImageInformation(page, 2, true, 'Caption EN', 'Caption FR')];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.be.eq(descriptionTab_1.default.settingUpdatedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d020453-35cc-4789-8744-49e5acc6f28a", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the magnifying glass", + "fullTitle": "BO - Catalog - Products : Description tab Create product should click on the magnifying glass", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_zoomImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isImageZoomed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'zoomImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.clickOnMagnifyingGlass(page)];\n case 2:\n isImageZoomed = _a.sent();\n (0, chai_1.expect)(isImageZoomed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e2d7743-05dc-4445-b91b-54fd024fdfc6", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should close the image zoom", + "fullTitle": "BO - Catalog - Products : Description tab Create product should close the image zoom", + "timedOut": false, + "duration": 2218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_closeZoom\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isZoomClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeZoom', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.closeImageZoom(page)];\n case 2:\n isZoomClosed = _a.sent();\n (0, chai_1.expect)(isZoomClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52e72096-c855-451c-a3c2-6ce72d276514", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should replace image selection", + "fullTitle": "BO - Catalog - Products : Description tab Create product should replace image selection", + "timedOut": false, + "duration": 103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_replaceImageSelection\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'replaceImageSelection', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.replaceImageSelection(page, replaceProductCoverImage)];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.be.eq(descriptionTab_1.default.settingUpdatedMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "318bf833-1f10-4393-b146-f7ca0a5431e8", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the image", + "fullTitle": "BO - Catalog - Products : Description tab Create product should delete the image", + "timedOut": false, + "duration": 4984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_deleteImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.deleteImage(page)];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.be.eq(descriptionTab_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12a237e1-826e-4138-ab42-09a26cbda556", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should select the first image and click on select all products", + "fullTitle": "BO - Catalog - Products : Description tab Create product should select the first image and click on select all products", + "timedOut": false, + "duration": 240, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_selectProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setProductImageInformation(page, 1, undefined, undefined, undefined, true, false)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c4771ab-56b3-4e81-9305-35c93d56a99f", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should set product description and summary", + "fullTitle": "BO - Catalog - Products : Description tab Create product should set product description and summary", + "timedOut": false, + "duration": 2775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_setProductDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setProductDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setProductDescription(page, productData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b190103-a697-41dd-9803-d3c0891bd39b", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should add category", + "fullTitle": "BO - Catalog - Products : Description tab Create product should add category", + "timedOut": false, + "duration": 4203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_addCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage, selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.addNewCategory(page, ['Clothes', 'Men'])];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 4:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.eq('Home x Clothes x Men x');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "552d8809-67f2-4fec-8ce6-2ca5a6e78242", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that we can delete the 2 categories", + "fullTitle": "BO - Catalog - Products : Description tab Create product should check that we can delete the 2 categories", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_checkDeleteIcon\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeleteIconVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeleteIcon', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.isDeleteCategoryIconVisible(page, 0)];\n case 2:\n isDeleteIconVisible = _a.sent();\n (0, chai_1.expect)(isDeleteIconVisible).to.eq(false);\n return [4 /*yield*/, descriptionTab_1.default.isDeleteCategoryIconVisible(page, 1)];\n case 3:\n isDeleteIconVisible = _a.sent();\n (0, chai_1.expect)(isDeleteIconVisible).to.eq(true);\n return [4 /*yield*/, descriptionTab_1.default.isDeleteCategoryIconVisible(page, 2)];\n case 4:\n isDeleteIconVisible = _a.sent();\n (0, chai_1.expect)(isDeleteIconVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "975b4cb8-7919-47e5-80dc-fedeec4281c7", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose default category", + "fullTitle": "BO - Catalog - Products : Description tab Create product should choose default category", + "timedOut": false, + "duration": 1594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_chooseDefaultCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.chooseDefaultCategory(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d97ca2cc-1e5e-4fd9-b1d4-03289c84d54d", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that we can delete the first and the last category", + "fullTitle": "BO - Catalog - Products : Description tab Create product should check that we can delete the first and the last category", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_checkDeleteIcon2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeleteIconVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeleteIcon2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.isDeleteCategoryIconVisible(page, 0)];\n case 2:\n isDeleteIconVisible = _a.sent();\n (0, chai_1.expect)(isDeleteIconVisible).to.eq(true);\n return [4 /*yield*/, descriptionTab_1.default.isDeleteCategoryIconVisible(page, 1)];\n case 3:\n isDeleteIconVisible = _a.sent();\n (0, chai_1.expect)(isDeleteIconVisible).to.eq(false);\n return [4 /*yield*/, descriptionTab_1.default.isDeleteCategoryIconVisible(page, 2)];\n case 4:\n isDeleteIconVisible = _a.sent();\n (0, chai_1.expect)(isDeleteIconVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49d1d792-4a74-4410-9770-24100839493d", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose brand", + "fullTitle": "BO - Catalog - Products : Description tab Create product should choose brand", + "timedOut": false, + "duration": 1445, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_chooseBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.chooseBrand(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ae19b38-15de-406f-9a3f-55fde15c5336", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + }, + { + "title": "should add related product", + "fullTitle": "BO - Catalog - Products : Description tab Create product should add related product", + "timedOut": false, + "duration": 1489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_addRelatedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addRelatedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.addRelatedProduct(page, 't-shirt')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22d262c7-8002-4dd4-ad10-f373b7581b8d", + "parentUUID": "4c150584-fc48-47d5-af98-9c9f054d0d8c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f1d93df4-25a8-4867-bb00-143450b39f98", + "7d270d23-f872-4ef1-b449-c44eef28fb1a", + "99f60008-e88b-4188-8085-20ea5349facf", + "354030c9-54e5-4aa0-8aec-62814f76e2d7", + "4c76e183-e7b6-409b-a8bc-0870858b08fa", + "b08d0f35-f4bd-4390-8094-f4adccadc5b1", + "62fc4b44-3c33-4809-889e-9c1d08d6f7bb", + "7d020453-35cc-4789-8744-49e5acc6f28a", + "0e2d7743-05dc-4445-b91b-54fd024fdfc6", + "52e72096-c855-451c-a3c2-6ce72d276514", + "318bf833-1f10-4393-b146-f7ca0a5431e8", + "12a237e1-826e-4138-ab42-09a26cbda556", + "0c4771ab-56b3-4e81-9305-35c93d56a99f", + "9b190103-a697-41dd-9803-d3c0891bd39b", + "552d8809-67f2-4fec-8ce6-2ca5a6e78242", + "975b4cb8-7919-47e5-80dc-fedeec4281c7", + "d97ca2cc-1e5e-4fd9-b1d4-03289c84d54d", + "49d1d792-4a74-4410-9770-24100839493d", + "3ae19b38-15de-406f-9a3f-55fde15c5336", + "22d262c7-8002-4dd4-ad10-f373b7581b8d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34310, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9340f17c-4a05-4170-8175-0fa30c235fea", + "title": "POST-TEST: Delete product 'hello word'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/10_descriptionTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/10_descriptionTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'hello word'\"", + "fullTitle": "BO - Catalog - Products : Description tab POST-TEST: Delete product 'hello word' \"before all\" hook in \"POST-TEST: Delete product 'hello word'\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d707ec21-a0f6-4e9b-aed1-eb406bace444", + "parentUUID": "9340f17c-4a05-4170-8175-0fa30c235fea", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'hello word'\"", + "fullTitle": "BO - Catalog - Products : Description tab POST-TEST: Delete product 'hello word' \"after all\" hook in \"POST-TEST: Delete product 'hello word'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5bbdacf5-864e-4b0a-9ba4-7c644803a2d9", + "parentUUID": "9340f17c-4a05-4170-8175-0fa30c235fea", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Description tab POST-TEST: Delete product 'hello word' should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d90ef348-a40a-4d2c-bc1a-019478132874", + "parentUUID": "9340f17c-4a05-4170-8175-0fa30c235fea", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Description tab POST-TEST: Delete product 'hello word' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_postTest_0_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20cfb5cb-823e-428e-b6fc-47273c425774", + "parentUUID": "9340f17c-4a05-4170-8175-0fa30c235fea", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Products : Description tab POST-TEST: Delete product 'hello word' should reset all filters", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_postTest_0_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e88d8480-8944-43f6-a35c-aafe9e896f47", + "parentUUID": "9340f17c-4a05-4170-8175-0fa30c235fea", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Catalog - Products : Description tab POST-TEST: Delete product 'hello word' should click on delete product button", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_postTest_0_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92a471b2-b7aa-4ba6-b57f-76fcdc05fbcf", + "parentUUID": "9340f17c-4a05-4170-8175-0fa30c235fea", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Description tab POST-TEST: Delete product 'hello word' should delete product", + "timedOut": false, + "duration": 734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_postTest_0_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f512aa02-934a-49dd-8f8a-0b79f98c31c1", + "parentUUID": "9340f17c-4a05-4170-8175-0fa30c235fea", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Description tab POST-TEST: Delete product 'hello word' should reset filter", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_descriptionTab_postTest_0_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13e3062e-af37-482c-bb84-7f6dcdfb7d93", + "parentUUID": "9340f17c-4a05-4170-8175-0fa30c235fea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d90ef348-a40a-4d2c-bc1a-019478132874", + "20cfb5cb-823e-428e-b6fc-47273c425774", + "e88d8480-8944-43f6-a35c-aafe9e896f47", + "92a471b2-b7aa-4ba6-b57f-76fcdc05fbcf", + "f512aa02-934a-49dd-8f8a-0b79f98c31c1", + "13e3062e-af37-482c-bb84-7f6dcdfb7d93" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6724, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82552f27-53e1-47b5-8e4d-7f6c9408f644", + "title": "BO - Catalog - Products : Combination tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Combination tab\"", + "fullTitle": "BO - Catalog - Products : Combination tab \"before all\" hook in \"BO - Catalog - Products : Combination tab\"", + "timedOut": false, + "duration": 177, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 4];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.coverImage)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n if (!newProductData.thumbImage) return [3 /*break*/, 6];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.thumbImage)];\n case 5:\n _a.sent();\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ace5397-3639-4496-80f6-4d1485475b91", + "parentUUID": "82552f27-53e1-47b5-8e4d-7f6c9408f644", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Combination tab\"", + "fullTitle": "BO - Catalog - Products : Combination tab \"after all\" hook in \"BO - Catalog - Products : Combination tab\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 3];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.coverImage)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n if (!newProductData.thumbImage) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.thumbImage)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9d5e2f71-0468-474c-b19c-269f696812eb", + "parentUUID": "82552f27-53e1-47b5-8e4d-7f6c9408f644", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "70bcdee9-baff-409e-b18b-44e91acf339f", + "title": "Create product with combination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should login in BO", + "timedOut": false, + "duration": 1821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f507a2f-279a-42cb-94db-76cccbb57b4c", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63737374-2320-4eed-a676-1f24d85a0f25", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "245f6fbd-3b6a-4810-87f8-064e90ebfeec", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should select the product with combination and check the description", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should select the product with combination and check the description", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_checkStandardProductDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStandardProductDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 3:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.productWithCombinationsDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71d988f9-b99c-4d9d-a51d-eeaf94bcfdcd", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should go to new product page", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_chooseProductWithCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseProductWithCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2890af9f-7b25-42a0-97c3-0c099e2f8f8e", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should create product", + "timedOut": false, + "duration": 5042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_createProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e80a79ef-d513-4d73-97ed-a262b36f6b1d", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Combinations' tab and click on 'Attributes & Features' link", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should go to 'Combinations' tab and click on 'Attributes & Features' link", + "timedOut": false, + "duration": 1199, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_checkAttributes&FeaturesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAttributes&FeaturesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnAttributesAndFeaturesLink(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3c26a4b-3410-42aa-8fd8-a3515d1e88ce", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should close 'Attributes & Features' page", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should close 'Attributes & Features' page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_closePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "670d1cde-e58c-4c3a-b2c4-8c6f5405fda8", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on learn more link", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should click on learn more link", + "timedOut": false, + "duration": 15018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_clickOnLearnMore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentURL, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnLearnMore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnLearnMoreButton(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getCurrentURL(page)];\n case 3:\n currentURL = _a.sent();\n (0, chai_1.expect)(currentURL).to.contains('creatingaproductwithcombinations');\n return [4 /*yield*/, combinationsTab_1.default.closePage(browserContext, page, 0)];\n case 4:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f76d527-a7b6-44ce-b64c-45599b8b94a1", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on generate combination button", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should click on generate combination button", + "timedOut": false, + "duration": 2073, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_clickOnGenerateCombinationButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnGenerateCombinationButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnGenerateCombinationButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccff7574-6bc5-4011-a9f6-e4b07c10f1a1", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should click on cancel button", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_clickOnCancelButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnCancelButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnCancelButton(page)];\n case 2:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fd2767e-f618-423a-8993-b0508aea73cb", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should create combination by checking size and color checkboxes", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should create combination by checking size and color checkboxes", + "timedOut": false, + "duration": 2179, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_createCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var generateCombinationsButton;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnGenerateCombinationButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.selectAllValues(page, 'size')];\n case 3:\n generateCombinationsButton = _a.sent();\n (0, chai_1.expect)(generateCombinationsButton).to.equal(combinationsTab_1.default.generateCombinationsMessage(4));\n return [4 /*yield*/, combinationsTab_1.default.selectAllValues(page, 'color')];\n case 4:\n generateCombinationsButton = _a.sent();\n (0, chai_1.expect)(generateCombinationsButton).to.equal(combinationsTab_1.default.generateCombinationsMessage(56));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "080ea476-f6a5-4c59-b2fd-d90e6cda7ab2", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on generate combinations button", + "fullTitle": "BO - Catalog - Products : Combination tab Create product with combination should click on generate combinations button", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_generateCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulGenerateCombinationsMessage(56));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd3def75-54b3-4312-84d8-3b33782f0114", + "parentUUID": "70bcdee9-baff-409e-b18b-44e91acf339f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7f507a2f-279a-42cb-94db-76cccbb57b4c", + "63737374-2320-4eed-a676-1f24d85a0f25", + "245f6fbd-3b6a-4810-87f8-064e90ebfeec", + "71d988f9-b99c-4d9d-a51d-eeaf94bcfdcd", + "2890af9f-7b25-42a0-97c3-0c099e2f8f8e", + "e80a79ef-d513-4d73-97ed-a262b36f6b1d", + "d3c26a4b-3410-42aa-8fd8-a3515d1e88ce", + "670d1cde-e58c-4c3a-b2c4-8c6f5405fda8", + "0f76d527-a7b6-44ce-b64c-45599b8b94a1", + "ccff7574-6bc5-4011-a9f6-e4b07c10f1a1", + "0fd2767e-f618-423a-8993-b0508aea73cb", + "080ea476-f6a5-4c59-b2fd-d90e6cda7ab2", + "bd3def75-54b3-4312-84d8-3b33782f0114" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34442, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9549f4ae-1e07-4c16-9ca5-2970eb3bb6b2", + "title": "Edit combinations", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should edit the first combination", + "fullTitle": "BO - Catalog - Products : Combination tab Edit combinations should edit the first combination", + "timedOut": false, + "duration": 2732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_editFirstCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editFirstCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnEditIcon(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.editCombinationFromModal(page, firstCombinationData)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "999093c1-5dab-41ff-bf5d-530bfcac03ad", + "parentUUID": "9549f4ae-1e07-4c16-9ca5-2970eb3bb6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next combination button", + "fullTitle": "BO - Catalog - Products : Combination tab Edit combinations should click on next combination button", + "timedOut": false, + "duration": 2065, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_clickOnNextButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var combinationName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNextButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnNextCombinationButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getCombinationNameFromModal(page)];\n case 3:\n combinationName = _a.sent();\n (0, chai_1.expect)(combinationName).to.equal('Size - S, Color - Taupe');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d4178c6-42af-480f-87f5-b630093ff3c4", + "parentUUID": "9549f4ae-1e07-4c16-9ca5-2970eb3bb6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous combination button", + "fullTitle": "BO - Catalog - Products : Combination tab Edit combinations should click on previous combination button", + "timedOut": false, + "duration": 2051, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_clickOnPreviousButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var combinationName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPreviousButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnPreviousCombinationButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.getCombinationNameFromModal(page)];\n case 3:\n combinationName = _a.sent();\n (0, chai_1.expect)(combinationName).to.equal('Size - S, Color - Gray');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f73d8fc-8f58-40b0-8342-670f9e03fef0", + "parentUUID": "9549f4ae-1e07-4c16-9ca5-2970eb3bb6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should close the modal", + "fullTitle": "BO - Catalog - Products : Combination tab Edit combinations should close the modal", + "timedOut": false, + "duration": 2053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_closeModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.closeEditCombinationModal(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c748abe2-ee83-4e25-be5f-3400b5115506", + "parentUUID": "9549f4ae-1e07-4c16-9ca5-2970eb3bb6b2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "999093c1-5dab-41ff-bf5d-530bfcac03ad", + "6d4178c6-42af-480f-87f5-b630093ff3c4", + "7f73d8fc-8f58-40b0-8342-670f9e03fef0", + "c748abe2-ee83-4e25-be5f-3400b5115506" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8901, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "title": "Check out of stock options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the 'Deny orders' option", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should check the 'Deny orders' option", + "timedOut": false, + "duration": 1759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_checkOrderOption0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setOptionWhenOutOfStock(page, test.args.option)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4027c77b-fa00-46bc-a9e9-6b29f38349d8", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should preview product", + "timedOut": false, + "duration": 1225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_previewProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "025e32a6-0aa0-4e47-a52f-b9290d9425ee", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should select combination and check the add to cart button", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should select combination and check the add to cart button", + "timedOut": false, + "duration": 1390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_selectCombination0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstCombination, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectCombination\".concat(index), baseContext)];\n case 1:\n _a.sent();\n firstCombination = [\n {\n name: 'size',\n value: 'L',\n },\n {\n name: 'color',\n value: 'White',\n },\n ];\n return [4 /*yield*/, product_1.default.selectAttributes(page, 1, firstCombination)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(test.args.isAddToCartButtonVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "047b1b4a-fb25-4a33-b5fd-2e2814dad3fb", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59015d7d-ffc5-41d8-881b-2aff53658704", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'Allow orders' option", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should check the 'Allow orders' option", + "timedOut": false, + "duration": 1745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_checkOrderOption1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setOptionWhenOutOfStock(page, test.args.option)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2483dcb8-bdf1-439c-a085-57cfe6d06c93", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should preview product", + "timedOut": false, + "duration": 1069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_previewProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17596a79-b9d1-4fbd-b4c6-6473ffb0909f", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should select combination and check the add to cart button", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should select combination and check the add to cart button", + "timedOut": false, + "duration": 378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_selectCombination1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstCombination, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectCombination\".concat(index), baseContext)];\n case 1:\n _a.sent();\n firstCombination = [\n {\n name: 'size',\n value: 'L',\n },\n {\n name: 'color',\n value: 'White',\n },\n ];\n return [4 /*yield*/, product_1.default.selectAttributes(page, 1, firstCombination)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(test.args.isAddToCartButtonVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efd34b4e-f968-4d7b-8e85-109fbc5c31e4", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34a304cb-91d9-4944-bd1d-85a299c3d20c", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'Use default behavior' option", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should check the 'Use default behavior' option", + "timedOut": false, + "duration": 1785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_checkOrderOption2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setOptionWhenOutOfStock(page, test.args.option)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "495a2e7b-bec8-4f67-b30c-6d1e559871d5", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should preview product", + "timedOut": false, + "duration": 1105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_previewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1e4b882-059d-4144-a95e-d497d285ef70", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should select combination and check the add to cart button", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should select combination and check the add to cart button", + "timedOut": false, + "duration": 1376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_selectCombination2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstCombination, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectCombination\".concat(index), baseContext)];\n case 1:\n _a.sent();\n firstCombination = [\n {\n name: 'size',\n value: 'L',\n },\n {\n name: 'color',\n value: 'White',\n },\n ];\n return [4 /*yield*/, product_1.default.selectAttributes(page, 1, firstCombination)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(test.args.isAddToCartButtonVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f9633f3-d5e4-40ab-870c-745007b4bcfa", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2979b5d-6e3a-421b-95e9-5a921ddb418e", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit default behaviour link", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should click on edit default behaviour link", + "timedOut": false, + "duration": 1083, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_editBehaviour\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editBehaviour', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.clickOnEditDefaultBehaviourLink(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adda1b59-d1a3-4979-aa07-20cc5b7a5486", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should close the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4461e73a-4963-4817-9bc3-a09f3baee901", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should set label when in stock", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should set label when in stock", + "timedOut": false, + "duration": 1852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_setLabelWhenInStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setLabelWhenInStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setLabelWhenInStock(page, 'Product available')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2561d491-fdcd-49ea-ab61-e3c73649dce7", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should preview product", + "timedOut": false, + "duration": 1112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_previewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5856c89-1a90-4a98-8b57-450fc98fd5d8", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should select combination", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should select combination", + "timedOut": false, + "duration": 1228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_selectCombination3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstCombination, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectCombination3', baseContext)];\n case 1:\n _a.sent();\n firstCombination = [\n {\n name: 'size',\n value: 'S',\n },\n {\n name: 'color',\n value: 'Taupe',\n },\n ];\n return [4 /*yield*/, product_1.default.selectAttributes(page, 1, firstCombination)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84530b3d-8b18-4b8e-9898-603c2f989a12", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product availability label", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should check the product availability label", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_selectCombination4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var availabilityLabel;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectCombination4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 2:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains('Product available');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ed86400-0899-4a0e-8186-7aa8a8f85bcc", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should close the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_goBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d00fa1f2-df0a-4617-8892-22b87d2e6596", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should check the allow orders option and set Label when out of stock", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should check the allow orders option and set Label when out of stock", + "timedOut": false, + "duration": 1827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_checkDenyOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDenyOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setOptionWhenOutOfStock(page, 'Allow orders')];\n case 2:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setLabelWhenOutOfStock(page, 'Out of stock')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9b6fa42-e601-47d6-9c27-ffaf74e5fe59", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should preview product", + "timedOut": false, + "duration": 1088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_previewProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d25efb40-06b6-494e-91a4-bf0c7c0c007b", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should select combination", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should select combination", + "timedOut": false, + "duration": 378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_selectCombination5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstCombination, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectCombination5', baseContext)];\n case 1:\n _a.sent();\n firstCombination = [\n {\n name: 'size',\n value: 'L',\n },\n {\n name: 'color',\n value: 'Taupe',\n },\n ];\n return [4 /*yield*/, product_1.default.selectAttributes(page, 1, firstCombination)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee8aa7a1-9035-4bc4-888d-8c5dfcb2eb96", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should check the label of out of stock", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should check the label of out of stock", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_selectCombination6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var availabilityLabel, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectCombination6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 2:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains('Out of stock');\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dda734db-7e4a-451a-9ccc-b17fd733e9ad", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Combination tab Check out of stock options should close the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_goBackToBO5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04edbb0a-c8f9-444b-8f87-7b1cabc894f8", + "parentUUID": "2e772efa-0a5c-48e7-95a9-d11fa10cd118", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4027c77b-fa00-46bc-a9e9-6b29f38349d8", + "025e32a6-0aa0-4e47-a52f-b9290d9425ee", + "047b1b4a-fb25-4a33-b5fd-2e2814dad3fb", + "59015d7d-ffc5-41d8-881b-2aff53658704", + "2483dcb8-bdf1-439c-a085-57cfe6d06c93", + "17596a79-b9d1-4fbd-b4c6-6473ffb0909f", + "efd34b4e-f968-4d7b-8e85-109fbc5c31e4", + "34a304cb-91d9-4944-bd1d-85a299c3d20c", + "495a2e7b-bec8-4f67-b30c-6d1e559871d5", + "d1e4b882-059d-4144-a95e-d497d285ef70", + "7f9633f3-d5e4-40ab-870c-745007b4bcfa", + "d2979b5d-6e3a-421b-95e9-5a921ddb418e", + "adda1b59-d1a3-4979-aa07-20cc5b7a5486", + "4461e73a-4963-4817-9bc3-a09f3baee901", + "2561d491-fdcd-49ea-ab61-e3c73649dce7", + "a5856c89-1a90-4a98-8b57-450fc98fd5d8", + "84530b3d-8b18-4b8e-9898-603c2f989a12", + "9ed86400-0899-4a0e-8186-7aa8a8f85bcc", + "d00fa1f2-df0a-4617-8892-22b87d2e6596", + "d9b6fa42-e601-47d6-9c27-ffaf74e5fe59", + "d25efb40-06b6-494e-91a4-bf0c7c0c007b", + "ee8aa7a1-9035-4bc4-888d-8c5dfcb2eb96", + "dda734db-7e4a-451a-9ccc-b17fd733e9ad", + "04edbb0a-c8f9-444b-8f87-7b1cabc894f8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20441, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9464761d-1f21-4f5b-a05a-006fd1e2e540", + "title": "POST-TEST: Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/11_combinationTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Combination tab POST-TEST: Delete product should delete product", + "timedOut": false, + "duration": 2054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_combinationTab_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n deleteProductMessage = _a.sent();\n (0, chai_1.expect)(deleteProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebf78ca4-c47b-4ca0-aef4-f8b82d7319bf", + "parentUUID": "9464761d-1f21-4f5b-a05a-006fd1e2e540", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ebf78ca4-c47b-4ca0-aef4-f8b82d7319bf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2054, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b2f229a1-0a59-4c97-997b-0a4c8fe2d506", + "title": "BO - Catalog - Products : Pack Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Pack Tab\"", + "fullTitle": "BO - Catalog - Products : Pack Tab \"before all\" hook in \"BO - Catalog - Products : Pack Tab\"", + "timedOut": false, + "duration": 52, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eba99817-5a26-4275-8355-a49f0d4378f9", + "parentUUID": "b2f229a1-0a59-4c97-997b-0a4c8fe2d506", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Pack Tab\"", + "fullTitle": "BO - Catalog - Products : Pack Tab \"after all\" hook in \"BO - Catalog - Products : Pack Tab\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "da85cd0b-f532-432f-ac24-41bc7e8a6edb", + "parentUUID": "b2f229a1-0a59-4c97-997b-0a4c8fe2d506", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "title": "BO - Create the product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should login in BO", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1a5f5c4-ceff-4409-9c33-56958b03b569", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48affb45-0966-4b4f-9381-1e7f1342d808", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the product \"demo_1\"", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should filter the product \"demo_1\"", + "timedOut": false, + "duration": 1278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_filterProductDemo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, productReference;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterProductDemo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', products_2.default.demo_1.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.gte(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'reference', 1)];\n case 5:\n productReference = _a.sent();\n (0, chai_1.expect)(productReference).to.be.eq(products_2.default.demo_1.reference);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 6:\n productStockDemo1 = (_a.sent());\n (0, chai_1.expect)(productStockDemo1).to.be.gte(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88e28dc7-195f-427c-b644-c5e065c68536", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the product \"demo_9\"", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should filter the product \"demo_9\"", + "timedOut": false, + "duration": 4145, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_filterProductDemo9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, productReference;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterProductDemo9', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', products_2.default.demo_9.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.gte(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'reference', 1)];\n case 5:\n productReference = _a.sent();\n (0, chai_1.expect)(productReference).to.be.eq(products_2.default.demo_9.reference);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 6:\n productStockDemo9 = (_a.sent());\n (0, chai_1.expect)(productStockDemo9).to.be.gte(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13e96448-3461-4d2a-a033-63f151ba3651", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should reset all filters", + "timedOut": false, + "duration": 2888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_resetFilterBeforeNew\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterBeforeNew', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f317dbc-9dd9-4335-b5c3-0befd37b4b62", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93b4b94d-289c-46a4-b30d-dcc59e81e8dc", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Pack of products'", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should choose 'Pack of products'", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_choosePackProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'choosePackProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, 'pack')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ede2ead-6716-403f-a44c-411739bfcb19", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should go to new product page", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d4ff679-da97-40f9-a21f-579d1a3019dc", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product name", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Create the product should edit the product name", + "timedOut": false, + "duration": 3025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_editProductNameEn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductNameEn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, productNameEn, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductName(page, productNameFr, 'fr')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, true)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 5:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3caa179e-b734-4d29-bcbf-4820ba8993ae", + "parentUUID": "eeb21a04-04cc-4afa-ab47-c89b562226a8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d1a5f5c4-ceff-4409-9c33-56958b03b569", + "48affb45-0966-4b4f-9381-1e7f1342d808", + "88e28dc7-195f-427c-b644-c5e065c68536", + "13e96448-3461-4d2a-a033-63f151ba3651", + "1f317dbc-9dd9-4335-b5c3-0befd37b4b62", + "93b4b94d-289c-46a4-b30d-dcc59e81e8dc", + "8ede2ead-6716-403f-a44c-411739bfcb19", + "2d4ff679-da97-40f9-a21f-579d1a3019dc", + "3caa179e-b734-4d29-bcbf-4820ba8993ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19113, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "title": "BO - Edit properties of the pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Pack tab", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should go to the Pack tab", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_goToPackTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPackTab', baseContext)];\n case 1:\n _a.sent();\n // The Pack Tab has the identifier `stock`\n return [4 /*yield*/, add_1.default.goToTab(page, 'stock')];\n case 2:\n // The Pack Tab has the identifier `stock`\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'stock')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4641e01-ecb9-4f74-abdb-b714c524d8eb", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should add a product by product name to the pack", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should add a product by product name to the pack", + "timedOut": false, + "duration": 2573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_addProductByNameToPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage, numberOfProducts, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductByNameToPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.addProductToPack(page, 'shirt', 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, packTab_1.default.getNumberOfProductsInPack(page)];\n case 4:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(1);\n return [4 /*yield*/, packTab_1.default.getProductInPackInformation(page, 1)];\n case 5:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(\"\".concat(products_2.default.demo_1.name, \": \")\n + \"\".concat(basicHelper_1.default.capitalize(products_2.default.demo_1.attributes[0].name), \" - \").concat(products_2.default.demo_1.attributes[0].values[0], \", \")\n + \"\".concat(basicHelper_1.default.capitalize(products_2.default.demo_1.attributes[1].name), \" - \").concat(products_2.default.demo_1.attributes[1].values[0])),\n (0, chai_1.expect)(result.reference).to.equal(\"Ref: \".concat(products_2.default.demo_1.reference)),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9265eab6-a8c0-4ab6-9cc0-3b4d595cc878", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should add a product by reference to the pack", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should add a product by reference to the pack", + "timedOut": false, + "duration": 2559, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_addProductByRefToPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage, numberOfProducts, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductByRefToPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.addProductToPack(page, products_2.default.demo_14.reference, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, packTab_1.default.getNumberOfProductsInPack(page)];\n case 4:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(2);\n return [4 /*yield*/, packTab_1.default.getProductInPackInformation(page, 2)];\n case 5:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_2.default.demo_14.name),\n (0, chai_1.expect)(result.reference).to.equal(\"Ref: \".concat(products_2.default.demo_14.reference)),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67f34be0-15db-4cec-bd53-746bf20fbfd6", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should add set quantity for the first product in pack", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should add set quantity for the first product in pack", + "timedOut": false, + "duration": 1400, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_setQuantityInPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage, numberOfProducts, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setQuantityInPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.setProductQuantity(page, 0, productQuantity)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, packTab_1.default.getNumberOfProductsInPack(page)];\n case 4:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(2);\n return [4 /*yield*/, packTab_1.default.getProductInPackInformation(page, 1)];\n case 5:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(\"\".concat(products_2.default.demo_1.name, \": \")\n + \"\".concat(basicHelper_1.default.capitalize(products_2.default.demo_1.attributes[0].name), \" - \").concat(products_2.default.demo_1.attributes[0].values[0], \", \")\n + \"\".concat(basicHelper_1.default.capitalize(products_2.default.demo_1.attributes[1].name), \" - \").concat(products_2.default.demo_1.attributes[1].values[0])),\n (0, chai_1.expect)(result.reference).to.equal(\"Ref: \".concat(products_2.default.demo_1.reference)),\n (0, chai_1.expect)(result.quantity).to.equal(productQuantity),\n ])];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94526a0a-9d49-4979-b9e5-e1a4d8d21318", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the second product in pack", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should delete the second product in pack", + "timedOut": false, + "duration": 2226, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_deleteProductInPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage, numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProductInPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.deleteProduct(page, 2, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, packTab_1.default.getNumberOfProductsInPack(page)];\n case 4:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7da7fb3-409b-44cb-80a9-cb23b5bf3215", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should add a product by reference to the pack", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should add a product by reference to the pack", + "timedOut": false, + "duration": 2627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_addProductByRefToPack2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage, numberOfProducts, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductByRefToPack2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.addProductToPack(page, products_2.default.demo_9.reference, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, packTab_1.default.getNumberOfProductsInPack(page)];\n case 4:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(2);\n return [4 /*yield*/, packTab_1.default.getProductInPackInformation(page, 2)];\n case 5:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(\"\".concat(products_2.default.demo_9.name, \": \")\n + \"\".concat(basicHelper_1.default.capitalize(products_2.default.demo_9.attributes[0].name), \" - \").concat(products_2.default.demo_9.attributes[0].values[0])),\n (0, chai_1.expect)(result.reference).to.equal(\"Ref: \".concat(products_2.default.demo_9.reference)),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39b08ed7-fd84-42df-a65c-730357d0ab40", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should edit quantity to the pack", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should edit quantity to the pack", + "timedOut": false, + "duration": 1403, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_editQuantityPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editQuantityPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.editQuantity(page, productStock)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d734b8cd-c91c-453d-aa0a-a2a3e1f2be33", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the Pricing tab", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should go to the Pricing tab", + "timedOut": false, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_goToPricingTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPricingTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'pricing')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4af0ea72-ae7a-43f7-8127-8e74448078f4", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should set the retail price", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should set the retail price", + "timedOut": false, + "duration": 1497, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_setRetailPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setRetailPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setRetailPrice(page, true, productRetailPrice)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 4:\n productHeaderSummary = _a.sent();\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equals(\"\\u20AC\".concat(productRetailPrice.toFixed(2), \" tax excl.\"));\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equals(\"\\u20AC\".concat(productRetailPrice.toFixed(2), \" tax incl. (tax rule: 0%)\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebb1629c-e6a5-4d35-b316-378dd19354f8", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should preview the product on front-office", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should preview the product on front-office", + "timedOut": false, + "duration": 1918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_previewPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_2.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productNameEn);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19d2a7a8-b0ba-46e6-b6f4-2d1295406910", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + }, + { + "title": "should check product information", + "fullTitle": "BO - Catalog - Products : Pack Tab BO - Edit properties of the pack should check product information", + "timedOut": false, + "duration": 177, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation, productsPrice, calculatedPrice, product1, product2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductInformation(page)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productRetailPrice).to.eq(productInformation.price);\n return [4 /*yield*/, product_2.default.getPackProductsPrice(page)];\n case 3:\n productsPrice = _a.sent();\n calculatedPrice = ((((products_2.default.demo_1.price - (products_2.default.demo_1.price * (products_2.default.demo_1.specificPrice.discount / 100)))\n * (1 + (products_2.default.demo_1.tax / 100))) * productQuantity)\n + products_2.default.demo_9.finalPrice).toFixed(2);\n (0, chai_1.expect)(calculatedPrice).to.eq(productsPrice.toString());\n return [4 /*yield*/, product_2.default.getProductInPackList(page, 1)];\n case 4:\n product1 = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(product1.name).to.equals(\"\".concat(products_2.default.demo_1.name, \" \")\n + \"\".concat(basicHelper_1.default.capitalize(products_2.default.demo_1.attributes[0].name), \"-\").concat(products_2.default.demo_1.attributes[0].values[0], \" \")\n + \"\".concat(basicHelper_1.default.capitalize(products_2.default.demo_1.attributes[1].name), \"-\").concat(products_2.default.demo_1.attributes[1].values[0])),\n (0, chai_1.expect)(product1.price).to.equals(\"\\u20AC\".concat(products_2.default.demo_1.finalPrice.toFixed(2))),\n (0, chai_1.expect)(product1.quantity).to.equals(productQuantity),\n ])];\n case 5:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductInPackList(page, 2)];\n case 6:\n product2 = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(product2.name).to.equals(\"\".concat(products_2.default.demo_9.name, \" \")\n + \"\".concat(basicHelper_1.default.capitalize(products_2.default.demo_9.attributes[0].name), \"-\").concat(products_2.default.demo_9.attributes[0].values[0])),\n (0, chai_1.expect)(product2.price).to.equals(\"\\u20AC\".concat(products_2.default.demo_9.finalPrice.toFixed(2))),\n (0, chai_1.expect)(product2.quantity).to.equals(1),\n ])];\n case 7:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a62f8f73-c213-48c9-b80b-946db0a4bbc7", + "parentUUID": "281e8331-ea71-407c-9e37-e04cf1a9edf0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c4641e01-ecb9-4f74-abdb-b714c524d8eb", + "9265eab6-a8c0-4ab6-9cc0-3b4d595cc878", + "67f34be0-15db-4cec-bd53-746bf20fbfd6", + "94526a0a-9d49-4979-b9e5-e1a4d8d21318", + "e7da7fb3-409b-44cb-80a9-cb23b5bf3215", + "39b08ed7-fd84-42df-a65c-730357d0ab40", + "d734b8cd-c91c-453d-aa0a-a2a3e1f2be33", + "4af0ea72-ae7a-43f7-8127-8e74448078f4", + "ebb1629c-e6a5-4d35-b316-378dd19354f8", + "19d2a7a8-b0ba-46e6-b6f4-2d1295406910", + "a62f8f73-c213-48c9-b80b-946db0a4bbc7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16514, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "074f6687-7a5b-4d45-8229-96bdb3033706", + "title": "Order the pack on FO & check stock", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should order the pack", + "fullTitle": "BO - Catalog - Products : Pack Tab Order the pack on FO & check stock should order the pack", + "timedOut": false, + "duration": 7369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_orderPack1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPack1', baseContext)];\n case 1:\n _a.sent();\n // Add product to the cart\n return [4 /*yield*/, product_2.default.addProductToTheCart(page)];\n case 2:\n // Add product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 3:\n // Proceed to checkout the shopping cart\n _a.sent();\n // Connect\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 4:\n // Connect\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 5:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete).to.be.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 7:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete).to.be.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 8:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 9:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e7853a4-907b-47b7-abdd-30c041b7d9a8", + "parentUUID": "074f6687-7a5b-4d45-8229-96bdb3033706", + "isHook": false, + "skipped": false + }, + { + "title": "should return to BO", + "fullTitle": "BO - Catalog - Products : Pack Tab Order the pack on FO & check stock should return to BO", + "timedOut": false, + "duration": 427, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_returnToBackOffice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToBackOffice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, page.reload()];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "018ea01f-7f19-4241-8c7d-1d20a95ee218", + "parentUUID": "074f6687-7a5b-4d45-8229-96bdb3033706", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the Pack tab", + "fullTitle": "BO - Catalog - Products : Pack Tab Order the pack on FO & check stock should return to the Pack tab", + "timedOut": false, + "duration": 212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_returnToPackTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToPackTab', baseContext)];\n case 1:\n _a.sent();\n // The Pack Tab has the identifier `stock`\n return [4 /*yield*/, add_1.default.goToTab(page, 'stock')];\n case 2:\n // The Pack Tab has the identifier `stock`\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'stock')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "690bd07c-2400-4fbc-a3de-102c4dfea562", + "parentUUID": "074f6687-7a5b-4d45-8229-96bdb3033706", + "isHook": false, + "skipped": false + }, + { + "title": "should check the stock", + "fullTitle": "BO - Catalog - Products : Pack Tab Order the pack on FO & check stock should check the stock", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_checkStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stockValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getStockValue(page)];\n case 2:\n stockValue = _a.sent();\n (0, chai_1.expect)(stockValue).to.be.equals(productStock - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89ab67f8-75da-4de4-be34-4a3c96de9066", + "parentUUID": "074f6687-7a5b-4d45-8229-96bdb3033706", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5e7853a4-907b-47b7-abdd-30c041b7d9a8", + "018ea01f-7f19-4241-8c7d-1d20a95ee218", + "690bd07c-2400-4fbc-a3de-102c4dfea562", + "89ab67f8-75da-4de4-be34-4a3c96de9066" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8012, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a53fe863-ebf0-465b-a55b-74413ebd371b", + "title": "Set the order to Delivered & check stock", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Catalog - Products : Pack Tab Set the order to Delivered & check stock should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3609, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8991c7ee-9dd3-49c9-bf3b-eaeb21ebfeb0", + "parentUUID": "a53fe863-ebf0-465b-a55b-74413ebd371b", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Catalog - Products : Pack Tab Set the order to Delivered & check stock should update order status", + "timedOut": false, + "duration": 957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.delivered)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bf4a546-608e-4250-8037-0fda01ce67d0", + "parentUUID": "a53fe863-ebf0-465b-a55b-74413ebd371b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Pack Tab Set the order to Delivered & check stock should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4656, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_returnProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be6ba21b-cc23-4b53-b249-a61c5b6efcaf", + "parentUUID": "a53fe863-ebf0-465b-a55b-74413ebd371b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Products : Pack Tab Set the order to Delivered & check stock should go to the first product page", + "timedOut": false, + "duration": 1035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_goToFirstProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b0a7648-e139-47e3-9c1e-5a8442fe0521", + "parentUUID": "a53fe863-ebf0-465b-a55b-74413ebd371b", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the Pack tab", + "fullTitle": "BO - Catalog - Products : Pack Tab Set the order to Delivered & check stock should return to the Pack tab", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_returnToPackTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToPackTab1', baseContext)];\n case 1:\n _a.sent();\n // The Pack Tab has the identifier `stock`\n return [4 /*yield*/, add_1.default.goToTab(page, 'stock')];\n case 2:\n // The Pack Tab has the identifier `stock`\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'stock')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0667c59c-6327-4357-8f76-cdd858bd0495", + "parentUUID": "a53fe863-ebf0-465b-a55b-74413ebd371b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the recent stock movement", + "fullTitle": "BO - Catalog - Products : Pack Tab Set the order to Delivered & check stock should check the recent stock movement", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_checkRecentStockMovement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkRecentStockMovement', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.getStockMovement(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.dateTime).to.contains('Shipped products'),\n (0, chai_1.expect)(result.employee).to.equal(''),\n (0, chai_1.expect)(result.quantity).to.equal(-1),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d56cad2-a12b-4686-9028-7ead5839ee3b", + "parentUUID": "a53fe863-ebf0-465b-a55b-74413ebd371b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8991c7ee-9dd3-49c9-bf3b-eaeb21ebfeb0", + "6bf4a546-608e-4250-8037-0fda01ce67d0", + "be6ba21b-cc23-4b53-b249-a61c5b6efcaf", + "2b0a7648-e139-47e3-9c1e-5a8442fe0521", + "0667c59c-6327-4357-8f76-cdd858bd0495", + "4d56cad2-a12b-4686-9028-7ead5839ee3b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10346, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "title": "Decrement products in pack only - Configure, Order & Check stocks", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should edit Pack Quantities \"Decrement products in pack only\"", + "fullTitle": "BO - Catalog - Products : Pack Tab Decrement products in pack only - Configure, Order & Check stocks should edit Pack Quantities \"Decrement products in pack only\"", + "timedOut": false, + "duration": 1476, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_editPackQuantities\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editPackQuantities', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, packTab_1.default.editPackStockType(page, 'Decrement products in pack only')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92cc278c-3d5a-4713-8509-72030ec13034", + "parentUUID": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should preview the product on front-office", + "fullTitle": "BO - Catalog - Products : Pack Tab Decrement products in pack only - Configure, Order & Check stocks should preview the product on front-office", + "timedOut": false, + "duration": 1900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_previewPack2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewPack2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_2.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productNameEn);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc6b6260-712e-40ab-a088-44f4679b8ddd", + "parentUUID": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should order the pack", + "fullTitle": "BO - Catalog - Products : Pack Tab Decrement products in pack only - Configure, Order & Check stocks should order the pack", + "timedOut": false, + "duration": 6632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_orderPack2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPack2', baseContext)];\n case 1:\n _a.sent();\n // Add product to the cart\n return [4 /*yield*/, product_2.default.addProductToTheCart(page)];\n case 2:\n // Add product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 3:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 4:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete).to.be.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 5:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete).to.be.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 6:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 7:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf5eeaef-380c-4c9c-8539-d4b8699df606", + "parentUUID": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should return to BO", + "fullTitle": "BO - Catalog - Products : Pack Tab Decrement products in pack only - Configure, Order & Check stocks should return to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_returnToBackOffice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToBackOffice1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce5e6f07-f51d-4597-a4e7-b3866d1b0db5", + "parentUUID": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Pack Tab Decrement products in pack only - Configure, Order & Check stocks should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_returnProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnProductsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "956ea3c4-bbb8-4f03-9d31-8c787a7ae4ba", + "parentUUID": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter and check the product \"demo_1\"", + "fullTitle": "BO - Catalog - Products : Pack Tab Decrement products in pack only - Configure, Order & Check stocks should filter and check the product \"demo_1\"", + "timedOut": false, + "duration": 1296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_filterProductDemo11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, productReference, productStock;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterProductDemo11', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', products_2.default.demo_1.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.gte(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'reference', 1)];\n case 5:\n productReference = _a.sent();\n (0, chai_1.expect)(productReference).to.be.eq(products_2.default.demo_1.reference);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 6:\n productStock = _a.sent();\n (0, chai_1.expect)(productStock).to.be.gte(1);\n (0, chai_1.expect)(productStock).to.be.eq(productStockDemo1 - productQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbad1ec0-c552-4443-99a9-338cd053fe0e", + "parentUUID": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter and check the product \"demo_9\"", + "fullTitle": "BO - Catalog - Products : Pack Tab Decrement products in pack only - Configure, Order & Check stocks should filter and check the product \"demo_9\"", + "timedOut": false, + "duration": 4178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_filterProductDemo91\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, productReference, productStock;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterProductDemo91', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', products_2.default.demo_9.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.gte(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'reference', 1)];\n case 5:\n productReference = _a.sent();\n (0, chai_1.expect)(productReference).to.be.eq(products_2.default.demo_9.reference);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 6:\n productStock = _a.sent();\n (0, chai_1.expect)(productStock).to.be.gte(1);\n (0, chai_1.expect)(productStock).to.be.eq(productStockDemo9 - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "425eb7a8-54c8-4e8b-b307-74e195cc4d5c", + "parentUUID": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Products : Pack Tab Decrement products in pack only - Configure, Order & Check stocks should reset all filters", + "timedOut": false, + "duration": 2914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_resetFilterFinal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFinal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5adcaa07-86ba-483c-baf0-000bbf745f67", + "parentUUID": "cb1a949c-964c-488d-9b27-ca3a1749e7e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "92cc278c-3d5a-4713-8509-72030ec13034", + "cc6b6260-712e-40ab-a088-44f4679b8ddd", + "cf5eeaef-380c-4c9c-8539-d4b8699df606", + "ce5e6f07-f51d-4597-a4e7-b3866d1b0db5", + "956ea3c4-bbb8-4f03-9d31-8c787a7ae4ba", + "cbad1ec0-c552-4443-99a9-338cd053fe0e", + "425eb7a8-54c8-4e8b-b307-74e195cc4d5c", + "5adcaa07-86ba-483c-baf0-000bbf745f67" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 23390, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "title": "POST-TEST: Delete product 'My pack'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/12_packTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'My pack'\"", + "fullTitle": "BO - Catalog - Products : Pack Tab POST-TEST: Delete product 'My pack' \"before all\" hook in \"POST-TEST: Delete product 'My pack'\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bfda411-39a0-4b77-9e7d-af845d5087c2", + "parentUUID": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'My pack'\"", + "fullTitle": "BO - Catalog - Products : Pack Tab POST-TEST: Delete product 'My pack' \"after all\" hook in \"POST-TEST: Delete product 'My pack'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bae3f8fa-fb83-4207-a6fb-3b7751ddfb14", + "parentUUID": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Pack Tab POST-TEST: Delete product 'My pack' should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19f7df16-973d-42a4-be29-3abd9d20fdb1", + "parentUUID": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Pack Tab POST-TEST: Delete product 'My pack' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_postTest_0_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dbde858-c14d-4e81-a44d-c8ee1136fa38", + "parentUUID": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Products : Pack Tab POST-TEST: Delete product 'My pack' should reset all filters", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_postTest_0_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2aa5a8be-70db-42ba-ab62-7e11a340883b", + "parentUUID": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Catalog - Products : Pack Tab POST-TEST: Delete product 'My pack' should click on delete product button", + "timedOut": false, + "duration": 297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_postTest_0_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2eca0b10-2d35-4a9e-b957-b091ebb7bbab", + "parentUUID": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Pack Tab POST-TEST: Delete product 'My pack' should delete product", + "timedOut": false, + "duration": 691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_postTest_0_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "401d3d16-51e1-4e1b-bab2-077dbb912e96", + "parentUUID": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Pack Tab POST-TEST: Delete product 'My pack' should reset filter", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_packTab_postTest_0_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88b4e1bc-afa7-4afb-80be-9bdd797c0f37", + "parentUUID": "00c6e49b-6f3d-4e7d-93c9-f02766675f2c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "19f7df16-973d-42a4-be29-3abd9d20fdb1", + "3dbde858-c14d-4e81-a44d-c8ee1136fa38", + "2aa5a8be-70db-42ba-ab62-7e11a340883b", + "2eca0b10-2d35-4a9e-b957-b091ebb7bbab", + "401d3d16-51e1-4e1b-bab2-077dbb912e96", + "88b4e1bc-afa7-4afb-80be-9bdd797c0f37" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6721, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "97258bda-298c-4abb-9a47-29dbd14a1e5d", + "title": "BO - Catalog - Products : Virtual tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Virtual tab\"", + "fullTitle": "BO - Catalog - Products : Virtual tab \"before all\" hook in \"BO - Catalog - Products : Virtual tab\"", + "timedOut": false, + "duration": 82, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.generateImage(newProductData.fileName)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8501f9d5-50ee-48ca-aaef-ba25fc52d3b6", + "parentUUID": "97258bda-298c-4abb-9a47-29dbd14a1e5d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Virtual tab\"", + "fullTitle": "BO - Catalog - Products : Virtual tab \"after all\" hook in \"BO - Catalog - Products : Virtual tab\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.fileName)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7351eee2-4b9b-4dda-b7ca-b474e4e1faed", + "parentUUID": "97258bda-298c-4abb-9a47-29dbd14a1e5d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "fe31d8ca-7c05-4c62-944d-db31985e93e9", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Virtual tab Create product should login in BO", + "timedOut": false, + "duration": 1832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72738126-f6b3-40d5-8fd6-7ce77dc3ccf6", + "parentUUID": "fe31d8ca-7c05-4c62-944d-db31985e93e9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Virtual tab Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f08354be-30c6-4715-972c-7a0e2d69295e", + "parentUUID": "fe31d8ca-7c05-4c62-944d-db31985e93e9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Virtual tab Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db554c68-bb40-4001-8f34-0615324e526d", + "parentUUID": "fe31d8ca-7c05-4c62-944d-db31985e93e9", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Virtual product' and go to new product page", + "fullTitle": "BO - Catalog - Products : Virtual tab Create product should choose 'Virtual product' and go to new product page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_chooseVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3789cfec-1746-4584-b8b4-3cac9cebd9f3", + "parentUUID": "fe31d8ca-7c05-4c62-944d-db31985e93e9", + "isHook": false, + "skipped": false + }, + { + "title": "should create virtual product", + "fullTitle": "BO - Catalog - Products : Virtual tab Create product should create virtual product", + "timedOut": false, + "duration": 5093, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_createVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a711ec5a-ff22-43f7-8a64-fb974db9bd85", + "parentUUID": "fe31d8ca-7c05-4c62-944d-db31985e93e9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "72738126-f6b3-40d5-8fd6-7ce77dc3ccf6", + "f08354be-30c6-4715-972c-7a0e2d69295e", + "db554c68-bb40-4001-8f34-0615324e526d", + "3789cfec-1746-4584-b8b4-3cac9cebd9f3", + "a711ec5a-ff22-43f7-8a64-fb974db9bd85" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12994, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "title": "Create order and download the virtual product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should preview product", + "timedOut": false, + "duration": 1806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a4f2345-3ecb-441e-8299-84a6e5cdcda6", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should add product to cart", + "timedOut": false, + "duration": 5409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 2:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86412f99-c9ab-4c9b-8cf0-3e5b5e433a24", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and sign in", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should proceed to checkout and sign in", + "timedOut": false, + "duration": 1225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a00e20b-9179-4083-ab5f-9b41b089c51a", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should go to payment step", + "timedOut": false, + "duration": 257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9eec3abc-2155-4a59-b40a-6993b2f3318f", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should pay the order", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should pay the order", + "timedOut": false, + "duration": 2858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_payTheOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'payTheOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87b2e2f9-1cb2-47f6-9834-4f80b61b6aaf", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should go to my account page", + "timedOut": false, + "duration": 680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a32eaf15-24be-432b-982a-db78277f096c", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should go to order history page", + "timedOut": false, + "duration": 718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b066cf5-f749-49df-ac75-3ed9bd8fbcc7", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details page", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should go to order details page", + "timedOut": false, + "duration": 744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "430e5822-1c0d-4ffb-804d-2350d5bb8d0e", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should download the file", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should download the file", + "timedOut": false, + "duration": 171, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDownloadFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.clickOnDownloadLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(newProductData.fileName, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ea984ca-0539-4984-bb05-fa3615e4a396", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page", + "fullTitle": "BO - Catalog - Products : Virtual tab Create order and download the virtual product should close the FO page", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5e3cb2a-d6a5-48d0-a300-db2d23ff3c6a", + "parentUUID": "c08641bf-a54e-441e-ba5d-4d88233b75c7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9a4f2345-3ecb-441e-8299-84a6e5cdcda6", + "86412f99-c9ab-4c9b-8cf0-3e5b5e433a24", + "1a00e20b-9179-4083-ab5f-9b41b089c51a", + "9eec3abc-2155-4a59-b40a-6993b2f3318f", + "87b2e2f9-1cb2-47f6-9834-4f80b61b6aaf", + "a32eaf15-24be-432b-982a-db78277f096c", + "4b066cf5-f749-49df-ac75-3ed9bd8fbcc7", + "430e5822-1c0d-4ffb-804d-2350d5bb8d0e", + "6ea984ca-0539-4984-bb05-fa3615e4a396", + "b5e3cb2a-d6a5-48d0-a300-db2d23ff3c6a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13872, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "title": "Check the options of out of stock", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set the product quantity to 0", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should set the product quantity to 0", + "timedOut": false, + "duration": 1451, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_setProductQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setProductQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setProductQuantity(page, -100)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca8ea308-43bc-4f7b-9e16-e18bf63c320d", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'Deny orders' option", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the 'Deny orders' option", + "timedOut": false, + "duration": 1449, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkOrderOption0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setOptionWhenOutOfStock(page, test.args.option)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "153c79b7-eb67-4c11-84b7-f0e02924beec", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should preview product", + "timedOut": false, + "duration": 1805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_previewProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ad4e58f-e079-4f05-bb56-c5f76adcf248", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the add to cart button", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the add to cart button", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkAddToCartButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAddToCartButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(test.args.isAddToCartButtonVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e40e53a-1eb6-4ddc-a5fc-76b86f13407a", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9db5e24b-0b52-4b07-bf33-86e3cf256a62", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'Allow orders' option", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the 'Allow orders' option", + "timedOut": false, + "duration": 1389, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkOrderOption1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setOptionWhenOutOfStock(page, test.args.option)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f45f5248-1711-480a-86e4-3554c9a7416a", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should preview product", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_previewProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b959e644-1f1b-4b76-b2d5-506fc99ac4dc", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the add to cart button", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the add to cart button", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkAddToCartButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAddToCartButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(test.args.isAddToCartButtonVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74c21a19-2884-437c-af26-72e0d6980ed1", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should go back to BO", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3c0529a-f8a0-48da-90b5-5464d366939d", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'Use default behavior' option", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the 'Use default behavior' option", + "timedOut": false, + "duration": 1396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkOrderOption2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setOptionWhenOutOfStock(page, test.args.option)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "596d3d73-6006-4538-9e4f-07301792713a", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should preview product", + "timedOut": false, + "duration": 1704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_previewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8111923-1fa5-401e-a0fc-9262e6f9376d", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the add to cart button", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the add to cart button", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkAddToCartButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAddToCartButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(test.args.isAddToCartButtonVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e11d32bb-545b-4dff-8474-4415519466fa", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "730079e5-6000-47ca-be57-900efa61543a", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit default behaviour link", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should click on edit default behaviour link", + "timedOut": false, + "duration": 1084, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_editBehaviour\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editBehaviour', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.clickOnEditDefaultBehaviourLink(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "790e79b6-4be0-4781-acea-0550bfdbaf2d", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should close the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75d001cc-70ba-45dd-aeb7-73ae260d8854", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should set label when in stock", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should set label when in stock", + "timedOut": false, + "duration": 1499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_setLabelWhenInStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setLabelWhenInStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setProductQuantity(page, 100)];\n case 2:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setLabelWhenInStock(page, 'Product available')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89e31e56-b474-4a83-9866-878140a85b22", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should preview product", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_previewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c35f40f-3d7d-4c78-b5bc-2d45b024cc9e", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product availability label", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the product availability label", + "timedOut": false, + "duration": 49, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkProductAvailableLabel\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var availabilityLabel;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductAvailableLabel', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 2:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains('Product available');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a11e5384-f72d-42ec-811d-019317a5b260", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should close the page", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27e5a2a3-9c48-47a2-8b3e-411b48a0ef92", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the allow orders option and set Label when out of stock", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the allow orders option and set Label when out of stock", + "timedOut": false, + "duration": 1583, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkDenyOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDenyOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setProductQuantity(page, -100)];\n case 2:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setOptionWhenOutOfStock(page, 'Allow orders')];\n case 3:\n _a.sent();\n return [4 /*yield*/, virtualProductTab_1.default.setLabelWhenOutOfStock(page, 'Out of stock')];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6bee73c-0274-43b0-bb6f-6a92669ed7fd", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should preview product", + "timedOut": false, + "duration": 1776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_previewProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8f539e0-56bc-4bf6-9682-d084b7660416", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the label of out of stock", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should check the label of out of stock", + "timedOut": false, + "duration": 96, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_checkLabelOutOfStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var availabilityLabel, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLabelOutOfStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 2:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains('Out of stock');\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4def9aa4-afeb-4157-927e-c0aac7bc9425", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Virtual tab Check the options of out of stock should close the page", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_goBackToBO5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d669d6f-bd3e-4176-b58c-fe36650749bd", + "parentUUID": "ed2b4735-8bbc-45ff-909b-9236088279a0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca8ea308-43bc-4f7b-9e16-e18bf63c320d", + "153c79b7-eb67-4c11-84b7-f0e02924beec", + "1ad4e58f-e079-4f05-bb56-c5f76adcf248", + "6e40e53a-1eb6-4ddc-a5fc-76b86f13407a", + "9db5e24b-0b52-4b07-bf33-86e3cf256a62", + "f45f5248-1711-480a-86e4-3554c9a7416a", + "b959e644-1f1b-4b76-b2d5-506fc99ac4dc", + "74c21a19-2884-437c-af26-72e0d6980ed1", + "b3c0529a-f8a0-48da-90b5-5464d366939d", + "596d3d73-6006-4538-9e4f-07301792713a", + "c8111923-1fa5-401e-a0fc-9262e6f9376d", + "e11d32bb-545b-4dff-8474-4415519466fa", + "730079e5-6000-47ca-be57-900efa61543a", + "790e79b6-4be0-4781-acea-0550bfdbaf2d", + "75d001cc-70ba-45dd-aeb7-73ae260d8854", + "89e31e56-b474-4a83-9866-878140a85b22", + "9c35f40f-3d7d-4c78-b5bc-2d45b024cc9e", + "a11e5384-f72d-42ec-811d-019317a5b260", + "27e5a2a3-9c48-47a2-8b3e-411b48a0ef92", + "e6bee73c-0274-43b0-bb6f-6a92669ed7fd", + "a8f539e0-56bc-4bf6-9682-d084b7660416", + "4def9aa4-afeb-4157-927e-c0aac7bc9425", + "2d669d6f-bd3e-4176-b58c-fe36650749bd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20809, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e1922c50-50a8-4905-8651-bb2b30c32499", + "title": "POST-TEST: Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/13_virtualTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Virtual tab POST-TEST: Delete product should delete product", + "timedOut": false, + "duration": 1708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_virtualTab_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n deleteProductMessage = _a.sent();\n (0, chai_1.expect)(deleteProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52856845-228c-4da6-9ac0-41aa262f58d5", + "parentUUID": "e1922c50-50a8-4905-8651-bb2b30c32499", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "52856845-228c-4da6-9ac0-41aa262f58d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1708, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b372b8cd-46c7-41ad-8ecc-5bd749621db1", + "title": "BO - Catalog - Products : Details tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Details tab\"", + "fullTitle": "BO - Catalog - Products : Details tab \"before all\" hook in \"BO - Catalog - Products : Details tab\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.generateImage(editProductData.files[0].file)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52714979-82e3-4b0c-891d-223a515468c0", + "parentUUID": "b372b8cd-46c7-41ad-8ecc-5bd749621db1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Details tab\"", + "fullTitle": "BO - Catalog - Products : Details tab \"after all\" hook in \"BO - Catalog - Products : Details tab\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(editProductData.files[0].file)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8b68337d-84ff-4512-8ff9-22b44bc8f18e", + "parentUUID": "b372b8cd-46c7-41ad-8ecc-5bd749621db1", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "6e0b9eda-f71b-4527-bdff-c183a95a0db8", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Details tab Create product should login in BO", + "timedOut": false, + "duration": 1752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "950d584e-742e-4f11-81ac-070603c32f2d", + "parentUUID": "6e0b9eda-f71b-4527-bdff-c183a95a0db8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Details tab Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbd38601-136e-47f1-b105-ee8053e733d6", + "parentUUID": "6e0b9eda-f71b-4527-bdff-c183a95a0db8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Details tab Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57206182-149a-42eb-92fa-614b27349abe", + "parentUUID": "6e0b9eda-f71b-4527-bdff-c183a95a0db8", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Catalog - Products : Details tab Create product should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2eff05f3-a16b-4485-a4a5-0ecb603b1e08", + "parentUUID": "6e0b9eda-f71b-4527-bdff-c183a95a0db8", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Details tab Create product should create standard product", + "timedOut": false, + "duration": 5108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fb8fc0d-4d71-4727-936a-663258c3b1bc", + "parentUUID": "6e0b9eda-f71b-4527-bdff-c183a95a0db8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "950d584e-742e-4f11-81ac-070603c32f2d", + "bbd38601-136e-47f1-b105-ee8053e733d6", + "57206182-149a-42eb-92fa-614b27349abe", + "2eff05f3-a16b-4485-a4a5-0ecb603b1e08", + "9fb8fc0d-4d71-4727-936a-663258c3b1bc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12933, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "title": "Check all options in Details tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to details tab and set References form with a wrong data and check the error message", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should go to details tab and set References form with a wrong data and check the error message", + "timedOut": false, + "duration": 2713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_setWrongData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWrongData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setProductDetails(page, newProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setMPN(page, newProductData.mpn)];\n case 3:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setUPC(page, newProductData.upc)];\n case 4:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.getErrorMessageInReferencesForm(page, 3)];\n case 5:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq(\"\\\"\".concat(newProductData.upc, \"\\\" is invalid\"));\n return [4 /*yield*/, detailsTab_1.default.setEAN13(page, newProductData.ean13)];\n case 6:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.getErrorMessageInReferencesForm(page, 4)];\n case 7:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq(\"\\\"\".concat(newProductData.ean13, \"\\\" is invalid\"));\n return [4 /*yield*/, detailsTab_1.default.setISBN(page, newProductData.isbn)];\n case 8:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.getErrorMessageInReferencesForm(page, 5)];\n case 9:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq(\"\\\"\".concat(newProductData.isbn, \"\\\" is invalid\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e26563c9-0f68-402e-a574-beae4313ab42", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should set References form with a good data", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should set References form with a good data", + "timedOut": false, + "duration": 1623, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_setGoodDara\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setGoodDara', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setMPN(page, editProductData.mpn)];\n case 2:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setUPC(page, editProductData.upc)];\n case 3:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setEAN13(page, editProductData.ean13)];\n case 4:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setISBN(page, editProductData.isbn)];\n case 5:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 6:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8904f8e4-7b95-4a7e-9338-2aef67517a4c", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should add 2 features", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should add 2 features", + "timedOut": false, + "duration": 1908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_addFirstFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setFeature(page, editProductData.features)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06a0c8ee-dade-4ad8-b960-f99f994e7686", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddbb54fd-c004-4cca-84c3-dbe5e4f7601f", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product features list", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should check the product features list", + "timedOut": false, + "duration": 332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_getProductFeaturesList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productFeatures;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getProductFeaturesList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductFeaturesList(page)];\n case 2:\n productFeatures = _a.sent();\n (0, chai_1.expect)(productFeatures).to.eq(\"Data sheet \".concat(editProductData.features[0].featureName, \" \").concat(editProductData.features[0].preDefinedValue)\n + \" \".concat(editProductData.features[1].customizedValueEn));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc40237c-c028-4926-b022-2896f3dee740", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19d5a9d0-442e-4e24-9861-cf1ab93de9c6", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Features link", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should check the Features link", + "timedOut": false, + "duration": 1152, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_checkFeatureLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFeatureLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'details')];\n case 2:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.clickonManageFeatures(page)];\n case 3:\n page = _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d62f0dda-5b68-4358-b145-12c273af1f7a", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should close the Features pages", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should close the Features pages", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_closeFeaturesTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFeaturesTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2af56058-af07-41e8-a9fd-3d55312b5ce8", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should add a custom feature value only on French", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should add a custom feature value only on French", + "timedOut": false, + "duration": 1047, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_addCustomFeatureValueInFr\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCustomFeatureValueInFr', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setFeature(page, productFeaturesFr)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnSaveProductButton(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.getAlertDangerBlockParagraphContent(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(detailsTab_1.default.featureCustomValueNotDefaultLanguageMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "904155e8-e4a0-4b7b-9fdd-0aed7df97d23", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created features", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should delete the created features", + "timedOut": false, + "duration": 3995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_deleteFeatures\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFeatures', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.deleteFeatures(page, editProductData.features.concat(productFeaturesFr))];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "971a4c83-286c-4889-af3b-e57fb07a02d3", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_previewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75dfe842-c59b-4dda-a896-fa0720eaf05f", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that product features list is empty", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should check that product features list is empty", + "timedOut": false, + "duration": 159, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_isFeatureBlockNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isFeatureBlockNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isFeaturesBlockVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b109f0ef-5bb8-4434-af36-c0240c91c976", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4871388e-f84c-47d5-a4ca-17ef61c2adb1", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Manage all files' link", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should click on 'Manage all files' link", + "timedOut": false, + "duration": 1045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_clickOnManageAllFiles\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnManageAllFiles', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.clickOnManageAllFiles(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(files_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da1181b0-b85d-42bf-a9dd-39f4b9c771b2", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should close Files page", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should close Files page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_closeFilesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFilesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "455a9126-5967-41ee-9421-f166e1a31914", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should search for a not existing file", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should search for a not existing file", + "timedOut": false, + "duration": 2084, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_searchNotExistingFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNotExistingFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.searchFile(page, 'hello world')];\n case 2:\n searchResult = _a.sent();\n (0, chai_1.expect)(searchResult).to.eq('No results found for \"hello world\"');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a835e58-d4b5-4f23-99ce-b5ba9d8535a0", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should add new file", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should add new file", + "timedOut": false, + "duration": 3435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_addNewFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addNewFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.addNewFile(page, editProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1fc109e-7b47-4970-9ecf-3578f9236d7d", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the file", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should delete the file", + "timedOut": false, + "duration": 609, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_deleteFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.deleteFiles(page, editProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.getNoFileAttachedMessage(page)];\n case 3:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.eq('No files attached');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2cf4c03-7832-4772-a859-85b0fe59c216", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should set the condition in product page", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should set the condition in product page", + "timedOut": false, + "duration": 1758, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_setCondition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setCondition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.setCondition(page, editProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91bb54bd-81bb-47b2-ad3f-ac7a45b9edbf", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_previewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "438dd033-d4bd-449b-969d-c4dd1817a965", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product condition", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should check the product condition", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_checkProductCondition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productCondition;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductCondition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductCondition(page)];\n case 2:\n productCondition = _a.sent();\n (0, chai_1.expect)(productCondition).to.eq(\"Condition \".concat(editProductData.condition));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "144d23ac-2776-4bd0-afb9-b45f5dd195e8", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d07be79d-f7fe-4408-ab5e-af0bc63d30be", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should create 4 customizations", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should create 4 customizations", + "timedOut": false, + "duration": 2055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_createCustomizations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomizations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.addNewCustomizations(page, editProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "677439d0-db08-468e-94c2-10cc694e1f96", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_previewProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c9d581b-627a-4d0a-ae3a-e67e433f20b4", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the customization section", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should check the customization section", + "timedOut": false, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_checkProductCustomizations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productCondition;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductCustomizations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isCustomizationBlockVisible(page)];\n case 2:\n productCondition = _a.sent();\n (0, chai_1.expect)(productCondition).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bf1ec88-bb59-4f11-9a8c-c3e4c9173793", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_goBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3ae03bf-48d4-4c08-8776-b5d3a9238f2b", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the 4 customizations", + "fullTitle": "BO - Catalog - Products : Details tab Check all options in Details tab should delete the 4 customizations", + "timedOut": false, + "duration": 4860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_deleteCustomizations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomizations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.deleteCustomizations(page, editProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "767d93fc-a1b0-49e3-9afb-bd1d6aa32cc6", + "parentUUID": "a8c60996-d365-4b26-bb68-1ce875f0794e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e26563c9-0f68-402e-a574-beae4313ab42", + "8904f8e4-7b95-4a7e-9338-2aef67517a4c", + "06a0c8ee-dade-4ad8-b960-f99f994e7686", + "ddbb54fd-c004-4cca-84c3-dbe5e4f7601f", + "bc40237c-c028-4926-b022-2896f3dee740", + "19d5a9d0-442e-4e24-9861-cf1ab93de9c6", + "d62f0dda-5b68-4358-b145-12c273af1f7a", + "2af56058-af07-41e8-a9fd-3d55312b5ce8", + "904155e8-e4a0-4b7b-9fdd-0aed7df97d23", + "971a4c83-286c-4889-af3b-e57fb07a02d3", + "75dfe842-c59b-4dda-a896-fa0720eaf05f", + "b109f0ef-5bb8-4434-af36-c0240c91c976", + "4871388e-f84c-47d5-a4ca-17ef61c2adb1", + "da1181b0-b85d-42bf-a9dd-39f4b9c771b2", + "455a9126-5967-41ee-9421-f166e1a31914", + "3a835e58-d4b5-4f23-99ce-b5ba9d8535a0", + "f1fc109e-7b47-4970-9ecf-3578f9236d7d", + "e2cf4c03-7832-4772-a859-85b0fe59c216", + "91bb54bd-81bb-47b2-ad3f-ac7a45b9edbf", + "438dd033-d4bd-449b-969d-c4dd1817a965", + "144d23ac-2776-4bd0-afb9-b45f5dd195e8", + "d07be79d-f7fe-4408-ab5e-af0bc63d30be", + "677439d0-db08-468e-94c2-10cc694e1f96", + "1c9d581b-627a-4d0a-ae3a-e67e433f20b4", + "0bf1ec88-bb59-4f11-9a8c-c3e4c9173793", + "a3ae03bf-48d4-4c08-8776-b5d3a9238f2b", + "767d93fc-a1b0-49e3-9afb-bd1d6aa32cc6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 36263, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e7b20345-8f5d-44d1-9a3d-5b004eeff669", + "title": "POST-TEST: Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Details tab POST-TEST: Delete product should delete product", + "timedOut": false, + "duration": 1486, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n deleteProductMessage = _a.sent();\n (0, chai_1.expect)(deleteProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f38a1ee-abad-4646-8036-b0fe9b99cbbe", + "parentUUID": "e7b20345-8f5d-44d1-9a3d-5b004eeff669", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f38a1ee-abad-4646-8036-b0fe9b99cbbe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1486, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c86f59ba-86a4-4562-8b49-ddb331adc97a", + "title": "POST-TEST: Delete file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/14_detailsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Files' page", + "fullTitle": "BO - Catalog - Products : Details tab POST-TEST: Delete file should go to 'Catalog > Files' page", + "timedOut": false, + "duration": 3771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_goToFilesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFilesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.filesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(files_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cf7a90e-533f-48ba-be05-42e7cf3fe7b2", + "parentUUID": "c86f59ba-86a4-4562-8b49-ddb331adc97a", + "isHook": false, + "skipped": false + }, + { + "title": "should delete files with Bulk Actions", + "fullTitle": "BO - Catalog - Products : Details tab POST-TEST: Delete file should delete files with Bulk Actions", + "timedOut": false, + "duration": 884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_detailsTab_BulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'BulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_2.default.deleteFilesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(files_2.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0329f4b4-5203-4321-a066-15a2de46f086", + "parentUUID": "c86f59ba-86a4-4562-8b49-ddb331adc97a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7cf7a90e-533f-48ba-be05-42e7cf3fe7b2", + "0329f4b4-5203-4321-a066-15a2de46f086" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4655, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "34ccc6bb-7e86-428d-96ac-7de7985ab461", + "title": "BO - Catalog - Products : Stocks tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/15_stocksTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/15_stocksTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Stocks tab\"", + "fullTitle": "BO - Catalog - Products : Stocks tab \"before all\" hook in \"BO - Catalog - Products : Stocks tab\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c5fec2c-35fd-490f-88f1-4839c03507ad", + "parentUUID": "34ccc6bb-7e86-428d-96ac-7de7985ab461", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Stocks tab\"", + "fullTitle": "BO - Catalog - Products : Stocks tab \"after all\" hook in \"BO - Catalog - Products : Stocks tab\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "37f39be2-fe79-48bc-995f-daef37bc170e", + "parentUUID": "34ccc6bb-7e86-428d-96ac-7de7985ab461", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5e28a91d-bd3e-4213-ac94-1fde7ce871d3", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/15_stocksTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/15_stocksTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Stocks tab Create product should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8b0d051-6a60-4eef-a2dd-cd509ae47706", + "parentUUID": "5e28a91d-bd3e-4213-ac94-1fde7ce871d3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Stocks tab Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d179693e-6f1b-48f9-b1ce-901be18e8203", + "parentUUID": "5e28a91d-bd3e-4213-ac94-1fde7ce871d3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Stocks tab Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da1fb14d-bb91-461b-8380-663589c67938", + "parentUUID": "5e28a91d-bd3e-4213-ac94-1fde7ce871d3", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Catalog - Products : Stocks tab Create product should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d897b9d-ddf8-48f3-bdae-ed568b65c62c", + "parentUUID": "5e28a91d-bd3e-4213-ac94-1fde7ce871d3", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Stocks tab Create product should create standard product", + "timedOut": false, + "duration": 5218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc1f5d84-61ca-4b3f-8c9b-1f0bdc049cc3", + "parentUUID": "5e28a91d-bd3e-4213-ac94-1fde7ce871d3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c8b0d051-6a60-4eef-a2dd-cd509ae47706", + "d179693e-6f1b-48f9-b1ce-901be18e8203", + "da1fb14d-bb91-461b-8380-663589c67938", + "2d897b9d-ddf8-48f3-bdae-ed568b65c62c", + "fc1f5d84-61ca-4b3f-8c9b-1f0bdc049cc3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12986, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "title": "Check all options in Stock tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/15_stocksTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/15_stocksTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Stocks tab", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should go to the Stocks tab", + "timedOut": false, + "duration": 88, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_goToStocksTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'stock')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'stock')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79081319-5c38-4f65-b825-a17a8072a716", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should add quantity to stock", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should add quantity to stock", + "timedOut": false, + "duration": 1448, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_addQuantityToStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addQuantityToStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setQuantityDelta(page, productQuantity)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 4:\n productHeaderSummary = _a.sent();\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal(\"\".concat(productQuantity, \" in stock\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67632621-2c76-426e-b3a7-9e28b1609a94", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should check the recent stock movement", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should check the recent stock movement", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_checkStockMovement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStockMovement', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.getStockMovement(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.dateTime).to.contains(todayDate),\n (0, chai_1.expect)(result.employee).to.equal(\"\".concat(employees_1.default.DefaultEmployee.firstName, \" \").concat(employees_1.default.DefaultEmployee.lastName)),\n (0, chai_1.expect)(result.quantity).to.equal(productQuantity),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "068b5ea1-dd57-4830-ab3c-33a41deb3e50", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should click on View all stock movements", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should click on View all stock movements", + "timedOut": false, + "duration": 1253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_clickViewAllStockMovements\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickViewAllStockMovements', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.clickViewAllStockMovements(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d59c6b1-959b-4d5b-9c6c-e67bec496fdf", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should close the Stock Movements page", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should close the Stock Movements page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_closeStockMovementsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeStockMovementsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "841ab55f-e0f6-4c2f-929f-a4bd62684877", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should fill Stocks values", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should fill Stocks values", + "timedOut": false, + "duration": 1678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_fillStockValues\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillStockValues', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setMinimalQuantity(page, productMinimalQuantity)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setStockLocation(page, productStockLocation)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setLowStockAlertByEmail(page, productLowStockAlertByEmail, productLowStockThreshold)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 5:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dbeef8c-ebd8-4740-a079-d96d19aa8f59", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should check Stocks values", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should check Stocks values", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_checkStockValues\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var valueMinimalQuantity, valueStockLocation, valueLowStockAlertByEmail, valueLowStockThreshold;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStockValues', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'minimal_quantity')];\n case 2:\n valueMinimalQuantity = _a.sent();\n (0, chai_1.expect)(valueMinimalQuantity).to.eq(productMinimalQuantity.toString());\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'location')];\n case 3:\n valueStockLocation = _a.sent();\n (0, chai_1.expect)(valueStockLocation).to.eq(productStockLocation);\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'low_stock_threshold_enabled')];\n case 4:\n valueLowStockAlertByEmail = _a.sent();\n (0, chai_1.expect)(valueLowStockAlertByEmail).to.eq(productLowStockAlertByEmail ? '1' : '0');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'low_stock_threshold')];\n case 5:\n valueLowStockThreshold = _a.sent();\n (0, chai_1.expect)(valueLowStockThreshold).to.eq(productLowStockThreshold.toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac103b07-8747-4495-9789-f5780ec63969", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should fill When out of stock values", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should fill When out of stock values", + "timedOut": false, + "duration": 1796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_fillWhenOutOfStockValues\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillWhenOutOfStockValues', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setLabelWhenInStock(page, productLabelWhenInStock)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setLabelWhenOutOfStock(page, productLabelWhenOutOfStock)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setAvailabilityDate(page, todayDate)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 5:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f4b7c6a-e148-4158-9796-534405a50b19", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should check When out of stock values", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should check When out of stock values", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_checkWhenOutOfStockValues\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var valueLabelWhenInStock, valueLabelWhenOutOfStock, valueAvailabilityDate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkWhenOutOfStockValues', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_now', '1')];\n case 2:\n valueLabelWhenInStock = _a.sent();\n (0, chai_1.expect)(valueLabelWhenInStock).to.eq(productLabelWhenInStock);\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_later', '1')];\n case 3:\n valueLabelWhenOutOfStock = _a.sent();\n (0, chai_1.expect)(valueLabelWhenOutOfStock).to.eq(productLabelWhenOutOfStock);\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_date')];\n case 4:\n valueAvailabilityDate = _a.sent();\n (0, chai_1.expect)(valueAvailabilityDate).to.eq(todayDate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10f41130-a252-4792-8ab8-a5118b30ad56", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should preview product", + "timedOut": false, + "duration": 1802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_previewProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_2.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d51241f7-01a5-4c1b-9005-3ef7a4d2dfeb", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should add product to cart", + "timedOut": false, + "duration": 4990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber, productAvailability;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart1', baseContext)];\n case 1:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_2.default.addProductToTheCart(page, productMinimalQuantity, [], false)];\n case 2:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_2.default.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(productMinimalQuantity);\n return [4 /*yield*/, product_2.default.getProductAvailabilityLabel(page)];\n case 4:\n productAvailability = _a.sent();\n (0, chai_1.expect)(productAvailability).to.be.contains(productLabelWhenInStock);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "970479a5-9458-444e-a002-d2c7e335030e", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_goBackToBackOffice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBackOffice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a4a1755-9e26-44c4-9db8-3207e50d80c5", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should check the deny orders option", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should check the deny orders option", + "timedOut": false, + "duration": 1583, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_checkDenyOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage, productHeaderSummary, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDenyOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setQuantityDelta(page, productQuantity * -1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setOptionWhenOutOfStock(page, 'Deny orders')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, add_1.default.getProductHeaderSummary(page)];\n case 5:\n productHeaderSummary = _a.sent();\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal('0 out of stock');\n return [4 /*yield*/, stocksTab_1.default.getStockMovement(page, 1)];\n case 6:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.dateTime).to.contains(todayDate),\n (0, chai_1.expect)(result.employee).to.equal(\"\".concat(employees_1.default.DefaultEmployee.firstName, \" \").concat(employees_1.default.DefaultEmployee.lastName)),\n (0, chai_1.expect)(result.quantity).to.equal(productQuantity * -1),\n ])];\n case 7:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af5eee8b-1d38-47dc-bf6e-26ddffba0846", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should preview product", + "timedOut": false, + "duration": 1769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_previewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_2.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08f15b9e-2f80-4463-aa66-ca13ce3c5ad4", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the Add to cart Button is disabled", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should check that the Add to cart Button is disabled", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_tryAddProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isAddToCartButtonEnabled, productAvailability;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'tryAddProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.isAddToCartButtonEnabled(page)];\n case 2:\n isAddToCartButtonEnabled = _a.sent();\n (0, chai_1.expect)(isAddToCartButtonEnabled).to.be.equal(false);\n return [4 /*yield*/, product_2.default.getProductAvailabilityLabel(page)];\n case 3:\n productAvailability = _a.sent();\n (0, chai_1.expect)(productAvailability).to.be.contains('Out-of-Stock');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aaee0d8b-524a-4475-ac40-eb596bf3423c", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_goBackToBackOffice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBackOffice2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fbf118a-7b6a-45da-94f3-129a8a4256dd", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should check the allow orders option and set Label when out of stock", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should check the allow orders option and set Label when out of stock", + "timedOut": false, + "duration": 1421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_checkAllowOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllowOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setOptionWhenOutOfStock(page, 'Allow orders')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a3b5c62-3841-4215-bbb4-9ebc0fdfae0b", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should preview product", + "timedOut": false, + "duration": 1715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_previewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_2.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "071eb432-b77b-482a-9f96-a13d358590de", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the Add to cart Button is enabled", + "fullTitle": "BO - Catalog - Products : Stocks tab Check all options in Stock tab should check that the Add to cart Button is enabled", + "timedOut": false, + "duration": 95, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isAddToCartButtonEnabled, productAvailability;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.isAddToCartButtonEnabled(page)];\n case 2:\n isAddToCartButtonEnabled = _a.sent();\n (0, chai_1.expect)(isAddToCartButtonEnabled).to.be.equal(true);\n return [4 /*yield*/, product_2.default.getProductAvailabilityLabel(page)];\n case 3:\n productAvailability = _a.sent();\n (0, chai_1.expect)(productAvailability).to.be.contains(productLabelWhenOutOfStock);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ed50094-e8c3-4202-be67-1fe728847920", + "parentUUID": "2b80a971-3a3f-4050-8576-2cb0b353f206", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "79081319-5c38-4f65-b825-a17a8072a716", + "67632621-2c76-426e-b3a7-9e28b1609a94", + "068b5ea1-dd57-4830-ab3c-33a41deb3e50", + "3d59c6b1-959b-4d5b-9c6c-e67bec496fdf", + "841ab55f-e0f6-4c2f-929f-a4bd62684877", + "8dbeef8c-ebd8-4740-a079-d96d19aa8f59", + "ac103b07-8747-4495-9789-f5780ec63969", + "7f4b7c6a-e148-4158-9796-534405a50b19", + "10f41130-a252-4792-8ab8-a5118b30ad56", + "d51241f7-01a5-4c1b-9005-3ef7a4d2dfeb", + "970479a5-9458-444e-a002-d2c7e335030e", + "2a4a1755-9e26-44c4-9db8-3207e50d80c5", + "af5eee8b-1d38-47dc-bf6e-26ddffba0846", + "08f15b9e-2f80-4463-aa66-ca13ce3c5ad4", + "aaee0d8b-524a-4475-ac40-eb596bf3423c", + "7fbf118a-7b6a-45da-94f3-129a8a4256dd", + "1a3b5c62-3841-4215-bbb4-9ebc0fdfae0b", + "071eb432-b77b-482a-9f96-a13d358590de", + "9ed50094-e8c3-4202-be67-1fe728847920" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20699, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "title": "POST-TEST: Delete product 'Handmade Frozen Cheese'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/15_stocksTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/15_stocksTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Handmade Frozen Cheese'\"", + "fullTitle": "BO - Catalog - Products : Stocks tab POST-TEST: Delete product 'Handmade Frozen Cheese' \"before all\" hook in \"POST-TEST: Delete product 'Handmade Frozen Cheese'\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf27465b-1bcc-4440-884b-04cb1dba423b", + "parentUUID": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Handmade Frozen Cheese'\"", + "fullTitle": "BO - Catalog - Products : Stocks tab POST-TEST: Delete product 'Handmade Frozen Cheese' \"after all\" hook in \"POST-TEST: Delete product 'Handmade Frozen Cheese'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f8e84eee-de3b-4ef5-84fe-a7e10081ce47", + "parentUUID": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Stocks tab POST-TEST: Delete product 'Handmade Frozen Cheese' should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29f9c598-4e18-413a-8af0-1e537324f6a6", + "parentUUID": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Stocks tab POST-TEST: Delete product 'Handmade Frozen Cheese' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_postTest_1_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5213025-ff13-45af-b026-4d2f11548d3b", + "parentUUID": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Products : Stocks tab POST-TEST: Delete product 'Handmade Frozen Cheese' should reset all filters", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_postTest_1_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b584aad-1ab8-43bd-a3bd-629465ddbbff", + "parentUUID": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Catalog - Products : Stocks tab POST-TEST: Delete product 'Handmade Frozen Cheese' should click on delete product button", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_postTest_1_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "277c1da7-bbdb-4923-be1b-d7c151382b55", + "parentUUID": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Stocks tab POST-TEST: Delete product 'Handmade Frozen Cheese' should delete product", + "timedOut": false, + "duration": 694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_postTest_1_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbd9ea0c-19ce-4313-90f0-293ea40ca434", + "parentUUID": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Stocks tab POST-TEST: Delete product 'Handmade Frozen Cheese' should reset filter", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_stocksTab_postTest_1_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c25d70b-7129-46e1-bb77-1c2211e82ba6", + "parentUUID": "a36e8a42-f285-4abb-9ec2-8c4fb740f0c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "29f9c598-4e18-413a-8af0-1e537324f6a6", + "c5213025-ff13-45af-b026-4d2f11548d3b", + "6b584aad-1ab8-43bd-a3bd-629465ddbbff", + "277c1da7-bbdb-4923-be1b-d7c151382b55", + "dbd9ea0c-19ce-4313-90f0-293ea40ca434", + "7c25d70b-7129-46e1-bb77-1c2211e82ba6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6688, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cd326ccb-f3cf-48d9-bcd5-866e3fdb2770", + "title": "BO - Catalog - Products : Shipping tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/16_shippingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/16_shippingTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Shipping tab\"", + "fullTitle": "BO - Catalog - Products : Shipping tab \"before all\" hook in \"BO - Catalog - Products : Shipping tab\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d263b9df-3764-47e7-b897-d63a3a6e7ea1", + "parentUUID": "cd326ccb-f3cf-48d9-bcd5-866e3fdb2770", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Shipping tab\"", + "fullTitle": "BO - Catalog - Products : Shipping tab \"after all\" hook in \"BO - Catalog - Products : Shipping tab\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b4bf108e-68f6-46a1-a27f-8c782c964e87", + "parentUUID": "cd326ccb-f3cf-48d9-bcd5-866e3fdb2770", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0ae80a69-bf1e-4649-b60e-7484b2762731", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/16_shippingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/16_shippingTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Shipping tab Create product should login in BO", + "timedOut": false, + "duration": 1830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "404f608f-9c80-46c5-b7ad-d633b74ee57c", + "parentUUID": "0ae80a69-bf1e-4649-b60e-7484b2762731", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Shipping tab Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1af62ce-65cb-44f8-861b-7b0cd16035f4", + "parentUUID": "0ae80a69-bf1e-4649-b60e-7484b2762731", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Shipping tab Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(isModalVisible).to.be.true];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59dfc2ef-486a-4925-9533-379051e9e39c", + "parentUUID": "0ae80a69-bf1e-4649-b60e-7484b2762731", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Catalog - Products : Shipping tab Create product should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c486fe89-2a57-443a-b770-4557da32ac07", + "parentUUID": "0ae80a69-bf1e-4649-b60e-7484b2762731", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Shipping tab Create product should create standard product", + "timedOut": false, + "duration": 5056, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "340aec61-2bbb-414d-8da1-c6c67dfe4b17", + "parentUUID": "0ae80a69-bf1e-4649-b60e-7484b2762731", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "404f608f-9c80-46c5-b7ad-d633b74ee57c", + "a1af62ce-65cb-44f8-861b-7b0cd16035f4", + "59dfc2ef-486a-4925-9533-379051e9e39c", + "c486fe89-2a57-443a-b770-4557da32ac07", + "340aec61-2bbb-414d-8da1-c6c67dfe4b17" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12991, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "title": "Check all options in shipping tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/16_shippingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/16_shippingTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to shipping tab and edit package dimension", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go to shipping tab and edit package dimension", + "timedOut": false, + "duration": 1526, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_editPackageDimension\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editPackageDimension', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.setPackageDimension(page, editProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c30c2e4-c67b-4719-898c-c523d233378f", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should edit delivery time to 'None'", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should edit delivery time to 'None'", + "timedOut": false, + "duration": 1380, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_editDeliveryTime\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editDeliveryTime', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.setDeliveryTime(page, editProductData.deliveryTime)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d91afdf5-034e-4c5f-9732-7e86aeaea2a1", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should preview product", + "timedOut": false, + "duration": 1806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac2a0dcb-1a6b-4f96-97e0-3de43b54a1a3", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no delivery time is displayed", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should check that no delivery time is displayed", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_checkDeliveryTime\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisplayed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryTime', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isDeliveryTimeDisplayed(page)];\n case 2:\n isDisplayed = _a.sent();\n (0, chai_1.expect)(isDisplayed).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "112ce966-c9bd-45c2-8060-d0a0ef9d7e53", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b25e257c-7725-400d-be43-cb8256c67644", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should edit delivery time to 'Default delivery time'", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should edit delivery time to 'Default delivery time'", + "timedOut": false, + "duration": 1362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_editDeliveryTime2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editDeliveryTime2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.setDeliveryTime(page, 'Default delivery time')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75654fe3-0a5b-4a12-9f0c-9934843a597b", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should preview product", + "timedOut": false, + "duration": 1668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_previewProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bffb74d-6def-4c20-87ae-37298639bacd", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no delivery time is displayed", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should check that no delivery time is displayed", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_checkDeliveryTime1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisplayed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryTime1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isDeliveryTimeDisplayed(page)];\n case 2:\n isDisplayed = _a.sent();\n (0, chai_1.expect)(isDisplayed).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9b81e78-ec9a-4576-9c84-392dabdf419c", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a924e18-2e62-4440-87cf-6ab1e8b3e9c1", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Edit delivery time' link", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should click on 'Edit delivery time' link", + "timedOut": false, + "duration": 1059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_clickOnEditDeliveryTimeLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditDeliveryTimeLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.clickOnEditDeliveryTimeLink(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c3314c2-a1de-4005-8519-b8fb015e2eb2", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "386a5f55-2db1-4165-8bc8-75041f72a43a", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should edit delivery time to 'Specific delivery time'", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should edit delivery time to 'Specific delivery time'", + "timedOut": false, + "duration": 1365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_editDeliveryTime3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editDeliveryTime3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.setDeliveryTime(page, 'Specific delivery time')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de7040ae-22a8-444d-a696-0918921fe04d", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should set delivery time of in-stock products and out-of-stock products", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should set delivery time of in-stock products and out-of-stock products", + "timedOut": false, + "duration": 1456, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_setDeliveryTime\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setDeliveryTime', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.setDeliveryTimeInStockProducts(page, '1 Day')];\n case 2:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.setDeliveryTimeOutOfStockProducts(page, '12 Days')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "090877ea-141c-455d-8029-db4df900c5c7", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should preview product", + "timedOut": false, + "duration": 1692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_previewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4d18847-9dde-4bff-94f8-73c272d68b58", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the delivery time in stock product", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should check the delivery time in stock product", + "timedOut": false, + "duration": 109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_checkDeliveryTimeInStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryTimeText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryTimeInStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getDeliveryInformationText(page)];\n case 2:\n deliveryTimeText = _a.sent();\n (0, chai_1.expect)(deliveryTimeText).to.equal('1 Day');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1900abb0-33b9-4143-8e32-7bfbb3870ad9", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go back to BO", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfdf46d4-d34b-49f3-ace5-e7bae5acd446", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should update the product quantity to 0", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should update the product quantity to 0", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_updateQuantityTo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantityTo0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setProductStock(page, editProductData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "101f3fbd-fcd9-484c-891e-328cf7f68748", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should allow order when out of stock", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should allow order when out of stock", + "timedOut": false, + "duration": 1441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_allowOrderWhenOutOfStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'allowOrderWhenOutOfStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setOptionWhenOutOfStock(page, 'Allow orders')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b504205-6234-4a41-b11e-382b07e7292c", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should preview product", + "timedOut": false, + "duration": 1651, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_previewProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8f19b21-cc03-48c9-8f7f-2547dd1884c1", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the delivery time in stock product", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should check the delivery time in stock product", + "timedOut": false, + "duration": 102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_checkDeliveryTimeInStock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryTimeText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryTimeInStock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getDeliveryInformationText(page)];\n case 2:\n deliveryTimeText = _a.sent();\n (0, chai_1.expect)(deliveryTimeText).to.equal('12 Days');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5409c47b-1139-4eb6-a99b-3d47db61acec", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee9ce03a-b0d3-4ee5-a65a-9e85a2ead0db", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should set additional shipping costs", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should set additional shipping costs", + "timedOut": false, + "duration": 1440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_setAdditionalShippingCosts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAdditionalShippingCosts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.setAdditionalShippingCosts(page, 10)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "113d63a7-c4e3-404b-b2b2-c8b4198e4bd4", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should preview product", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_previewProduct5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0501ac51-4ca5-4945-a143-48928cb01273", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should add product to cart", + "timedOut": false, + "duration": 3415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fec00670-32f2-4df3-bca4-dce660b3c9a3", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and validate the cart", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should proceed to checkout and validate the cart", + "timedOut": false, + "duration": 210, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_validateCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca88c375-50d7-4fd1-a4dc-4edb29538bae", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by default customer", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should sign in by default customer", + "timedOut": false, + "duration": 1039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02f6b355-ea1d-45b2-bd14-a78a2a6d46c5", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery address step", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go to delivery address step", + "timedOut": false, + "duration": 269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_confirmAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryStep;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isDeliveryStep = _a.sent();\n (0, chai_1.expect)(isDeliveryStep, 'Delivery Step boc is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51378034-927c-49d6-acf9-a14e48200b14", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should select the first carrier and check the shipping price", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should select the first carrier and check the shipping price", + "timedOut": false, + "duration": 2078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_checkShippingPrice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingCost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingPrice1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethod(page, carriers_1.default.myCarrier.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getShippingCost(page)];\n case 3:\n shippingCost = _a.sent();\n (0, chai_1.expect)(shippingCost).to.equal('€20.40');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e11d52b4-28f7-4f10-b8b8-5d0edf999c97", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goBackToBO5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21b3698a-0bc7-4f5e-aa34-619ab3f137d0", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should select available carrier", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should select available carrier", + "timedOut": false, + "duration": 1506, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_selectCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shippingTab_1.default.selectAvailableCarrier(page, 'Click and collect')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4899c45d-640f-49dc-870f-7ee3d06dda99", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should preview product", + "timedOut": false, + "duration": 1944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_previewProduct6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31356b25-20f5-40b4-b597-a45a2ff26418", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to cart page", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go to cart page", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goToCartPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCartPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.goToCartPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c060b7c3-3db0-4852-9458-3c1c3bc4cb9d", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and check the shipping methods", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should proceed to checkout and check the shipping methods", + "timedOut": false, + "duration": 216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_checkShippingMethods\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingMethods', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getAllCarriersNames(page)];\n case 3:\n carriers = _a.sent();\n (0, chai_1.expect)(carriers).to.deep.eq([carriers_1.default.default.name]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34e400bc-e643-476e-9ffe-7bc40fea4ace", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Shipping tab Check all options in shipping tab should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_goBackToBO6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9305f60-e6cf-4b22-a198-f3a5532f737b", + "parentUUID": "9ffb2dee-1328-4989-86e7-cd974d40c8e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3c30c2e4-c67b-4719-898c-c523d233378f", + "d91afdf5-034e-4c5f-9732-7e86aeaea2a1", + "ac2a0dcb-1a6b-4f96-97e0-3de43b54a1a3", + "112ce966-c9bd-45c2-8060-d0a0ef9d7e53", + "b25e257c-7725-400d-be43-cb8256c67644", + "75654fe3-0a5b-4a12-9f0c-9934843a597b", + "2bffb74d-6def-4c20-87ae-37298639bacd", + "a9b81e78-ec9a-4576-9c84-392dabdf419c", + "9a924e18-2e62-4440-87cf-6ab1e8b3e9c1", + "8c3314c2-a1de-4005-8519-b8fb015e2eb2", + "386a5f55-2db1-4165-8bc8-75041f72a43a", + "de7040ae-22a8-444d-a696-0918921fe04d", + "090877ea-141c-455d-8029-db4df900c5c7", + "b4d18847-9dde-4bff-94f8-73c272d68b58", + "1900abb0-33b9-4143-8e32-7bfbb3870ad9", + "cfdf46d4-d34b-49f3-ace5-e7bae5acd446", + "101f3fbd-fcd9-484c-891e-328cf7f68748", + "7b504205-6234-4a41-b11e-382b07e7292c", + "b8f19b21-cc03-48c9-8f7f-2547dd1884c1", + "5409c47b-1139-4eb6-a99b-3d47db61acec", + "ee9ce03a-b0d3-4ee5-a65a-9e85a2ead0db", + "113d63a7-c4e3-404b-b2b2-c8b4198e4bd4", + "0501ac51-4ca5-4945-a143-48928cb01273", + "fec00670-32f2-4df3-bca4-dce660b3c9a3", + "ca88c375-50d7-4fd1-a4dc-4edb29538bae", + "02f6b355-ea1d-45b2-bd14-a78a2a6d46c5", + "51378034-927c-49d6-acf9-a14e48200b14", + "e11d52b4-28f7-4f10-b8b8-5d0edf999c97", + "21b3698a-0bc7-4f5e-aa34-619ab3f137d0", + "4899c45d-640f-49dc-870f-7ee3d06dda99", + "31356b25-20f5-40b4-b597-a45a2ff26418", + "c060b7c3-3db0-4852-9458-3c1c3bc4cb9d", + "34e400bc-e643-476e-9ffe-7bc40fea4ace", + "b9305f60-e6cf-4b22-a198-f3a5532f737b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 33078, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "66e1ba99-e115-43e5-ae9e-78a787d4d86c", + "title": "POST-TEST: Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/16_shippingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/16_shippingTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Shipping tab POST-TEST: Delete product should delete product", + "timedOut": false, + "duration": 1504, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_shippingTab_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n deleteProductMessage = _a.sent();\n (0, chai_1.expect)(deleteProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48628c58-61f9-4ad1-83f5-fdc18ab24a25", + "parentUUID": "66e1ba99-e115-43e5-ae9e-78a787d4d86c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "48628c58-61f9-4ad1-83f5-fdc18ab24a25" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1504, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6397705e-355c-418e-8009-99324f34e3e2", + "title": "BO - Catalog - Products : Pricing tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Pricing tab\"", + "fullTitle": "BO - Catalog - Products : Pricing tab \"before all\" hook in \"BO - Catalog - Products : Pricing tab\"", + "timedOut": false, + "duration": 79, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c07fdbec-6f4f-4254-997c-841eca8284e1", + "parentUUID": "6397705e-355c-418e-8009-99324f34e3e2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Pricing tab\"", + "fullTitle": "BO - Catalog - Products : Pricing tab \"after all\" hook in \"BO - Catalog - Products : Pricing tab\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1a28baae-c632-4581-85c8-927c4ca6b343", + "parentUUID": "6397705e-355c-418e-8009-99324f34e3e2", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c30a8b1d-a5b9-4aa3-9803-e8973626b7e7", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Pricing tab Create product should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2c86cd8-d4c8-4b1f-a62a-220d91387e46", + "parentUUID": "c30a8b1d-a5b9-4aa3-9803-e8973626b7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Pricing tab Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d00a204-b2d2-41e5-8706-06db3ff65a8d", + "parentUUID": "c30a8b1d-a5b9-4aa3-9803-e8973626b7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Pricing tab Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5202724-b0ca-4f0e-b3ad-c9e75c9f7862", + "parentUUID": "c30a8b1d-a5b9-4aa3-9803-e8973626b7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Catalog - Products : Pricing tab Create product should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61dba257-ca87-44cc-ab03-4805a844bcaf", + "parentUUID": "c30a8b1d-a5b9-4aa3-9803-e8973626b7e7", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Pricing tab Create product should create standard product", + "timedOut": false, + "duration": 5206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7abb370c-2932-4394-9f35-ba341b0026bf", + "parentUUID": "c30a8b1d-a5b9-4aa3-9803-e8973626b7e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e2c86cd8-d4c8-4b1f-a62a-220d91387e46", + "7d00a204-b2d2-41e5-8706-06db3ff65a8d", + "c5202724-b0ca-4f0e-b3ad-c9e75c9f7862", + "61dba257-ca87-44cc-ab03-4805a844bcaf", + "7abb370c-2932-4394-9f35-ba341b0026bf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13018, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "title": "Check all options in Details tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check summary block", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check summary block", + "timedOut": false, + "duration": 76, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.getSummary(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.priceTaxExcludedValue).to.eq('€100.00 tax excl.'),\n (0, chai_1.expect)(result.priceTaxIncludedValue).to.eq('€100.00 tax incl.'),\n (0, chai_1.expect)(result.marginValue).to.eq('€100.00 margin'),\n (0, chai_1.expect)(result.marginRateValue).to.eq('100.00% margin rate'),\n (0, chai_1.expect)(result.WholesalePriceValue).to.eq('€0.00 cost price'),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "943beebf-0124-4b2e-9e19-2a4cc2e5919c", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af34cbd3-9f94-424d-817d-165ad106ae1f", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check the product price", + "timedOut": false, + "duration": 103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkProductPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.eq('€100.00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c172ef33-75a7-493a-94fb-070b8f330ed3", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6d8a60f-5712-4214-bab3-5f077e0d069e", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product price and the tax rule", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should edit the product price and the tax rule", + "timedOut": false, + "duration": 1458, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_editRetailPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editRetailPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setTaxRule(page, 'FR Taux standard (20%)')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0243c54-9fc4-4d39-bcd7-ea463441c74a", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check summary block", + "timedOut": false, + "duration": 67, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.getSummary(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.priceTaxExcludedValue).to.eq('€100.00 tax excl.'),\n (0, chai_1.expect)(result.priceTaxIncludedValue).to.eq('€120.00 tax incl.'),\n (0, chai_1.expect)(result.marginValue).to.eq('€100.00 margin'),\n (0, chai_1.expect)(result.marginRateValue).to.eq('100.00% margin rate'),\n (0, chai_1.expect)(result.WholesalePriceValue).to.eq('€0.00 cost price'),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0e06208-5ebf-4562-987c-ab4b66b19d19", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_previewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3690b76a-7dff-423e-b372-0a4dc645611b", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check the product price", + "timedOut": false, + "duration": 107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkProductPrice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductPrice2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.eq('€120.00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a077a70-34d0-4044-a3b4-71617c53cb26", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2c00d2c-7e66-43d5-956d-7fdc10de5ff9", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should add a cost price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should add a cost price", + "timedOut": false, + "duration": 1419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_addCostPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCostPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setCostPrice(page, 35)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "430a28b1-aa30-41c1-896e-5139ba612239", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check summary block", + "timedOut": false, + "duration": 69, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkSummaryBlock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.getSummary(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.priceTaxExcludedValue).to.eq('€100.00 tax excl.'),\n (0, chai_1.expect)(result.priceTaxIncludedValue).to.eq('€120.00 tax incl.'),\n (0, chai_1.expect)(result.marginValue).to.eq('€65.00 margin'),\n (0, chai_1.expect)(result.marginRateValue).to.eq('65.00% margin rate'),\n (0, chai_1.expect)(result.WholesalePriceValue).to.eq('€35.00 cost price'),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5f9618c-74e3-48c6-937e-d7c8f9bb4624", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Retail price per unit section", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should edit Retail price per unit section", + "timedOut": false, + "duration": 1499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_editRetailPriceParUnit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editRetailPriceParUnit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setDisplayRetailPricePerUnit(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setRetailPricePerUnit(page, true, 10, 'per unit')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a990ae5-b232-4f18-a1e3-434622fabd51", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check summary block", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkSummaryBlock4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, unitPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.getSummary(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.priceTaxExcludedValue).to.eq('€100.00 tax excl.'),\n (0, chai_1.expect)(result.priceTaxIncludedValue).to.eq('€120.00 tax incl.'),\n (0, chai_1.expect)(result.marginValue).to.eq('€65.00 margin'),\n (0, chai_1.expect)(result.marginRateValue).to.eq('65.00% margin rate'),\n (0, chai_1.expect)(result.WholesalePriceValue).to.eq('€35.00 cost price'),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.getUnitPriceValue(page)];\n case 4:\n unitPrice = _a.sent();\n (0, chai_1.expect)(unitPrice).to.eq('€10.00 per unit');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4de11146-c277-4e77-a87b-aa28e2d3aec2", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_previewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4239ba95-8862-4c1e-ace1-ccfb9effaafc", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the price per unit", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check the price per unit", + "timedOut": false, + "duration": 112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkUnitPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var flagText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUnitPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductUnitPrice(page)];\n case 2:\n flagText = _a.sent();\n (0, chai_1.expect)(flagText).to.eq('€12.00 per unit');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3f39032-d0eb-4100-8678-39142b4f532a", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5e4c586-dd35-461b-90e4-815570cb1112", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check Display On sale flag", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check Display On sale flag", + "timedOut": false, + "duration": 1425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkDisplayOnSaleFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDisplayOnSaleFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setDisplayOnSaleFlag(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d321840-0196-4cf7-8924-986864635eee", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_previewProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a5cd262-7973-409d-8dba-7b29cfb803ff", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the on sale flag", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check the on sale flag", + "timedOut": false, + "duration": 110, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkOnSaleFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var flagText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOnSaleFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductTag(page)];\n case 2:\n flagText = _a.sent();\n (0, chai_1.expect)(flagText).to.contains('On sale!');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ccc002e-d3ae-43b1-9883-abc7673d97c3", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "370eb11c-bf05-4eb3-9417-e4bb0e4e93ee", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should add a specific price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should add a specific price", + "timedOut": false, + "duration": 1629, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_addSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, specificPriceData.specificPrice)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.equal(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc9b7fd9-a4b5-415a-8313-e52b8ec36df2", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 2020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_previewProduct5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d9778dd-0de5-4df5-9c53-7300ad33970b", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check the product price", + "timedOut": false, + "duration": 114, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.eq('€100.00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af82bbd8-21c5-422b-ada5-7b4b49953b0e", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goBackToBO5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bb4c21a-28ed-438b-846a-d32645d87dcc", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit specific price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should edit specific price", + "timedOut": false, + "duration": 1595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_editSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnEditSpecificPriceIcon(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, editSpecificPriceData.specificPrice)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41359e77-b7cf-403a-aadb-25fb7aa7413f", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 2034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_previewProduct6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10968bbb-f307-4d13-8c23-74b2e8f97a64", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check the product price", + "timedOut": false, + "duration": 113, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkUpdatedSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.eq('€90.00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2d513c7-52c3-43c6-8c17-d79ee70e30f3", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goBackToBO6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "beaf3b15-32cd-41e9-a7e1-481db8058278", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete specific price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should delete specific price", + "timedOut": false, + "duration": 591, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_deleteSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.deleteSpecificPrice(page, 1)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(pricingTab_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adce2d7c-a8fb-487a-a3ef-592eabcd9ba4", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should preview product", + "timedOut": false, + "duration": 1886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_previewProduct7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a02b627b-713a-4bd1-a83a-fd630bc65d77", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should check the product price", + "timedOut": false, + "duration": 107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_checkDeletedSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeletedSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.eq('€120.00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c61747e-409f-42d3-9499-5d3e3049c040", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goBackToBO7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af291dfc-e1ed-422e-89f3-88f06a2e0ecc", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on show catalog price rule button then on manage catalog price rules", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should click on show catalog price rule button then on manage catalog price rules", + "timedOut": false, + "duration": 1107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_clickOnManageCatalogPriceRuleLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnManageCatalogPriceRuleLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnShowCatalogPriceRuleButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnManageCatalogPriceRuleLink(page)];\n case 3:\n page = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(catalogPriceRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1afd7702-2da1-4e9a-b43e-005e420241c2", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should create a new catalog price rule", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should create a new catalog price rule", + "timedOut": false, + "duration": 2178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_createCatalogPriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCatalogPriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.setCatalogPriceRule(page, newCatalogPriceRuleData)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c535963-a0e7-40c4-b5f4-fe6408b322bb", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should close the page", + "timedOut": false, + "duration": 421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_closePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5b93fd7-2f81-4401-8821-d2d75dcc7792", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on show catalog price rule button and check the catalog price rule", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should click on show catalog price rule button and check the catalog price rule", + "timedOut": false, + "duration": 352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_clickOnShowCatalogPriceRuleButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnShowCatalogPriceRuleButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnShowCatalogPriceRuleButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.getCatalogPriceRuleData(page, 1)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.eq(newCatalogPriceRuleData.name),\n (0, chai_1.expect)(result.currency).to.eq(newCatalogPriceRuleData.currency),\n (0, chai_1.expect)(result.country).to.eq(newCatalogPriceRuleData.country),\n (0, chai_1.expect)(result.group).to.eq(newCatalogPriceRuleData.group),\n (0, chai_1.expect)(result.store).to.eq(global.INSTALL.SHOP_NAME),\n (0, chai_1.expect)(result.discount).to.eq('-€20.00 (tax incl.)'),\n (0, chai_1.expect)(result.fromQuantity).to.eq(newCatalogPriceRuleData.fromQuantity),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84d19db0-fb2d-4e20-90f3-6101d1e8f607", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on hide catalog price rules button", + "fullTitle": "BO - Catalog - Products : Pricing tab Check all options in Details tab should click on hide catalog price rules button", + "timedOut": false, + "duration": 1025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_clickOnHideCatalogPriceRuleButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCatalogPriceRulesTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnHideCatalogPriceRuleButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnHideCatalogPriceRulesButton(page)];\n case 2:\n isCatalogPriceRulesTableVisible = _a.sent();\n (0, chai_1.expect)(isCatalogPriceRulesTableVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb8a3543-8572-4b82-a8d6-92b3529ebc12", + "parentUUID": "1251089a-ab1c-4def-a94c-b4139d6d49d4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "943beebf-0124-4b2e-9e19-2a4cc2e5919c", + "af34cbd3-9f94-424d-817d-165ad106ae1f", + "c172ef33-75a7-493a-94fb-070b8f330ed3", + "e6d8a60f-5712-4214-bab3-5f077e0d069e", + "e0243c54-9fc4-4d39-bcd7-ea463441c74a", + "c0e06208-5ebf-4562-987c-ab4b66b19d19", + "3690b76a-7dff-423e-b372-0a4dc645611b", + "6a077a70-34d0-4044-a3b4-71617c53cb26", + "b2c00d2c-7e66-43d5-956d-7fdc10de5ff9", + "430a28b1-aa30-41c1-896e-5139ba612239", + "b5f9618c-74e3-48c6-937e-d7c8f9bb4624", + "7a990ae5-b232-4f18-a1e3-434622fabd51", + "4de11146-c277-4e77-a87b-aa28e2d3aec2", + "4239ba95-8862-4c1e-ace1-ccfb9effaafc", + "d3f39032-d0eb-4100-8678-39142b4f532a", + "f5e4c586-dd35-461b-90e4-815570cb1112", + "0d321840-0196-4cf7-8924-986864635eee", + "7a5cd262-7973-409d-8dba-7b29cfb803ff", + "5ccc002e-d3ae-43b1-9883-abc7673d97c3", + "370eb11c-bf05-4eb3-9417-e4bb0e4e93ee", + "cc9b7fd9-a4b5-415a-8313-e52b8ec36df2", + "2d9778dd-0de5-4df5-9c53-7300ad33970b", + "af82bbd8-21c5-422b-ada5-7b4b49953b0e", + "3bb4c21a-28ed-438b-846a-d32645d87dcc", + "41359e77-b7cf-403a-aadb-25fb7aa7413f", + "10968bbb-f307-4d13-8c23-74b2e8f97a64", + "c2d513c7-52c3-43c6-8c17-d79ee70e30f3", + "beaf3b15-32cd-41e9-a7e1-481db8058278", + "adce2d7c-a8fb-487a-a3ef-592eabcd9ba4", + "a02b627b-713a-4bd1-a83a-fd630bc65d77", + "9c61747e-409f-42d3-9499-5d3e3049c040", + "af291dfc-e1ed-422e-89f3-88f06a2e0ecc", + "1afd7702-2da1-4e9a-b43e-005e420241c2", + "4c535963-a0e7-40c4-b5f4-fe6408b322bb", + "c5b93fd7-2f81-4401-8821-d2d75dcc7792", + "84d19db0-fb2d-4e20-90f3-6101d1e8f607", + "cb8a3543-8572-4b82-a8d6-92b3529ebc12" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28562, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dfb6b676-3969-4fce-94e4-1c8970d4e755", + "title": "POST-TEST: Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Pricing tab POST-TEST: Delete product should delete product", + "timedOut": false, + "duration": 1489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n deleteProductMessage = _a.sent();\n (0, chai_1.expect)(deleteProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9750bcc1-3f48-4c13-b700-551620670f24", + "parentUUID": "dfb6b676-3969-4fce-94e4-1c8970d4e755", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9750bcc1-3f48-4c13-b700-551620670f24" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1489, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "91722293-1ea6-45d2-acd3-0a0a7d37cdec", + "title": "POST-TEST : Delete catalog price rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/17_pricingTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Products : Pricing tab POST-TEST : Delete catalog price rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d25dfde1-c4ba-4892-b95d-995b39a24d2e", + "parentUUID": "91722293-1ea6-45d2-acd3-0a0a7d37cdec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog Price Rules' tab", + "fullTitle": "BO - Catalog - Products : Pricing tab POST-TEST : Delete catalog price rule should go to 'Catalog Price Rules' tab", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_goToCatalogPriceRulesTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPriceRulesTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToCatalogPriceRulesTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(catalogPriceRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2ff6e4b-0b7b-406f-b8e5-02f1c7397892", + "parentUUID": "91722293-1ea6-45d2-acd3-0a0a7d37cdec", + "isHook": false, + "skipped": false + }, + { + "title": "should delete catalog price rule", + "fullTitle": "BO - Catalog - Products : Pricing tab POST-TEST : Delete catalog price rule should delete catalog price rule", + "timedOut": false, + "duration": 1062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_pricingTab_deleteCatalogPriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCatalogPriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.deleteCatalogPriceRule(page, newCatalogPriceRuleData.name)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.contains(catalogPriceRules_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b7bd907-7325-49dd-903a-95084772a5ef", + "parentUUID": "91722293-1ea6-45d2-acd3-0a0a7d37cdec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d25dfde1-c4ba-4892-b95d-995b39a24d2e", + "a2ff6e4b-0b7b-406f-b8e5-02f1c7397892", + "4b7bd907-7325-49dd-903a-95084772a5ef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5782, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "674aa453-1f3d-43a0-95f0-1499adaf0821", + "title": "BO - Catalog - Products : Seo tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/18_seoTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/18_seoTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Seo tab\"", + "fullTitle": "BO - Catalog - Products : Seo tab \"before all\" hook in \"BO - Catalog - Products : Seo tab\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adf7e729-2153-4985-b935-c09cda329a05", + "parentUUID": "674aa453-1f3d-43a0-95f0-1499adaf0821", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Seo tab\"", + "fullTitle": "BO - Catalog - Products : Seo tab \"after all\" hook in \"BO - Catalog - Products : Seo tab\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9a198a1a-f0e7-4d00-a205-e8e4c0d40b70", + "parentUUID": "674aa453-1f3d-43a0-95f0-1499adaf0821", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "43b44a79-cba7-486c-aa16-5e03ae293a25", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/18_seoTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/18_seoTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Seo tab Create product should login in BO", + "timedOut": false, + "duration": 1868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1dbbdc7-1f3f-481d-89de-19534a66576c", + "parentUUID": "43b44a79-cba7-486c-aa16-5e03ae293a25", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Seo tab Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fa26bc3-eb73-4e00-a6eb-9045a4f6b846", + "parentUUID": "43b44a79-cba7-486c-aa16-5e03ae293a25", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Seo tab Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(isModalVisible).to.be.true];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa012949-065c-4773-a4af-68534185a362", + "parentUUID": "43b44a79-cba7-486c-aa16-5e03ae293a25", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Catalog - Products : Seo tab Create product should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4c2d883-c95f-4010-af9a-ce3ee612e15a", + "parentUUID": "43b44a79-cba7-486c-aa16-5e03ae293a25", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Seo tab Create product should create standard product", + "timedOut": false, + "duration": 4928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "596f0432-aba9-47d9-8d4d-25cd0dd6fa71", + "parentUUID": "43b44a79-cba7-486c-aa16-5e03ae293a25", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e1dbbdc7-1f3f-481d-89de-19534a66576c", + "6fa26bc3-eb73-4e00-a6eb-9045a4f6b846", + "aa012949-065c-4773-a4af-68534185a362", + "a4c2d883-c95f-4010-af9a-ce3ee612e15a", + "596f0432-aba9-47d9-8d4d-25cd0dd6fa71" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12936, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "title": "Check all options in SEO tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/18_seoTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/18_seoTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should fill all fields on SEO Tab and check the error message", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should fill all fields on SEO Tab and check the error message", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_checkErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'seo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.setMetaTitle(page, editProductData.metaTitle)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.setMetaDescription(page, editProductData.metaDescription)];\n case 4:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.setFriendlyUrl(page, editProductData.friendlyUrl)];\n case 5:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnSaveProductButton(page)];\n case 6:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.getErrorMessageOfFriendlyUrl(page)];\n case 7:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq('\"lorem ipsum\" is invalid - Language: English (English)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cc09ce8-ef6d-4745-becb-2eee4084544c", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should edit friendly URL", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should edit friendly URL", + "timedOut": false, + "duration": 1567, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_editFriendlyURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editFriendlyURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.setFriendlyUrl(page, 'lorem-ipsum')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "953d3061-64f9-463c-b047-39659c3202d1", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should reset URL", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should reset URL", + "timedOut": false, + "duration": 1375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_resetURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message, friendlyUrl;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.clickOnGenerateUrlFromNameButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'link_rewrite', '1')];\n case 4:\n friendlyUrl = _a.sent();\n (0, chai_1.expect)(friendlyUrl).to.eq('oriental-fresh-chair');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbff7b73-c338-4b00-97df-ec92b3c86e27", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should switch the product status to off", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should switch the product status to off", + "timedOut": false, + "duration": 1385, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_switchProductStatusToOff\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'switchProductStatusToOff', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2832112-dcf1-4fa2-8d5b-c7a7187b8aba", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "'should choose redirectionPage 'Products : Hummingbird printed t-shirt'", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab 'should choose redirectionPage 'Products : Hummingbird printed t-shirt'", + "timedOut": false, + "duration": 2428, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_chooseRedirectionPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseRedirectionPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.selectRedirectionPage(page, 'Permanent redirection to a product (301)')];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.searchOptionTarget(page, products_2.default.demo_1.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0901f208-028f-4bfc-ac1a-75c3c52c9bb0", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product and check 'Hummingbird printed t-shirt' page", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should preview product and check 'Hummingbird printed t-shirt' page", + "timedOut": false, + "duration": 1999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_previewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b120991c-b87e-41eb-864d-9eaea21a7a5e", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88db7ed7-5b0f-4a7e-ab5c-228b076a666a", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should choose redirectionPage 'Category : Home accessories'", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should choose redirectionPage 'Category : Home accessories'", + "timedOut": false, + "duration": 2509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_chooseRedirectionPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseRedirectionPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.selectRedirectionPage(page, 'Permanent redirection to a category (301)')];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.searchOptionTarget(page, 'Home accessories')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fe7c5af-4920-4edf-bbaa-f1c05f2194d6", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product and check 'Home Accessories' page", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should preview product and check 'Home Accessories' page", + "timedOut": false, + "duration": 2713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentUrl, newUrl, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.getCurrentURL(page)];\n case 3:\n currentUrl = _a.sent();\n newUrl = currentUrl.split('token');\n return [4 /*yield*/, product_1.default.goTo(page, newUrl[0])];\n case 4:\n _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 5:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains('Home Accessories');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91f1fa6a-07e9-40bc-b03b-30bb495ec485", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ee82b68-c116-49f9-964a-e7444e363356", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should add tag", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should add tag", + "timedOut": false, + "duration": 1413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_addTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.setTag(page, 'welcome')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ee45dac-ad2e-4ef0-a3da-4f709454e599", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should switch the product status to on", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should switch the product status to on", + "timedOut": false, + "duration": 1503, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_switchProductStatusToOn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'switchProductStatusToOn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d4a6886-331a-47b7-95d3-ceca501447a0", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should preview product", + "timedOut": false, + "duration": 1681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_previewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9769ae70-c8e0-4a45-a865-7157cb9e1728", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should search the new tag 'welcome' from the search bar", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should search the new tag 'welcome' from the search bar", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_searchTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.searchProduct(page, 'welcome')];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle)];\n case 4:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 5:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.eql(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac56708b-27c9-4ff3-9d20-a212b10a0572", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : Seo tab Check all options in SEO tab should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a63b444-7d2d-45a3-b54d-bb68cd4a27da", + "parentUUID": "892557c8-6ff5-42f9-9cc2-3f51f744c648", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4cc09ce8-ef6d-4745-becb-2eee4084544c", + "953d3061-64f9-463c-b047-39659c3202d1", + "dbff7b73-c338-4b00-97df-ec92b3c86e27", + "c2832112-dcf1-4fa2-8d5b-c7a7187b8aba", + "0901f208-028f-4bfc-ac1a-75c3c52c9bb0", + "b120991c-b87e-41eb-864d-9eaea21a7a5e", + "88db7ed7-5b0f-4a7e-ab5c-228b076a666a", + "6fe7c5af-4920-4edf-bbaa-f1c05f2194d6", + "91f1fa6a-07e9-40bc-b03b-30bb495ec485", + "3ee82b68-c116-49f9-964a-e7444e363356", + "6ee45dac-ad2e-4ef0-a3da-4f709454e599", + "1d4a6886-331a-47b7-95d3-ceca501447a0", + "9769ae70-c8e0-4a45-a865-7157cb9e1728", + "ac56708b-27c9-4ff3-9d20-a212b10a0572", + "9a63b444-7d2d-45a3-b54d-bb68cd4a27da" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20235, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c3561fbd-e3fc-466f-8fb0-69b65dc0ee92", + "title": "POST-TEST: Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/18_seoTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/18_seoTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Seo tab POST-TEST: Delete product should delete product", + "timedOut": false, + "duration": 1508, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_seoTab_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcd330a0-8509-4056-8c02-67ea5ae1cacb", + "parentUUID": "c3561fbd-e3fc-466f-8fb0-69b65dc0ee92", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bcd330a0-8509-4056-8c02-67ea5ae1cacb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1508, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bc769d88-cb7f-453f-bb7b-e61a66a6a8ec", + "title": "BO - Catalog - Products : Options tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/19_optionsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/19_optionsTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Options tab\"", + "fullTitle": "BO - Catalog - Products : Options tab \"before all\" hook in \"BO - Catalog - Products : Options tab\"", + "timedOut": false, + "duration": 77, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 4];\n return [4 /*yield*/, files_1.default.generateImage(newProductData.coverImage)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46da3999-6241-4807-a851-c6970b4ec9a4", + "parentUUID": "bc769d88-cb7f-453f-bb7b-e61a66a6a8ec", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Options tab\"", + "fullTitle": "BO - Catalog - Products : Options tab \"after all\" hook in \"BO - Catalog - Products : Options tab\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n if (!newProductData.coverImage) return [3 /*break*/, 3];\n return [4 /*yield*/, files_1.default.deleteFile(newProductData.coverImage)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8f9c1d44-d80d-44a7-8290-218229ab60cb", + "parentUUID": "bc769d88-cb7f-453f-bb7b-e61a66a6a8ec", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "651fe574-7b02-4366-8d8a-36cbfea58737", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/19_optionsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/19_optionsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Options tab Create product should login in BO", + "timedOut": false, + "duration": 1783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abe68797-23a8-4dce-85d5-d7d8437af5d6", + "parentUUID": "651fe574-7b02-4366-8d8a-36cbfea58737", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Options tab Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98efc8dd-a090-43a3-89fe-4c49d7c4cec6", + "parentUUID": "651fe574-7b02-4366-8d8a-36cbfea58737", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Options tab Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(isModalVisible).to.be.true];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd53f7e7-dcef-4dc6-b300-dd991d9890a0", + "parentUUID": "651fe574-7b02-4366-8d8a-36cbfea58737", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Catalog - Products : Options tab Create product should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c27af531-5e9b-4adf-9024-b85f1b8a39e3", + "parentUUID": "651fe574-7b02-4366-8d8a-36cbfea58737", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Options tab Create product should create standard product", + "timedOut": false, + "duration": 5545, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f14e6ac-3075-4ccc-b61c-a6249df13fe5", + "parentUUID": "651fe574-7b02-4366-8d8a-36cbfea58737", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "abe68797-23a8-4dce-85d5-d7d8437af5d6", + "98efc8dd-a090-43a3-89fe-4c49d7c4cec6", + "bd53f7e7-dcef-4dc6-b300-dd991d9890a0", + "c27af531-5e9b-4adf-9024-b85f1b8a39e3", + "9f14e6ac-3075-4ccc-b61c-a6249df13fe5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13400, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "title": "Check all options in options tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/19_optionsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/19_optionsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add category", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should add category", + "timedOut": false, + "duration": 3188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_addCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'description')];\n case 2:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.addNewCategory(page, ['Clothes'])];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1675d889-00a3-4d5f-b463-83c46de82de6", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Clothes' as default category", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should choose 'Clothes' as default category", + "timedOut": false, + "duration": 1512, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_chooseDefaultCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.chooseDefaultCategory(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36f4e818-6226-4026-9e74-10ff209292a7", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the visibility to catalog only in options tab", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check the visibility to catalog only in options tab", + "timedOut": false, + "duration": 1480, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkCategoryOnly\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCategoryOnly', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'options')];\n case 2:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.setVisibility(page, 'catalog_only')];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96bff0f6-4e19-46de-a084-20d23b409a26", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should preview product", + "timedOut": false, + "duration": 1701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04216f7d-367a-4b6c-a8e6-642fd893f5b9", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Clothes category", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should click on Clothes category", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_clickHomeCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickHomeCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.clickOnBreadCrumbLink(page, 'clothes')];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getHeaderPageName(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains('CLOTHES');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f307b8e-6082-4b82-b27f-fe5b473fb870", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the created product is visible in clothes category list", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check that the created product is visible in clothes category list", + "timedOut": false, + "duration": 499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkThatProductIsVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatProductIsVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductsNumber(page)];\n case 2:\n productsNumber = _a.sent();\n return [4 /*yield*/, category_1.default.quickViewProduct(page, productsNumber)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isQuickViewProductModalVisible(page)];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromQuickViewModal(page)];\n case 5:\n result = _a.sent();\n (0, chai_1.expect)(result.name).to.equal(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec5738e8-3f3a-4580-b531-81ebed3ec122", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should close the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_closePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01cad9be-1a7c-4aff-a302-7302ec54c21c", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the visibility to search only in options tab", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check the visibility to search only in options tab", + "timedOut": false, + "duration": 1452, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkSearchOnly\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSearchOnly', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.setVisibility(page, 'search_only')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0b47ad1-df72-4072-9b0f-be4052fd4edb", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should preview product", + "timedOut": false, + "duration": 1678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_previewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6149adec-a28f-4371-ad2c-fdb34df2b676", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Clothes category", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should click on Clothes category", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_clickClothesCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickClothesCategory2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.clickOnBreadCrumbLink(page, 'clothes')];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getHeaderPageName(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains('CLOTHES');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "087c18b9-80f6-49f1-88f6-06d6e19f276b", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the created product is not visible in clothes category list", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check that the created product is not visible in clothes category list", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkThatProductIsNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumberInCategory;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatProductIsNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductsNumber(page)];\n case 2:\n productsNumberInCategory = _a.sent();\n (0, chai_1.expect)(productsNumberInCategory).to.eq(productsNumber - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "326081cd-8e82-4aff-9ecc-e64fd73fe52e", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should search for the created product", + "timedOut": false, + "duration": 1536, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_searchProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, newProductData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d221cf1-0c81-45c3-9bc9-0f74ad291ae3", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should close the page", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_closePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23a0f801-e882-499e-a4a0-4914e2dc141e", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the visibility to nowhere in options tab", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check the visibility to nowhere in options tab", + "timedOut": false, + "duration": 1402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkNowhere\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNowhere', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.setVisibility(page, 'nowhere')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e23cba29-2d0a-44cc-a1ba-3ae004898fc8", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should preview product", + "timedOut": false, + "duration": 1637, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_previewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b76f07db-3c7e-47ba-a433-e0942454a438", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Clothes category", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should click on Clothes category", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_clickClothesCategory3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickClothesCategory3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.clickOnBreadCrumbLink(page, 'clothes')];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getHeaderPageName(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains('CLOTHES');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1232a14-e26a-43a5-ad4c-519c4b1f5d5d", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the created product is not visible in clothes category list", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check that the created product is not visible in clothes category list", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkThatProductIsNotVisible2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumberInCategory;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatProductIsNotVisible2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductsNumber(page)];\n case 2:\n productsNumberInCategory = _a.sent();\n (0, chai_1.expect)(productsNumberInCategory).to.eq(productsNumber - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9978718f-4632-4e4c-96df-8eb8b8085b35", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should search for the created product", + "timedOut": false, + "duration": 733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_searchProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, hasResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, newProductData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [4 /*yield*/, searchResults_1.searchResultsPage.hasResults(page)];\n case 4:\n hasResults = _a.sent();\n (0, chai_1.expect)(hasResults, 'There are results!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b715e1f-5db6-4fbd-b501-7e3ad8e9dfe3", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should close the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_closePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cba4213-d7c4-42a2-b7e0-51f7507226b3", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the visibility to everywhere in options tab and disable Available for order", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check the visibility to everywhere in options tab and disable Available for order", + "timedOut": false, + "duration": 1509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkEverywhere\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEverywhere', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.setVisibility(page, 'everywhere')];\n case 2:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.setAvailableForOrder(page, false)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4379d7ad-a5fe-48ee-b607-9a87bfc9ee3b", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should preview product", + "timedOut": false, + "duration": 1661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_previewProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66b687d9-2709-407c-a85b-9f39839a7982", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the add to cart button is disabled", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check that the add to cart button is disabled", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_isAddToCartButtonEnabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isAddToCartButtonEnabled', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e5c93fb-2bf0-43f0-9e03-044548f79f09", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should close the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_closePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dfabbb8-8d04-400a-b710-48d486d68dc6", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the option show price", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should disable the option show price", + "timedOut": false, + "duration": 1435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_disableShowPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableShowPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.setShowPrice(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5af0b5af-c172-4ce8-b563-b4997cca4805", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should preview product", + "timedOut": false, + "duration": 1689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_previewProduct5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad8e3e68-1fe9-4838-987e-78368953c3c9", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the price is not displayed", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check that the price is not displayed", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_isPriceDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isPriceDisplayed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isPriceDisplayed(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c59d3b29-0a7e-47c7-aaef-b8d0478737e0", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should close the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_closePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10aa34d4-02a7-493d-8caf-1cbffef725d2", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the option show price and the option web only", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should enable the option show price and the option web only", + "timedOut": false, + "duration": 1451, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_enableShowPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableShowPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.setShowPrice(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.setWebOnly(page, true)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0a93efe-4ba5-4170-9011-35e898980713", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should preview product", + "timedOut": false, + "duration": 1677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_previewProduct6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3272d9b6-13df-4810-91f3-15bff1f44f59", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the online tag", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check the online tag", + "timedOut": false, + "duration": 83, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkOnlineTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var flagText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOnlineTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductTag(page)];\n case 2:\n flagText = _a.sent();\n (0, chai_1.expect)(flagText).to.contains('Online only');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e6b5b7d-2a1f-4667-b148-68948200eb92", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should close the page", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_closePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b04d8da5-8921-4be9-999d-a8748e47fed9", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the supplier associated with the product", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should choose the supplier associated with the product", + "timedOut": false, + "duration": 1502, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_chooseSupplierAssociated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseSupplierAssociated', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.chooseSupplier(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7513de05-d8b9-40d4-94f6-064cd994d54f", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 2 blocks 'Default supplier' & 'Supplier references'", + "fullTitle": "BO - Catalog - Products : Options tab Check all options in options tab should check the 2 blocks 'Default supplier' & 'Supplier references'", + "timedOut": false, + "duration": 35, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_checkNewBlocks\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewBlocks', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, optionsTab_1.default.isDefaultSupplierSectionVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Default supplier block is not visible!').to.eq(true);\n return [4 /*yield*/, optionsTab_1.default.isSupplierReferencesSectionVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Supplier references block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79ccd10f-ef44-453c-a0e0-8c489fccd345", + "parentUUID": "9392789f-fe74-460d-8fa1-ac32f65961d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1675d889-00a3-4d5f-b463-83c46de82de6", + "36f4e818-6226-4026-9e74-10ff209292a7", + "96bff0f6-4e19-46de-a084-20d23b409a26", + "04216f7d-367a-4b6c-a8e6-642fd893f5b9", + "9f307b8e-6082-4b82-b27f-fe5b473fb870", + "ec5738e8-3f3a-4580-b531-81ebed3ec122", + "01cad9be-1a7c-4aff-a302-7302ec54c21c", + "c0b47ad1-df72-4072-9b0f-be4052fd4edb", + "6149adec-a28f-4371-ad2c-fdb34df2b676", + "087c18b9-80f6-49f1-88f6-06d6e19f276b", + "326081cd-8e82-4aff-9ecc-e64fd73fe52e", + "1d221cf1-0c81-45c3-9bc9-0f74ad291ae3", + "23a0f801-e882-499e-a4a0-4914e2dc141e", + "e23cba29-2d0a-44cc-a1ba-3ae004898fc8", + "b76f07db-3c7e-47ba-a433-e0942454a438", + "b1232a14-e26a-43a5-ad4c-519c4b1f5d5d", + "9978718f-4632-4e4c-96df-8eb8b8085b35", + "7b715e1f-5db6-4fbd-b501-7e3ad8e9dfe3", + "6cba4213-d7c4-42a2-b7e0-51f7507226b3", + "4379d7ad-a5fe-48ee-b607-9a87bfc9ee3b", + "66b687d9-2709-407c-a85b-9f39839a7982", + "0e5c93fb-2bf0-43f0-9e03-044548f79f09", + "8dfabbb8-8d04-400a-b710-48d486d68dc6", + "5af0b5af-c172-4ce8-b563-b4997cca4805", + "ad8e3e68-1fe9-4838-987e-78368953c3c9", + "c59d3b29-0a7e-47c7-aaef-b8d0478737e0", + "10aa34d4-02a7-493d-8caf-1cbffef725d2", + "a0a93efe-4ba5-4170-9011-35e898980713", + "3272d9b6-13df-4810-91f3-15bff1f44f59", + "8e6b5b7d-2a1f-4667-b148-68948200eb92", + "b04d8da5-8921-4be9-999d-a8748e47fed9", + "7513de05-d8b9-40d4-94f6-064cd994d54f", + "79ccd10f-ef44-453c-a0e0-8c489fccd345" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 32565, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4a09d797-ee1f-4589-bd0f-d529c693d320", + "title": "POST-TEST: Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/19_optionsTab.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/19_optionsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Options tab POST-TEST: Delete product should delete product", + "timedOut": false, + "duration": 1528, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_optionsTab_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n deleteProductMessage = _a.sent();\n (0, chai_1.expect)(deleteProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e20f7f4-dae1-4505-85d4-1adf1fa567e6", + "parentUUID": "4a09d797-ee1f-4589-bd0f-d529c693d320", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0e20f7f4-dae1-4505-85d4-1adf1fa567e6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1528, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c63c3291-b66b-45ee-a705-fd7e82307fe4", + "title": "BO - Catalog - Products : Multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Multistore\"", + "fullTitle": "BO - Catalog - Products : Multistore \"before all\" hook in \"BO - Catalog - Products : Multistore\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffdbb196-cf42-48e4-93e2-984d865317ba", + "parentUUID": "c63c3291-b66b-45ee-a705-fd7e82307fe4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Multistore\"", + "fullTitle": "BO - Catalog - Products : Multistore \"after all\" hook in \"BO - Catalog - Products : Multistore\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ab911583-f0a5-400d-bff3-ee1f81233934", + "parentUUID": "c63c3291-b66b-45ee-a705-fd7e82307fe4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "83eef401-9f48-4411-9d8b-f365a4e63c84", + "title": "Enable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Catalog - Products : Multistore Enable the multistore \"before all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bf782d9-e43c-469f-9886-9cdb5f59aedb", + "parentUUID": "83eef401-9f48-4411-9d8b-f365a4e63c84", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the multistore\"", + "fullTitle": "BO - Catalog - Products : Multistore Enable the multistore \"after all\" hook in \"Enable the multistore\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a5b10a55-e1d5-4067-b051-07c58936226f", + "parentUUID": "83eef401-9f48-4411-9d8b-f365a4e63c84", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Multistore Enable the multistore should login in BO", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fece2ba-3d96-421c-8aa3-4c9532d79977", + "parentUUID": "83eef401-9f48-4411-9d8b-f365a4e63c84", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Catalog - Products : Multistore Enable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_preTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34640c1b-0ef8-423b-96a5-e34706770ad1", + "parentUUID": "83eef401-9f48-4411-9d8b-f365a4e63c84", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the multistore", + "fullTitle": "BO - Catalog - Products : Multistore Enable the multistore should enable the multistore", + "timedOut": false, + "duration": 401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_preTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d387da68-9416-4ff5-b208-212986563a30", + "parentUUID": "83eef401-9f48-4411-9d8b-f365a4e63c84", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2fece2ba-3d96-421c-8aa3-4c9532d79977", + "34640c1b-0ef8-423b-96a5-e34706770ad1", + "d387da68-9416-4ff5-b208-212986563a30" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6989, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8437b9b9-1f5a-4ec5-89ae-159ea5274701", + "title": "Create new store and set URL", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Multistore Create new store and set URL should login in BO", + "timedOut": false, + "duration": 1806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf58a174-a987-4d0e-abac-023d5e030ec4", + "parentUUID": "8437b9b9-1f5a-4ec5-89ae-159ea5274701", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Catalog - Products : Multistore Create new store and set URL should go to 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 4684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_goToMultiStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMultiStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.multistoreLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(multistore_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d46637eb-c7a2-477a-9e3f-13a96ddf4a27", + "parentUUID": "8437b9b9-1f5a-4ec5-89ae-159ea5274701", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new shop page", + "fullTitle": "BO - Catalog - Products : Multistore Create new store and set URL should go to add new shop page", + "timedOut": false, + "duration": 987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_goToAddNewShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, multistore_2.default.goToNewShopPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c81fcc3-effa-47ab-80c4-a8605b2e6c8e", + "parentUUID": "8437b9b9-1f5a-4ec5-89ae-159ea5274701", + "isHook": false, + "skipped": false + }, + { + "title": "should create shop", + "fullTitle": "BO - Catalog - Products : Multistore Create new store and set URL should create shop", + "timedOut": false, + "duration": 1287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_createShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setShop(page, createShopData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(multistore_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5021c6c9-590e-49aa-83ed-954599fd1a8b", + "parentUUID": "8437b9b9-1f5a-4ec5-89ae-159ea5274701", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add URL", + "fullTitle": "BO - Catalog - Products : Multistore Create new store and set URL should go to add URL", + "timedOut": false, + "duration": 1798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_goToAddURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shop_1.default.filterTable(page, 'a!name', createShopData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shop_1.default.goToSetURL(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addURL_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "905d45ab-9c6e-453c-b520-18bc2b6cbc99", + "parentUUID": "8437b9b9-1f5a-4ec5-89ae-159ea5274701", + "isHook": false, + "skipped": false + }, + { + "title": "should set URL", + "fullTitle": "BO - Catalog - Products : Multistore Create new store and set URL should set URL", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_addURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addURL_1.default.setVirtualUrl(page, createShopData.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addURL_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1941bf4c-ee58-4723-b215-a04e2dc4d787", + "parentUUID": "8437b9b9-1f5a-4ec5-89ae-159ea5274701", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cf58a174-a987-4d0e-abac-023d5e030ec4", + "d46637eb-c7a2-477a-9e3f-13a96ddf4a27", + "8c81fcc3-effa-47ab-80c4-a8605b2e6c8e", + "5021c6c9-590e-49aa-83ed-954599fd1a8b", + "905d45ab-9c6e-453c-b520-18bc2b6cbc99", + "1941bf4c-ee58-4723-b215-a04e2dc4d787" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11623, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "title": "Check multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e90300b9-6f64-41a2-99f5-d5b055934604", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should click on multistore header and select the new shop", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should click on multistore header and select the new shop", + "timedOut": false, + "duration": 713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_clickOnMultistoreHeader\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopName, shopColor;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnMultistoreHeader', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnMultiStoreHeader(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.chooseShop(page, 2)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getShopName(page)];\n case 4:\n shopName = _a.sent();\n (0, chai_1.expect)(shopName).to.eq(createShopData.name);\n return [4 /*yield*/, products_1.default.getShopColor(page)];\n case 5:\n shopColor = _a.sent();\n (0, chai_1.expect)(shopColor).to.contains(createShopData.color);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf08afa3-f62e-49dc-95bb-04ad77564b8c", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view my store", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should click on view my store", + "timedOut": false, + "duration": 1223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_viewMyStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, newUrl;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyStore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.viewMyStore(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [4 /*yield*/, home_1.homePage.getCurrentURL(page)];\n case 4:\n newUrl = _a.sent();\n (0, chai_1.expect)(newUrl).to.contains(createShopData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "791f434d-70a0-4d81-8422-19541fca114c", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should close the page", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_closePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5c6252e-d035-44b7-a9c8-d4a863392f23", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(isModalVisible).to.be.true];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14d0c28d-0089-4ee4-8562-b83f2184a8ab", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efd23082-2b26-4742-9b5d-cff5bb3b6b0e", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should create standard product", + "timedOut": false, + "duration": 5547, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c3c3b47-4b70-4557-8ee7-c251877c7b6f", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to catalog page", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should go back to catalog page", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_goBackToCatalogPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToCatalogPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [4 /*yield*/, (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f493e5d-082f-4042-a954-159d922a6f89", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should click on multistore header and select the default shop", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should click on multistore header and select the default shop", + "timedOut": false, + "duration": 671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_selectDefaultShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectDefaultShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnMultiStoreHeader(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.chooseShop(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getShopName(page)];\n case 4:\n shopName = _a.sent();\n (0, chai_1.expect)(shopName).to.eq(global.INSTALL.SHOP_NAME);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "551a303f-6d5c-4fa3-8573-a6248abf95a4", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product and check that the product is not visible in the list", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should search for the created product and check that the product is not visible in the list", + "timedOut": false, + "duration": 1901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_searchCreatedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCreatedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', newProductData.name, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75615cfc-b110-4472-b8b3-537c623e7d51", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should reset filter", + "timedOut": false, + "duration": 2943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_resetAfter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d759e34-507e-4b04-a9b7-4a079149d833", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should click on multistore header and select the created shop", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should click on multistore header and select the created shop", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_selectCreatedShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectCreatedShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnMultiStoreHeader(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.chooseShop(page, 2)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getShopName(page)];\n case 4:\n shopName = _a.sent();\n (0, chai_1.expect)(shopName).to.eq(createShopData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "150d7da3-8660-44e9-9ec2-ad91c42e83cd", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created product page", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should go to the created product page", + "timedOut": false, + "duration": 1109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_goToCreatedProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreatedProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db75c9c6-3611-44d1-9d3b-0542bc965a46", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Select stores' button and select the default store", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should click on 'Select stores' button and select the default store", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_clickOnSelectStoresButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnSelectStoresButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.selectStores(page, 1)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05b705a4-5056-4183-a099-d8e2476285c0", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should update product name and click on apply changes to all stores", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should update product name and click on apply changes to all stores", + "timedOut": false, + "duration": 2777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_applyChangesToAllStores\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'applyChangesToAllStores', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProductName(page, editProductData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.applyChangesToAllStores(page, editProductData.applyChangesToAllStores)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b1a1f68-2061-4bab-a289-cb1518e55439", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should go to catalog page", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should go to catalog page", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_goToCatalogPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 3:\n productName = _a.sent();\n (0, chai_1.expect)(productName).to.eq(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cb2d42c-4f33-43f1-b42b-41858e8e6dc1", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should click on multistore header and select the default shop", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should click on multistore header and select the default shop", + "timedOut": false, + "duration": 684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_clickOnMultistoreHeader2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopName, shopColor;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnMultistoreHeader2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnMultiStoreHeader(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.chooseShop(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getShopName(page)];\n case 4:\n shopName = _a.sent();\n (0, chai_1.expect)(shopName).to.eq(global.INSTALL.SHOP_NAME);\n return [4 /*yield*/, products_1.default.getShopColor(page)];\n case 5:\n shopColor = _a.sent();\n (0, chai_1.expect)(shopColor).to.eq('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f81d8f3d-4d21-4b09-8086-2f3ed9f42954", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated product name", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should check the updated product name", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_checkProductName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 2:\n productName = _a.sent();\n (0, chai_1.expect)(productName).to.eq(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "139ee034-ce28-483a-92ad-2b9ee92df340", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Multistore Check multistore should delete product", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductFromStoreButton(page, 1)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.equal(true);\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d74d7e6-bbbf-4849-bff6-f403cf0d03ac", + "parentUUID": "5aab61cb-4c5f-45e5-82f0-020c7135bb65", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e90300b9-6f64-41a2-99f5-d5b055934604", + "cf08afa3-f62e-49dc-95bb-04ad77564b8c", + "791f434d-70a0-4d81-8422-19541fca114c", + "a5c6252e-d035-44b7-a9c8-d4a863392f23", + "14d0c28d-0089-4ee4-8562-b83f2184a8ab", + "efd23082-2b26-4742-9b5d-cff5bb3b6b0e", + "0c3c3b47-4b70-4557-8ee7-c251877c7b6f", + "8f493e5d-082f-4042-a954-159d922a6f89", + "551a303f-6d5c-4fa3-8573-a6248abf95a4", + "75615cfc-b110-4472-b8b3-537c623e7d51", + "9d759e34-507e-4b04-a9b7-4a079149d833", + "150d7da3-8660-44e9-9ec2-ad91c42e83cd", + "db75c9c6-3611-44d1-9d3b-0542bc965a46", + "05b705a4-5056-4183-a099-d8e2476285c0", + "8b1a1f68-2061-4bab-a289-cb1518e55439", + "5cb2d42c-4f33-43f1-b42b-41858e8e6dc1", + "f81d8f3d-4d21-4b09-8086-2f3ed9f42954", + "139ee034-ce28-483a-92ad-2b9ee92df340", + "8d74d7e6-bbbf-4849-bff6-f403cf0d03ac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28121, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cf07659e-5dc8-4b97-9af1-b209081ac2f3", + "title": "Disable the multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/20_multistore.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Catalog - Products : Multistore Disable the multistore \"before all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55b38aec-85d9-40cd-a9ed-232c99048b25", + "parentUUID": "cf07659e-5dc8-4b97-9af1-b209081ac2f3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the multistore\"", + "fullTitle": "BO - Catalog - Products : Multistore Disable the multistore \"after all\" hook in \"Disable the multistore\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a0a3a3e4-28eb-44e4-a993-92c1ccf7c80e", + "parentUUID": "cf07659e-5dc8-4b97-9af1-b209081ac2f3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Multistore Disable the multistore should login in BO", + "timedOut": false, + "duration": 1957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e689d3f1-6b4b-413f-b50c-5e98a5391e62", + "parentUUID": "cf07659e-5dc8-4b97-9af1-b209081ac2f3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > General' page", + "fullTitle": "BO - Catalog - Products : Multistore Disable the multistore should go to 'Shop Parameters > General' page", + "timedOut": false, + "duration": 4875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_postTest_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30ebc4c7-9b4c-4009-9b96-6ad4015678ce", + "parentUUID": "cf07659e-5dc8-4b97-9af1-b209081ac2f3", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the multistore", + "fullTitle": "BO - Catalog - Products : Multistore Disable the multistore should disable the multistore", + "timedOut": false, + "duration": 378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_multistore_postTest_setMultiStoreStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMultiStoreStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f33497e2-f173-43d8-a146-3f5dccd3a67d", + "parentUUID": "cf07659e-5dc8-4b97-9af1-b209081ac2f3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e689d3f1-6b4b-413f-b50c-5e98a5391e62", + "30ebc4c7-9b4c-4009-9b96-6ad4015678ce", + "f33497e2-f173-43d8-a146-3f5dccd3a67d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ed12c7e7-06fb-4168-a890-16a047cfe296", + "title": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position\"", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position \"before all\" hook in \"BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b60ca60-8e7d-4158-a066-8b9d5b85aee1", + "parentUUID": "ed12c7e7-06fb-4168-a890-16a047cfe296", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position\"", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position \"after all\" hook in \"BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dbd263ac-364e-400b-ad40-c674e7f60414", + "parentUUID": "ed12c7e7-06fb-4168-a890-16a047cfe296", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "title": "Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should login in BO", + "timedOut": false, + "duration": 1839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70bbc259-63bb-4361-85f1-85cfe5db641f", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ba4803c-5810-4dd0-9f76-545802571504", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65ff188c-a592-46f4-92fd-b2f8f2cecba2", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'id_product' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'id_product' and check result", + "timedOut": false, + "duration": 1298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterIDMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n default:\n (0, chai_1.expect)(textColumn.toString().toLowerCase()).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b39434ff-3e3c-4f0c-a09f-29541bdfdaa2", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_resetAfterfilterIDMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a49bff8-fed1-4424-9d55-273b142bd46c", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'product_name' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'product_name' and check result", + "timedOut": false, + "duration": 1333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n default:\n (0, chai_1.expect)(textColumn.toString().toLowerCase()).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebc2e86c-174e-4b30-9e88-e62341f83e9c", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_resetAfterfilterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68331c56-7928-43e1-8e0f-bc881e6b4394", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'reference' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'reference' and check result", + "timedOut": false, + "duration": 1305, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n default:\n (0, chai_1.expect)(textColumn.toString().toLowerCase()).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d78d9da-952b-4081-b0cf-16404f2886a9", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_resetAfterfilterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd8066b8-3ac9-4683-8329-f09ffe4030c6", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'category' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'category' and check result", + "timedOut": false, + "duration": 1320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n default:\n (0, chai_1.expect)(textColumn.toString().toLowerCase()).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2bc7689-fe1c-4217-baaf-c55c540ab99e", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_resetAfterfilterCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c409cb0b-ebd8-49d3-b4b0-e7cdd9d63279", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'price' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'price' and check result", + "timedOut": false, + "duration": 1324, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterPriceMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n default:\n (0, chai_1.expect)(textColumn.toString().toLowerCase()).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d62eef8-124c-4c9b-b590-67e9c6d006b6", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_resetAfterfilterPriceMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad531fd7-ef06-4733-b4e2-82033387f9ee", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'quantity' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'quantity' and check result", + "timedOut": false, + "duration": 1297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterQuantityMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n switch (test.args.comparisonType) {\n case 'toWithinMinMax':\n (0, chai_1.expect)(typeof test.args.filterValue).to.be.eq('object');\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n break;\n default:\n (0, chai_1.expect)(textColumn.toString().toLowerCase()).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4224a1a6-fc71-4227-89f1-781e79a1142c", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_resetAfterfilterQuantityMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88f4dc88-2d06-4c8c-9ae5-a9778e9f13ed", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'active' No and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'active' No and check result", + "timedOut": false, + "duration": 313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterByStatusNo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByStatusNo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'active', 'No', 'select')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextForEmptyTable(page)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51fcfc39-f9a1-45b0-b029-94d8207eddfa", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_resetFilterByStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterByStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57b6f1f1-b7b3-455b-ba49-1bd3c2e38150", + "parentUUID": "bde3684c-be7c-4251-8a43-a1e45bb7bf53", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "70bbc259-63bb-4361-85f1-85cfe5db641f", + "9ba4803c-5810-4dd0-9f76-545802571504", + "65ff188c-a592-46f4-92fd-b2f8f2cecba2", + "b39434ff-3e3c-4f0c-a09f-29541bdfdaa2", + "6a49bff8-fed1-4424-9d55-273b142bd46c", + "ebc2e86c-174e-4b30-9e88-e62341f83e9c", + "68331c56-7928-43e1-8e0f-bc881e6b4394", + "6d78d9da-952b-4081-b0cf-16404f2886a9", + "dd8066b8-3ac9-4683-8329-f09ffe4030c6", + "a2bc7689-fe1c-4217-baaf-c55c540ab99e", + "c409cb0b-ebd8-49d3-b4b0-e7cdd9d63279", + "2d62eef8-124c-4c9b-b590-67e9c6d006b6", + "ad531fd7-ef06-4733-b4e2-82033387f9ee", + "4224a1a6-fc71-4227-89f1-781e79a1142c", + "88f4dc88-2d06-4c8c-9ae5-a9778e9f13ed", + "51fcfc39-f9a1-45b0-b029-94d8207eddfa", + "57b6f1f1-b7b3-455b-ba49-1bd3c2e38150" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34323, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "43104279-c53c-426d-ba69-27e98884b339", + "title": "Filter products table by : Category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "cecb10dd-b901-4829-9bd3-66a8484f9158", + "title": "Filter by Category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by category 'Clothes'", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Filter by Category should filter by category 'Clothes'", + "timedOut": false, + "duration": 1367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterByCategoriesClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByCategories\".concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProductsByCategory(page, arg.categoryName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6dd6640a-dd23-4fac-bc68-3c082e6f1a46", + "parentUUID": "cecb10dd-b901-4829-9bd3-66a8484f9158", + "isHook": false, + "skipped": false + }, + { + "title": "should check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Filter by Category should check result", + "timedOut": false, + "duration": 1023, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkResultsClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var filterButtonName, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkResults\".concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getFilterByCategoryButtonName(page)];\n case 2:\n filterButtonName = _a.sent();\n (0, chai_1.expect)(filterButtonName).to.equal(\"Filter by categories (\".concat(arg.categoryName, \")\"));\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.equals(arg.numProducts);\n return [4 /*yield*/, products_1.default.isClearFilterLinkVisible(page)];\n case 4:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0905e544-3507-4e8d-80b0-f52166d79ac1", + "parentUUID": "cecb10dd-b901-4829-9bd3-66a8484f9158", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6dd6640a-dd23-4fac-bc68-3c082e6f1a46", + "0905e544-3507-4e8d-80b0-f52166d79ac1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2390, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "207e3bcb-5cfb-4469-9f5a-e215851439b0", + "title": "Check the category for the product #1", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #1 should go to the Product Page", + "timedOut": false, + "duration": 1269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow1CategoryClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0dbeba9-dbf0-47b4-a518-ea920a599535", + "parentUUID": "207e3bcb-5cfb-4469-9f5a-e215851439b0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #1 should check the category in categories of the product", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories1CategoryClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01523ffe-128b-429a-9652-5e9ed8de3809", + "parentUUID": "207e3bcb-5cfb-4469-9f5a-e215851439b0", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #1 should return to the list", + "timedOut": false, + "duration": 792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList1CategoryClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55a1867b-b562-4307-9469-b21cbcb711b2", + "parentUUID": "207e3bcb-5cfb-4469-9f5a-e215851439b0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f0dbeba9-dbf0-47b4-a518-ea920a599535", + "01523ffe-128b-429a-9652-5e9ed8de3809", + "55a1867b-b562-4307-9469-b21cbcb711b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2082, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d16d51b9-8f3d-4bd9-9ed6-72e5fd632774", + "title": "Check the category for the product #2", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #2 should go to the Product Page", + "timedOut": false, + "duration": 1117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow2CategoryClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4591b6f-fc82-4d12-903b-982fe5e45b7f", + "parentUUID": "d16d51b9-8f3d-4bd9-9ed6-72e5fd632774", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #2 should check the category in categories of the product", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories2CategoryClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50d1847a-6ad6-418b-a559-914e618ad55b", + "parentUUID": "d16d51b9-8f3d-4bd9-9ed6-72e5fd632774", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #2 should return to the list", + "timedOut": false, + "duration": 792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList2CategoryClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b40124ff-6c0d-409a-bda0-23571eb3824f", + "parentUUID": "d16d51b9-8f3d-4bd9-9ed6-72e5fd632774", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4591b6f-fc82-4d12-903b-982fe5e45b7f", + "50d1847a-6ad6-418b-a559-914e618ad55b", + "b40124ff-6c0d-409a-bda0-23571eb3824f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1934, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3eecf282-c032-4d87-a2c1-83912f510972", + "title": "Reset the filter", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Clear filter' button", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Reset the filter should click on 'Clear filter' button", + "timedOut": false, + "duration": 396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_clickOnClearFilterButtonClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnClearFilterButton\".concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnClearFilterLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e0c15be-ff76-4109-80d1-1137eacf9439", + "parentUUID": "3eecf282-c032-4d87-a2c1-83912f510972", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9e0c15be-ff76-4109-80d1-1137eacf9439" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 396, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a79d9867-4e0e-4a2a-bb2f-5cffd77e0552", + "title": "Filter by Category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by category 'Art'", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Filter by Category should filter by category 'Art'", + "timedOut": false, + "duration": 1392, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_filterByCategoriesArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByCategories\".concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProductsByCategory(page, arg.categoryName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa8cf096-e26a-45a2-a125-c87251c99733", + "parentUUID": "a79d9867-4e0e-4a2a-bb2f-5cffd77e0552", + "isHook": false, + "skipped": false + }, + { + "title": "should check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Filter by Category should check result", + "timedOut": false, + "duration": 1023, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkResultsArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var filterButtonName, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkResults\".concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getFilterByCategoryButtonName(page)];\n case 2:\n filterButtonName = _a.sent();\n (0, chai_1.expect)(filterButtonName).to.equal(\"Filter by categories (\".concat(arg.categoryName, \")\"));\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.equals(arg.numProducts);\n return [4 /*yield*/, products_1.default.isClearFilterLinkVisible(page)];\n case 4:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82712cca-d95f-4a5e-b9ce-fe1252201fb1", + "parentUUID": "a79d9867-4e0e-4a2a-bb2f-5cffd77e0552", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fa8cf096-e26a-45a2-a125-c87251c99733", + "82712cca-d95f-4a5e-b9ce-fe1252201fb1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2415, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f70700f2-798b-47d6-a634-003650eef2ed", + "title": "Check the category for the product #1", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #1 should go to the Product Page", + "timedOut": false, + "duration": 1091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow1CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e176776-bd97-4cfa-8e1c-4a6a8a404206", + "parentUUID": "f70700f2-798b-47d6-a634-003650eef2ed", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #1 should check the category in categories of the product", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories1CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "709204e2-de80-407a-b230-6460a7f489cf", + "parentUUID": "f70700f2-798b-47d6-a634-003650eef2ed", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #1 should return to the list", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList1CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf60ceb8-2450-4dda-8674-7acbe5292599", + "parentUUID": "f70700f2-798b-47d6-a634-003650eef2ed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0e176776-bd97-4cfa-8e1c-4a6a8a404206", + "709204e2-de80-407a-b230-6460a7f489cf", + "bf60ceb8-2450-4dda-8674-7acbe5292599" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1912, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a4af9e79-c978-40f3-a2c7-0d5f25416a71", + "title": "Check the category for the product #2", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #2 should go to the Product Page", + "timedOut": false, + "duration": 1086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow2CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62edcb0c-46b4-41f6-be69-99a7c621d7c7", + "parentUUID": "a4af9e79-c978-40f3-a2c7-0d5f25416a71", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #2 should check the category in categories of the product", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories2CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54db828a-7ccd-4edc-bdd9-49dfdc0e4323", + "parentUUID": "a4af9e79-c978-40f3-a2c7-0d5f25416a71", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #2 should return to the list", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList2CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "544a7731-a38c-4bb9-b9b4-e3e55475e346", + "parentUUID": "a4af9e79-c978-40f3-a2c7-0d5f25416a71", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "62edcb0c-46b4-41f6-be69-99a7c621d7c7", + "54db828a-7ccd-4edc-bdd9-49dfdc0e4323", + "544a7731-a38c-4bb9-b9b4-e3e55475e346" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1915, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cfd7ffae-8546-4fb1-9026-3bdfce531581", + "title": "Check the category for the product #3", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #3 should go to the Product Page", + "timedOut": false, + "duration": 1094, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow3CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67de407a-be0a-42a9-8503-8fe4a1489b71", + "parentUUID": "cfd7ffae-8546-4fb1-9026-3bdfce531581", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #3 should check the category in categories of the product", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories3CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af09f743-3083-46aa-becb-5b9a23513106", + "parentUUID": "cfd7ffae-8546-4fb1-9026-3bdfce531581", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #3 should return to the list", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList3CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a389c547-3b3d-4538-b7f0-e8abc10a531a", + "parentUUID": "cfd7ffae-8546-4fb1-9026-3bdfce531581", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "67de407a-be0a-42a9-8503-8fe4a1489b71", + "af09f743-3083-46aa-becb-5b9a23513106", + "a389c547-3b3d-4538-b7f0-e8abc10a531a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1992, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0a82f856-ee57-4164-95c0-5c9b9bb6c567", + "title": "Check the category for the product #4", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #4 should go to the Product Page", + "timedOut": false, + "duration": 1107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow4CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1052678a-e7f8-4dd2-b277-3a229cea9a06", + "parentUUID": "0a82f856-ee57-4164-95c0-5c9b9bb6c567", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #4 should check the category in categories of the product", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories4CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6e3a8ae-7405-48e0-8835-90759a3f42dd", + "parentUUID": "0a82f856-ee57-4164-95c0-5c9b9bb6c567", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #4 should return to the list", + "timedOut": false, + "duration": 864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList4CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "288c11c6-af2a-43a9-b201-5862cac784e7", + "parentUUID": "0a82f856-ee57-4164-95c0-5c9b9bb6c567", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1052678a-e7f8-4dd2-b277-3a229cea9a06", + "a6e3a8ae-7405-48e0-8835-90759a3f42dd", + "288c11c6-af2a-43a9-b201-5862cac784e7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1995, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d568a730-a38b-483e-a548-9d80afccc5d3", + "title": "Check the category for the product #5", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #5 should go to the Product Page", + "timedOut": false, + "duration": 1085, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow5CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b78e6a4-da59-40a1-836e-ced8df3d31a4", + "parentUUID": "d568a730-a38b-483e-a548-9d80afccc5d3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #5 should check the category in categories of the product", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories5CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64ec7a6d-791f-424b-9640-de0c6c4cb81b", + "parentUUID": "d568a730-a38b-483e-a548-9d80afccc5d3", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #5 should return to the list", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList5CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cb97cc5-5696-4b0c-8cb0-f3202b513a29", + "parentUUID": "d568a730-a38b-483e-a548-9d80afccc5d3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3b78e6a4-da59-40a1-836e-ced8df3d31a4", + "64ec7a6d-791f-424b-9640-de0c6c4cb81b", + "3cb97cc5-5696-4b0c-8cb0-f3202b513a29" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1967, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f759a827-fe85-4582-8558-5f669d8c4e56", + "title": "Check the category for the product #6", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #6 should go to the Product Page", + "timedOut": false, + "duration": 1111, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow6CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e8c3c1f-c83f-4d2e-8fb3-476384d931b1", + "parentUUID": "f759a827-fe85-4582-8558-5f669d8c4e56", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #6 should check the category in categories of the product", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories6CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "638fb76f-e8c9-47e9-acfe-dd5f67cd0c2b", + "parentUUID": "f759a827-fe85-4582-8558-5f669d8c4e56", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #6 should return to the list", + "timedOut": false, + "duration": 882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList6CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0ba1302-3e67-4707-bfa0-9fdd32de386c", + "parentUUID": "f759a827-fe85-4582-8558-5f669d8c4e56", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e8c3c1f-c83f-4d2e-8fb3-476384d931b1", + "638fb76f-e8c9-47e9-acfe-dd5f67cd0c2b", + "c0ba1302-3e67-4707-bfa0-9fdd32de386c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2017, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4a432785-ec86-457e-8970-143b3210ca15", + "title": "Check the category for the product #7", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the Product Page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #7 should go to the Product Page", + "timedOut": false, + "duration": 1100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_goToRow7CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToRow\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, idxProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "001de309-01ce-4351-9162-2ee4dec4c041", + "parentUUID": "4a432785-ec86-457e-8970-143b3210ca15", + "isHook": false, + "skipped": false + }, + { + "title": "should check the category in categories of the product", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #7 should check the category in categories of the product", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_checkCategories7CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategories\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getSelectedCategories(page)];\n case 2:\n selectedCategories = _a.sent();\n (0, chai_1.expect)(selectedCategories).to.contains(arg.categoryName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98afb638-5122-463b-942a-7ee11a82ba86", + "parentUUID": "4a432785-ec86-457e-8970-143b3210ca15", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Check the category for the product #7 should return to the list", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_returnToList7CategoryArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"returnToList\".concat(idxProduct, \"Category\").concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ed82a6c-eb08-451a-a680-dd9d2c0dc97c", + "parentUUID": "4a432785-ec86-457e-8970-143b3210ca15", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "001de309-01ce-4351-9162-2ee4dec4c041", + "98afb638-5122-463b-942a-7ee11a82ba86", + "1ed82a6c-eb08-451a-a680-dd9d2c0dc97c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2016, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "99e06ab9-393d-4d1b-bd72-0ae695b6137b", + "title": "Reset the filter", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Clear filter' button", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Category Reset the filter should click on 'Clear filter' button", + "timedOut": false, + "duration": 381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_clickOnClearFilterButtonArt\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnClearFilterButton\".concat(arg.categoryName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnClearFilterLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ceeb41f6-6815-4fd1-b2c5-4073e47e4768", + "parentUUID": "99e06ab9-393d-4d1b-bd72-0ae695b6137b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ceeb41f6-6815-4fd1-b2c5-4073e47e4768" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 381, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a0d0823f-f069-4535-8eef-64b70a9a948e", + "title": "Filter products table by : Pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change display items to 10", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Pagination should change display items to 10", + "timedOut": false, + "duration": 256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_changeDisplayItemsTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeDisplayItemsTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('page 1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af96fc06-a741-40be-8b96-ced7009a8eb0", + "parentUUID": "a0d0823f-f069-4535-8eef-64b70a9a948e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Pagination should click on next", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('page 2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d90bff3-ef7a-4d8b-8a84-79d720e4acbc", + "parentUUID": "a0d0823f-f069-4535-8eef-64b70a9a948e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Pagination should click on previous", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('page 1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67199d06-d865-4430-bcb2-700d7b5138b5", + "parentUUID": "a0d0823f-f069-4535-8eef-64b70a9a948e", + "isHook": false, + "skipped": false + }, + { + "title": "should set the pagination page to 2", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Pagination should set the pagination page to 2", + "timedOut": false, + "duration": 267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_setPaginationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPaginationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.setPaginationPage(page, 2)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('page 2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c7b852e-0f6e-4ba0-bf3e-72646cb22567", + "parentUUID": "a0d0823f-f069-4535-8eef-64b70a9a948e", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Filter products table by : Pagination should change the items number to 50 per page", + "timedOut": false, + "duration": 296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('page 1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0ef28d7-d9ce-475b-a135-7c791c478f16", + "parentUUID": "a0d0823f-f069-4535-8eef-64b70a9a948e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "af96fc06-a741-40be-8b96-ced7009a8eb0", + "1d90bff3-ef7a-4d8b-8a84-79d720e4acbc", + "67199d06-d865-4430-bcb2-700d7b5138b5", + "5c7b852e-0f6e-4ba0-bf3e-72646cb22567", + "c0ef28d7-d9ce-475b-a135-7c791c478f16" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2470, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "title": "Sort products table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/21_filterSortPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_product' 'desc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'id_product' 'desc' and check result", + "timedOut": false, + "duration": 2474, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4c3c23f-4bed-4016-99ca-1e6e849cfe58", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3150, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05ec0970-7fc6-4e79-b01c-b9307cdf5c71", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3448, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce1f1d4e-0ace-455c-8b2c-40aa097e8d39", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 3170, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "095349f6-9d8f-468f-b8d6-7d623d837726", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 3489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e8877f8-d63e-4cab-911d-f9363376f69c", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'category' 'asc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'category' 'asc' and check result", + "timedOut": false, + "duration": 3180, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByCategoryAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f67fe18-c9e5-4935-b8dc-391e8a77de4c", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'category' 'desc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'category' 'desc' and check result", + "timedOut": false, + "duration": 3178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByCategoryDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c98dc08-f4eb-4128-9931-1862d8b79519", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'final_price_tax_excluded' 'asc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'final_price_tax_excluded' 'asc' and check result", + "timedOut": false, + "duration": 3318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByPriceTaxExcludedAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b1fb226-4e7f-42c9-9917-e368337dd21f", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'final_price_tax_excluded' 'desc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'final_price_tax_excluded' 'desc' and check result", + "timedOut": false, + "duration": 3372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByPriceTaxExcludedDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d9a3871-5dc3-49a9-9f0e-651d8d293894", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'quantity' 'asc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'quantity' 'asc' and check result", + "timedOut": false, + "duration": 3176, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByQuantityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "991a79f5-46bf-4ab8-8264-d75cf82f5469", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'quantity' 'desc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'quantity' 'desc' and check result", + "timedOut": false, + "duration": 3195, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByQuantityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e41a0c02-83a2-414e-b945-00c05b38a110", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 3327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByStatusAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15dd7e7e-272c-488e-ba91-38ed9dae6563", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 3383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByStatusDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6482bc6-3d55-4ed3-ae81-4658a502b0b5", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'asc' and check result", + "fullTitle": "BO - Catalog - Products list : Filter & Sort, Pagination, Filter by category, Position Sort products table should sort by 'id_product' 'asc' and check result", + "timedOut": false, + "duration": 3183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_filterSortPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, products_1.default.sortTable(page, test.sortBy, test.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getAllRowsColumnContent(page, test.column)];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7a6d37a-817f-4d5b-a478-cb4732e55611", + "parentUUID": "faa0fb12-7182-4c0d-a20d-17070aed0c83", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a4c3c23f-4bed-4016-99ca-1e6e849cfe58", + "05ec0970-7fc6-4e79-b01c-b9307cdf5c71", + "ce1f1d4e-0ace-455c-8b2c-40aa097e8d39", + "095349f6-9d8f-468f-b8d6-7d623d837726", + "7e8877f8-d63e-4cab-911d-f9363376f69c", + "8f67fe18-c9e5-4935-b8dc-391e8a77de4c", + "0c98dc08-f4eb-4128-9931-1862d8b79519", + "7b1fb226-4e7f-42c9-9917-e368337dd21f", + "0d9a3871-5dc3-49a9-9f0e-651d8d293894", + "991a79f5-46bf-4ab8-8264-d75cf82f5469", + "e41a0c02-83a2-414e-b945-00c05b38a110", + "15dd7e7e-272c-488e-ba91-38ed9dae6563", + "f6482bc6-3d55-4ed3-ae81-4658a502b0b5", + "f7a6d37a-817f-4d5b-a478-cb4732e55611" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 45043, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5edc07a1-cb8e-463f-8cc2-c9a85b02fe74", + "title": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button\"", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button \"before all\" hook in \"BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ace5acd-36ad-4944-af1b-dded146310e5", + "parentUUID": "5edc07a1-cb8e-463f-8cc2-c9a85b02fe74", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button\"", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button \"after all\" hook in \"BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "60a9abcf-85f6-4150-9529-ddc93c88cc4d", + "parentUUID": "5edc07a1-cb8e-463f-8cc2-c9a85b02fe74", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "36d85d98-671c-4bc0-80b1-057f539d6085", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "863c9bb0-705a-415e-af5f-d3a7ad955a52", + "parentUUID": "36d85d98-671c-4bc0-80b1-057f539d6085", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f9eec2a-e43e-4893-8262-5243bec47091", + "parentUUID": "36d85d98-671c-4bc0-80b1-057f539d6085", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product should reset filter", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_resetFilterAndGetNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAndGetNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20a18c69-da23-4609-9177-5aee78a69a34", + "parentUUID": "36d85d98-671c-4bc0-80b1-057f539d6085", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Bulk Actions checkbox", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product should check the Bulk Actions checkbox", + "timedOut": false, + "duration": 103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_checkBulkActionsCheckbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled, iRow, isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBulkActionsCheckbox', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n iRow = 1;\n _a.label = 3;\n case 3:\n if (!(iRow <= numberOfProducts)) return [3 /*break*/, 6];\n return [4 /*yield*/, products_1.default.isRowChecked(page, iRow)];\n case 4:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n _a.label = 5;\n case 5:\n iRow++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3603bb0-fb84-4692-b125-b35f89896475", + "parentUUID": "36d85d98-671c-4bc0-80b1-057f539d6085", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck the Bulk Actions checkbox", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product should uncheck the Bulk Actions checkbox", + "timedOut": false, + "duration": 1117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_uncheckBulkActionsCheckbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled, iRow, isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uncheckBulkActionsCheckbox', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(false);\n iRow = 1;\n _a.label = 3;\n case 3:\n if (!(iRow <= numberOfProducts)) return [3 /*break*/, 6];\n return [4 /*yield*/, products_1.default.isRowChecked(page, iRow)];\n case 4:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(false);\n _a.label = 5;\n case 5:\n iRow++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d9141f5-6de5-4d4f-a875-59b2f5207d4e", + "parentUUID": "36d85d98-671c-4bc0-80b1-057f539d6085", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "4540efd7-fe36-4b13-a29a-358a9d04d1cb", + "title": "Deactivate/Activate the selection", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the Bulk Actions checkbox", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Deactivate/Activate the selection should check the Bulk Actions checkbox", + "timedOut": false, + "duration": 49, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_checkSelectionForDeactivate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSelectionForDeactivate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64f38f03-1024-4515-a153-dc19c1ff19c4", + "parentUUID": "4540efd7-fe36-4b13-a29a-358a9d04d1cb", + "isHook": false, + "skipped": false + }, + { + "title": "should deactivate the selection", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Deactivate/Activate the selection should deactivate the selection", + "timedOut": false, + "duration": 1862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_deactivateSelection\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textModal, textMessage, isModalVisible, iRow, isActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deactivateSelection', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'disable')];\n case 2:\n textModal = _a.sent();\n (0, chai_1.expect)(textModal).to.equal(\"Deactivating \".concat(numberOfProducts, \" products\"));\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'disable')];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deactivating \".concat(numberOfProducts, \" / \").concat(numberOfProducts, \" products\"));\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'disable')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n iRow = 1;\n _a.label = 5;\n case 5:\n if (!(iRow <= numberOfProducts)) return [3 /*break*/, 8];\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'active', iRow)];\n case 6:\n isActive = _a.sent();\n (0, chai_1.expect)(isActive).to.eq(false);\n _a.label = 7;\n case 7:\n iRow++;\n return [3 /*break*/, 5];\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b06da32a-d664-4176-b596-30e14ae72e15", + "parentUUID": "4540efd7-fe36-4b13-a29a-358a9d04d1cb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Bulk Actions checkbox", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Deactivate/Activate the selection should check the Bulk Actions checkbox", + "timedOut": false, + "duration": 77, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_checkSelectionForActivate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSelectionForActivate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f1093a3-184f-41a5-9f64-0c6168585ebb", + "parentUUID": "4540efd7-fe36-4b13-a29a-358a9d04d1cb", + "isHook": false, + "skipped": false + }, + { + "title": "should activate the selection", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Deactivate/Activate the selection should activate the selection", + "timedOut": false, + "duration": 1828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_activateSelection\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textModal, textMessage, isModalVisible, iRow, isActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'activateSelection', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'enable')];\n case 2:\n textModal = _a.sent();\n (0, chai_1.expect)(textModal).to.equal(\"Activating \".concat(numberOfProducts, \" products\"));\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'enable')];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Activating \".concat(numberOfProducts, \" / \").concat(numberOfProducts, \" products\"));\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'enable')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n iRow = 1;\n _a.label = 5;\n case 5:\n if (!(iRow <= numberOfProducts)) return [3 /*break*/, 8];\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'active', iRow)];\n case 6:\n isActive = _a.sent();\n (0, chai_1.expect)(isActive).to.eq(true);\n _a.label = 7;\n case 7:\n iRow++;\n return [3 /*break*/, 5];\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a64261c4-b897-45ba-977a-d5fd347a7e4d", + "parentUUID": "4540efd7-fe36-4b13-a29a-358a9d04d1cb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "64f38f03-1024-4515-a153-dc19c1ff19c4", + "b06da32a-d664-4176-b596-30e14ae72e15", + "3f1093a3-184f-41a5-9f64-0c6168585ebb", + "a64261c4-b897-45ba-977a-d5fd347a7e4d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3816, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6aaf2f85-3c19-4db2-a1ed-89df70b1eece", + "title": "Duplicate the selection", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the Bulk Actions checkbox", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Duplicate the selection should check the Bulk Actions checkbox", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_checkSelectionForDuplicate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSelectionForDuplicate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe8cc0a9-2dbc-4688-8bf8-010a445532e9", + "parentUUID": "6aaf2f85-3c19-4db2-a1ed-89df70b1eece", + "isHook": false, + "skipped": false + }, + { + "title": "should duplicate the selection", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Duplicate the selection should duplicate the selection", + "timedOut": false, + "duration": 4129, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_duplicateSelection\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textModal, textMessage, isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'duplicateSelection', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'duplicate')];\n case 2:\n textModal = _a.sent();\n (0, chai_1.expect)(textModal).to.equal(\"Duplicating \".concat(numberOfProducts, \" products\"));\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'duplicate')];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Duplicating \".concat(numberOfProducts, \" / \").concat(numberOfProducts, \" products\"));\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'duplicate')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82936443-9a6c-47c2-a56d-c571d706bf68", + "parentUUID": "6aaf2f85-3c19-4db2-a1ed-89df70b1eece", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Status at \"No\"", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Duplicate the selection should filter by Status at \"No\"", + "timedOut": false, + "duration": 1234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_filterStatusByNo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset, iRow, isActive, productName_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterStatusByNo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'active', 'No', 'select')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.equals(numberOfProducts);\n iRow = 1;\n _a.label = 4;\n case 4:\n if (!(iRow <= numberOfProducts)) return [3 /*break*/, 8];\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'active', iRow)];\n case 5:\n isActive = _a.sent();\n (0, chai_1.expect)(isActive).to.eq(false);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', iRow)];\n case 6:\n productName_1 = _a.sent();\n (0, chai_1.expect)(productName_1).to.contains('copy of');\n _a.label = 7;\n case 7:\n iRow++;\n return [3 /*break*/, 4];\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51d82db1-05a4-4139-a74d-11ef9e8b428c", + "parentUUID": "6aaf2f85-3c19-4db2-a1ed-89df70b1eece", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fe8cc0a9-2dbc-4688-8bf8-010a445532e9", + "82936443-9a6c-47c2-a56d-c571d706bf68", + "51d82db1-05a4-4139-a74d-11ef9e8b428c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5435, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19a0603d-416d-4569-918d-8bf0b0c56a06", + "title": "Delete the selection", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the Bulk Actions checkbox", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Delete the selection should check the Bulk Actions checkbox", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_checkSelectionForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSelectionForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c20c7eb-121e-42e1-b9d5-04fe4eca8321", + "parentUUID": "19a0603d-416d-4569-918d-8bf0b0c56a06", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the selection", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Delete the selection should delete the selection", + "timedOut": false, + "duration": 1917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_deleteSelection\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textModal, textMessage, isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSelection', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'delete')];\n case 2:\n textModal = _a.sent();\n (0, chai_1.expect)(textModal).to.equal(\"Deleting \".concat(numberOfProducts, \" products\"));\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'delete')];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProducts, \" / \").concat(numberOfProducts, \" products\"));\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'delete')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c734fac-832b-4c6f-99c1-2996ee1e9f13", + "parentUUID": "19a0603d-416d-4569-918d-8bf0b0c56a06", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Delete the selection should reset filter", + "timedOut": false, + "duration": 2898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_resetFilterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.equals(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a50f417e-063d-442d-bb4c-fb3dfe2f69b5", + "parentUUID": "19a0603d-416d-4569-918d-8bf0b0c56a06", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1c20c7eb-121e-42e1-b9d5-04fe4eca8321", + "3c734fac-832b-4c6f-99c1-2996ee1e9f13", + "a50f417e-063d-442d-bb4c-fb3dfe2f69b5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4869, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b707bd1c-79db-45fa-92b2-bdc7eae4cb30", + "title": "Contextual Menu : Preview", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on the Preview in Contextual Menu", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Preview should click on the Preview in Contextual Menu", + "timedOut": false, + "duration": 1903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_clickPreviewRow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickPreviewRow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 2:\n productName = (_a.sent());\n return [4 /*yield*/, products_1.default.clickOnPreviewProductButton(page)];\n case 3:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 4:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 5:\n result = _a.sent();\n (0, chai_1.expect)(result.name).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05577629-bd87-4352-bba2-4ca1678633a7", + "parentUUID": "b707bd1c-79db-45fa-92b2-bdc7eae4cb30", + "isHook": false, + "skipped": false + }, + { + "title": "should return on the back office", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Preview should return on the back office", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_returnOnBackOfficeAfterPreview\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnOnBackOfficeAfterPreview', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "344ad04f-67d8-4b15-81cd-104f2bb6b896", + "parentUUID": "b707bd1c-79db-45fa-92b2-bdc7eae4cb30", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "05577629-bd87-4352-bba2-4ca1678633a7", + "344ad04f-67d8-4b15-81cd-104f2bb6b896" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1908, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d8368bb9-2c8b-47ea-a7ba-ae12af1b7b03", + "title": "Contextual Menu : Duplicate", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on the Duplicate in Contextual Menu", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Duplicate should click on the Duplicate in Contextual Menu", + "timedOut": false, + "duration": 1625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_clickDuplicateRow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickDuplicateRow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDuplicateProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(add_1.default.successfulDuplicateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "470de037-e76d-412a-bcd2-da0a3e380d4c", + "parentUUID": "d8368bb9-2c8b-47ea-a7ba-ae12af1b7b03", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the product is duplicated", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Duplicate should check that the product is duplicated", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_checkProductDuplicated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductDuplicated', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductName(page, 'en')];\n case 2:\n productName = _a.sent();\n (0, chai_1.expect)(productName).to.contains('copy of');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50a870b5-8036-42ab-8da9-a3d3d4daf446", + "parentUUID": "d8368bb9-2c8b-47ea-a7ba-ae12af1b7b03", + "isHook": false, + "skipped": false + }, + { + "title": "should return to the list", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Duplicate should return to the list", + "timedOut": false, + "duration": 883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_returnToTheList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToTheList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f710bda5-c714-4a95-a404-a0eb47391628", + "parentUUID": "d8368bb9-2c8b-47ea-a7ba-ae12af1b7b03", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Status at \"No\"", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Duplicate should filter by Status at \"No\"", + "timedOut": false, + "duration": 1283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_filterStatusByNo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset, isActive, productName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterStatusByNo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'active', 'No', 'select')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.equals(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'active', 1)];\n case 4:\n isActive = _a.sent();\n (0, chai_1.expect)(isActive).to.eq(false);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 5:\n productName = _a.sent();\n (0, chai_1.expect)(productName).to.contains('copy of');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35e85395-ee04-4b81-80f3-a8844f875ea2", + "parentUUID": "d8368bb9-2c8b-47ea-a7ba-ae12af1b7b03", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the Preview in Contextual Menu", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Duplicate should click on the Preview in Contextual Menu", + "timedOut": false, + "duration": 1164, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_clickPreviewDuplicatedRow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickPreviewDuplicatedRow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 2:\n productName = (_a.sent());\n return [4 /*yield*/, products_1.default.clickOnPreviewProductButton(page)];\n case 3:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result.name).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c01ac6b-7676-4ee1-8f08-b5084ba58a4e", + "parentUUID": "d8368bb9-2c8b-47ea-a7ba-ae12af1b7b03", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the product is displayed on the front-office", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Duplicate should check that the product is displayed on the front-office", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_checkProductDuplicatedFrontOffice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductDuplicatedFrontOffice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getWarningMessage(page)];\n case 2:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equals(product_1.default.messageNotVisibleToCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6be7006e-b916-4115-bb70-3dd8d7b90077", + "parentUUID": "d8368bb9-2c8b-47ea-a7ba-ae12af1b7b03", + "isHook": false, + "skipped": false + }, + { + "title": "should return on the back office", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Duplicate should return on the back office", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_returnOnBackOfficeAfterDuplicate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnOnBackOfficeAfterDuplicate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3abab59a-3773-4947-8b40-e955f29b4308", + "parentUUID": "d8368bb9-2c8b-47ea-a7ba-ae12af1b7b03", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "470de037-e76d-412a-bcd2-da0a3e380d4c", + "50a870b5-8036-42ab-8da9-a3d3d4daf446", + "f710bda5-c714-4a95-a404-a0eb47391628", + "35e85395-ee04-4b81-80f3-a8844f875ea2", + "2c01ac6b-7676-4ee1-8f08-b5084ba58a4e", + "6be7006e-b916-4115-bb70-3dd8d7b90077", + "3abab59a-3773-4947-8b40-e955f29b4308" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4988, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8bbc69b8-c81f-42ae-bb56-91347b88540a", + "title": "Contextual Menu : Delete", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "file": "/campaigns/functional/BO/03_catalog/01_products/22_bulkActionsEnableDisable3DotsButton.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on the Delete / Cancel in Contextual Menu", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Delete should click on the Delete / Cancel in Contextual Menu", + "timedOut": false, + "duration": 1752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_clickDeleteCancelRow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, isModalVisibleAfterCancel, numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickDeleteCancelRow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page, 1)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [4 /*yield*/, products_1.default.clickOnCancelDialogButton(page)];\n case 3:\n isModalVisibleAfterCancel = _a.sent();\n (0, chai_1.expect)(isModalVisibleAfterCancel).to.eq(false);\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.equals(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e20139e-3c89-47d4-a0ec-d020cd23cd86", + "parentUUID": "8bbc69b8-c81f-42ae-bb56-91347b88540a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the Delete / Delete in Contextual Menu", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Delete should click on the Delete / Delete in Contextual Menu", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_clickDeleteDeleteRow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickDeleteDeleteRow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page, 1)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(add_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edf69bc5-076e-4111-8071-8d7792d57b05", + "parentUUID": "8bbc69b8-c81f-42ae-bb56-91347b88540a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products list : Bulk actions, Enable/Disable, 3-dot button Create product Contextual Menu : Delete should reset filter", + "timedOut": false, + "duration": 2893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_products_bulkActionsEnableDisable3DotsButton_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.equals(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c8ee83c-f604-4895-8c03-c7b814e6a727", + "parentUUID": "8bbc69b8-c81f-42ae-bb56-91347b88540a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1e20139e-3c89-47d4-a0ec-d020cd23cd86", + "edf69bc5-076e-4111-8071-8d7792d57b05", + "4c8ee83c-f604-4895-8c03-c7b814e6a727" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5598, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "863c9bb0-705a-415e-af5f-d3a7ad955a52", + "2f9eec2a-e43e-4893-8262-5243bec47091", + "20a18c69-da23-4609-9177-5aee78a69a34", + "d3603bb0-fb84-4692-b125-b35f89896475", + "0d9141f5-6de5-4d4f-a875-59b2f5207d4e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7898, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bcc88b55-c1a1-4818-bbce-b03422547993", + "title": "BO - Catalog - Categories : Filter and quick edit Categories table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/01_filterAndQuickEditCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/01_filterAndQuickEditCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Categories : Filter and quick edit Categories table\"", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table \"before all\" hook in \"BO - Catalog - Categories : Filter and quick edit Categories table\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d298de21-548d-4f3e-81ef-56559aba4cb3", + "parentUUID": "bcc88b55-c1a1-4818-bbce-b03422547993", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Categories : Filter and quick edit Categories table\"", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table \"after all\" hook in \"BO - Catalog - Categories : Filter and quick edit Categories table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0775c002-5c14-4897-bc45-e26e29d0e3e4", + "parentUUID": "bcc88b55-c1a1-4818-bbce-b03422547993", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table should login in BO", + "timedOut": false, + "duration": 1771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5d21543-9478-4f58-899f-f9c8a44da55b", + "parentUUID": "bcc88b55-c1a1-4818-bbce-b03422547993", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5124, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7edc75db-5770-41d1-b09c-b7759fb1592f", + "parentUUID": "bcc88b55-c1a1-4818-bbce-b03422547993", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of Categories in BO", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table should reset all filters and get number of Categories in BO", + "timedOut": false, + "duration": 2019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d79c5d8-0d38-44a0-bf62-47c0dccdd4e4", + "parentUUID": "bcc88b55-c1a1-4818-bbce-b03422547993", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "45a03d23-c999-4de9-b433-e10a08b771ed", + "title": "Filter Categories table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/01_filterAndQuickEditCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/01_filterAndQuickEditCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_category '9'", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should filter by id_category '9'", + "timedOut": false, + "duration": 1089, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, categories_1.default.getStatus(page, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cac79978-659a-4a3b-958f-d2054d0c8d89", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should reset all filters", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c77369c3-5c66-4078-b909-5bf45ad3b202", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Accessories'", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should filter by name 'Accessories'", + "timedOut": false, + "duration": 1179, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, categories_1.default.getStatus(page, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b98976e0-6ff4-4686-a5c8-5a826a1770dc", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should reset all filters", + "timedOut": false, + "duration": 398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37fb4179-2233-41e1-b116-f8cf280b98a1", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by description 'Items and accessories for your desk'", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should filter by description 'Items and accessories for your desk'", + "timedOut": false, + "duration": 1164, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, categories_1.default.getStatus(page, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c00b75ac-1c0d-46d9-8e37-a3abc6f5cda6", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should reset all filters", + "timedOut": false, + "duration": 399, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterDescriptionReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d88f302-19aa-4991-86cf-f7e2076f0e76", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by position '3'", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should filter by position '3'", + "timedOut": false, + "duration": 1078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, categories_1.default.getStatus(page, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19be3a17-e22b-4f2a-bfbf-131997fbcc68", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should reset all filters", + "timedOut": false, + "duration": 418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterPositionReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7eee92c8-93f0-40af-b8e1-fabcb1474348", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should filter by active '1'", + "timedOut": false, + "duration": 1078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, categories_1.default.getStatus(page, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8052a8b3-6bc8-49a7-b78e-e69007c202a9", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Filter Categories table should reset all filters", + "timedOut": false, + "duration": 423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterActiveReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87a2c350-0be4-44d5-9f92-02d93425756d", + "parentUUID": "45a03d23-c999-4de9-b433-e10a08b771ed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cac79978-659a-4a3b-958f-d2054d0c8d89", + "c77369c3-5c66-4078-b909-5bf45ad3b202", + "b98976e0-6ff4-4686-a5c8-5a826a1770dc", + "37fb4179-2233-41e1-b116-f8cf280b98a1", + "c00b75ac-1c0d-46d9-8e37-a3abc6f5cda6", + "7d88f302-19aa-4991-86cf-f7e2076f0e76", + "19be3a17-e22b-4f2a-bfbf-131997fbcc68", + "7eee92c8-93f0-40af-b8e1-fabcb1474348", + "8052a8b3-6bc8-49a7-b78e-e69007c202a9", + "87a2c350-0be4-44d5-9f92-02d93425756d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7581, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0244a890-0605-4c35-b84a-6ca8142f2443", + "title": "Quick edit Categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/01_filterAndQuickEditCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/01_filterAndQuickEditCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by Name 'Art'", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Quick edit Categories should filter by Name 'Art'", + "timedOut": false, + "duration": 1064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', categories_2.default.art.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76bb5dc0-8045-4671-83eb-747f11cb3192", + "parentUUID": "0244a890-0605-4c35-b84a-6ca8142f2443", + "isHook": false, + "skipped": false + }, + { + "title": "should disable first Category", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Quick edit Categories should disable first Category", + "timedOut": false, + "duration": 140, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_disableCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, categoryStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Category\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, categories_1.default.getGrowlMessageContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(categories_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, categories_1.default.getStatus(page, 1)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f54f98a-e7be-4950-a20e-2fce34e7c026", + "parentUUID": "0244a890-0605-4c35-b84a-6ca8142f2443", + "isHook": false, + "skipped": false + }, + { + "title": "should enable first Category", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Quick edit Categories should enable first Category", + "timedOut": false, + "duration": 66, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_enableCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, categoryStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Category\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, categories_1.default.getGrowlMessageContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(categories_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, categories_1.default.getStatus(page, 1)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "461d94f1-f2ad-49d2-b4b1-dcb9ca34d21e", + "parentUUID": "0244a890-0605-4c35-b84a-6ca8142f2443", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Categories : Filter and quick edit Categories table Quick edit Categories should reset all filters", + "timedOut": false, + "duration": 409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_filterAndQuickEditCategories_resetAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "532c82c9-d0d4-4356-8195-fea946334d1d", + "parentUUID": "0244a890-0605-4c35-b84a-6ca8142f2443", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76bb5dc0-8045-4671-83eb-747f11cb3192", + "0f54f98a-e7be-4950-a20e-2fce34e7c026", + "461d94f1-f2ad-49d2-b4b1-dcb9ca34d21e", + "532c82c9-d0d4-4356-8195-fea946334d1d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1679, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f5d21543-9478-4f58-899f-f9c8a44da55b", + "7edc75db-5770-41d1-b09c-b7759fb1592f", + "8d79c5d8-0d38-44a0-bf62-47c0dccdd4e4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8914, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3afcf594-ae43-4a14-94a6-649910452b15", + "title": "BO - Catalog - Categories : CRUD Category in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Categories : CRUD Category in BO\"", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO \"before all\" hook in \"BO - Catalog - Categories : CRUD Category in BO\"", + "timedOut": false, + "duration": 210, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create categories images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(\"\".concat(createCategoryData.name, \".jpg\")),\n files_1.default.generateImage(\"\".concat(createSubCategoryData.name, \".jpg\")),\n files_1.default.generateImage(\"\".concat(editCategoryData.name, \".jpg\")),\n ])];\n case 3:\n // Create categories images\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "401d639d-63fc-44e0-b522-c04f26ff408c", + "parentUUID": "3afcf594-ae43-4a14-94a6-649910452b15", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Categories : CRUD Category in BO\"", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO \"after all\" hook in \"BO - Catalog - Categories : CRUD Category in BO\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n /* Delete the generated images */\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(\"\".concat(createCategoryData.name, \".jpg\")),\n files_1.default.deleteFile(\"\".concat(createSubCategoryData.name, \".jpg\")),\n files_1.default.deleteFile(\"\".concat(editCategoryData.name, \".jpg\")),\n ])];\n case 2:\n /* Delete the generated images */\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8a7b8581-76b9-48c2-a851-ca5835ee65ea", + "parentUUID": "3afcf594-ae43-4a14-94a6-649910452b15", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO should login in BO", + "timedOut": false, + "duration": 1756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c8e5a06-9dc8-476b-bb69-274d3eae201a", + "parentUUID": "3afcf594-ae43-4a14-94a6-649910452b15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "553faa64-76fb-4117-9589-56259b16776a", + "parentUUID": "3afcf594-ae43-4a14-94a6-649910452b15", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of categories in BO", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO should reset all filters and get number of categories in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cacccf1-ce18-43ca-a01b-c00714e1945a", + "parentUUID": "3afcf594-ae43-4a14-94a6-649910452b15", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6a14a251-f01b-4789-b0cc-a857932ecced", + "title": "Create Category and subcategory in BO then check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "6a9a2c0a-56cf-4716-b283-2646e8096ff9", + "title": "Create Category and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new category page", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Category and check it in FO should go to add new category page", + "timedOut": false, + "duration": 1010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToNewCategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03d3cd33-8eb1-4f15-a049-5958db4a5de5", + "parentUUID": "6a9a2c0a-56cf-4716-b283-2646e8096ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should create category and check the categories number", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Category and check it in FO should create category and check the categories number", + "timedOut": false, + "duration": 1393, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_createCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dce663bd-b54d-4fe4-bd5e-15abbaca55f1", + "parentUUID": "6a9a2c0a-56cf-4716-b283-2646e8096ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new category and check result", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Category and check it in FO should search for the new category and check result", + "timedOut": false, + "duration": 3079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_searchCreatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCreatedCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', createCategoryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.most(numberOfCategories);\n i = 1;\n _a.label = 5;\n case 5:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 8];\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, i, 'name')];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createCategoryData.name);\n _a.label = 7;\n case 7:\n i++;\n return [3 /*break*/, 5];\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fa15651-059d-4994-bf81-be2aeb1d95bf", + "parentUUID": "6a9a2c0a-56cf-4716-b283-2646e8096ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Category and check it in FO should go to FO", + "timedOut": false, + "duration": 1873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToFoToCheckCreatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, isHomePage;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCheckCreatedCategory', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'id_category')];\n case 2:\n categoryID = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, categories_1.default.viewMyShop(page)];\n case 3:\n // View Shop\n page = _b.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 4:\n // Change FO language\n _b.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 5:\n isHomePage = _b.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c31eb427-6ee3-4157-acf8-57d8e5284146", + "parentUUID": "6a9a2c0a-56cf-4716-b283-2646e8096ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the created category", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Category and check it in FO should check the created category", + "timedOut": false, + "duration": 746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_checkCreatedCategoryFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, categoryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedCategoryFO', baseContext)];\n case 1:\n _a.sent();\n // Go to sitemap page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n // Go to sitemap page\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.getCategoryName(page, categoryID)];\n case 4:\n categoryName = _a.sent();\n (0, chai_1.expect)(categoryName).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14e9e414-1089-451f-a6c3-543241fb1bc3", + "parentUUID": "6a9a2c0a-56cf-4716-b283-2646e8096ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should view the created category", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Category and check it in FO should view the created category", + "timedOut": false, + "duration": 756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_viewCreatedCategoryFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, categoryDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCreatedCategoryFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.viewCreatedCategory(page, categoryID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getHeaderPageName(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(createCategoryData.name.toUpperCase());\n return [4 /*yield*/, category_1.default.getCategoryDescription(page)];\n case 4:\n categoryDescription = _a.sent();\n (0, chai_1.expect)(categoryDescription).to.equal(createCategoryData.description);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d952e999-60cc-414b-83d3-f5327f35bc66", + "parentUUID": "6a9a2c0a-56cf-4716-b283-2646e8096ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Category and check it in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a30cd3f9-68e0-4624-8f8f-0f5c6de30b36", + "parentUUID": "6a9a2c0a-56cf-4716-b283-2646e8096ff9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "03d3cd33-8eb1-4f15-a049-5958db4a5de5", + "dce663bd-b54d-4fe4-bd5e-15abbaca55f1", + "9fa15651-059d-4994-bf81-be2aeb1d95bf", + "c31eb427-6ee3-4157-acf8-57d8e5284146", + "14e9e414-1089-451f-a6c3-543241fb1bc3", + "d952e999-60cc-414b-83d3-f5327f35bc66", + "a30cd3f9-68e0-4624-8f8f-0f5c6de30b36" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8862, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6e2c45be-82ba-4164-b17a-f5b62374a90f", + "title": "Create Subcategory and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should display the subcategories table related to the created category", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Subcategory and check it in FO should display the subcategories table related to the created category", + "timedOut": false, + "duration": 1018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_displaySubcategoriesForCreatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displaySubcategoriesForCreatedCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToViewSubCategoriesPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74831af4-d98e-44ef-ae19-93f9f0e385e3", + "parentUUID": "6e2c45be-82ba-4164-b17a-f5b62374a90f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new category page", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Subcategory and check it in FO should go to add new category page", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToNewSubcategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewSubcategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be5ea9a1-cdb8-40da-84d3-8b5e087d29b4", + "parentUUID": "6e2c45be-82ba-4164-b17a-f5b62374a90f", + "isHook": false, + "skipped": false + }, + { + "title": "should create a subcategory", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Subcategory and check it in FO should create a subcategory", + "timedOut": false, + "duration": 1337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_createSubcategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSubcategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, createSubCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72a7b9d4-b0ee-4d61-8798-32de5f087a95", + "parentUUID": "6e2c45be-82ba-4164-b17a-f5b62374a90f", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the subcategory and check result", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Subcategory and check it in FO should search for the subcategory and check result", + "timedOut": false, + "duration": 1513, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_searchForCreatedSubcategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForCreatedSubcategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', createSubCategoryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createSubCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9ea4500-2ca9-4e85-b62d-2e377e8e649e", + "parentUUID": "6e2c45be-82ba-4164-b17a-f5b62374a90f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check the created Subcategory", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Subcategory and check it in FO should go to FO and check the created Subcategory", + "timedOut": false, + "duration": 2396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_checkCreatedSubcategoryFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, pageTitle, categoryName;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedSubcategoryFO', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'id_category')];\n case 2:\n subcategoryID = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, categories_1.default.viewMyShop(page)];\n case 3:\n // View shop\n page = _b.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 4:\n // Change language in FO\n _b.sent();\n // Go to sitemap page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 5:\n // Go to sitemap page\n _b.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 6:\n pageTitle = _b.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.getCategoryName(page, subcategoryID)];\n case 7:\n categoryName = _b.sent();\n (0, chai_1.expect)(categoryName).to.contains(createSubCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "801e3993-c53d-49c0-8e68-54465e93bd2d", + "parentUUID": "6e2c45be-82ba-4164-b17a-f5b62374a90f", + "isHook": false, + "skipped": false + }, + { + "title": "should view the created subcategory", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Subcategory and check it in FO should view the created subcategory", + "timedOut": false, + "duration": 725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_viewCreatedSubcategoryFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, subcategoryDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCreatedSubcategoryFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.viewCreatedCategory(page, subcategoryID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getHeaderPageName(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(createSubCategoryData.name.toUpperCase());\n return [4 /*yield*/, category_1.default.getCategoryDescription(page)];\n case 4:\n subcategoryDescription = _a.sent();\n (0, chai_1.expect)(subcategoryDescription).to.equal(createSubCategoryData.description);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "374cff0c-6dec-4846-96a8-fc7987de7616", + "parentUUID": "6e2c45be-82ba-4164-b17a-f5b62374a90f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Create Category and subcategory in BO then check it in FO Create Subcategory and check it in FO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e26aa76-54bf-4db5-a737-4b0904ec6160", + "parentUUID": "6e2c45be-82ba-4164-b17a-f5b62374a90f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74831af4-d98e-44ef-ae19-93f9f0e385e3", + "be5ea9a1-cdb8-40da-84d3-8b5e087d29b4", + "72a7b9d4-b0ee-4d61-8798-32de5f087a95", + "f9ea4500-2ca9-4e85-b62d-2e377e8e649e", + "801e3993-c53d-49c0-8e68-54465e93bd2d", + "374cff0c-6dec-4846-96a8-fc7987de7616", + "4e26aa76-54bf-4db5-a737-4b0904ec6160" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7880, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4b049d94-49b6-488e-8ffb-61ed93cfa15d", + "title": "View Category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO View Category should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 3962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToCategoriesPageToViewCreatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPageToViewCreatedCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToSubMenu(page, categories_1.default.catalogParentLink, categories_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cd23a5b-1f28-42d2-ab6e-ede26166784f", + "parentUUID": "4b049d94-49b6-488e-8ffb-61ed93cfa15d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by Name 'silver Garden'", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO View Category should filter list by Name 'silver Garden'", + "timedOut": false, + "duration": 1492, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_filterToViewCreatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCreatedCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', createCategoryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb7a145f-68b0-467a-ab39-d0bd059a3917", + "parentUUID": "4b049d94-49b6-488e-8ffb-61ed93cfa15d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view category", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO View Category should click on view category", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToViewCreatedCategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCreatedCategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToViewSubCategoriesPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17e57597-87c5-44fa-a08e-c7dd2d8cf84d", + "parentUUID": "4b049d94-49b6-488e-8ffb-61ed93cfa15d", + "isHook": false, + "skipped": false + }, + { + "title": "should check subcategories list", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO View Category should check subcategories list", + "timedOut": false, + "duration": 1520, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_checkSubcategoriesForCreatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSubcategoriesForCreatedCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', createSubCategoryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createSubCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3698d4e9-83e6-4bb8-9456-6adb7a6ca946", + "parentUUID": "4b049d94-49b6-488e-8ffb-61ed93cfa15d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6cd23a5b-1f28-42d2-ab6e-ede26166784f", + "bb7a145f-68b0-467a-ab39-d0bd059a3917", + "17e57597-87c5-44fa-a08e-c7dd2d8cf84d", + "3698d4e9-83e6-4bb8-9456-6adb7a6ca946" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7923, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "87166a28-ff16-4a04-8381-a085d34f3cf9", + "title": "Update Category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Update Category should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 3941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToCategoriesPageToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPageToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToSubMenu(page, categories_1.default.catalogParentLink, categories_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1778e81-30b1-4f27-a1d3-0bbbcb7a60d4", + "parentUUID": "87166a28-ff16-4a04-8381-a085d34f3cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by Name 'silver Garden'", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Update Category should filter list by Name 'silver Garden'", + "timedOut": false, + "duration": 1477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', createCategoryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4db24d9b-dc94-4b48-9d70-cac71a64664b", + "parentUUID": "87166a28-ff16-4a04-8381-a085d34f3cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit category page", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Update Category should go to edit category page", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToEditCategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToEditCategoryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit + createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "212cc21c-0cb1-4cb5-9857-119510d2691a", + "parentUUID": "87166a28-ff16-4a04-8381-a085d34f3cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should update the category", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Update Category should update the category", + "timedOut": false, + "duration": 2003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_updateCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, editCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulUpdateMessage);\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCategoriesAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterUpdate).to.be.equal(numberOfCategories + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6220234f-0e1c-4ec5-aee5-17822bda8a62", + "parentUUID": "87166a28-ff16-4a04-8381-a085d34f3cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new category and check result", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Update Category should search for the new category and check result", + "timedOut": false, + "duration": 3054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_searchForUpdatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForUpdatedCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', editCategoryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "432c3be0-9e59-4656-80da-8d67bc788648", + "parentUUID": "87166a28-ff16-4a04-8381-a085d34f3cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check that the category does not exist", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Update Category should go to FO and check that the category does not exist", + "timedOut": false, + "duration": 2451, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_checkUpdatedCategoryFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, categoryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedCategoryFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n // Go to sitemap page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 4:\n // Go to sitemap page\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.isVisibleCategory(page, categoryID)];\n case 6:\n categoryName = _a.sent();\n (0, chai_1.expect)(categoryName).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20feb572-4d2c-4a33-b869-f41a62f312ec", + "parentUUID": "87166a28-ff16-4a04-8381-a085d34f3cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Update Category should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goBackToBo3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5110b81-0a06-4a21-b411-43323ca07345", + "parentUUID": "87166a28-ff16-4a04-8381-a085d34f3cf9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b1778e81-30b1-4f27-a1d3-0bbbcb7a60d4", + "4db24d9b-dc94-4b48-9d70-cac71a64664b", + "212cc21c-0cb1-4cb5-9857-119510d2691a", + "6220234f-0e1c-4ec5-aee5-17822bda8a62", + "432c3be0-9e59-4656-80da-8d67bc788648", + "20feb572-4d2c-4a33-b869-f41a62f312ec", + "a5110b81-0a06-4a21-b411-43323ca07345" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13898, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c298b868-e7bb-42c2-a269-e3011e0b13a0", + "title": "Delete Category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/02_CRUDCategoryInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Delete Category should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 3952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToCategoriesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToSubMenu(page, categories_1.default.catalogParentLink, categories_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6245fa33-3871-4b9d-b30f-58ea4bc8c57a", + "parentUUID": "c298b868-e7bb-42c2-a269-e3011e0b13a0", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by Name 'updatesilver Garden'", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Delete Category should filter list by Name 'updatesilver Garden'", + "timedOut": false, + "duration": 1507, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', editCategoryData.name)];\n case 3:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'id_category')];\n case 4:\n categoryID = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 5:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(editCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c2cb180-7128-491d-bc9e-6ba1b65c3750", + "parentUUID": "c298b868-e7bb-42c2-a269-e3011e0b13a0", + "isHook": false, + "skipped": false + }, + { + "title": "should delete category", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Delete Category should delete category", + "timedOut": false, + "duration": 2114, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_deleteCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesAfterDeletion;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.deleteCategory(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulDeleteMessage);\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCategoriesAfterDeletion = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterDeletion).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a52acc8-2995-43b3-8cf0-b73731b048c7", + "parentUUID": "c298b868-e7bb-42c2-a269-e3011e0b13a0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Delete Category should go to FO", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec08740b-974b-4688-b21c-017359e56c43", + "parentUUID": "c298b868-e7bb-42c2-a269-e3011e0b13a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the deleted category does not exist", + "fullTitle": "BO - Catalog - Categories : CRUD Category in BO Delete Category should check that the deleted category does not exist", + "timedOut": false, + "duration": 704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_CRUDCategoryInBO_checkDeletedCategoryFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, categoryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeletedCategoryFO', baseContext)];\n case 1:\n _a.sent();\n // Go to sitemap page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n // Go to sitemap page\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.isVisibleCategory(page, categoryID)];\n case 4:\n categoryName = _a.sent();\n (0, chai_1.expect)(categoryName, 'Category is visible in FO!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be6c78b5-7357-42cd-9c4e-4bf9c09676df", + "parentUUID": "c298b868-e7bb-42c2-a269-e3011e0b13a0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6245fa33-3871-4b9d-b30f-58ea4bc8c57a", + "9c2cb180-7128-491d-bc9e-6ba1b65c3750", + "6a52acc8-2995-43b3-8cf0-b73731b048c7", + "ec08740b-974b-4688-b21c-017359e56c43", + "be6c78b5-7357-42cd-9c4e-4bf9c09676df" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10005, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "5c8e5a06-9dc8-476b-bb69-274d3eae201a", + "553faa64-76fb-4117-9589-56259b16776a", + "0cacccf1-ce18-43ca-a01b-c00714e1945a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8816, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "995a854d-fa76-48e9-81ee-db0c4a635894", + "title": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/03_categoriesBulkAction.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/03_categoriesBulkAction.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions\"", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions \"before all\" hook in \"BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions\"", + "timedOut": false, + "duration": 101, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create categories images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(\"\".concat(firstCategoryData.name, \".jpg\")),\n files_1.default.generateImage(\"\".concat(secondCategoryData.name, \".jpg\")),\n ])];\n case 3:\n // Create categories images\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e503d9eb-65d9-4a17-8b6f-98f10c2c8ea7", + "parentUUID": "995a854d-fa76-48e9-81ee-db0c4a635894", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions\"", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions \"after all\" hook in \"BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n /* Delete the generated images */\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(\"\".concat(firstCategoryData.name, \".jpg\")),\n files_1.default.deleteFile(\"\".concat(secondCategoryData.name, \".jpg\")),\n ])];\n case 2:\n /* Delete the generated images */\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b8ed2024-448c-453e-81d6-2e05bbb99c0e", + "parentUUID": "995a854d-fa76-48e9-81ee-db0c4a635894", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions should login in BO", + "timedOut": false, + "duration": 1768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f53f88f9-f2f9-4318-a649-b54230d864dd", + "parentUUID": "995a854d-fa76-48e9-81ee-db0c4a635894", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38a56f6b-9abf-4e63-8e38-13a7c281035b", + "parentUUID": "995a854d-fa76-48e9-81ee-db0c4a635894", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of categories in BO", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions should reset all filters and get number of categories in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c77f7f98-a2f9-495b-a08d-675596934383", + "parentUUID": "995a854d-fa76-48e9-81ee-db0c4a635894", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "41ea11d6-0bc9-435b-93a6-58453df32d9f", + "title": "Create 2 categories in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/03_categoriesBulkAction.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/03_categoriesBulkAction.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new category page", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Create 2 categories in BO should go to add new category page", + "timedOut": false, + "duration": 986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_goToAddCategoryPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCategoryPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc36141c-2127-49ad-bb2d-560607216e34", + "parentUUID": "41ea11d6-0bc9-435b-93a6-58453df32d9f", + "isHook": false, + "skipped": false + }, + { + "title": "should create category and check result", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Create 2 categories in BO should create category and check result", + "timedOut": false, + "duration": 1354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_createCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, test.args.categoryToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15c8bf07-6855-42c9-b7fd-6098ff0d7b53", + "parentUUID": "41ea11d6-0bc9-435b-93a6-58453df32d9f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new category page", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Create 2 categories in BO should go to add new category page", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_goToAddCategoryPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCategoryPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42b0e1fe-c67e-4bf9-b780-2463faf67814", + "parentUUID": "41ea11d6-0bc9-435b-93a6-58453df32d9f", + "isHook": false, + "skipped": false + }, + { + "title": "should create category and check result", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Create 2 categories in BO should create category and check result", + "timedOut": false, + "duration": 1389, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_createCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, test.args.categoryToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "957cea89-0cf5-48bb-919b-95c5f8a9b1f2", + "parentUUID": "41ea11d6-0bc9-435b-93a6-58453df32d9f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc36141c-2127-49ad-bb2d-560607216e34", + "15c8bf07-6855-42c9-b7fd-6098ff0d7b53", + "42b0e1fe-c67e-4bf9-b780-2463faf67814", + "957cea89-0cf5-48bb-919b-95c5f8a9b1f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4608, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c316b2cf-4ac2-4aaa-9e68-0e473579af8a", + "title": "Enable and Disable categories by Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/03_categoriesBulkAction.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/03_categoriesBulkAction.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by Name 'todelete'", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Enable and Disable categories by Bulk Actions should filter list by Name 'todelete'", + "timedOut": false, + "duration": 1049, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_filterToBulkEditStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEditStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf12fd00-b435-4b13-8ec0-f58b1da4c1db", + "parentUUID": "c316b2cf-4ac2-4aaa-9e68-0e473579af8a", + "isHook": false, + "skipped": false + }, + { + "title": "should disable categories", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Enable and Disable categories by Bulk Actions should disable categories", + "timedOut": false, + "duration": 583, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_goToAddCategoryPagedisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesInGrid, i, categoryStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCategoryPage\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(categories_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesInGrid).to.be.at.most(numberOfCategories);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, categories_1.default.getStatus(page, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdc943f2-b4ce-4931-aa69-101ca4fa33f6", + "parentUUID": "c316b2cf-4ac2-4aaa-9e68-0e473579af8a", + "isHook": false, + "skipped": false + }, + { + "title": "should enable categories", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Enable and Disable categories by Bulk Actions should enable categories", + "timedOut": false, + "duration": 587, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_goToAddCategoryPageenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesInGrid, i, categoryStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCategoryPage\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(categories_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesInGrid).to.be.at.most(numberOfCategories);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, categories_1.default.getStatus(page, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "631454ed-2aca-4dfc-b755-23439da842a1", + "parentUUID": "c316b2cf-4ac2-4aaa-9e68-0e473579af8a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bf12fd00-b435-4b13-8ec0-f58b1da4c1db", + "cdc943f2-b4ce-4931-aa69-101ca4fa33f6", + "631454ed-2aca-4dfc-b755-23439da842a1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2219, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e2f6221d-4667-408e-b2a3-6122ef1ab890", + "title": "Delete categories by Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/03_categoriesBulkAction.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/03_categoriesBulkAction.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete categories", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Delete categories by Bulk Actions should delete categories", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.deleteCategoriesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(categories_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80bc9479-395d-4962-bc5e-b32649c6bf70", + "parentUUID": "e2f6221d-4667-408e-b2a3-6122ef1ab890", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Categories : Enable/Disable/Delete categories by Bulk Actions Delete categories by Bulk Actions should reset all filters", + "timedOut": false, + "duration": 418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_categoriesBulkActions_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "240b8008-cea4-434f-975b-f0c31cd54c0a", + "parentUUID": "e2f6221d-4667-408e-b2a3-6122ef1ab890", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "80bc9479-395d-4962-bc5e-b32649c6bf70", + "240b8008-cea4-434f-975b-f0c31cd54c0a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2128, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f53f88f9-f2f9-4318-a649-b54230d864dd", + "38a56f6b-9abf-4e63-8e38-13a7c281035b", + "c77f7f98-a2f9-495b-a08d-675596934383" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8833, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1cd28515-c3f0-44b6-9eea-a23e67e37f9a", + "title": "BO - Catalog - Categories : Change category position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/04_changeCategoryPosition.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/04_changeCategoryPosition.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Categories : Change category position\"", + "fullTitle": "BO - Catalog - Categories : Change category position \"before all\" hook in \"BO - Catalog - Categories : Change category position\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6259396a-85a0-4ead-b59e-b6e40caf854c", + "parentUUID": "1cd28515-c3f0-44b6-9eea-a23e67e37f9a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Categories : Change category position\"", + "fullTitle": "BO - Catalog - Categories : Change category position \"after all\" hook in \"BO - Catalog - Categories : Change category position\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "39480fb4-a063-4870-9b17-9ba6685bfaa5", + "parentUUID": "1cd28515-c3f0-44b6-9eea-a23e67e37f9a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Change category position should login in BO", + "timedOut": false, + "duration": 1764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46730105-87be-4551-b85f-048b8f8b995c", + "parentUUID": "1cd28515-c3f0-44b6-9eea-a23e67e37f9a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : Change category position should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_changeCategoryPosition_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12ad24bc-d3b1-46e4-8df7-96973be84cbf", + "parentUUID": "1cd28515-c3f0-44b6-9eea-a23e67e37f9a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of categories in BO", + "fullTitle": "BO - Catalog - Categories : Change category position should reset all filters and get number of categories in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_changeCategoryPosition_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3448e96-1bd6-495d-9e4a-2eb251a303af", + "parentUUID": "1cd28515-c3f0-44b6-9eea-a23e67e37f9a", + "isHook": false, + "skipped": false + }, + { + "title": "should sort categories by position", + "fullTitle": "BO - Catalog - Categories : Change category position should sort categories by position", + "timedOut": false, + "duration": 2055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_changeCategoryPosition_sortCategoriesByPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sortCategoriesByPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, 'position')];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, categories_1.default.sortTable(page, 'position', 'asc')];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, 'position')];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, nonSortedTable.map(function (text) { return parseFloat(text); })];\n case 5:\n nonSortedTableFloat = _a.sent();\n return [4 /*yield*/, sortedTable.map(function (text) { return parseFloat(text); })];\n case 6:\n sortedTableFloat = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 7:\n expectedResult = _a.sent();\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e98fa62d-df2b-409c-910e-2ca8ce514257", + "parentUUID": "1cd28515-c3f0-44b6-9eea-a23e67e37f9a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7a6fd411-03b4-4bf0-96bb-85f4962fad2c", + "title": "Change categories position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/04_changeCategoryPosition.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/04_changeCategoryPosition.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should drag and drop the first category to the second position", + "fullTitle": "BO - Catalog - Categories : Change category position Change categories position should drag and drop the first category to the second position", + "timedOut": false, + "duration": 212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_changeCategoryPosition_changeCategoryPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstCategoryNameBeforeUpdate, resultText, firstCategoryNameAfterUpdate, secondCategoryNameAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeCategoryPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 2:\n firstCategoryNameBeforeUpdate = _a.sent();\n return [4 /*yield*/, categories_1.default.changeCategoryPosition(page, 1, 2)];\n case 3:\n resultText = _a.sent();\n (0, chai_1.expect)(resultText).to.equal(categories_1.default.successfulUpdateMessage);\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n firstCategoryNameAfterUpdate = _a.sent();\n (0, chai_1.expect)(firstCategoryNameBeforeUpdate).to.not.equal(firstCategoryNameAfterUpdate);\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 2, 'name')];\n case 5:\n secondCategoryNameAfterUpdate = _a.sent();\n (0, chai_1.expect)(firstCategoryNameBeforeUpdate).to.equal(secondCategoryNameAfterUpdate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ff2e392-59e0-4fd2-a96a-8926579b512c", + "parentUUID": "7a6fd411-03b4-4bf0-96bb-85f4962fad2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset category position", + "fullTitle": "BO - Catalog - Categories : Change category position Change categories position should reset category position", + "timedOut": false, + "duration": 141, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_changeCategoryPosition_resetCategoryPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var secondCategoryNameBeforeUpdate, resultText, secondCategoryNameAfterUpdate, firstCategoryNameAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCategoryPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 2, 'name')];\n case 2:\n secondCategoryNameBeforeUpdate = _a.sent();\n return [4 /*yield*/, categories_1.default.changeCategoryPosition(page, 2, 1)];\n case 3:\n resultText = _a.sent();\n (0, chai_1.expect)(resultText).to.equal(categories_1.default.successfulUpdateMessage);\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 2, 'name')];\n case 4:\n secondCategoryNameAfterUpdate = _a.sent();\n (0, chai_1.expect)(secondCategoryNameBeforeUpdate).to.not.equal(secondCategoryNameAfterUpdate);\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 5:\n firstCategoryNameAfterUpdate = _a.sent();\n (0, chai_1.expect)(secondCategoryNameBeforeUpdate).to.equal(firstCategoryNameAfterUpdate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f713e84-2448-46f1-952f-bcf550e66a1c", + "parentUUID": "7a6fd411-03b4-4bf0-96bb-85f4962fad2c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0ff2e392-59e0-4fd2-a96a-8926579b512c", + "6f713e84-2448-46f1-952f-bcf550e66a1c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 353, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "46730105-87be-4551-b85f-048b8f8b995c", + "12ad24bc-d3b1-46e4-8df7-96973be84cbf", + "a3448e96-1bd6-495d-9e4a-2eb251a303af", + "e98fa62d-df2b-409c-910e-2ca8ce514257" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10871, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3a6ee7d5-f284-4923-a39d-4a794ab81d1e", + "title": "BO - Catalog - Categories : Pagination and sort categories table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Categories : Pagination and sort categories table\"", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table \"before all\" hook in \"BO - Catalog - Categories : Pagination and sort categories table\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all categories data\n return [4 /*yield*/, files_1.default.createCSVFile('.', fileName, categories_2.default)];\n case 3:\n // Create csv file with all categories data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13e0dfdc-bc48-44f6-b64a-855a61198ced", + "parentUUID": "3a6ee7d5-f284-4923-a39d-4a794ab81d1e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Categories : Pagination and sort categories table\"", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table \"after all\" hook in \"BO - Catalog - Categories : Pagination and sort categories table\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete created csv file\n return [4 /*yield*/, files_1.default.deleteFile(fileName)];\n case 2:\n // Delete created csv file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6c2e52ec-3270-4a9b-b382-f15267cf8e5d", + "parentUUID": "3a6ee7d5-f284-4923-a39d-4a794ab81d1e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "title": "PRE-TEST: Import file 'categories.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'categories.csv'\"", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' \"before all\" hook in \"PRE-TEST: Import file 'categories.csv'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3303434b-b2a7-4be2-acfb-fe5a8c75eedf", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'categories.csv'\"", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' \"after all\" hook in \"PRE-TEST: Import file 'categories.csv'\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7ea3c7d5-745e-423a-88d3-2a7aa4cd8d02", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99aec849-4fb8-4ee8-94ea-f71ae03a1a2a", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea58c898-4089-4d45-b1c8-2abd7fe07b06", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'categories.csv' file", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' should import 'categories.csv' file", + "timedOut": false, + "duration": 2082, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa6c9aca-1ae8-4021-8c29-e6ae601a34e6", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' should go to next import file step", + "timedOut": false, + "duration": 369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cf046f2-9c07-4c6d-81aa-4e607187446a", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' should start import file", + "timedOut": false, + "duration": 252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "720a9a48-b59a-4b69-9d45-64516081c603", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' should check that the import is completed", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "deb92f11-bd55-49dd-8fbc-a3d43f6f644e", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table PRE-TEST: Import file 'categories.csv' should close import progress modal", + "timedOut": false, + "duration": 1195, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "775920d7-e9e2-40d5-9523-7c95c8232737", + "parentUUID": "3e236779-feaf-43f4-9df4-4aac91bbb6cc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99aec849-4fb8-4ee8-94ea-f71ae03a1a2a", + "ea58c898-4089-4d45-b1c8-2abd7fe07b06", + "fa6c9aca-1ae8-4021-8c29-e6ae601a34e6", + "6cf046f2-9c07-4c6d-81aa-4e607187446a", + "720a9a48-b59a-4b69-9d45-64516081c603", + "deb92f11-bd55-49dd-8fbc-a3d43f6f644e", + "775920d7-e9e2-40d5-9523-7c95c8232737" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11306, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "933c8ef9-76ea-4b48-a394-b5e769f5055b", + "title": "Go to 'Catalog > Categories' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Go to 'Catalog > Categories' page should login in BO", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c04bdc5-edf0-4cbc-84cc-fb9361b61b98", + "parentUUID": "933c8ef9-76ea-4b48-a394-b5e769f5055b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Go to 'Catalog > Categories' page should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d671c55-900d-4d57-af6c-03f1ecf23224", + "parentUUID": "933c8ef9-76ea-4b48-a394-b5e769f5055b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of categories in BO", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Go to 'Catalog > Categories' page should reset all filters and get number of categories in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08ac2271-eb56-4ce5-8768-e56bcc290466", + "parentUUID": "933c8ef9-76ea-4b48-a394-b5e769f5055b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6c04bdc5-edf0-4cbc-84cc-fb9361b61b98", + "2d671c55-900d-4d57-af6c-03f1ecf23224", + "08ac2271-eb56-4ce5-8768-e56bcc290466" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8839, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b400989d-b7fd-43a7-9540-f361beb01eca", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1030a650-7e19-4641-95ce-bee702ea994c", + "parentUUID": "b400989d-b7fd-43a7-9540-f361beb01eca", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Pagination next and previous should click on next", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4082891b-bba9-4216-89f7-a04eeb532485", + "parentUUID": "b400989d-b7fd-43a7-9540-f361beb01eca", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86b2a422-9c33-4110-b8ad-1e2b5da09cf9", + "parentUUID": "b400989d-b7fd-43a7-9540-f361beb01eca", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6f97213-6182-4f5c-8fae-f8e13cdbb6fb", + "parentUUID": "b400989d-b7fd-43a7-9540-f361beb01eca", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1030a650-7e19-4641-95ce-bee702ea994c", + "4082891b-bba9-4216-89f7-a04eeb532485", + "86b2a422-9c33-4110-b8ad-1e2b5da09cf9", + "e6f97213-6182-4f5c-8fae-f8e13cdbb6fb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3844, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "61d99793-0d6b-4214-b3c5-e3a7da82c514", + "title": "Sort categories table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_category' 'desc' and check result", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Sort categories table should sort by 'id_category' 'desc' and check result", + "timedOut": false, + "duration": 4265, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, categories_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d966b57d-f72f-46a5-9d7d-b82a70a1f84d", + "parentUUID": "61d99793-0d6b-4214-b3c5-e3a7da82c514", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Sort categories table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, categories_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b163a8f2-32ea-4e41-8a43-c3f1fea3f6b4", + "parentUUID": "61d99793-0d6b-4214-b3c5-e3a7da82c514", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Sort categories table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, categories_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d275fd8-ce42-4ddf-a1ec-ac52130b033c", + "parentUUID": "61d99793-0d6b-4214-b3c5-e3a7da82c514", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'desc' and check result", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Sort categories table should sort by 'position' 'desc' and check result", + "timedOut": false, + "duration": 4256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_sortByPositionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, categories_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b705167a-d712-4d65-b573-53cd4f8403d0", + "parentUUID": "61d99793-0d6b-4214-b3c5-e3a7da82c514", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'asc' and check result", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Sort categories table should sort by 'position' 'asc' and check result", + "timedOut": false, + "duration": 3281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_sortByPositionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, categories_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f679740-868e-41f5-b0a8-4bb50f154636", + "parentUUID": "61d99793-0d6b-4214-b3c5-e3a7da82c514", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_category' 'asc' and check result", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table Sort categories table should sort by 'id_category' 'asc' and check result", + "timedOut": false, + "duration": 3234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, categories_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eb8bac0-5e74-4534-ab19-33f7e9771b33", + "parentUUID": "61d99793-0d6b-4214-b3c5-e3a7da82c514", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d966b57d-f72f-46a5-9d7d-b82a70a1f84d", + "b163a8f2-32ea-4e41-8a43-c3f1fea3f6b4", + "3d275fd8-ce42-4ddf-a1ec-ac52130b033c", + "b705167a-d712-4d65-b573-53cd4f8403d0", + "1f679740-868e-41f5-b0a8-4bb50f154636", + "3eb8bac0-5e74-4534-ab19-33f7e9771b33" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21497, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "title": "POST-TEST: Bulk delete categories (filtered by name \"category\")", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/05_paginationAndSortCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"category\")\"", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table POST-TEST: Bulk delete categories (filtered by name \"category\") \"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"category\")\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de13e2e0-68fc-4cb1-a317-43851094ae76", + "parentUUID": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"category\")\"", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table POST-TEST: Bulk delete categories (filtered by name \"category\") \"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"category\")\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "54c5ee3b-d20d-4020-940d-f7a11781c62f", + "parentUUID": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table POST-TEST: Bulk delete categories (filtered by name \"category\") should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16710e28-6dd9-46ea-bcd4-c394e47136ce", + "parentUUID": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table POST-TEST: Bulk delete categories (filtered by name \"category\") should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_postTest_1_goToCategoriesPageToCheckImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPageToCheckImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e283c7d-1330-4577-8922-c44b8d0d529f", + "parentUUID": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of categories", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table POST-TEST: Bulk delete categories (filtered by name \"category\") should reset filter and get number of categories", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_postTest_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73eccabe-09e3-4c6c-b5a7-1843e6805cb4", + "parentUUID": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by Name 'category'", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table POST-TEST: Bulk delete categories (filtered by name \"category\") should filter list by Name 'category'", + "timedOut": false, + "duration": 1112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_postTest_1_filterCategoriesTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCategoriesTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', categoryData.filterBy, categoryData.value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, categoryData.filterBy)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(categoryData.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f724376-2460-4cee-9af9-196615b0bac2", + "parentUUID": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table POST-TEST: Bulk delete categories (filtered by name \"category\") should delete categories", + "timedOut": false, + "duration": 1825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_postTest_1_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.deleteCategoriesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(categories_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eed123a0-ccd8-4554-af84-2cb2d6052195", + "parentUUID": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Categories : Pagination and sort categories table POST-TEST: Bulk delete categories (filtered by name \"category\") should reset all filters", + "timedOut": false, + "duration": 412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_paginationAndSortCategories_postTest_1_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.be.below(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3216f4e9-cf92-4c1c-b752-e6787f9979a4", + "parentUUID": "0474f76c-71da-41a1-ae48-ebb1f53a27e9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "16710e28-6dd9-46ea-bcd4-c394e47136ce", + "3e283c7d-1330-4577-8922-c44b8d0d529f", + "73eccabe-09e3-4c6c-b5a7-1843e6805cb4", + "3f724376-2460-4cee-9af9-196615b0bac2", + "eed123a0-ccd8-4554-af84-2cb2d6052195", + "3216f4e9-cf92-4c1c-b752-e6787f9979a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12173, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e402f1e2-106a-421c-be93-5ae38b9d5d4c", + "title": "BO - Catalog - Categories : Help card in categories page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/06_helpCard.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/06_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Categories : Help card in categories page\"", + "fullTitle": "BO - Catalog - Categories : Help card in categories page \"before all\" hook in \"BO - Catalog - Categories : Help card in categories page\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "384a9f11-1415-4f26-9dec-4405afb1ec25", + "parentUUID": "e402f1e2-106a-421c-be93-5ae38b9d5d4c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Categories : Help card in categories page\"", + "fullTitle": "BO - Catalog - Categories : Help card in categories page \"after all\" hook in \"BO - Catalog - Categories : Help card in categories page\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "39fea553-e606-4dec-b280-5bc7f3930f41", + "parentUUID": "e402f1e2-106a-421c-be93-5ae38b9d5d4c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Help card in categories page should login in BO", + "timedOut": false, + "duration": 1772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd93629e-14dc-420c-b8e9-d39b95d0b7b9", + "parentUUID": "e402f1e2-106a-421c-be93-5ae38b9d5d4c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : Help card in categories page should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5033, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_helpCard_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8d35347-ff73-4ca3-bc12-f6b45a4fba8c", + "parentUUID": "e402f1e2-106a-421c-be93-5ae38b9d5d4c", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Catalog - Categories : Help card in categories page should open the help side bar and check the document language", + "timedOut": false, + "duration": 116, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, categories_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e92568ac-3cd1-4e93-9d65-a3c2d9fe8805", + "parentUUID": "e402f1e2-106a-421c-be93-5ae38b9d5d4c", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Catalog - Categories : Help card in categories page should close the help side bar", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0fcaea0-a683-41b3-9c61-c3d1ff231c1c", + "parentUUID": "e402f1e2-106a-421c-be93-5ae38b9d5d4c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd93629e-14dc-420c-b8e9-d39b95d0b7b9", + "a8d35347-ff73-4ca3-bc12-f6b45a4fba8c", + "e92568ac-3cd1-4e93-9d65-a3c2d9fe8805", + "a0fcaea0-a683-41b3-9c61-c3d1ff231c1c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6974, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "40444e64-322e-41b3-8339-a6777419f770", + "title": "BO - Catalog - Categories : Export categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/07_exportCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/07_exportCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Categories : Export categories\"", + "fullTitle": "BO - Catalog - Categories : Export categories \"before all\" hook in \"BO - Catalog - Categories : Export categories\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52b52fda-0e97-4d6b-bb3c-7b96445d729b", + "parentUUID": "40444e64-322e-41b3-8339-a6777419f770", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Categories : Export categories\"", + "fullTitle": "BO - Catalog - Categories : Export categories \"after all\" hook in \"BO - Catalog - Categories : Export categories\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d0b4070a-3e4c-415e-ad64-1fef473ea262", + "parentUUID": "40444e64-322e-41b3-8339-a6777419f770", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Export categories should login in BO", + "timedOut": false, + "duration": 1758, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "710e53b3-e4b4-47bc-9a10-238298f883a1", + "parentUUID": "40444e64-322e-41b3-8339-a6777419f770", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : Export categories should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5033, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_exportCategories_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "710bf8b4-6b4b-4448-96d3-f5c2362b7d2a", + "parentUUID": "40444e64-322e-41b3-8339-a6777419f770", + "isHook": false, + "skipped": false + }, + { + "title": "should export categories to a csv file", + "fullTitle": "BO - Catalog - Categories : Export categories should export categories to a csv file", + "timedOut": false, + "duration": 255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_exportCategories_exportCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'exportCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.exportDataToCsv(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'Export of data has failed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e9befae-c2f4-4c34-89a3-21481bf35dab", + "parentUUID": "40444e64-322e-41b3-8339-a6777419f770", + "isHook": false, + "skipped": false + }, + { + "title": "should check existence of categories data in csv file", + "fullTitle": "BO - Catalog - Categories : Export categories should check existence of categories data in csv file", + "timedOut": false, + "duration": 97, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_exportCategories_checkAllCategoriesInCsvFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategories, row, categoryInCsvFormat, textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllCategoriesInCsvFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfCategories = _a.sent();\n row = 1;\n _a.label = 3;\n case 3:\n if (!(row <= numberOfCategories)) return [3 /*break*/, 7];\n return [4 /*yield*/, categories_1.default.getCategoryInCsvFormat(page, row)];\n case 4:\n categoryInCsvFormat = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, categoryInCsvFormat, true)];\n case 5:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"\".concat(categoryInCsvFormat, \" was not found in the file\")).to.eq(true);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 3];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9256158-4585-4bfb-9b4a-547be67a03a6", + "parentUUID": "40444e64-322e-41b3-8339-a6777419f770", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "710e53b3-e4b4-47bc-9a10-238298f883a1", + "710bf8b4-6b4b-4448-96d3-f5c2362b7d2a", + "5e9befae-c2f4-4c34-89a3-21481bf35dab", + "e9256158-4585-4bfb-9b4a-547be67a03a6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7143, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "title": "BO - Catalog - Categories : Edit home category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/02_categories/08_editHomeCategory.ts", + "file": "/campaigns/functional/BO/03_catalog/02_categories/08_editHomeCategory.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Categories : Edit home category\"", + "fullTitle": "BO - Catalog - Categories : Edit home category \"before all\" hook in \"BO - Catalog - Categories : Edit home category\"", + "timedOut": false, + "duration": 75, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create category image\n return [4 /*yield*/, files_1.default.generateImage(\"\".concat(editCategoryData.name, \".jpg\"))];\n case 3:\n // Create category image\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f34368fe-a14f-4f18-b3cf-c0129458f7f0", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Categories : Edit home category\"", + "fullTitle": "BO - Catalog - Categories : Edit home category \"after all\" hook in \"BO - Catalog - Categories : Edit home category\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(editCategoryData.name, \".jpg\"))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "df140309-9ae7-4a19-946a-3dbdd010dcb2", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Categories : Edit home category should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "348a6c49-26ea-4459-8f11-5f7e3504e0c9", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Categories : Edit home category should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a48b4cf5-730e-4aff-b705-d7f436613c1c", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Edit Home category page", + "fullTitle": "BO - Catalog - Categories : Edit home category should go to Edit Home category page", + "timedOut": false, + "duration": 1039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_goToEditHomePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditHomePage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToEditHomeCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b22efb66-6a8c-4a23-9333-6eb96baffae2", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should update the category", + "fullTitle": "BO - Catalog - Categories : Edit home category should update the category", + "timedOut": false, + "duration": 1287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_updateCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.editHomeCategory(page, editCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.pageRootTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cad67811-e322-4869-af70-22b98996a345", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check the updated category", + "fullTitle": "BO - Catalog - Categories : Edit home category should go to FO and check the updated category", + "timedOut": false, + "duration": 2561, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_checkCreatedCategoryFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, isHomePage, pageTitle, categoryName;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedCategoryFO', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'id_category')];\n case 2:\n categoryID = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, categories_1.default.viewMyShop(page)];\n case 3:\n // View Shop\n page = _b.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 4:\n // Change FO language\n _b.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 5:\n isHomePage = _b.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n // Go to sitemap page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 6:\n // Go to sitemap page\n _b.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 7:\n pageTitle = _b.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.getCategoryName(page, categoryID)];\n case 8:\n categoryName = _b.sent();\n (0, chai_1.expect)(categoryName).to.contains(editCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc535a50-d7eb-42f6-a552-6ad003c043b2", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should view the created category", + "fullTitle": "BO - Catalog - Categories : Edit home category should view the created category", + "timedOut": false, + "duration": 942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_viewCreatedCategoryFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, categoryDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCreatedCategoryFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.viewCreatedCategory(page, categoryID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getHeaderPageName(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editCategoryData.name.toUpperCase());\n return [4 /*yield*/, category_1.default.getCategoryDescription(page)];\n case 4:\n categoryDescription = _a.sent();\n (0, chai_1.expect)(categoryDescription).to.equal(editCategoryData.description);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44c22aec-ebf7-4e35-a69d-8b8801c32d95", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Categories : Edit home category should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageRootTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e828839-a56e-4101-94d4-c1e4ff0dc291", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view category", + "fullTitle": "BO - Catalog - Categories : Edit home category should click on view category", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_goToViewCreatedCategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCreatedCategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToViewSubCategoriesPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15f371c2-a079-46c7-8028-9507d1ea919c", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Edit Home category page", + "fullTitle": "BO - Catalog - Categories : Edit home category should go to Edit Home category page", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_goToEditHomePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditHomePage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToEditHomeCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee372e8a-9ead-4570-a991-c8066b54feff", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset update the category", + "fullTitle": "BO - Catalog - Categories : Edit home category should reset update the category", + "timedOut": false, + "duration": 1391, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_categories_editHomeCategory_resetUpdateCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetUpdateCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.editHomeCategory(page, categories_2.default.home)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.pageRootTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31f86d05-bd7b-49e9-8e62-b2a7227b7d83", + "parentUUID": "bd101a4e-ec87-4471-901d-6cdedf894e4d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "348a6c49-26ea-4459-8f11-5f7e3504e0c9", + "a48b4cf5-730e-4aff-b705-d7f436613c1c", + "b22efb66-6a8c-4a23-9333-6eb96baffae2", + "cad67811-e322-4869-af70-22b98996a345", + "bc535a50-d7eb-42f6-a552-6ad003c043b2", + "44c22aec-ebf7-4e35-a69d-8b8801c32d95", + "8e828839-a56e-4101-94d4-c1e4ff0dc291", + "15f371c2-a079-46c7-8028-9507d1ea919c", + "ee372e8a-9ead-4570-a991-c8066b54feff", + "31f86d05-bd7b-49e9-8e62-b2a7227b7d83" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15869, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "dc0333d4-262f-46df-befd-c4f88f8d254e", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1867, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ba5016e-e36e-4184-98a3-be7e40e0cffa", + "parentUUID": "dc0333d4-262f-46df-befd-c4f88f8d254e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f20ac74-9340-4054-bf35-b6ef0ab6831a", + "parentUUID": "dc0333d4-262f-46df-befd-c4f88f8d254e", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0253efd-9112-4e11-9b95-eacdbb8122f4", + "parentUUID": "dc0333d4-262f-46df-befd-c4f88f8d254e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0e2d09ee-ba21-40cc-b5d1-665dd4490f59", + "title": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/01_deleteEmptyCategory.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/01_deleteEmptyCategory.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Create empty category and delete it from monitoring page\"", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page \"before all\" hook in \"BO - Catalog - Monitoring : Create empty category and delete it from monitoring page\"", + "timedOut": false, + "duration": 117, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create category image\n return [4 /*yield*/, files_1.default.generateImage(\"\".concat(createCategoryData.name, \".jpg\"))];\n case 3:\n // Create category image\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1532e686-90b7-43b5-8a45-8942394eb72a", + "parentUUID": "0e2d09ee-ba21-40cc-b5d1-665dd4490f59", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Create empty category and delete it from monitoring page\"", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page \"after all\" hook in \"BO - Catalog - Monitoring : Create empty category and delete it from monitoring page\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n /* Delete the generated image */\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(createCategoryData.name, \".jpg\"))];\n case 2:\n /* Delete the generated image */\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5d263d76-7613-4a50-a962-107f9f86861c", + "parentUUID": "0e2d09ee-ba21-40cc-b5d1-665dd4490f59", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page should login in BO", + "timedOut": false, + "duration": 8316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b3bb411-3a69-4989-b1f8-5131384005e7", + "parentUUID": "0e2d09ee-ba21-40cc-b5d1-665dd4490f59", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5536, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d45806ed-1728-442d-b8dd-9288983fbabe", + "parentUUID": "0e2d09ee-ba21-40cc-b5d1-665dd4490f59", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of categories in BO", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page should reset all filters and get number of categories in BO", + "timedOut": false, + "duration": 2020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e550998-e090-4be6-b8b8-ae111bc895a0", + "parentUUID": "0e2d09ee-ba21-40cc-b5d1-665dd4490f59", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "886220d8-5e35-46aa-97db-97de5e5b3670", + "title": "Create empty category in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/01_deleteEmptyCategory.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/01_deleteEmptyCategory.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new category page", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page Create empty category in BO should go to add new category page", + "timedOut": false, + "duration": 1267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_goToAddCategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddCategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc212142-ba85-4f77-be7f-5bcade51f4e1", + "parentUUID": "886220d8-5e35-46aa-97db-97de5e5b3670", + "isHook": false, + "skipped": false + }, + { + "title": "should create category and check the categories number", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page Create empty category in BO should create category and check the categories number", + "timedOut": false, + "duration": 1868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_createCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05ede728-2821-405e-9a40-28d99b638900", + "parentUUID": "886220d8-5e35-46aa-97db-97de5e5b3670", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cc212142-ba85-4f77-be7f-5bcade51f4e1", + "05ede728-2821-405e-9a40-28d99b638900" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3135, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dc6db3ad-7e70-4b51-966f-879246a95309", + "title": "Check created category in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/01_deleteEmptyCategory.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/01_deleteEmptyCategory.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page Check created category in monitoring page should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 5999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToSubMenu(page, categories_1.default.catalogParentLink, categories_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, 'empty_category')];\n case 4:\n numberOfEmptyCategories = _a.sent();\n (0, chai_1.expect)(numberOfEmptyCategories).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80e8ead6-f4e1-464e-8dc0-d29954dc0b80", + "parentUUID": "dc6db3ad-7e70-4b51-966f-879246a95309", + "isHook": false, + "skipped": false + }, + { + "title": "should filter categories by Name white Grocery", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page Check created category in monitoring page should filter categories by Name white Grocery", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_checkCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, 'empty_category', 'input', 'name', createCategoryData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, 'empty_category', 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ac16cb8-49c4-42ac-8327-c2bb0cb94540", + "parentUUID": "dc6db3ad-7e70-4b51-966f-879246a95309", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter in empty categories grid", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page Check created category in monitoring page should reset filter in empty categories grid", + "timedOut": false, + "duration": 382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_resetInMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetInMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, 'empty_category')];\n case 2:\n numberOfEmptyCategories = _a.sent();\n (0, chai_1.expect)(numberOfEmptyCategories).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21043757-7736-4f20-83a8-6c80b7b4def9", + "parentUUID": "dc6db3ad-7e70-4b51-966f-879246a95309", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "80e8ead6-f4e1-464e-8dc0-d29954dc0b80", + "2ac16cb8-49c4-42ac-8327-c2bb0cb94540", + "21043757-7736-4f20-83a8-6c80b7b4def9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7442, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b25dd21b-acd8-4d7f-b9cb-9c0444ff8575", + "title": "Delete category from monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/01_deleteEmptyCategory.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/01_deleteEmptyCategory.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter categories by Name white Grocery", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page Delete category from monitoring page should filter categories by Name white Grocery", + "timedOut": false, + "duration": 1014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_filterEmptyCategoriesGridToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmptyCategoriesGridToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, 'empty_category', 'input', 'name', createCategoryData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, 'empty_category', 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5c15c77-ec67-440a-a1d0-b9d711c4829a", + "parentUUID": "b25dd21b-acd8-4d7f-b9cb-9c0444ff8575", + "isHook": false, + "skipped": false + }, + { + "title": "should delete category", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page Delete category from monitoring page should delete category", + "timedOut": false, + "duration": 1776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_deleteCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.deleteCategoryInGrid(page, 'empty_category', 1, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(monitoring_1.default.successfulDeleteMessage);\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7444bd7b-c938-4e41-8510-a3354849b01a", + "parentUUID": "b25dd21b-acd8-4d7f-b9cb-9c0444ff8575", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter check number of categories", + "fullTitle": "BO - Catalog - Monitoring : Create empty category and delete it from monitoring page Delete category from monitoring page should reset filter check number of categories", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_deleteEmptyCategory_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterDelete).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd360767-f526-4f56-b3b2-f766248eef86", + "parentUUID": "b25dd21b-acd8-4d7f-b9cb-9c0444ff8575", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b5c15c77-ec67-440a-a1d0-b9d711c4829a", + "7444bd7b-c938-4e41-8510-a3354849b01a", + "bd360767-f526-4f56-b3b2-f766248eef86" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4797, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "6b3bb411-3a69-4989-b1f8-5131384005e7", + "d45806ed-1728-442d-b8dd-9288983fbabe", + "5e550998-e090-4be6-b8b8-ae111bc895a0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15872, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2e7c305b-67a1-40c8-87d5-477bdb594b0a", + "title": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Create different products and delete them from monitoring page\"", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page \"before all\" hook in \"BO - Catalog - Monitoring : Create different products and delete them from monitoring page\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dabd667-ca3c-4f8e-9037-8a3dbb356299", + "parentUUID": "2e7c305b-67a1-40c8-87d5-477bdb594b0a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Create different products and delete them from monitoring page\"", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page \"after all\" hook in \"BO - Catalog - Monitoring : Create different products and delete them from monitoring page\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bbe9ab6c-5726-447e-b3b4-98faaf964531", + "parentUUID": "2e7c305b-67a1-40c8-87d5-477bdb594b0a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page should login in BO", + "timedOut": false, + "duration": 1853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1f920b1-c8eb-4b9c-a695-24ef2a43c30a", + "parentUUID": "2e7c305b-67a1-40c8-87d5-477bdb594b0a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "5c426e8f-d868-41d6-89aa-d551220da6f0", + "title": "Create product without image in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without image in BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5083, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7604678b-c3a0-4482-8de4-5fe9f868ef69", + "parentUUID": "5c426e8f-d868-41d6-89aa-d551220da6f0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without image in BO should reset filter and get number of products", + "timedOut": false, + "duration": 42, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_getNumberOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56034801-1b16-4526-becc-6968ad3f1377", + "parentUUID": "5c426e8f-d868-41d6-89aa-d551220da6f0", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without image in BO should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_clickNewProductBtn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_clickNewProductBtn\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3802935-dced-47f2-92a4-fa82b393b5b4", + "parentUUID": "5c426e8f-d868-41d6-89aa-d551220da6f0", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the type of product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without image in BO should choose the type of product", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_chooseTypeOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e5bd05c-76e2-495c-873b-3c68aafb2002", + "parentUUID": "5c426e8f-d868-41d6-89aa-d551220da6f0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without image in BO should go to new product page", + "timedOut": false, + "duration": 63, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToNewProductPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd2c62cb-b93e-48c7-a117-691b4b5a18b0", + "parentUUID": "5c426e8f-d868-41d6-89aa-d551220da6f0", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without image in BO should create product", + "timedOut": false, + "duration": 5825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_createNewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_createNewProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.productToCreate)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c46af09-741b-40e2-8d04-0ef5408d9458", + "parentUUID": "5c426e8f-d868-41d6-89aa-d551220da6f0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7604678b-c3a0-4482-8de4-5fe9f868ef69", + "56034801-1b16-4526-becc-6968ad3f1377", + "a3802935-dced-47f2-92a4-fa82b393b5b4", + "3e5bd05c-76e2-495c-873b-3c68aafb2002", + "dd2c62cb-b93e-48c7-a117-691b4b5a18b0", + "1c46af09-741b-40e2-8d04-0ef5408d9458" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12125, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e999f396-7313-4aea-8730-d1cfe9c97ca7", + "title": "Check created product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 5976, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.catalogParentLink, add_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 4:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e55c7a6f-ba52-4452-b9c9-7ed7d60531c9", + "parentUUID": "e999f396-7313-4aea-8730-d1cfe9c97ca7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products without image grid and check existence of new product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should filter products without image grid and check existence of new product", + "timedOut": false, + "duration": 1032, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_checkProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_checkProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ef12725-9491-4425-9778-8d7e59706181", + "parentUUID": "e999f396-7313-4aea-8730-d1cfe9c97ca7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter in products without image grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should reset filter in products without image grid", + "timedOut": false, + "duration": 374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_resetInMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e6d92df-8699-46c8-9811-55a9e5519b42", + "parentUUID": "e999f396-7313-4aea-8730-d1cfe9c97ca7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e55c7a6f-ba52-4452-b9c9-7ed7d60531c9", + "6ef12725-9491-4425-9778-8d7e59706181", + "8e6d92df-8699-46c8-9811-55a9e5519b42" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7382, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "083d89c2-606a-454f-b8f3-5c38243628d7", + "title": "Delete product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products without image grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should filter products without image grid", + "timedOut": false, + "duration": 1014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_filterToDelete\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90dd6c28-37da-40c5-bfcc-c5933928e1f8", + "parentUUID": "083d89c2-606a-454f-b8f3-5c38243628d7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should delete product", + "timedOut": false, + "duration": 1617, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_deleteProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.deleteProductInGrid(page, test.gridName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(products_1.default.successfulDeleteMessage);\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "373111ce-f230-419b-8739-08a8729857ce", + "parentUUID": "083d89c2-606a-454f-b8f3-5c38243628d7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter check number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should reset filter check number of products", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutImage_resetInProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterDelete).to.be.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d49ae458-b305-4044-846f-e974f5599f22", + "parentUUID": "083d89c2-606a-454f-b8f3-5c38243628d7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "90dd6c28-37da-40c5-bfcc-c5933928e1f8", + "373111ce-f230-419b-8739-08a8729857ce", + "d49ae458-b305-4044-846f-e974f5599f22" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2651, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "285d68ed-42da-44d1-a988-e1f84828bf22", + "title": "Create product disabled in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product disabled in BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed90c8e4-5f51-4857-973a-775e45c368c3", + "parentUUID": "285d68ed-42da-44d1-a988-e1f84828bf22", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product disabled in BO should reset filter and get number of products", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_getNumberOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94451b4c-4bd3-4cdf-9099-690880b812bd", + "parentUUID": "285d68ed-42da-44d1-a988-e1f84828bf22", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product disabled in BO should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_clickNewProductBtn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_clickNewProductBtn\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "160965e0-815b-497e-9095-1393cb5f419a", + "parentUUID": "285d68ed-42da-44d1-a988-e1f84828bf22", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the type of product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product disabled in BO should choose the type of product", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_chooseTypeOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77574a7f-dc20-4c60-84ec-fd41b2169d6c", + "parentUUID": "285d68ed-42da-44d1-a988-e1f84828bf22", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product disabled in BO should go to new product page", + "timedOut": false, + "duration": 67, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToNewProductPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdac98e7-4116-47d6-8be3-7f21af85550b", + "parentUUID": "285d68ed-42da-44d1-a988-e1f84828bf22", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product disabled in BO should create product", + "timedOut": false, + "duration": 5266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_createNewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_createNewProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.productToCreate)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "258d35e0-2d5a-45c5-b710-97e4e892686d", + "parentUUID": "285d68ed-42da-44d1-a988-e1f84828bf22", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ed90c8e4-5f51-4857-973a-775e45c368c3", + "94451b4c-4bd3-4cdf-9099-690880b812bd", + "160965e0-815b-497e-9095-1393cb5f419a", + "77574a7f-dc20-4c60-84ec-fd41b2169d6c", + "cdac98e7-4116-47d6-8be3-7f21af85550b", + "258d35e0-2d5a-45c5-b710-97e4e892686d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11354, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2cacc79e-b267-4dd2-9bf1-3d18b043f781", + "title": "Check created product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 5893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.catalogParentLink, add_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 4:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4015d1dc-b195-46ee-8764-6761eb16a4cf", + "parentUUID": "2cacc79e-b267-4dd2-9bf1-3d18b043f781", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products disabled grid and check existence of new product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should filter products disabled grid and check existence of new product", + "timedOut": false, + "duration": 995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_checkProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_checkProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06c984f5-f8a0-4994-9673-92b9ee56611b", + "parentUUID": "2cacc79e-b267-4dd2-9bf1-3d18b043f781", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter in products disabled grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should reset filter in products disabled grid", + "timedOut": false, + "duration": 370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_resetInMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ba27a21-70f4-454e-a8cd-98438cc121d9", + "parentUUID": "2cacc79e-b267-4dd2-9bf1-3d18b043f781", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4015d1dc-b195-46ee-8764-6761eb16a4cf", + "06c984f5-f8a0-4994-9673-92b9ee56611b", + "6ba27a21-70f4-454e-a8cd-98438cc121d9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7258, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "720d404f-cedb-43c4-90b8-e9238a4e8de6", + "title": "Delete product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products disabled grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should filter products disabled grid", + "timedOut": false, + "duration": 1141, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_filterToDelete\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf00b1f6-c9b6-4e9f-994d-c3b9ca0a2d7d", + "parentUUID": "720d404f-cedb-43c4-90b8-e9238a4e8de6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should delete product", + "timedOut": false, + "duration": 1627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_deleteProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.deleteProductInGrid(page, test.gridName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(products_1.default.successfulDeleteMessage);\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03d42a94-3060-4df7-a0ff-90fded572ffb", + "parentUUID": "720d404f-cedb-43c4-90b8-e9238a4e8de6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter check number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should reset filter check number of products", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_disabledProduct_resetInProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterDelete).to.be.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f025e84-2048-40e5-bb11-9c2794d98b76", + "parentUUID": "720d404f-cedb-43c4-90b8-e9238a4e8de6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bf00b1f6-c9b6-4e9f-994d-c3b9ca0a2d7d", + "03d42a94-3060-4df7-a0ff-90fded572ffb", + "3f025e84-2048-40e5-bb11-9c2794d98b76" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2786, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "16fb9af6-b9e8-420d-844a-44cfdc629bd4", + "title": "Create product without combinations and without available quantities in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without combinations and without available quantities in BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "799b5b25-43ee-4b50-a6d8-32f5e65b40b9", + "parentUUID": "16fb9af6-b9e8-420d-844a-44cfdc629bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without combinations and without available quantities in BO should reset filter and get number of products", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_getNumberOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b34315bf-70f2-459b-b4a3-cd6d6c9681a6", + "parentUUID": "16fb9af6-b9e8-420d-844a-44cfdc629bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without combinations and without available quantities in BO should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_clickNewProductBtn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_clickNewProductBtn\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c63d905-5982-43ab-a544-e84fcebcff02", + "parentUUID": "16fb9af6-b9e8-420d-844a-44cfdc629bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the type of product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without combinations and without available quantities in BO should choose the type of product", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_chooseTypeOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d436f033-f9dc-4fc5-844e-fbe6bf5a1b77", + "parentUUID": "16fb9af6-b9e8-420d-844a-44cfdc629bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without combinations and without available quantities in BO should go to new product page", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToNewProductPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1d1391d-8a7a-4176-9c50-a69ba836b619", + "parentUUID": "16fb9af6-b9e8-420d-844a-44cfdc629bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without combinations and without available quantities in BO should create product", + "timedOut": false, + "duration": 5979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_createNewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_createNewProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.productToCreate)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54ce11b2-8b6a-459a-bf7c-fb822cb5bd1c", + "parentUUID": "16fb9af6-b9e8-420d-844a-44cfdc629bd4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "799b5b25-43ee-4b50-a6d8-32f5e65b40b9", + "b34315bf-70f2-459b-b4a3-cd6d6c9681a6", + "8c63d905-5982-43ab-a544-e84fcebcff02", + "d436f033-f9dc-4fc5-844e-fbe6bf5a1b77", + "a1d1391d-8a7a-4176-9c50-a69ba836b619", + "54ce11b2-8b6a-459a-bf7c-fb822cb5bd1c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12045, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d7680a74-068f-4a40-a09d-1e87e13b35ef", + "title": "Check created product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 5959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.catalogParentLink, add_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 4:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ead9017-76fb-49a4-98f5-e2111a3229ad", + "parentUUID": "d7680a74-068f-4a40-a09d-1e87e13b35ef", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products without combinations and without available quantities grid and check existence of new product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should filter products without combinations and without available quantities grid and check existence of new product", + "timedOut": false, + "duration": 1046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_checkProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_checkProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "244efcc8-7849-4cf9-aa83-f19ee86338d0", + "parentUUID": "d7680a74-068f-4a40-a09d-1e87e13b35ef", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter in products without combinations and without available quantities grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should reset filter in products without combinations and without available quantities grid", + "timedOut": false, + "duration": 380, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_resetInMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eaefe936-dffd-4bd3-ad1a-a8f307c6f34d", + "parentUUID": "d7680a74-068f-4a40-a09d-1e87e13b35ef", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8ead9017-76fb-49a4-98f5-e2111a3229ad", + "244efcc8-7849-4cf9-aa83-f19ee86338d0", + "eaefe936-dffd-4bd3-ad1a-a8f307c6f34d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7385, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "216976e7-77a4-44d7-9c3c-72b1825c7e84", + "title": "Delete product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products without combinations and without available quantities grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should filter products without combinations and without available quantities grid", + "timedOut": false, + "duration": 1029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_filterToDelete\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7116d33b-a23a-409a-9034-24b257531514", + "parentUUID": "216976e7-77a4-44d7-9c3c-72b1825c7e84", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should delete product", + "timedOut": false, + "duration": 1580, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_deleteProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.deleteProductInGrid(page, test.gridName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(products_1.default.successfulDeleteMessage);\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fe8b460-8b0c-457d-ae81-4900fa99d1ea", + "parentUUID": "216976e7-77a4-44d7-9c3c-72b1825c7e84", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter check number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should reset filter check number of products", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutCombinationsWithoutQuantity_resetInProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterDelete).to.be.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3974d943-8d66-4437-bf48-ae7e0d0eef8a", + "parentUUID": "216976e7-77a4-44d7-9c3c-72b1825c7e84", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7116d33b-a23a-409a-9034-24b257531514", + "7fe8b460-8b0c-457d-ae81-4900fa99d1ea", + "3974d943-8d66-4437-bf48-ae7e0d0eef8a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2630, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "title": "Create product with combinations and without available quantities in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4deadc6e-a44e-4447-9cc3-5ee374f9e2e5", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should reset filter and get number of products", + "timedOut": false, + "duration": 87, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_getNumberOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a80c8cc-6f2f-4d9d-92bd-07d29dcf273a", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_clickNewProductBtn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_clickNewProductBtn\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d80dc465-768a-42c8-8802-c681ad4813be", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the type of product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should choose the type of product", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_chooseTypeOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c669993a-7c01-44bb-854f-2e92555ff78d", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should go to new product page", + "timedOut": false, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToNewProductPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1400b391-67ac-46ab-9f43-6dc2f60b9b47", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should create product", + "timedOut": false, + "duration": 5263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_createNewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_createNewProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.productToCreate)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1904a281-85a1-4f1b-9cfc-807d56e71634", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + }, + { + "title": "should create combinations and check generate combinations button", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should create combinations and check generate combinations button", + "timedOut": false, + "duration": 2394, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_createCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var generateCombinationsButton;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setProductAttributes(page, test.productToCreate.attributes)];\n case 2:\n generateCombinationsButton = _a.sent();\n (0, chai_1.expect)(generateCombinationsButton).to.equal('Generate 4 combinations');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03ba82a5-406a-4547-b760-d4da58a7c469", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on generate combinations button", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should click on generate combinations button", + "timedOut": false, + "duration": 245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_generateCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal('Successfully generated 4 combinations.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd27841c-d14e-4ed4-9c42-2f9787e760f6", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that combinations generation modal is closed", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product with combinations and without available quantities in BO should check that combinations generation modal is closed", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_generateCombinationsModalIsClosed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinationsModalIsClosed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinationModalIsClosed(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cd77a47-a653-45a2-bdd9-214a2b357c67", + "parentUUID": "31954f1d-750e-4a99-ba2c-dbdf267c81a3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4deadc6e-a44e-4447-9cc3-5ee374f9e2e5", + "0a80c8cc-6f2f-4d9d-92bd-07d29dcf273a", + "d80dc465-768a-42c8-8802-c681ad4813be", + "c669993a-7c01-44bb-854f-2e92555ff78d", + "1400b391-67ac-46ab-9f43-6dc2f60b9b47", + "1904a281-85a1-4f1b-9cfc-807d56e71634", + "03ba82a5-406a-4547-b760-d4da58a7c469", + "bd27841c-d14e-4ed4-9c42-2f9787e760f6", + "0cd77a47-a653-45a2-bdd9-214a2b357c67" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14083, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c12f57e2-15c1-4d3e-9e18-26a69e1b8edc", + "title": "Check created product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 5937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.catalogParentLink, add_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 4:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1ad49f2-a460-4492-b160-ef9b03481cc0", + "parentUUID": "c12f57e2-15c1-4d3e-9e18-26a69e1b8edc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products with combinations and without available quantities grid and check existence of new product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should filter products with combinations and without available quantities grid and check existence of new product", + "timedOut": false, + "duration": 1019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_checkProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_checkProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d935809c-20a6-4240-ba1d-eff031a578c0", + "parentUUID": "c12f57e2-15c1-4d3e-9e18-26a69e1b8edc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter in products with combinations and without available quantities grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should reset filter in products with combinations and without available quantities grid", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_resetInMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b6d9abc-aedc-43ab-a4f2-3884f53b92d0", + "parentUUID": "c12f57e2-15c1-4d3e-9e18-26a69e1b8edc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b1ad49f2-a460-4492-b160-ef9b03481cc0", + "d935809c-20a6-4240-ba1d-eff031a578c0", + "0b6d9abc-aedc-43ab-a4f2-3884f53b92d0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7321, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8e3ffb3e-ff7f-4990-8dde-902c2076b8f4", + "title": "Delete product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products with combinations and without available quantities grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should filter products with combinations and without available quantities grid", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_filterToDelete\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c11692fe-73aa-4941-a5c4-667d17f4df08", + "parentUUID": "8e3ffb3e-ff7f-4990-8dde-902c2076b8f4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should delete product", + "timedOut": false, + "duration": 1658, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_deleteProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.deleteProductInGrid(page, test.gridName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(products_1.default.successfulDeleteMessage);\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "481b9165-2e54-4bc8-a770-15c5a171da98", + "parentUUID": "8e3ffb3e-ff7f-4990-8dde-902c2076b8f4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter check number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should reset filter check number of products", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithCombinationsWithQuantity_resetInProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterDelete).to.be.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52d104eb-268c-4141-b90b-c4315ae9e67d", + "parentUUID": "8e3ffb3e-ff7f-4990-8dde-902c2076b8f4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c11692fe-73aa-4941-a5c4-667d17f4df08", + "481b9165-2e54-4bc8-a770-15c5a171da98", + "52d104eb-268c-4141-b90b-c4315ae9e67d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2699, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "931cd9f9-0048-4908-b4b7-1f9ce373a6bb", + "title": "Create product without price in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without price in BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dddaf9d5-c055-45b8-8ee8-beb6911f34fa", + "parentUUID": "931cd9f9-0048-4908-b4b7-1f9ce373a6bb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without price in BO should reset filter and get number of products", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_getNumberOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6683547-5bda-4708-bdaa-9de2d91bda46", + "parentUUID": "931cd9f9-0048-4908-b4b7-1f9ce373a6bb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without price in BO should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_clickNewProductBtn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_clickNewProductBtn\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5a76d8d-39de-41c9-b685-5f4e8a0643b5", + "parentUUID": "931cd9f9-0048-4908-b4b7-1f9ce373a6bb", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the type of product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without price in BO should choose the type of product", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_chooseTypeOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "048fbe58-fd5c-4265-aeb0-8ada07140d10", + "parentUUID": "931cd9f9-0048-4908-b4b7-1f9ce373a6bb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without price in BO should go to new product page", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToNewProductPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdf87c07-f89a-4ed1-bcba-41fec30c7abc", + "parentUUID": "931cd9f9-0048-4908-b4b7-1f9ce373a6bb", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without price in BO should create product", + "timedOut": false, + "duration": 5975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_createNewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_createNewProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.productToCreate)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac98346f-cf2a-41b8-ad08-576013b92d05", + "parentUUID": "931cd9f9-0048-4908-b4b7-1f9ce373a6bb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dddaf9d5-c055-45b8-8ee8-beb6911f34fa", + "c6683547-5bda-4708-bdaa-9de2d91bda46", + "f5a76d8d-39de-41c9-b685-5f4e8a0643b5", + "048fbe58-fd5c-4265-aeb0-8ada07140d10", + "fdf87c07-f89a-4ed1-bcba-41fec30c7abc", + "ac98346f-cf2a-41b8-ad08-576013b92d05" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12045, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "908e81e1-bbcd-4ce5-aa92-1fb76295c88b", + "title": "Check created product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 5892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.catalogParentLink, add_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 4:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e389205-f8ff-4d1a-bcbf-6ba6cf4430b9", + "parentUUID": "908e81e1-bbcd-4ce5-aa92-1fb76295c88b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products without price grid and check existence of new product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should filter products without price grid and check existence of new product", + "timedOut": false, + "duration": 1041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_checkProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_checkProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ea24146-4d0b-4161-b076-d709f39f0277", + "parentUUID": "908e81e1-bbcd-4ce5-aa92-1fb76295c88b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter in products without price grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should reset filter in products without price grid", + "timedOut": false, + "duration": 457, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_resetInMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75e880ed-2ebe-4092-b34e-28c2b5d19414", + "parentUUID": "908e81e1-bbcd-4ce5-aa92-1fb76295c88b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7e389205-f8ff-4d1a-bcbf-6ba6cf4430b9", + "1ea24146-4d0b-4161-b076-d709f39f0277", + "75e880ed-2ebe-4092-b34e-28c2b5d19414" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7390, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7c2f1c32-3a94-4334-8158-06d9e15c0f2d", + "title": "Delete product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products without price grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should filter products without price grid", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_filterToDelete\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60b54d2d-a011-4ec5-87a2-817e0e0ca2ba", + "parentUUID": "7c2f1c32-3a94-4334-8158-06d9e15c0f2d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should delete product", + "timedOut": false, + "duration": 1607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_deleteProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.deleteProductInGrid(page, test.gridName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(products_1.default.successfulDeleteMessage);\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f01f639-c507-4607-aae7-59c9bb760dff", + "parentUUID": "7c2f1c32-3a94-4334-8158-06d9e15c0f2d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter check number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should reset filter check number of products", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutPrice_resetInProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterDelete).to.be.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5be62e4-319a-4a47-9105-7644966f78a9", + "parentUUID": "7c2f1c32-3a94-4334-8158-06d9e15c0f2d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "60b54d2d-a011-4ec5-87a2-817e0e0ca2ba", + "7f01f639-c507-4607-aae7-59c9bb760dff", + "f5be62e4-319a-4a47-9105-7644966f78a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2648, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa6c5bb5-3c66-40e0-a27d-e97e95f6b61d", + "title": "Create product without description in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without description in BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "146f284d-8c84-46b5-9e80-be6bf02d0ef6", + "parentUUID": "fa6c5bb5-3c66-40e0-a27d-e97e95f6b61d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without description in BO should reset filter and get number of products", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_getNumberOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f20014e2-f873-475d-b926-2b561aad6af8", + "parentUUID": "fa6c5bb5-3c66-40e0-a27d-e97e95f6b61d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without description in BO should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_clickNewProductBtn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_clickNewProductBtn\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a01ee92-46cc-41b5-8821-a23f3e3d6a1d", + "parentUUID": "fa6c5bb5-3c66-40e0-a27d-e97e95f6b61d", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the type of product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without description in BO should choose the type of product", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_chooseTypeOfProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee942856-7f13-467e-944f-fb143bb72ea5", + "parentUUID": "fa6c5bb5-3c66-40e0-a27d-e97e95f6b61d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without description in BO should go to new product page", + "timedOut": false, + "duration": 118, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToNewProductPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "592e57a9-f362-458e-8d91-dfa1c32395fa", + "parentUUID": "fa6c5bb5-3c66-40e0-a27d-e97e95f6b61d", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Create product without description in BO should create product", + "timedOut": false, + "duration": 5135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_createNewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_createNewProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.productToCreate)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9288a51-0da6-4a4d-b069-e864d5edc2e0", + "parentUUID": "fa6c5bb5-3c66-40e0-a27d-e97e95f6b61d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "146f284d-8c84-46b5-9e80-be6bf02d0ef6", + "f20014e2-f873-475d-b926-2b561aad6af8", + "5a01ee92-46cc-41b5-8821-a23f3e3d6a1d", + "ee942856-7f13-467e-944f-fb143bb72ea5", + "592e57a9-f362-458e-8d91-dfa1c32395fa", + "d9288a51-0da6-4a4d-b069-e864d5edc2e0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11283, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7dce9b88-9707-4d08-a54c-1a25e245f9da", + "title": "Check created product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 5903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_goToMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.catalogParentLink, add_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 4:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f505b214-9bd2-45a5-8574-968f8cd70f23", + "parentUUID": "7dce9b88-9707-4d08-a54c-1a25e245f9da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products without description grid and check existence of new product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should filter products without description grid and check existence of new product", + "timedOut": false, + "duration": 1062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_checkProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_checkProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9583417-748f-48ce-b6e5-60c8e2843cf8", + "parentUUID": "7dce9b88-9707-4d08-a54c-1a25e245f9da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter in products without description grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Check created product in monitoring page should reset filter in products without description grid", + "timedOut": false, + "duration": 481, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_resetInMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInMonitoringPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, test.gridName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53dbd036-87f9-40cc-805c-9332c09598f6", + "parentUUID": "7dce9b88-9707-4d08-a54c-1a25e245f9da", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f505b214-9bd2-45a5-8574-968f8cd70f23", + "f9583417-748f-48ce-b6e5-60c8e2843cf8", + "53dbd036-87f9-40cc-805c-9332c09598f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7446, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "12772872-641a-40ce-a037-fd791cb18f73", + "title": "Delete product in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/02_monitoringProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products without description grid", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should filter products without description grid", + "timedOut": false, + "duration": 1045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_filterToDelete\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.filterTable(page, test.gridName, 'input', 'name', test.productToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getTextColumnFromTable(page, test.gridName, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.productToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19073915-6d5d-46b9-aa4c-89a624ba7094", + "parentUUID": "12772872-641a-40ce-a037-fd791cb18f73", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should delete product", + "timedOut": false, + "duration": 1619, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_deleteProduct\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.deleteProductInGrid(page, test.gridName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(products_1.default.successfulDeleteMessage);\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c59fd33-2a22-4417-b9bc-f5a17f3710a2", + "parentUUID": "12772872-641a-40ce-a037-fd791cb18f73", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter check number of products", + "fullTitle": "BO - Catalog - Monitoring : Create different products and delete them from monitoring page Delete product in monitoring page should reset filter check number of products", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_monitoringProducts_productWithoutDescription_resetInProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.testIdentifier, \"_resetInProductsPage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterDelete).to.be.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d0e1d93-52f2-4fe0-8dcd-d94325c6b66f", + "parentUUID": "12772872-641a-40ce-a037-fd791cb18f73", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "19073915-6d5d-46b9-aa4c-89a624ba7094", + "8c59fd33-2a22-4417-b9bc-f5a17f3710a2", + "8d0e1d93-52f2-4fe0-8dcd-d94325c6b66f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2683, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c1f920b1-c8eb-4b9c-a695-24ef2a43c30a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1853, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8573b711-b57f-4288-abc9-7702de57479d", + "title": "BO - Catalog - Monitoring : Help card in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/03_helpCard.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/03_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Help card in monitoring page\"", + "fullTitle": "BO - Catalog - Monitoring : Help card in monitoring page \"before all\" hook in \"BO - Catalog - Monitoring : Help card in monitoring page\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c22c1d4a-5cb1-46e0-be8f-c382b724a1d8", + "parentUUID": "8573b711-b57f-4288-abc9-7702de57479d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Help card in monitoring page\"", + "fullTitle": "BO - Catalog - Monitoring : Help card in monitoring page \"after all\" hook in \"BO - Catalog - Monitoring : Help card in monitoring page\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d1947de-62a1-4e31-88e9-435a2a1fc400", + "parentUUID": "8573b711-b57f-4288-abc9-7702de57479d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Help card in monitoring page should login in BO", + "timedOut": false, + "duration": 1828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9502981f-e2fe-40f0-8be3-e15e886ebbca", + "parentUUID": "8573b711-b57f-4288-abc9-7702de57479d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Help card in monitoring page should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 4945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_helpCard_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bc123dd-e61b-4930-96d6-51e5800dabf6", + "parentUUID": "8573b711-b57f-4288-abc9-7702de57479d", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Catalog - Monitoring : Help card in monitoring page should open the help side bar and check the document language", + "timedOut": false, + "duration": 133, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, monitoring_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "713d7dc1-9d66-448c-8083-7c8eeb9542fe", + "parentUUID": "8573b711-b57f-4288-abc9-7702de57479d", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Catalog - Monitoring : Help card in monitoring page should close the help side bar", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd78c507-fef1-4b41-85b9-1d29f11cda8d", + "parentUUID": "8573b711-b57f-4288-abc9-7702de57479d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9502981f-e2fe-40f0-8be3-e15e886ebbca", + "3bc123dd-e61b-4930-96d6-51e5800dabf6", + "713d7dc1-9d66-448c-8083-7c8eeb9542fe", + "bd78c507-fef1-4b41-85b9-1d29f11cda8d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6970, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f2bc6966-a306-4a17-a9d7-28956affc304", + "title": "BO - Catalog - Monitoring : Sort and pagination list of empty categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of empty categories\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories \"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of empty categories\"", + "timedOut": false, + "duration": 50, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all data\n return [4 /*yield*/, files_1.default.createCSVFile('.', fileName, categories_2.default)];\n case 3:\n // Create csv file with all data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "425c4668-ead4-4d44-bdfe-693b9eb55f5b", + "parentUUID": "f2bc6966-a306-4a17-a9d7-28956affc304", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of empty categories\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories \"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of empty categories\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete file\n return [4 /*yield*/, files_1.default.deleteFile(fileName)];\n case 2:\n // Delete file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1fb5f8d2-50e5-444f-aeb5-0318acfb62f9", + "parentUUID": "f2bc6966-a306-4a17-a9d7-28956affc304", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a198336d-2128-4768-9b13-068b2c6048f1", + "title": "PRE-TEST: Import file 'categories.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'categories.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' \"before all\" hook in \"PRE-TEST: Import file 'categories.csv'\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d2f421c-8b63-4192-9940-c985b7a17468", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'categories.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' \"after all\" hook in \"PRE-TEST: Import file 'categories.csv'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "25f016fd-3d36-415e-bfe6-5d625ebf02c9", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' should login in BO", + "timedOut": false, + "duration": 1813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3246355-08d1-4e99-802b-e4f9fd1709b2", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4a039cb-509d-4543-92b6-55909d897a57", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'categories.csv' file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' should import 'categories.csv' file", + "timedOut": false, + "duration": 2099, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abe362d7-bf1a-4c81-b106-d98668549af1", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' should go to next import file step", + "timedOut": false, + "duration": 460, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a04d53fd-be70-4139-9c7e-5e63145ff674", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' should start import file", + "timedOut": false, + "duration": 270, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "853e3287-951e-4ec7-bcba-31a8a12661c7", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' should check that the import is completed", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0c38577-3451-4d6d-933c-3a053a83060c", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories PRE-TEST: Import file 'categories.csv' should close import progress modal", + "timedOut": false, + "duration": 1224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f38ab03-c6d4-48d0-969a-c98e40bf4d1b", + "parentUUID": "a198336d-2128-4768-9b13-068b2c6048f1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c3246355-08d1-4e99-802b-e4f9fd1709b2", + "c4a039cb-509d-4543-92b6-55909d897a57", + "abe362d7-bf1a-4c81-b106-d98668549af1", + "a04d53fd-be70-4139-9c7e-5e63145ff674", + "853e3287-951e-4ec7-bcba-31a8a12661c7", + "d0c38577-3451-4d6d-933c-3a053a83060c", + "7f38ab03-c6d4-48d0-969a-c98e40bf4d1b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11635, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "title": "Sort list of empty categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should login in BO", + "timedOut": false, + "duration": 1819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca2c3380-4737-4ef6-9e3b-29ee9552b9f7", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 3972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_goToMonitoringPageToSort\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPageToSort', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2ae2d6e-cd44-41ff-9681-79bb6ed8e991", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the number of imported categories is greater than 10", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should check that the number of imported categories is greater than 10", + "timedOut": false, + "duration": 423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_checkNumberOfCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmptyCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, 'empty_category')];\n case 2:\n numberOfEmptyCategories = _a.sent();\n (0, chai_1.expect)(numberOfEmptyCategories).to.be.at.least(10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a226f10-5639-4f14-9fd6-d2b11c6447ce", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort empty categories table by 'id_category' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should sort empty categories table by 'id_category' 'desc' and check result", + "timedOut": false, + "duration": 4038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_1.default.sortTable(page, 'empty_category', test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a57cdd99-f43e-4f68-87a3-7aeebc0a179b", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort empty categories table by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should sort empty categories table by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3993, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_1.default.sortTable(page, 'empty_category', test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3538fbf-fed9-4d75-b212-659c1f9d7540", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort empty categories table by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should sort empty categories table by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3077, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_1.default.sortTable(page, 'empty_category', test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10b396d9-d320-433e-96d1-7079b3b31bae", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort empty categories table by 'description' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should sort empty categories table by 'description' 'desc' and check result", + "timedOut": false, + "duration": 3959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_sortByDescriptionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_1.default.sortTable(page, 'empty_category', test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08d90d46-6593-4485-98cd-2aa89d8d2615", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort empty categories table by 'description' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should sort empty categories table by 'description' 'asc' and check result", + "timedOut": false, + "duration": 3102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_sortByDescriptionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_1.default.sortTable(page, 'empty_category', test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc0510af-aef5-499f-9d5a-e3f455ab990d", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort empty categories table by 'active' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should sort empty categories table by 'active' 'asc' and check result", + "timedOut": false, + "duration": 5324, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_sortByEnabledAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_1.default.sortTable(page, 'empty_category', test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41c880a7-fab1-43ab-8ec2-3c39991be28e", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort empty categories table by 'active' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should sort empty categories table by 'active' 'desc' and check result", + "timedOut": false, + "duration": 5436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_sortByEnabledDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_1.default.sortTable(page, 'empty_category', test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfb652bf-9aac-4a09-ba6b-186de1a861dc", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort empty categories table by 'id_category' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Sort list of empty categories should sort empty categories table by 'id_category' 'asc' and check result", + "timedOut": false, + "duration": 3117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_1.default.sortTable(page, 'empty_category', test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60b6eff8-db4a-4208-9a09-c2d2085b91d7", + "parentUUID": "1bccd158-8d7f-4c08-b621-1cae072ab49f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca2c3380-4737-4ef6-9e3b-29ee9552b9f7", + "f2ae2d6e-cd44-41ff-9681-79bb6ed8e991", + "9a226f10-5639-4f14-9fd6-d2b11c6447ce", + "a57cdd99-f43e-4f68-87a3-7aeebc0a179b", + "f3538fbf-fed9-4d75-b212-659c1f9d7540", + "10b396d9-d320-433e-96d1-7079b3b31bae", + "08d90d46-6593-4485-98cd-2aa89d8d2615", + "dc0510af-aef5-499f-9d5a-e3f455ab990d", + "41c880a7-fab1-43ab-8ec2-3c39991be28e", + "cfb652bf-9aac-4a09-ba6b-186de1a861dc", + "60b6eff8-db4a-4208-9a09-c2d2085b91d7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 38260, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fde0fbc7-6b55-4be7-83a8-4c6782c7d986", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e06b9d0-0b1b-48e9-96bb-ac9b785ef24d", + "parentUUID": "fde0fbc7-6b55-4be7-83a8-4c6782c7d986", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Pagination next and previous should click on next", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbd9ecb2-1020-457b-9029-925a8fa7e70c", + "parentUUID": "fde0fbc7-6b55-4be7-83a8-4c6782c7d986", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Pagination next and previous should click on previous", + "timedOut": false, + "duration": 861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe57a0a7-5638-4d1f-a292-2f86816893e1", + "parentUUID": "fde0fbc7-6b55-4be7-83a8-4c6782c7d986", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4884345a-d24b-4712-a7c6-e84629748fe0", + "parentUUID": "fde0fbc7-6b55-4be7-83a8-4c6782c7d986", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4e06b9d0-0b1b-48e9-96bb-ac9b785ef24d", + "bbd9ecb2-1020-457b-9029-925a8fa7e70c", + "fe57a0a7-5638-4d1f-a292-2f86816893e1", + "4884345a-d24b-4712-a7c6-e84629748fe0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3418, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "title": "POST-TEST: Bulk delete categories (filtered by name \"category\")", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/01_emptyCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"category\")\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories POST-TEST: Bulk delete categories (filtered by name \"category\") \"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"category\")\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a29a7e91-d4b9-4dde-ac30-1e2117f1ac9e", + "parentUUID": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"category\")\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories POST-TEST: Bulk delete categories (filtered by name \"category\") \"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"category\")\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5a966332-91d6-4769-90f2-6ca2678c669d", + "parentUUID": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories POST-TEST: Bulk delete categories (filtered by name \"category\") should login in BO", + "timedOut": false, + "duration": 1824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef110696-8088-415a-9d92-3fe13ec666d7", + "parentUUID": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories POST-TEST: Bulk delete categories (filtered by name \"category\") should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5154, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_goToCategoriesPageToCheckImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPageToCheckImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1d0ec7b-3fc8-43f6-a371-b452ed045ff9", + "parentUUID": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of categories", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories POST-TEST: Bulk delete categories (filtered by name \"category\") should reset filter and get number of categories", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee801a70-7673-4861-a21f-89c9e3ea1c3f", + "parentUUID": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by Name 'category'", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories POST-TEST: Bulk delete categories (filtered by name \"category\") should filter list by Name 'category'", + "timedOut": false, + "duration": 1181, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_filterCategoriesTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCategoriesTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', categoryData.filterBy, categoryData.value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, categoryData.filterBy)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(categoryData.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a132a860-0871-4988-a80c-a86dd39220f9", + "parentUUID": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories POST-TEST: Bulk delete categories (filtered by name \"category\") should delete categories", + "timedOut": false, + "duration": 1917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.deleteCategoriesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(categories_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "626fd8a0-4afb-462f-8e44-cc07a58d9d07", + "parentUUID": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of empty categories POST-TEST: Bulk delete categories (filtered by name \"category\") should reset all filters", + "timedOut": false, + "duration": 435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_emptyCategories_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.be.below(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0c2a9bc-dbfe-4b97-92cd-0ff7260d5b97", + "parentUUID": "2899ff9b-86c5-44af-a6c0-690211a672ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ef110696-8088-415a-9d92-3fe13ec666d7", + "e1d0ec7b-3fc8-43f6-a371-b452ed045ff9", + "ee801a70-7673-4861-a21f-89c9e3ea1c3f", + "a132a860-0871-4988-a80c-a86dd39220f9", + "626fd8a0-4afb-462f-8e44-cc07a58d9d07", + "d0c2a9bc-dbfe-4b97-92cd-0ff7260d5b97" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12520, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c24454db-51cc-4632-85f9-819350863118", + "title": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities \"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities\"", + "timedOut": false, + "duration": 50, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all products data\n return [4 /*yield*/, files_1.default.createCSVFile('.', productFileName, disabledProducts_1.default)];\n case 3:\n // Create csv file with all products data\n _a.sent();\n // Create csv file with all combinations data\n return [4 /*yield*/, files_1.default.createCSVFile('.', combinationsFileName, combinations_1.default)];\n case 4:\n // Create csv file with all combinations data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81698518-cd82-4ba3-b7a5-d963982e4281", + "parentUUID": "c24454db-51cc-4632-85f9-819350863118", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities \"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete products file\n return [4 /*yield*/, files_1.default.deleteFile(productFileName)];\n case 2:\n // Delete products file\n _a.sent();\n // Delete combinations file\n return [4 /*yield*/, files_1.default.deleteFile(combinationsFileName)];\n case 3:\n // Delete combinations file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "111d0d0a-197e-4d1b-889e-94b5d8502241", + "parentUUID": "c24454db-51cc-4632-85f9-819350863118", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "10567db4-9836-448b-b375-68f6df8ca4d2", + "title": "PRE-TEST: Import file 'products.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' \"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d20def9-b849-482d-9d9e-c9883a3c5f94", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' \"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2c19c2ea-36aa-4363-97e9-83a31c20e1ec", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' should login in BO", + "timedOut": false, + "duration": 1809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6631b8b5-00de-4da4-b2d1-2c83fc9c6dd5", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6bdeacf-c9e0-4b85-9ac1-880525b9e096", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'products.csv' file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' should import 'products.csv' file", + "timedOut": false, + "duration": 2087, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce64ea4d-aff0-42c2-8f43-99fc105cfb12", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' should go to next import file step", + "timedOut": false, + "duration": 407, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68bb9330-b245-4217-bdbc-5647fb3e38f3", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' should start import file", + "timedOut": false, + "duration": 282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74dda6ff-e86d-4571-9a8c-c4389592dd32", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' should check that the import is completed", + "timedOut": false, + "duration": 906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71723213-1586-439c-84b2-24a1751150b8", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'products.csv' should close import progress modal", + "timedOut": false, + "duration": 1192, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdf5c1d8-54f6-45a8-8bdf-c50ab5a1739e", + "parentUUID": "10567db4-9836-448b-b375-68f6df8ca4d2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6631b8b5-00de-4da4-b2d1-2c83fc9c6dd5", + "a6bdeacf-c9e0-4b85-9ac1-880525b9e096", + "ce64ea4d-aff0-42c2-8f43-99fc105cfb12", + "68bb9330-b245-4217-bdbc-5647fb3e38f3", + "74dda6ff-e86d-4571-9a8c-c4389592dd32", + "71723213-1586-439c-84b2-24a1751150b8", + "fdf5c1d8-54f6-45a8-8bdf-c50ab5a1739e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11589, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f845a943-f03f-4190-a704-1a4978b72cc7", + "title": "PRE-TEST: Import file 'combinations.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'combinations.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' \"before all\" hook in \"PRE-TEST: Import file 'combinations.csv'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ee04be9-5545-4d39-b827-20f3483177c8", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'combinations.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' \"after all\" hook in \"PRE-TEST: Import file 'combinations.csv'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "98ef8c42-53b1-40f9-9c62-3a9b9e0d387a", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' should login in BO", + "timedOut": false, + "duration": 1820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "759778ad-f4d1-4577-9b2e-6e88dc8fdfc1", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_2_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84c7a53f-fba4-4c9a-9a6b-d17305722054", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'combinations.csv' file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' should import 'combinations.csv' file", + "timedOut": false, + "duration": 4055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_2_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69a5c306-cda4-4c32-9dc5-594355d9f993", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' should go to next import file step", + "timedOut": false, + "duration": 344, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_2_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b5da32e-b0d6-4ebb-8d2c-3e0425c89dba", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' should start import file", + "timedOut": false, + "duration": 261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_2_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "159d8cf1-edfa-4ff4-85a2-9209d8bfd6c1", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' should check that the import is completed", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_2_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "196298c7-a806-4f4f-9b73-40097feb4f34", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities PRE-TEST: Import file 'combinations.csv' should close import progress modal", + "timedOut": false, + "duration": 1197, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_preTest_2_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5846f971-bfe6-4df9-8e8b-d3e5d752f8dc", + "parentUUID": "f845a943-f03f-4190-a704-1a4978b72cc7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "759778ad-f4d1-4577-9b2e-6e88dc8fdfc1", + "84c7a53f-fba4-4c9a-9a6b-d17305722054", + "69a5c306-cda4-4c32-9dc5-594355d9f993", + "1b5da32e-b0d6-4ebb-8d2c-3e0425c89dba", + "159d8cf1-edfa-4ff4-85a2-9209d8bfd6c1", + "196298c7-a806-4f4f-9b73-40097feb4f34", + "5846f971-bfe6-4df9-8e8b-d3e5d752f8dc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13390, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "title": "Sort List of products with combinations but without available quantities in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should login in BO", + "timedOut": false, + "duration": 1822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be302560-31d4-4161-88d1-54861a62d446", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'catalog > monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should go to 'catalog > monitoring' page", + "timedOut": false, + "duration": 3941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fde9b250-78f7-4459-b7e9-14eb94566a44", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the number of imported products is greater than 10", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should check that the number of imported products is greater than 10", + "timedOut": false, + "duration": 424, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsIngrid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61e3e83c-4b6f-4c60-996c-6487b936b579", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should sort by 'id_product' 'desc' and check result", + "timedOut": false, + "duration": 4011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a278b8a9-0b0f-406c-a555-46b321092000", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 3981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c70512a-cbe1-438a-950a-8bf588dcff69", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 3086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a29b6c0-a692-49d6-ad30-e3a9fbe8bb92", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98d6ca16-8f7f-4a26-b69e-9162b5ad7eb7", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ac881c0-84a8-4785-b940-287e49e6d357", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 5332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_sortByEnabledAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe001ca1-09ca-4ae2-8257-fea3a0174c23", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 5387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_sortByEnabledDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31acf462-7657-4781-ab9d-556969d974a1", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Sort List of products with combinations but without available quantities in monitoring page should sort by 'id_product' 'asc' and check result", + "timedOut": false, + "duration": 3088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b988db1-85e6-4a46-b4fc-ea0bdc7060cb", + "parentUUID": "3f68bf13-d79e-4d87-a5de-32e37173278d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "be302560-31d4-4161-88d1-54861a62d446", + "fde9b250-78f7-4459-b7e9-14eb94566a44", + "61e3e83c-4b6f-4c60-996c-6487b936b579", + "a278b8a9-0b0f-406c-a555-46b321092000", + "8c70512a-cbe1-438a-950a-8bf588dcff69", + "8a29b6c0-a692-49d6-ad30-e3a9fbe8bb92", + "98d6ca16-8f7f-4a26-b69e-9162b5ad7eb7", + "0ac881c0-84a8-4785-b940-287e49e6d357", + "fe001ca1-09ca-4ae2-8257-fea3a0174c23", + "31acf462-7657-4781-ab9d-556969d974a1", + "8b988db1-85e6-4a46-b4fc-ea0bdc7060cb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 38120, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a968e8ec-335d-4c5d-9d99-4ffc59e44a36", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84cd2e4c-d228-4f72-a4d6-5b6b2f2e6308", + "parentUUID": "a968e8ec-335d-4c5d-9d99-4ffc59e44a36", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Pagination next and previous should click on next", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f43d0773-37c4-4df9-8fc1-f70219e669d9", + "parentUUID": "a968e8ec-335d-4c5d-9d99-4ffc59e44a36", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Pagination next and previous should click on previous", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d249d417-3c34-4bb5-a409-36d6791c8dfb", + "parentUUID": "a968e8ec-335d-4c5d-9d99-4ffc59e44a36", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90c0c50d-2d92-4c79-ad73-20879436ec61", + "parentUUID": "a968e8ec-335d-4c5d-9d99-4ffc59e44a36", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "84cd2e4c-d228-4f72-a4d6-5b6b2f2e6308", + "f43d0773-37c4-4df9-8fc1-f70219e669d9", + "d249d417-3c34-4bb5-a409-36d6791c8dfb", + "90c0c50d-2d92-4c79-ad73-20879436ec61" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3564, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d3c5f5d3-497c-4e87-b637-df27f8eddcd4", + "title": "POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/02_withCombinationsWithoutQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table \"before all\" hook in \"POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41e6a1bf-b64e-4a71-9356-cc9ce34d18ce", + "parentUUID": "d3c5f5d3-497c-4e87-b637-df27f8eddcd4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table \"after all\" hook in \"POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1c603785-0c64-4c19-8f07-778dcf51823d", + "parentUUID": "d3c5f5d3-497c-4e87-b637-df27f8eddcd4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table should login in BO", + "timedOut": false, + "duration": 1856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d56e91e-3992-4dca-ad23-2103a57b930a", + "parentUUID": "d3c5f5d3-497c-4e87-b637-df27f8eddcd4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 3990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_postTest_1_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9150a584-b18d-45e6-b2ee-f2d022b300fd", + "parentUUID": "d3c5f5d3-497c-4e87-b637-df27f8eddcd4", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table should bulk delete elements on table", + "timedOut": false, + "duration": 1306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_postTest_1_bulkDeleteElements\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteElements', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.bulkDeleteElementsInTable(page, tableID)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(monitoring_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84a0d054-1a14-47c7-8df0-ef1f6096e96d", + "parentUUID": "d3c5f5d3-497c-4e87-b637-df27f8eddcd4", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products with combinations but without available quantities POST-TEST: Bulk delete products from 'no_qty_product_with_combination' table should check number of elements on table", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withCombinationsWithoutQuantities_postTest_1_reset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, tableID)];\n case 2:\n numberOfElementsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfElementsAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30bed7f5-a053-418b-bd4a-11242c868fe7", + "parentUUID": "d3c5f5d3-497c-4e87-b637-df27f8eddcd4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5d56e91e-3992-4dca-ad23-2103a57b930a", + "9150a584-b18d-45e6-b2ee-f2d022b300fd", + "84a0d054-1a14-47c7-8df0-ef1f6096e96d", + "30bed7f5-a053-418b-bd4a-11242c868fe7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9160, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eefea20c-fb42-4ee5-95dc-49ea60064ca7", + "title": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities \"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all products data\n return [4 /*yield*/, files_1.default.createCSVFile('.', productsFile, productsWithoutQuantities_1.default)];\n case 3:\n // Create csv file with all products data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48896c78-4202-4431-ae53-5d7ffcd0476b", + "parentUUID": "eefea20c-fb42-4ee5-95dc-49ea60064ca7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities \"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete products file\n return [4 /*yield*/, files_1.default.deleteFile(productsFile)];\n case 2:\n // Delete products file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0533f6cd-c4fe-46fd-a559-f9e868c2945b", + "parentUUID": "eefea20c-fb42-4ee5-95dc-49ea60064ca7", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d1c413d9-246c-4fca-b122-8e69108c8917", + "title": "PRE-TEST: Import file 'products.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' \"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "426baef2-221b-49ce-8289-ba0b1b066363", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' \"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a8dd3ce1-e347-478f-a7c9-128986bc9e06", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' should login in BO", + "timedOut": false, + "duration": 1884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ce8c23f-4bbc-4adb-99cf-db8d723c2303", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb807110-58d5-448b-9fbf-3b944943a833", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'products.csv' file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' should import 'products.csv' file", + "timedOut": false, + "duration": 2089, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd993e5e-808d-4482-9d07-a23f5c2b06d7", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' should go to next import file step", + "timedOut": false, + "duration": 390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2617ac6-48d4-40ad-8762-877134e029ad", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' should start import file", + "timedOut": false, + "duration": 292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2064f5ee-ccbd-4dee-8ce4-7566ba2d0b48", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' should check that the import is completed", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f48b62d-dc8f-409c-b3cc-48889861131e", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities PRE-TEST: Import file 'products.csv' should close import progress modal", + "timedOut": false, + "duration": 1221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dd70960-81c3-4bf2-8867-9c2beb73c0b8", + "parentUUID": "d1c413d9-246c-4fca-b122-8e69108c8917", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7ce8c23f-4bbc-4adb-99cf-db8d723c2303", + "cb807110-58d5-448b-9fbf-3b944943a833", + "dd993e5e-808d-4482-9d07-a23f5c2b06d7", + "b2617ac6-48d4-40ad-8762-877134e029ad", + "2064f5ee-ccbd-4dee-8ce4-7566ba2d0b48", + "0f48b62d-dc8f-409c-b3cc-48889861131e", + "1dd70960-81c3-4bf2-8867-9c2beb73c0b8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11619, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "title": "Sort List of products without combinations and without available quantities", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should login in BO", + "timedOut": false, + "duration": 1809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "524752bc-298f-45ff-b14b-d3ce83f4e336", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'catalog > monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should go to 'catalog > monitoring' page", + "timedOut": false, + "duration": 3954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "907ee93f-5768-40ce-97ed-6dc4dd9e6cae", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the number of imported products is greater than 10", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should check that the number of imported products is greater than 10", + "timedOut": false, + "duration": 424, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsIngrid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d41389f-288a-4eda-acae-f876ff482d5f", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should sort by 'id_product' 'desc' and check result", + "timedOut": false, + "duration": 3970, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb7b7fb6-3cc2-45b6-bb39-f05a8a1129a1", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 3987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2fc349b-55c4-409a-a6c4-4691ef13641b", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 3058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d28cc88-f41c-4c41-8855-6c31939788ed", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dae5fbae-d374-4b0a-bd14-5b3a5cc0844c", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22b7da1c-abff-44e7-ac01-ea26fe0260c8", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 5319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_sortByEnabledAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0dc755c-a4a0-4fec-b94b-13842696c222", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 5375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_sortByEnabledDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39a14bbd-6b3c-41b7-b538-1926fc0ac7d9", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Sort List of products without combinations and without available quantities should sort by 'id_product' 'asc' and check result", + "timedOut": false, + "duration": 3071, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa962f2b-ff39-4b79-bf63-a8fa85527362", + "parentUUID": "6bf684f4-be92-40f5-8cff-d935da0f73c4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "524752bc-298f-45ff-b14b-d3ce83f4e336", + "907ee93f-5768-40ce-97ed-6dc4dd9e6cae", + "7d41389f-288a-4eda-acae-f876ff482d5f", + "fb7b7fb6-3cc2-45b6-bb39-f05a8a1129a1", + "a2fc349b-55c4-409a-a6c4-4691ef13641b", + "3d28cc88-f41c-4c41-8855-6c31939788ed", + "dae5fbae-d374-4b0a-bd14-5b3a5cc0844c", + "22b7da1c-abff-44e7-ac01-ea26fe0260c8", + "a0dc755c-a4a0-4fec-b94b-13842696c222", + "39a14bbd-6b3c-41b7-b538-1926fc0ac7d9", + "fa962f2b-ff39-4b79-bf63-a8fa85527362" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 37989, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b45116f4-3136-4576-817c-7766f7b2e73a", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "569e619a-1062-4a39-9e0a-0164be7b4fe8", + "parentUUID": "b45116f4-3136-4576-817c-7766f7b2e73a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Pagination next and previous should click on next", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0782d08-adfc-4c7a-892e-dfe66013d45b", + "parentUUID": "b45116f4-3136-4576-817c-7766f7b2e73a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Pagination next and previous should click on previous", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "092279d3-9b36-4180-b392-94a65ebdf8a0", + "parentUUID": "b45116f4-3136-4576-817c-7766f7b2e73a", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b2920aa-7747-46b2-94dd-a201ac5b8835", + "parentUUID": "b45116f4-3136-4576-817c-7766f7b2e73a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "569e619a-1062-4a39-9e0a-0164be7b4fe8", + "f0782d08-adfc-4c7a-892e-dfe66013d45b", + "092279d3-9b36-4180-b392-94a65ebdf8a0", + "2b2920aa-7747-46b2-94dd-a201ac5b8835" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3428, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2935b9ff-0ecf-4876-8a9f-90ac3332978f", + "title": "POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/03_withoutCombinationsWithoutQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table \"before all\" hook in \"POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67ffcbfb-b5f5-4523-a5b3-5c4e0523f895", + "parentUUID": "2935b9ff-0ecf-4876-8a9f-90ac3332978f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table \"after all\" hook in \"POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6ca6e248-740a-4bbc-95af-5953aaeb1771", + "parentUUID": "2935b9ff-0ecf-4876-8a9f-90ac3332978f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table should login in BO", + "timedOut": false, + "duration": 1822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b59deb7-bd8a-435f-8772-a2269ce9a326", + "parentUUID": "2935b9ff-0ecf-4876-8a9f-90ac3332978f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 3985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_postTest_1_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bb190ae-fa1e-4905-834b-10fcc0e6a8b1", + "parentUUID": "2935b9ff-0ecf-4876-8a9f-90ac3332978f", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table should bulk delete elements on table", + "timedOut": false, + "duration": 1157, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_postTest_1_bulkDeleteElements\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteElements', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.bulkDeleteElementsInTable(page, tableID)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(monitoring_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f2e5d09-2aa4-45de-b308-34395322cba9", + "parentUUID": "2935b9ff-0ecf-4876-8a9f-90ac3332978f", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without combinations and without available quantities POST-TEST: Bulk delete products from 'no_qty_product_without_combination' table should check number of elements on table", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_withoutCombinationsWithoutQuantities_postTest_1_reset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, tableID)];\n case 2:\n numberOfElementsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfElementsAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e9f0d3e-72d0-4af9-b13d-57119275af6a", + "parentUUID": "2935b9ff-0ecf-4876-8a9f-90ac3332978f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0b59deb7-bd8a-435f-8772-a2269ce9a326", + "8bb190ae-fa1e-4905-834b-10fcc0e6a8b1", + "7f2e5d09-2aa4-45de-b308-34395322cba9", + "3e9f0d3e-72d0-4af9-b13d-57119275af6a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8972, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "28680d4f-6ce2-4470-a097-eafbb6c2eea8", + "title": "BO - Catalog - Monitoring : Sort and pagination list of disabled products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of disabled products\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products \"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of disabled products\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all products data\n return [4 /*yield*/, files_1.default.createCSVFile('.', productsFile, disabledProducts_1.default)];\n case 3:\n // Create csv file with all products data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1aac7e29-494c-4efa-9b86-758d9fb84ff1", + "parentUUID": "28680d4f-6ce2-4470-a097-eafbb6c2eea8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of disabled products\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products \"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of disabled products\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete products file\n return [4 /*yield*/, files_1.default.deleteFile(productsFile)];\n case 2:\n // Delete products file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4fe2cf7c-568c-4e6e-9c55-e2e2325d83a3", + "parentUUID": "28680d4f-6ce2-4470-a097-eafbb6c2eea8", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "title": "PRE-TEST: Import file 'products.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' \"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff60d2a9-6d27-4536-acf7-86685b33fdc1", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' \"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5d06b51c-e55c-4378-b658-82b9a3eeaa65", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' should login in BO", + "timedOut": false, + "duration": 1859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31b2b22f-72cd-4b26-93bf-0cc660c8ad53", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37751ab8-051a-42ec-bc2a-fbbe29b3ab00", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'products.csv' file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' should import 'products.csv' file", + "timedOut": false, + "duration": 2097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f65d0e8f-43c6-454c-8e1c-f586a4f26bac", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' should go to next import file step", + "timedOut": false, + "duration": 411, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fc9c59a-41f3-46ba-b3e2-86aa98627703", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' should start import file", + "timedOut": false, + "duration": 294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57d47f54-89d9-4895-a07a-bd49774d5796", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' should check that the import is completed", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2516a7ae-e88c-4069-a8b7-580a6f19ce95", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products PRE-TEST: Import file 'products.csv' should close import progress modal", + "timedOut": false, + "duration": 1214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41129902-f177-47b3-ac66-48dfe5160f8a", + "parentUUID": "83b8161c-95e7-47db-abd1-0c95f3b97878", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "31b2b22f-72cd-4b26-93bf-0cc660c8ad53", + "37751ab8-051a-42ec-bc2a-fbbe29b3ab00", + "f65d0e8f-43c6-454c-8e1c-f586a4f26bac", + "2fc9c59a-41f3-46ba-b3e2-86aa98627703", + "57d47f54-89d9-4895-a07a-bd49774d5796", + "2516a7ae-e88c-4069-a8b7-580a6f19ce95", + "41129902-f177-47b3-ac66-48dfe5160f8a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11695, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "71035594-f2d6-450d-bab3-4d349661a2f7", + "title": "Sort List of disabled products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should login in BO", + "timedOut": false, + "duration": 1815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e7105c2-e321-40c6-b1b3-ea29b08012d7", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'catalog > monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should go to 'catalog > monitoring' page", + "timedOut": false, + "duration": 3949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5af39322-79df-423a-ad8e-3f05237b0a9a", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the number of imported products is greater than 10", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should check that the number of imported products is greater than 10", + "timedOut": false, + "duration": 423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsIngrid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "491c499f-a6a2-4df1-b2ce-0a462f3cfeb3", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should sort by 'id_product' 'desc' and check result", + "timedOut": false, + "duration": 4007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1764231-7296-47f8-8539-73ca1e2bd220", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 3965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25f38855-1804-467f-88fa-8b414b6e9e79", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 3059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61571b18-e3c6-487e-987a-70da30128b14", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88914213-95b8-44a8-991a-5c19fc31a4da", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ea290bb-c2a8-4d64-a6de-ddf46e6dc8f6", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Sort List of disabled products should sort by 'id_product' 'asc' and check result", + "timedOut": false, + "duration": 3064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73933298-403c-4c0b-83d8-8a4753666ac7", + "parentUUID": "71035594-f2d6-450d-bab3-4d349661a2f7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6e7105c2-e321-40c6-b1b3-ea29b08012d7", + "5af39322-79df-423a-ad8e-3f05237b0a9a", + "491c499f-a6a2-4df1-b2ce-0a462f3cfeb3", + "d1764231-7296-47f8-8539-73ca1e2bd220", + "25f38855-1804-467f-88fa-8b414b6e9e79", + "61571b18-e3c6-487e-987a-70da30128b14", + "88914213-95b8-44a8-991a-5c19fc31a4da", + "2ea290bb-c2a8-4d64-a6de-ddf46e6dc8f6", + "73933298-403c-4c0b-83d8-8a4753666ac7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27287, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "88014464-781a-451f-883a-3510083bb1aa", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5def36bc-29c8-4d13-b53c-bf368b9da522", + "parentUUID": "88014464-781a-451f-883a-3510083bb1aa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Pagination next and previous should click on next", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3b0d4b0-93f5-4e82-b858-215ad5bfb456", + "parentUUID": "88014464-781a-451f-883a-3510083bb1aa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Pagination next and previous should click on previous", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aaf678b4-2ae2-4d34-9598-f48957a8e135", + "parentUUID": "88014464-781a-451f-883a-3510083bb1aa", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f7b8fe1-1849-4cf8-8995-f21a4726b800", + "parentUUID": "88014464-781a-451f-883a-3510083bb1aa", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5def36bc-29c8-4d13-b53c-bf368b9da522", + "f3b0d4b0-93f5-4e82-b858-215ad5bfb456", + "aaf678b4-2ae2-4d34-9598-f48957a8e135", + "7f7b8fe1-1849-4cf8-8995-f21a4726b800" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3405, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d6dabaf0-cb2c-4c47-95cc-639d607f06a7", + "title": "POST-TEST: Bulk delete products from 'disabled_product' table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/04_disabledProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete products from 'disabled_product' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products POST-TEST: Bulk delete products from 'disabled_product' table \"before all\" hook in \"POST-TEST: Bulk delete products from 'disabled_product' table\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "031f9c3f-0b4d-49eb-a347-1f4e5507fc8a", + "parentUUID": "d6dabaf0-cb2c-4c47-95cc-639d607f06a7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete products from 'disabled_product' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products POST-TEST: Bulk delete products from 'disabled_product' table \"after all\" hook in \"POST-TEST: Bulk delete products from 'disabled_product' table\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c0bde189-1b80-4313-9cac-6120158c0cb6", + "parentUUID": "d6dabaf0-cb2c-4c47-95cc-639d607f06a7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products POST-TEST: Bulk delete products from 'disabled_product' table should login in BO", + "timedOut": false, + "duration": 1814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aafcb0b9-7e2e-4256-a3d4-45c5e6217d1f", + "parentUUID": "d6dabaf0-cb2c-4c47-95cc-639d607f06a7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products POST-TEST: Bulk delete products from 'disabled_product' table should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 3975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_postTest_1_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f60da3c8-de27-43af-887c-783c6c268dba", + "parentUUID": "d6dabaf0-cb2c-4c47-95cc-639d607f06a7", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products POST-TEST: Bulk delete products from 'disabled_product' table should bulk delete elements on table", + "timedOut": false, + "duration": 1181, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_postTest_1_bulkDeleteElements\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteElements', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.bulkDeleteElementsInTable(page, tableID)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(monitoring_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b3a9f95-f5e4-4b47-bd70-259dc9968758", + "parentUUID": "d6dabaf0-cb2c-4c47-95cc-639d607f06a7", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of disabled products POST-TEST: Bulk delete products from 'disabled_product' table should check number of elements on table", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_disabledProducts_postTest_1_reset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, tableID)];\n case 2:\n numberOfElementsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfElementsAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf6e059c-b305-42b0-a4da-1447aff899c1", + "parentUUID": "d6dabaf0-cb2c-4c47-95cc-639d607f06a7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aafcb0b9-7e2e-4256-a3d4-45c5e6217d1f", + "f60da3c8-de27-43af-887c-783c6c268dba", + "6b3a9f95-f5e4-4b47-bd70-259dc9968758", + "cf6e059c-b305-42b0-a4da-1447aff899c1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8978, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8e5b45e2-e3c8-4390-ac4e-409f660e7ef4", + "title": "BO - Catalog - Monitoring : Sort and pagination list of products without image", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without image\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image \"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without image\"", + "timedOut": false, + "duration": 61, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all products data\n return [4 /*yield*/, files_1.default.createCSVFile('.', productsFile, productsWithoutQuantities_1.default)];\n case 3:\n // Create csv file with all products data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1daea841-1dd7-44f5-96fc-70799a2325d5", + "parentUUID": "8e5b45e2-e3c8-4390-ac4e-409f660e7ef4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without image\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image \"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without image\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete products file\n return [4 /*yield*/, files_1.default.deleteFile(productsFile)];\n case 2:\n // Delete products file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "01870227-3582-4849-98cb-5ee606d7f294", + "parentUUID": "8e5b45e2-e3c8-4390-ac4e-409f660e7ef4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "title": "PRE-TEST: Import file 'products.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' \"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ecb8f56-037b-44c7-ade6-3a602ac71aa7", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' \"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1244ee06-a02b-4da1-8938-cc48c63a6303", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' should login in BO", + "timedOut": false, + "duration": 1840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6597f845-57a6-4f26-b4e6-f5326924968e", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ae640d9-aa38-4d5f-97f2-ff569fb6cc56", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'products.csv' file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' should import 'products.csv' file", + "timedOut": false, + "duration": 2090, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7f486d2-c399-4db7-91dd-228398f239fa", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' should go to next import file step", + "timedOut": false, + "duration": 395, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60e7f512-9ddd-4374-ac58-7010628c9874", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' should start import file", + "timedOut": false, + "duration": 274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "380f6e74-d77f-4a28-8296-c2c8bb2f059e", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' should check that the import is completed", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cea4486-6dd0-4aa1-b77d-47b0f99e1619", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image PRE-TEST: Import file 'products.csv' should close import progress modal", + "timedOut": false, + "duration": 1207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0cc89c4-ba5c-43ab-8ce5-16962030cfc2", + "parentUUID": "5b1c55fc-20ef-4018-86d4-97de9b2d79af", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6597f845-57a6-4f26-b4e6-f5326924968e", + "1ae640d9-aa38-4d5f-97f2-ff569fb6cc56", + "a7f486d2-c399-4db7-91dd-228398f239fa", + "60e7f512-9ddd-4374-ac58-7010628c9874", + "380f6e74-d77f-4a28-8296-c2c8bb2f059e", + "6cea4486-6dd0-4aa1-b77d-47b0f99e1619", + "f0cc89c4-ba5c-43ab-8ce5-16962030cfc2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11612, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "title": "Sort List of products without image in monitoring page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should login in BO", + "timedOut": false, + "duration": 1820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b7bf62d-936e-480c-8770-950778995fb8", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'catalog > monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should go to 'catalog > monitoring' page", + "timedOut": false, + "duration": 3982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6eee82d3-71c9-4b68-8d8e-45e1184ae736", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the number of imported products is greater than 10", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should check that the number of imported products is greater than 10", + "timedOut": false, + "duration": 436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsIngrid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b146c19c-64ec-408c-b3eb-8eb03bb544c4", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should sort by 'id_product' 'desc' and check result", + "timedOut": false, + "duration": 4053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa61b96c-932f-444c-9fce-328ed01e5ddb", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 4022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a748f609-27ac-49d9-b269-e10aa354ecfb", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 3090, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1221e83-4940-4cf7-a5f0-6caff3f0e085", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 4064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b09ef6a4-b35f-4d14-a7fd-9154ab026b22", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3071, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd4cd2fc-48fc-4571-adcf-cb307a485ebb", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 5332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_sortByEnabledAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cfad7e9-db05-428a-ae29-55b849fd046d", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 5360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_sortByEnabledDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9450bb13-476a-432f-b9ad-8777345e9562", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Sort List of products without image in monitoring page should sort by 'id_product' 'asc' and check result", + "timedOut": false, + "duration": 3095, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "751e16ed-09c4-48e2-ae88-6321c04073ce", + "parentUUID": "2dbf9bfa-b808-4019-a89c-f4c8bf3a4fd8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b7bf62d-936e-480c-8770-950778995fb8", + "6eee82d3-71c9-4b68-8d8e-45e1184ae736", + "b146c19c-64ec-408c-b3eb-8eb03bb544c4", + "aa61b96c-932f-444c-9fce-328ed01e5ddb", + "a748f609-27ac-49d9-b269-e10aa354ecfb", + "c1221e83-4940-4cf7-a5f0-6caff3f0e085", + "b09ef6a4-b35f-4d14-a7fd-9154ab026b22", + "cd4cd2fc-48fc-4571-adcf-cb307a485ebb", + "6cfad7e9-db05-428a-ae29-55b849fd046d", + "9450bb13-476a-432f-b9ad-8777345e9562", + "751e16ed-09c4-48e2-ae88-6321c04073ce" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 38325, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "81094faa-f015-405f-b3c1-7bf0703b8e41", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7d1dc40-a336-4849-b869-d09e3120b9b7", + "parentUUID": "81094faa-f015-405f-b3c1-7bf0703b8e41", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Pagination next and previous should click on next", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ff869fd-6615-4ed9-9322-21ae4dc6ac86", + "parentUUID": "81094faa-f015-405f-b3c1-7bf0703b8e41", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Pagination next and previous should click on previous", + "timedOut": false, + "duration": 903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61af103c-f644-485a-9c3d-b72bee3aa8c1", + "parentUUID": "81094faa-f015-405f-b3c1-7bf0703b8e41", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e2a80c6-8edc-43c2-8593-5664ec44bc43", + "parentUUID": "81094faa-f015-405f-b3c1-7bf0703b8e41", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b7d1dc40-a336-4849-b869-d09e3120b9b7", + "1ff869fd-6615-4ed9-9322-21ae4dc6ac86", + "61af103c-f644-485a-9c3d-b72bee3aa8c1", + "2e2a80c6-8edc-43c2-8593-5664ec44bc43" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3555, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ace803b-d841-44c3-a462-6f6d6b7b19e8", + "title": "POST-TEST: Bulk delete products from 'product_without_image' table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/05_productsWithoutImage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete products from 'product_without_image' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image POST-TEST: Bulk delete products from 'product_without_image' table \"before all\" hook in \"POST-TEST: Bulk delete products from 'product_without_image' table\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b79b76e-1ec3-4a84-8a0c-82ac90dacc52", + "parentUUID": "1ace803b-d841-44c3-a462-6f6d6b7b19e8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete products from 'product_without_image' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image POST-TEST: Bulk delete products from 'product_without_image' table \"after all\" hook in \"POST-TEST: Bulk delete products from 'product_without_image' table\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ba28efa2-3279-45c3-bd8b-708a5d0684c0", + "parentUUID": "1ace803b-d841-44c3-a462-6f6d6b7b19e8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image POST-TEST: Bulk delete products from 'product_without_image' table should login in BO", + "timedOut": false, + "duration": 1802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7896abb-606a-444d-8162-d308c3ed9c32", + "parentUUID": "1ace803b-d841-44c3-a462-6f6d6b7b19e8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image POST-TEST: Bulk delete products from 'product_without_image' table should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 4031, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_postTest_1_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd5c04db-8450-4fa8-b7cd-19fbfad561a5", + "parentUUID": "1ace803b-d841-44c3-a462-6f6d6b7b19e8", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image POST-TEST: Bulk delete products from 'product_without_image' table should bulk delete elements on table", + "timedOut": false, + "duration": 1157, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_postTest_1_bulkDeleteElements\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteElements', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.bulkDeleteElementsInTable(page, tableID)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(monitoring_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "476b391b-819a-42fa-9ae6-69b6b315f62e", + "parentUUID": "1ace803b-d841-44c3-a462-6f6d6b7b19e8", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without image POST-TEST: Bulk delete products from 'product_without_image' table should check number of elements on table", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutImage_postTest_1_reset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, tableID)];\n case 2:\n numberOfElementsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfElementsAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25568a4b-614b-4ae2-a282-d4c4b1f87f67", + "parentUUID": "1ace803b-d841-44c3-a462-6f6d6b7b19e8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a7896abb-606a-444d-8162-d308c3ed9c32", + "fd5c04db-8450-4fa8-b7cd-19fbfad561a5", + "476b391b-819a-42fa-9ae6-69b6b315f62e", + "25568a4b-614b-4ae2-a282-d4c4b1f87f67" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8998, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1dca4d57-ff4b-4713-8b52-95c7ee277484", + "title": "BO - Catalog - Monitoring : Sort and pagination list of products without description", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without description\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description \"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without description\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all products data\n return [4 /*yield*/, files_1.default.createCSVFile('.', productsFile, disabledProducts_1.default)];\n case 3:\n // Create csv file with all products data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e35ebf6b-bbec-4f27-8b2e-c247ee540b53", + "parentUUID": "1dca4d57-ff4b-4713-8b52-95c7ee277484", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without description\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description \"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without description\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete products file\n return [4 /*yield*/, files_1.default.deleteFile(productsFile)];\n case 2:\n // Delete products file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7f6d0dd3-63fa-45b2-b7a4-59fe8dfc8a21", + "parentUUID": "1dca4d57-ff4b-4713-8b52-95c7ee277484", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "title": "PRE-TEST: Import file 'products.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' \"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfaf6be4-14a0-4137-a105-82546c82db36", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' \"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "535971b6-780f-4fa7-970d-d2fd381db5c0", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' should login in BO", + "timedOut": false, + "duration": 1829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75030381-52ae-4075-9e18-2f6b5d587938", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "640c9eab-106d-46f5-93ce-25768d4391bc", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'products.csv' file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' should import 'products.csv' file", + "timedOut": false, + "duration": 2098, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fae77eb-f097-4ce5-a14d-cf8f2a2694c2", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' should go to next import file step", + "timedOut": false, + "duration": 401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9e6e445-17c2-4453-84f9-dab60ee08496", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' should start import file", + "timedOut": false, + "duration": 279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4a319a5-3a0a-4725-ad49-ca829bd35486", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' should check that the import is completed", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ec48259-40c7-4163-83c3-f9c5237eca01", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description PRE-TEST: Import file 'products.csv' should close import progress modal", + "timedOut": false, + "duration": 1204, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c17f33e-ebc3-46a8-af89-36ecd318d27d", + "parentUUID": "c0f5f155-7758-412c-aa8d-0d1d3a8921af", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75030381-52ae-4075-9e18-2f6b5d587938", + "640c9eab-106d-46f5-93ce-25768d4391bc", + "5fae77eb-f097-4ce5-a14d-cf8f2a2694c2", + "b9e6e445-17c2-4453-84f9-dab60ee08496", + "f4a319a5-3a0a-4725-ad49-ca829bd35486", + "0ec48259-40c7-4163-83c3-f9c5237eca01", + "1c17f33e-ebc3-46a8-af89-36ecd318d27d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11626, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8dffa6f8-6543-4813-be56-03858c69f010", + "title": "Sort List of products without description", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should login in BO", + "timedOut": false, + "duration": 1825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d60ca61-c24b-49b4-a97e-6f5a95390cf1", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'catalog > monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should go to 'catalog > monitoring' page", + "timedOut": false, + "duration": 4036, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "689182c2-0c74-4364-a9dd-6e6cfe43fd5f", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the number of imported products is greater than 10", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should check that the number of imported products is greater than 10", + "timedOut": false, + "duration": 456, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsIngrid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3b75696-40ee-4a02-8ead-3f06b02f5014", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should sort by 'id_product' 'desc' and check result", + "timedOut": false, + "duration": 4086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be1f4dbe-b6de-438f-a3a1-1a98dc5b5534", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 4078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcb58086-d102-4318-81ac-be3ec98498ba", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 3106, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "251c7a31-200a-4253-813c-56e94968dab2", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 4088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05340da8-3a34-4128-9ccb-721ecf046323", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3094, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50eb3174-857c-471c-88ed-6be9dee763f2", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Sort List of products without description should sort by 'id_product' 'asc' and check result", + "timedOut": false, + "duration": 3147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7b64fd8-acd7-46b7-bb32-439a6b1c4123", + "parentUUID": "8dffa6f8-6543-4813-be56-03858c69f010", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0d60ca61-c24b-49b4-a97e-6f5a95390cf1", + "689182c2-0c74-4364-a9dd-6e6cfe43fd5f", + "a3b75696-40ee-4a02-8ead-3f06b02f5014", + "be1f4dbe-b6de-438f-a3a1-1a98dc5b5534", + "bcb58086-d102-4318-81ac-be3ec98498ba", + "251c7a31-200a-4253-813c-56e94968dab2", + "05340da8-3a34-4128-9ccb-721ecf046323", + "50eb3174-857c-471c-88ed-6be9dee763f2", + "d7b64fd8-acd7-46b7-bb32-439a6b1c4123" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27916, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8de8dfe1-28e7-488e-a544-47ae87f333f4", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aabd8a88-4a24-4d1d-b1e7-a8836ae9cd04", + "parentUUID": "8de8dfe1-28e7-488e-a544-47ae87f333f4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Pagination next and previous should click on next", + "timedOut": false, + "duration": 901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b90d7cd-301c-4fd0-b183-eb12cb1586df", + "parentUUID": "8de8dfe1-28e7-488e-a544-47ae87f333f4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Pagination next and previous should click on previous", + "timedOut": false, + "duration": 906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b2c3542-6e93-464d-b54a-231525b12e62", + "parentUUID": "8de8dfe1-28e7-488e-a544-47ae87f333f4", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18edea64-6d09-4cd2-966e-a317ace90af2", + "parentUUID": "8de8dfe1-28e7-488e-a544-47ae87f333f4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aabd8a88-4a24-4d1d-b1e7-a8836ae9cd04", + "8b90d7cd-301c-4fd0-b183-eb12cb1586df", + "9b2c3542-6e93-464d-b54a-231525b12e62", + "18edea64-6d09-4cd2-966e-a317ace90af2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3572, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31c8ce6d-93b7-442f-aa68-367311e9951d", + "title": "POST-TEST: Bulk delete products from 'product_without_description' table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/06_productsWithoutDescription.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete products from 'product_without_description' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description POST-TEST: Bulk delete products from 'product_without_description' table \"before all\" hook in \"POST-TEST: Bulk delete products from 'product_without_description' table\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bb08341-7be4-40e7-9177-47dc2cff8adf", + "parentUUID": "31c8ce6d-93b7-442f-aa68-367311e9951d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete products from 'product_without_description' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description POST-TEST: Bulk delete products from 'product_without_description' table \"after all\" hook in \"POST-TEST: Bulk delete products from 'product_without_description' table\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cead5e29-9c2a-4b01-a270-fbf9fed48282", + "parentUUID": "31c8ce6d-93b7-442f-aa68-367311e9951d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description POST-TEST: Bulk delete products from 'product_without_description' table should login in BO", + "timedOut": false, + "duration": 1883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b2eea77-ad52-4c81-8b5d-a5868edc45e7", + "parentUUID": "31c8ce6d-93b7-442f-aa68-367311e9951d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description POST-TEST: Bulk delete products from 'product_without_description' table should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 4049, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_postTest_1_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f8d87f7-73b0-4fa0-8b03-cd29089cf87d", + "parentUUID": "31c8ce6d-93b7-442f-aa68-367311e9951d", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description POST-TEST: Bulk delete products from 'product_without_description' table should bulk delete elements on table", + "timedOut": false, + "duration": 1223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_postTest_1_bulkDeleteElements\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteElements', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.bulkDeleteElementsInTable(page, tableID)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(monitoring_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c6d93f4-e14a-4536-bbd3-7f4f355f2427", + "parentUUID": "31c8ce6d-93b7-442f-aa68-367311e9951d", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without description POST-TEST: Bulk delete products from 'product_without_description' table should check number of elements on table", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutDescription_postTest_1_reset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, tableID)];\n case 2:\n numberOfElementsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfElementsAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f83932c8-b8c5-47cb-9a75-1a98a4befde9", + "parentUUID": "31c8ce6d-93b7-442f-aa68-367311e9951d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6b2eea77-ad52-4c81-8b5d-a5868edc45e7", + "5f8d87f7-73b0-4fa0-8b03-cd29089cf87d", + "5c6d93f4-e14a-4536-bbd3-7f4f355f2427", + "f83932c8-b8c5-47cb-9a75-1a98a4befde9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9163, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e9a4ef42-837d-43fa-be84-af9f06686cc3", + "title": "BO - Catalog - Monitoring : Sort and pagination list of products without price", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without price\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price \"before all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without price\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all products data\n return [4 /*yield*/, files_1.default.createCSVFile('.', productsFile, disabledProducts_1.default)];\n case 3:\n // Create csv file with all products data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a6e45e2-dd96-4532-b64b-3946570e5174", + "parentUUID": "e9a4ef42-837d-43fa-be84-af9f06686cc3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without price\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price \"after all\" hook in \"BO - Catalog - Monitoring : Sort and pagination list of products without price\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete products file\n return [4 /*yield*/, files_1.default.deleteFile(productsFile)];\n case 2:\n // Delete products file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bcf77362-c9f8-4d74-a460-8b295ed4dee8", + "parentUUID": "e9a4ef42-837d-43fa-be84-af9f06686cc3", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "title": "PRE-TEST: Import file 'products.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' \"before all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef4060e6-d7a6-4603-8310-cadb6b7d78c6", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' \"after all\" hook in \"PRE-TEST: Import file 'products.csv'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cb079207-1a1f-4b9f-9297-9a7947f2e0e6", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' should login in BO", + "timedOut": false, + "duration": 1836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9820ca27-0958-49c1-acb2-e93b4b894dc6", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6a0d740-1629-468d-9b34-56173644ccaf", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'products.csv' file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' should import 'products.csv' file", + "timedOut": false, + "duration": 2103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b7fe179-295d-4ccc-9530-7b2836ed229a", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' should go to next import file step", + "timedOut": false, + "duration": 404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c11b8a14-17b5-4852-a690-c23896930979", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' should start import file", + "timedOut": false, + "duration": 275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a325bbba-4dc5-49fa-a268-05f82229ed82", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' should check that the import is completed", + "timedOut": false, + "duration": 1040, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5aafd6da-ef4a-4d1d-bede-cca1c3c6d987", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price PRE-TEST: Import file 'products.csv' should close import progress modal", + "timedOut": false, + "duration": 1214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3989cd3f-72dc-432d-b20e-6b9a0a716adf", + "parentUUID": "fec7ea76-78d2-43db-9e8c-c2a5c8a246c5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9820ca27-0958-49c1-acb2-e93b4b894dc6", + "d6a0d740-1629-468d-9b34-56173644ccaf", + "4b7fe179-295d-4ccc-9530-7b2836ed229a", + "c11b8a14-17b5-4852-a690-c23896930979", + "a325bbba-4dc5-49fa-a268-05f82229ed82", + "5aafd6da-ef4a-4d1d-bede-cca1c3c6d987", + "3989cd3f-72dc-432d-b20e-6b9a0a716adf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11790, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "title": "Sort List of products without price", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should login in BO", + "timedOut": false, + "duration": 1810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "813f6921-7a98-4a43-a298-9668adaaaf24", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'catalog > monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should go to 'catalog > monitoring' page", + "timedOut": false, + "duration": 4084, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9aba287-79e7-4287-9310-988da8fd4544", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the number of imported products is greater than 10", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should check that the number of imported products is greater than 10", + "timedOut": false, + "duration": 506, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsIngrid;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfProductsIngrid = _a.sent();\n (0, chai_1.expect)(numberOfProductsIngrid).to.be.at.least(10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff5baed3-d0b3-43fa-8fd7-eaa2770a0598", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should sort by 'id_product' 'desc' and check result", + "timedOut": false, + "duration": 4149, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65e7d1fd-cd3e-4920-a79a-01146e730110", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 4070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa96fec5-2706-4c3d-8108-4001f6f55e0b", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 3108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ee18343-f494-4343-bba0-4bd22a0c7ee2", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 4104, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27f6ad16-4bc1-44b7-bef2-32b79d42c342", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3122, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "577854cf-01bd-4b97-ada5-f3e1025f7a5f", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_product' 'asc' and check result", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Sort List of products without price should sort by 'id_product' 'asc' and check result", + "timedOut": false, + "duration": 3154, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, monitoring_2.default.sortTable(page, tableName, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a473f6e-3de6-4001-aeb7-ad75c5c64b35", + "parentUUID": "37e390b7-6605-4493-b75c-9d7e0fd1691b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "813f6921-7a98-4a43-a298-9668adaaaf24", + "c9aba287-79e7-4287-9310-988da8fd4544", + "ff5baed3-d0b3-43fa-8fd7-eaa2770a0598", + "65e7d1fd-cd3e-4920-a79a-01146e730110", + "aa96fec5-2706-4c3d-8108-4001f6f55e0b", + "9ee18343-f494-4343-bba0-4bd22a0c7ee2", + "27f6ad16-4bc1-44b7-bef2-32b79d42c342", + "577854cf-01bd-4b97-ada5-f3e1025f7a5f", + "1a473f6e-3de6-4001-aeb7-ad75c5c64b35" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28107, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8a849a4d-cc08-4ac6-84e5-0af786544c6d", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b82f02b7-9235-4eb3-81cd-cf1035bce469", + "parentUUID": "8a849a4d-cc08-4ac6-84e5-0af786544c6d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Pagination next and previous should click on next", + "timedOut": false, + "duration": 971, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20c7226e-788d-493d-a5ea-3a6809a6f4db", + "parentUUID": "8a849a4d-cc08-4ac6-84e5-0af786544c6d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Pagination next and previous should click on previous", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73c318f6-50fd-47a2-a412-f9d23f4349e3", + "parentUUID": "8a849a4d-cc08-4ac6-84e5-0af786544c6d", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_2.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "540559d1-c966-4f35-b2c9-37531eb65ac5", + "parentUUID": "8a849a4d-cc08-4ac6-84e5-0af786544c6d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b82f02b7-9235-4eb3-81cd-cf1035bce469", + "20c7226e-788d-493d-a5ea-3a6809a6f4db", + "73c318f6-50fd-47a2-a412-f9d23f4349e3", + "540559d1-c966-4f35-b2c9-37531eb65ac5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3731, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bcf42301-7c42-43a0-865e-36867a2516e1", + "title": "POST-TEST: Bulk delete products from 'product_without_price' table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "file": "/campaigns/functional/BO/03_catalog/03_monitoring/sortPaginationAndBulkDelete/07_productsWithoutPrice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete products from 'product_without_price' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price POST-TEST: Bulk delete products from 'product_without_price' table \"before all\" hook in \"POST-TEST: Bulk delete products from 'product_without_price' table\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29662913-ff06-4882-b229-8c5b98ba49a0", + "parentUUID": "bcf42301-7c42-43a0-865e-36867a2516e1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete products from 'product_without_price' table\"", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price POST-TEST: Bulk delete products from 'product_without_price' table \"after all\" hook in \"POST-TEST: Bulk delete products from 'product_without_price' table\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "71014eec-90c0-4d94-b526-bf16aecb5636", + "parentUUID": "bcf42301-7c42-43a0-865e-36867a2516e1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price POST-TEST: Bulk delete products from 'product_without_price' table should login in BO", + "timedOut": false, + "duration": 1817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f279619-5aba-4926-9b38-80c783af4f76", + "parentUUID": "bcf42301-7c42-43a0-865e-36867a2516e1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Monitoring' page", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price POST-TEST: Bulk delete products from 'product_without_price' table should go to 'Catalog > Monitoring' page", + "timedOut": false, + "duration": 4064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_postTest_1_goToMonitoringPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMonitoringPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.monitoringLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5691a872-14e2-468f-83a0-ade6cddd618e", + "parentUUID": "bcf42301-7c42-43a0-865e-36867a2516e1", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price POST-TEST: Bulk delete products from 'product_without_price' table should bulk delete elements on table", + "timedOut": false, + "duration": 1223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_postTest_1_bulkDeleteElements\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteElements', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.bulkDeleteElementsInTable(page, tableID)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(monitoring_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cedf520-a9f7-4bd8-8b19-f15ca17fbf87", + "parentUUID": "bcf42301-7c42-43a0-865e-36867a2516e1", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of elements on table", + "fullTitle": "BO - Catalog - Monitoring : Sort and pagination list of products without price POST-TEST: Bulk delete products from 'product_without_price' table should check number of elements on table", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_monitoring_sortPaginationAndBulkDelete_productsWithoutPrice_postTest_1_reset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfElementsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.resetAndGetNumberOfLines(page, tableID)];\n case 2:\n numberOfElementsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfElementsAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3559223c-5714-4e01-8792-b5db31086512", + "parentUUID": "bcf42301-7c42-43a0-865e-36867a2516e1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7f279619-5aba-4926-9b38-80c783af4f76", + "5691a872-14e2-468f-83a0-ade6cddd618e", + "9cedf520-a9f7-4bd8-8b19-f15ca17fbf87", + "3559223c-5714-4e01-8792-b5db31086512" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9113, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4c829b0f-4a59-4892-8dad-226aee1cbf76", + "title": "BO - Catalog - Attributes & Features : CRUD attribute and values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : CRUD attribute and values\"", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values \"before all\" hook in \"BO - Catalog - Attributes & Features : CRUD attribute and values\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create needed files\n return [4 /*yield*/, Promise.all([\n files_1.default.createFile('./', valuesToCreate[0].textureFileName, 'text'),\n files_1.default.createFile('./', valuesToCreate[1].textureFileName, 'text'),\n files_1.default.createFile('./', updateValueData.textureFileName, 'text'),\n ])];\n case 3:\n // Create needed files\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9874486c-71a4-486e-8c84-b389e771a83a", + "parentUUID": "4c829b0f-4a59-4892-8dad-226aee1cbf76", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : CRUD attribute and values\"", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values \"after all\" hook in \"BO - Catalog - Attributes & Features : CRUD attribute and values\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(valuesToCreate[0].textureFileName),\n files_1.default.deleteFile(valuesToCreate[1].textureFileName),\n files_1.default.deleteFile(updateValueData.textureFileName),\n ])];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3c6864f1-948f-47ae-a9b4-d23d43d00b91", + "parentUUID": "4c829b0f-4a59-4892-8dad-226aee1cbf76", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values should login in BO", + "timedOut": false, + "duration": 1838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1334b355-9e60-4c7d-aea5-6a406e680bc6", + "parentUUID": "4c829b0f-4a59-4892-8dad-226aee1cbf76", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98ef4f2e-247b-4dc9-8a18-a0dcf2298929", + "parentUUID": "4c829b0f-4a59-4892-8dad-226aee1cbf76", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of attributes in BO", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values should reset all filters and get number of attributes in BO", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributes = _a.sent();\n (0, chai_1.expect)(numberOfAttributes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "827a2da0-576a-4104-87a7-e1a6339b99c3", + "parentUUID": "4c829b0f-4a59-4892-8dad-226aee1cbf76", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "997f8968-5a83-4579-a905-752eab1e6f11", + "title": "Create attribute", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Create attribute should go to add new attribute page", + "timedOut": false, + "duration": 857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_goToAddNewAttributePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAttributePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a52bfe4-81bc-4b3d-9dd4-ccf9211504ad", + "parentUUID": "997f8968-5a83-4579-a905-752eab1e6f11", + "isHook": false, + "skipped": false + }, + { + "title": "should create new attribute", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Create attribute should create new attribute", + "timedOut": false, + "duration": 1217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_createNewAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8c33afd-0739-4543-a6ae-f4e1056b476f", + "parentUUID": "997f8968-5a83-4579-a905-752eab1e6f11", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8a52bfe4-81bc-4b3d-9dd4-ccf9211504ad", + "e8c33afd-0739-4543-a6ae-f4e1056b476f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2074, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1a5b608f-5738-4600-938f-ed679f64d52a", + "title": "View attribute", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list of attributes", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values View attribute should filter list of attributes", + "timedOut": false, + "duration": 957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_filterToViewCreatedAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCreatedAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, 'b!name', createAttributeData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createAttributeData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba053a2c-0f68-4596-bf80-1d12835dc47f", + "parentUUID": "1a5b608f-5738-4600-938f-ed679f64d52a", + "isHook": false, + "skipped": false + }, + { + "title": "should view attribute", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values View attribute should view attribute", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_viewCreatedAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCreatedAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.viewAttribute(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(view_1.default.pageTitle, \" \").concat(createAttributeData.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbe04cdd-bc28-49e7-9f3f-302cb071c917", + "parentUUID": "1a5b608f-5738-4600-938f-ed679f64d52a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ba053a2c-0f68-4596-bf80-1d12835dc47f", + "dbe04cdd-bc28-49e7-9f3f-302cb071c917" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1777, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8ae02d08-fbea-4d90-b205-f54a4bf732b8", + "title": "Create 2 values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new value page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Create 2 values should go to add new value page", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_goToCreateValuePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateValuePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToAddNewValuePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addValue_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3a57557-c417-4520-88b8-448716da7e3e", + "parentUUID": "8ae02d08-fbea-4d90-b205-f54a4bf732b8", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°1", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Create 2 values should create value n°1", + "timedOut": false, + "duration": 1539, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_createValue0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, valueToCreate, index === 0)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6088433d-a1fc-426e-819c-8551a9b33474", + "parentUUID": "8ae02d08-fbea-4d90-b205-f54a4bf732b8", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°2", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Create 2 values should create value n°2", + "timedOut": false, + "duration": 2079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_createValue1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, valueToCreate, index === 0)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65737fed-487f-4250-b1ff-c94beeeeafba", + "parentUUID": "8ae02d08-fbea-4d90-b205-f54a4bf732b8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b3a57557-c417-4520-88b8-448716da7e3e", + "6088433d-a1fc-426e-819c-8551a9b33474", + "65737fed-487f-4250-b1ff-c94beeeeafba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4503, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "35776e51-d77b-4598-97b9-35b7af2a7578", + "title": "Update attribute", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list of attributes", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Update attribute should filter list of attributes", + "timedOut": false, + "duration": 3881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_filterToUpdateAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, 'b!name', createAttributeData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createAttributeData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0daf91b4-1e4b-41a4-a47a-a9006cbddce5", + "parentUUID": "35776e51-d77b-4598-97b9-35b7af2a7578", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Update attribute should go to edit attribute page", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_goToEditAttributePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAttributePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToEditAttributePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ee0349d-2756-4feb-99dd-8db8a240a109", + "parentUUID": "35776e51-d77b-4598-97b9-35b7af2a7578", + "isHook": false, + "skipped": false + }, + { + "title": "should update attribute", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Update attribute should update attribute", + "timedOut": false, + "duration": 1149, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_updateAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, updateAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "582b1c49-b1eb-4661-8d4a-4e4f54c16252", + "parentUUID": "35776e51-d77b-4598-97b9-35b7af2a7578", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0daf91b4-1e4b-41a4-a47a-a9006cbddce5", + "4ee0349d-2756-4feb-99dd-8db8a240a109", + "582b1c49-b1eb-4661-8d4a-4e4f54c16252" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5971, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "efd43cae-73cc-4df3-8a9b-180381235a29", + "title": "View updated attribute", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list of attributes", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values View updated attribute should filter list of attributes", + "timedOut": false, + "duration": 958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_filterToViewUpdateAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewUpdateAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, 'b!name', updateAttributeData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(updateAttributeData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ccbf38d-4735-4f31-9d48-068a39a6a955", + "parentUUID": "efd43cae-73cc-4df3-8a9b-180381235a29", + "isHook": false, + "skipped": false + }, + { + "title": "should view updated attribute", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values View updated attribute should view updated attribute", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_viewUpdatedAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numberOfValues;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewUpdatedAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.viewAttribute(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(view_1.default.pageTitle, \" \").concat(updateAttributeData.name));\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfValues = _a.sent();\n (0, chai_1.expect)(numberOfValues).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "901d5b5c-012c-4586-919e-6aff7dd8122c", + "parentUUID": "efd43cae-73cc-4df3-8a9b-180381235a29", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8ccbf38d-4735-4f31-9d48-068a39a6a955", + "901d5b5c-012c-4586-919e-6aff7dd8122c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1788, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "100dd422-b479-4564-8e93-53bf18e89a8d", + "title": "Update first value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter values", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Update first value should filter values", + "timedOut": false, + "duration": 964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_filterValuesToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterValuesToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, 'b!name', valuesToCreate[0].value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(valuesToCreate[0].value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75b78abf-4591-483d-92a3-f1d86b199fd0", + "parentUUID": "100dd422-b479-4564-8e93-53bf18e89a8d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit value page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Update first value should go to edit value page", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_goToEditValuePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditValuePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToEditValuePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addValue_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd3aee0b-268e-4976-a49e-fbad28489934", + "parentUUID": "100dd422-b479-4564-8e93-53bf18e89a8d", + "isHook": false, + "skipped": false + }, + { + "title": "should update value", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Update first value should update value", + "timedOut": false, + "duration": 2127, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_updateValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, updateValueData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addValue_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8903d187-59df-40c2-82a4-278772ea6507", + "parentUUID": "100dd422-b479-4564-8e93-53bf18e89a8d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75b78abf-4591-483d-92a3-f1d86b199fd0", + "bd3aee0b-268e-4976-a49e-fbad28489934", + "8903d187-59df-40c2-82a4-278772ea6507" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3944, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "90789b7c-eff9-44ad-bda9-51aa861063e1", + "title": "Delete second value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter values", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Delete second value should filter values", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_filterValuesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterValuesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, 'b!name', valuesToCreate[1].value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(valuesToCreate[1].value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25125b56-d554-4b30-b8c6-e62b740b1ee8", + "parentUUID": "90789b7c-eff9-44ad-bda9-51aa861063e1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete value", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Delete second value should delete value", + "timedOut": false, + "duration": 3879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_deleteValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfValues;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.deleteValue(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulDeleteMessage);\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfValues = _a.sent();\n (0, chai_1.expect)(numberOfValues).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "780b3280-d564-42f7-99a5-082de579f9bd", + "parentUUID": "90789b7c-eff9-44ad-bda9-51aa861063e1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "25125b56-d554-4b30-b8c6-e62b740b1ee8", + "780b3280-d564-42f7-99a5-082de579f9bd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4858, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a1af4602-c47d-45bf-b0dc-8f41673eb4fe", + "title": "Delete attribute", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/01_CRUDAttributesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to attributes page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Delete attribute should go to attributes page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_goBackToAttributesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToAttributesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.backToAttributesList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e6d90a8-2081-40f5-9943-838957cdac17", + "parentUUID": "a1af4602-c47d-45bf-b0dc-8f41673eb4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should filter attributes", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Delete attribute should filter attributes", + "timedOut": false, + "duration": 3814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_filterAttributesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterAttributesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, 'b!name', updateAttributeData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(updateAttributeData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cc61552-e3c7-403b-a7ad-1b2d77e63d4b", + "parentUUID": "a1af4602-c47d-45bf-b0dc-8f41673eb4fe", + "isHook": false, + "skipped": false + }, + { + "title": "should delete attribute", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD attribute and values Delete attribute should delete attribute", + "timedOut": false, + "duration": 3965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_CRUDAttributesAndValues_deleteAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.deleteAttribute(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulDeleteMessage);\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfAttributesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterDelete).to.equal(numberOfAttributes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c54dbc50-7550-48a3-aed5-624bd4969dff", + "parentUUID": "a1af4602-c47d-45bf-b0dc-8f41673eb4fe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7e6d90a8-2081-40f5-9943-838957cdac17", + "8cc61552-e3c7-403b-a7ad-1b2d77e63d4b", + "c54dbc50-7550-48a3-aed5-624bd4969dff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8589, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "1334b355-9e60-4c7d-aea5-6a406e680bc6", + "98ef4f2e-247b-4dc9-8a18-a0dcf2298929", + "827a2da0-576a-4104-87a7-e1a6339b99c3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6594, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3f35a4f6-0dfa-4e97-8d66-20e31fc8c122", + "title": "BO - Catalog - Attributes & Features : Change attributes & values position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/02_changePosition.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/02_changePosition.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Change attributes & values position\"", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position \"before all\" hook in \"BO - Catalog - Attributes & Features : Change attributes & values position\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46e98921-9f8c-40bc-ae0a-a427d09cbd99", + "parentUUID": "3f35a4f6-0dfa-4e97-8d66-20e31fc8c122", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Change attributes & values position\"", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position \"after all\" hook in \"BO - Catalog - Attributes & Features : Change attributes & values position\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "276abb26-7eea-4d59-ab13-ad0aa9aae99e", + "parentUUID": "3f35a4f6-0dfa-4e97-8d66-20e31fc8c122", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position should login in BO", + "timedOut": false, + "duration": 1838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d9f5064-f666-4f07-942e-d9f25252ddb2", + "parentUUID": "3f35a4f6-0dfa-4e97-8d66-20e31fc8c122", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 3685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47267677-cbdb-45ca-b029-415276dc846a", + "parentUUID": "3f35a4f6-0dfa-4e97-8d66-20e31fc8c122", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e10dbf5a-3419-4e82-a67c-61a33776e74e", + "title": "Change attribute position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/02_changePosition.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/02_changePosition.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should reset all filters and get number of attributes in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change attribute position should reset all filters and get number of attributes in BO", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_resetAttributesFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAttributesFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributes = _a.sent();\n (0, chai_1.expect)(numberOfAttributes).to.be.above(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1528cf9c-2118-43b5-a753-8d427cddeada", + "parentUUID": "e10dbf5a-3419-4e82-a67c-61a33776e74e", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'asc' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change attribute position should sort by 'position' 'asc' and check result", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_sortByPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sortByPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, 'a!position')];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, attributes_1.default.sortTable(page, 'a!position', 'up')];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, 'a!position')];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "936aa957-3af8-473b-96f3-46b7b58af3c5", + "parentUUID": "e10dbf5a-3419-4e82-a67c-61a33776e74e", + "isHook": false, + "skipped": false + }, + { + "title": "should change first attribute position to 3", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change attribute position should change first attribute position to 3", + "timedOut": false, + "duration": 258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_changeAttributePosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstRowAttributeName, textResult, thirdRowAttributeName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeAttributePosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 2:\n firstRowAttributeName = _a.sent();\n return [4 /*yield*/, attributes_1.default.changePosition(page, 1, 3)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Unable to change position').to.contains(attributes_1.default.successfulUpdateMessage);\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 3, 'b!name')];\n case 4:\n thirdRowAttributeName = _a.sent();\n (0, chai_1.expect)(thirdRowAttributeName, 'Changing position was done wrongly').to.equal(firstRowAttributeName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "723a4961-a5bf-4be5-880d-c1890de8a0f2", + "parentUUID": "e10dbf5a-3419-4e82-a67c-61a33776e74e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset third attribute position to 1", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change attribute position should reset third attribute position to 1", + "timedOut": false, + "duration": 373, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_resetAttributePosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var thirdRowAttributeName, textResult, firstRowAttributeName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAttributePosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 3, 'b!name')];\n case 2:\n thirdRowAttributeName = _a.sent();\n return [4 /*yield*/, attributes_1.default.changePosition(page, 3, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Unable to change position').to.contains(attributes_1.default.successfulUpdateMessage);\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 4:\n firstRowAttributeName = _a.sent();\n (0, chai_1.expect)(firstRowAttributeName, 'Changing position was done wrongly').to.equal(thirdRowAttributeName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d7d9bb9-2e62-446c-911b-812a28e53f40", + "parentUUID": "e10dbf5a-3419-4e82-a67c-61a33776e74e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1528cf9c-2118-43b5-a753-8d427cddeada", + "936aa957-3af8-473b-96f3-46b7b58af3c5", + "723a4961-a5bf-4be5-880d-c1890de8a0f2", + "0d7d9bb9-2e62-446c-911b-812a28e53f40" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1518, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2755089a-cc4c-4c3d-839d-a716f80ac6f1", + "title": "Change value position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/02_changePosition.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/02_changePosition.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list of attributes by Name Size", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change value position should filter list of attributes by Name Size", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_filterAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterAttributes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, 'b!name', attributes_2.default.size.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(attributes_2.default.size.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46d78f28-fa5d-438f-9997-ceda6198bceb", + "parentUUID": "2755089a-cc4c-4c3d-839d-a716f80ac6f1", + "isHook": false, + "skipped": false + }, + { + "title": "should view attribute", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change value position should view attribute", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_viewAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.viewAttribute(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(view_1.default.pageTitle, \" \").concat(attributes_2.default.size.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f073a87-50ad-4e02-8cde-bf6d93e3aae1", + "parentUUID": "2755089a-cc4c-4c3d-839d-a716f80ac6f1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of values in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change value position should reset all filters and get number of values in BO", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_resetValueFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValues;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetValueFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfValues = _a.sent();\n (0, chai_1.expect)(numberOfValues).to.be.above(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec653bc5-3ef1-4cbd-aeda-7f12f0b11402", + "parentUUID": "2755089a-cc4c-4c3d-839d-a716f80ac6f1", + "isHook": false, + "skipped": false + }, + { + "title": "should change first value position to 3", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change value position should change first value position to 3", + "timedOut": false, + "duration": 220, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_changeValuePosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstRowValueName, textResult, thirdRowValueName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeValuePosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, 'b!name')];\n case 2:\n firstRowValueName = _a.sent();\n return [4 /*yield*/, view_1.default.changePosition(page, 1, 3)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Unable to change position').to.contains(attributes_1.default.successfulUpdateMessage);\n return [4 /*yield*/, view_1.default.getTextColumn(page, 3, 'b!name')];\n case 4:\n thirdRowValueName = _a.sent();\n (0, chai_1.expect)(thirdRowValueName, 'Changing position was done wrongly').to.equal(firstRowValueName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a681ff3a-efa7-411e-b1c2-ff0603b625bb", + "parentUUID": "2755089a-cc4c-4c3d-839d-a716f80ac6f1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset third value position to 1", + "fullTitle": "BO - Catalog - Attributes & Features : Change attributes & values position Change value position should reset third value position to 1", + "timedOut": false, + "duration": 367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_changePosition_resetValuePosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var thirdRowValueName, textResult, firstRowValueName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetValuePosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, 3, 'b!name')];\n case 2:\n thirdRowValueName = _a.sent();\n return [4 /*yield*/, view_1.default.changePosition(page, 3, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Unable to change position').to.contains(attributes_1.default.successfulUpdateMessage);\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, 'b!name')];\n case 4:\n firstRowValueName = _a.sent();\n (0, chai_1.expect)(firstRowValueName, 'Changing position was done wrongly').to.equal(thirdRowValueName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b3fd17d-5f58-4847-8bac-0a5ca0b3a329", + "parentUUID": "2755089a-cc4c-4c3d-839d-a716f80ac6f1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "46d78f28-fa5d-438f-9997-ceda6198bceb", + "4f073a87-50ad-4e02-8cde-bf6d93e3aae1", + "ec653bc5-3ef1-4cbd-aeda-7f12f0b11402", + "a681ff3a-efa7-411e-b1c2-ff0603b625bb", + "9b3fd17d-5f58-4847-8bac-0a5ca0b3a329" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2373, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0d9f5064-f666-4f07-942e-d9f25252ddb2", + "47267677-cbdb-45ca-b029-415276dc846a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5523, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "37587162-2a5f-402c-a109-7e59ad6de24e", + "title": "BO - Catalog - Attributes & Features : Filter attributes table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/01_filterAttributes.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/01_filterAttributes.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Filter attributes table\"", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table \"before all\" hook in \"BO - Catalog - Attributes & Features : Filter attributes table\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27b5b149-758b-4842-aee0-8ef7525bb0d5", + "parentUUID": "37587162-2a5f-402c-a109-7e59ad6de24e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Filter attributes table\"", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table \"after all\" hook in \"BO - Catalog - Attributes & Features : Filter attributes table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a25ecfa2-7b74-4a07-9371-a58b036ac703", + "parentUUID": "37587162-2a5f-402c-a109-7e59ad6de24e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table should login in BO", + "timedOut": false, + "duration": 1817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fb38316-6a9d-45bc-a832-c038a3d18a96", + "parentUUID": "37587162-2a5f-402c-a109-7e59ad6de24e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_filterAttributes_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7aaf2cb6-37a4-44fa-ab7b-d9f9c76f3f0f", + "parentUUID": "37587162-2a5f-402c-a109-7e59ad6de24e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of attributes in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table should reset all filters and get number of attributes in BO", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_filterAttributes_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributes = _a.sent();\n (0, chai_1.expect)(numberOfAttributes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6543e3fd-c1e4-4383-8031-36a98cf86546", + "parentUUID": "37587162-2a5f-402c-a109-7e59ad6de24e", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "2976fc96-853c-46b0-a056-d5b810f63f1a", + "title": "Filter attributes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/01_filterAttributes.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/01_filterAttributes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_attribute_group '1'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table Filter attributes should filter by id_attribute_group '1'", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_filterAttributes_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterFilter).to.be.at.most(numberOfAttributes);\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n if (typeof test.args.filterValue === 'number') {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue + 1);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "657414ed-c130-4635-b68b-6833874139c5", + "parentUUID": "2976fc96-853c-46b0-a056-d5b810f63f1a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table Filter attributes should reset all filters", + "timedOut": false, + "duration": 2897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_filterAttributes_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterReset).to.equal(numberOfAttributes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d57da3d4-b814-4772-9b92-98e4ebcf355b", + "parentUUID": "2976fc96-853c-46b0-a056-d5b810f63f1a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by b!name 'Color'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table Filter attributes should filter by b!name 'Color'", + "timedOut": false, + "duration": 952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_filterAttributes_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterFilter).to.be.at.most(numberOfAttributes);\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n if (typeof test.args.filterValue === 'number') {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue + 1);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "844cea25-ebb5-4d7c-985f-904787bea519", + "parentUUID": "2976fc96-853c-46b0-a056-d5b810f63f1a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table Filter attributes should reset all filters", + "timedOut": false, + "duration": 2885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_filterAttributes_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterReset).to.equal(numberOfAttributes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9297b7b2-d4e9-4361-9786-d86ec5d5cc72", + "parentUUID": "2976fc96-853c-46b0-a056-d5b810f63f1a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by a!position '3'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table Filter attributes should filter by a!position '3'", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_filterAttributes_filterPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterFilter).to.be.at.most(numberOfAttributes);\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n if (typeof test.args.filterValue === 'number') {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue + 1);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b83cb579-db9a-4185-a55d-b59943ae9770", + "parentUUID": "2976fc96-853c-46b0-a056-d5b810f63f1a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attributes table Filter attributes should reset all filters", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_filterAttributes_filterPositionReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterReset).to.equal(numberOfAttributes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4977287c-0c71-4d22-89ae-1d576b3489bf", + "parentUUID": "2976fc96-853c-46b0-a056-d5b810f63f1a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "657414ed-c130-4635-b68b-6833874139c5", + "d57da3d4-b814-4772-9b92-98e4ebcf355b", + "844cea25-ebb5-4d7c-985f-904787bea519", + "9297b7b2-d4e9-4361-9786-d86ec5d5cc72", + "b83cb579-db9a-4185-a55d-b59943ae9770", + "4977287c-0c71-4d22-89ae-1d576b3489bf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11518, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "6fb38316-6a9d-45bc-a832-c038a3d18a96", + "7aaf2cb6-37a4-44fa-ab7b-d9f9c76f3f0f", + "6543e3fd-c1e4-4383-8031-36a98cf86546" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6496, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a603724d-84fc-4c4f-beb9-7d9537b903e5", + "title": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes \"before all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dedc4644-2d0a-4183-918a-9501207f982c", + "parentUUID": "a603724d-84fc-4c4f-beb9-7d9537b903e5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes \"after all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "caddcc9e-ae1f-4ee8-805e-1947c94d24d9", + "parentUUID": "a603724d-84fc-4c4f-beb9-7d9537b903e5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes should login in BO", + "timedOut": false, + "duration": 1884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60695d17-364f-4ca6-9fca-bdf83c072692", + "parentUUID": "a603724d-84fc-4c4f-beb9-7d9537b903e5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10766c3b-2981-4845-933c-92ae1d778aa0", + "parentUUID": "a603724d-84fc-4c4f-beb9-7d9537b903e5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of attributes in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes should reset all filters and get number of attributes in BO", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributes = _a.sent();\n (0, chai_1.expect)(numberOfAttributes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ed0c09a-0fc0-48e1-a3a2-e04a4f510f28", + "parentUUID": "a603724d-84fc-4c4f-beb9-7d9537b903e5", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "title": "Create 17 new attributes in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1816dd10-4bc7-4d4a-81cf-a7d1fb1acc8c", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°1", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°1", + "timedOut": false, + "duration": 1180, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "758df836-655e-4b2b-a305-fce82f04ced4", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d0d1415-0a8a-454a-b30e-8d6830a4350b", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°2", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°2", + "timedOut": false, + "duration": 1185, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc6d1d59-332c-4059-9fbe-8d50bb1c5f4e", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75c4e96a-cb0a-4262-abe4-f792e8ad4cef", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°3", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°3", + "timedOut": false, + "duration": 1187, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61db3bde-d12e-4285-b6a9-f6ce01179d92", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02403cfa-33a8-4dcb-ae34-521801e18d44", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°4", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°4", + "timedOut": false, + "duration": 1185, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c06df188-fb12-4278-9b45-ca8f23fd08bf", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b55d9e15-f91d-4024-b915-89d55f15eb85", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°5", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°5", + "timedOut": false, + "duration": 1187, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "896e2a7e-2e41-4af8-801b-a9bf2519c65d", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b55330b4-69c9-4f7f-8916-aee17a8f614d", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°6", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°6", + "timedOut": false, + "duration": 1180, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68a0f745-257b-4e18-93cb-d7aa364b7d75", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb1ebd6c-313b-4e1a-8d60-07142d4de67a", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°7", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°7", + "timedOut": false, + "duration": 1187, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ed55b6d-22bf-4132-abeb-32ff48588a23", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e040c6f-6057-44e4-8cf3-de4fd4111cfb", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°8", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°8", + "timedOut": false, + "duration": 1183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d6c7d52-eb66-4326-bd60-ab4f56b1dcc7", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f75b15fc-9dcb-42cf-84a4-c769ad3a97aa", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°9", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°9", + "timedOut": false, + "duration": 1199, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "050e3017-ec24-4ff9-9e4d-004e7fc8efe9", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01eb8c89-4507-4f18-adca-970ada5e73fd", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°10", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°10", + "timedOut": false, + "duration": 1183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1987939e-5157-4969-befd-ff9081430eda", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "207fb5f4-4d00-43cf-ac16-7a8842fa53de", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°11", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°11", + "timedOut": false, + "duration": 1190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e10529b-fa96-401b-b033-ad73bae90975", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf8dc50b-f1d1-435c-859d-82e5c7ac5502", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°12", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°12", + "timedOut": false, + "duration": 1242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38278e1f-36ba-442a-9d4f-91d7d06c2d48", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54ff8ef7-5a53-492f-bdea-37eb346ab08a", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°13", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°13", + "timedOut": false, + "duration": 1197, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5671f7c0-3291-4639-9865-6648e826c862", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "280d5c5d-1d49-45da-aff9-e5727ba83adf", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°14", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°14", + "timedOut": false, + "duration": 1200, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed037d69-24f4-455b-b318-cd81464df81b", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b1699a6-513e-4c28-b201-6920fa3c661b", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°15", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°15", + "timedOut": false, + "duration": 1207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2f70592-0a56-4d18-b164-acc00f2764e4", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9b980b6-8af5-4e65-9523-631ee24736c2", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°16", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°16", + "timedOut": false, + "duration": 1224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb9eb89e-f5d2-4e3a-8f73-e23f5974edee", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new attribute page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should go to add new attribute page", + "timedOut": false, + "duration": 861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_goToAddNewAttributePage16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAttributePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToAddAttributePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAttribute_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "083adc5e-00f5-4cf2-ac46-756915c112b9", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create attribute n°17", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Create 17 new attributes in BO should create attribute n°17", + "timedOut": false, + "duration": 1205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_createNewAttribute16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAttributesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAttribute_1.default.addEditAttribute(page, createAttributeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [4 /*yield*/, attributes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAttributesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterCreation).to.equal(numberOfAttributes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48c2d81f-7847-4917-94c3-f01ba886e581", + "parentUUID": "c3bff232-7cd1-47a5-b585-b25e8c9d91ef", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1816dd10-4bc7-4d4a-81cf-a7d1fb1acc8c", + "758df836-655e-4b2b-a305-fce82f04ced4", + "4d0d1415-0a8a-454a-b30e-8d6830a4350b", + "dc6d1d59-332c-4059-9fbe-8d50bb1c5f4e", + "75c4e96a-cb0a-4262-abe4-f792e8ad4cef", + "61db3bde-d12e-4285-b6a9-f6ce01179d92", + "02403cfa-33a8-4dcb-ae34-521801e18d44", + "c06df188-fb12-4278-9b45-ca8f23fd08bf", + "b55d9e15-f91d-4024-b915-89d55f15eb85", + "896e2a7e-2e41-4af8-801b-a9bf2519c65d", + "b55330b4-69c9-4f7f-8916-aee17a8f614d", + "68a0f745-257b-4e18-93cb-d7aa364b7d75", + "fb1ebd6c-313b-4e1a-8d60-07142d4de67a", + "8ed55b6d-22bf-4132-abeb-32ff48588a23", + "9e040c6f-6057-44e4-8cf3-de4fd4111cfb", + "6d6c7d52-eb66-4326-bd60-ab4f56b1dcc7", + "f75b15fc-9dcb-42cf-84a4-c769ad3a97aa", + "050e3017-ec24-4ff9-9e4d-004e7fc8efe9", + "01eb8c89-4507-4f18-adca-970ada5e73fd", + "1987939e-5157-4969-befd-ff9081430eda", + "207fb5f4-4d00-43cf-ac16-7a8842fa53de", + "3e10529b-fa96-401b-b033-ad73bae90975", + "bf8dc50b-f1d1-435c-859d-82e5c7ac5502", + "38278e1f-36ba-442a-9d4f-91d7d06c2d48", + "54ff8ef7-5a53-492f-bdea-37eb346ab08a", + "5671f7c0-3291-4639-9865-6648e826c862", + "280d5c5d-1d49-45da-aff9-e5727ba83adf", + "ed037d69-24f4-455b-b318-cd81464df81b", + "0b1699a6-513e-4c28-b201-6920fa3c661b", + "b2f70592-0a56-4d18-b164-acc00f2764e4", + "f9b980b6-8af5-4e65-9523-631ee24736c2", + "eb9eb89e-f5d2-4e3a-8f73-e23f5974edee", + "083adc5e-00f5-4cf2-ac46-756915c112b9", + "48c2d81f-7847-4917-94c3-f01ba886e581" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34757, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c5089949-be58-4192-89a0-5bc3731f70e5", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 1087, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebb9675d-8c30-49ef-8a60-dc8f112c19de", + "parentUUID": "c5089949-be58-4192-89a0-5bc3731f70e5", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Pagination next and previous should click on next", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e890a423-e8d3-4927-95d6-435c13217d59", + "parentUUID": "c5089949-be58-4192-89a0-5bc3731f70e5", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Pagination next and previous should click on previous", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8141cfb-73d2-485c-a526-f70ea65fc61a", + "parentUUID": "c5089949-be58-4192-89a0-5bc3731f70e5", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6bcd8e0-94ef-49ce-8c3f-202593c6c236", + "parentUUID": "c5089949-be58-4192-89a0-5bc3731f70e5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ebb9675d-8c30-49ef-8a60-dc8f112c19de", + "e890a423-e8d3-4927-95d6-435c13217d59", + "d8141cfb-73d2-485c-a526-f70ea65fc61a", + "b6bcd8e0-94ef-49ce-8c3f-202593c6c236" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3853, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a80a6688-816a-4804-82e0-3ff809a37855", + "title": "Sort attributes table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_attribute_group' 'down' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Sort attributes table should sort by 'id_attribute_group' 'down' and check result", + "timedOut": false, + "duration": 1290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, attributes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bd986ad-e5b0-46f2-bcb6-a604b875e272", + "parentUUID": "a80a6688-816a-4804-82e0-3ff809a37855", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'b!name' 'up' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Sort attributes table should sort by 'b!name' 'up' and check result", + "timedOut": false, + "duration": 1273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, attributes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc8b5f72-c6d9-4610-85ce-c4ac689082be", + "parentUUID": "a80a6688-816a-4804-82e0-3ff809a37855", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'b!name' 'down' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Sort attributes table should sort by 'b!name' 'down' and check result", + "timedOut": false, + "duration": 1196, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, attributes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ad8fa7c-1caf-43db-a335-00a07e1bc7f3", + "parentUUID": "a80a6688-816a-4804-82e0-3ff809a37855", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!position' 'up' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Sort attributes table should sort by 'a!position' 'up' and check result", + "timedOut": false, + "duration": 1291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_sortByPositionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, attributes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c559fac-fbd3-451a-9925-29705a026d74", + "parentUUID": "a80a6688-816a-4804-82e0-3ff809a37855", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!position' 'down' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Sort attributes table should sort by 'a!position' 'down' and check result", + "timedOut": false, + "duration": 1218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_sortByPositionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, attributes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "158daeb0-c9f1-43e4-af44-1653170c107f", + "parentUUID": "a80a6688-816a-4804-82e0-3ff809a37855", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_attribute_group' 'up' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Sort attributes table should sort by 'id_attribute_group' 'up' and check result", + "timedOut": false, + "duration": 1302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, attributes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f50eba53-a173-4a40-912a-d3c64fcecc2a", + "parentUUID": "a80a6688-816a-4804-82e0-3ff809a37855", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1bd986ad-e5b0-46f2-bcb6-a604b875e272", + "bc8b5f72-c6d9-4610-85ce-c4ac689082be", + "4ad8fa7c-1caf-43db-a335-00a07e1bc7f3", + "0c559fac-fbd3-451a-9925-29705a026d74", + "158daeb0-c9f1-43e4-af44-1653170c107f", + "f50eba53-a173-4a40-912a-d3c64fcecc2a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7570, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "801c6772-350b-4ed0-920c-b10889e8e3f3", + "title": "Bulk delete attributes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list of attributes", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Bulk delete attributes should filter list of attributes", + "timedOut": false, + "duration": 1043, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_filterToBulkDeleteAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDeleteAttributes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, 'b!name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91875df6-fa7f-4162-a7a8-0c14842d8f08", + "parentUUID": "801c6772-350b-4ed0-920c-b10889e8e3f3", + "isHook": false, + "skipped": false + }, + { + "title": "should delete attributes with Bulk Actions and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Bulk delete attributes should delete attributes with Bulk Actions and check result", + "timedOut": false, + "duration": 703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_bulkDeleteAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteAttributes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.bulkDeleteAttributes(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(attributes_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2bc77f3-b6a6-4550-beb7-e41cf46cc288", + "parentUUID": "801c6772-350b-4ed0-920c-b10889e8e3f3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attributes Bulk delete attributes should reset all filters", + "timedOut": false, + "duration": 2879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_sortPaginationAndBulkDelete_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterReset).to.be.equal(numberOfAttributes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f08ae20-f0b4-4413-898a-dfb141b01404", + "parentUUID": "801c6772-350b-4ed0-920c-b10889e8e3f3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "91875df6-fa7f-4162-a7a8-0c14842d8f08", + "b2bc77f3-b6a6-4550-beb7-e41cf46cc288", + "4f08ae20-f0b4-4413-898a-dfb141b01404" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4625, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "60695d17-364f-4ca6-9fca-bdf83c072692", + "10766c3b-2981-4845-933c-92ae1d778aa0", + "2ed0c09a-0fc0-48e1-a3a2-e04a4f510f28" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6575, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60d9e8ae-6091-44fb-8a3b-e049cc4a6157", + "title": "BO - Catalog - Attributes & Features : Help card on attributes page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/04_helpCard.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/attributes/04_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Help card on attributes page\"", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on attributes page \"before all\" hook in \"BO - Catalog - Attributes & Features : Help card on attributes page\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd6d108a-9342-4c63-a4f4-4ee20ac97f93", + "parentUUID": "60d9e8ae-6091-44fb-8a3b-e049cc4a6157", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Help card on attributes page\"", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on attributes page \"after all\" hook in \"BO - Catalog - Attributes & Features : Help card on attributes page\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "76c75ed6-6b0a-4cec-a073-f16313df6257", + "parentUUID": "60d9e8ae-6091-44fb-8a3b-e049cc4a6157", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on attributes page should login in BO", + "timedOut": false, + "duration": 1856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7035f9ac-ec69-47be-9748-1caf67230984", + "parentUUID": "60d9e8ae-6091-44fb-8a3b-e049cc4a6157", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on attributes page should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_helpCard_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d28f075f-0765-4a05-bf76-bb631d68a503", + "parentUUID": "60d9e8ae-6091-44fb-8a3b-e049cc4a6157", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on attributes page should open the help side bar", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5279a51-c6b4-43f0-bf7b-3e5b5de485a1", + "parentUUID": "60d9e8ae-6091-44fb-8a3b-e049cc4a6157", + "isHook": false, + "skipped": false + }, + { + "title": "should check the document language", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on attributes page should check the document language", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_helpCard_checkDocumentLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getHelpDocumentURL(page)];\n case 2:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "565f0ee8-9f54-4109-a200-c3fc91ba618c", + "parentUUID": "60d9e8ae-6091-44fb-8a3b-e049cc4a6157", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on attributes page should close the help side bar", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_attributes_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49fa17c1-f607-4876-aaac-f7e4d6e4724e", + "parentUUID": "60d9e8ae-6091-44fb-8a3b-e049cc4a6157", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7035f9ac-ec69-47be-9748-1caf67230984", + "d28f075f-0765-4a05-bf76-bb631d68a503", + "b5279a51-c6b4-43f0-bf7b-3e5b5de485a1", + "565f0ee8-9f54-4109-a200-c3fc91ba618c", + "49fa17c1-f607-4876-aaac-f7e4d6e4724e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7393, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fc123d72-b79d-4af2-a44f-eca811412698", + "title": "BO - Catalog - Attributes & Features : Filter attribute values table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/01_filterValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/01_filterValues.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Filter attribute values table\"", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table \"before all\" hook in \"BO - Catalog - Attributes & Features : Filter attribute values table\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f76c1a64-68c0-463e-9a57-30b6b418e3c6", + "parentUUID": "fc123d72-b79d-4af2-a44f-eca811412698", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Filter attribute values table\"", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table \"after all\" hook in \"BO - Catalog - Attributes & Features : Filter attribute values table\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8ef2ed99-dc45-4387-924f-9cf85a3a0d46", + "parentUUID": "fc123d72-b79d-4af2-a44f-eca811412698", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table should login in BO", + "timedOut": false, + "duration": 1854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c7ab4b6-d916-444e-827e-90321124a088", + "parentUUID": "fc123d72-b79d-4af2-a44f-eca811412698", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4662, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "549cbb13-9170-4e0e-9c21-1b67f91db5b7", + "parentUUID": "fc123d72-b79d-4af2-a44f-eca811412698", + "isHook": false, + "skipped": false + }, + { + "title": "should filter attributes table by name 'Color'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table should filter attributes table by name 'Color'", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterAttributes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, 'b!name', attributes_2.default.color.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(attributes_2.default.color.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27e1110f-f0d4-4a7f-9fc0-106a5591f146", + "parentUUID": "fc123d72-b79d-4af2-a44f-eca811412698", + "isHook": false, + "skipped": false + }, + { + "title": "should view attribute", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table should view attribute", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_viewAttribute\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewAttribute', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.viewAttribute(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(view_1.default.pageTitle, \" \").concat(attributes_2.default.color.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4882a2bc-b9c8-4d11-9d5c-91db2e74009b", + "parentUUID": "fc123d72-b79d-4af2-a44f-eca811412698", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of values in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table should reset all filters and get number of values in BO", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfValues = _a.sent();\n (0, chai_1.expect)(numberOfValues).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ee21a77-9fda-435d-b1b4-ec92b05d5260", + "parentUUID": "fc123d72-b79d-4af2-a44f-eca811412698", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "title": "Filter values table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/01_filterValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/01_filterValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_attribute '18'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table Filter values table should filter by id_attribute '18'", + "timedOut": false, + "duration": 948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfValuesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterFilter).to.be.at.most(numberOfValues);\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n if (typeof test.args.filterValue === 'number') {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue + 1);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b167677-ee8e-4241-9df7-2dbe21a01e80", + "parentUUID": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table Filter values table should reset all filters", + "timedOut": false, + "duration": 2842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfValuesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterReset).to.equal(numberOfValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70fca00e-6a91-46eb-af6a-6b1532eebcb4", + "parentUUID": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by b!name 'White'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table Filter values table should filter by b!name 'White'", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfValuesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterFilter).to.be.at.most(numberOfValues);\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n if (typeof test.args.filterValue === 'number') {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue + 1);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a73dd6d-9eaf-480c-8d1f-a81ef11aaf59", + "parentUUID": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table Filter values table should reset all filters", + "timedOut": false, + "duration": 2840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfValuesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterReset).to.equal(numberOfValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe846d82-717d-4b16-bd5c-0e31b94d0de4", + "parentUUID": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by a!color '#C19A6B'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table Filter values table should filter by a!color '#C19A6B'", + "timedOut": false, + "duration": 947, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterColor\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfValuesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterFilter).to.be.at.most(numberOfValues);\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n if (typeof test.args.filterValue === 'number') {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue + 1);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37583d8f-e627-41bc-9c82-d2f2c3dceb24", + "parentUUID": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table Filter values table should reset all filters", + "timedOut": false, + "duration": 2842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterColorReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfValuesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterReset).to.equal(numberOfValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6ea04f0-6ef5-4707-9b6d-d0d3b019907f", + "parentUUID": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by a!position '10'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table Filter values table should filter by a!position '10'", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfValuesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterFilter).to.be.at.most(numberOfValues);\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n if (typeof test.args.filterValue === 'number') {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue + 1);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f53cda2c-5fea-46f0-85c0-acdcade749b1", + "parentUUID": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter attribute values table Filter values table should reset all filters", + "timedOut": false, + "duration": 2849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_filterValues_filterPositionReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfValuesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterReset).to.equal(numberOfValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72812e23-e8b1-49d4-8a8f-d09b219a8c31", + "parentUUID": "96c2418e-85e2-496b-8995-086ab4cfe5b2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7b167677-ee8e-4241-9df7-2dbe21a01e80", + "70fca00e-6a91-46eb-af6a-6b1532eebcb4", + "3a73dd6d-9eaf-480c-8d1f-a81ef11aaf59", + "fe846d82-717d-4b16-bd5c-0e31b94d0de4", + "37583d8f-e627-41bc-9c82-d2f2c3dceb24", + "f6ea04f0-6ef5-4707-9b6d-d0d3b019907f", + "f53cda2c-5fea-46f0-85c0-acdcade749b1", + "72812e23-e8b1-49d4-8a8f-d09b219a8c31" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15150, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "5c7ab4b6-d916-444e-827e-90321124a088", + "549cbb13-9170-4e0e-9c21-1b67f91db5b7", + "27e1110f-f0d4-4a7f-9fc0-106a5591f146", + "4882a2bc-b9c8-4d11-9d5c-91db2e74009b", + "5ee21a77-9fda-435d-b1b4-ec92b05d5260" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8314, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8f765c31-2f05-471c-ad9e-df847d630d4e", + "title": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values \"before all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0485e69e-1e9d-44ce-b263-21f5c713fa23", + "parentUUID": "8f765c31-2f05-471c-ad9e-df847d630d4e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values \"after all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "61c9f5df-57b3-4bf4-8740-9e685513af59", + "parentUUID": "8f765c31-2f05-471c-ad9e-df847d630d4e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values should login in BO", + "timedOut": false, + "duration": 1849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21af60a2-2889-49ce-96c8-7288faad1a99", + "parentUUID": "8f765c31-2f05-471c-ad9e-df847d630d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4650, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74e4e842-d6f0-4998-a58b-1dfb398e7ada", + "parentUUID": "8f765c31-2f05-471c-ad9e-df847d630d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values should reset all filters", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_resetAttributeFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAttributesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAttributeFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAttributesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAttributesAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81bd1376-c9eb-4b9b-b1b6-ee6119107250", + "parentUUID": "8f765c31-2f05-471c-ad9e-df847d630d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of attributes by name 'Color'", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values should filter list of attributes by name 'Color'", + "timedOut": false, + "duration": 947, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_filterToBulkDeleteAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDeleteAttributes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.filterTable(page, 'b!name', 'Color')];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('Color');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04a4340f-55c3-4af3-a3e4-c362ca5eebff", + "parentUUID": "8f765c31-2f05-471c-ad9e-df847d630d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should view attribute 'Color'", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values should view attribute 'Color'", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_viewAttributeColor1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewAttributeColor1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.viewAttribute(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(view_1.default.pageTitle, \" Color\"));\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfValues = _a.sent();\n (0, chai_1.expect)(numberOfValues).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb81dcc6-05dd-42f8-8286-728ee466d463", + "parentUUID": "8f765c31-2f05-471c-ad9e-df847d630d4e", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "title": "Create 7 new values in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new value page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should go to add new value page", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_goToAddNewValuePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewValuePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToAddNewValuePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addValue_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7319d9ce-d873-46b8-94d5-7c9b91d35371", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°1", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should create value n°1", + "timedOut": false, + "duration": 596, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_createNewValue0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createValueData, index !== 6)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "644b36c6-0974-44e9-b806-f2c62883a049", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°2", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should create value n°2", + "timedOut": false, + "duration": 605, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_createNewValue1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createValueData, index !== 6)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7acde66-719d-495e-9b49-d0cc9498c6a2", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°3", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should create value n°3", + "timedOut": false, + "duration": 586, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_createNewValue2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createValueData, index !== 6)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d73a89a8-33d7-4a57-85aa-ddc57c21b2f2", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°4", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should create value n°4", + "timedOut": false, + "duration": 604, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_createNewValue3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createValueData, index !== 6)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0aa677fe-c7eb-4aa4-949c-785175213af8", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°5", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should create value n°5", + "timedOut": false, + "duration": 592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_createNewValue4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createValueData, index !== 6)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec9e9e14-41ed-4f70-aba4-776d01724b54", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°6", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should create value n°6", + "timedOut": false, + "duration": 593, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_createNewValue5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createValueData, index !== 6)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbda7acf-cc58-468f-baa1-c000e4d0af52", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°7", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should create value n°7", + "timedOut": false, + "duration": 1140, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_createNewValue6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createValueData, index !== 6)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(attributes_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bd72e30-75cc-4c71-beb6-f73a3544cbf4", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + }, + { + "title": "should view attribute 'Color' and check number of values after creation", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Create 7 new values in BO should view attribute 'Color' and check number of values after creation", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_viewAttributeColor2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numberOfValuesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewAttributeColor2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.viewAttribute(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(view_1.default.pageTitle, \" Color\"));\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfValuesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterCreation).to.equal(numberOfValues + 7);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "658d41ff-a0a5-4da1-8730-0a70df3754ad", + "parentUUID": "6783fdc8-2d40-44e3-9692-70b988ca6dee", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7319d9ce-d873-46b8-94d5-7c9b91d35371", + "644b36c6-0974-44e9-b806-f2c62883a049", + "d7acde66-719d-495e-9b49-d0cc9498c6a2", + "d73a89a8-33d7-4a57-85aa-ddc57c21b2f2", + "0aa677fe-c7eb-4aa4-949c-785175213af8", + "ec9e9e14-41ed-4f70-aba4-776d01724b54", + "dbda7acf-cc58-468f-baa1-c000e4d0af52", + "8bd72e30-75cc-4c71-beb6-f73a3544cbf4", + "658d41ff-a0a5-4da1-8730-0a70df3754ad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6473, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2f71fddc-7c19-4d42-b229-c0b68a8aeafb", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "282a3a36-ebfb-40d9-93dc-e69b8f601016", + "parentUUID": "2f71fddc-7c19-4d42-b229-c0b68a8aeafb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Pagination next and previous should click on next", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b45f7af-5390-46ba-a813-78ff04bc5a52", + "parentUUID": "2f71fddc-7c19-4d42-b229-c0b68a8aeafb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Pagination next and previous should click on previous", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b585a25a-6eb4-4df3-812f-ad8afe945e90", + "parentUUID": "2f71fddc-7c19-4d42-b229-c0b68a8aeafb", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "209e1275-f19d-4620-96f1-ce0f63758877", + "parentUUID": "2f71fddc-7c19-4d42-b229-c0b68a8aeafb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "282a3a36-ebfb-40d9-93dc-e69b8f601016", + "1b45f7af-5390-46ba-a813-78ff04bc5a52", + "b585a25a-6eb4-4df3-812f-ad8afe945e90", + "209e1275-f19d-4620-96f1-ce0f63758877" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3707, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "title": "Sort values table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_attribute' 'down' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Sort values table should sort by 'id_attribute' 'down' and check result", + "timedOut": false, + "duration": 1252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99bea9d3-57e2-4d6f-b791-738a6ec8c0b1", + "parentUUID": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'b!name' 'up' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Sort values table should sort by 'b!name' 'up' and check result", + "timedOut": false, + "duration": 1294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95488528-cbb1-4009-8d08-146df31a8a0a", + "parentUUID": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'b!name' 'down' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Sort values table should sort by 'b!name' 'down' and check result", + "timedOut": false, + "duration": 1197, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f8e2062-3524-41ce-9b44-c4ba0959606e", + "parentUUID": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!color' 'up' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Sort values table should sort by 'a!color' 'up' and check result", + "timedOut": false, + "duration": 1038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_sortByColorAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efc5df4d-a891-433d-8d63-67c71c360f7d", + "parentUUID": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!color' 'down' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Sort values table should sort by 'a!color' 'down' and check result", + "timedOut": false, + "duration": 1071, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_sortByColorDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb230994-7a05-4a0a-8a1f-5a6668a5cc9a", + "parentUUID": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!position' 'up' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Sort values table should sort by 'a!position' 'up' and check result", + "timedOut": false, + "duration": 1250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_sortByPositionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44217431-319d-4878-a795-9369894b30cf", + "parentUUID": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!position' 'down' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Sort values table should sort by 'a!position' 'down' and check result", + "timedOut": false, + "duration": 1251, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_sortByPositionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "522c4560-7b7e-4002-a2d5-7e975523aa9e", + "parentUUID": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_attribute' 'up' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Sort values table should sort by 'id_attribute' 'up' and check result", + "timedOut": false, + "duration": 1203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e0d6248-59c2-4fea-9ee4-e097a9cde7af", + "parentUUID": "48eec4c7-f6ab-4aff-8ad2-a31ed5aa4769", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99bea9d3-57e2-4d6f-b791-738a6ec8c0b1", + "95488528-cbb1-4009-8d08-146df31a8a0a", + "6f8e2062-3524-41ce-9b44-c4ba0959606e", + "efc5df4d-a891-433d-8d63-67c71c360f7d", + "bb230994-7a05-4a0a-8a1f-5a6668a5cc9a", + "44217431-319d-4878-a795-9369894b30cf", + "522c4560-7b7e-4002-a2d5-7e975523aa9e", + "8e0d6248-59c2-4fea-9ee4-e097a9cde7af" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9556, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60f1efba-7f8e-4e8a-8213-e272a46d8dba", + "title": "Bulk delete values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/01_attributes/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by value name 'toDelete'", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Bulk delete values should filter by value name 'toDelete'", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, 'b!name', 'toDelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfValuesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterFilter).to.be.at.most(numberOfValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9eeb5617-7618-4f5f-8290-75267de22936", + "parentUUID": "60f1efba-7f8e-4e8a-8213-e272a46d8dba", + "isHook": false, + "skipped": false + }, + { + "title": "should delete values with Bulk Actions and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Bulk delete values should delete values with Bulk Actions and check result", + "timedOut": false, + "duration": 640, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_bulkDeleteAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteAttributes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.bulkDeleteValues(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(view_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5730857e-346c-4521-afd3-c66d85f81ec7", + "parentUUID": "60f1efba-7f8e-4e8a-8213-e272a46d8dba", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete attribute values Bulk delete values should reset all filters", + "timedOut": false, + "duration": 2844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_attributes_values_sortPaginationAndBulkDelete_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfValuesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterReset).to.equal(numberOfValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fa2b0c9-a46d-49ed-b977-16e54f8cff88", + "parentUUID": "60f1efba-7f8e-4e8a-8213-e272a46d8dba", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9eeb5617-7618-4f5f-8290-75267de22936", + "5730857e-346c-4521-afd3-c66d85f81ec7", + "1fa2b0c9-a46d-49ed-b977-16e54f8cff88" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4427, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "21af60a2-2889-49ce-96c8-7288faad1a99", + "74e4e842-d6f0-4998-a58b-1dfb398e7ada", + "81bd1376-c9eb-4b9b-b1b6-ee6119107250", + "04a4340f-55c3-4af3-a3e4-c362ca5eebff", + "eb81dcc6-05dd-42f8-8286-728ee466d463" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8330, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c2cfaa2e-b5ea-427f-a948-c50d514f33d2", + "title": "BO - Catalog - Attributes & Features : CRUD features and values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : CRUD features and values\"", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values \"before all\" hook in \"BO - Catalog - Attributes & Features : CRUD features and values\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb421914-d115-4903-845e-e1dccbdd2234", + "parentUUID": "c2cfaa2e-b5ea-427f-a948-c50d514f33d2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : CRUD features and values\"", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values \"after all\" hook in \"BO - Catalog - Attributes & Features : CRUD features and values\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7c5e6ed8-79a2-4bf0-b8d2-cf6e3685b88d", + "parentUUID": "c2cfaa2e-b5ea-427f-a948-c50d514f33d2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values should login in BO", + "timedOut": false, + "duration": 1847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f239488-7129-494e-8859-595cce08c353", + "parentUUID": "c2cfaa2e-b5ea-427f-a948-c50d514f33d2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & features' page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values should go to 'Catalog > Attributes & features' page", + "timedOut": false, + "duration": 4676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be89b205-c29a-4b36-8552-edf803953df0", + "parentUUID": "c2cfaa2e-b5ea-427f-a948-c50d514f33d2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values should go to Features page", + "timedOut": false, + "duration": 1084, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60fe4724-0ce1-4fa2-95cb-cc183d5264f0", + "parentUUID": "c2cfaa2e-b5ea-427f-a948-c50d514f33d2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of features in BO", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values should reset all filters and get number of features in BO", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1f847dc-848e-4739-bbf6-2e0c66660c8a", + "parentUUID": "c2cfaa2e-b5ea-427f-a948-c50d514f33d2", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e917e45e-9cfe-4395-ba4a-f6ddcb9024f9", + "title": "Create feature", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Create feature should go to add new feature page", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3af5872-d540-4931-89b1-048905d001d5", + "parentUUID": "e917e45e-9cfe-4395-ba4a-f6ddcb9024f9", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Create feature should create feature", + "timedOut": false, + "duration": 1099, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddaa2881-1995-4355-a9b1-49973727c77c", + "parentUUID": "e917e45e-9cfe-4395-ba4a-f6ddcb9024f9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c3af5872-d540-4931-89b1-048905d001d5", + "ddaa2881-1995-4355-a9b1-49973727c77c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1942, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bf115be1-4675-4487-bfbf-466bf8225544", + "title": "View feature", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list of features by the created feature", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values View feature should filter list of features by the created feature", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_filterFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, 'name', createFeatureData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createFeatureData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d24742f2-e860-4793-90ea-d13ba5c56448", + "parentUUID": "bf115be1-4675-4487-bfbf-466bf8225544", + "isHook": false, + "skipped": false + }, + { + "title": "should view feature", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values View feature should view feature", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_viewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.viewFeature(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(createFeatureData.name, \" \\u2022 \").concat(global.INSTALL.SHOP_NAME));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34104806-f01c-4078-8aa2-78ca9bd201f5", + "parentUUID": "bf115be1-4675-4487-bfbf-466bf8225544", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d24742f2-e860-4793-90ea-d13ba5c56448", + "34104806-f01c-4078-8aa2-78ca9bd201f5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1727, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "77abb475-476d-4550-a83f-7eb04b587de7", + "title": "Create value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new value page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Create value should go to add new value page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_goToAddNewValuePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewValuePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToAddNewValuePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(addValue_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a2233cb-3b14-4f50-910a-07336a11e026", + "parentUUID": "77abb475-476d-4550-a83f-7eb04b587de7", + "isHook": false, + "skipped": false + }, + { + "title": "should create value", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Create value should create value", + "timedOut": false, + "duration": 415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_createNewValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addValue_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "834b87e3-e7b0-4759-94b0-021cf9062943", + "parentUUID": "77abb475-476d-4550-a83f-7eb04b587de7", + "isHook": false, + "skipped": false + }, + { + "title": "should create a second value", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Create value should create a second value", + "timedOut": false, + "duration": 952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_createSecondValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSecondValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createSecondFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd876b63-5536-422b-be48-7ae25ea50d96", + "parentUUID": "77abb475-476d-4550-a83f-7eb04b587de7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0a2233cb-3b14-4f50-910a-07336a11e026", + "834b87e3-e7b0-4759-94b0-021cf9062943", + "cd876b63-5536-422b-be48-7ae25ea50d96" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2173, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3057acdc-c52a-4ae1-a5c5-f6f5e630289e", + "title": "View value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view feature and check number of values after creation", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values View value should view feature and check number of values after creation", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_viewFeature1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numberOfValuesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewFeature1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 2:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(createFeatureData.name, \" \\u2022 \").concat(global.INSTALL.SHOP_NAME));\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfValuesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterCreation).to.equal(numberOfValues + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71dfaa8c-7d94-46f9-b9a7-b3e5895b47b0", + "parentUUID": "3057acdc-c52a-4ae1-a5c5-f6f5e630289e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "71dfaa8c-7d94-46f9-b9a7-b3e5895b47b0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c0db16a2-feb3-4952-9a7b-36c4011d5f3e", + "title": "Update value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit the second value page", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Update value should go to edit the second value page", + "timedOut": false, + "duration": 783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_goToEditValuePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditValuePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToEditValuePage(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(addValue_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4b7e36b-8e2f-4712-94fb-aa6c341f1796", + "parentUUID": "c0db16a2-feb3-4952-9a7b-36c4011d5f3e", + "isHook": false, + "skipped": false + }, + { + "title": "should update the second value", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Update value should update the second value", + "timedOut": false, + "duration": 988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_editValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.addEditValue(page, editSecondFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba9cf27b-9c59-4765-81c2-28acee1dce6c", + "parentUUID": "c0db16a2-feb3-4952-9a7b-36c4011d5f3e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4b7e36b-8e2f-4712-94fb-aa6c341f1796", + "ba9cf27b-9c59-4765-81c2-28acee1dce6c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1771, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "745c7b12-6566-469f-857e-da779f314912", + "title": "Update feature", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Back to the list' button", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Update feature should click on 'Back to the list' button", + "timedOut": false, + "duration": 835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_backToTheListForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToTheListForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.clickOnBackToTheListButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a966db5-8e92-4dee-8c3b-45af648a887a", + "parentUUID": "745c7b12-6566-469f-857e-da779f314912", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of features by the created feature", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Update feature should filter list of features by the created feature", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_filterFeatureForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterFeatureForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, 'name', createFeatureData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createFeatureData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64eb2e9c-19c9-4391-be8f-2419873742a9", + "parentUUID": "745c7b12-6566-469f-857e-da779f314912", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the created feature", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Update feature should edit the created feature", + "timedOut": false, + "duration": 1906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_editFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.clickOnEditFeature(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, editFeatureData)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(addFeature_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a28b7581-727c-4a61-9f41-26a47bc00011", + "parentUUID": "745c7b12-6566-469f-857e-da779f314912", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3a966db5-8e92-4dee-8c3b-45af648a887a", + "64eb2e9c-19c9-4391-be8f-2419873742a9", + "a28b7581-727c-4a61-9f41-26a47bc00011" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3681, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb27f70c-106d-449a-b6fb-f0f3beb4bbc3", + "title": "Delete value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view feature", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Delete value should view feature", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_viewFeature2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewFeature2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.viewFeature(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(editFeatureData.name, \" \\u2022 \").concat(global.INSTALL.SHOP_NAME));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58d94794-8b01-410e-93a4-22df467183e6", + "parentUUID": "bb27f70c-106d-449a-b6fb-f0f3beb4bbc3", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the second value", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Delete value should delete the second value", + "timedOut": false, + "duration": 1461, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_deleteValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.deleteValue(page, 2)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c9964ac-8095-402e-80e3-1aa2526acbf0", + "parentUUID": "bb27f70c-106d-449a-b6fb-f0f3beb4bbc3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "58d94794-8b01-410e-93a4-22df467183e6", + "3c9964ac-8095-402e-80e3-1aa2526acbf0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2248, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2d714d81-c8e3-447d-ba2a-e7a7dec95364", + "title": "Delete feature", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/01_CRUDFeaturesAndValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Back to the list' button", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Delete feature should click on 'Back to the list' button", + "timedOut": false, + "duration": 783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_backToTheListForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToTheListForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.clickOnBackToTheListButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5be38fd0-1e9b-4b38-adc5-d7599b1add96", + "parentUUID": "2d714d81-c8e3-447d-ba2a-e7a7dec95364", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of features by the created feature", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Delete feature should filter list of features by the created feature", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_filterFeatureForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterFeatureForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, 'name', editFeatureData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editFeatureData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66775dc0-38d6-4496-8138-8d3f4af40d59", + "parentUUID": "2d714d81-c8e3-447d-ba2a-e7a7dec95364", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created feature", + "fullTitle": "BO - Catalog - Attributes & Features : CRUD features and values Delete feature should delete the created feature", + "timedOut": false, + "duration": 1501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_CRUDFeaturesAndValues_deleteFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.deleteFeature(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad2560a4-cefd-484e-bda7-91b7cdd60851", + "parentUUID": "2d714d81-c8e3-447d-ba2a-e7a7dec95364", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5be38fd0-1e9b-4b38-adc5-d7599b1add96", + "66775dc0-38d6-4496-8138-8d3f4af40d59", + "ad2560a4-cefd-484e-bda7-91b7cdd60851" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3227, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "4f239488-7129-494e-8859-595cce08c353", + "be89b205-c29a-4b36-8552-edf803953df0", + "60fe4724-0ce1-4fa2-95cb-cc183d5264f0", + "c1f847dc-848e-4739-bbf6-2e0c66660c8a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7638, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c770d80a-956d-42c5-abca-f5ef10aa1b94", + "title": "BO - Catalog - Attributes & Features : Filter features table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/01_filterFeatures.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/01_filterFeatures.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Filter features table\"", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table \"before all\" hook in \"BO - Catalog - Attributes & Features : Filter features table\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5a41d2a-5419-43ca-989b-e9151c841dff", + "parentUUID": "c770d80a-956d-42c5-abca-f5ef10aa1b94", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Filter features table\"", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table \"after all\" hook in \"BO - Catalog - Attributes & Features : Filter features table\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8da2507a-2b7f-4be8-a748-e36f27e84523", + "parentUUID": "c770d80a-956d-42c5-abca-f5ef10aa1b94", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table should login in BO", + "timedOut": false, + "duration": 1830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddbd93fc-0cdb-4b86-9ce0-fc1f7d404821", + "parentUUID": "c770d80a-956d-42c5-abca-f5ef10aa1b94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table should go to 'Catalog > Attributes & features' page", + "timedOut": false, + "duration": 4673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f720ad0e-28b1-4484-90ba-1b789cc55543", + "parentUUID": "c770d80a-956d-42c5-abca-f5ef10aa1b94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to features page", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table should go to features page", + "timedOut": false, + "duration": 1049, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6269f9f1-319d-465c-b3c2-f3d1a282b76f", + "parentUUID": "c770d80a-956d-42c5-abca-f5ef10aa1b94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of features in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table should reset all filters and get number of features in BO", + "timedOut": false, + "duration": 2894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2783e63f-702b-4440-bc2f-b63469a8f7cd", + "parentUUID": "c770d80a-956d-42c5-abca-f5ef10aa1b94", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "3e5c7b36-a2ea-46b9-b165-eba0877ca529", + "title": "Filter features", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/01_filterFeatures.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/01_filterFeatures.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_feature '1'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table Filter features should filter by id_feature '1'", + "timedOut": false, + "duration": 929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfFeaturesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesAfterFilter).to.be.at.most(numberOfFeatures);\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7b9c75e-48f2-40cf-bfb6-34b98f851e1c", + "parentUUID": "3e5c7b36-a2ea-46b9-b165-eba0877ca529", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table Filter features should reset all filters", + "timedOut": false, + "duration": 2842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeaturesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesAfterReset).to.equal(numberOfFeatures);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d05c582f-334f-4799-b45f-23cdcaaf2cf3", + "parentUUID": "3e5c7b36-a2ea-46b9-b165-eba0877ca529", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Composition'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table Filter features should filter by name 'Composition'", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfFeaturesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesAfterFilter).to.be.at.most(numberOfFeatures);\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1407d28e-4bda-41bd-8332-6eb89765cba9", + "parentUUID": "3e5c7b36-a2ea-46b9-b165-eba0877ca529", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table Filter features should reset all filters", + "timedOut": false, + "duration": 2851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeaturesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesAfterReset).to.equal(numberOfFeatures);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1bbef09-2922-4374-bf51-9a25995d6861", + "parentUUID": "3e5c7b36-a2ea-46b9-b165-eba0877ca529", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by position '1'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table Filter features should filter by position '1'", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_filterPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, test.args.filterBy, typeof test.args.filterValue === 'number' ? test.args.filterValue.toString() : test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfFeaturesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesAfterFilter).to.be.at.most(numberOfFeatures);\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4a2b9b6-3ffb-4080-809d-14479b20ab0d", + "parentUUID": "3e5c7b36-a2ea-46b9-b165-eba0877ca529", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter features table Filter features should reset all filters", + "timedOut": false, + "duration": 2842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_filterFeatures_filterPositionReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeaturesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesAfterReset).to.equal(numberOfFeatures);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2f33678-7c0b-40fc-9418-a548b09b39c2", + "parentUUID": "3e5c7b36-a2ea-46b9-b165-eba0877ca529", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c7b9c75e-48f2-40cf-bfb6-34b98f851e1c", + "d05c582f-334f-4799-b45f-23cdcaaf2cf3", + "1407d28e-4bda-41bd-8332-6eb89765cba9", + "f1bbef09-2922-4374-bf51-9a25995d6861", + "e4a2b9b6-3ffb-4080-809d-14479b20ab0d", + "e2f33678-7c0b-40fc-9418-a548b09b39c2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11318, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "ddbd93fc-0cdb-4b86-9ce0-fc1f7d404821", + "f720ad0e-28b1-4484-90ba-1b789cc55543", + "6269f9f1-319d-465c-b3c2-f3d1a282b76f", + "2783e63f-702b-4440-bc2f-b63469a8f7cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10446, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "24a0667e-7369-4ac0-b10e-27e34d56181d", + "title": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features \"before all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7734173-b332-4632-ae43-fa038128dedc", + "parentUUID": "24a0667e-7369-4ac0-b10e-27e34d56181d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features \"after all\" hook in \"BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e5499376-b3f9-4614-a9ab-44f281a424f6", + "parentUUID": "24a0667e-7369-4ac0-b10e-27e34d56181d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "45f12dce-f6bf-4bed-be1f-a757ae8abb7e", + "title": "PRE-TEST: Create feature 'toDelete0'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete0'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete0' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete0'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0445ad79-89b2-4055-8bb0-9e7ecad7d29a", + "parentUUID": "45f12dce-f6bf-4bed-be1f-a757ae8abb7e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete0'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete0' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete0'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "40018179-d818-43ae-8c68-fe8c67a597e6", + "parentUUID": "45f12dce-f6bf-4bed-be1f-a757ae8abb7e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete0' should login in BO", + "timedOut": false, + "duration": 1817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c907acea-63c1-4371-b02a-134fd79074a3", + "parentUUID": "45f12dce-f6bf-4bed-be1f-a757ae8abb7e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete0' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest0_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92f105a1-a7ac-47cb-b90e-f2261726c9f1", + "parentUUID": "45f12dce-f6bf-4bed-be1f-a757ae8abb7e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete0' should go to Features page", + "timedOut": false, + "duration": 1097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest0_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed1d100b-1fe3-48e3-84c3-4a6a48a44c6b", + "parentUUID": "45f12dce-f6bf-4bed-be1f-a757ae8abb7e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete0' should go to add new feature page", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest0_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b75ea4e5-3c92-438c-af1f-10f239e9881e", + "parentUUID": "45f12dce-f6bf-4bed-be1f-a757ae8abb7e", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete0' should create feature", + "timedOut": false, + "duration": 1068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest0_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "888a126e-fa2d-4351-b015-d56d2a06a898", + "parentUUID": "45f12dce-f6bf-4bed-be1f-a757ae8abb7e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c907acea-63c1-4371-b02a-134fd79074a3", + "92f105a1-a7ac-47cb-b90e-f2261726c9f1", + "ed1d100b-1fe3-48e3-84c3-4a6a48a44c6b", + "b75ea4e5-3c92-438c-af1f-10f239e9881e", + "888a126e-fa2d-4351-b015-d56d2a06a898" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9460, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3c16f15b-080d-41e7-8dcc-9ce71e1d5526", + "title": "PRE-TEST: Create feature 'toDelete1'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete1'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete1' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete1'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65ec49ee-9bc4-40cd-a105-5bf6cfc58d47", + "parentUUID": "3c16f15b-080d-41e7-8dcc-9ce71e1d5526", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete1'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete1' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete1'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5db2485a-05df-4c47-a515-dab9384d2697", + "parentUUID": "3c16f15b-080d-41e7-8dcc-9ce71e1d5526", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete1' should login in BO", + "timedOut": false, + "duration": 1818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d55bc0a6-0aef-4bb3-b7c0-7c4666702190", + "parentUUID": "3c16f15b-080d-41e7-8dcc-9ce71e1d5526", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete1' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4656, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest1_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d40cd424-f8a7-4ba7-959d-23bac25d0c31", + "parentUUID": "3c16f15b-080d-41e7-8dcc-9ce71e1d5526", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete1' should go to Features page", + "timedOut": false, + "duration": 1098, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest1_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "931a72b6-34a9-4b3c-8ab5-381e3973432a", + "parentUUID": "3c16f15b-080d-41e7-8dcc-9ce71e1d5526", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete1' should go to add new feature page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest1_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "315631e7-6034-405c-b226-b001bcbad98d", + "parentUUID": "3c16f15b-080d-41e7-8dcc-9ce71e1d5526", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete1' should create feature", + "timedOut": false, + "duration": 1078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest1_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74b07782-2c11-4954-a262-244f8ce4fcd2", + "parentUUID": "3c16f15b-080d-41e7-8dcc-9ce71e1d5526", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d55bc0a6-0aef-4bb3-b7c0-7c4666702190", + "d40cd424-f8a7-4ba7-959d-23bac25d0c31", + "931a72b6-34a9-4b3c-8ab5-381e3973432a", + "315631e7-6034-405c-b226-b001bcbad98d", + "74b07782-2c11-4954-a262-244f8ce4fcd2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9463, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "33ce66ac-2965-4680-84e3-cc9e3ef65202", + "title": "PRE-TEST: Create feature 'toDelete2'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete2'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete2' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete2'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b02c8ee-739b-4bb5-ab4c-ecd5384b78e3", + "parentUUID": "33ce66ac-2965-4680-84e3-cc9e3ef65202", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete2'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete2' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete2'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b0ae5f7d-2435-465b-8adc-2c351b0fa2b3", + "parentUUID": "33ce66ac-2965-4680-84e3-cc9e3ef65202", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete2' should login in BO", + "timedOut": false, + "duration": 1806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fe40dc1-3196-45af-80f3-64709a11388f", + "parentUUID": "33ce66ac-2965-4680-84e3-cc9e3ef65202", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete2' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest2_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b2a8c10-c054-42a8-91b9-ff18b3f3e532", + "parentUUID": "33ce66ac-2965-4680-84e3-cc9e3ef65202", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete2' should go to Features page", + "timedOut": false, + "duration": 1096, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest2_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c52a19b1-0905-4f08-a9cc-17c7c64257bf", + "parentUUID": "33ce66ac-2965-4680-84e3-cc9e3ef65202", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete2' should go to add new feature page", + "timedOut": false, + "duration": 807, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest2_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2456b0b0-3f57-4fc9-915d-c4b48f4b5035", + "parentUUID": "33ce66ac-2965-4680-84e3-cc9e3ef65202", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete2' should create feature", + "timedOut": false, + "duration": 1081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest2_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d6cab0d-edb1-4a42-853e-217f2d07d7d7", + "parentUUID": "33ce66ac-2965-4680-84e3-cc9e3ef65202", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8fe40dc1-3196-45af-80f3-64709a11388f", + "1b2a8c10-c054-42a8-91b9-ff18b3f3e532", + "c52a19b1-0905-4f08-a9cc-17c7c64257bf", + "2456b0b0-3f57-4fc9-915d-c4b48f4b5035", + "2d6cab0d-edb1-4a42-853e-217f2d07d7d7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9464, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "57cdf386-07b2-4e93-be27-6489f8aef504", + "title": "PRE-TEST: Create feature 'toDelete3'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete3'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete3' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete3'\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d9eaa54-a7d3-4000-808b-24d4d4ac83ec", + "parentUUID": "57cdf386-07b2-4e93-be27-6489f8aef504", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete3'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete3' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete3'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bb04905e-603c-460e-8824-85c15d48eb32", + "parentUUID": "57cdf386-07b2-4e93-be27-6489f8aef504", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete3' should login in BO", + "timedOut": false, + "duration": 1841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7914f02f-423a-4277-bc66-66b3d5fc7ffd", + "parentUUID": "57cdf386-07b2-4e93-be27-6489f8aef504", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete3' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest3_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01a693af-53be-4d50-9a80-5ab66cbca29d", + "parentUUID": "57cdf386-07b2-4e93-be27-6489f8aef504", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete3' should go to Features page", + "timedOut": false, + "duration": 1105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest3_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97839b7e-e4d8-4e2c-88a8-2c133c0a10ce", + "parentUUID": "57cdf386-07b2-4e93-be27-6489f8aef504", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete3' should go to add new feature page", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest3_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22feef9f-2c22-43f6-a323-1c6ef3753a08", + "parentUUID": "57cdf386-07b2-4e93-be27-6489f8aef504", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete3' should create feature", + "timedOut": false, + "duration": 1096, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest3_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb3e1785-c34f-4fb4-821d-c8dde5f5eaab", + "parentUUID": "57cdf386-07b2-4e93-be27-6489f8aef504", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7914f02f-423a-4277-bc66-66b3d5fc7ffd", + "01a693af-53be-4d50-9a80-5ab66cbca29d", + "97839b7e-e4d8-4e2c-88a8-2c133c0a10ce", + "22feef9f-2c22-43f6-a323-1c6ef3753a08", + "bb3e1785-c34f-4fb4-821d-c8dde5f5eaab" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9557, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "50c0b576-b9f0-4605-850b-9ffd8f5f19df", + "title": "PRE-TEST: Create feature 'toDelete4'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete4'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete4' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete4'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6e7e672-75d3-47e1-bfde-0be3d0884532", + "parentUUID": "50c0b576-b9f0-4605-850b-9ffd8f5f19df", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete4'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete4' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete4'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6434be73-bda4-48fe-acbb-48cedf2fd325", + "parentUUID": "50c0b576-b9f0-4605-850b-9ffd8f5f19df", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete4' should login in BO", + "timedOut": false, + "duration": 1856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "128399ec-062f-4d44-8e40-448e5bbefaa2", + "parentUUID": "50c0b576-b9f0-4605-850b-9ffd8f5f19df", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete4' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest4_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7373e99-4149-4bc3-9f6e-bdd5950f64f8", + "parentUUID": "50c0b576-b9f0-4605-850b-9ffd8f5f19df", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete4' should go to Features page", + "timedOut": false, + "duration": 1092, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest4_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a39b8625-2e9f-49e4-95bc-6675025638c4", + "parentUUID": "50c0b576-b9f0-4605-850b-9ffd8f5f19df", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete4' should go to add new feature page", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest4_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "007e3810-eeb5-4522-a78a-08df7df0c1fa", + "parentUUID": "50c0b576-b9f0-4605-850b-9ffd8f5f19df", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete4' should create feature", + "timedOut": false, + "duration": 1091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest4_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd93db66-6a4f-4ec4-be58-88092e0c939c", + "parentUUID": "50c0b576-b9f0-4605-850b-9ffd8f5f19df", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "128399ec-062f-4d44-8e40-448e5bbefaa2", + "b7373e99-4149-4bc3-9f6e-bdd5950f64f8", + "a39b8625-2e9f-49e4-95bc-6675025638c4", + "007e3810-eeb5-4522-a78a-08df7df0c1fa", + "cd93db66-6a4f-4ec4-be58-88092e0c939c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9530, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a12c26f8-3584-45a6-9e6c-fc500582fa37", + "title": "PRE-TEST: Create feature 'toDelete5'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete5'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete5' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete5'\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36f5ed35-5565-4743-a927-ba386f394f2d", + "parentUUID": "a12c26f8-3584-45a6-9e6c-fc500582fa37", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete5'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete5' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete5'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "63a7b798-d468-45bd-8af7-a888681d9306", + "parentUUID": "a12c26f8-3584-45a6-9e6c-fc500582fa37", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete5' should login in BO", + "timedOut": false, + "duration": 1824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51a518bc-5055-4305-9a4d-0376bd6567ff", + "parentUUID": "a12c26f8-3584-45a6-9e6c-fc500582fa37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete5' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest5_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d12900b0-ef12-4912-89b3-0b67f478c713", + "parentUUID": "a12c26f8-3584-45a6-9e6c-fc500582fa37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete5' should go to Features page", + "timedOut": false, + "duration": 1091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest5_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "450effb6-f474-45d0-8370-9c5ebdf186d0", + "parentUUID": "a12c26f8-3584-45a6-9e6c-fc500582fa37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete5' should go to add new feature page", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest5_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99d0e8ce-db03-444d-a209-1cb481538abe", + "parentUUID": "a12c26f8-3584-45a6-9e6c-fc500582fa37", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete5' should create feature", + "timedOut": false, + "duration": 1091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest5_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8b965e5-dad6-4a0b-8925-1e6a6f8967c2", + "parentUUID": "a12c26f8-3584-45a6-9e6c-fc500582fa37", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "51a518bc-5055-4305-9a4d-0376bd6567ff", + "d12900b0-ef12-4912-89b3-0b67f478c713", + "450effb6-f474-45d0-8370-9c5ebdf186d0", + "99d0e8ce-db03-444d-a209-1cb481538abe", + "f8b965e5-dad6-4a0b-8925-1e6a6f8967c2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9490, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "39fb2f6b-0dae-4b27-af5c-bd41a4850d70", + "title": "PRE-TEST: Create feature 'toDelete6'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete6'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete6' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete6'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2e073a4-f6da-474a-86a2-d84dcffa0e6a", + "parentUUID": "39fb2f6b-0dae-4b27-af5c-bd41a4850d70", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete6'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete6' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete6'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ba19c9c0-520f-4c66-9b58-a385ea6f4238", + "parentUUID": "39fb2f6b-0dae-4b27-af5c-bd41a4850d70", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete6' should login in BO", + "timedOut": false, + "duration": 1843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47987855-c264-4343-bc8e-83725c310bff", + "parentUUID": "39fb2f6b-0dae-4b27-af5c-bd41a4850d70", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete6' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest6_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a02a8904-16cf-4424-b2af-5f9fcef26ed5", + "parentUUID": "39fb2f6b-0dae-4b27-af5c-bd41a4850d70", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete6' should go to Features page", + "timedOut": false, + "duration": 1104, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest6_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cff107fd-87fd-4632-a75d-5589b99e927e", + "parentUUID": "39fb2f6b-0dae-4b27-af5c-bd41a4850d70", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete6' should go to add new feature page", + "timedOut": false, + "duration": 826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest6_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc5362ea-2eac-49ad-a4c2-958d25e7e398", + "parentUUID": "39fb2f6b-0dae-4b27-af5c-bd41a4850d70", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete6' should create feature", + "timedOut": false, + "duration": 1091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest6_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c663259-d3cb-46d8-8a01-668628c619f3", + "parentUUID": "39fb2f6b-0dae-4b27-af5c-bd41a4850d70", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "47987855-c264-4343-bc8e-83725c310bff", + "a02a8904-16cf-4424-b2af-5f9fcef26ed5", + "cff107fd-87fd-4632-a75d-5589b99e927e", + "bc5362ea-2eac-49ad-a4c2-958d25e7e398", + "3c663259-d3cb-46d8-8a01-668628c619f3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9547, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "08e77f08-e6ad-4c52-8ee3-2ccaede0300e", + "title": "PRE-TEST: Create feature 'toDelete7'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete7'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete7' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete7'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61f06173-b88b-45c2-ab53-2ac0996791bb", + "parentUUID": "08e77f08-e6ad-4c52-8ee3-2ccaede0300e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete7'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete7' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete7'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e6060f34-d117-474b-9b9d-312630218529", + "parentUUID": "08e77f08-e6ad-4c52-8ee3-2ccaede0300e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete7' should login in BO", + "timedOut": false, + "duration": 1845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eca142d8-35e1-484a-8418-9786b8719698", + "parentUUID": "08e77f08-e6ad-4c52-8ee3-2ccaede0300e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete7' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest7_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dc6802c-b347-49ca-8e8e-738bd394c885", + "parentUUID": "08e77f08-e6ad-4c52-8ee3-2ccaede0300e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete7' should go to Features page", + "timedOut": false, + "duration": 1102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest7_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a390bd63-c831-4799-bff1-aa4a56cd89c9", + "parentUUID": "08e77f08-e6ad-4c52-8ee3-2ccaede0300e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete7' should go to add new feature page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest7_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2f76f0c-3142-4842-a29e-9edc2d9af263", + "parentUUID": "08e77f08-e6ad-4c52-8ee3-2ccaede0300e", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete7' should create feature", + "timedOut": false, + "duration": 1107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest7_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "353ae94f-2c30-4f75-a69e-b9b22cf78eef", + "parentUUID": "08e77f08-e6ad-4c52-8ee3-2ccaede0300e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eca142d8-35e1-484a-8418-9786b8719698", + "5dc6802c-b347-49ca-8e8e-738bd394c885", + "a390bd63-c831-4799-bff1-aa4a56cd89c9", + "a2f76f0c-3142-4842-a29e-9edc2d9af263", + "353ae94f-2c30-4f75-a69e-b9b22cf78eef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9540, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "59acfba0-db9c-4a0c-a488-4dd832d1de92", + "title": "PRE-TEST: Create feature 'toDelete8'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete8'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete8' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete8'\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34c43c5a-6cd2-4b2d-b2f7-796909433e30", + "parentUUID": "59acfba0-db9c-4a0c-a488-4dd832d1de92", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete8'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete8' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete8'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "19aacb96-5b58-4da7-be90-fe8aa4ad4ec4", + "parentUUID": "59acfba0-db9c-4a0c-a488-4dd832d1de92", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete8' should login in BO", + "timedOut": false, + "duration": 1812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "283af226-d102-4d23-bb12-1b955e451bd2", + "parentUUID": "59acfba0-db9c-4a0c-a488-4dd832d1de92", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete8' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest8_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1b26559-b58b-4123-a95d-c01db09048c9", + "parentUUID": "59acfba0-db9c-4a0c-a488-4dd832d1de92", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete8' should go to Features page", + "timedOut": false, + "duration": 1113, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest8_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a923b91d-ec37-4234-9652-b76f1cb9b19b", + "parentUUID": "59acfba0-db9c-4a0c-a488-4dd832d1de92", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete8' should go to add new feature page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest8_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee3227cb-467f-467c-b55b-054a9fd01f04", + "parentUUID": "59acfba0-db9c-4a0c-a488-4dd832d1de92", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete8' should create feature", + "timedOut": false, + "duration": 1107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest8_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fca5f91f-525c-47ff-a912-b2e2c7d51e61", + "parentUUID": "59acfba0-db9c-4a0c-a488-4dd832d1de92", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "283af226-d102-4d23-bb12-1b955e451bd2", + "e1b26559-b58b-4123-a95d-c01db09048c9", + "a923b91d-ec37-4234-9652-b76f1cb9b19b", + "ee3227cb-467f-467c-b55b-054a9fd01f04", + "fca5f91f-525c-47ff-a912-b2e2c7d51e61" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9510, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "02fb1980-2ae2-48ba-a383-2f1d3c7532e0", + "title": "PRE-TEST: Create feature 'toDelete9'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete9'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete9' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete9'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ff053c6-9799-44ad-8b19-62597f8c764e", + "parentUUID": "02fb1980-2ae2-48ba-a383-2f1d3c7532e0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete9'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete9' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete9'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4b043058-a515-4a75-9d4d-209248322ec7", + "parentUUID": "02fb1980-2ae2-48ba-a383-2f1d3c7532e0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete9' should login in BO", + "timedOut": false, + "duration": 1885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbd9c1e4-c22f-4a95-8c76-bf76653c7313", + "parentUUID": "02fb1980-2ae2-48ba-a383-2f1d3c7532e0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete9' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest9_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "617b3dc7-40a3-4fc0-9e97-4b070edff603", + "parentUUID": "02fb1980-2ae2-48ba-a383-2f1d3c7532e0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete9' should go to Features page", + "timedOut": false, + "duration": 1092, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest9_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd041e70-f0b6-4977-8b62-2830d9ec51fc", + "parentUUID": "02fb1980-2ae2-48ba-a383-2f1d3c7532e0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete9' should go to add new feature page", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest9_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c319282-7858-46b2-b700-182cb7ba6741", + "parentUUID": "02fb1980-2ae2-48ba-a383-2f1d3c7532e0", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete9' should create feature", + "timedOut": false, + "duration": 1103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest9_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c424d3a5-93ef-4757-b69b-b072a9569620", + "parentUUID": "02fb1980-2ae2-48ba-a383-2f1d3c7532e0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dbd9c1e4-c22f-4a95-8c76-bf76653c7313", + "617b3dc7-40a3-4fc0-9e97-4b070edff603", + "fd041e70-f0b6-4977-8b62-2830d9ec51fc", + "0c319282-7858-46b2-b700-182cb7ba6741", + "c424d3a5-93ef-4757-b69b-b072a9569620" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9568, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "acd1d61a-5175-462e-99e5-5f3facf2021d", + "title": "PRE-TEST: Create feature 'toDelete10'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete10'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete10' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete10'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a69fe37a-5918-4189-ab11-7a12e16d0d8a", + "parentUUID": "acd1d61a-5175-462e-99e5-5f3facf2021d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete10'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete10' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete10'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "16330b0b-0f09-408f-ab84-6dfde0cf6af1", + "parentUUID": "acd1d61a-5175-462e-99e5-5f3facf2021d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete10' should login in BO", + "timedOut": false, + "duration": 1842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c246f76a-9ada-48b9-95b1-5ea7ee94a869", + "parentUUID": "acd1d61a-5175-462e-99e5-5f3facf2021d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete10' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest10_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "683d296f-a13f-49eb-9b26-9558715656c2", + "parentUUID": "acd1d61a-5175-462e-99e5-5f3facf2021d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete10' should go to Features page", + "timedOut": false, + "duration": 1116, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest10_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3373a0ec-fca6-4c9d-8a75-9e3f60108074", + "parentUUID": "acd1d61a-5175-462e-99e5-5f3facf2021d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete10' should go to add new feature page", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest10_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "123fa115-b1f8-4617-b574-0b31143c163c", + "parentUUID": "acd1d61a-5175-462e-99e5-5f3facf2021d", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete10' should create feature", + "timedOut": false, + "duration": 1085, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest10_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cdbbfcd-1d74-45a9-96a2-515e425434d7", + "parentUUID": "acd1d61a-5175-462e-99e5-5f3facf2021d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c246f76a-9ada-48b9-95b1-5ea7ee94a869", + "683d296f-a13f-49eb-9b26-9558715656c2", + "3373a0ec-fca6-4c9d-8a75-9e3f60108074", + "123fa115-b1f8-4617-b574-0b31143c163c", + "1cdbbfcd-1d74-45a9-96a2-515e425434d7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9535, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f7b6ea88-3da7-479e-83b6-65178c645da0", + "title": "PRE-TEST: Create feature 'toDelete11'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete11'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete11' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete11'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2259aa62-86cf-436c-b65b-6ad5c4e0b0aa", + "parentUUID": "f7b6ea88-3da7-479e-83b6-65178c645da0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete11'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete11' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete11'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "05e89fc1-58d9-405c-b1b8-02d5ab6e0f6a", + "parentUUID": "f7b6ea88-3da7-479e-83b6-65178c645da0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete11' should login in BO", + "timedOut": false, + "duration": 1824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e6e95f8-7a0d-4b86-996c-8394a0edea5c", + "parentUUID": "f7b6ea88-3da7-479e-83b6-65178c645da0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete11' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest11_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04d6683e-3873-487c-ac1f-c56313e0535f", + "parentUUID": "f7b6ea88-3da7-479e-83b6-65178c645da0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete11' should go to Features page", + "timedOut": false, + "duration": 1106, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest11_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "590f5c12-7f6d-4c78-bd2f-b576c4c1e434", + "parentUUID": "f7b6ea88-3da7-479e-83b6-65178c645da0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete11' should go to add new feature page", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest11_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "041d5c1c-633f-4d65-abae-b74dfc553a4e", + "parentUUID": "f7b6ea88-3da7-479e-83b6-65178c645da0", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete11' should create feature", + "timedOut": false, + "duration": 1113, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest11_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d53def63-1283-4b00-82de-5f2b849cbb2c", + "parentUUID": "f7b6ea88-3da7-479e-83b6-65178c645da0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5e6e95f8-7a0d-4b86-996c-8394a0edea5c", + "04d6683e-3873-487c-ac1f-c56313e0535f", + "590f5c12-7f6d-4c78-bd2f-b576c4c1e434", + "041d5c1c-633f-4d65-abae-b74dfc553a4e", + "d53def63-1283-4b00-82de-5f2b849cbb2c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9528, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b037da34-7435-4af3-b3c4-ce8720b4d874", + "title": "PRE-TEST: Create feature 'toDelete12'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete12'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete12' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete12'\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c80a2c3-4d92-4e20-8580-33e916ec937d", + "parentUUID": "b037da34-7435-4af3-b3c4-ce8720b4d874", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete12'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete12' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete12'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1c098370-e243-4374-9a72-fb18a027f89f", + "parentUUID": "b037da34-7435-4af3-b3c4-ce8720b4d874", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete12' should login in BO", + "timedOut": false, + "duration": 1854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5a63a09-3b74-4b74-b4d7-be04b395f604", + "parentUUID": "b037da34-7435-4af3-b3c4-ce8720b4d874", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete12' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest12_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4065da37-6d41-4aab-bfee-ece282f62ee4", + "parentUUID": "b037da34-7435-4af3-b3c4-ce8720b4d874", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete12' should go to Features page", + "timedOut": false, + "duration": 1094, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest12_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9612731c-231a-4402-adee-2048a25d1ad6", + "parentUUID": "b037da34-7435-4af3-b3c4-ce8720b4d874", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete12' should go to add new feature page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest12_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dfb33c4-6e20-4a57-aff1-7a4424fe966d", + "parentUUID": "b037da34-7435-4af3-b3c4-ce8720b4d874", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete12' should create feature", + "timedOut": false, + "duration": 1095, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest12_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f6354cc-8497-4a7a-b001-9a9a0b50b7eb", + "parentUUID": "b037da34-7435-4af3-b3c4-ce8720b4d874", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d5a63a09-3b74-4b74-b4d7-be04b395f604", + "4065da37-6d41-4aab-bfee-ece282f62ee4", + "9612731c-231a-4402-adee-2048a25d1ad6", + "3dfb33c4-6e20-4a57-aff1-7a4424fe966d", + "7f6354cc-8497-4a7a-b001-9a9a0b50b7eb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9542, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ddef1358-6b3c-416f-82f4-8d6cafdcf263", + "title": "PRE-TEST: Create feature 'toDelete13'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete13'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete13' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete13'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b3fb3fa-908a-4ab0-ae22-9567ffd642cd", + "parentUUID": "ddef1358-6b3c-416f-82f4-8d6cafdcf263", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete13'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete13' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete13'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "13f5f2c2-0202-42a8-86a7-6a84bfe153d6", + "parentUUID": "ddef1358-6b3c-416f-82f4-8d6cafdcf263", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete13' should login in BO", + "timedOut": false, + "duration": 1817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7e6c70e-f9b6-4f60-8943-4dd84ff3e46e", + "parentUUID": "ddef1358-6b3c-416f-82f4-8d6cafdcf263", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete13' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest13_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d788ab0-b212-4904-a086-a82cb6c6f22f", + "parentUUID": "ddef1358-6b3c-416f-82f4-8d6cafdcf263", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete13' should go to Features page", + "timedOut": false, + "duration": 1106, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest13_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12d84a45-1968-4a76-ba89-58451dc881ad", + "parentUUID": "ddef1358-6b3c-416f-82f4-8d6cafdcf263", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete13' should go to add new feature page", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest13_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7b4d598-6252-4cf2-8b71-673f09d1ebb7", + "parentUUID": "ddef1358-6b3c-416f-82f4-8d6cafdcf263", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete13' should create feature", + "timedOut": false, + "duration": 1120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest13_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e04999e-5a1c-490a-a306-d625f4bddcc1", + "parentUUID": "ddef1358-6b3c-416f-82f4-8d6cafdcf263", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a7e6c70e-f9b6-4f60-8943-4dd84ff3e46e", + "6d788ab0-b212-4904-a086-a82cb6c6f22f", + "12d84a45-1968-4a76-ba89-58451dc881ad", + "e7b4d598-6252-4cf2-8b71-673f09d1ebb7", + "9e04999e-5a1c-490a-a306-d625f4bddcc1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9533, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b9691eed-314e-40a6-954a-6b137972cd3a", + "title": "PRE-TEST: Create feature 'toDelete14'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete14'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete14' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete14'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94db1d7d-5d2c-4446-befb-270e5dbfb0ff", + "parentUUID": "b9691eed-314e-40a6-954a-6b137972cd3a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete14'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete14' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete14'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d09547a9-ca7c-45a5-9e70-99b50ac311e7", + "parentUUID": "b9691eed-314e-40a6-954a-6b137972cd3a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete14' should login in BO", + "timedOut": false, + "duration": 1858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfbf22d6-e678-44da-a358-3891bd4e6c59", + "parentUUID": "b9691eed-314e-40a6-954a-6b137972cd3a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete14' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest14_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d75db5e9-1c56-491a-b3ed-5a0a41e41ee2", + "parentUUID": "b9691eed-314e-40a6-954a-6b137972cd3a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete14' should go to Features page", + "timedOut": false, + "duration": 1117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest14_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27f09772-2f75-4351-8fc8-f4d3e255855c", + "parentUUID": "b9691eed-314e-40a6-954a-6b137972cd3a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete14' should go to add new feature page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest14_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "770e3f6c-b8ed-439c-a133-d7ea5a7a030a", + "parentUUID": "b9691eed-314e-40a6-954a-6b137972cd3a", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete14' should create feature", + "timedOut": false, + "duration": 1096, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest14_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a572f4b-d025-4284-9b85-dec77fc8c4e9", + "parentUUID": "b9691eed-314e-40a6-954a-6b137972cd3a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bfbf22d6-e678-44da-a358-3891bd4e6c59", + "d75db5e9-1c56-491a-b3ed-5a0a41e41ee2", + "27f09772-2f75-4351-8fc8-f4d3e255855c", + "770e3f6c-b8ed-439c-a133-d7ea5a7a030a", + "7a572f4b-d025-4284-9b85-dec77fc8c4e9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9554, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "43f91ac4-09cc-4434-8954-42c14fcc29ec", + "title": "PRE-TEST: Create feature 'toDelete15'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete15'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete15' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete15'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11f460e2-2626-4deb-8642-5c04b36555a8", + "parentUUID": "43f91ac4-09cc-4434-8954-42c14fcc29ec", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete15'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete15' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete15'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "941e5802-3f69-47c3-8a2f-540538094930", + "parentUUID": "43f91ac4-09cc-4434-8954-42c14fcc29ec", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete15' should login in BO", + "timedOut": false, + "duration": 1820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd4d65c6-70b0-414a-b5cb-f9c64464431b", + "parentUUID": "43f91ac4-09cc-4434-8954-42c14fcc29ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete15' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest15_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62732dbc-cb32-413f-810a-bf94315fbbb1", + "parentUUID": "43f91ac4-09cc-4434-8954-42c14fcc29ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete15' should go to Features page", + "timedOut": false, + "duration": 1115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest15_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93d9417e-d514-4bce-af9e-84e9150375ff", + "parentUUID": "43f91ac4-09cc-4434-8954-42c14fcc29ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete15' should go to add new feature page", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest15_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6456400c-7cbc-4199-993e-7725c09e9507", + "parentUUID": "43f91ac4-09cc-4434-8954-42c14fcc29ec", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete15' should create feature", + "timedOut": false, + "duration": 1092, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest15_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9ab6e89-c553-41c8-8a84-5decaf4e9c6d", + "parentUUID": "43f91ac4-09cc-4434-8954-42c14fcc29ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fd4d65c6-70b0-414a-b5cb-f9c64464431b", + "62732dbc-cb32-413f-810a-bf94315fbbb1", + "93d9417e-d514-4bce-af9e-84e9150375ff", + "6456400c-7cbc-4199-993e-7725c09e9507", + "f9ab6e89-c553-41c8-8a84-5decaf4e9c6d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9520, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9d736f77-be1d-4d9a-a4d9-6a256126b2a1", + "title": "PRE-TEST: Create feature 'toDelete16'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete16'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete16' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete16'\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb7014f8-96d2-4273-8521-668f73819290", + "parentUUID": "9d736f77-be1d-4d9a-a4d9-6a256126b2a1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete16'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete16' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete16'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f7e4c238-087e-49ed-8f0c-0a10b78d27d3", + "parentUUID": "9d736f77-be1d-4d9a-a4d9-6a256126b2a1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete16' should login in BO", + "timedOut": false, + "duration": 1820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0b7f50f-a025-404b-a072-7d0f3ac19e9e", + "parentUUID": "9d736f77-be1d-4d9a-a4d9-6a256126b2a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete16' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest16_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfe249d9-2fd6-4edb-97f4-c0c38520e9cc", + "parentUUID": "9d736f77-be1d-4d9a-a4d9-6a256126b2a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete16' should go to Features page", + "timedOut": false, + "duration": 1120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest16_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18d600dc-b6ef-4f74-ab7d-687cd126a786", + "parentUUID": "9d736f77-be1d-4d9a-a4d9-6a256126b2a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete16' should go to add new feature page", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest16_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "072d9c0a-1500-4b0f-ac08-e5e3abc85f47", + "parentUUID": "9d736f77-be1d-4d9a-a4d9-6a256126b2a1", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete16' should create feature", + "timedOut": false, + "duration": 1085, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest16_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e089e04-23e0-4a53-a536-439314a5bca6", + "parentUUID": "9d736f77-be1d-4d9a-a4d9-6a256126b2a1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f0b7f50f-a025-404b-a072-7d0f3ac19e9e", + "dfe249d9-2fd6-4edb-97f4-c0c38520e9cc", + "18d600dc-b6ef-4f74-ab7d-687cd126a786", + "072d9c0a-1500-4b0f-ac08-e5e3abc85f47", + "1e089e04-23e0-4a53-a536-439314a5bca6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9492, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fec7160e-7685-481d-a6b0-cb5e8c79d597", + "title": "PRE-TEST: Create feature 'toDelete17'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete17'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete17' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete17'\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5af69f53-000b-4515-b1e8-7455317fdf4e", + "parentUUID": "fec7160e-7685-481d-a6b0-cb5e8c79d597", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete17'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete17' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete17'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4b3b7993-bea6-4911-b9cf-ea472d0d96d0", + "parentUUID": "fec7160e-7685-481d-a6b0-cb5e8c79d597", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete17' should login in BO", + "timedOut": false, + "duration": 1822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2c2bbc5-400d-4dad-9407-29d4eff3d43e", + "parentUUID": "fec7160e-7685-481d-a6b0-cb5e8c79d597", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete17' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest17_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a63818d-b25b-4742-ad7d-bfc2fbe64442", + "parentUUID": "fec7160e-7685-481d-a6b0-cb5e8c79d597", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete17' should go to Features page", + "timedOut": false, + "duration": 1114, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest17_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37ac834d-522b-482e-a49c-5cf8245de4ba", + "parentUUID": "fec7160e-7685-481d-a6b0-cb5e8c79d597", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete17' should go to add new feature page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest17_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad44a8a6-c929-47c4-b659-77bf86b18ca9", + "parentUUID": "fec7160e-7685-481d-a6b0-cb5e8c79d597", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete17' should create feature", + "timedOut": false, + "duration": 1097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest17_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87c77e3e-b7ea-43bf-a0cc-88cafbe5ead8", + "parentUUID": "fec7160e-7685-481d-a6b0-cb5e8c79d597", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f2c2bbc5-400d-4dad-9407-29d4eff3d43e", + "3a63818d-b25b-4742-ad7d-bfc2fbe64442", + "37ac834d-522b-482e-a49c-5cf8245de4ba", + "ad44a8a6-c929-47c4-b659-77bf86b18ca9", + "87c77e3e-b7ea-43bf-a0cc-88cafbe5ead8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9542, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60c6b37c-2cbc-4398-a04f-9aa6fe91339b", + "title": "PRE-TEST: Create feature 'toDelete18'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create feature 'toDelete18'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete18' \"before all\" hook in \"PRE-TEST: Create feature 'toDelete18'\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e50a285b-6232-4629-8b84-898fd704ea45", + "parentUUID": "60c6b37c-2cbc-4398-a04f-9aa6fe91339b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create feature 'toDelete18'\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete18' \"after all\" hook in \"PRE-TEST: Create feature 'toDelete18'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e6891823-08c0-4c2a-bf49-b84166778d95", + "parentUUID": "60c6b37c-2cbc-4398-a04f-9aa6fe91339b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete18' should login in BO", + "timedOut": false, + "duration": 1853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2dd4d0d-fc35-467c-a6dc-bf0f425796c1", + "parentUUID": "60c6b37c-2cbc-4398-a04f-9aa6fe91339b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete18' should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest18_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fdeb92c-4aa9-44ac-9e16-12f82e284f17", + "parentUUID": "60c6b37c-2cbc-4398-a04f-9aa6fe91339b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete18' should go to Features page", + "timedOut": false, + "duration": 1105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest18_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33275f6a-cc57-47cc-a720-e9445650b080", + "parentUUID": "60c6b37c-2cbc-4398-a04f-9aa6fe91339b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete18' should go to add new feature page", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest18_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38fcbb42-db59-424c-93d0-0faad8de8653", + "parentUUID": "60c6b37c-2cbc-4398-a04f-9aa6fe91339b", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features PRE-TEST: Create feature 'toDelete18' should create feature", + "timedOut": false, + "duration": 1093, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_preTest18_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c0866eb-b65e-42f5-9495-1dbfbe043b78", + "parentUUID": "60c6b37c-2cbc-4398-a04f-9aa6fe91339b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c2dd4d0d-fc35-467c-a6dc-bf0f425796c1", + "0fdeb92c-4aa9-44ac-9e16-12f82e284f17", + "33275f6a-cc57-47cc-a720-e9445650b080", + "38fcbb42-db59-424c-93d0-0faad8de8653", + "0c0866eb-b65e-42f5-9495-1dbfbe043b78" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9526, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c2b95a9e-d7f0-4afb-9f03-490984f8273e", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Pagination next and previous should login in BO", + "timedOut": false, + "duration": 1896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3266a04-177a-492b-93cb-8d1f60d83adf", + "parentUUID": "c2b95a9e-d7f0-4afb-9f03-490984f8273e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Pagination next and previous should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fa0dd48-3983-4ddf-8403-d0ff7ebcde51", + "parentUUID": "c2b95a9e-d7f0-4afb-9f03-490984f8273e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Pagination next and previous should go to Features page", + "timedOut": false, + "duration": 1111, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_2.default.pageTitle);\n return [4 /*yield*/, features_2.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "295e9421-3c93-430c-bed7-dcb7c332544f", + "parentUUID": "c2b95a9e-d7f0-4afb-9f03-490984f8273e", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dca79d5b-5bf6-48a1-ac30-8aa99ad661b9", + "parentUUID": "c2b95a9e-d7f0-4afb-9f03-490984f8273e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Pagination next and previous should click on next", + "timedOut": false, + "duration": 822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f34b2fc1-cba6-4e83-8ff4-0f14c94abb3d", + "parentUUID": "c2b95a9e-d7f0-4afb-9f03-490984f8273e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Pagination next and previous should click on previous", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f145bb66-3e43-438c-a201-6e2ab506df69", + "parentUUID": "c2b95a9e-d7f0-4afb-9f03-490984f8273e", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93e8d91f-d6ab-45cb-a6ae-888d5116baf6", + "parentUUID": "c2b95a9e-d7f0-4afb-9f03-490984f8273e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d3266a04-177a-492b-93cb-8d1f60d83adf", + "2fa0dd48-3983-4ddf-8403-d0ff7ebcde51", + "295e9421-3c93-430c-bed7-dcb7c332544f", + "dca79d5b-5bf6-48a1-ac30-8aa99ad661b9", + "f34b2fc1-cba6-4e83-8ff4-0f14c94abb3d", + "f145bb66-3e43-438c-a201-6e2ab506df69", + "93e8d91f-d6ab-45cb-a6ae-888d5116baf6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9931, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a0944318-e1d0-40ee-84a3-0f2423f128a6", + "title": "Sort values table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_feature' 'desc' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Sort values table should sort by 'id_feature' 'desc' and check result", + "timedOut": false, + "duration": 2925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, sortColumnName)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, features_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8:\n // Previous Sort Column\n sortColumnName = test.args.sortBy;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c64aedfb-a265-41ba-8f82-18c0adb61a7c", + "parentUUID": "a0944318-e1d0-40ee-84a3-0f2423f128a6", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Sort values table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 2582, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, sortColumnName)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, features_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8:\n // Previous Sort Column\n sortColumnName = test.args.sortBy;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb638e9c-2de4-4d26-bc58-7af3e0177067", + "parentUUID": "a0944318-e1d0-40ee-84a3-0f2423f128a6", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Sort values table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 2636, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, sortColumnName)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, features_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8:\n // Previous Sort Column\n sortColumnName = test.args.sortBy;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f859d11-120b-4cc1-8bef-1bb1782a88c5", + "parentUUID": "a0944318-e1d0-40ee-84a3-0f2423f128a6", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'asc' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Sort values table should sort by 'position' 'asc' and check result", + "timedOut": false, + "duration": 2596, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_sortByPositionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, sortColumnName)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, features_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8:\n // Previous Sort Column\n sortColumnName = test.args.sortBy;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d60b9105-1196-47a3-9415-6f6f6954f5e4", + "parentUUID": "a0944318-e1d0-40ee-84a3-0f2423f128a6", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'desc' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Sort values table should sort by 'position' 'desc' and check result", + "timedOut": false, + "duration": 2596, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_sortByPositionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, sortColumnName)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, features_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8:\n // Previous Sort Column\n sortColumnName = test.args.sortBy;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dd2f4b0-52dc-4652-91d3-74c1ca689d5d", + "parentUUID": "a0944318-e1d0-40ee-84a3-0f2423f128a6", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_feature' 'asc' and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features Sort values table should sort by 'id_feature' 'asc' and check result", + "timedOut": false, + "duration": 2616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, sortColumnName)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, features_2.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_2.default.getAllRowsColumnContent(page, test.args.sortBy, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8:\n // Previous Sort Column\n sortColumnName = test.args.sortBy;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea8a927c-b454-46af-afd0-e4e86a94da71", + "parentUUID": "a0944318-e1d0-40ee-84a3-0f2423f128a6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c64aedfb-a265-41ba-8f82-18c0adb61a7c", + "fb638e9c-2de4-4d26-bc58-7af3e0177067", + "1f859d11-120b-4cc1-8bef-1bb1782a88c5", + "d60b9105-1196-47a3-9415-6f6f6954f5e4", + "4dd2f4b0-52dc-4652-91d3-74c1ca689d5d", + "ea8a927c-b454-46af-afd0-e4e86a94da71" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15951, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "title": "POST-TEST: Bulk delete features", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete features\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features \"before all\" hook in \"POST-TEST: Bulk delete features\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a975c2c-03c2-4eb4-b2dc-bd5949111e39", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete features\"", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features \"after all\" hook in \"POST-TEST: Bulk delete features\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "919701f9-6f57-4244-89e3-84179bb4a413", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features should login in BO", + "timedOut": false, + "duration": 1783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecca4df7-f754-4cf0-aa5d-a0cdc7648c7a", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_postTest_1_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0be82f5-a43c-4f07-b86b-8fb54b1d24c0", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features should go to Features page", + "timedOut": false, + "duration": 1122, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_postTest_1_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f64ad03-1633-466d-b9c6-cc5d8dcbac85", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by feature name 'toDelete'", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features should filter by feature name 'toDelete'", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_postTest_1_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, 'name', featureName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfFeaturesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesAfterFilter).to.be.equal(19);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1391406e-d8c3-43f7-8c01-70b64bcf13a8", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of features to delete", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features should get the number of features to delete", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_postTest_1_getNumberToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfFeaturesToDelete = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesToDelete).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "383a33e4-1d2e-4a2f-b3ca-d484621e6e55", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete features by Bulk Actions and check result", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features should delete features by Bulk Actions and check result", + "timedOut": false, + "duration": 1708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_postTest_1_bulkDeleteFeatures\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteFeatures', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.bulkDeleteFeatures(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(features_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40e72767-33f9-4132-bb81-6f4faee72d58", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Sort, pagination and bulk delete features POST-TEST: Bulk delete features should reset all filters", + "timedOut": false, + "duration": 2864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_sortPaginationAndBulkDelete_postTest_1_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeaturesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesAfterDelete).to.equal(numberOfFeatures - numberOfFeaturesToDelete);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d083c8a0-c11a-45fc-88e8-30a9ec5dab9e", + "parentUUID": "cb35478b-38dc-4122-a1b1-11e0c298d62f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ecca4df7-f754-4cf0-aa5d-a0cdc7648c7a", + "e0be82f5-a43c-4f07-b86b-8fb54b1d24c0", + "7f64ad03-1633-466d-b9c6-cc5d8dcbac85", + "1391406e-d8c3-43f7-8c01-70b64bcf13a8", + "383a33e4-1d2e-4a2f-b3ca-d484621e6e55", + "40e72767-33f9-4132-bb81-6f4faee72d58", + "d083c8a0-c11a-45fc-88e8-30a9ec5dab9e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13156, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3564693d-e76e-4734-8f06-30a96b223a6a", + "title": "BO - Catalog - Attributes & Features : Change feature position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/03_changePosition.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/03_changePosition.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Change feature position\"", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position \"before all\" hook in \"BO - Catalog - Attributes & Features : Change feature position\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "177c88ae-b172-477c-b5f7-d0ace49a8228", + "parentUUID": "3564693d-e76e-4734-8f06-30a96b223a6a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Change feature position\"", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position \"after all\" hook in \"BO - Catalog - Attributes & Features : Change feature position\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2e3921a0-a61b-41ac-9c82-89a56122641b", + "parentUUID": "3564693d-e76e-4734-8f06-30a96b223a6a", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "8bdc5d86-b67b-4776-8b2f-fcd3921da2a9", + "title": "PRE-TEST: Create new feature", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/03_changePosition.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/03_changePosition.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position PRE-TEST: Create new feature should login in BO", + "timedOut": false, + "duration": 1810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "823d8905-fb7a-4015-b90b-3d01b98ce0ee", + "parentUUID": "8bdc5d86-b67b-4776-8b2f-fcd3921da2a9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position PRE-TEST: Create new feature should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41ff672a-ad4a-4e4a-a70c-15fb5d1dcee6", + "parentUUID": "8bdc5d86-b67b-4776-8b2f-fcd3921da2a9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position PRE-TEST: Create new feature should go to Features page", + "timedOut": false, + "duration": 1069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb51aa04-6b44-4377-b7b8-04ec12364e5e", + "parentUUID": "8bdc5d86-b67b-4776-8b2f-fcd3921da2a9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new feature page", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position PRE-TEST: Create new feature should go to add new feature page", + "timedOut": false, + "duration": 833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_goToAddNewFeaturePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewFeaturePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.goToAddFeaturePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(addFeature_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eea2124c-a78d-4266-9884-2f37786f7fc3", + "parentUUID": "8bdc5d86-b67b-4776-8b2f-fcd3921da2a9", + "isHook": false, + "skipped": false + }, + { + "title": "should create feature", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position PRE-TEST: Create new feature should create feature", + "timedOut": false, + "duration": 1072, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_createNewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addFeature_1.default.setFeature(page, createFeatureData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "484319f0-1f65-4e62-b6ae-16d44b38e842", + "parentUUID": "8bdc5d86-b67b-4776-8b2f-fcd3921da2a9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "823d8905-fb7a-4015-b90b-3d01b98ce0ee", + "41ff672a-ad4a-4e4a-a70c-15fb5d1dcee6", + "cb51aa04-6b44-4377-b7b8-04ec12364e5e", + "eea2124c-a78d-4266-9884-2f37786f7fc3", + "484319f0-1f65-4e62-b6ae-16d44b38e842" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9458, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8ec846dc-bd88-4ba3-91d7-d477a8772a34", + "title": "Change position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/03_changePosition.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/03_changePosition.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'position' 'asc' And check result", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position Change position should sort by 'position' 'asc' And check result", + "timedOut": false, + "duration": 2264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_sortByPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sortByPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.getAllRowsColumnContent(page, 'position', 'id_feature')];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, features_1.default.sortTable(page, 'position', 'asc')];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_1.default.getAllRowsColumnContent(page, 'position', 'position')];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d59a657-68ce-4d6d-afef-960f647b9fe1", + "parentUUID": "8ec846dc-bd88-4ba3-91d7-d477a8772a34", + "isHook": false, + "skipped": false + }, + { + "title": "should change first feature position to 2", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position Change position should change first feature position to 2", + "timedOut": false, + "duration": 424, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_changeFeaturePosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstRowFeatureName, textResult, secondRowFeatureName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeFeaturePosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, 'name', 'position')];\n case 2:\n firstRowFeatureName = _a.sent();\n return [4 /*yield*/, features_1.default.changePosition(page, 1, 2)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Unable to change position').to.contains(features_1.default.successfulUpdateMessage);\n return [4 /*yield*/, features_1.default.getTextColumn(page, 2, 'name', 'position')];\n case 4:\n secondRowFeatureName = _a.sent();\n (0, chai_1.expect)(secondRowFeatureName, 'Changing position was done wrongly').to.equal(firstRowFeatureName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e77d6a37-69d9-45e7-b8e1-f6b8f0b6eee2", + "parentUUID": "8ec846dc-bd88-4ba3-91d7-d477a8772a34", + "isHook": false, + "skipped": false + }, + { + "title": "should change second feature position to 3", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position Change position should change second feature position to 3", + "timedOut": false, + "duration": 492, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_resetFeaturePosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var secondRowFeatureName, textResult, thirdRowFeatureName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFeaturePosition', baseContext)];\n case 1:\n _a.sent();\n // Close alert\n return [4 /*yield*/, features_1.default.closeAlertBlock(page)];\n case 2:\n // Close alert\n _a.sent();\n return [4 /*yield*/, features_1.default.getTextColumn(page, 2, 'name', 'position')];\n case 3:\n secondRowFeatureName = _a.sent();\n return [4 /*yield*/, features_1.default.changePosition(page, 2, 3)];\n case 4:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Unable to change position').to.contains(features_1.default.successfulUpdateMessage);\n return [4 /*yield*/, features_1.default.getTextColumn(page, 3, 'name', 'position')];\n case 5:\n thirdRowFeatureName = _a.sent();\n (0, chai_1.expect)(thirdRowFeatureName, 'Changing position was done wrongly').to.equal(secondRowFeatureName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46d3aedb-9bef-4e0f-8126-80b83bab9b1d", + "parentUUID": "8ec846dc-bd88-4ba3-91d7-d477a8772a34", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the sort to 'id_feature'", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position Change position should reset the sort to 'id_feature'", + "timedOut": false, + "duration": 2267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_sortByIdFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sortByIdFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.getAllRowsColumnContent(page, 'id_feature', 'position')];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, features_1.default.sortTable(page, 'id_feature', 'asc')];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_1.default.getAllRowsColumnContent(page, 'id_feature', 'id_feature')];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec8186c4-a2fc-4755-80e4-026c45285515", + "parentUUID": "8ec846dc-bd88-4ba3-91d7-d477a8772a34", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9d59a657-68ce-4d6d-afef-960f647b9fe1", + "e77d6a37-69d9-45e7-b8e1-f6b8f0b6eee2", + "46d3aedb-9bef-4e0f-8126-80b83bab9b1d", + "ec8186c4-a2fc-4755-80e4-026c45285515" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5447, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "134c3581-2a83-4e90-b7d8-bcfe3e64ee44", + "title": "POST-TEST: Delete created feature", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/03_changePosition.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/03_changePosition.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list of features by the created feature", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position POST-TEST: Delete created feature should filter list of features by the created feature", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_filterFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, 'name', createFeatureData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createFeatureData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c2c6b70-2c74-4599-a8a3-dbcf9ca27c8d", + "parentUUID": "134c3581-2a83-4e90-b7d8-bcfe3e64ee44", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created feature", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position POST-TEST: Delete created feature should delete the created feature", + "timedOut": false, + "duration": 1449, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_deleteFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.deleteFeature(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(features_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2e1fc3d-b03f-4bf5-9df2-947de946eb40", + "parentUUID": "134c3581-2a83-4e90-b7d8-bcfe3e64ee44", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of features in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Change feature position POST-TEST: Delete created feature should reset all filters and get number of features in BO", + "timedOut": false, + "duration": 2851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_changePosition_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeatures;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeatures = _a.sent();\n (0, chai_1.expect)(numberOfFeatures).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "084aad71-e2d8-4740-bd48-e3754d35cef3", + "parentUUID": "134c3581-2a83-4e90-b7d8-bcfe3e64ee44", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6c2c6b70-2c74-4599-a8a3-dbcf9ca27c8d", + "f2e1fc3d-b03f-4bf5-9df2-947de946eb40", + "084aad71-e2d8-4740-bd48-e3754d35cef3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5232, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "title": "BO - Catalog - Attributes & Features : Help card on features page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/04_helpCard.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/features/04_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Help card on features page\"", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on features page \"before all\" hook in \"BO - Catalog - Attributes & Features : Help card on features page\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb0f3205-2431-4c50-b577-5423f9f14ed8", + "parentUUID": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Help card on features page\"", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on features page \"after all\" hook in \"BO - Catalog - Attributes & Features : Help card on features page\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "09dda737-fe4d-4e69-946d-b296f99eacf6", + "parentUUID": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on features page should login in BO", + "timedOut": false, + "duration": 1805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4763d120-339d-473c-be74-cec11f9cea03", + "parentUUID": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on features page should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4656, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_helpCard_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d4f6f81-a6a6-41a1-9ea0-af878ca68b41", + "parentUUID": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on features page should go to Features page", + "timedOut": false, + "duration": 1047, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_helpCard_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0493b38a-8863-4347-9069-2939c5283b8f", + "parentUUID": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on features page should open the help side bar and check the document language", + "timedOut": false, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible, 'Help side bar is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "821ca29f-78e7-4250-8cd2-3cdc9856dd6c", + "parentUUID": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "isHook": false, + "skipped": false + }, + { + "title": "should check the document language", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on features page should check the document language", + "timedOut": false, + "duration": 79, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_helpCard_checkDocumentLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.getHelpDocumentURL(page)];\n case 2:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL, 'Help document is not in english language!').to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d83a9ee8-b2ee-4af9-bea1-ee4c915bcc6e", + "parentUUID": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Catalog - Attributes & Features : Help card on features page should close the help side bar", + "timedOut": false, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_features_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed, 'Help document is not closed!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0700d00f-ae35-48b4-bccd-b07ba5e9844e", + "parentUUID": "fc7e30a9-ebbf-468a-a0d7-c668307df0f8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4763d120-339d-473c-be74-cec11f9cea03", + "4d4f6f81-a6a6-41a1-9ea0-af878ca68b41", + "0493b38a-8863-4347-9069-2939c5283b8f", + "821ca29f-78e7-4250-8cd2-3cdc9856dd6c", + "d83a9ee8-b2ee-4af9-bea1-ee4c915bcc6e", + "0700d00f-ae35-48b4-bccd-b07ba5e9844e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7731, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "title": "BO - Catalog - Attributes & Features : Filter feature values table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/01_filterFeatureValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/01_filterFeatureValues.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Attributes & Features : Filter feature values table\"", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table \"before all\" hook in \"BO - Catalog - Attributes & Features : Filter feature values table\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab0bd4d1-9167-4ad8-81b9-c73793bcf9d2", + "parentUUID": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Attributes & Features : Filter feature values table\"", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table \"after all\" hook in \"BO - Catalog - Attributes & Features : Filter feature values table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "49cc8fc1-fbfb-4bed-94fb-6b4d53e9d76d", + "parentUUID": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table should login in BO", + "timedOut": false, + "duration": 1841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc41e672-2521-4fda-aee0-045e9158308a", + "parentUUID": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43d482c3-3d76-41f7-b9b8-72663666560e", + "parentUUID": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table should go to Features page", + "timedOut": false, + "duration": 1062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f99d0d4e-cb45-4462-a76b-053b14b57b15", + "parentUUID": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Composition'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table should filter by name 'Composition'", + "timedOut": false, + "duration": 997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_filterFeatures\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterFeatures', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, 'name', features_2.default.composition.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, 'name', 'id_feature')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(features_2.default.composition.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32ee26f0-4ff0-4eb6-8b37-153792691c66", + "parentUUID": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "isHook": false, + "skipped": false + }, + { + "title": "should view feature", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table should view feature", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_viewFeature\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewFeature', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.viewFeature(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(features_2.default.composition.name, \" \\u2022 \").concat(global.INSTALL.SHOP_NAME));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8edeb12-61f8-4cd8-ade0-bdb2752ce71f", + "parentUUID": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of features in BO", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table should reset all filters and get number of features in BO", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeaturesValues = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesValues).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d35831fe-d95e-4a73-a623-7c35bbe5b903", + "parentUUID": "d09925aa-9c0e-46fe-85d3-fd916e32b171", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "43ad6e75-fdce-43c5-85e0-e8eb41c4ea31", + "title": "Filter feature values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/01_filterFeatureValues.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/01_filterFeatureValues.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_feature_value '1'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table Filter feature values should filter by id_feature_value '1'", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesValuesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfFeaturesValuesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesValuesAfterFilter).to.be.at.most(numberOfFeaturesValues);\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60842673-d524-4f69-a42c-2eab9a63572b", + "parentUUID": "43ad6e75-fdce-43c5-85e0-e8eb41c4ea31", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table Filter feature values should reset all filters", + "timedOut": false, + "duration": 2854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesValuesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeaturesValuesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesValuesAfterReset).to.equal(numberOfFeaturesValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fe5ae9c-9c8e-4805-8d04-bd608c645674", + "parentUUID": "43ad6e75-fdce-43c5-85e0-e8eb41c4ea31", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by value 'Polyester'", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table Filter feature values should filter by value 'Polyester'", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_filterValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesValuesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfFeaturesValuesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesValuesAfterFilter).to.be.at.most(numberOfFeaturesValues);\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd5d4d67-1edf-46cb-8085-5075362f56f5", + "parentUUID": "43ad6e75-fdce-43c5-85e0-e8eb41c4ea31", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Attributes & Features : Filter feature values table Filter feature values should reset all filters", + "timedOut": false, + "duration": 2845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_filterFeatureValues_filterValueReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfFeaturesValuesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfFeaturesValuesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfFeaturesValuesAfterReset).to.equal(numberOfFeaturesValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cab03f2-9a33-43c1-bb76-cf970e5de666", + "parentUUID": "43ad6e75-fdce-43c5-85e0-e8eb41c4ea31", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "60842673-d524-4f69-a42c-2eab9a63572b", + "8fe5ae9c-9c8e-4805-8d04-bd608c645674", + "fd5d4d67-1edf-46cb-8085-5075362f56f5", + "6cab03f2-9a33-43c1-bb76-cf970e5de666" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7543, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bc41e672-2521-4fda-aee0-045e9158308a", + "43d482c3-3d76-41f7-b9b8-72663666560e", + "f99d0d4e-cb45-4462-a76b-053b14b57b15", + "32ee26f0-4ff0-4eb6-8b37-153792691c66", + "c8edeb12-61f8-4cd8-ade0-bdb2752ce71f", + "d35831fe-d95e-4a73-a623-7c35bbe5b903" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9416, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f33303dd-381d-4da0-95b0-defc5b16c338", + "title": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values\"", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values \"before all\" hook in \"BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3905896d-4c94-4d77-b64d-f645d81a3237", + "parentUUID": "f33303dd-381d-4da0-95b0-defc5b16c338", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values\"", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values \"after all\" hook in \"BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7bf592bc-fb23-44c6-818b-ccfdc36b6d13", + "parentUUID": "f33303dd-381d-4da0-95b0-defc5b16c338", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values should login in BO", + "timedOut": false, + "duration": 1833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04a52d1d-775e-43a5-9a7e-be971eaaa7ba", + "parentUUID": "f33303dd-381d-4da0-95b0-defc5b16c338", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Attributes & Features' page", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values should go to 'Catalog > Attributes & Features' page", + "timedOut": false, + "duration": 4666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_goToAttributesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAttributesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.attributesAndFeaturesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(attributes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83a27821-a737-4ff1-9a1d-4a59fd44961d", + "parentUUID": "f33303dd-381d-4da0-95b0-defc5b16c338", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Features page", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values should go to Features page", + "timedOut": false, + "duration": 1057, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_goToFeaturesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeaturesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, attributes_1.default.goToFeaturesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(features_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ba0e3c9-8ffe-4c83-8aff-4744e8fb5f4c", + "parentUUID": "f33303dd-381d-4da0-95b0-defc5b16c338", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of features by name 'Composition'", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values should filter list of features by name 'Composition'", + "timedOut": false, + "duration": 994, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_filterToBulkDeleteAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDeleteAttributes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.filterTable(page, 'name', features_2.default.composition.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, features_1.default.getTextColumn(page, 1, 'name', 'id_feature')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('Composition');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0838b24d-afd0-4e8f-a8ed-b35a91f3335b", + "parentUUID": "f33303dd-381d-4da0-95b0-defc5b16c338", + "isHook": false, + "skipped": false + }, + { + "title": "should view feature 'Composition'", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values should view feature 'Composition'", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_viewFeatureComposition1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewFeatureComposition1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, features_1.default.viewFeature(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(features_2.default.composition.name, \" \\u2022 \").concat(global.INSTALL.SHOP_NAME));\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfValues = _a.sent();\n (0, chai_1.expect)(numberOfValues).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cab3ce5-bac6-4ce3-add7-66e7f51ef541", + "parentUUID": "f33303dd-381d-4da0-95b0-defc5b16c338", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "title": "Create 15 new values in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new value page", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should go to add new value page", + "timedOut": false, + "duration": 790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_goToAddNewValuePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewValuePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToAddNewValuePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addValue_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addValue_1.default.createPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06f820a6-54e2-4190-a7e0-6fddcba553ba", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°1", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°1", + "timedOut": false, + "duration": 422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ad00aac-b1fa-4501-ad85-be3f6f1f9f24", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°2", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°2", + "timedOut": false, + "duration": 441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00b4bb52-000d-4201-9644-67d84c5eca18", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°3", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°3", + "timedOut": false, + "duration": 408, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0404ce81-ef14-497c-915e-2522c1e85ec9", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°4", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°4", + "timedOut": false, + "duration": 409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9d0732a-66df-4080-991c-7b2cfe2a9311", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°5", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°5", + "timedOut": false, + "duration": 399, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92f83be3-e1f7-4dbb-b061-5f750743790c", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°6", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°6", + "timedOut": false, + "duration": 414, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e142764b-cb65-4929-b561-35c70c529fa8", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°7", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°7", + "timedOut": false, + "duration": 394, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44f326a7-73a9-46be-88f9-7483559c9271", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°8", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°8", + "timedOut": false, + "duration": 405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ec1fb23-3928-4966-927a-3822bb0a0288", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°9", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°9", + "timedOut": false, + "duration": 410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfe05084-e694-4010-a918-abb8ace19aa5", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°10", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°10", + "timedOut": false, + "duration": 402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcd10c13-5940-4fb3-b069-0f299b4de891", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°11", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°11", + "timedOut": false, + "duration": 405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce3da5a1-c4b3-4e6d-a1c0-e62701ff1e26", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°12", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°12", + "timedOut": false, + "duration": 427, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ab1e1ea-6716-4292-984a-7e35ad326287", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°13", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°13", + "timedOut": false, + "duration": 405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6323913-3305-4722-a686-01094521db10", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°14", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°14", + "timedOut": false, + "duration": 399, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a519b35-7d0b-458e-bb16-9deb6f81e305", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should create value n°15", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should create value n°15", + "timedOut": false, + "duration": 980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_createNewValue14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 14)) return [3 /*break*/, 3];\n return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(view_1.default.successfulCreationMessage);\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, addValue_1.default.addEditValue(page, createFeatureValueData, true)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e24d23b1-5c33-4443-8130-2082fbd21e8a", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + }, + { + "title": "should view feature 'Composition' and check number of values after creation", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Create 15 new values in BO should view feature 'Composition' and check number of values after creation", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_viewFeatureComposition2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numberOfValuesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewFeatureComposition2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 2:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(features_2.default.composition.name, \" \\u2022 \").concat(global.INSTALL.SHOP_NAME));\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfValuesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterCreation).to.equal(numberOfValues + 15);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1e66df9-fd19-473b-9707-165e252805af", + "parentUUID": "88b3eddc-68e8-4e83-aaef-e2c90315818f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "06f820a6-54e2-4190-a7e0-6fddcba553ba", + "9ad00aac-b1fa-4501-ad85-be3f6f1f9f24", + "00b4bb52-000d-4201-9644-67d84c5eca18", + "0404ce81-ef14-497c-915e-2522c1e85ec9", + "a9d0732a-66df-4080-991c-7b2cfe2a9311", + "92f83be3-e1f7-4dbb-b061-5f750743790c", + "e142764b-cb65-4929-b561-35c70c529fa8", + "44f326a7-73a9-46be-88f9-7483559c9271", + "6ec1fb23-3928-4966-927a-3822bb0a0288", + "dfe05084-e694-4010-a918-abb8ace19aa5", + "dcd10c13-5940-4fb3-b069-0f299b4de891", + "ce3da5a1-c4b3-4e6d-a1c0-e62701ff1e26", + "7ab1e1ea-6716-4292-984a-7e35ad326287", + "f6323913-3305-4722-a686-01094521db10", + "5a519b35-7d0b-458e-bb16-9deb6f81e305", + "e24d23b1-5c33-4443-8130-2082fbd21e8a", + "c1e66df9-fd19-473b-9707-165e252805af" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7526, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e34d25ae-c3a6-4ea1-b6af-591c0f97ec95", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d73b9ece-41cf-40ce-9d77-ba0d43c1ac3e", + "parentUUID": "e34d25ae-c3a6-4ea1-b6af-591c0f97ec95", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Pagination next and previous should click on next", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9da7067-83d3-465e-a28a-79dd075a90e9", + "parentUUID": "e34d25ae-c3a6-4ea1-b6af-591c0f97ec95", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Pagination next and previous should click on previous", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "436c7b6d-4f2f-4893-8624-c50d71f899aa", + "parentUUID": "e34d25ae-c3a6-4ea1-b6af-591c0f97ec95", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 240, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "971b6ac4-65fe-4588-81d8-312b64b79b5a", + "parentUUID": "e34d25ae-c3a6-4ea1-b6af-591c0f97ec95", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d73b9ece-41cf-40ce-9d77-ba0d43c1ac3e", + "c9da7067-83d3-465e-a28a-79dd075a90e9", + "436c7b6d-4f2f-4893-8624-c50d71f899aa", + "971b6ac4-65fe-4588-81d8-312b64b79b5a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2124, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cc82f7f0-7d8d-4b75-8f71-a2ad373eb019", + "title": "Sort values table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_feature_value' 'desc' and check result", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Sort values table should sort by 'id_feature_value' 'desc' and check result", + "timedOut": false, + "duration": 2850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce760514-1951-430a-a4c0-7f8558fdb46d", + "parentUUID": "cc82f7f0-7d8d-4b75-8f71-a2ad373eb019", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'value' 'asc' and check result", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Sort values table should sort by 'value' 'asc' and check result", + "timedOut": false, + "duration": 2640, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "790a5c4f-53b5-4dd8-957d-295a86c2590d", + "parentUUID": "cc82f7f0-7d8d-4b75-8f71-a2ad373eb019", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'value' 'desc' and check result", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Sort values table should sort by 'value' 'desc' and check result", + "timedOut": false, + "duration": 2562, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb9b6c73-bcbe-4291-9a34-b976d784e69d", + "parentUUID": "cc82f7f0-7d8d-4b75-8f71-a2ad373eb019", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_feature_value' 'asc' and check result", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Sort values table should sort by 'id_feature_value' 'asc' and check result", + "timedOut": false, + "duration": 2630, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, view_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ae40b70-9f26-40db-9622-e7d84997b553", + "parentUUID": "cc82f7f0-7d8d-4b75-8f71-a2ad373eb019", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ce760514-1951-430a-a4c0-7f8558fdb46d", + "790a5c4f-53b5-4dd8-957d-295a86c2590d", + "cb9b6c73-bcbe-4291-9a34-b976d784e69d", + "5ae40b70-9f26-40db-9622-e7d84997b553" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10682, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5305d030-0d0a-4190-8383-5f9ad8a37e0d", + "title": "Bulk delete values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "file": "/campaigns/functional/BO/03_catalog/04_attributesAndFeatures/02_features/values/02_sortPaginationAndBulkDelete.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by value name 'toDelete'", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Bulk delete values should filter by value name 'toDelete'", + "timedOut": false, + "duration": 982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.filterTable(page, 'value', 'toDelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfValuesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterFilter).to.be.equal(15);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd232a3b-e7b4-443b-b1fe-ddbdd6a5e3ff", + "parentUUID": "5305d030-0d0a-4190-8383-5f9ad8a37e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete values with Bulk Actions and check result", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Bulk delete values should delete values with Bulk Actions and check result", + "timedOut": false, + "duration": 1080, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_bulkDeleteFeatures\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteFeatures', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.bulkDeleteValues(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(view_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a11bad5-517c-41d9-bc3b-66b34a8d13b2", + "parentUUID": "5305d030-0d0a-4190-8383-5f9ad8a37e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Catalog > Attributes & Features : Sort, pagination and delete by bulk actions feature values Bulk delete values should reset all filters", + "timedOut": false, + "duration": 2851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_attributesAndFeatures_features_values_sortPaginationAndBulkDelete_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfValuesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfValuesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfValuesAfterReset).to.equal(numberOfValues);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76445c70-2d98-40c2-aacd-042baf073ebd", + "parentUUID": "5305d030-0d0a-4190-8383-5f9ad8a37e0d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd232a3b-e7b4-443b-b1fe-ddbdd6a5e3ff", + "4a11bad5-517c-41d9-bc3b-66b34a8d13b2", + "76445c70-2d98-40c2-aacd-042baf073ebd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4913, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "04a52d1d-775e-43a5-9a7e-be971eaaa7ba", + "83a27821-a737-4ff1-9a1d-4a59fd44961d", + "9ba0e3c9-8ffe-4c83-8aff-4744e8fb5f4c", + "0838b24d-afd0-4e8f-a8ed-b35a91f3335b", + "2cab3ce5-bac6-4ce3-add7-66e7f51ef541" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9381, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "d864f2ce-2bc3-4ff8-9b47-f9691c897fdf", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 381, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a10b627-f560-4d38-9906-e813b5cf105f", + "parentUUID": "d864f2ce-2bc3-4ff8-9b47-f9691c897fdf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a38413b-4c5a-4bdb-aa09-03ac5d7ee26c", + "parentUUID": "d864f2ce-2bc3-4ff8-9b47-f9691c897fdf", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80f05689-446d-41ec-9c31-95249b6547b6", + "parentUUID": "d864f2ce-2bc3-4ff8-9b47-f9691c897fdf", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a2a21693-8e6f-40dc-b5f6-9c4d97fa4dbe", + "title": "BO - Catalog - Brands & suppliers : CRUD Brand and Address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & suppliers : CRUD Brand and Address\"", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address \"before all\" hook in \"BO - Catalog - Brands & suppliers : CRUD Brand and Address\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create logos\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(createBrandData.logo),\n files_1.default.generateImage(editBrandData.logo),\n ])];\n case 3:\n // Create logos\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f39b9bf0-fadc-4276-956b-234e1c8a06f9", + "parentUUID": "a2a21693-8e6f-40dc-b5f6-9c4d97fa4dbe", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & suppliers : CRUD Brand and Address\"", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address \"after all\" hook in \"BO - Catalog - Brands & suppliers : CRUD Brand and Address\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(createBrandData.logo),\n files_1.default.deleteFile(editBrandData.logo),\n ])];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "07451843-c5ac-4ecb-a4a7-5f57f6b4e517", + "parentUUID": "a2a21693-8e6f-40dc-b5f6-9c4d97fa4dbe", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address should login in BO", + "timedOut": false, + "duration": 6715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "919ff302-0fce-42f7-aa2e-321d13865dc5", + "parentUUID": "a2a21693-8e6f-40dc-b5f6-9c4d97fa4dbe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 5268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2f8cdd1-3b54-48db-86f8-6bc10e8051d3", + "parentUUID": "a2a21693-8e6f-40dc-b5f6-9c4d97fa4dbe", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address should reset all filters", + "timedOut": false, + "duration": 4025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, brandsTable)];\n case 2:\n numberOfBrands = _a.sent();\n (0, chai_1.expect)(numberOfBrands).to.be.above(0);\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, addressesTable)];\n case 3:\n numberOfBrandsAddresses = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a024f0da-4501-4e82-9f0e-1177ea9f3a2f", + "parentUUID": "a2a21693-8e6f-40dc-b5f6-9c4d97fa4dbe", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b72d641a-72d3-44ae-a999-cd0eeb0eb11c", + "title": "Create Brand", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new brand page", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Create Brand should go to new brand page", + "timedOut": false, + "duration": 1236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_goToAddBrandPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddBrandPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0bf3fa6-63f1-42a7-9a08-7fe9e410611e", + "parentUUID": "b72d641a-72d3-44ae-a999-cd0eeb0eb11c", + "isHook": false, + "skipped": false + }, + { + "title": "should create brand", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Create Brand should create brand", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_createBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBrandsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditBrand(page, createBrandData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, brandsTable)];\n case 3:\n numberOfBrandsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterCreation).to.be.equal(numberOfBrands + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dba6f15-4dd4-4634-bf40-7836db9c792b", + "parentUUID": "b72d641a-72d3-44ae-a999-cd0eeb0eb11c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d0bf3fa6-63f1-42a7-9a08-7fe9e410611e", + "5dba6f15-4dd4-4634-bf40-7836db9c792b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3242, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "11595a05-6b5d-4a66-813f-f40fe475bafa", + "title": "Create Address associated to created Brand", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new brand address page", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Create Address associated to created Brand should go to new brand address page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_goToAddAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3d22cd6-86ba-4816-abeb-f74869b8d748", + "parentUUID": "11595a05-6b5d-4a66-813f-f40fe475bafa", + "isHook": false, + "skipped": false + }, + { + "title": "should create brand address", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Create Address associated to created Brand should create brand address", + "timedOut": false, + "duration": 1344, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfBrandsAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createBrandAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, addressesTable)];\n case 3:\n numberOfBrandsAddressesAfterCreation = _a.sent();\n createBrandData.addresses += 1;\n (0, chai_1.expect)(numberOfBrandsAddressesAfterCreation).to.be.equal(numberOfBrandsAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc87c045-6528-4cfa-9814-b58fe41bff39", + "parentUUID": "11595a05-6b5d-4a66-813f-f40fe475bafa", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d3d22cd6-86ba-4816-abeb-f74869b8d748", + "fc87c045-6528-4cfa-9814-b58fe41bff39" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2142, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "433d5b3a-865d-4a93-bcef-89fa0d22bea6", + "title": "View Brand and check Address Value in list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter Brand list by name of brand created", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should filter Brand list by name of brand created", + "timedOut": false, + "duration": 429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_filterToViewCreatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCreatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterBrands(page, 'input', 'name', createBrandData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, brandsTable)];\n case 3:\n numberOfBrandsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterFilter).to.be.at.most(numberOfBrands);\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createBrandData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccbc1828-b8c2-4657-ae56-1cfe8858a995", + "parentUUID": "433d5b3a-865d-4a93-bcef-89fa0d22bea6", + "isHook": false, + "skipped": false + }, + { + "title": "should view brand", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should view brand", + "timedOut": false, + "duration": 779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_viewCreatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCreatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.viewBrand(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(createBrandData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e5d4d1c-4869-4511-a56c-ce62c6f5347e", + "parentUUID": "433d5b3a-865d-4a93-bcef-89fa0d22bea6", + "isHook": false, + "skipped": false + }, + { + "title": "should check existence of the associated address", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should check existence of the associated address", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_checkAddressOnCreatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesInGrid, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressOnCreatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfAddressesInGrid(page)];\n case 2:\n numberOfAddressesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfAddressesInGrid).to.equal(createBrandData.addresses);\n return [4 /*yield*/, view_1.default.getTextColumnFromTableAddresses(page, 1, 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(\"\".concat(createBrandAddressData.firstName, \" \").concat(createBrandAddressData.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0242947-878c-4bd1-9983-659c67c6504e", + "parentUUID": "433d5b3a-865d-4a93-bcef-89fa0d22bea6", + "isHook": false, + "skipped": false + }, + { + "title": "should return brands Page", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should return brands Page", + "timedOut": false, + "duration": 108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_goToBrandsPageAfterViewCreatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPageAfterViewCreatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToPreviousPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51c9a1b3-e1c8-44b3-b814-f59c01187cdd", + "parentUUID": "433d5b3a-865d-4a93-bcef-89fa0d22bea6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset brands filters", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should reset brands filters", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_resetAfterViewCreatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterViewCreatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, brandsTable)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.be.equal(numberOfBrands + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "621998ea-4699-4ce4-b534-a289600fb203", + "parentUUID": "433d5b3a-865d-4a93-bcef-89fa0d22bea6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ccbc1828-b8c2-4657-ae56-1cfe8858a995", + "8e5d4d1c-4869-4511-a56c-ce62c6f5347e", + "d0242947-878c-4bd1-9983-659c67c6504e", + "51c9a1b3-e1c8-44b3-b814-f59c01187cdd", + "621998ea-4699-4ce4-b534-a289600fb203" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2249, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d878a519-8214-4213-9371-1dd37860ed35", + "title": "Update Brand and verify Brand in Addresses list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter Brand list by name of brand created", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Brand and verify Brand in Addresses list should filter Brand list by name of brand created", + "timedOut": false, + "duration": 496, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_filterToUpdateBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterBrands(page, 'input', 'name', createBrandData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, brandsTable)];\n case 3:\n numberOfBrandsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterFilter).to.be.at.most(numberOfBrands);\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createBrandData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de3f9b11-7e12-4c31-98a5-a8788c14a3cf", + "parentUUID": "d878a519-8214-4213-9371-1dd37860ed35", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit brand page", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Brand and verify Brand in Addresses list should go to edit brand page", + "timedOut": false, + "duration": 1135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_goToEditBrandPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditBrandPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToEditBrandPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96e1e508-5925-4652-b265-db9d153f4d89", + "parentUUID": "d878a519-8214-4213-9371-1dd37860ed35", + "isHook": false, + "skipped": false + }, + { + "title": "should edit brand", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Brand and verify Brand in Addresses list should edit brand", + "timedOut": false, + "duration": 1966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_updateBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditBrand(page, editBrandData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulUpdateMessage);\n editBrandData.addresses += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e03d82c-ccce-48a3-8dd7-b9e4c473cd42", + "parentUUID": "d878a519-8214-4213-9371-1dd37860ed35", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated Brand in Addresses list", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Brand and verify Brand in Addresses list should check the updated Brand in Addresses list", + "timedOut": false, + "duration": 404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_checkAddressesListAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressesListAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, 'input', 'name', editBrandData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editBrandData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5129a43-fb81-4dfb-8168-e617c7136ce3", + "parentUUID": "d878a519-8214-4213-9371-1dd37860ed35", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Brand and verify Brand in Addresses list should reset all filters", + "timedOut": false, + "duration": 1236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_resetFilterAfterUpdateBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset, numberOfBrandsAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterUpdateBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, brandsTable)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.be.equal(numberOfBrands + 1);\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, addressesTable)];\n case 3:\n numberOfBrandsAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAddressesAfterReset).to.be.equal(numberOfBrandsAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14e8f37d-fe4f-4f05-b0ec-fc97a3c25f46", + "parentUUID": "d878a519-8214-4213-9371-1dd37860ed35", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "de3f9b11-7e12-4c31-98a5-a8788c14a3cf", + "96e1e508-5925-4652-b265-db9d153f4d89", + "3e03d82c-ccce-48a3-8dd7-b9e4c473cd42", + "d5129a43-fb81-4dfb-8168-e617c7136ce3", + "14e8f37d-fe4f-4f05-b0ec-fc97a3c25f46" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5237, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6e9b108c-77cf-468e-9848-4dedfc347f91", + "title": "Update Address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter Brand Address list by name of edited brand", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Address should filter Brand Address list by name of edited brand", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_filterToUpdateAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, 'input', 'name', editBrandData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editBrandData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef06e70f-d5cf-4461-9461-c060b6d6433f", + "parentUUID": "6e9b108c-77cf-468e-9848-4dedfc347f91", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit brand address page", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Address should go to edit brand address page", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_goToEditAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToEditBrandAddressPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94984da6-9aed-44d1-9380-2a0acec63883", + "parentUUID": "6e9b108c-77cf-468e-9848-4dedfc347f91", + "isHook": false, + "skipped": false + }, + { + "title": "should edit brand address", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Address should edit brand address", + "timedOut": false, + "duration": 1326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_updateAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, editBrandAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c8225ac-ed8d-427e-aade-d046332c4855", + "parentUUID": "6e9b108c-77cf-468e-9848-4dedfc347f91", + "isHook": false, + "skipped": false + }, + { + "title": "should reset Brand Addresses filters", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Update Address should reset Brand Addresses filters", + "timedOut": false, + "duration": 343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_resetAfterUpdateAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterUpdateAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, addressesTable)];\n case 2:\n numberOfBrandsAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAddressesAfterReset).to.be.equal(numberOfBrandsAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c931752a-ca08-45c0-ad69-68a28a1dcda4", + "parentUUID": "6e9b108c-77cf-468e-9848-4dedfc347f91", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ef06e70f-d5cf-4461-9461-c060b6d6433f", + "94984da6-9aed-44d1-9380-2a0acec63883", + "1c8225ac-ed8d-427e-aade-d046332c4855", + "c931752a-ca08-45c0-ad69-68a28a1dcda4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3376, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3163555a-a6e4-45f2-855f-4ce49ecb553b", + "title": "View Brand and check Address Value in list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter Brand list by name of brand created", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should filter Brand list by name of brand created", + "timedOut": false, + "duration": 1027, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_filterToViewUpdatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewUpdatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterBrands(page, 'input', 'name', editBrandData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, brandsTable)];\n case 3:\n numberOfBrandsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterFilter).to.be.at.most(numberOfBrands);\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editBrandData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1629496-760f-4ed6-a834-0b108889cf30", + "parentUUID": "3163555a-a6e4-45f2-855f-4ce49ecb553b", + "isHook": false, + "skipped": false + }, + { + "title": "should view brand", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should view brand", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_viewUpdatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewUpdatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.viewBrand(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editBrandData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f22e8b8-75dd-4a4b-9dc4-6bba33e9d2b3", + "parentUUID": "3163555a-a6e4-45f2-855f-4ce49ecb553b", + "isHook": false, + "skipped": false + }, + { + "title": "should check existence of the associated address", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should check existence of the associated address", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_checkAddressOnUpdatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesInGrid, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressOnUpdatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfAddressesInGrid(page)];\n case 2:\n numberOfAddressesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfAddressesInGrid).to.equal(editBrandData.addresses);\n return [4 /*yield*/, view_1.default.getTextColumnFromTableAddresses(page, 1, 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(\"\".concat(editBrandAddressData.firstName, \" \").concat(editBrandAddressData.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17259a8b-1b8c-422d-a679-ac372b7fb661", + "parentUUID": "3163555a-a6e4-45f2-855f-4ce49ecb553b", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to brands Page", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should go back to brands Page", + "timedOut": false, + "duration": 100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_goToBrandsPageAfterViewEditedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPageAfterViewEditedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToPreviousPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d543325-16e0-4d82-9234-4b9b1217aecf", + "parentUUID": "3163555a-a6e4-45f2-855f-4ce49ecb553b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address View Brand and check Address Value in list should reset filters", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_resetAfterViewUpdatedBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterViewUpdatedBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, brandsTable)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.be.equal(numberOfBrands + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5679e0a1-3291-45b0-a515-ac791be97176", + "parentUUID": "3163555a-a6e4-45f2-855f-4ce49ecb553b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d1629496-760f-4ed6-a834-0b108889cf30", + "4f22e8b8-75dd-4a4b-9dc4-6bba33e9d2b3", + "17259a8b-1b8c-422d-a679-ac372b7fb661", + "7d543325-16e0-4d82-9234-4b9b1217aecf", + "5679e0a1-3291-45b0-a515-ac791be97176" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2851, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e440c85f-0f02-4ae0-9ec4-6d674f22e9be", + "title": "Delete Brand and verify that Address has no Brand associated", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter Brand list by name of edited brand", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Delete Brand and verify that Address has no Brand associated should filter Brand list by name of edited brand", + "timedOut": false, + "duration": 413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_filterToDeleteBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDeleteBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterBrands(page, 'input', 'name', editBrandData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, brandsTable)];\n case 3:\n numberOfBrandsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterFilter).to.be.at.most(numberOfBrands);\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editBrandData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de06eacc-3e91-4c46-93b5-013c45e11fd1", + "parentUUID": "e440c85f-0f02-4ae0-9ec4-6d674f22e9be", + "isHook": false, + "skipped": false + }, + { + "title": "should delete brand", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Delete Brand and verify that Address has no Brand associated should delete brand", + "timedOut": false, + "duration": 1492, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_deleteBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.deleteBrand(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(brands_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "751d130c-33f7-4279-850c-5c34fb0ca1df", + "parentUUID": "e440c85f-0f02-4ae0-9ec4-6d674f22e9be", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the Brand Address is deleted successfully", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Delete Brand and verify that Address has no Brand associated should check that the Brand Address is deleted successfully", + "timedOut": false, + "duration": 1302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_checkDeletedBrandOnAddressList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeletedBrandOnAddressList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, 'input', 'firstname', editBrandAddressData.firstName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, 'input', 'lastname', editBrandAddressData.lastName)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('--');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d8c2aaf-0959-416a-bac1-e601d45f8346", + "parentUUID": "e440c85f-0f02-4ae0-9ec4-6d674f22e9be", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Delete Brand and verify that Address has no Brand associated should reset filters", + "timedOut": false, + "duration": 336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_resetBrandsListAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetBrandsListAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, brandsTable)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.be.equal(numberOfBrands);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd25b61a-5031-4a32-8c26-e745145b0ed9", + "parentUUID": "e440c85f-0f02-4ae0-9ec4-6d674f22e9be", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "de06eacc-3e91-4c46-93b5-013c45e11fd1", + "751d130c-33f7-4279-850c-5c34fb0ca1df", + "2d8c2aaf-0959-416a-bac1-e601d45f8346", + "cd25b61a-5031-4a32-8c26-e745145b0ed9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3543, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "86558242-be8c-4a0f-996f-2a895d6311d1", + "title": "Delete brand Address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/01_CRUDBrandAndAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter Brand Address list by firstName and lastName", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Delete brand Address should filter Brand Address list by firstName and lastName", + "timedOut": false, + "duration": 1295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_filterToDeleteAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumnFirstName, textColumnLastName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDeleteAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, 'input', 'firstname', editBrandAddressData.firstName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, 'input', 'lastname', editBrandAddressData.lastName)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, 1, 'firstname')];\n case 4:\n textColumnFirstName = _a.sent();\n (0, chai_1.expect)(textColumnFirstName).to.contains(editBrandAddressData.firstName);\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, 1, 'lastname')];\n case 5:\n textColumnLastName = _a.sent();\n (0, chai_1.expect)(textColumnLastName).to.contains(editBrandAddressData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8892ef15-950a-4788-92eb-aaa905a341c2", + "parentUUID": "86558242-be8c-4a0f-996f-2a895d6311d1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete Brand Address", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Delete brand Address should delete Brand Address", + "timedOut": false, + "duration": 1464, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_deleteAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.deleteBrandAddress(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(brands_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8725fe6-ec5c-4da9-81b7-104dbc088a3d", + "parentUUID": "86558242-be8c-4a0f-996f-2a895d6311d1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - Catalog - Brands & suppliers : CRUD Brand and Address Delete brand Address should reset filters", + "timedOut": false, + "duration": 345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_CRUDBrandAndAddress_resetAddressesListAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAddressesListAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, addressesTable)];\n case 2:\n numberOfBrandsAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAddressesAfterReset).to.be.equal(numberOfBrandsAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6d5ecef-a752-4e72-96e7-d643fd26c6ec", + "parentUUID": "86558242-be8c-4a0f-996f-2a895d6311d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8892ef15-950a-4788-92eb-aaa905a341c2", + "b8725fe6-ec5c-4da9-81b7-104dbc088a3d", + "d6d5ecef-a752-4e72-96e7-d643fd26c6ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3104, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "919ff302-0fce-42f7-aa2e-321d13865dc5", + "e2f8cdd1-3b54-48db-86f8-6bc10e8051d3", + "a024f0da-4501-4e82-9f0e-1177ea9f3a2f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16008, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "54e895ac-2a25-4f2f-9ebc-d82f69d4a496", + "title": "BO - Catalog - Brands & suppliers : Help card on brands page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/02_helpCard.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/02_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & suppliers : Help card on brands page\"", + "fullTitle": "BO - Catalog - Brands & suppliers : Help card on brands page \"before all\" hook in \"BO - Catalog - Brands & suppliers : Help card on brands page\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ffa1297-f628-492c-b699-0fc540dea320", + "parentUUID": "54e895ac-2a25-4f2f-9ebc-d82f69d4a496", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & suppliers : Help card on brands page\"", + "fullTitle": "BO - Catalog - Brands & suppliers : Help card on brands page \"after all\" hook in \"BO - Catalog - Brands & suppliers : Help card on brands page\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "246a2052-50dd-4566-8c06-406b13ce5c1b", + "parentUUID": "54e895ac-2a25-4f2f-9ebc-d82f69d4a496", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & suppliers : Help card on brands page should login in BO", + "timedOut": false, + "duration": 1758, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9ab9cb2-da94-4fd9-bad3-9b7ffb44441d", + "parentUUID": "54e895ac-2a25-4f2f-9ebc-d82f69d4a496", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & suppliers : Help card on brands page should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_helpCard_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f0e0c17-d922-4dbf-bc54-e1e370589561", + "parentUUID": "54e895ac-2a25-4f2f-9ebc-d82f69d4a496", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Catalog - Brands & suppliers : Help card on brands page should open the help side bar and check the document language", + "timedOut": false, + "duration": 136, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, brands_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd87eb34-2eb8-4db1-aadd-4604f11d2166", + "parentUUID": "54e895ac-2a25-4f2f-9ebc-d82f69d4a496", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Catalog - Brands & suppliers : Help card on brands page should close the help side bar", + "timedOut": false, + "duration": 66, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "710afcec-cf5a-43eb-86f7-4b43f2c4061f", + "parentUUID": "54e895ac-2a25-4f2f-9ebc-d82f69d4a496", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f9ab9cb2-da94-4fd9-bad3-9b7ffb44441d", + "8f0e0c17-d922-4dbf-bc54-e1e370589561", + "cd87eb34-2eb8-4db1-aadd-4604f11d2166", + "710afcec-cf5a-43eb-86f7-4b43f2c4061f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6916, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2d30a7da-a77c-49ac-8ce4-49ed81fde275", + "title": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/01_filterAddresses.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/01_filterAddresses.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table \"before all\" hook in \"BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bd3aab7-877f-40f4-a9be-95a588066d25", + "parentUUID": "2d30a7da-a77c-49ac-8ce4-49ed81fde275", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table \"after all\" hook in \"BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "275e0fa1-5253-43af-b452-f1cf3eec4823", + "parentUUID": "2d30a7da-a77c-49ac-8ce4-49ed81fde275", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table should login in BO", + "timedOut": false, + "duration": 1849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76f146bf-9826-465f-b1a8-6c61ebb8faca", + "parentUUID": "2d30a7da-a77c-49ac-8ce4-49ed81fde275", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf31f590-79d4-4a29-af3d-47f7661859fe", + "parentUUID": "2d30a7da-a77c-49ac-8ce4-49ed81fde275", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of addresses in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table should reset all filters and get number of addresses in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e070828d-5f72-4dd1-87a4-ebc55d3af005", + "parentUUID": "2d30a7da-a77c-49ac-8ce4-49ed81fde275", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "title": "Filter Addresses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/01_filterAddresses.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/01_filterAddresses.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_address '4'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should filter by id_address '4'", + "timedOut": false, + "duration": 412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b14d1a71-2d9c-4c44-a38b-55549932522d", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should reset all filters", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6c8cad9-dd6e-43f9-bdf0-b58b4082f7e5", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Studio Design'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should filter by name 'Studio Design'", + "timedOut": false, + "duration": 397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6500778-aa68-4702-a80e-469c37ceee95", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should reset all filters", + "timedOut": false, + "duration": 866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75b46de3-4976-4d54-9b63-3fb537f13fed", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by firstname 'manufacturer'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should filter by firstname 'manufacturer'", + "timedOut": false, + "duration": 400, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterFirstName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17d8813b-0399-40a5-b047-469835a23d72", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should reset all filters", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterFirstNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70551a74-a16d-45dd-a078-f80a895b80b9", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by lastname 'manufacturer'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should filter by lastname 'manufacturer'", + "timedOut": false, + "duration": 420, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterLastName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d4a1aba-027e-4adf-b0fe-43e48da5e7dc", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should reset all filters", + "timedOut": false, + "duration": 857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterLastNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fc46cce-569d-4b8e-a102-77e3de6dfbe7", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by postcode '10154'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should filter by postcode '10154'", + "timedOut": false, + "duration": 383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterPostCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b6e85e4-761a-44fe-9217-a373970d0656", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should reset all filters", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterPostCodeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ddf9931-d9ed-46e9-8fab-3fed2f6f5dc5", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by city 'New York'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should filter by city 'New York'", + "timedOut": false, + "duration": 387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterCity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4ed4857-97ac-4727-9735-22a364e94b42", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should reset all filters", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterCityReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44404484-bdbc-4561-a58f-702ecb1c50e1", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by country 'United States'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should filter by country 'United States'", + "timedOut": false, + "duration": 387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "451ce251-af23-4ff3-b25a-5cc70eded4ed", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit Addresses table Filter Addresses table should reset all filters", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_filterAddresses_filterCountryReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8285ca00-4fd9-4495-b81c-14e22020e753", + "parentUUID": "274ebff1-7e57-4c83-bfd2-6bc6b31fa36f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b14d1a71-2d9c-4c44-a38b-55549932522d", + "c6c8cad9-dd6e-43f9-bdf0-b58b4082f7e5", + "a6500778-aa68-4702-a80e-469c37ceee95", + "75b46de3-4976-4d54-9b63-3fb537f13fed", + "17d8813b-0399-40a5-b047-469835a23d72", + "70551a74-a16d-45dd-a078-f80a895b80b9", + "7d4a1aba-027e-4adf-b0fe-43e48da5e7dc", + "5fc46cce-569d-4b8e-a102-77e3de6dfbe7", + "1b6e85e4-761a-44fe-9217-a373970d0656", + "9ddf9931-d9ed-46e9-8fab-3fed2f6f5dc5", + "e4ed4857-97ac-4727-9735-22a364e94b42", + "44404484-bdbc-4561-a58f-702ecb1c50e1", + "451ce251-af23-4ff3-b25a-5cc70eded4ed", + "8285ca00-4fd9-4495-b81c-14e22020e753" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8881, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "76f146bf-9826-465f-b1a8-6c61ebb8faca", + "cf31f590-79d4-4a29-af3d-47f7661859fe", + "e070828d-5f72-4dd1-87a4-ebc55d3af005" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8753, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2bc83d44-c89f-44df-b7f9-a67c4eb33f16", + "title": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table \"before all\" hook in \"BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "275824e6-4cc4-47be-ba41-0ff2132953d9", + "parentUUID": "2bc83d44-c89f-44df-b7f9-a67c4eb33f16", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table \"after all\" hook in \"BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2df0925e-da2f-47e4-8bb6-493f462d7d1e", + "parentUUID": "2bc83d44-c89f-44df-b7f9-a67c4eb33f16", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8686943a-be60-4e74-bde9-1ea25f34a775", + "parentUUID": "2bc83d44-c89f-44df-b7f9-a67c4eb33f16", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edada9cf-548d-45c0-8c62-631def1a51fe", + "parentUUID": "2bc83d44-c89f-44df-b7f9-a67c4eb33f16", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of addresses in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table should reset all filters and get number of addresses in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_resetFilterAddressesTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAddressesTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44276ca9-7c69-4eaa-b9c9-f4fb2cd63ca9", + "parentUUID": "2bc83d44-c89f-44df-b7f9-a67c4eb33f16", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "title": "Create 10 new Addresses in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49a5d6f2-68eb-4386-8af3-7af648c2b638", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°1", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°1", + "timedOut": false, + "duration": 1304, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "238bf363-2f6b-4e1b-9054-49c2e276d9ae", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "443c0c58-76ee-4f9c-909b-43b56c021e91", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°2", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°2", + "timedOut": false, + "duration": 1287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4fe19c9-a86d-4ef4-9257-3fd5b4ace9d9", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13a5ba1f-1cca-4008-b5dd-829df8b89f9b", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°3", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°3", + "timedOut": false, + "duration": 1306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "599cdea0-8176-4d3d-b5c9-cb2cf35275d3", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76926f52-565f-4c3b-be76-e20bf051c42f", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°4", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°4", + "timedOut": false, + "duration": 1271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57a06f25-06a0-4ad4-acd7-a9d161a6590e", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27a34aa2-06c6-470b-9c63-e16aeb2c7fd0", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°5", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°5", + "timedOut": false, + "duration": 1358, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a5a2dcd-4831-4d77-9383-727a046e6ec8", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7ab61b2-5a48-43d8-8d2c-61cef7021849", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°6", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°6", + "timedOut": false, + "duration": 1281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45941b86-d029-4bd4-8ee3-5d87b7cfaa4e", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a414466b-9c0d-4de5-9850-fdec2d79b988", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°7", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°7", + "timedOut": false, + "duration": 1307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d3e6a4d-196d-4d56-b54a-af0736693e0d", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b41060c-ec55-43c8-9929-a4a782eedab6", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°8", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°8", + "timedOut": false, + "duration": 1281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30742955-45cd-4f9c-ba68-246efe7c010d", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e321a50-af32-4667-a0f6-18cc6e4903ce", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°9", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°9", + "timedOut": false, + "duration": 1287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02ebbae6-491d-49fc-b82e-a93de0c6d234", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should go to add new address page", + "timedOut": false, + "duration": 747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_goToAddNewAddressPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToAddNewBrandAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addAddress_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac8c89de-8072-4cf6-812c-7e01f1882bdc", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°10", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Create 10 new Addresses in BO should create address n°10", + "timedOut": false, + "duration": 1319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_createAddress9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.default.createEditBrandAddress(page, createAddressData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(brands_1.default.successfulCreationMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "903f8d51-7b56-4c3c-b8bb-cafd05852d29", + "parentUUID": "88cac02e-d2dd-48a8-be12-bcb1d011d11e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "49a5d6f2-68eb-4386-8af3-7af648c2b638", + "238bf363-2f6b-4e1b-9054-49c2e276d9ae", + "443c0c58-76ee-4f9c-909b-43b56c021e91", + "a4fe19c9-a86d-4ef4-9257-3fd5b4ace9d9", + "13a5ba1f-1cca-4008-b5dd-829df8b89f9b", + "599cdea0-8176-4d3d-b5c9-cb2cf35275d3", + "76926f52-565f-4c3b-be76-e20bf051c42f", + "57a06f25-06a0-4ad4-acd7-a9d161a6590e", + "27a34aa2-06c6-470b-9c63-e16aeb2c7fd0", + "0a5a2dcd-4831-4d77-9383-727a046e6ec8", + "b7ab61b2-5a48-43d8-8d2c-61cef7021849", + "45941b86-d029-4bd4-8ee3-5d87b7cfaa4e", + "a414466b-9c0d-4de5-9850-fdec2d79b988", + "5d3e6a4d-196d-4d56-b54a-af0736693e0d", + "1b41060c-ec55-43c8-9929-a4a782eedab6", + "30742955-45cd-4f9c-ba68-246efe7c010d", + "8e321a50-af32-4667-a0f6-18cc6e4903ce", + "02ebbae6-491d-49fc-b82e-a93de0c6d234", + "ac8c89de-8072-4cf6-812c-7e01f1882bdc", + "903f8d51-7b56-4c3c-b8bb-cafd05852d29" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20688, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f9f44856-1f9f-41ff-aaeb-db85e5097086", + "title": "Pagination next and previous of Addresses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Pagination next and previous of Addresses table should change the items number to 10 per page", + "timedOut": false, + "duration": 275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_addressesChangeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addressesChangeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09424707-5af6-4792-8bd9-b184d88400e6", + "parentUUID": "f9f44856-1f9f-41ff-aaeb-db85e5097086", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Pagination next and previous of Addresses table should click on next", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_addressesClickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addressesClickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0d78f7b-25ee-499f-9ead-d890aa68b0cc", + "parentUUID": "f9f44856-1f9f-41ff-aaeb-db85e5097086", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Pagination next and previous of Addresses table should click on previous", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_addressesClickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addressesClickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e891c052-88ff-4ace-aee1-e92623b52102", + "parentUUID": "f9f44856-1f9f-41ff-aaeb-db85e5097086", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Pagination next and previous of Addresses table should change the items number to 50 per page", + "timedOut": false, + "duration": 332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_addressesChangeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addressesChangeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.selectPaginationLimit(page, tableName, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68b09bca-49b5-473f-a174-2eec48162dad", + "parentUUID": "f9f44856-1f9f-41ff-aaeb-db85e5097086", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "09424707-5af6-4792-8bd9-b184d88400e6", + "c0d78f7b-25ee-499f-9ead-d890aa68b0cc", + "e891c052-88ff-4ace-aee1-e92623b52102", + "68b09bca-49b5-473f-a174-2eec48162dad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2234, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "title": "Sort Addresses", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_address' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'id_address' 'desc' and check result", + "timedOut": false, + "duration": 2194, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByIdAddressDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40bd8e98-49ae-4f03-84b0-4ccbe78b2e7c", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3124, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0696b48b-1fe2-472a-8d30-77f07dae6e75", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bb41139-ac0a-43e6-9b81-e6ddbc649d52", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'firstname' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'firstname' 'asc' and check result", + "timedOut": false, + "duration": 3027, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByFirstNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc8fb59f-cdae-4b0f-8c01-40f5d6d43300", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'firstname' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'firstname' 'desc' and check result", + "timedOut": false, + "duration": 3000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByFirstNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2c055f2-3b01-4f7d-8363-76b20ce18a02", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'lastname' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'lastname' 'asc' and check result", + "timedOut": false, + "duration": 3064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByLastNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69edbedd-90ee-42c4-95f8-c6b0f5fb6eae", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'lastname' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'lastname' 'desc' and check result", + "timedOut": false, + "duration": 3099, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByLastNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac68afee-6b80-4aff-8f42-24c655b9f3f6", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'postcode' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'postcode' 'asc' and check result", + "timedOut": false, + "duration": 3055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByPostCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3dc579c-3bbe-4366-b29c-febe33128683", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'postcode' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'postcode' 'desc' and check result", + "timedOut": false, + "duration": 3005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByPostCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88005ecf-2f7d-432d-b1cd-8b3b5dd5605d", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'city' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'city' 'asc' and check result", + "timedOut": false, + "duration": 3012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByCityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57c4cb9c-4dfe-4b43-8f07-927c3c86d9eb", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'city' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'city' 'desc' and check result", + "timedOut": false, + "duration": 3075, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByCityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "970e19c5-34c4-45b8-add1-b9063505e380", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'country' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'country' 'asc' and check result", + "timedOut": false, + "duration": 3017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByCountryAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "122cef9d-e7cb-4e0a-8ae8-d87087d82acc", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'country' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'country' 'desc' and check result", + "timedOut": false, + "duration": 3136, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByCountryDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91341cce-a8c1-4ece-bc29-742a58d196be", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_address' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Sort Addresses should sort by 'id_address' 'asc' and check result", + "timedOut": false, + "duration": 3057, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_sortAddressesByIdAddressAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableAddresses(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentAddressesTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f89f66f-7cd3-4a6f-9bd2-1e8e428e28aa", + "parentUUID": "82c5fe80-b1c9-4e9d-ad56-859ef3af2028", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "40bd8e98-49ae-4f03-84b0-4ccbe78b2e7c", + "0696b48b-1fe2-472a-8d30-77f07dae6e75", + "0bb41139-ac0a-43e6-9b81-e6ddbc649d52", + "bc8fb59f-cdae-4b0f-8c01-40f5d6d43300", + "a2c055f2-3b01-4f7d-8363-76b20ce18a02", + "69edbedd-90ee-42c4-95f8-c6b0f5fb6eae", + "ac68afee-6b80-4aff-8f42-24c655b9f3f6", + "f3dc579c-3bbe-4366-b29c-febe33128683", + "88005ecf-2f7d-432d-b1cd-8b3b5dd5605d", + "57c4cb9c-4dfe-4b43-8f07-927c3c86d9eb", + "970e19c5-34c4-45b8-add1-b9063505e380", + "122cef9d-e7cb-4e0a-8ae8-d87087d82acc", + "91341cce-a8c1-4ece-bc29-742a58d196be", + "1f89f66f-7cd3-4a6f-9bd2-1e8e428e28aa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 41879, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cdd17941-12b5-4992-9228-142661376d1f", + "title": "Delete created Addresses with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/addresses/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by city", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Delete created Addresses with bulk actions should filter list by city", + "timedOut": false, + "duration": 462, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_filterToDeleteAddresses\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDeleteAddresses', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterAddresses(page, 'input', 'city', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableAddresses(page, 1, 'city')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd42f998-0bbd-4dc0-ae61-cb54ccd0d6c8", + "parentUUID": "cdd17941-12b5-4992-9228-142661376d1f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete with Bulk Actions and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Delete created Addresses with bulk actions should delete with Bulk Actions and check result", + "timedOut": false, + "duration": 1532, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_deleteAddresses\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAddresses', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.deleteWithBulkActions(page, tableName)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(brands_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45653dd0-df3d-4bd8-b83f-be45c742d806", + "parentUUID": "cdd17941-12b5-4992-9228-142661376d1f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Addresses table Delete created Addresses with bulk actions should reset filters", + "timedOut": false, + "duration": 344, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_addresses_sortPaginationAndBulkActions_resetAfterDeleteAddresses\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteAddresses', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.be.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a4be98d-6816-4d9b-b91d-3b97f3634b8f", + "parentUUID": "cdd17941-12b5-4992-9228-142661376d1f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fd42f998-0bbd-4dc0-ae61-cb54ccd0d6c8", + "45653dd0-df3d-4bd8-b83f-be45c742d806", + "1a4be98d-6816-4d9b-b91d-3b97f3634b8f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2338, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "8686943a-be60-4e74-bde9-1ea25f34a775", + "edada9cf-548d-45c0-8c62-631def1a51fe", + "44276ca9-7c69-4eaa-b9c9-f4fb2cd63ca9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8640, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "34808c75-a9cc-4c38-97bb-0434b8e9a987", + "title": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/01_filterAndQuickEditBrands.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/01_filterAndQuickEditBrands.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & suppliers : Filter and quick edit Brands table\"", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table \"before all\" hook in \"BO - Catalog - Brands & suppliers : Filter and quick edit Brands table\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf8f58ea-033e-449d-b153-9e9244409890", + "parentUUID": "34808c75-a9cc-4c38-97bb-0434b8e9a987", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & suppliers : Filter and quick edit Brands table\"", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table \"after all\" hook in \"BO - Catalog - Brands & suppliers : Filter and quick edit Brands table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e8953afd-789c-4e3d-b01a-633628cfd137", + "parentUUID": "34808c75-a9cc-4c38-97bb-0434b8e9a987", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table should login in BO", + "timedOut": false, + "duration": 1684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6895977-4885-4edc-bc63-b1a177c6975b", + "parentUUID": "34808c75-a9cc-4c38-97bb-0434b8e9a987", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f31bd617-ab2a-4256-b8f6-c365e189966f", + "parentUUID": "34808c75-a9cc-4c38-97bb-0434b8e9a987", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of brands in BO", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table should reset all filters and get number of brands in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrands = _a.sent();\n (0, chai_1.expect)(numberOfBrands).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce388bfb-db55-48cf-a6e5-d0590b77c347", + "parentUUID": "34808c75-a9cc-4c38-97bb-0434b8e9a987", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "afe99305-3445-42ba-bd3f-beb8c6c18b64", + "title": "Filter Brands table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/01_filterAndQuickEditBrands.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/01_filterAndQuickEditBrands.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_manufacturer '1'", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Filter Brands table should filter by id_manufacturer '1'", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterFilter, i, brandStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 3];\n return [4 /*yield*/, brands_1.default.filterBrandsEnabled(page, test.args.filterValue)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, brands_1.default.filterBrands(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 6:\n numberOfBrandsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterFilter).to.be.at.most(numberOfBrands);\n i = 1;\n _a.label = 7;\n case 7:\n if (!(i <= numberOfBrandsAfterFilter)) return [3 /*break*/, 12];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 9];\n return [4 /*yield*/, brands_1.default.getBrandStatus(page, i)];\n case 8:\n brandStatus = _a.sent();\n (0, chai_1.expect)(brandStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 11];\n case 9: return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, i, test.args.filterBy)];\n case 10:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 11;\n case 11:\n i++;\n return [3 /*break*/, 7];\n case 12: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "807b70fb-fe99-4bd0-915a-3ba4fa1c72e7", + "parentUUID": "afe99305-3445-42ba-bd3f-beb8c6c18b64", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Filter Brands table should reset all filters", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.equal(numberOfBrands);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ecc78be-ff44-4fde-85c7-bd31e02cde32", + "parentUUID": "afe99305-3445-42ba-bd3f-beb8c6c18b64", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Studio Design'", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Filter Brands table should filter by name 'Studio Design'", + "timedOut": false, + "duration": 404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterFilter, i, brandStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 3];\n return [4 /*yield*/, brands_1.default.filterBrandsEnabled(page, test.args.filterValue)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, brands_1.default.filterBrands(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 6:\n numberOfBrandsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterFilter).to.be.at.most(numberOfBrands);\n i = 1;\n _a.label = 7;\n case 7:\n if (!(i <= numberOfBrandsAfterFilter)) return [3 /*break*/, 12];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 9];\n return [4 /*yield*/, brands_1.default.getBrandStatus(page, i)];\n case 8:\n brandStatus = _a.sent();\n (0, chai_1.expect)(brandStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 11];\n case 9: return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, i, test.args.filterBy)];\n case 10:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 11;\n case 11:\n i++;\n return [3 /*break*/, 7];\n case 12: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f86de54d-cca2-4cb1-9646-963da91d3794", + "parentUUID": "afe99305-3445-42ba-bd3f-beb8c6c18b64", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Filter Brands table should reset all filters", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.equal(numberOfBrands);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e59498df-dee3-4be7-85c1-61a3ddb4c2db", + "parentUUID": "afe99305-3445-42ba-bd3f-beb8c6c18b64", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Filter Brands table should filter by active '1'", + "timedOut": false, + "duration": 318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterFilter, i, brandStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 3];\n return [4 /*yield*/, brands_1.default.filterBrandsEnabled(page, test.args.filterValue)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, brands_1.default.filterBrands(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 6:\n numberOfBrandsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterFilter).to.be.at.most(numberOfBrands);\n i = 1;\n _a.label = 7;\n case 7:\n if (!(i <= numberOfBrandsAfterFilter)) return [3 /*break*/, 12];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 9];\n return [4 /*yield*/, brands_1.default.getBrandStatus(page, i)];\n case 8:\n brandStatus = _a.sent();\n (0, chai_1.expect)(brandStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 11];\n case 9: return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, i, test.args.filterBy)];\n case 10:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 11;\n case 11:\n i++;\n return [3 /*break*/, 7];\n case 12: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "144cc053-6253-42a9-91e8-72f184ba863d", + "parentUUID": "afe99305-3445-42ba-bd3f-beb8c6c18b64", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Filter Brands table should reset all filters", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_filterActiveReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.equal(numberOfBrands);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2d30ba6-3aef-4035-a9d7-ccd6b23d20b4", + "parentUUID": "afe99305-3445-42ba-bd3f-beb8c6c18b64", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "807b70fb-fe99-4bd0-915a-3ba4fa1c72e7", + "2ecc78be-ff44-4fde-85c7-bd31e02cde32", + "f86de54d-cca2-4cb1-9646-963da91d3794", + "e59498df-dee3-4be7-85c1-61a3ddb4c2db", + "144cc053-6253-42a9-91e8-72f184ba863d", + "f2d30ba6-3aef-4035-a9d7-ccd6b23d20b4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3731, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "67dfd724-ab9a-4e68-9d8f-f694dcc36efc", + "title": "Quick edit Brands", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/01_filterAndQuickEditBrands.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/01_filterAndQuickEditBrands.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by brand name", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Quick edit Brands should filter by brand name", + "timedOut": false, + "duration": 403, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterBrands(page, 'input', 'name', brands_2.default.first.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfBrandsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterFilter).to.be.at.most(numberOfBrands);\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(brands_2.default.first.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36673e34-4d82-4a82-8226-4042fadd2cf5", + "parentUUID": "67dfd724-ab9a-4e68-9d8f-f694dcc36efc", + "isHook": false, + "skipped": false + }, + { + "title": "should disable first brand", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Quick edit Brands should disable first brand", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_disableBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, brandsStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Brand\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.setBrandStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, brands_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(brands_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, brands_1.default.getBrandStatus(page, 1)];\n case 5:\n brandsStatus = _a.sent();\n (0, chai_1.expect)(brandsStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f47e6a9-8e8a-40cc-b719-aee5e94b2e61", + "parentUUID": "67dfd724-ab9a-4e68-9d8f-f694dcc36efc", + "isHook": false, + "skipped": false + }, + { + "title": "should enable first brand", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Quick edit Brands should enable first brand", + "timedOut": false, + "duration": 362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_enableBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, brandsStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Brand\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.setBrandStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, brands_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(brands_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, brands_1.default.getBrandStatus(page, 1)];\n case 5:\n brandsStatus = _a.sent();\n (0, chai_1.expect)(brandsStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ec45f3f-7e6b-499b-876f-c9c97ff95408", + "parentUUID": "67dfd724-ab9a-4e68-9d8f-f694dcc36efc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Brands & suppliers : Filter and quick edit Brands table Quick edit Brands should reset all filters", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_filterAndQuickEditBrands_resetAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.equal(numberOfBrands);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af5f6c55-7aa1-45ab-93b2-bcaf6b6fa547", + "parentUUID": "67dfd724-ab9a-4e68-9d8f-f694dcc36efc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "36673e34-4d82-4a82-8226-4042fadd2cf5", + "4f47e6a9-8e8a-40cc-b719-aee5e94b2e61", + "5ec45f3f-7e6b-499b-876f-c9c97ff95408", + "af5f6c55-7aa1-45ab-93b2-bcaf6b6fa547" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2505, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "d6895977-4885-4edc-bc63-b1a177c6975b", + "f31bd617-ab2a-4256-b8f6-c365e189966f", + "ce388bfb-db55-48cf-a6e5-d0590b77c347" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8578, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "94b81f4a-a6a7-4921-b5ee-c4b920c5cd5d", + "title": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table \"before all\" hook in \"BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all brands data\n return [4 /*yield*/, files_1.default.createCSVFile('.', fileName, brands_2.default)];\n case 3:\n // Create csv file with all brands data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11e1f055-3940-4043-99f7-00a81025c64f", + "parentUUID": "94b81f4a-a6a7-4921-b5ee-c4b920c5cd5d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table \"after all\" hook in \"BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete created csv file\n return [4 /*yield*/, files_1.default.deleteFile(fileName)];\n case 2:\n // Delete created csv file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e869d1ea-26f1-45c7-9e2b-6b657500d6c1", + "parentUUID": "94b81f4a-a6a7-4921-b5ee-c4b920c5cd5d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "title": "PRE-TEST: Import file 'brands.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'brands.csv'\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' \"before all\" hook in \"PRE-TEST: Import file 'brands.csv'\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "469eb342-7253-4c69-82f6-4054904d6495", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'brands.csv'\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' \"after all\" hook in \"PRE-TEST: Import file 'brands.csv'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d48b0a4e-dca1-4ef5-a858-43fd48c46ae9", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' should login in BO", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ac205b9-4a7c-4b87-8516-d926e44b734d", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08f47b92-61fb-41ab-8c0b-30bb95966046", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'brands.csv' file", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' should import 'brands.csv' file", + "timedOut": false, + "duration": 2093, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18175267-02b8-405b-a971-b9a2d38a4445", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' should go to next import file step", + "timedOut": false, + "duration": 369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4bd17cb-b1b6-4534-b98e-69dbf0826e96", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' should start import file", + "timedOut": false, + "duration": 249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2cecb5a-3c5a-4495-b830-37a0515131a5", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' should check that the import is completed", + "timedOut": false, + "duration": 807, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cadfe44-e587-4401-b902-2f0e6c4ca942", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table PRE-TEST: Import file 'brands.csv' should close import progress modal", + "timedOut": false, + "duration": 1183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13d324d7-a59c-4a27-bb6c-544a8f2fef01", + "parentUUID": "5a81bb96-420a-463c-be44-427f9d0c3f17", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ac205b9-4a7c-4b87-8516-d926e44b734d", + "08f47b92-61fb-41ab-8c0b-30bb95966046", + "18175267-02b8-405b-a971-b9a2d38a4445", + "c4bd17cb-b1b6-4534-b98e-69dbf0826e96", + "a2cecb5a-3c5a-4495-b830-37a0515131a5", + "8cadfe44-e587-4401-b902-2f0e6c4ca942", + "13d324d7-a59c-4a27-bb6c-544a8f2fef01" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11283, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ffd39908-2ed5-4352-acb0-a0846289f2e3", + "title": "Pagination next and previous of Brands table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Pagination next and previous of Brands table should login in BO", + "timedOut": false, + "duration": 1734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb5b45d8-9989-4fab-9602-49154f97acb9", + "parentUUID": "ffd39908-2ed5-4352-acb0-a0846289f2e3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Pagination next and previous of Brands table should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eaf43d8b-0f75-495a-b19c-cfcc1f8b9657", + "parentUUID": "ffd39908-2ed5-4352-acb0-a0846289f2e3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of brands in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Pagination next and previous of Brands table should reset all filters and get number of brands in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_resetFilterBrandsTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterBrandsTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrands = _a.sent();\n (0, chai_1.expect)(numberOfBrands).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b89c0f7-8ea2-47a5-a365-f2b4407e6294", + "parentUUID": "ffd39908-2ed5-4352-acb0-a0846289f2e3", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Pagination next and previous of Brands table should change the items number to 10 per page", + "timedOut": false, + "duration": 309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_brandsChangeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'brandsChangeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85a77eac-f04c-426e-98a0-7fcbdda2d4b3", + "parentUUID": "ffd39908-2ed5-4352-acb0-a0846289f2e3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Pagination next and previous of Brands table should click on next", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_brandsClickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'brandsClickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c9c620d-2b8d-402a-8b74-5189a5c0f3a9", + "parentUUID": "ffd39908-2ed5-4352-acb0-a0846289f2e3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Pagination next and previous of Brands table should click on previous", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_brandsClickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'brandsClickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5a27283-64c8-4862-86b1-3b5cad295d60", + "parentUUID": "ffd39908-2ed5-4352-acb0-a0846289f2e3", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Pagination next and previous of Brands table should change the items number to 50 per page", + "timedOut": false, + "duration": 277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_brandsChangeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'brandsChangeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.selectPaginationLimit(page, tableName, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22c78db1-e15a-4a94-93aa-0a445199cc56", + "parentUUID": "ffd39908-2ed5-4352-acb0-a0846289f2e3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eb5b45d8-9989-4fab-9602-49154f97acb9", + "eaf43d8b-0f75-495a-b19c-cfcc1f8b9657", + "7b89c0f7-8ea2-47a5-a365-f2b4407e6294", + "85a77eac-f04c-426e-98a0-7fcbdda2d4b3", + "9c9c620d-2b8d-402a-8b74-5189a5c0f3a9", + "d5a27283-64c8-4862-86b1-3b5cad295d60", + "22c78db1-e15a-4a94-93aa-0a445199cc56" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10897, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4b95c8c8-3d4f-4804-971e-437e8cafc54c", + "title": "Sort Brands table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_manufacturer' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Sort Brands table should sort by 'id_manufacturer' 'desc' and check result", + "timedOut": false, + "duration": 3858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_sortBrandsByIdBrandDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentBrandsTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableBrands(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentBrandsTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad709346-f7b8-40f5-ae57-350ceceb07a0", + "parentUUID": "4b95c8c8-3d4f-4804-971e-437e8cafc54c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Sort Brands table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_sortBrandsByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentBrandsTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableBrands(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentBrandsTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f54eae2-7c26-4d5b-b50e-d4645dab33b6", + "parentUUID": "4b95c8c8-3d4f-4804-971e-437e8cafc54c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Sort Brands table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_sortBrandsByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentBrandsTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableBrands(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentBrandsTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7b16f50-eb79-43fb-a07c-f0da832721a5", + "parentUUID": "4b95c8c8-3d4f-4804-971e-437e8cafc54c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_manufacturer' 'asc' and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Sort Brands table should sort by 'id_manufacturer' 'asc' and check result", + "timedOut": false, + "duration": 2999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_sortBrandsByIdBrandAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentBrandsTable(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, brands_1.default.sortTableBrands(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAllRowsColumnContentBrandsTable(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7f52871-a20c-4700-a9b7-330bc4dbaa2a", + "parentUUID": "4b95c8c8-3d4f-4804-971e-437e8cafc54c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ad709346-f7b8-40f5-ae57-350ceceb07a0", + "9f54eae2-7c26-4d5b-b50e-d4645dab33b6", + "d7b16f50-eb79-43fb-a07c-f0da832721a5", + "b7f52871-a20c-4700-a9b7-330bc4dbaa2a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12888, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c4a52a40-04f0-4a1c-998d-3bc9f98d360f", + "title": "Disable, enable created Brands", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Disable, enable created Brands should filter list by name", + "timedOut": false, + "duration": 454, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_filterToDisableBrands\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDisableBrands', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterBrands(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ecef8a8-663a-44b3-a00d-a4cf7c681d5c", + "parentUUID": "c4a52a40-04f0-4a1c-998d-3bc9f98d360f", + "isHook": false, + "skipped": false + }, + { + "title": "should disable brands", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Disable, enable created Brands should disable brands", + "timedOut": false, + "duration": 570, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_disableBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfBrandsInGrid, i, brandStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Brand\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.bulkSetBrandsStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(brands_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfBrandsInGrid = _a.sent();\n (0, chai_1.expect)(numberOfBrandsInGrid).to.be.equal(numberOfImportedBrands);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfBrandsInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getBrandStatus(page, i)];\n case 5:\n brandStatus = _a.sent();\n (0, chai_1.expect)(brandStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcec8140-0f79-4b7c-94bf-9c3651d54f56", + "parentUUID": "c4a52a40-04f0-4a1c-998d-3bc9f98d360f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable brands", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Disable, enable created Brands should enable brands", + "timedOut": false, + "duration": 573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_enableBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfBrandsInGrid, i, brandStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Brand\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.bulkSetBrandsStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(brands_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfBrandsInGrid = _a.sent();\n (0, chai_1.expect)(numberOfBrandsInGrid).to.be.equal(numberOfImportedBrands);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfBrandsInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getBrandStatus(page, i)];\n case 5:\n brandStatus = _a.sent();\n (0, chai_1.expect)(brandStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2530718f-27a8-49fc-ad88-ea98f1723e7e", + "parentUUID": "c4a52a40-04f0-4a1c-998d-3bc9f98d360f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Disable, enable created Brands should reset filters", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_resetAfterBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.be.equal(numberOfBrands);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ef3a5be-0688-4cb5-be34-8c5d9c7a9a4b", + "parentUUID": "c4a52a40-04f0-4a1c-998d-3bc9f98d360f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ecef8a8-663a-44b3-a00d-a4cf7c681d5c", + "dcec8140-0f79-4b7c-94bf-9c3651d54f56", + "2530718f-27a8-49fc-ad88-ea98f1723e7e", + "0ef3a5be-0688-4cb5-be34-8c5d9c7a9a4b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2475, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb2c68ba-8d83-42a1-8043-2e951a7ef1d9", + "title": "Delete Brands with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/02_sortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Delete Brands with bulk actions should filter list by name", + "timedOut": false, + "duration": 454, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_filterToDeleteBrands\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDeleteBrands', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.filterBrands(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getTextColumnFromTableBrands(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6a55763-acd5-4fb2-885f-d57b44b4d888", + "parentUUID": "bb2c68ba-8d83-42a1-8043-2e951a7ef1d9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete with bulk actions and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Delete Brands with bulk actions should delete with bulk actions and check result", + "timedOut": false, + "duration": 1622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_deleteBrands\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteBrands', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.deleteWithBulkActions(page, tableName)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(brands_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d6c62d5-787b-4d9c-ba19-8bce5a123d3b", + "parentUUID": "bb2c68ba-8d83-42a1-8043-2e951a7ef1d9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - Catalog - Brands & Suppliers : Sort, pagination and bulk actions Brands table Delete Brands with bulk actions should reset filters", + "timedOut": false, + "duration": 366, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_sortPaginationAndBulkActions_resetAfterDeleteBrands\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfBrandsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteBrands', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrandsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfBrandsAfterReset).to.be.equal(numberOfBrands - numberOfImportedBrands);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7bf7d60-6a11-4534-8a23-abb9f7a6dc01", + "parentUUID": "bb2c68ba-8d83-42a1-8043-2e951a7ef1d9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e6a55763-acd5-4fb2-885f-d57b44b4d888", + "3d6c62d5-787b-4d9c-ba19-8bce5a123d3b", + "c7bf7d60-6a11-4534-8a23-abb9f7a6dc01" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2442, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1dc7423b-0ecc-4c1a-bc9a-ffac8bba06b8", + "title": "BO - Catalog - Brands & Suppliers : Export brands", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/03_exportBrands.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/brands/brands/03_exportBrands.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & Suppliers : Export brands\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Export brands \"before all\" hook in \"BO - Catalog - Brands & Suppliers : Export brands\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26910f12-d1cb-492e-a3f6-75830fb3d950", + "parentUUID": "1dc7423b-0ecc-4c1a-bc9a-ffac8bba06b8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & Suppliers : Export brands\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Export brands \"after all\" hook in \"BO - Catalog - Brands & Suppliers : Export brands\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "06c60593-0185-44f8-8634-280388cd8b52", + "parentUUID": "1dc7423b-0ecc-4c1a-bc9a-ffac8bba06b8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Export brands should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f795cd2a-e995-4309-9f57-bbd92e65337b", + "parentUUID": "1dc7423b-0ecc-4c1a-bc9a-ffac8bba06b8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Export brands should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_exportBrands_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c48b6a6f-b75b-412b-8a3e-6d15a6d3349c", + "parentUUID": "1dc7423b-0ecc-4c1a-bc9a-ffac8bba06b8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of brands in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Export brands should reset all filters and get number of brands in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_exportBrands_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfBrands = _a.sent();\n (0, chai_1.expect)(numberOfBrands).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8714cfb9-5cac-44be-9aa2-8a01efd62dc4", + "parentUUID": "1dc7423b-0ecc-4c1a-bc9a-ffac8bba06b8", + "isHook": false, + "skipped": false + }, + { + "title": "should export brands to a csv file", + "fullTitle": "BO - Catalog - Brands & Suppliers : Export brands should export brands to a csv file", + "timedOut": false, + "duration": 248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_exportBrands_exportBrands\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'exportBrands', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.exportBrandsDataToCsv(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'Export of data has failed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d55aef4-003d-4467-af17-d666eb9f92ed", + "parentUUID": "1dc7423b-0ecc-4c1a-bc9a-ffac8bba06b8", + "isHook": false, + "skipped": false + }, + { + "title": "should check existence of brands data in csv file", + "fullTitle": "BO - Catalog - Brands & Suppliers : Export brands should check existence of brands data in csv file", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_brands_brands_exportBrands_checkAllBrandsInCsvFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategories, row, brandInCsvFormat, textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllBrandsInCsvFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getNumberOfElementInGrid(page, tableName)];\n case 2:\n numberOfCategories = _a.sent();\n row = 1;\n _a.label = 3;\n case 3:\n if (!(row <= numberOfCategories)) return [3 /*break*/, 7];\n return [4 /*yield*/, brands_1.default.getBrandInCsvFormat(page, row)];\n case 4:\n brandInCsvFormat = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, brandInCsvFormat, true, true)];\n case 5:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"\".concat(brandInCsvFormat, \" was not found in the file\")).to.eq(true);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 3];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47ffd634-794f-42da-bd56-182a7f8c4cf8", + "parentUUID": "1dc7423b-0ecc-4c1a-bc9a-ffac8bba06b8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f795cd2a-e995-4309-9f57-bbd92e65337b", + "c48b6a6f-b75b-412b-8a3e-6d15a6d3349c", + "8714cfb9-5cac-44be-9aa2-8a01efd62dc4", + "9d55aef4-003d-4467-af17-d666eb9f92ed", + "47ffd634-794f-42da-bd56-182a7f8c4cf8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8926, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d14047d7-ecf8-4e53-bfa8-d49c1b909465", + "title": "BO - Catalog - Brands & Suppliers : CRUD supplier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & Suppliers : CRUD supplier\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier \"before all\" hook in \"BO - Catalog - Brands & Suppliers : CRUD supplier\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Generate logos\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(createSupplierData.logo),\n files_1.default.generateImage(editSupplierData.logo),\n ])];\n case 3:\n // Generate logos\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d04ed876-254d-45ed-8d77-1a0cdf2c309c", + "parentUUID": "d14047d7-ecf8-4e53-bfa8-d49c1b909465", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & Suppliers : CRUD supplier\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier \"after all\" hook in \"BO - Catalog - Brands & Suppliers : CRUD supplier\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(createSupplierData.logo),\n files_1.default.deleteFile(editSupplierData.logo),\n ])];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f1b76b38-e635-43a6-ba85-a4a2888e543c", + "parentUUID": "d14047d7-ecf8-4e53-bfa8-d49c1b909465", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6006922d-11ea-401a-af6a-5000f8c9fb30", + "parentUUID": "d14047d7-ecf8-4e53-bfa8-d49c1b909465", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c06e8ff-09f7-4d1a-bc12-5b8fa0c52a5e", + "parentUUID": "d14047d7-ecf8-4e53-bfa8-d49c1b909465", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Suppliers page", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier should go to Suppliers page", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_goToSuppliersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSuppliersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToSubTabSuppliers(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6557132f-bf0c-421a-9b54-24f054a60ecc", + "parentUUID": "d14047d7-ecf8-4e53-bfa8-d49c1b909465", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "06001103-bc1f-43f0-9cf1-a8e36d94b2d4", + "title": "Create supplier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier Create supplier should go to new supplier page", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_goToAddSupplierPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddSupplierPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5afa389e-c26f-4a0a-9927-9bea1ea25c1f", + "parentUUID": "06001103-bc1f-43f0-9cf1-a8e36d94b2d4", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier Create supplier should create supplier", + "timedOut": false, + "duration": 2616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_createSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSupplier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c276ee50-5a7a-463a-aa53-563f9f373c44", + "parentUUID": "06001103-bc1f-43f0-9cf1-a8e36d94b2d4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5afa389e-c26f-4a0a-9927-9bea1ea25c1f", + "c276ee50-5a7a-463a-aa53-563f9f373c44" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3559, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "06b08502-7ed7-4938-839e-0417e21e6a86", + "title": "View supplier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter suppliers by name", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier View supplier should filter suppliers by name", + "timedOut": false, + "duration": 901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_filterToViewCreatedSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCreatedSupplier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.filterTable(page, 'input', 'name', createSupplierData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getTextColumnFromTableSupplier(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contain(createSupplierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63b8de74-2262-4228-8e95-d9b1f0ed24c7", + "parentUUID": "06b08502-7ed7-4938-839e-0417e21e6a86", + "isHook": false, + "skipped": false + }, + { + "title": "should view supplier", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier View supplier should view supplier", + "timedOut": false, + "duration": 755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_viewCreatedSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCreatedSupplier', baseContext)];\n case 1:\n _a.sent();\n // view supplier first row\n return [4 /*yield*/, suppliers_1.default.viewSupplier(page, 1)];\n case 2:\n // view supplier first row\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(createSupplierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1066540-7e4f-485a-8262-45025df86cd6", + "parentUUID": "06b08502-7ed7-4938-839e-0417e21e6a86", + "isHook": false, + "skipped": false + }, + { + "title": "should return suppliers page", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier View supplier should return suppliers page", + "timedOut": false, + "duration": 81, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_returnToSuppliersPageAfterCreation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToSuppliersPageAfterCreation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToPreviousPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1be65015-fc91-4775-bf5c-f93773a9712b", + "parentUUID": "06b08502-7ed7-4938-839e-0417e21e6a86", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "63b8de74-2262-4228-8e95-d9b1f0ed24c7", + "b1066540-7e4f-485a-8262-45025df86cd6", + "1be65015-fc91-4775-bf5c-f93773a9712b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1737, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "33caedb9-3272-4b51-a7a2-d1fe6b6569f9", + "title": "Update supplier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit first supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier Update supplier should go to edit first supplier page", + "timedOut": false, + "duration": 1081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_goToEditSupplierPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditSupplierPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToEditSupplierPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d937814a-6ce3-4f9b-863b-452cf7c49d79", + "parentUUID": "33caedb9-3272-4b51-a7a2-d1fe6b6569f9", + "isHook": false, + "skipped": false + }, + { + "title": "should edit supplier", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier Update supplier should edit supplier", + "timedOut": false, + "duration": 2714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_updateSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateSupplier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, editSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2079f779-8ada-4d69-93ff-ef51fc6cbc09", + "parentUUID": "33caedb9-3272-4b51-a7a2-d1fe6b6569f9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d937814a-6ce3-4f9b-863b-452cf7c49d79", + "2079f779-8ada-4d69-93ff-ef51fc6cbc09" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3795, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6697264c-e9a1-4470-8810-38acaf389632", + "title": "View edited supplier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter suppliers by name", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier View edited supplier should filter suppliers by name", + "timedOut": false, + "duration": 1190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_filterToViewUpdatedSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewUpdatedSupplier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.filterTable(page, 'input', 'name', editSupplierData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getTextColumnFromTableSupplier(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contain(editSupplierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d16a280-6072-4797-92c0-5cda115879f9", + "parentUUID": "6697264c-e9a1-4470-8810-38acaf389632", + "isHook": false, + "skipped": false + }, + { + "title": "should view supplier", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier View edited supplier should view supplier", + "timedOut": false, + "duration": 744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_viewUpdatedSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewUpdatedSupplier', baseContext)];\n case 1:\n _a.sent();\n // view supplier first row\n return [4 /*yield*/, suppliers_1.default.viewSupplier(page, 1)];\n case 2:\n // view supplier first row\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editSupplierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1e06897-99b7-42a5-8994-c5c1dc3b1406", + "parentUUID": "6697264c-e9a1-4470-8810-38acaf389632", + "isHook": false, + "skipped": false + }, + { + "title": "should return to suppliers page", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier View edited supplier should return to suppliers page", + "timedOut": false, + "duration": 81, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_returnToSuppliersPageAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToSuppliersPageAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToPreviousPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20cb6365-eddc-4db8-a8cd-5472fd37afba", + "parentUUID": "6697264c-e9a1-4470-8810-38acaf389632", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2d16a280-6072-4797-92c0-5cda115879f9", + "a1e06897-99b7-42a5-8994-c5c1dc3b1406", + "20cb6365-eddc-4db8-a8cd-5472fd37afba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2015, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "06b10418-e8e8-4280-a686-5f0e75a369e4", + "title": "Delete supplier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/01_CRUDSupplier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter suppliers by name", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier Delete supplier should filter suppliers by name", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_filterToViewDeleteSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewDeleteSupplier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.filterTable(page, 'input', 'name', editSupplierData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getTextColumnFromTableSupplier(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contain(editSupplierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a173297-204e-4d63-ae08-1a94070fda92", + "parentUUID": "06b10418-e8e8-4280-a686-5f0e75a369e4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete supplier", + "fullTitle": "BO - Catalog - Brands & Suppliers : CRUD supplier Delete supplier should delete supplier", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_CRUDSupplier_deleteSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSupplier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.deleteSupplier(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(suppliers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0e031c2-413d-452f-9816-6c86d3a8b244", + "parentUUID": "06b10418-e8e8-4280-a686-5f0e75a369e4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4a173297-204e-4d63-ae08-1a94070fda92", + "b0e031c2-413d-452f-9816-6c86d3a8b244" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2601, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "6006922d-11ea-401a-af6a-5000f8c9fb30", + "4c06e8ff-09f7-4d1a-bc12-5b8fa0c52a5e", + "6557132f-bf0c-421a-9b54-24f054a60ecc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7405, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b66be649-9138-4016-ac09-f614d17d849f", + "title": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/02_filterAndQuickEdit.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/02_filterAndQuickEdit.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers \"before all\" hook in \"BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fd1a3cd-8ea3-414f-89c4-01aa5100bc75", + "parentUUID": "b66be649-9138-4016-ac09-f614d17d849f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers \"after all\" hook in \"BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ef415b7f-7db1-44fa-8478-2e67bd1d3ae3", + "parentUUID": "b66be649-9138-4016-ac09-f614d17d849f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers should login in BO", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41d4fcc0-bce7-405c-af2f-dd99bc006ac6", + "parentUUID": "b66be649-9138-4016-ac09-f614d17d849f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9f81421-8bb2-488a-90df-9e4bf73d610c", + "parentUUID": "b66be649-9138-4016-ac09-f614d17d849f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Suppliers page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers should go to Suppliers page", + "timedOut": false, + "duration": 760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_goToSuppliersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSuppliersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToSubTabSuppliers(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cd33aaa-867e-4cea-87ee-61518c2b7ad4", + "parentUUID": "b66be649-9138-4016-ac09-f614d17d849f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers should reset filter", + "timedOut": false, + "duration": 328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSuppliers = _a.sent();\n (0, chai_1.expect)(numberOfSuppliers).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2b12ffd-fcb8-4daa-8c6c-644f9a0f7a51", + "parentUUID": "b66be649-9138-4016-ac09-f614d17d849f", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "227f90b8-caf4-4e47-8276-b8ca1fd2fc17", + "title": "Filter suppliers table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/02_filterAndQuickEdit.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/02_filterAndQuickEdit.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'Fashion supplier'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Filter suppliers table should filter by name 'Fashion supplier'", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterFilter, i, supplierStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 3];\n return [4 /*yield*/, suppliers_1.default.filterSupplierEnabled(page, test.args.filterValue === '1')];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, suppliers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfSuppliersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterFilter).to.be.at.most(numberOfSuppliers);\n i = 1;\n _a.label = 7;\n case 7:\n if (!(i <= numberOfSuppliersAfterFilter)) return [3 /*break*/, 12];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 9];\n return [4 /*yield*/, suppliers_1.default.getStatus(page, i)];\n case 8:\n supplierStatus = _a.sent();\n (0, chai_1.expect)(supplierStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 11];\n case 9: return [4 /*yield*/, suppliers_1.default.getTextColumnFromTableSupplier(page, i, test.args.filterBy)];\n case 10:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 11;\n case 11:\n i++;\n return [3 /*break*/, 7];\n case 12: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea45d4c8-23ff-49d9-a741-7cf89728574e", + "parentUUID": "227f90b8-caf4-4e47-8276-b8ca1fd2fc17", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Filter suppliers table should reset filter", + "timedOut": false, + "duration": 312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSuppliersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterReset).to.be.equal(numberOfSuppliers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43fe0537-2e06-43ab-a7c5-5fe76089f142", + "parentUUID": "227f90b8-caf4-4e47-8276-b8ca1fd2fc17", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by products_count '17'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Filter suppliers table should filter by products_count '17'", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_filterProductsCount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterFilter, i, supplierStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 3];\n return [4 /*yield*/, suppliers_1.default.filterSupplierEnabled(page, test.args.filterValue === '1')];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, suppliers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfSuppliersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterFilter).to.be.at.most(numberOfSuppliers);\n i = 1;\n _a.label = 7;\n case 7:\n if (!(i <= numberOfSuppliersAfterFilter)) return [3 /*break*/, 12];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 9];\n return [4 /*yield*/, suppliers_1.default.getStatus(page, i)];\n case 8:\n supplierStatus = _a.sent();\n (0, chai_1.expect)(supplierStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 11];\n case 9: return [4 /*yield*/, suppliers_1.default.getTextColumnFromTableSupplier(page, i, test.args.filterBy)];\n case 10:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 11;\n case 11:\n i++;\n return [3 /*break*/, 7];\n case 12: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a993b4dd-5945-4ad8-a71e-1e04ee9c6363", + "parentUUID": "227f90b8-caf4-4e47-8276-b8ca1fd2fc17", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Filter suppliers table should reset filter", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_filterProductsCountReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSuppliersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterReset).to.be.equal(numberOfSuppliers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57e2a175-4f4a-462b-b54b-1b68cf09ada1", + "parentUUID": "227f90b8-caf4-4e47-8276-b8ca1fd2fc17", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Filter suppliers table should filter by active '1'", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterFilter, i, supplierStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 3];\n return [4 /*yield*/, suppliers_1.default.filterSupplierEnabled(page, test.args.filterValue === '1')];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, suppliers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfSuppliersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterFilter).to.be.at.most(numberOfSuppliers);\n i = 1;\n _a.label = 7;\n case 7:\n if (!(i <= numberOfSuppliersAfterFilter)) return [3 /*break*/, 12];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 9];\n return [4 /*yield*/, suppliers_1.default.getStatus(page, i)];\n case 8:\n supplierStatus = _a.sent();\n (0, chai_1.expect)(supplierStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 11];\n case 9: return [4 /*yield*/, suppliers_1.default.getTextColumnFromTableSupplier(page, i, test.args.filterBy)];\n case 10:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 11;\n case 11:\n i++;\n return [3 /*break*/, 7];\n case 12: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30751284-d8d9-4ee4-a28c-47deb8dc45df", + "parentUUID": "227f90b8-caf4-4e47-8276-b8ca1fd2fc17", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Filter suppliers table should reset filter", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_filterActiveReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSuppliersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterReset).to.be.equal(numberOfSuppliers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40287591-5100-41fe-a398-bba9634abcaa", + "parentUUID": "227f90b8-caf4-4e47-8276-b8ca1fd2fc17", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ea45d4c8-23ff-49d9-a741-7cf89728574e", + "43fe0537-2e06-43ab-a7c5-5fe76089f142", + "a993b4dd-5945-4ad8-a71e-1e04ee9c6363", + "57e2a175-4f4a-462b-b54b-1b68cf09ada1", + "30751284-d8d9-4ee4-a28c-47deb8dc45df", + "40287591-5100-41fe-a398-bba9634abcaa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3547, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "336276aa-6e69-4b9a-9d33-32656acc0f5d", + "title": "Quick edit first supplier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/02_filterAndQuickEdit.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/02_filterAndQuickEdit.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter supplier by name", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Quick edit first supplier should filter supplier by name", + "timedOut": false, + "duration": 892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.filterTable(page, 'input', 'name', suppliers_2.default.fashionSupplier.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterFilter).to.be.at.most(numberOfSuppliers);\n return [4 /*yield*/, suppliers_1.default.getTextColumnFromTableSupplier(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(suppliers_2.default.fashionSupplier.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0b6aef2-c4f0-4b19-87e2-0a9d5bbe8b27", + "parentUUID": "336276aa-6e69-4b9a-9d33-32656acc0f5d", + "isHook": false, + "skipped": false + }, + { + "title": "should disable first supplier", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Quick edit first supplier should disable first supplier", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_disableSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, supplierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Supplier\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, suppliers_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(suppliers_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, suppliers_1.default.getStatus(page, 1)];\n case 5:\n supplierStatus = _a.sent();\n (0, chai_1.expect)(supplierStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a0e0a96-6c7a-486e-97bb-c5bdc31f0916", + "parentUUID": "336276aa-6e69-4b9a-9d33-32656acc0f5d", + "isHook": false, + "skipped": false + }, + { + "title": "should enable first supplier", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Quick edit first supplier should enable first supplier", + "timedOut": false, + "duration": 835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_enableSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, supplierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Supplier\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, suppliers_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(suppliers_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, suppliers_1.default.getStatus(page, 1)];\n case 5:\n supplierStatus = _a.sent();\n (0, chai_1.expect)(supplierStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e48e6774-5d1a-4b70-987f-dd0103ef3987", + "parentUUID": "336276aa-6e69-4b9a-9d33-32656acc0f5d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Brands & Suppliers : Filter and quick edit suppliers Quick edit first supplier should reset filter", + "timedOut": false, + "duration": 304, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_filterAndQuickEdit_resetFilterAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSuppliersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterReset).to.be.equal(numberOfSuppliers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c50d79e-1db6-42e4-8617-d2f5577b3089", + "parentUUID": "336276aa-6e69-4b9a-9d33-32656acc0f5d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a0b6aef2-c4f0-4b19-87e2-0a9d5bbe8b27", + "0a0e0a96-6c7a-486e-97bb-c5bdc31f0916", + "e48e6774-5d1a-4b70-987f-dd0103ef3987", + "5c50d79e-1db6-42e4-8617-d2f5577b3089" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2330, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "41d4fcc0-bce7-405c-af2f-dd99bc006ac6", + "f9f81421-8bb2-488a-90df-9e4bf73d610c", + "6cd33aaa-867e-4cea-87ee-61518c2b7ad4", + "d2b12ffd-fcb8-4daa-8c6c-644f9a0f7a51" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7722, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a112d83e-661f-4158-be7c-1cf75da3735e", + "title": "BO - Catalog - Brands & Suppliers : Help card on Suppliers page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/03_helpCard.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/03_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & Suppliers : Help card on Suppliers page\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Help card on Suppliers page \"before all\" hook in \"BO - Catalog - Brands & Suppliers : Help card on Suppliers page\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c30a113-9156-4401-bfa1-7a01441741fd", + "parentUUID": "a112d83e-661f-4158-be7c-1cf75da3735e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & Suppliers : Help card on Suppliers page\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Help card on Suppliers page \"after all\" hook in \"BO - Catalog - Brands & Suppliers : Help card on Suppliers page\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "255cdcaa-61a3-4396-8a15-2baaf86eaee1", + "parentUUID": "a112d83e-661f-4158-be7c-1cf75da3735e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Help card on Suppliers page should login in BO", + "timedOut": false, + "duration": 1701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8730a7a-c390-4d9a-b017-2ba8764228b9", + "parentUUID": "a112d83e-661f-4158-be7c-1cf75da3735e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Help card on Suppliers page should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_helpCard_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9ef470f-a2e5-4846-b25c-6e5a4c29a0be", + "parentUUID": "a112d83e-661f-4158-be7c-1cf75da3735e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Suppliers page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Help card on Suppliers page should go to Suppliers page", + "timedOut": false, + "duration": 765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_helpCard_goToSuppliersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSuppliersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToSubTabSuppliers(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ef1449d-d35c-4a3b-9efb-45e6ea7e6995", + "parentUUID": "a112d83e-661f-4158-be7c-1cf75da3735e", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Catalog - Brands & Suppliers : Help card on Suppliers page should open the help side bar and check the document language", + "timedOut": false, + "duration": 144, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, suppliers_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eedf6aa4-ebfe-42b0-9e81-cbe4c5bc49ac", + "parentUUID": "a112d83e-661f-4158-be7c-1cf75da3735e", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Catalog - Brands & Suppliers : Help card on Suppliers page should close the help side bar", + "timedOut": false, + "duration": 57, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d98f6f7-4ec8-47fc-a06a-d9cf89f29f4b", + "parentUUID": "a112d83e-661f-4158-be7c-1cf75da3735e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a8730a7a-c390-4d9a-b017-2ba8764228b9", + "e9ef470f-a2e5-4846-b25c-6e5a4c29a0be", + "0ef1449d-d35c-4a3b-9efb-45e6ea7e6995", + "eedf6aa4-ebfe-42b0-9e81-cbe4c5bc49ac", + "7d98f6f7-4ec8-47fc-a06a-d9cf89f29f4b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7554, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b6ad3a44-16b3-4fe2-9c42-6baef4b83559", + "title": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Brands & Suppliers : Pagination and sort suppliers\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers \"before all\" hook in \"BO - Catalog - Brands & Suppliers : Pagination and sort suppliers\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b779f85-e233-40bd-989f-9abbf2b930b6", + "parentUUID": "b6ad3a44-16b3-4fe2-9c42-6baef4b83559", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Brands & Suppliers : Pagination and sort suppliers\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers \"after all\" hook in \"BO - Catalog - Brands & Suppliers : Pagination and sort suppliers\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "edc3ecca-d885-4fa9-8e5b-2feb611b6210", + "parentUUID": "b6ad3a44-16b3-4fe2-9c42-6baef4b83559", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers should login in BO", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8a6cb0a-9fb6-44b4-b691-5b397c4c96d1", + "parentUUID": "b6ad3a44-16b3-4fe2-9c42-6baef4b83559", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Brands & Suppliers' page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers should go to 'Catalog > Brands & Suppliers' page", + "timedOut": false, + "duration": 4922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToBrandsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBrandsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fe112e9-16bf-4b81-91f9-89596a0e353a", + "parentUUID": "b6ad3a44-16b3-4fe2-9c42-6baef4b83559", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Suppliers page and get number of suppliers", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers should go to Suppliers page and get number of suppliers", + "timedOut": false, + "duration": 2770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToSuppliersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSuppliersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToSubTabSuppliers(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [4 /*yield*/, suppliers_1.default.resetAndGetNumberOfLines(page)];\n case 4:\n numberOfSuppliers = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "caae703c-4ce5-407b-97a3-62b40ccdc9ff", + "parentUUID": "b6ad3a44-16b3-4fe2-9c42-6baef4b83559", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "title": "Create 11 suppliers in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "97f5541d-60d0-45b4-9c06-1277c74ef89f", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "9bbc84bb-f6f4-4451-8a64-e1141828c189", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "1c253150-1ffe-4068-aee0-b8e26a569d08", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "759b1b87-62a2-4753-a9a6-f9ded43c7807", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "499f2e00-3737-4789-833f-8599d778deb9", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "0d24a8fd-809c-4084-8a15-8308d8265814", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "c71210c8-aa1b-4c15-8540-5cf9c39f1ed7", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "6b9fc090-87cf-4324-97e4-fb5be738f27e", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "9f65a013-6ced-403a-bcc1-46fc6156f53f", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "3a14483f-6dc3-43d6-9dca-ee73878aa791", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"before all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(createSupplierData.logo);", + "err": {}, + "uuid": "101706fc-03b2-4eb1-afe0-13d242a09cfa", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "ce8fe70b-a76d-4a9a-8e9c-e001589a471a", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "ec86d10b-b6ad-4fbc-af00-f0b63c49b513", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "30895db9-8089-4ec2-b444-ffd594ddbc8f", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "8a7bdcd0-1af7-4b97-81c0-a6a792118905", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "ae904426-5dcf-422e-ba86-c115ffe78a72", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "26d7bd0c-0d9d-49c5-a90e-8389c1e86b08", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 1, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "07da661f-14f2-4431-bbee-aac843ecc62c", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "76e84087-22fe-4711-b6aa-0817bb1c1060", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "34678492-aec5-4576-95da-88984bca7937", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "18e2ac4b-5ee4-449c-ba05-5bdb0afa2a28", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 11 suppliers in BO\"", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO \"after all\" hook in \"Create 11 suppliers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(createSupplierData.logo);", + "err": {}, + "uuid": "88d8ab68-b22b-4be3-b4ef-01420084c116", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d6ce210-012d-4a4d-b1fc-82d1b5ea9632", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°1 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°1 and check result", + "timedOut": false, + "duration": 2495, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf8e67d4-9c75-4688-b0ba-9a5ba4fb5e59", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca746832-eaa8-4da0-8a36-36ed39803b81", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°2 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°2 and check result", + "timedOut": false, + "duration": 2487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89651a81-8c93-4543-b86b-95e34b9dd3cb", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e07439d1-43b4-490f-a525-6425edf9da09", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°3 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°3 and check result", + "timedOut": false, + "duration": 2543, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d6c9312-a681-44cf-a8b8-a7354b8d8958", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b14fde8-1375-4e30-8e75-5a9f5ae4d71f", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°4 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°4 and check result", + "timedOut": false, + "duration": 2594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4aaeb12b-c0a5-4816-8a2e-6dc33b68b208", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bbefe36-70c5-4af7-855d-68ef7fe44ab8", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°5 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°5 and check result", + "timedOut": false, + "duration": 2503, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3e407c9-9269-4ef4-a4b4-fc2bd88586f0", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c78bd615-f4ab-4cc6-9f48-676612f481f3", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°6 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°6 and check result", + "timedOut": false, + "duration": 2605, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2076f0bf-05fb-4b0b-a0ce-114fabd6bff9", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5528220b-33e2-42e3-8db7-89bebfaaf3de", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°7 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°7 and check result", + "timedOut": false, + "duration": 2569, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98d729f7-5c21-4142-acb3-141b8f19e9e8", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bf7f500-2887-4aba-991b-3a73573ae769", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°8 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°8 and check result", + "timedOut": false, + "duration": 2584, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "051f41fb-0913-4067-ae4e-a0c7f6b60e1c", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f719bb48-43e3-48ff-a085-35dab53ea231", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°9 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°9 and check result", + "timedOut": false, + "duration": 2569, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4ba5d86-8d09-47a2-9d74-cd4e7c1ca433", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cddc4d81-8469-4402-abf2-786cb16124a6", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°10 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°10 and check result", + "timedOut": false, + "duration": 2571, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51d6f2b9-5209-4fa3-9b89-7f8bf6896696", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new supplier page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should go to add new supplier page", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_goToAddNewSupplierPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewSupplierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.goToAddNewSupplierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af1304e1-100d-4196-a4af-9a0e8d1046b6", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + }, + { + "title": "should create supplier n°11 and check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Create 11 suppliers in BO should create supplier n°11 and check result", + "timedOut": false, + "duration": 2512, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_createSupplier10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSuppliersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSupplier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSupplier(page, createSupplierData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(suppliers_1.default.successfulCreationMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterCreation).to.be.equal(numberOfSuppliers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aece2f7c-6dc6-4f56-bc56-b96ebdb7946d", + "parentUUID": "7d9e4339-556d-4cc5-98d4-b2757a49208d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2d6ce210-012d-4a4d-b1fc-82d1b5ea9632", + "cf8e67d4-9c75-4688-b0ba-9a5ba4fb5e59", + "ca746832-eaa8-4da0-8a36-36ed39803b81", + "89651a81-8c93-4543-b86b-95e34b9dd3cb", + "e07439d1-43b4-490f-a525-6425edf9da09", + "4d6c9312-a681-44cf-a8b8-a7354b8d8958", + "7b14fde8-1375-4e30-8e75-5a9f5ae4d71f", + "4aaeb12b-c0a5-4816-8a2e-6dc33b68b208", + "9bbefe36-70c5-4af7-855d-68ef7fe44ab8", + "c3e407c9-9269-4ef4-a4b4-fc2bd88586f0", + "c78bd615-f4ab-4cc6-9f48-676612f481f3", + "2076f0bf-05fb-4b0b-a0ce-114fabd6bff9", + "5528220b-33e2-42e3-8db7-89bebfaaf3de", + "98d729f7-5c21-4142-acb3-141b8f19e9e8", + "3bf7f500-2887-4aba-991b-3a73573ae769", + "051f41fb-0913-4067-ae4e-a0c7f6b60e1c", + "f719bb48-43e3-48ff-a085-35dab53ea231", + "a4ba5d86-8d09-47a2-9d74-cd4e7c1ca433", + "cddc4d81-8469-4402-abf2-786cb16124a6", + "51d6f2b9-5209-4fa3-9b89-7f8bf6896696", + "af1304e1-100d-4196-a4af-9a0e8d1046b6", + "aece2f7c-6dc6-4f56-bc56-b96ebdb7946d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 37310, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ba07863f-aa7f-4852-82a4-fe2daf50c80e", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9123cb79-d4d9-4f02-9bcf-d343976e3eaf", + "parentUUID": "ba07863f-aa7f-4852-82a4-fe2daf50c80e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Pagination next and previous should click on next", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dbe69f7-cb2b-4872-afe0-706578888999", + "parentUUID": "ba07863f-aa7f-4852-82a4-fe2daf50c80e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Pagination next and previous should click on previous", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f89d8929-4799-4f9c-9755-302d33782b71", + "parentUUID": "ba07863f-aa7f-4852-82a4-fe2daf50c80e", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4a177f0-0f53-4655-8366-790efef5cb48", + "parentUUID": "ba07863f-aa7f-4852-82a4-fe2daf50c80e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9123cb79-d4d9-4f02-9bcf-d343976e3eaf", + "3dbe69f7-cb2b-4872-afe0-706578888999", + "f89d8929-4799-4f9c-9755-302d33782b71", + "a4a177f0-0f53-4655-8366-790efef5cb48" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2036, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "title": "Sort suppliers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort suppliers by 'id_supplier' 'desc' And check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Sort suppliers should sort suppliers by 'id_supplier' 'desc' And check result", + "timedOut": false, + "duration": 3855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, suppliers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ece9ceb-5f44-4502-a64f-815b40b41d91", + "parentUUID": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort suppliers by 'name' 'asc' And check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Sort suppliers should sort suppliers by 'name' 'asc' And check result", + "timedOut": false, + "duration": 3107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, suppliers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5c07e63-a5a6-4b5a-ad17-0855b40c38e9", + "parentUUID": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort suppliers by 'name' 'desc' And check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Sort suppliers should sort suppliers by 'name' 'desc' And check result", + "timedOut": false, + "duration": 3023, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, suppliers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fbe7b94-7a83-44cb-9e4a-2d1f11d92e09", + "parentUUID": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort suppliers by 'products_count' 'asc' And check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Sort suppliers should sort suppliers by 'products_count' 'asc' And check result", + "timedOut": false, + "duration": 3008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_sortByNumberProductsAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, suppliers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ab9dd46-f02f-40a1-988f-144ae06f8743", + "parentUUID": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort suppliers by 'products_count' 'desc' And check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Sort suppliers should sort suppliers by 'products_count' 'desc' And check result", + "timedOut": false, + "duration": 3076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_sortByNumberProductsDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, suppliers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e9c2b7f-209e-478a-8f14-32ff0b8cfd22", + "parentUUID": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort suppliers by 'active' 'asc' And check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Sort suppliers should sort suppliers by 'active' 'asc' And check result", + "timedOut": false, + "duration": 3086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_sortByEnabledAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, suppliers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "854fc82f-2e5a-4f4b-ba38-ed789e6ee57e", + "parentUUID": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort suppliers by 'active' 'desc' And check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Sort suppliers should sort suppliers by 'active' 'desc' And check result", + "timedOut": false, + "duration": 3066, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_sortByEnabledDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, suppliers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc5d166e-5c42-449d-b5d2-6eee48c24d4d", + "parentUUID": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort suppliers by 'id_supplier' 'asc' And check result", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Sort suppliers should sort suppliers by 'id_supplier' 'asc' And check result", + "timedOut": false, + "duration": 3172, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, suppliers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eac39539-8c7c-4276-ac3f-2686087e6608", + "parentUUID": "f46a390b-3bab-481d-a3bf-8bdf47e4786f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6ece9ceb-5f44-4502-a64f-815b40b41d91", + "a5c07e63-a5a6-4b5a-ad17-0855b40c38e9", + "1fbe7b94-7a83-44cb-9e4a-2d1f11d92e09", + "3ab9dd46-f02f-40a1-988f-144ae06f8743", + "7e9c2b7f-209e-478a-8f14-32ff0b8cfd22", + "854fc82f-2e5a-4f4b-ba38-ed789e6ee57e", + "cc5d166e-5c42-449d-b5d2-6eee48c24d4d", + "eac39539-8c7c-4276-ac3f-2686087e6608" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25393, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c7f7fc97-e42c-4cd6-b8cd-221c85170594", + "title": "Bulk enable, disable and delete suppliers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "file": "/campaigns/functional/BO/03_catalog/05_brandsAndSuppliers/suppliers/04_paginationSortAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Bulk enable, disable and delete suppliers should filter list by name", + "timedOut": false, + "duration": 1037, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.filterTable(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getTextColumnFromTableSupplier(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76de58fd-9141-4887-b1ca-7bf2b3bf3327", + "parentUUID": "c7f7fc97-e42c-4cd6-b8cd-221c85170594", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk disable suppliers", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Bulk enable, disable and delete suppliers should bulk disable suppliers", + "timedOut": false, + "duration": 535, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_bulkdisableSuppliers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var disableTextResult, numberOfSuppliersInGrid, i, supplierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action, \"Suppliers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n disableTextResult = _a.sent();\n (0, chai_1.expect)(disableTextResult).to.be.equal(suppliers_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersInGrid = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersInGrid).to.be.at.most(11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSuppliersInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, suppliers_1.default.getStatus(page, i)];\n case 5:\n supplierStatus = _a.sent();\n (0, chai_1.expect)(supplierStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d98fdbcb-3ce2-477a-808a-f1ea9046c96b", + "parentUUID": "c7f7fc97-e42c-4cd6-b8cd-221c85170594", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk enable suppliers", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Bulk enable, disable and delete suppliers should bulk enable suppliers", + "timedOut": false, + "duration": 544, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_bulkenableSuppliers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var disableTextResult, numberOfSuppliersInGrid, i, supplierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action, \"Suppliers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n disableTextResult = _a.sent();\n (0, chai_1.expect)(disableTextResult).to.be.equal(suppliers_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, suppliers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSuppliersInGrid = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersInGrid).to.be.at.most(11);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSuppliersInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, suppliers_1.default.getStatus(page, i)];\n case 5:\n supplierStatus = _a.sent();\n (0, chai_1.expect)(supplierStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d5dddde-36b8-4e7b-90f4-a8f11fce7487", + "parentUUID": "c7f7fc97-e42c-4cd6-b8cd-221c85170594", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete suppliers", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Bulk enable, disable and delete suppliers should bulk delete suppliers", + "timedOut": false, + "duration": 999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_bulkDeleteSuppliers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteSuppliers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.deleteWithBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(suppliers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4ee8dd5-553a-4f64-ad96-9214cf066bb5", + "parentUUID": "c7f7fc97-e42c-4cd6-b8cd-221c85170594", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Brands & Suppliers : Pagination and sort suppliers Bulk enable, disable and delete suppliers should reset filter", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_brandsAndSuppliers_suppliers_paginationSortAndBulkActions_resetFilterAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSuppliersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSuppliersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSuppliersAfterReset).to.be.equal(numberOfSuppliers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b54fa048-3d8d-419a-99c8-de2149ea0e7d", + "parentUUID": "c7f7fc97-e42c-4cd6-b8cd-221c85170594", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76de58fd-9141-4887-b1ca-7bf2b3bf3327", + "d98fdbcb-3ce2-477a-808a-f1ea9046c96b", + "8d5dddde-36b8-4e7b-90f4-a8f11fce7487", + "d4ee8dd5-553a-4f64-ad96-9214cf066bb5", + "b54fa048-3d8d-419a-99c8-de2149ea0e7d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3945, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f8a6cb0a-9fb6-44b4-b691-5b397c4c96d1", + "4fe112e9-16bf-4b81-91f9-89596a0e353a", + "caae703c-4ce5-407b-97a3-62b40ccdc9ff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9391, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "7dacbaac-acc8-4183-8c3e-06ac793a5985", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 416, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed397f0a-c795-4c0a-a946-c1afd35a935a", + "parentUUID": "7dacbaac-acc8-4183-8c3e-06ac793a5985", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ba1747c-d2cb-4d15-8fbe-75e9fa8167c7", + "parentUUID": "7dacbaac-acc8-4183-8c3e-06ac793a5985", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2a5094f-f116-4623-ad52-07a13cd16ff3", + "parentUUID": "7dacbaac-acc8-4183-8c3e-06ac793a5985", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2e5a5c22-08fb-4532-a4e7-b2feed5e3964", + "title": "BO - Catalog - Cart rules : CRUD cart rule with/without code", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with/without code\"", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code \"before all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with/without code\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3320114-f163-45b7-b8de-e970b225c575", + "parentUUID": "2e5a5c22-08fb-4532-a4e7-b2feed5e3964", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with/without code\"", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code \"after all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with/without code\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "09417c95-c174-4a82-8141-f72f836f8d69", + "parentUUID": "2e5a5c22-08fb-4532-a4e7-b2feed5e3964", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code should login in BO", + "timedOut": false, + "duration": 6408, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "382d4005-69ad-4625-ad91-36a1f5a99a8d", + "parentUUID": "2e5a5c22-08fb-4532-a4e7-b2feed5e3964", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a80d5a12-8642-4528-a569-823a964c17fd", + "parentUUID": "2e5a5c22-08fb-4532-a4e7-b2feed5e3964", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "db42f2b9-3333-41bc-8a0e-c3bbecc1c74d", + "title": "case 1 : Create cart rule without code then check it on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "70253125-a6b7-4bca-80c1-583cbc61d348", + "title": "Create cart rule on BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 1 : Create cart rule without code then check it on FO Create cart rule on BO should go to new cart rule page", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a54de6d-f2b2-4ad2-a750-b4fab4c6f4b0", + "parentUUID": "70253125-a6b7-4bca-80c1-583cbc61d348", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 1 : Create cart rule without code then check it on FO Create cart rule on BO should create cart rule", + "timedOut": false, + "duration": 3936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleWithoutCode)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d6452f8-90ae-48c7-b28a-25388449650b", + "parentUUID": "70253125-a6b7-4bca-80c1-583cbc61d348", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0a54de6d-f2b2-4ad2-a750-b4fab4c6f4b0", + "5d6452f8-90ae-48c7-b28a-25388449650b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4781, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aa77d557-46ec-49fe-a19f-9b96d2332cd4", + "title": "Verify discount on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 1 : Create cart rule without code then check it on FO Verify discount on FO should view my shop", + "timedOut": false, + "duration": 1750, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b68919f-584e-4b37-8fb5-845342877f24", + "parentUUID": "aa77d557-46ec-49fe-a19f-9b96d2332cd4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 1 : Create cart rule without code then check it on FO Verify discount on FO should go to the first product page", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "333d1135-9e05-428c-bff0-f2d97167c59d", + "parentUUID": "aa77d557-46ec-49fe-a19f-9b96d2332cd4", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 1 : Create cart rule without code then check it on FO Verify discount on FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f335f930-1aa6-4d2d-a2da-2ef7af40a65f", + "parentUUID": "aa77d557-46ec-49fe-a19f-9b96d2332cd4", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total after discount", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 1 : Create cart rule without code then check it on FO Verify discount on FO should verify the total after discount", + "timedOut": false, + "duration": 4033, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_verifyTotalAfterDiscount1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountPercent, totalAfterDiscount, priceATI, cartRuleName, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyTotalAfterDiscount1', baseContext)];\n case 1:\n _a.sent();\n discountPercent = cartRuleWithoutCode.discountPercent;\n totalAfterDiscount = products_1.default.demo_1.finalPrice\n - ((products_1.default.demo_1.finalPrice * discountPercent) / 100);\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(parseFloat(totalAfterDiscount.toFixed(2)));\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page)];\n case 3:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.equal(cartRuleWithoutCode.name);\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page)];\n case 4:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal(parseFloat(totalAfterDiscount.toFixed(2)) - products_1.default.demo_1.finalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33d8bd50-0cb9-4be0-9549-b20dac079edf", + "parentUUID": "aa77d557-46ec-49fe-a19f-9b96d2332cd4", + "isHook": false, + "skipped": false + }, + { + "title": "should remove product from shopping cart", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 1 : Create cart rule without code then check it on FO Verify discount on FO should remove product from shopping cart", + "timedOut": false, + "duration": 2032, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_removeProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4c629a1-4329-4669-9f75-543b18e402a5", + "parentUUID": "aa77d557-46ec-49fe-a19f-9b96d2332cd4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5b68919f-584e-4b37-8fb5-845342877f24", + "333d1135-9e05-428c-bff0-f2d97167c59d", + "f335f930-1aa6-4d2d-a2da-2ef7af40a65f", + "33d8bd50-0cb9-4be0-9549-b20dac079edf", + "a4c629a1-4329-4669-9f75-543b18e402a5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14462, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d85a3db9-8706-4489-ad25-e7f08a4f6f65", + "title": "case 2 : Create cart rule with code, highlight disabled then check it on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "57bfc27c-be1c-4be1-86d7-ea422b538ba6", + "title": "Update cart rule on BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Update cart rule on BO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goBackToBoToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBoToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e0601d2-86f9-443b-83d9-35c1788b9098", + "parentUUID": "57bfc27c-be1c-4be1-86d7-ea422b538ba6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit cart rule page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Update cart rule on BO should go to edit cart rule page", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goToEditCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToEditCartRulePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd710769-e5cf-418f-89e2-318b2eca020e", + "parentUUID": "57bfc27c-be1c-4be1-86d7-ea422b538ba6", + "isHook": false, + "skipped": false + }, + { + "title": "should update cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Update cart rule on BO should update cart rule", + "timedOut": false, + "duration": 3534, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_updateCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleWithCode)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a5bc4d0-4f4c-42e9-82c2-4735350eac26", + "parentUUID": "57bfc27c-be1c-4be1-86d7-ea422b538ba6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2e0601d2-86f9-443b-83d9-35c1788b9098", + "cd710769-e5cf-418f-89e2-318b2eca020e", + "8a5bc4d0-4f4c-42e9-82c2-4735350eac26" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4477, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c3c70eb5-9294-48ae-9fc6-a7c23a218051", + "title": "Verify discount on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Verify discount on FO should view my shop", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96923d27-b291-4473-aa58-d6275ee97301", + "parentUUID": "c3c70eb5-9294-48ae-9fc6-a7c23a218051", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Verify discount on FO should go to the first product page", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goToFirstProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e435f1b-5ce2-4697-a56d-266e46a0294e", + "parentUUID": "c3c70eb5-9294-48ae-9fc6-a7c23a218051", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Verify discount on FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "623dda3a-217f-41d7-857c-f9d2040a2d38", + "parentUUID": "c3c70eb5-9294-48ae-9fc6-a7c23a218051", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total before the discount", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Verify discount on FO should verify the total before the discount", + "timedOut": false, + "duration": 2015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_checkTotalBeforeDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceATI;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalBeforeDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(products_1.default.demo_1.finalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28e43929-da4b-4e11-ba28-56e747c888e0", + "parentUUID": "c3c70eb5-9294-48ae-9fc6-a7c23a218051", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Verify discount on FO should set the promo code", + "timedOut": false, + "duration": 1466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_addPromoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPromoCode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, cartRuleWithCode.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page, 1)];\n case 3:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.equal(cartRuleWithCode.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a1f7dce-312e-482a-8487-b87df8a947cc", + "parentUUID": "c3c70eb5-9294-48ae-9fc6-a7c23a218051", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total after the discount", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Verify discount on FO should verify the total after the discount", + "timedOut": false, + "duration": 4018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_checkTotalAfterDiscount2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountPercent, totalAfterPromoCode, priceATI, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalAfterDiscount2', baseContext)];\n case 1:\n _a.sent();\n discountPercent = cartRuleWithoutCode.discountPercent;\n totalAfterPromoCode = products_1.default.demo_1.finalPrice\n - ((products_1.default.demo_1.finalPrice * discountPercent) / 100);\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(parseFloat(totalAfterPromoCode.toFixed(2)));\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page, 1)];\n case 3:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal(parseFloat((totalAfterPromoCode - products_1.default.demo_1.finalPrice).toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6082eb78-4805-45ff-a50e-daaca273871f", + "parentUUID": "c3c70eb5-9294-48ae-9fc6-a7c23a218051", + "isHook": false, + "skipped": false + }, + { + "title": "should remove voucher and product from shopping cart", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 2 : Create cart rule with code, highlight disabled then check it on FO Verify discount on FO should remove voucher and product from shopping cart", + "timedOut": false, + "duration": 2257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_removeProductAndVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeProductAndVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.removeVoucher(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "770a3fd4-825b-492a-926f-db78c0d488aa", + "parentUUID": "c3c70eb5-9294-48ae-9fc6-a7c23a218051", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "96923d27-b291-4473-aa58-d6275ee97301", + "9e435f1b-5ce2-4697-a56d-266e46a0294e", + "623dda3a-217f-41d7-857c-f9d2040a2d38", + "28e43929-da4b-4e11-ba28-56e747c888e0", + "3a1f7dce-312e-482a-8487-b87df8a947cc", + "6082eb78-4805-45ff-a50e-daaca273871f", + "770a3fd4-825b-492a-926f-db78c0d488aa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17918, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3618b191-822e-417f-8ec2-d1bbf1f1f44a", + "title": "case 3 : Create cart rule with code, highlight enabled then check it on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "300b2dad-a83f-455b-b286-a6f9bd24342e", + "title": "Update cart rule on BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Update cart rule on BO should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goBackToBoToUpdate2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBoToUpdate2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a14948bc-ad52-4f2d-9fce-a797a17bf691", + "parentUUID": "300b2dad-a83f-455b-b286-a6f9bd24342e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit cart rule page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Update cart rule on BO should go to edit cart rule page", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goToEditCartRulePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCartRulePage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToEditCartRulePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93c918e6-64bc-47a0-84ca-1e7595925a7e", + "parentUUID": "300b2dad-a83f-455b-b286-a6f9bd24342e", + "isHook": false, + "skipped": false + }, + { + "title": "should update cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Update cart rule on BO should update cart rule", + "timedOut": false, + "duration": 3463, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_updateCartRule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCartRule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, secondCartRuleWithCode)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "106ce0ad-dff3-4d76-ad35-c72ea80a13ef", + "parentUUID": "300b2dad-a83f-455b-b286-a6f9bd24342e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a14948bc-ad52-4f2d-9fce-a797a17bf691", + "93c918e6-64bc-47a0-84ca-1e7595925a7e", + "106ce0ad-dff3-4d76-ad35-c72ea80a13ef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4340, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "title": "Verify discount on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Verify discount on FO should view my shop", + "timedOut": false, + "duration": 1690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25695233-fad1-47de-b986-9c0e278e8a89", + "parentUUID": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Verify discount on FO should go to the first product page", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goToFirstProductPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdfa34c5-c082-4bd2-a84e-1c88095cfd46", + "parentUUID": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Verify discount on FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5660, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_addProductToCart3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f28c5fc0-2c07-47c7-84c0-c276a4337510", + "parentUUID": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total before the discount", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Verify discount on FO should verify the total before the discount", + "timedOut": false, + "duration": 2013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_checkTotalBeforeDiscount2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceATI;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalBeforeDiscount2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(products_1.default.demo_1.finalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ceae714a-7d91-4797-9678-6e488a08ae06", + "parentUUID": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "isHook": false, + "skipped": false + }, + { + "title": "should check the displayed promo code", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Verify discount on FO should check the displayed promo code", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_checkPromoCodeBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var promoCode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPromoCodeBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getHighlightPromoCode(page)];\n case 2:\n promoCode = _a.sent();\n (0, chai_1.expect)(promoCode).to.equal(\"\".concat(secondCartRuleWithCode.code, \" - \").concat(secondCartRuleWithCode.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7849397a-cecd-46be-9823-579054b522c9", + "parentUUID": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the promo code", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Verify discount on FO should click on the promo code", + "timedOut": false, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_addPromoCode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPromoCode2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnPromoCode(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page, 1)];\n case 3:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.equal(\"\".concat(secondCartRuleWithCode.code, \" - \").concat(secondCartRuleWithCode.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97eb2856-0ee0-49c8-b505-6517eaa7b131", + "parentUUID": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total after the discount", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Verify discount on FO should verify the total after the discount", + "timedOut": false, + "duration": 4018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_checkTotalAfterDiscount3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalAfterPromoCode, priceATI, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalAfterDiscount3', baseContext)];\n case 1:\n _a.sent();\n totalAfterPromoCode = products_1.default.demo_1.finalPrice\n - ((products_1.default.demo_1.finalPrice * (cartRuleWithCode.discountPercent)) / 100);\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(parseFloat(totalAfterPromoCode.toFixed(2)));\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page, 1)];\n case 3:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal(parseFloat((totalAfterPromoCode - products_1.default.demo_1.finalPrice).toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91617043-3544-4877-975c-6d90a002dcd1", + "parentUUID": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "isHook": false, + "skipped": false + }, + { + "title": "should remove voucher and product from shopping cart", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code case 3 : Create cart rule with code, highlight enabled then check it on FO Verify discount on FO should remove voucher and product from shopping cart", + "timedOut": false, + "duration": 2253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_removeProductAndVoucher2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeProductAndVoucher2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.removeVoucher(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ce8d568-e93a-4702-84a4-adb4fd1db991", + "parentUUID": "16f059d7-e602-498c-a0e0-64a0d35f8d47", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "25695233-fad1-47de-b986-9c0e278e8a89", + "cdfa34c5-c082-4bd2-a84e-1c88095cfd46", + "f28c5fc0-2c07-47c7-84c0-c276a4337510", + "ceae714a-7d91-4797-9678-6e488a08ae06", + "7849397a-cecd-46be-9823-579054b522c9", + "97eb2856-0ee0-49c8-b505-6517eaa7b131", + "91617043-3544-4877-975c-6d90a002dcd1", + "6ce8d568-e93a-4702-84a4-adb4fd1db991" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16537, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9f1374d4-26f0-4352-9a47-a9f28667e4bf", + "title": "Delete the updated cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/01_withAndWithoutCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code Delete the updated cart rule should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a714db2e-a4b6-47fd-8170-634b0c432715", + "parentUUID": "9f1374d4-26f0-4352-9a47-a9f28667e4bf", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with/without code Delete the updated cart rule should delete cart rule", + "timedOut": false, + "duration": 2041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_withAndWithoutCode_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de1cb8dd-1b58-461c-88b3-f3a2a0c8a749", + "parentUUID": "9f1374d4-26f0-4352-9a47-a9f28667e4bf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a714db2e-a4b6-47fd-8170-634b0c432715", + "de1cb8dd-1b58-461c-88b3-f3a2a0c8a749" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2046, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "382d4005-69ad-4625-ad91-36a1f5a99a8d", + "a80d5a12-8642-4528-a569-823a964c17fd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10111, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8211d7f7-edc1-4f03-a7a8-9da8b1e06cee", + "title": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use\"", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use \"before all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86692175-a8e1-4e98-a594-0b828fa90295", + "parentUUID": "8211d7f7-edc1-4f03-a7a8-9da8b1e06cee", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use\"", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use \"after all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "34e2db54-c746-4497-81a4-bbcb2cc8e0f5", + "parentUUID": "8211d7f7-edc1-4f03-a7a8-9da8b1e06cee", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "91316062-7eb4-48cb-b9dd-ae4456732180", + "title": "case 1 : Create cart rule with enabled partial use then check it on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "32ca1f51-cd25-4db0-a48a-13593cc3e7d5", + "title": "Create cart rule in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Create cart rule in BO should login in BO", + "timedOut": false, + "duration": 1751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c251b869-7d4f-4623-aa1a-b95534a3a616", + "parentUUID": "32ca1f51-cd25-4db0-a48a-13593cc3e7d5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Create cart rule in BO should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3617, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "396892b3-97ab-44d0-89e7-97e6eb195f2d", + "parentUUID": "32ca1f51-cd25-4db0-a48a-13593cc3e7d5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Create cart rule in BO should go to new cart rule page", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToNewCartRulePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7de2011a-a6b0-4e55-bbf6-3feeb9b52407", + "parentUUID": "32ca1f51-cd25-4db0-a48a-13593cc3e7d5", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Create cart rule in BO should create cart rule", + "timedOut": false, + "duration": 3874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_createCartRule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleEnabledPartialUse)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "214c4ef7-27d0-4656-913a-f1716360a426", + "parentUUID": "32ca1f51-cd25-4db0-a48a-13593cc3e7d5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c251b869-7d4f-4623-aa1a-b95534a3a616", + "396892b3-97ab-44d0-89e7-97e6eb195f2d", + "7de2011a-a6b0-4e55-bbf6-3feeb9b52407", + "214c4ef7-27d0-4656-913a-f1716360a426" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10036, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "281aca8c-610e-4286-aba0-139f609ef4c4", + "title": "Verify discount in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should view my shop", + "timedOut": false, + "duration": 1683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d98ee61b-ddac-429f-9d47-2690b662c965", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should go to the first product page", + "timedOut": false, + "duration": 775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df0492bf-e459-446f-a49b-87177d7e5edb", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8cd448f-3828-4cea-ae02-0f9330630ce5", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total after discount", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should verify the total after discount", + "timedOut": false, + "duration": 4032, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_verifyTotalAfterDiscount1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceATI, cartRuleName, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyTotalAfterDiscount1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(0);\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page)];\n case 3:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.equal(cartRuleEnabledPartialUse.name);\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page)];\n case 4:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue.toString()).to.equal(\"-\".concat(products_1.default.demo_1.finalPrice));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58f12762-6d86-42b9-9fea-6a0f34312db8", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should validate shopping cart and go to checkout page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should validate shopping cart and go to checkout page", + "timedOut": false, + "duration": 272, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToCheckoutPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCheckoutPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fbad6a9-1048-4295-8346-9ec1d0ab3b91", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by created customer", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should sign in by created customer", + "timedOut": false, + "duration": 1097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dea0f248-46f1-43ea-8f73-21e8fe02178b", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should go to delivery step", + "timedOut": false, + "duration": 310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85978a25-28da-497b-904f-fc5970b1cfd2", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should go to payment step", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4f5b735-7da5-4861-a2e2-bc5165b9d36d", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should confirm the order", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should confirm the order", + "timedOut": false, + "duration": 3131, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b719f548-42bd-4dc9-8ede-7c525d8d4404", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to vouchers page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should go to vouchers page", + "timedOut": false, + "duration": 1392, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToFOVouchersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOVouchersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToVouchersPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(vouchers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75c33d4c-170f-4bc0-8ae8-7dba82729382", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of vouchers", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should get the number of vouchers", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_getNumberOfVouchers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfVouchers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfVouchers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getNumberOfVouchers(page)];\n case 2:\n numberOfVouchers = _a.sent();\n (0, chai_1.expect)(numberOfVouchers).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "934e197a-9587-4893-b339-5ff13fad1fb0", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher description n°1", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should check the voucher description n°1", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkVoucher0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, cartRule.args.row, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa22c363-04e6-4fb0-9c30-595adbe93107", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher quantity n°1", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should check the voucher quantity n°1", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkVoucher1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, cartRule.args.row, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1efbfdd2-defa-4b01-aa57-d2c4763e5e5c", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher value n°1", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should check the voucher value n°1", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkVoucher2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, cartRule.args.row, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8af8a117-2208-4883-958a-c9fa016a13f7", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher minimum n°1", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should check the voucher minimum n°1", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkVoucher3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, cartRule.args.row, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cbb09b3-4685-4bf9-bce4-3baf7892dc04", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher cumulative n°1", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in FO should check the voucher cumulative n°1", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkVoucher4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, cartRule.args.row, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb7a9c60-1cb8-458b-841d-2c96e451bbe6", + "parentUUID": "281aca8c-610e-4286-aba0-139f609ef4c4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d98ee61b-ddac-429f-9d47-2690b662c965", + "df0492bf-e459-446f-a49b-87177d7e5edb", + "a8cd448f-3828-4cea-ae02-0f9330630ce5", + "58f12762-6d86-42b9-9fea-6a0f34312db8", + "3fbad6a9-1048-4295-8346-9ec1d0ab3b91", + "dea0f248-46f1-43ea-8f73-21e8fe02178b", + "85978a25-28da-497b-904f-fc5970b1cfd2", + "b4f5b735-7da5-4861-a2e2-bc5165b9d36d", + "b719f548-42bd-4dc9-8ede-7c525d8d4404", + "75c33d4c-170f-4bc0-8ae8-7dba82729382", + "934e197a-9587-4893-b339-5ff13fad1fb0", + "fa22c363-04e6-4fb0-9c30-595adbe93107", + "1efbfdd2-defa-4b01-aa57-d2c4763e5e5c", + "8af8a117-2208-4883-958a-c9fa016a13f7", + "1cbb09b3-4685-4bf9-bce4-3baf7892dc04", + "bb7a9c60-1cb8-458b-841d-2c96e451bbe6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19232, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6ed3dc0d-33e6-47d9-bcea-5f1b57a99060", + "title": "Verify discount in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO and reload the page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in BO should go back to BO and reload the page", + "timedOut": false, + "duration": 267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, discounts_1.default.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "439a6889-3d30-40c3-92a5-ae99948a8725", + "parentUUID": "6ed3dc0d-33e6-47d9-bcea-5f1b57a99060", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in BO should check the number of cart rules", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkNumberOfCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRules;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59e78fcc-d815-46ef-a869-f72e714cb47d", + "parentUUID": "6ed3dc0d-33e6-47d9-bcea-5f1b57a99060", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit the first cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in BO should go to edit the first cart rule", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToEditCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToEditCartRulePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db2dcdae-0f8d-4c2c-a28c-043fc9caa6fe", + "parentUUID": "6ed3dc0d-33e6-47d9-bcea-5f1b57a99060", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart rule limit customer", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in BO should check the cart rule limit customer", + "timedOut": false, + "duration": 63, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkCartRuleCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customer;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCartRuleCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getLimitSingleCustomer(page)];\n case 2:\n customer = _a.sent();\n (0, chai_1.expect)(customer).to.equal(\"\".concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName, \" (\").concat(customers_1.default.johnDoe.email, \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31db2828-ae01-42ce-ace3-86af8eda6a5a", + "parentUUID": "6ed3dc0d-33e6-47d9-bcea-5f1b57a99060", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart rule amount value", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO Verify discount in BO should check the cart rule amount value", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkCartRuleAmountValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var amount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCartRuleAmountValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getAmountValue(page)];\n case 2:\n amount = _a.sent();\n (0, chai_1.expect)(amount).to.equal(amountValue.toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d6aca56-d17a-47d9-88e3-ee9ad5f4959f", + "parentUUID": "6ed3dc0d-33e6-47d9-bcea-5f1b57a99060", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "439a6889-3d30-40c3-92a5-ae99948a8725", + "59e78fcc-d815-46ef-a869-f72e714cb47d", + "db2dcdae-0f8d-4c2c-a28c-043fc9caa6fe", + "31db2828-ae01-42ce-ace3-86af8eda6a5a", + "1d6aca56-d17a-47d9-88e3-ee9ad5f4959f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1322, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7565c68c-e66a-48e7-a2f5-7295002c5b6e", + "title": "bulk delete cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on cancel button", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO bulk delete cart rules should click on cancel button", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_clickOnCancelButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnCancelButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnCancelButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb554ec1-a7ab-4844-b003-511f8a65f7a6", + "parentUUID": "7565c68c-e66a-48e7-a2f5-7295002c5b6e", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete cart rules", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 1 : Create cart rule with enabled partial use then check it on FO bulk delete cart rules should bulk delete cart rules", + "timedOut": false, + "duration": 558, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_bulkDeleteCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkDeleteCartRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16c36178-1ec6-4d8f-b1a5-27fe69135a95", + "parentUUID": "7565c68c-e66a-48e7-a2f5-7295002c5b6e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fb554ec1-a7ab-4844-b003-511f8a65f7a6", + "16c36178-1ec6-4d8f-b1a5-27fe69135a95" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1363, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3356c366-6ade-4d9a-ae66-fd1b43870d22", + "title": "case 2 : Create cart rule with disabled partial use then check it on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "e3de0d80-7f3e-449f-84d8-901866fbfa8b", + "title": "Create cart rule in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Create cart rule in BO should go to new cart rule page", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToNewCartRulePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e86af176-9dab-4b27-a4cb-4a8eaa243cde", + "parentUUID": "e3de0d80-7f3e-449f-84d8-901866fbfa8b", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Create cart rule in BO should create cart rule", + "timedOut": false, + "duration": 3927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_createCartRule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleDisabledPartialUse)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64ba2fdf-a663-4601-b52b-133b14713c99", + "parentUUID": "e3de0d80-7f3e-449f-84d8-901866fbfa8b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e86af176-9dab-4b27-a4cb-4a8eaa243cde", + "64ba2fdf-a663-4601-b52b-133b14713c99" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4755, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "title": "Verify discount in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should view my shop", + "timedOut": false, + "duration": 1778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ffb49ce-e7e6-4c43-b119-14f8d0ba0404", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should go to the first product page", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToFirstProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72b217cd-c9a1-467c-9d5c-ac9862d1b66e", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e815da9-058f-48c5-b836-22df0ec1a69f", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total after discount", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should verify the total after discount", + "timedOut": false, + "duration": 4030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_verifyTotalAfterDiscount2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceATI, cartRuleName, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyTotalAfterDiscount2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(0);\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page)];\n case 3:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.equal(cartRuleEnabledPartialUse.name);\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page)];\n case 4:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue.toString()).to.equal(\"-\".concat(products_1.default.demo_1.finalPrice));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dbafd77-37a8-4d6b-9543-588077925f68", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should validate shopping cart and go to checkout page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should validate shopping cart and go to checkout page", + "timedOut": false, + "duration": 221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToCheckoutPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCheckoutPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "151a708e-d7a9-4f8b-bdb2-421b7e752bf8", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should go to delivery step", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToDeliveryStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3743f29-92ed-4462-9b30-827b4c7aeec3", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should go to payment step", + "timedOut": false, + "duration": 314, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToPaymentStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d36c84cb-9b89-428e-8f07-cf6b5a7a84d2", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should confirm the order", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should confirm the order", + "timedOut": false, + "duration": 2633, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_confirmOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder2', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec44bd62-be0a-4f3f-86e6-d090a7b8076c", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to vouchers page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should go to vouchers page", + "timedOut": false, + "duration": 1389, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goToFOVouchersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOVouchersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToVouchersPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(vouchers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a156baa7-2f70-49c8-8d69-b0b9e7436201", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of vouchers", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in FO should get the number of vouchers", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_getNumberOfVouchers2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfVouchers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfVouchers2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getNumberOfVouchers(page)];\n case 2:\n numberOfVouchers = _a.sent();\n (0, chai_1.expect)(numberOfVouchers).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0ea67d9-76e4-4bac-80b5-51516038e54c", + "parentUUID": "808a17ff-33cf-4672-ae4b-23c14ffd12ac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4ffb49ce-e7e6-4c43-b119-14f8d0ba0404", + "72b217cd-c9a1-467c-9d5c-ac9862d1b66e", + "3e815da9-058f-48c5-b836-22df0ec1a69f", + "8dbafd77-37a8-4d6b-9543-588077925f68", + "151a708e-d7a9-4f8b-bdb2-421b7e752bf8", + "f3743f29-92ed-4462-9b30-827b4c7aeec3", + "d36c84cb-9b89-428e-8f07-cf6b5a7a84d2", + "ec44bd62-be0a-4f3f-86e6-d090a7b8076c", + "a156baa7-2f70-49c8-8d69-b0b9e7436201", + "c0ea67d9-76e4-4bac-80b5-51516038e54c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17648, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ee1c67e7-698b-4861-b797-4d986abf265d", + "title": "Verify discount in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO and reload the page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in BO should go back to BO and reload the page", + "timedOut": false, + "duration": 296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, discounts_1.default.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c00d064-bf6c-46da-a1f8-a60a2336d929", + "parentUUID": "ee1c67e7-698b-4861-b797-4d986abf265d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Verify discount in BO should check the number of cart rules", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_checkNumberOfCartRules2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRules;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfCartRules2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3d2d5c7-da0a-4553-8640-9e0fd0a25d65", + "parentUUID": "ee1c67e7-698b-4861-b797-4d986abf265d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3c00d064-bf6c-46da-a1f8-a60a2336d929", + "e3d2d5c7-da0a-4553-8640-9e0fd0a25d65" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 310, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "56c9c122-631d-4ae2-8f71-721dbbfa4a12", + "title": "Delete the created cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/02_enableDisablePartialUse.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with enabled/disabled partial use case 2 : Create cart rule with disabled partial use then check it on FO Delete the created cart rule should delete cart rule", + "timedOut": false, + "duration": 1964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_enableDisablePartialUse_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bbfbf94-f9d5-45a7-ae0f-81c6ba8b92a8", + "parentUUID": "56c9c122-631d-4ae2-8f71-721dbbfa4a12", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9bbfbf94-f9d5-45a7-ae0f-81c6ba8b92a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1964, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "54c54e13-7cab-41ba-8558-85108b124344", + "title": "BO - Catalog - Cart rules : CRUD cart rule with priority", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with priority\"", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority \"before all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with priority\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1a939b2-60b2-4de1-b221-c7a35bc27655", + "parentUUID": "54c54e13-7cab-41ba-8558-85108b124344", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with priority\"", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority \"after all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with priority\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "50877e7f-970e-4f67-96c7-d5a0d4777ed2", + "parentUUID": "54c54e13-7cab-41ba-8558-85108b124344", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ce8b330-b44f-4fbd-a7e2-433bc3783447", + "parentUUID": "54c54e13-7cab-41ba-8558-85108b124344", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3614, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8be750dd-3064-435c-abeb-0a675c868328", + "parentUUID": "54c54e13-7cab-41ba-8558-85108b124344", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "5c7b3238-a706-4608-80ca-9b30123419ed", + "title": "Create 2 cart rules with priority 1 and 2", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "191a59b8-55bb-4351-9294-4b680ff98177", + "title": "Create first cart rule 'cartRulePriority2'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Create 2 cart rules with priority 1 and 2 Create first cart rule 'cartRulePriority2' should go to new cart rule page", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c70e9efb-c5d1-45af-aeb3-eeae22722aec", + "parentUUID": "191a59b8-55bb-4351-9294-4b680ff98177", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Create 2 cart rules with priority 1 and 2 Create first cart rule 'cartRulePriority2' should create cart rule", + "timedOut": false, + "duration": 4035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRulePriority2)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92143447-4588-41a2-9b22-0d31bb16c017", + "parentUUID": "191a59b8-55bb-4351-9294-4b680ff98177", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c70e9efb-c5d1-45af-aeb3-eeae22722aec", + "92143447-4588-41a2-9b22-0d31bb16c017" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4838, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7183f3c5-1d5b-4f99-8566-50d1ca28b3be", + "title": "Create second cart rule 'cartRulePriority1'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Create 2 cart rules with priority 1 and 2 Create second cart rule 'cartRulePriority1' should go to new cart rule page", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_goToNewCartRulePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ea49487-8f0d-42ab-8f37-8f7f6b1da729", + "parentUUID": "7183f3c5-1d5b-4f99-8566-50d1ca28b3be", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Create 2 cart rules with priority 1 and 2 Create second cart rule 'cartRulePriority1' should create cart rule", + "timedOut": false, + "duration": 3966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_createCartRule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRulePriority1)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e351e2a8-ee7b-4e5c-a607-d93216077987", + "parentUUID": "7183f3c5-1d5b-4f99-8566-50d1ca28b3be", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ea49487-8f0d-42ab-8f37-8f7f6b1da729", + "e351e2a8-ee7b-4e5c-a607-d93216077987" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4819, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "154b1598-4cab-4be8-9893-a242dcc8aa26", + "title": "Verify discount on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Verify discount on FO should view my shop", + "timedOut": false, + "duration": 1693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c99dd2f-47d1-4d47-8dbb-bd65b7928648", + "parentUUID": "154b1598-4cab-4be8-9893-a242dcc8aa26", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Verify discount on FO should go to the first product page", + "timedOut": false, + "duration": 775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdf15c14-f5c7-4f93-bcb2-e54a7990fa9d", + "parentUUID": "154b1598-4cab-4be8-9893-a242dcc8aa26", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Verify discount on FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "799cf524-0eb3-4c55-b211-871890c80b40", + "parentUUID": "154b1598-4cab-4be8-9893-a242dcc8aa26", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the cart rule priority 1 is applied before priority 2", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Verify discount on FO should check that the cart rule priority 1 is applied before priority 2", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_checkCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstCartRule, secondCartRule;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page, 1)];\n case 2:\n firstCartRule = _a.sent();\n (0, chai_1.expect)(firstCartRule).to.equal(cartRulePriority1.name);\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page, 2)];\n case 3:\n secondCartRule = _a.sent();\n (0, chai_1.expect)(secondCartRule).to.equal(cartRulePriority2.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8585da91-27f8-4e9e-a977-420545197fe8", + "parentUUID": "154b1598-4cab-4be8-9893-a242dcc8aa26", + "isHook": false, + "skipped": false + }, + { + "title": "should check the total after discount", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Verify discount on FO should check the total after discount", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_verifyTotalAfterDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalAfterDiscount, priceATI;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyTotalAfterDiscount', baseContext)];\n case 1:\n _a.sent();\n totalAfterDiscount = products_1.default.demo_1.finalPrice\n - (cartRulePriority2.discountAmount.value + cartRulePriority1.discountAmount.value);\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(parseFloat(totalAfterDiscount.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7073e195-bd1c-4bee-be6e-e5b61ed570c5", + "parentUUID": "154b1598-4cab-4be8-9893-a242dcc8aa26", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Verify discount on FO should check the discount value", + "timedOut": false, + "duration": 6029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_checkDiscountValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalDiscountValue, firstDiscountValue, secondDiscountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getSubtotalDiscountValue(page)];\n case 2:\n totalDiscountValue = _a.sent();\n (0, chai_1.expect)(totalDiscountValue)\n .to.equal(-(cartRulePriority2.discountAmount.value + cartRulePriority1.discountAmount.value));\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page, 1)];\n case 3:\n firstDiscountValue = _a.sent();\n (0, chai_1.expect)(firstDiscountValue).to.equal(-(cartRulePriority1.discountAmount.value));\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page, 1)];\n case 4:\n secondDiscountValue = _a.sent();\n (0, chai_1.expect)(secondDiscountValue).to.equal(-(cartRulePriority2.discountAmount.value));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "492f25a5-b326-4731-81a4-ce0988a3c6ec", + "parentUUID": "154b1598-4cab-4be8-9893-a242dcc8aa26", + "isHook": false, + "skipped": false + }, + { + "title": "should remove product from shopping cart", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Verify discount on FO should remove product from shopping cart", + "timedOut": false, + "duration": 2038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_removeProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28141f60-f193-49d6-973c-8a8ab1848203", + "parentUUID": "154b1598-4cab-4be8-9893-a242dcc8aa26", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3c99dd2f-47d1-4d47-8dbb-bd65b7928648", + "cdf15c14-f5c7-4f93-bcb2-e54a7990fa9d", + "799cf524-0eb3-4c55-b211-871890c80b40", + "8585da91-27f8-4e9e-a977-420545197fe8", + "7073e195-bd1c-4bee-be6e-e5b61ed570c5", + "492f25a5-b326-4731-81a4-ce0988a3c6ec", + "28141f60-f193-49d6-973c-8a8ab1848203" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 18233, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "11331713-478e-41f5-95dd-800f0254bd0b", + "title": "Delete the created cart rules by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/03_priority.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Delete the created cart rules by bulk actions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c03a2b4e-904e-438c-8ab8-11bea94e73c0", + "parentUUID": "11331713-478e-41f5-95dd-800f0254bd0b", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete cart rules", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with priority Delete the created cart rules by bulk actions should bulk delete cart rules", + "timedOut": false, + "duration": 542, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_priority_bulkDeleteCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkDeleteCartRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "123a30ad-53cd-4d13-ac64-96f209885675", + "parentUUID": "11331713-478e-41f5-95dd-800f0254bd0b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c03a2b4e-904e-438c-8ab8-11bea94e73c0", + "123a30ad-53cd-4d13-ac64-96f209885675" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 547, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "8ce8b330-b44f-4fbd-a7e2-433bc3783447", + "8be750dd-3064-435c-abeb-0a675c868328" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5326, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9e36340a-ac8c-40ce-9c1d-c9337e9cdcf6", + "title": "BO - Catalog - Cart rules : CRUD cart rule with disabled status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/04_disableStatus.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/04_disableStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with disabled status\"", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status \"before all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with disabled status\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b172c657-35da-44a5-98f5-e1d7c01d9f6b", + "parentUUID": "9e36340a-ac8c-40ce-9c1d-c9337e9cdcf6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with disabled status\"", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status \"after all\" hook in \"BO - Catalog - Cart rules : CRUD cart rule with disabled status\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cfc6289c-adfb-42a7-a575-be706af4bd7d", + "parentUUID": "9e36340a-ac8c-40ce-9c1d-c9337e9cdcf6", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "e0fb9ce2-5e23-46af-b55b-5e32cc9d3b4f", + "title": "Create disabled cart rule in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/04_disableStatus.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/04_disableStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Create disabled cart rule in BO should login in BO", + "timedOut": false, + "duration": 1702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d49f165-340a-46ae-93d6-6047277e756b", + "parentUUID": "e0fb9ce2-5e23-46af-b55b-5e32cc9d3b4f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Create disabled cart rule in BO should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3613, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcb81f5b-ca96-4592-9809-95d2704d97d8", + "parentUUID": "e0fb9ce2-5e23-46af-b55b-5e32cc9d3b4f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Create disabled cart rule in BO should go to new cart rule page", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_goToNewCartRulePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0688907-9ce0-4014-a91f-5e2fccf26c5d", + "parentUUID": "e0fb9ce2-5e23-46af-b55b-5e32cc9d3b4f", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Create disabled cart rule in BO should create cart rule", + "timedOut": false, + "duration": 3921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_createCartRule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, disabledCartRule)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "716d82f8-08e8-43cc-a90c-647d0a536605", + "parentUUID": "e0fb9ce2-5e23-46af-b55b-5e32cc9d3b4f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7d49f165-340a-46ae-93d6-6047277e756b", + "dcb81f5b-ca96-4592-9809-95d2704d97d8", + "a0688907-9ce0-4014-a91f-5e2fccf26c5d", + "716d82f8-08e8-43cc-a90c-647d0a536605" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10036, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2c7ddf97-3dd1-4046-99af-0a3c0b66a89d", + "title": "Verify That there are no discount in the cart", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/04_disableStatus.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/04_disableStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Verify That there are no discount in the cart should view my shop", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff1ff5b9-7202-452d-9e42-63263364e1d5", + "parentUUID": "2c7ddf97-3dd1-4046-99af-0a3c0b66a89d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Verify That there are no discount in the cart should go to the first product page", + "timedOut": false, + "duration": 780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_goToFirstProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a5f3ab3-ebcf-450a-9cc0-9fc15ffd8c05", + "parentUUID": "2c7ddf97-3dd1-4046-99af-0a3c0b66a89d", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Verify That there are no discount in the cart should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2579e6bc-a1e9-403f-9457-1e071884dccd", + "parentUUID": "2c7ddf97-3dd1-4046-99af-0a3c0b66a89d", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Verify That there are no discount in the cart should verify the total", + "timedOut": false, + "duration": 2014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_verifyTotal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceATI;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyTotal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(products_1.default.demo_1.finalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d380eb61-1500-4998-a1b8-5e5e7bdc5062", + "parentUUID": "2c7ddf97-3dd1-4046-99af-0a3c0b66a89d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the cart rule name is not visible", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Verify That there are no discount in the cart should check that the cart rule name is not visible", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_isPromoCodeVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isPromoCodeVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isCartRuleNameVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5234d796-25d3-41be-8e22-95730760151d", + "parentUUID": "2c7ddf97-3dd1-4046-99af-0a3c0b66a89d", + "isHook": false, + "skipped": false + }, + { + "title": "should remove product from shopping cart", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Verify That there are no discount in the cart should remove product from shopping cart", + "timedOut": false, + "duration": 2044, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_removeProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae7379a1-352b-4a02-9a0a-aa7dd11465db", + "parentUUID": "2c7ddf97-3dd1-4046-99af-0a3c0b66a89d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ff1ff5b9-7202-452d-9e42-63263364e1d5", + "6a5f3ab3-ebcf-450a-9cc0-9fc15ffd8c05", + "2579e6bc-a1e9-403f-9457-1e071884dccd", + "d380eb61-1500-4998-a1b8-5e5e7bdc5062", + "5234d796-25d3-41be-8e22-95730760151d", + "ae7379a1-352b-4a02-9a0a-aa7dd11465db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13205, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "55e14b49-af68-4920-8386-0c33f631fea0", + "title": "Delete the created cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/04_disableStatus.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/01_information/04_disableStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Delete the created cart rule should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce5c4013-49cc-47f1-88ff-ce1909af0935", + "parentUUID": "55e14b49-af68-4920-8386-0c33f631fea0", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : CRUD cart rule with disabled status Delete the created cart rule should delete cart rule", + "timedOut": false, + "duration": 1934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_information_disableStatus_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b4e36c8-8dca-41ff-ba8f-ad929a3a61a1", + "parentUUID": "55e14b49-af68-4920-8386-0c33f631fea0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ce5c4013-49cc-47f1-88ff-ce1909af0935", + "4b4e36c8-8dca-41ff-ba8f-ad929a3a61a1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1939, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b4372f67-8e06-4fad-a83a-10502ed8ba93", + "title": "BO - Catalog - Cart rules : Limit to single customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/01_limitToSingleCustomer.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/01_limitToSingleCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Limit to single customer\"", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer \"before all\" hook in \"BO - Catalog - Cart rules : Limit to single customer\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f15d3954-1bfe-4d7d-b678-6fede2e24efe", + "parentUUID": "b4372f67-8e06-4fad-a83a-10502ed8ba93", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Limit to single customer\"", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer \"after all\" hook in \"BO - Catalog - Cart rules : Limit to single customer\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4ba9429b-942a-4f23-ad0d-e66f891de26a", + "parentUUID": "b4372f67-8e06-4fad-a83a-10502ed8ba93", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "fa3ded45-b1e3-43cd-933d-d10fe688ae3c", + "title": "BO : Create new cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/01_limitToSingleCustomer.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/01_limitToSingleCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer BO : Create new cart rule should login in BO", + "timedOut": false, + "duration": 1683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98a51192-c0c2-45d4-81e4-fb99280ecb81", + "parentUUID": "fa3ded45-b1e3-43cd-933d-d10fe688ae3c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer BO : Create new cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3614, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e418bac1-2c26-46f4-8817-c52ee52d8e88", + "parentUUID": "fa3ded45-b1e3-43cd-933d-d10fe688ae3c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer BO : Create new cart rule should go to new cart rule page", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "926f386b-2b59-4d1c-b67e-0d68639dff5a", + "parentUUID": "fa3ded45-b1e3-43cd-933d-d10fe688ae3c", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer BO : Create new cart rule should create new cart rule", + "timedOut": false, + "duration": 4911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, newCartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5182bb5-f42f-4446-9e14-7d64d06be908", + "parentUUID": "fa3ded45-b1e3-43cd-933d-d10fe688ae3c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "98a51192-c0c2-45d4-81e4-fb99280ecb81", + "e418bac1-2c26-46f4-8817-c52ee52d8e88", + "926f386b-2b59-4d1c-b67e-0d68639dff5a", + "b5182bb5-f42f-4446-9e14-7d64d06be908" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11007, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "title": "FO : View discount", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/01_limitToSingleCustomer.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/01_limitToSingleCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should open the shop page", + "timedOut": false, + "duration": 385, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cfdc15e-ab5c-498f-a5e2-852430b8e98d", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should go to login page", + "timedOut": false, + "duration": 710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d10e38ff-f635-4bf2-b28d-1942d638afa8", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should sign in with default customer", + "timedOut": false, + "duration": 527, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_sighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f3b8bd5-f2f4-478d-aa8b-a4b25be6e05b", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should go to vouchers page", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should go to vouchers page", + "timedOut": false, + "duration": 1391, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_goToFOVouchersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOVouchersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToVouchersPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(vouchers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69a53fb9-5b01-4c8b-8cbe-ce25e5b13e8f", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher code", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should check the voucher code", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_checkVoucher0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, 1, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "327d0f71-4801-4f14-b685-82a668409e1a", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher description", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should check the voucher description", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_checkVoucher1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, 1, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39ee574c-c0c5-43f3-aadf-7139ea8fe44b", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher quantity", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should check the voucher quantity", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_checkVoucher2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, 1, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fcd86d7-4aa9-426b-8b45-c4ee743ce42a", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher value", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should check the voucher value", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_checkVoucher3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, 1, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20fca9f7-821d-45c6-972d-9e0504bbbe22", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher minimum", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should check the voucher minimum", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_checkVoucher4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, 1, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e01a736-9506-48d0-a4b0-490cc57b94ca", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher cumulative", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should check the voucher cumulative", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_checkVoucher5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, 1, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3274b781-732a-4c7b-ac03-15f927016af5", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher expiration_date", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should check the voucher expiration_date", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_checkVoucher6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleTextColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkVoucher\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.getTextColumnFromTableVouchers(page, 1, cartRule.args.column)];\n case 2:\n cartRuleTextColumn = _a.sent();\n (0, chai_1.expect)(cartRuleTextColumn).to.equal(cartRule.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "885a8062-49a8-4fd6-83e8-f5d8abd560a9", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should sign out", + "timedOut": false, + "duration": 1154, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_signOut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, vouchers_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d19b3942-c086-4a6b-919d-a10645e8518b", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should add the first product to the cart", + "timedOut": false, + "duration": 2287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_addFirstProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0faab707-0e91-4319-99c7-11f73f23c610", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is no discount applied", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should check that there is no discount applied", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_checkNoDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isCartRuleNameVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37c24990-27ba-41ea-bd1b-0c345a36388e", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the last product from the cart", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer FO : View discount should delete the last product from the cart", + "timedOut": false, + "duration": 2044, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_deleteLastProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLastProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf8f3766-a2f4-4419-9362-570d0b5cdc49", + "parentUUID": "62d1b46e-26b4-4d96-a6b0-2121678e5059", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2cfdc15e-ab5c-498f-a5e2-852430b8e98d", + "d10e38ff-f635-4bf2-b28d-1942d638afa8", + "9f3b8bd5-f2f4-478d-aa8b-a4b25be6e05b", + "69a53fb9-5b01-4c8b-8cbe-ce25e5b13e8f", + "327d0f71-4801-4f14-b685-82a668409e1a", + "39ee574c-c0c5-43f3-aadf-7139ea8fe44b", + "6fcd86d7-4aa9-426b-8b45-c4ee743ce42a", + "20fca9f7-821d-45c6-972d-9e0504bbbe22", + "9e01a736-9506-48d0-a4b0-490cc57b94ca", + "3274b781-732a-4c7b-ac03-15f927016af5", + "885a8062-49a8-4fd6-83e8-f5d8abd560a9", + "d19b3942-c086-4a6b-919d-a10645e8518b", + "0faab707-0e91-4319-99c7-11f73f23c610", + "37c24990-27ba-41ea-bd1b-0c345a36388e", + "bf8f3766-a2f4-4419-9362-570d0b5cdc49" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9564, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9569127c-869f-456c-a007-a45367160d08", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/01_limitToSingleCustomer.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/01_limitToSingleCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f438507f-efa6-4ced-bb0e-7fe667df2bb3", + "parentUUID": "9569127c-869f-456c-a007-a45367160d08", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "82ad06d5-e1a2-46e7-8c45-18e99b8c96ff", + "parentUUID": "9569127c-869f-456c-a007-a45367160d08", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "533284b3-b346-4681-9141-a93361c6bd50", + "parentUUID": "9569127c-869f-456c-a007-a45367160d08", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ece4dc2-4413-4769-b0d2-f803385f47d2", + "parentUUID": "9569127c-869f-456c-a007-a45367160d08", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36cf6ed5-8a7b-4068-b2ab-b7abd3290b33", + "parentUUID": "9569127c-869f-456c-a007-a45367160d08", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd36b1ad-80c7-436c-ab82-db1553b247c8", + "parentUUID": "9569127c-869f-456c-a007-a45367160d08", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Limit to single customer POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_limitToSingleCustomer_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b247f9b6-4527-4764-82a1-123398b9b696", + "parentUUID": "9569127c-869f-456c-a007-a45367160d08", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "533284b3-b346-4681-9141-a93361c6bd50", + "1ece4dc2-4413-4769-b0d2-f803385f47d2", + "36cf6ed5-8a7b-4068-b2ab-b7abd3290b33", + "dd36b1ad-80c7-436c-ab82-db1553b247c8", + "b247f9b6-4527-4764-82a1-123398b9b696" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11288, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c4b8beb6-ffb0-425d-b4f8-b0b9b2cc5ccc", + "title": "BO - Catalog - Cart rules : Invalid date time", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/02_invalidDateTime.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/02_invalidDateTime.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Invalid date time\"", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time \"before all\" hook in \"BO - Catalog - Cart rules : Invalid date time\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eb7cf60-8382-44e9-8bdb-c01050e4cbed", + "parentUUID": "c4b8beb6-ffb0-425d-b4f8-b0b9b2cc5ccc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Invalid date time\"", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time \"after all\" hook in \"BO - Catalog - Cart rules : Invalid date time\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8cbf368f-8bfa-4bd9-a26e-6862c29b2bf8", + "parentUUID": "c4b8beb6-ffb0-425d-b4f8-b0b9b2cc5ccc", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d9272df6-8fd8-4e66-bda4-98d9654d1f63", + "title": "BO : Create new cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/02_invalidDateTime.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/02_invalidDateTime.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time BO : Create new cart rule should login in BO", + "timedOut": false, + "duration": 1714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5808c065-1fa8-408b-98fc-adf0dd65955f", + "parentUUID": "d9272df6-8fd8-4e66-bda4-98d9654d1f63", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time BO : Create new cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3615, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b53e312-4836-4007-8630-1f9a93293bfa", + "parentUUID": "d9272df6-8fd8-4e66-bda4-98d9654d1f63", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time BO : Create new cart rule should go to new cart rule page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56a9fd37-b127-45d9-bad0-05827cb9159f", + "parentUUID": "d9272df6-8fd8-4e66-bda4-98d9654d1f63", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time BO : Create new cart rule should create new cart rule", + "timedOut": false, + "duration": 4054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, newCartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc0d088c-8c7b-451d-9992-c87e506e8d10", + "parentUUID": "d9272df6-8fd8-4e66-bda4-98d9654d1f63", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5808c065-1fa8-408b-98fc-adf0dd65955f", + "4b53e312-4836-4007-8630-1f9a93293bfa", + "56a9fd37-b127-45d9-bad0-05827cb9159f", + "dc0d088c-8c7b-451d-9992-c87e506e8d10" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10181, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3834871e-0934-4cec-9598-2dbcf6d7c0be", + "title": "FO : View discount", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/02_invalidDateTime.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/02_invalidDateTime.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time FO : View discount should open the shop page", + "timedOut": false, + "duration": 390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97e47673-b414-4bf2-9e89-be570e5cefb7", + "parentUUID": "3834871e-0934-4cec-9598-2dbcf6d7c0be", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time FO : View discount should add the first product to the cart", + "timedOut": false, + "duration": 2852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_signOut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad68334d-9e81-4a3f-b906-2216675977a4", + "parentUUID": "3834871e-0934-4cec-9598-2dbcf6d7c0be", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is no discount applied", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time FO : View discount should check that there is no discount applied", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_checkNoDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isCartRuleNameVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "494b009e-bb46-488b-afac-a9beea250c82", + "parentUUID": "3834871e-0934-4cec-9598-2dbcf6d7c0be", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the last product from the cart", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time FO : View discount should delete the last product from the cart", + "timedOut": false, + "duration": 2043, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_deleteLastProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLastProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d876ecac-5f97-4ae4-a9ce-70dcd2097563", + "parentUUID": "3834871e-0934-4cec-9598-2dbcf6d7c0be", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97e47673-b414-4bf2-9e89-be570e5cefb7", + "ad68334d-9e81-4a3f-b906-2216675977a4", + "494b009e-bb46-488b-afac-a9beea250c82", + "d876ecac-5f97-4ae4-a9ce-70dcd2097563" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6287, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fd3cc338-9b65-4e0c-b67a-b89101d13c7d", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/02_invalidDateTime.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/02_invalidDateTime.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 25, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c47eed1f-ab2f-481a-b33f-2bd8d3cef049", + "parentUUID": "fd3cc338-9b65-4e0c-b67a-b89101d13c7d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1b2f1902-04cd-401c-9250-7f38bd560647", + "parentUUID": "fd3cc338-9b65-4e0c-b67a-b89101d13c7d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db584ff7-d79b-49c7-8bfa-d15d85ea48f9", + "parentUUID": "fd3cc338-9b65-4e0c-b67a-b89101d13c7d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3619, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "907296ae-1c43-4d4c-9f11-e45d179d44c6", + "parentUUID": "fd3cc338-9b65-4e0c-b67a-b89101d13c7d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c76ba60-4b93-43f6-9e12-6d4c645df13d", + "parentUUID": "fd3cc338-9b65-4e0c-b67a-b89101d13c7d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06e37c9a-6907-4b50-b8e0-6e7ce4a075a1", + "parentUUID": "fd3cc338-9b65-4e0c-b67a-b89101d13c7d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Invalid date time POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_invalidDateTime_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5930cf9c-74ef-4fce-986d-386682fda647", + "parentUUID": "fd3cc338-9b65-4e0c-b67a-b89101d13c7d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db584ff7-d79b-49c7-8bfa-d15d85ea48f9", + "907296ae-1c43-4d4c-9f11-e45d179d44c6", + "1c76ba60-4b93-43f6-9e12-6d4c645df13d", + "06e37c9a-6907-4b50-b8e0-6e7ce4a075a1", + "5930cf9c-74ef-4fce-986d-386682fda647" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11287, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "699d3223-03c5-41be-aaad-cd74c9a715a8", + "title": "BO - Catalog - Cart rules : Minimum amount", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/03_minimumAmount.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/03_minimumAmount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Minimum amount\"", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount \"before all\" hook in \"BO - Catalog - Cart rules : Minimum amount\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ace11a56-4588-4ef0-b599-dc8f0b3c9fe8", + "parentUUID": "699d3223-03c5-41be-aaad-cd74c9a715a8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Minimum amount\"", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount \"after all\" hook in \"BO - Catalog - Cart rules : Minimum amount\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "01dacdcd-fd16-49b3-b4ef-e5375e34d476", + "parentUUID": "699d3223-03c5-41be-aaad-cd74c9a715a8", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0143f084-672e-4166-b385-6a7cd89e361f", + "title": "BO : Create new cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/03_minimumAmount.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/03_minimumAmount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount BO : Create new cart rule should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "364fad1c-6b31-4945-af57-3cb6b27a32be", + "parentUUID": "0143f084-672e-4166-b385-6a7cd89e361f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount BO : Create new cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70e486c1-dabe-4975-9402-2cb77db93651", + "parentUUID": "0143f084-672e-4166-b385-6a7cd89e361f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount BO : Create new cart rule should go to new cart rule page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0327d229-0cd6-4aa1-bc5c-f2142098e613", + "parentUUID": "0143f084-672e-4166-b385-6a7cd89e361f", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount BO : Create new cart rule should create new cart rule", + "timedOut": false, + "duration": 3806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, newCartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b16b5ce9-1abe-4092-9941-f35ceece2d5f", + "parentUUID": "0143f084-672e-4166-b385-6a7cd89e361f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "364fad1c-6b31-4945-af57-3cb6b27a32be", + "70e486c1-dabe-4975-9402-2cb77db93651", + "0327d229-0cd6-4aa1-bc5c-f2142098e613", + "b16b5ce9-1abe-4092-9941-f35ceece2d5f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9955, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9383ce2d-bc82-4e31-b183-12da02cd6764", + "title": "FO : View discount", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/03_minimumAmount.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/03_minimumAmount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount FO : View discount should open the shop page", + "timedOut": false, + "duration": 384, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "838486a8-1efd-4c8a-9092-f9b5fa9900ff", + "parentUUID": "9383ce2d-bc82-4e31-b183-12da02cd6764", + "isHook": false, + "skipped": false + }, + { + "title": "should add the third product to the cart", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount FO : View discount should add the third product to the cart", + "timedOut": false, + "duration": 2859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_signOut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 3)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7d62b89-d8cb-47da-b6fd-2da8e2a721a4", + "parentUUID": "9383ce2d-bc82-4e31-b183-12da02cd6764", + "isHook": false, + "skipped": false + }, + { + "title": "should add the promo code and check the error message", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount FO : View discount should add the promo code and check the error message", + "timedOut": false, + "duration": 1479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_checkNoDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleErrorMessage(page)];\n case 3:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq(\"\".concat(cart_1.cartPage.minimumAmountErrorMessage, \" \\u20AC\").concat(newCartRuleData.minimumAmount.value.toFixed(2), \".\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "036cba45-2943-4930-967e-38aa2a79a6a9", + "parentUUID": "9383ce2d-bc82-4e31-b183-12da02cd6764", + "isHook": false, + "skipped": false + }, + { + "title": "should increase the quantity of product to 2", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount FO : View discount should increase the quantity of product to 2", + "timedOut": false, + "duration": 2081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_increaseProductQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalBeforeDiscount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'increaseProductQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 3:\n totalBeforeDiscount = _a.sent();\n (0, chai_1.expect)(totalBeforeDiscount).to.eq(parseFloat((products_1.default.demo_6.combinations[0].price * 2).toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aede832f-3bc7-48c2-b51e-7a30100abaea", + "parentUUID": "9383ce2d-bc82-4e31-b183-12da02cd6764", + "isHook": false, + "skipped": false + }, + { + "title": "should add the promo code and check the total", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount FO : View discount should add the promo code and check the total", + "timedOut": false, + "duration": 3469, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_checkTotalAfterDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discount, totalAfterDiscount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalAfterDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_6.combinations[0].price * 2, newCartRuleData.discountPercent)];\n case 3:\n discount = _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 4:\n totalAfterDiscount = _a.sent();\n (0, chai_1.expect)(totalAfterDiscount).to.eq(parseFloat((products_1.default.demo_6.combinations[0].price * 2 - discount).toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1501e4c-4863-41aa-9419-b06db918a21e", + "parentUUID": "9383ce2d-bc82-4e31-b183-12da02cd6764", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the last product from the cart", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount FO : View discount should delete the last product from the cart", + "timedOut": false, + "duration": 2041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_deleteLastProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLastProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17410d75-695b-4a61-967f-5eb66e06ca97", + "parentUUID": "9383ce2d-bc82-4e31-b183-12da02cd6764", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "838486a8-1efd-4c8a-9092-f9b5fa9900ff", + "f7d62b89-d8cb-47da-b6fd-2da8e2a721a4", + "036cba45-2943-4930-967e-38aa2a79a6a9", + "aede832f-3bc7-48c2-b51e-7a30100abaea", + "a1501e4c-4863-41aa-9419-b06db918a21e", + "17410d75-695b-4a61-967f-5eb66e06ca97" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12313, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "34deb07e-d22d-4e6f-a075-832cc73dfd96", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/03_minimumAmount.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/03_minimumAmount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "217e4ce6-7f0f-4807-9a62-c57220e09e05", + "parentUUID": "34deb07e-d22d-4e6f-a075-832cc73dfd96", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b794f666-aa80-4085-8dec-d4ff4819bc5b", + "parentUUID": "34deb07e-d22d-4e6f-a075-832cc73dfd96", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4764e613-f1d9-4e05-9d57-89866c8f6225", + "parentUUID": "34deb07e-d22d-4e6f-a075-832cc73dfd96", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3618, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b04f5a4e-b210-4e00-ab41-7b490c0581d6", + "parentUUID": "34deb07e-d22d-4e6f-a075-832cc73dfd96", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77bff8be-d219-4995-8e5b-e6e6f588887d", + "parentUUID": "34deb07e-d22d-4e6f-a075-832cc73dfd96", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afd71553-971d-4793-9358-55e3a1abbaed", + "parentUUID": "34deb07e-d22d-4e6f-a075-832cc73dfd96", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Minimum amount POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_minimumAmount_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05adaf36-0320-4c90-ba7a-ce7f6b70c64c", + "parentUUID": "34deb07e-d22d-4e6f-a075-832cc73dfd96", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4764e613-f1d9-4e05-9d57-89866c8f6225", + "b04f5a4e-b210-4e00-ab41-7b490c0581d6", + "77bff8be-d219-4995-8e5b-e6e6f588887d", + "afd71553-971d-4793-9358-55e3a1abbaed", + "05adaf36-0320-4c90-ba7a-ce7f6b70c64c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11286, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e0e0437b-d534-49d8-a765-d216d7015ac6", + "title": "BO - Catalog - Cart rules : Check Total available", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Check Total available\"", + "fullTitle": "BO - Catalog - Cart rules : Check Total available \"before all\" hook in \"BO - Catalog - Cart rules : Check Total available\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "812ba143-083f-43f3-8f4b-2c3db28b7a9f", + "parentUUID": "e0e0437b-d534-49d8-a765-d216d7015ac6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Check Total available\"", + "fullTitle": "BO - Catalog - Cart rules : Check Total available \"after all\" hook in \"BO - Catalog - Cart rules : Check Total available\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c0b07062-07c3-420b-81f2-67457fef403a", + "parentUUID": "e0e0437b-d534-49d8-a765-d216d7015ac6", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c6d8b0ec-699c-4152-9625-4b902246ccb4", + "title": "BO : Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Check Total available BO : Create cart rule should login in BO", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fa3231c-ead1-458d-acf1-c9d2b06e70c9", + "parentUUID": "c6d8b0ec-699c-4152-9625-4b902246ccb4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available BO : Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9c0c309-1078-4df7-9854-eec1f42c3c76", + "parentUUID": "c6d8b0ec-699c-4152-9625-4b902246ccb4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available BO : Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75073c82-d2da-4d68-9056-e27d3d3f4c5e", + "parentUUID": "c6d8b0ec-699c-4152-9625-4b902246ccb4", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : Check Total available BO : Create cart rule should create cart rule", + "timedOut": false, + "duration": 3725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleCode)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "916069ae-c74b-4830-a0ef-5ef562761f75", + "parentUUID": "c6d8b0ec-699c-4152-9625-4b902246ccb4", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : Check Total available BO : Create cart rule should view my shop", + "timedOut": false, + "duration": 1662, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6219cc44-5965-407e-b39d-bc7ae5ab6a5b", + "parentUUID": "c6d8b0ec-699c-4152-9625-4b902246ccb4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4fa3231c-ead1-458d-acf1-c9d2b06e70c9", + "f9c0c309-1078-4df7-9854-eec1f42c3c76", + "75073c82-d2da-4d68-9056-e27d3d3f4c5e", + "916069ae-c74b-4830-a0ef-5ef562761f75", + "6219cc44-5965-407e-b39d-bc7ae5ab6a5b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11518, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "title": "FO : Check the created cart rule 'for the first time'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should go to the first product page", + "timedOut": false, + "duration": 778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_goToFirstProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "feb90852-9b68-49dd-92a0-aea28de6f25d", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "faf260f9-2df6-4604-af42-a7b4d9a2408f", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should set the promo code", + "timedOut": false, + "duration": 1459, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_addPromoCode0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPromoCode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, cartRuleCode.code)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf58725e-8040-4692-9d49-ed02737223d6", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total after discount", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should verify the total after discount", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_verifyTotalAfterDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountedPrice, _a, totalAfterDiscount;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyTotalAfterDiscount', baseContext)];\n case 1:\n _b.sent();\n _a = products_1.default.demo_1.finalPrice;\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_1.finalPrice, cartRuleCode.discountPercent)];\n case 2:\n discountedPrice = _a - (_b.sent());\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 3:\n totalAfterDiscount = _b.sent();\n (0, chai_1.expect)(totalAfterDiscount).to.equal(parseFloat(discountedPrice.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c17ba00c-eb7b-41fc-9653-fd215f109de1", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should proceed to checkout", + "timedOut": false, + "duration": 217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckout;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckout = _a.sent();\n (0, chai_1.expect)(isCheckout).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8059a8ed-7263-4e5f-aacd-0f82544defb9", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by default customer", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should sign in by default customer", + "timedOut": false, + "duration": 1070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "132a7480-4583-4f68-9c59-4053f4ea9af5", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery address step", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should go to delivery address step", + "timedOut": false, + "duration": 292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_confirmAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryStep;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isDeliveryStep = _a.sent();\n (0, chai_1.expect)(isDeliveryStep, 'Delivery Step boc is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c48e1c03-503b-44f4-a66a-7700fc2fb6b4", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the shipping method", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should choose the shipping method", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_shippingMethodStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPaymentStep;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'shippingMethodStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isPaymentStep = _a.sent();\n (0, chai_1.expect)(isPaymentStep, 'Payment Step bloc is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d41f14da-9d96-47d7-b839-c1311a8d4870", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the payment type and confirm the order", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should choose the payment type and confirm the order", + "timedOut": false, + "duration": 1516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_choosePaymentMethod\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'choosePaymentMethod', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f781bb27-47d5-4412-8381-166edfcc4c99", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the logo of the shop", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the first time' should click on the logo of the shop", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_checkLogoLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLogoLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Logo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9461aadb-36cb-40bc-a991-8278b77419a5", + "parentUUID": "b1df0e12-e28f-474b-99ca-3ba2f277f099", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "feb90852-9b68-49dd-92a0-aea28de6f25d", + "faf260f9-2df6-4604-af42-a7b4d9a2408f", + "bf58725e-8040-4692-9d49-ed02737223d6", + "c17ba00c-eb7b-41fc-9653-fd215f109de1", + "8059a8ed-7263-4e5f-aacd-0f82544defb9", + "132a7480-4583-4f68-9c59-4053f4ea9af5", + "c48e1c03-503b-44f4-a66a-7700fc2fb6b4", + "d41f14da-9d96-47d7-b839-c1311a8d4870", + "f781bb27-47d5-4412-8381-166edfcc4c99", + "9461aadb-36cb-40bc-a991-8278b77419a5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14612, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7b81c5d5-82f6-4724-91b3-cb6989483b5f", + "title": "FO : Check the created cart rule 'for the second time'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the second time' should go to the first product page", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "991ce24f-18c7-4d8c-873f-bbe0da9cdf6f", + "parentUUID": "7b81c5d5-82f6-4724-91b3-cb6989483b5f", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the second time' should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05453013-ef78-40b0-9efb-1b2bea5b496c", + "parentUUID": "7b81c5d5-82f6-4724-91b3-cb6989483b5f", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the second time' should set the promo code", + "timedOut": false, + "duration": 1459, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_addPromoCode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPromoCode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, cartRuleCode.code)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5edee8d7-97a5-4291-bc64-2297f584f7ea", + "parentUUID": "7b81c5d5-82f6-4724-91b3-cb6989483b5f", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the same created voucher and check the error message", + "fullTitle": "BO - Catalog - Cart rules : Check Total available FO : Check the created cart rule 'for the second time' should search for the same created voucher and check the error message", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_searchExistingVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherErrorText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchExistingVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleErrorMessage(page)];\n case 2:\n voucherErrorText = _a.sent();\n (0, chai_1.expect)(voucherErrorText).to.equal(cart_1.cartPage.cartRuleAlreadyUsedErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bb45e81-4723-4a22-ad32-aa9e6715d6c9", + "parentUUID": "7b81c5d5-82f6-4724-91b3-cb6989483b5f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "991ce24f-18c7-4d8c-873f-bbe0da9cdf6f", + "05453013-ef78-40b0-9efb-1b2bea5b496c", + "5edee8d7-97a5-4291-bc64-2297f584f7ea", + "6bb45e81-4723-4a22-ad32-aa9e6715d6c9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7927, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ad8d7d21-edf0-4599-877b-5588c9f29694", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/04_checkTotalAvailable.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Check Total available POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8122a732-5871-4f9c-b48b-2430b246fd96", + "parentUUID": "ad8d7d21-edf0-4599-877b-5588c9f29694", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Check Total available POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bb12f57d-699b-41c7-884e-f8c5edd8ebe1", + "parentUUID": "ad8d7d21-edf0-4599-877b-5588c9f29694", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Check Total available POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1be40609-5244-4078-b1b0-d5b0563648f6", + "parentUUID": "ad8d7d21-edf0-4599-877b-5588c9f29694", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3612, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51bdc0ea-6790-4d25-9a01-e543b059c99d", + "parentUUID": "ad8d7d21-edf0-4599-877b-5588c9f29694", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Check Total available POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74a4155e-764b-4407-ad63-16ce5536d06e", + "parentUUID": "ad8d7d21-edf0-4599-877b-5588c9f29694", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Check Total available POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f41a7a73-da75-469d-877a-4ae2beacd2c0", + "parentUUID": "ad8d7d21-edf0-4599-877b-5588c9f29694", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Check Total available POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailable_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d94296a6-3e9f-44b9-923a-af1b3112917c", + "parentUUID": "ad8d7d21-edf0-4599-877b-5588c9f29694", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1be40609-5244-4078-b1b0-d5b0563648f6", + "51bdc0ea-6790-4d25-9a01-e543b059c99d", + "74a4155e-764b-4407-ad63-16ce5536d06e", + "f41a7a73-da75-469d-877a-4ae2beacd2c0", + "d94296a6-3e9f-44b9-923a-af1b3112917c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11298, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ca1e7e37-d97a-40ec-98a2-1d3a72f91cf9", + "title": "BO - Catalog - Cart rules : Check Total available for each user", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Check Total available for each user\"", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user \"before all\" hook in \"BO - Catalog - Cart rules : Check Total available for each user\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0135267f-109c-4499-a785-c9db79046ca8", + "parentUUID": "ca1e7e37-d97a-40ec-98a2-1d3a72f91cf9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Check Total available for each user\"", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user \"after all\" hook in \"BO - Catalog - Cart rules : Check Total available for each user\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d0d99b05-f93e-4502-8db2-8a9ee0721d32", + "parentUUID": "ca1e7e37-d97a-40ec-98a2-1d3a72f91cf9", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c2e7de07-42a1-4683-8bd7-caeef105540f", + "title": "BO : Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user BO : Create cart rule should login in BO", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc3ee99a-519c-4aa2-bed0-af04112b183d", + "parentUUID": "c2e7de07-42a1-4683-8bd7-caeef105540f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user BO : Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce68a2e4-6455-4c3d-a317-55419a877094", + "parentUUID": "c2e7de07-42a1-4683-8bd7-caeef105540f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user BO : Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "553f1283-7753-4023-906c-d95de8f86bd2", + "parentUUID": "c2e7de07-42a1-4683-8bd7-caeef105540f", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user BO : Create cart rule should create cart rule", + "timedOut": false, + "duration": 3770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, newCartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e37bedc7-aab5-4c94-a6cd-844ad8a70061", + "parentUUID": "c2e7de07-42a1-4683-8bd7-caeef105540f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user BO : Create cart rule should view my shop", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ca627bb-c419-4d37-9fbc-1fff8816c62d", + "parentUUID": "c2e7de07-42a1-4683-8bd7-caeef105540f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cc3ee99a-519c-4aa2-bed0-af04112b183d", + "ce68a2e4-6455-4c3d-a317-55419a877094", + "553f1283-7753-4023-906c-d95de8f86bd2", + "e37bedc7-aab5-4c94-a6cd-844ad8a70061", + "2ca627bb-c419-4d37-9fbc-1fff8816c62d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11570, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "title": "FO : Check the created cart rule 'for the first time by default customer'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should go to the first product page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_goToFirstProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4018400b-5cb3-4173-9376-fc45e139fbc7", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c6c6458-bbae-4002-aa3e-25730007ce7c", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should set the promo code", + "timedOut": false, + "duration": 1464, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_addPromoCode0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPromoCode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ca3c13b-dbd7-4979-9703-fe1f1c83e6b9", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the total after discount", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should verify the total after discount", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_verifyTotalAfterDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountedPrice, _a, totalAfterDiscount;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyTotalAfterDiscount', baseContext)];\n case 1:\n _b.sent();\n _a = products_1.default.demo_1.finalPrice;\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_1.finalPrice, newCartRuleData.discountPercent)];\n case 2:\n discountedPrice = _a - (_b.sent());\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 3:\n totalAfterDiscount = _b.sent();\n (0, chai_1.expect)(totalAfterDiscount).to.equal(parseFloat(discountedPrice.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd00488d-e5ea-489f-a2e8-440791deb2fc", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should proceed to checkout", + "timedOut": false, + "duration": 225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_ProceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckout;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ProceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckout = _a.sent();\n (0, chai_1.expect)(isCheckout).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04f2e57b-fc2a-413d-bef1-d9ea94fb0a4f", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by default customer", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should sign in by default customer", + "timedOut": false, + "duration": 1056, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "950d7959-577b-4335-be0a-d413552fea81", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery address step", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should go to delivery address step", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_confirmAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryStep;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isDeliveryStep = _a.sent();\n (0, chai_1.expect)(isDeliveryStep, 'Delivery Step boc is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f286306-9d56-4bad-adf4-ded91f053c40", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the shipping method", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should choose the shipping method", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_shippingMethodStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPaymentStep;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'shippingMethodStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isPaymentStep = _a.sent();\n (0, chai_1.expect)(isPaymentStep, 'Payment Step bloc is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66ad92b2-748f-4ee3-9f3f-234ec71cbd0f", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the payment type and confirm the order", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should choose the payment type and confirm the order", + "timedOut": false, + "duration": 1526, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_choosePaymentMethod\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'choosePaymentMethod', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1dc6075-b97c-4fe7-b245-c461e8ba69f6", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the first time by default customer' should go to home page", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Logo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54f7207d-7a61-4e09-b9f1-46771cb8afb6", + "parentUUID": "e74b9ff4-6374-41b0-ae45-6492d2b62ced", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4018400b-5cb3-4173-9376-fc45e139fbc7", + "9c6c6458-bbae-4002-aa3e-25730007ce7c", + "7ca3c13b-dbd7-4979-9703-fe1f1c83e6b9", + "cd00488d-e5ea-489f-a2e8-440791deb2fc", + "04f2e57b-fc2a-413d-bef1-d9ea94fb0a4f", + "950d7959-577b-4335-be0a-d413552fea81", + "9f286306-9d56-4bad-adf4-ded91f053c40", + "66ad92b2-748f-4ee3-9f3f-234ec71cbd0f", + "f1dc6075-b97c-4fe7-b245-c461e8ba69f6", + "54f7207d-7a61-4e09-b9f1-46771cb8afb6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14630, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6a5ab12d-e478-41e7-8fb2-aff89c4a498e", + "title": "FO : Check the created cart rule 'for the second time by default customer'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the second time by default customer' should go to the first product page", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "713e372a-3e0c-40cb-8e96-9378fee7a3f7", + "parentUUID": "6a5ab12d-e478-41e7-8fb2-aff89c4a498e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the second time by default customer' should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab206d96-10b0-4a81-8d6d-a93c817d2fcf", + "parentUUID": "6a5ab12d-e478-41e7-8fb2-aff89c4a498e", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the second time by default customer' should set the promo code", + "timedOut": false, + "duration": 1468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_addPromoCode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPromoCode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a75302e-d50a-47e9-b24f-15188ef2e389", + "parentUUID": "6a5ab12d-e478-41e7-8fb2-aff89c4a498e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the promo code error message", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the second time by default customer' should check the promo code error message", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_checkErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherErrorText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleErrorMessage(page)];\n case 2:\n voucherErrorText = _a.sent();\n (0, chai_1.expect)(voucherErrorText).to.equal(cart_1.cartPage.cartRuleLimitUsageErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "624a0564-bdd3-4d35-9ee7-84de207ab5fc", + "parentUUID": "6a5ab12d-e478-41e7-8fb2-aff89c4a498e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the second time by default customer' should sign out", + "timedOut": false, + "duration": 1959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_signOut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.clickOnHeaderLink(page, 'Logo')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fe2d1bf-e787-452a-872d-74eb5a982b13", + "parentUUID": "6a5ab12d-e478-41e7-8fb2-aff89c4a498e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "713e372a-3e0c-40cb-8e96-9378fee7a3f7", + "ab206d96-10b0-4a81-8d6d-a93c817d2fcf", + "1a75302e-d50a-47e9-b24f-15188ef2e389", + "624a0564-bdd3-4d35-9ee7-84de207ab5fc", + "2fe2d1bf-e787-452a-872d-74eb5a982b13" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9867, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "04e2c6b2-c40b-4ea9-9d9f-8aa2c12dc9b4", + "title": "FO : Check the created cart rule 'for the third time without sign in'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the third time without sign in' should go to the first product page", + "timedOut": false, + "duration": 743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_goToFirstProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c61dd3ad-65c9-44e0-a7ad-18bba478e534", + "parentUUID": "04e2c6b2-c40b-4ea9-9d9f-8aa2c12dc9b4", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the third time without sign in' should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5656, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "550c6504-9e63-4b67-a883-88eece58992c", + "parentUUID": "04e2c6b2-c40b-4ea9-9d9f-8aa2c12dc9b4", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the third time without sign in' should set the promo code", + "timedOut": false, + "duration": 1466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_addPromoCode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPromoCode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c7a8c02-aaec-41f8-a082-7851705ad82d", + "parentUUID": "04e2c6b2-c40b-4ea9-9d9f-8aa2c12dc9b4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the promo code is applied to the cart", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the third time without sign in' should check that the promo code is applied to the cart", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_checkPromoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountedPrice, _a, totalAfterDiscount;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPromoCode', baseContext)];\n case 1:\n _b.sent();\n _a = products_1.default.demo_1.finalPrice;\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_1.finalPrice, newCartRuleData.discountPercent)];\n case 2:\n discountedPrice = _a - (_b.sent());\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 3:\n totalAfterDiscount = _b.sent();\n (0, chai_1.expect)(totalAfterDiscount).to.equal(parseFloat(discountedPrice.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebf514b1-46f3-4410-bf17-641df343042f", + "parentUUID": "04e2c6b2-c40b-4ea9-9d9f-8aa2c12dc9b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the last product from the cart", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user FO : Check the created cart rule 'for the third time without sign in' should delete the last product from the cart", + "timedOut": false, + "duration": 2041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_deleteLastProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLastProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7961dee3-606b-4c7d-8cc8-4de5f8b98ebb", + "parentUUID": "04e2c6b2-c40b-4ea9-9d9f-8aa2c12dc9b4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c61dd3ad-65c9-44e0-a7ad-18bba478e534", + "550c6504-9e63-4b67-a883-88eece58992c", + "2c7a8c02-aaec-41f8-a082-7851705ad82d", + "ebf514b1-46f3-4410-bf17-641df343042f", + "7961dee3-606b-4c7d-8cc8-4de5f8b98ebb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11915, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d5d3ee5d-1080-4606-85e3-199b85e347a1", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/05_checkTotalAvailableForEachUser.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c2ff106-91d4-4208-930e-41f38a7bec51", + "parentUUID": "d5d3ee5d-1080-4606-85e3-199b85e347a1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ca3d4966-4f34-4a30-a835-d4d38f66db0a", + "parentUUID": "d5d3ee5d-1080-4606-85e3-199b85e347a1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f33c90c-4547-4c5e-8e73-7b3deea7fc56", + "parentUUID": "d5d3ee5d-1080-4606-85e3-199b85e347a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53d2fd19-68b1-4383-86f9-6dc7320521a2", + "parentUUID": "d5d3ee5d-1080-4606-85e3-199b85e347a1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b60b9d8b-932f-4fed-9ffd-fe7aa3db7978", + "parentUUID": "d5d3ee5d-1080-4606-85e3-199b85e347a1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7113b466-c537-42ad-975b-509372f79ad2", + "parentUUID": "d5d3ee5d-1080-4606-85e3-199b85e347a1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Check Total available for each user POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_checkTotalAvailableForEachUser_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76cc476d-ecad-4273-8dcf-dc04e94fc322", + "parentUUID": "d5d3ee5d-1080-4606-85e3-199b85e347a1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8f33c90c-4547-4c5e-8e73-7b3deea7fc56", + "53d2fd19-68b1-4383-86f9-6dc7320521a2", + "b60b9d8b-932f-4fed-9ffd-fe7aa3db7978", + "7113b466-c537-42ad-975b-509372f79ad2", + "76cc476d-ecad-4273-8dcf-dc04e94fc322" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11289, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c4ebfbf4-e40e-4cab-9f6a-47d01cb834e7", + "title": "BO - Catalog - Cart rules : Country selection", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Country selection\"", + "fullTitle": "BO - Catalog - Cart rules : Country selection \"before all\" hook in \"BO - Catalog - Cart rules : Country selection\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f96ab948-e154-4411-9b21-ae4afcb33eb6", + "parentUUID": "c4ebfbf4-e40e-4cab-9f6a-47d01cb834e7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Country selection\"", + "fullTitle": "BO - Catalog - Cart rules : Country selection \"after all\" hook in \"BO - Catalog - Cart rules : Country selection\"", + "timedOut": false, + "duration": 17, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "777a0fea-731d-424b-b115-a069ecc36bde", + "parentUUID": "c4ebfbf4-e40e-4cab-9f6a-47d01cb834e7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Country selection should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "083452ea-d226-4160-9d0c-e4fc462260e8", + "parentUUID": "c4ebfbf4-e40e-4cab-9f6a-47d01cb834e7", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "576a496a-dcc5-4dda-ad1a-2bc4d03e7ed0", + "title": "BO : Enable the country 'United States'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Enable the country 'United States' should go to 'International > Locations' page", + "timedOut": false, + "duration": 5134, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43439896-cffb-42c8-88c5-217d4af8fb38", + "parentUUID": "576a496a-dcc5-4dda-ad1a-2bc4d03e7ed0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Enable the country 'United States' should go to 'Countries' page", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_goToCountriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fd2812b-2545-474a-bb21-9f42fa220e8d", + "parentUUID": "576a496a-dcc5-4dda-ad1a-2bc4d03e7ed0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of countries in BO", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Enable the country 'United States' should reset all filters and get number of countries in BO", + "timedOut": false, + "duration": 32, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountries;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38423acd-4d2a-460d-a7f1-c3fb749010e9", + "parentUUID": "576a496a-dcc5-4dda-ad1a-2bc4d03e7ed0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the country 'United States'", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Enable the country 'United States' should search for the country 'United States'", + "timedOut": false, + "duration": 955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_filterByNameToEnable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByNameToEnable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'b!name', countries_2.default.unitedStates.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(countries_2.default.unitedStates.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f278c055-bdb8-46ea-961a-2a5387a3fb74", + "parentUUID": "576a496a-dcc5-4dda-ad1a-2bc4d03e7ed0", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the country", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Enable the country 'United States' should enable the country", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_verifyTheCountryStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyTheCountryStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.setCountryStatus(page, 1, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee5cccbc-73de-494c-9739-598bf78289ed", + "parentUUID": "576a496a-dcc5-4dda-ad1a-2bc4d03e7ed0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Enable the country 'United States' should reset filter", + "timedOut": false, + "duration": 2911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_resetFilterCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterCountry', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "611edad2-55cf-43f5-95f9-2b4764c83ed6", + "parentUUID": "576a496a-dcc5-4dda-ad1a-2bc4d03e7ed0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "43439896-cffb-42c8-88c5-217d4af8fb38", + "8fd2812b-2545-474a-bb21-9f42fa220e8d", + "38423acd-4d2a-460d-a7f1-c3fb749010e9", + "f278c055-bdb8-46ea-961a-2a5387a3fb74", + "ee5cccbc-73de-494c-9739-598bf78289ed", + "611edad2-55cf-43f5-95f9-2b4764c83ed6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9919, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8ebbce52-8aaa-4fcd-a939-c841b894ff76", + "title": "BO : Create new cart rule with country restriction", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Create new cart rule with country restriction should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3593, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77533e05-62e3-4a5c-880e-e40e74580b8b", + "parentUUID": "8ebbce52-8aaa-4fcd-a939-c841b894ff76", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Create new cart rule with country restriction should go to new cart rule page", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a74c8311-d3e0-4d69-9db0-fdda1ed92cea", + "parentUUID": "8ebbce52-8aaa-4fcd-a939-c841b894ff76", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : Country selection BO : Create new cart rule with country restriction should create cart rule", + "timedOut": false, + "duration": 3936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRule)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afa435c6-42f5-494d-a6fd-b12b7c1de561", + "parentUUID": "8ebbce52-8aaa-4fcd-a939-c841b894ff76", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "77533e05-62e3-4a5c-880e-e40e74580b8b", + "a74c8311-d3e0-4d69-9db0-fdda1ed92cea", + "afa435c6-42f5-494d-a6fd-b12b7c1de561" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8330, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "18b7f454-8f95-479b-988b-64a821473bc5", + "title": "FO : Check the created cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should view my shop", + "timedOut": false, + "duration": 1661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "487954a9-35f4-4e60-a449-94dae0196f47", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the third product page", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should go to the third product page", + "timedOut": false, + "duration": 852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_goToFirstProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 3)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_6.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71453942-563a-4357-9a52-fd1a5a4bf275", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54b91580-a214-420a-b311-1599bb838ef9", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code and verify the error message", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should set the promo code and verify the error message", + "timedOut": false, + "duration": 1476, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_addPromoCode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var chooseDeliveryAddressNotification;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPromoCode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, cartRule.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getAlertWarningForPromoCode(page)];\n case 3:\n chooseDeliveryAddressNotification = _a.sent();\n (0, chai_1.expect)(chooseDeliveryAddressNotification).to.equal(cart_1.cartPage.alertChooseDeliveryAddressWarningText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69eabe93-af1d-4b31-a55e-e89a25c8a8d3", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should proceed to checkout", + "timedOut": false, + "duration": 200, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_proceedToCheckoutAndSignIn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckout;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckoutAndSignIn', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckout = _a.sent();\n (0, chai_1.expect)(isCheckout).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04401b04-27e3-4d86-b438-202329b4cbe2", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by the default customer", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should sign in by the default customer", + "timedOut": false, + "duration": 1058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4fe5c0e-3ccf-424b-9511-3c9f1845af3e", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the delivery address", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should choose the delivery address", + "timedOut": false, + "duration": 343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_chooseAndConfirmAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryStep;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseAndConfirmAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseDeliveryAddress(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isDeliveryStep = _a.sent();\n (0, chai_1.expect)(isDeliveryStep, 'Delivery Step block is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35039628-b80b-429b-8809-96d53f32326e", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should set the promo code", + "timedOut": false, + "duration": 677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_addPromoCode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPromoCode2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.addPromoCode(page, cartRule.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getCartRuleName(page, 1)];\n case 3:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.equal(cartRule.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "521a9d8f-61b2-466e-9aba-79237df717fe", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the total after discount", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should check the total after discount", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_checkTotalAfterDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalAfterDiscount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalAfterDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getATIPrice(page)];\n case 2:\n totalAfterDiscount = _a.sent();\n (0, chai_1.expect)(totalAfterDiscount).to.eq(products_1.default.demo_6.price - cartRule.discountAmount.value + carriers_1.default.myCarrier.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b92b8d4f-f17a-42ff-bf58-59c53595c84c", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the discount", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should remove the discount", + "timedOut": false, + "duration": 216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_removeTheDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeleteIconNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeTheDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.removePromoCode(page)];\n case 2:\n isDeleteIconNotVisible = _a.sent();\n (0, chai_1.expect)(isDeleteIconNotVisible, 'The discount is not removed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efd2c262-b851-49b5-968d-659fe60fe8ef", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Home page", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should go to Home page", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_checkLogoLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLogoLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Logo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afd38d48-1165-4403-b8c1-26a65f4d2003", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to cart page and remove product", + "fullTitle": "BO - Catalog - Cart rules : Country selection FO : Check the created cart rule should go to cart page and remove product", + "timedOut": false, + "duration": 2786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_removeProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCartPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2befed8a-e08b-4500-83e4-92786738e635", + "parentUUID": "18b7f454-8f95-479b-988b-64a821473bc5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "487954a9-35f4-4e60-a449-94dae0196f47", + "71453942-563a-4357-9a52-fd1a5a4bf275", + "54b91580-a214-420a-b311-1599bb838ef9", + "69eabe93-af1d-4b31-a55e-e89a25c8a8d3", + "04401b04-27e3-4d86-b438-202329b4cbe2", + "c4fe5c0e-3ccf-424b-9511-3c9f1845af3e", + "35039628-b80b-429b-8809-96d53f32326e", + "521a9d8f-61b2-466e-9aba-79237df717fe", + "b92b8d4f-f17a-42ff-bf58-59c53595c84c", + "efd2c262-b851-49b5-968d-659fe60fe8ef", + "afd38d48-1165-4403-b8c1-26a65f4d2003", + "2befed8a-e08b-4500-83e4-92786738e635" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17633, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2b676b53-bc94-4b64-8041-1559502066b2", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/06_countrySelection.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Country selection POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9d5fb38-33e7-417f-9b91-bb653dd50709", + "parentUUID": "2b676b53-bc94-4b64-8041-1559502066b2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Country selection POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "69bf19ec-de98-44b2-8959-8ca56cf69e79", + "parentUUID": "2b676b53-bc94-4b64-8041-1559502066b2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Country selection POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f43ecd22-d14a-4ff6-a713-7a5a98bc8a8d", + "parentUUID": "2b676b53-bc94-4b64-8041-1559502066b2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Country selection POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3617, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f6ac6c5-7e0d-4773-a8b5-5473f4a5224c", + "parentUUID": "2b676b53-bc94-4b64-8041-1559502066b2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Country selection POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31807c0c-a044-43b5-96b3-a42fe597d20f", + "parentUUID": "2b676b53-bc94-4b64-8041-1559502066b2", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Country selection POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2272489f-7efe-42d7-adf7-51e7fc561e42", + "parentUUID": "2b676b53-bc94-4b64-8041-1559502066b2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Country selection POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_countrySelection_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70c73716-b052-4142-a809-fa777c9b399a", + "parentUUID": "2b676b53-bc94-4b64-8041-1559502066b2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f43ecd22-d14a-4ff6-a713-7a5a98bc8a8d", + "5f6ac6c5-7e0d-4773-a8b5-5473f4a5224c", + "31807c0c-a044-43b5-96b3-a42fe597d20f", + "2272489f-7efe-42d7-adf7-51e7fc561e42", + "70c73716-b052-4142-a809-fa777c9b399a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11255, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "083452ea-d226-4160-9d0c-e4fc462260e8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1731, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6004e354-1352-448e-8816-7af877b7eb95", + "title": "BO - Catalog - Cart rules : Carrier selection", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/07_carrierSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/07_carrierSelection.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Carrier selection\"", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection \"before all\" hook in \"BO - Catalog - Cart rules : Carrier selection\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f14b4867-c1c4-45d8-b6ea-95922ba1afda", + "parentUUID": "6004e354-1352-448e-8816-7af877b7eb95", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Carrier selection\"", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection \"after all\" hook in \"BO - Catalog - Cart rules : Carrier selection\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3344eb3a-bd7d-4ca5-a6d7-26ae6c6adea2", + "parentUUID": "6004e354-1352-448e-8816-7af877b7eb95", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5f9f3a34-ea7a-4da6-838a-6fa08450ebbe", + "title": "BO : Create new cart rule with carrier restriction", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/07_carrierSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/07_carrierSelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection BO : Create new cart rule with carrier restriction should login in BO", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "627e7583-0505-4427-b538-87d9a205e129", + "parentUUID": "5f9f3a34-ea7a-4da6-838a-6fa08450ebbe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection BO : Create new cart rule with carrier restriction should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3611, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0814271-0454-497f-9f4f-6b5f80ee5cd4", + "parentUUID": "5f9f3a34-ea7a-4da6-838a-6fa08450ebbe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection BO : Create new cart rule with carrier restriction should go to new cart rule page", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18a48fe3-a93c-4617-8a13-0a2cc96849c6", + "parentUUID": "5f9f3a34-ea7a-4da6-838a-6fa08450ebbe", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection BO : Create new cart rule with carrier restriction should create cart rule", + "timedOut": false, + "duration": 4334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, newCartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17659dbd-5f0e-4b94-b6d0-d8b51a95d1c6", + "parentUUID": "5f9f3a34-ea7a-4da6-838a-6fa08450ebbe", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection BO : Create new cart rule with carrier restriction should view my shop", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36b6a546-5693-4659-9114-48666a502429", + "parentUUID": "5f9f3a34-ea7a-4da6-838a-6fa08450ebbe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "627e7583-0505-4427-b538-87d9a205e129", + "e0814271-0454-497f-9f4f-6b5f80ee5cd4", + "18a48fe3-a93c-4617-8a13-0a2cc96849c6", + "17659dbd-5f0e-4b94-b6d0-d8b51a95d1c6", + "36b6a546-5693-4659-9114-48666a502429" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12205, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "title": "FO : Check the created cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/07_carrierSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/07_carrierSelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the third product page", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should go to the third product page", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_goToFirstProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 3)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_6.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad59ba80-79e3-45bd-b1d1-a50b678809fa", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5453, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45f1767e-c0b4-4aa4-b0e2-db80e667b081", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should add the promo code and check the error message", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should add the promo code and check the error message", + "timedOut": false, + "duration": 1469, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_checkErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleErrorMessage(page)];\n case 3:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.equal(cart_1.cartPage.cartRuleChooseCarrierAlertMessageText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d6ede23-e2b1-4d53-ade7-769067672cd6", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should proceed to checkout", + "timedOut": false, + "duration": 206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckout;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckout = _a.sent();\n (0, chai_1.expect)(isCheckout).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25a0655c-970c-43a5-8793-157273b6cf4d", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by default customer", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should sign in by default customer", + "timedOut": false, + "duration": 1079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "353255ab-99c8-4797-bfae-0179205a619a", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should go to delivery step", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_confirmAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryStep;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isDeliveryStep = _a.sent();\n (0, chai_1.expect)(isDeliveryStep, 'Delivery Step block is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6e1b625-780c-4ed4-86c1-6270038b193b", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code and choose the wrong shipping method", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should set the promo code and choose the wrong shipping method", + "timedOut": false, + "duration": 1433, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_chooseWrongShippingMethod\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorShippingMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseWrongShippingMethod', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethodAndAddComment(page, carriers_1.default.default.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.addPromoCode(page, newCartRuleData.code)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getCartRuleErrorMessage(page)];\n case 4:\n errorShippingMessage = _a.sent();\n (0, chai_1.expect)(errorShippingMessage).to.equal(cart_1.cartPage.cartRuleCannotUseVoucherAlertMessageText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d36afeb-f7a9-42a6-8177-468e321c8c85", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the restricted shipping method and continue", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should choose the restricted shipping method and continue", + "timedOut": false, + "duration": 3314, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_chooseShippingMethod\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceATI;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseShippingMethod', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToShippingStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethodAndAddComment(page, carriers_1.default.myCarrier.id)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getATIPrice(page)];\n case 4:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI.toFixed(2))\n .to.equal((products_1.default.demo_6.combinations[0].price + carriers_1.default.myCarrier.priceTTC).toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0c8aa32-886c-4814-8df8-7a535b6d1705", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should set the promo code for second time and check total after discount", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should set the promo code for second time and check total after discount", + "timedOut": false, + "duration": 2477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_setPromoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalAfterDiscount, priceATI;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPromoCode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n totalAfterDiscount = products_1.default.demo_6.combinations[0].price\n - newCartRuleData.discountAmount.value + carriers_1.default.myCarrier.priceTTC;\n return [4 /*yield*/, checkout_1.default.getATIPrice(page)];\n case 3:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI.toFixed(2)).to.equal(totalAfterDiscount.toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a71ca0e-8103-49f6-a481-5e74e553aa76", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Home page", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should go to Home page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Logo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ed7747b-06e3-4410-bb29-6e031f1dee29", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + }, + { + "title": "should go to cart page and delete the product", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection FO : Check the created cart rule should go to cart page and delete the product", + "timedOut": false, + "duration": 2843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCartPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11c56813-a082-43e6-af9f-3e394a2b5c48", + "parentUUID": "e9321c06-7e0b-44df-a8e5-1201f131a688", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ad59ba80-79e3-45bd-b1d1-a50b678809fa", + "45f1767e-c0b4-4aa4-b0e2-db80e667b081", + "3d6ede23-e2b1-4d53-ade7-769067672cd6", + "25a0655c-970c-43a5-8793-157273b6cf4d", + "353255ab-99c8-4797-bfae-0179205a619a", + "f6e1b625-780c-4ed4-86c1-6270038b193b", + "0d36afeb-f7a9-42a6-8177-468e321c8c85", + "b0c8aa32-886c-4814-8df8-7a535b6d1705", + "9a71ca0e-8103-49f6-a481-5e74e553aa76", + "3ed7747b-06e3-4410-bb29-6e031f1dee29", + "11c56813-a082-43e6-af9f-3e394a2b5c48" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20154, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "70fc4aeb-7c26-45f1-8b4b-d9722e7a97bb", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/07_carrierSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/07_carrierSelection.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b84d455b-c6a0-4ee1-8ba6-c86b11d1184a", + "parentUUID": "70fc4aeb-7c26-45f1-8b4b-d9722e7a97bb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "01eb8957-cd82-424d-bc41-af8dc65924a9", + "parentUUID": "70fc4aeb-7c26-45f1-8b4b-d9722e7a97bb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b9f3e44-7275-4334-9958-140610d2c38a", + "parentUUID": "70fc4aeb-7c26-45f1-8b4b-d9722e7a97bb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b39c3c9b-f3b6-4859-8fb2-8639c5304df6", + "parentUUID": "70fc4aeb-7c26-45f1-8b4b-d9722e7a97bb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d10e1d6-25d8-4171-b0a0-779eb6fabca6", + "parentUUID": "70fc4aeb-7c26-45f1-8b4b-d9722e7a97bb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fbbcc22-4704-420f-a34a-f889a711c66c", + "parentUUID": "70fc4aeb-7c26-45f1-8b4b-d9722e7a97bb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Carrier selection POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_carrierSelection_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9de171f1-7759-48a6-86cf-7418bf493c77", + "parentUUID": "70fc4aeb-7c26-45f1-8b4b-d9722e7a97bb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b9f3e44-7275-4334-9958-140610d2c38a", + "b39c3c9b-f3b6-4859-8fb2-8639c5304df6", + "1d10e1d6-25d8-4171-b0a0-779eb6fabca6", + "5fbbcc22-4704-420f-a34a-f889a711c66c", + "9de171f1-7759-48a6-86cf-7418bf493c77" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11304, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "92828cff-a43a-4fb8-b599-cc2d55246e38", + "title": "BO - Catalog - Cart rules : Customer Group selection", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/08_customerGroupSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/08_customerGroupSelection.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Customer Group selection\"", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection \"before all\" hook in \"BO - Catalog - Cart rules : Customer Group selection\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28158e1a-73bb-4c71-904f-445e0b1aa8f6", + "parentUUID": "92828cff-a43a-4fb8-b599-cc2d55246e38", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Customer Group selection\"", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection \"after all\" hook in \"BO - Catalog - Cart rules : Customer Group selection\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0cc4e0dc-6997-4d7b-8bba-88094464fd27", + "parentUUID": "92828cff-a43a-4fb8-b599-cc2d55246e38", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "42fe9b3e-825a-4d54-87b2-83885e451543", + "title": "B0 : Create new cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/08_customerGroupSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/08_customerGroupSelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection B0 : Create new cart rule should login in BO", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0206a948-828f-43f0-8bfc-42a380621165", + "parentUUID": "42fe9b3e-825a-4d54-87b2-83885e451543", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection B0 : Create new cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f451c72e-ecb5-4224-abbe-73cba69c8688", + "parentUUID": "42fe9b3e-825a-4d54-87b2-83885e451543", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection B0 : Create new cart rule should go to new cart rule page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fca73b5-aaef-4146-90b7-c112e7708209", + "parentUUID": "42fe9b3e-825a-4d54-87b2-83885e451543", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection B0 : Create new cart rule should create cart rule", + "timedOut": false, + "duration": 4313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleCode)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85c4f633-12b1-4eac-978c-3d2515749eab", + "parentUUID": "42fe9b3e-825a-4d54-87b2-83885e451543", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection B0 : Create new cart rule should view my shop", + "timedOut": false, + "duration": 1668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7caab588-d4cb-49f9-9744-06fe7b3ae3a4", + "parentUUID": "42fe9b3e-825a-4d54-87b2-83885e451543", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0206a948-828f-43f0-8bfc-42a380621165", + "f451c72e-ecb5-4224-abbe-73cba69c8688", + "4fca73b5-aaef-4146-90b7-c112e7708209", + "85c4f633-12b1-4eac-978c-3d2515749eab", + "7caab588-d4cb-49f9-9744-06fe7b3ae3a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12150, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "title": "FO : Check the created cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/08_customerGroupSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/08_customerGroupSelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to login page", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should go to login page", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39c8a43c-36b8-413b-8aaa-d357c75eb362", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by default customer", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should sign in by default customer", + "timedOut": false, + "duration": 506, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_enterValidCredentials\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterValidCredentials', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1662bc8-bbce-4858-be03-15f504a7a0c7", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should go to the first product page", + "timedOut": false, + "duration": 779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_goToFirstProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca7028e0-fbe0-4848-b91b-e15fa888383b", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should add product to cart", + "timedOut": false, + "duration": 5664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "396f5814-cbc1-425d-aee6-a15039883d8b", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should add the promo code and check the error message", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should add the promo code and check the error message", + "timedOut": false, + "duration": 1477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_addPromoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPromoCode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, cartRuleCode.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleErrorMessage(page)];\n case 3:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.equal(cart_1.cartPage.cartRuleAlertMessageText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1c5efb2-1f73-4a10-8941-db4ac95adbfd", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should logout by the link in the header", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should logout by the link in the header", + "timedOut": false, + "duration": 1144, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_signOutFOByHeaderLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFOByHeaderLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4c6d398-a69e-4194-b10d-464d1864df26", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should go to home page", + "timedOut": false, + "duration": 725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_checkLogoLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLogoLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Logo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59cc473b-c314-4f17-b806-13081a7e61c8", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should go to the first product page", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_goToFirstProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "836e37b9-8dbb-4bbd-b9bb-e4c250c84cbe", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should add product to cart", + "timedOut": false, + "duration": 5635, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1dee895-4b9d-46ca-81e0-c7242ca1a456", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should add the promo code and verify the total after discount", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should add the promo code and verify the total after discount", + "timedOut": false, + "duration": 3477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_addPromoCode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalAfterDiscount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPromoCode2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, cartRuleCode.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 3:\n totalAfterDiscount = _a.sent();\n (0, chai_1.expect)(totalAfterDiscount).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f86b18b0-29f9-4928-b9eb-bf41d8a79035", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Home page", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should go to Home page", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Logo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7d844e2-cd13-4a71-958a-0c1675b2d66b", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to cart page and delete the product", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection FO : Check the created cart rule should go to cart page and delete the product", + "timedOut": false, + "duration": 2785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCartPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c5cee96-dbfb-489d-9e9b-c32ff4f6bb0f", + "parentUUID": "eaf35bd6-64b2-458c-b1a9-d770429c7f21", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "39c8a43c-36b8-413b-8aaa-d357c75eb362", + "b1662bc8-bbce-4858-be03-15f504a7a0c7", + "ca7028e0-fbe0-4848-b91b-e15fa888383b", + "396f5814-cbc1-425d-aee6-a15039883d8b", + "f1c5efb2-1f73-4a10-8941-db4ac95adbfd", + "e4c6d398-a69e-4194-b10d-464d1864df26", + "59cc473b-c314-4f17-b806-13081a7e61c8", + "836e37b9-8dbb-4bbd-b9bb-e4c250c84cbe", + "a1dee895-4b9d-46ca-81e0-c7242ca1a456", + "f86b18b0-29f9-4928-b9eb-bf41d8a79035", + "e7d844e2-cd13-4a71-958a-0c1675b2d66b", + "6c5cee96-dbfb-489d-9e9b-c32ff4f6bb0f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 24477, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "05f1e3fa-1b8b-4d84-9ba8-4f5a8acf0c94", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/08_customerGroupSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/08_customerGroupSelection.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8136f53a-5cd7-489a-a802-2fd6958bb743", + "parentUUID": "05f1e3fa-1b8b-4d84-9ba8-4f5a8acf0c94", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d895e22-6f4a-4a7a-8541-5424bf6584d5", + "parentUUID": "05f1e3fa-1b8b-4d84-9ba8-4f5a8acf0c94", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a66847ee-1efe-4852-a7af-b733799725be", + "parentUUID": "05f1e3fa-1b8b-4d84-9ba8-4f5a8acf0c94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3610, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b51c5ad2-b4fa-423b-9432-2431f286a2af", + "parentUUID": "05f1e3fa-1b8b-4d84-9ba8-4f5a8acf0c94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60b4dd76-04ec-4b61-9a9e-0157c45d2b15", + "parentUUID": "05f1e3fa-1b8b-4d84-9ba8-4f5a8acf0c94", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9a6b91c-80d0-411f-8ff5-c877e63720ac", + "parentUUID": "05f1e3fa-1b8b-4d84-9ba8-4f5a8acf0c94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Customer Group selection POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_customerGroupSelection_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7397270a-06b6-42fa-8222-2e04cce1fc7b", + "parentUUID": "05f1e3fa-1b8b-4d84-9ba8-4f5a8acf0c94", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a66847ee-1efe-4852-a7af-b733799725be", + "b51c5ad2-b4fa-423b-9432-2431f286a2af", + "60b4dd76-04ec-4b61-9a9e-0157c45d2b15", + "d9a6b91c-80d0-411f-8ff5-c877e63720ac", + "7397270a-06b6-42fa-8222-2e04cce1fc7b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11250, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "817c0818-2e55-43c8-b372-b1c318655bf9", + "title": "BO - Catalog - Cart rules : Product selection", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/10_productSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/10_productSelection.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Product selection\"", + "fullTitle": "BO - Catalog - Cart rules : Product selection \"before all\" hook in \"BO - Catalog - Cart rules : Product selection\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3298699a-ec8e-4caf-aaac-b756a74eb1b0", + "parentUUID": "817c0818-2e55-43c8-b372-b1c318655bf9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Product selection\"", + "fullTitle": "BO - Catalog - Cart rules : Product selection \"after all\" hook in \"BO - Catalog - Cart rules : Product selection\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4c9aa88e-9885-4d8d-8c47-be7af86175d4", + "parentUUID": "817c0818-2e55-43c8-b372-b1c318655bf9", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "abef67ce-48ad-4a67-b326-365ce3b4a4b6", + "title": "BO : Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/10_productSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/10_productSelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Product selection BO : Create cart rule should login in BO", + "timedOut": false, + "duration": 1715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e3a00c4-f649-4617-953a-85b0eacc063a", + "parentUUID": "abef67ce-48ad-4a67-b326-365ce3b4a4b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Product selection BO : Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3613, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4b00b3d-aab4-4c69-9795-ca446e445d46", + "parentUUID": "abef67ce-48ad-4a67-b326-365ce3b4a4b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Product selection BO : Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b0b7194-3a15-42ab-838d-fd60427abc2f", + "parentUUID": "abef67ce-48ad-4a67-b326-365ce3b4a4b6", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : Product selection BO : Create cart rule should create cart rule", + "timedOut": false, + "duration": 5279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, newCartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7f99596-aec8-468e-871c-5ad05cd21a73", + "parentUUID": "abef67ce-48ad-4a67-b326-365ce3b4a4b6", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : Product selection BO : Create cart rule should view my shop", + "timedOut": false, + "duration": 1734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f23ca25-16f8-43e5-8235-7517f70cae2f", + "parentUUID": "abef67ce-48ad-4a67-b326-365ce3b4a4b6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1e3a00c4-f649-4617-953a-85b0eacc063a", + "a4b00b3d-aab4-4c69-9795-ca446e445d46", + "0b0b7194-3a15-42ab-838d-fd60427abc2f", + "c7f99596-aec8-468e-871c-5ad05cd21a73", + "8f23ca25-16f8-43e5-8235-7517f70cae2f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13142, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "title": "FO : Check the created cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/10_productSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/10_productSelection.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to login page", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should go to login page", + "timedOut": false, + "duration": 691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28168bd5-4228-40d8-a15b-a06a0312a60e", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should login", + "timedOut": false, + "duration": 479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1090d552-a318-4861-83a7-77fd69beeac6", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Mountain fox notebook' and go to product page", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should search for the product 'Mountain fox notebook' and go to product page", + "timedOut": false, + "duration": 1660, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_8.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_8.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df08bff6-13dc-41f5-8594-db2f285a6dab", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart and click on continue shopping", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should add the product to cart and click on continue shopping", + "timedOut": false, + "duration": 3409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, undefined, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.goToHomePage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d0bf916-55f5-4962-a4b0-f6d3783e29b2", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart by quick view", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should add the first product to the cart by quick view", + "timedOut": false, + "duration": 1612, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_addFirstProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.continueShopping(page)];\n case 3:\n isNotVisible = _a.sent();\n (0, chai_1.expect)(isNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f181035f-9fee-4966-80b8-6d2081d5f5a4", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the second product to the cart by quick view", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should add the second product to the cart by quick view", + "timedOut": false, + "duration": 4285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_addSecondProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addSecondProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.eq(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d89cac9d-3df4-4ad6-82b9-3f4fec43b054", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the promo code and check the cart rule name", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should add the promo code and check the cart rule name", + "timedOut": false, + "duration": 1475, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_addPromoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPromoCode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page, 1)];\n case 3:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.eq(newCartRuleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cad3f109-adb4-4170-b551-8daf676a4780", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should check the discount value", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_checkDiscountValue1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var total, discount, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountValue1', baseContext)];\n case 1:\n _a.sent();\n total = products_1.default.demo_8.finalPrice + products_1.default.demo_1.finalPrice + products_1.default.demo_3.finalPrice;\n return [4 /*yield*/, basicHelper_1.default.percentage(total, newCartRuleData.discountPercent)];\n case 2:\n discount = _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page)];\n case 3:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.eq(-discount.toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a49fe3f2-811e-4016-8c20-f066c24f8aa2", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the second product from the cart", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should delete the second product from the cart", + "timedOut": false, + "duration": 2035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_deleteSecondProductFromCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSecondProductFromCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8eb851d6-7ec1-4084-8b52-7c147b3497a2", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should check the discount value", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_checkDiscountValue2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var total, discount, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountValue2', baseContext)];\n case 1:\n _a.sent();\n total = products_1.default.demo_8.finalPrice + products_1.default.demo_3.finalPrice;\n return [4 /*yield*/, basicHelper_1.default.percentage(total, newCartRuleData.discountPercent)];\n case 2:\n discount = _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page)];\n case 3:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.eq(-discount.toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c31db1a8-aecf-45e6-9db0-1bd4aab97c39", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the product 'Mountain fox notebook' from the cart", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should delete the product 'Mountain fox notebook' from the cart", + "timedOut": false, + "duration": 2039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_deleteFirstProductFromCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFirstProductFromCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94ff21a8-d2ee-49e5-a55d-c0bec55f5c56", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no discount is applied to the cart", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should check that no discount is applied to the cart", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_checkNoDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isCartRuleNameVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6992e9a9-7add-4165-a34e-34040a2f2354", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the last product from the cart", + "fullTitle": "BO - Catalog - Cart rules : Product selection FO : Check the created cart rule should delete the last product from the cart", + "timedOut": false, + "duration": 2030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_deleteLastProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLastProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ae4a9ef-c81e-41f8-969e-558f5118406b", + "parentUUID": "2a08a3e0-3ebd-4eec-b5c8-28fe64714dd6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "28168bd5-4228-40d8-a15b-a06a0312a60e", + "1090d552-a318-4861-83a7-77fd69beeac6", + "df08bff6-13dc-41f5-8594-db2f285a6dab", + "0d0bf916-55f5-4962-a4b0-f6d3783e29b2", + "f181035f-9fee-4966-80b8-6d2081d5f5a4", + "d89cac9d-3df4-4ad6-82b9-3f4fec43b054", + "cad3f109-adb4-4170-b551-8daf676a4780", + "a49fe3f2-811e-4016-8c20-f066c24f8aa2", + "8eb851d6-7ec1-4084-8b52-7c147b3497a2", + "c31db1a8-aecf-45e6-9db0-1bd4aab97c39", + "94ff21a8-d2ee-49e5-a55d-c0bec55f5c56", + "6992e9a9-7add-4165-a34e-34040a2f2354", + "1ae4a9ef-c81e-41f8-969e-558f5118406b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 24735, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bfe58b47-0387-4f4a-ad66-b68f5703fca9", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/10_productSelection.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/02_conditions/10_productSelection.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Product selection POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35a41353-eda4-48b6-b259-5029d884c234", + "parentUUID": "bfe58b47-0387-4f4a-ad66-b68f5703fca9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Product selection POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "354f9fbe-ed3e-4465-bd68-524949e2da97", + "parentUUID": "bfe58b47-0387-4f4a-ad66-b68f5703fca9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Product selection POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e018fb59-f1fc-4a44-bd64-2df9794d50a6", + "parentUUID": "bfe58b47-0387-4f4a-ad66-b68f5703fca9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Product selection POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3635, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7618bc9f-bafd-41a5-9f55-4b156c72afd8", + "parentUUID": "bfe58b47-0387-4f4a-ad66-b68f5703fca9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Product selection POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab2d78a5-80a1-48f2-b5de-6bf58ab2caa6", + "parentUUID": "bfe58b47-0387-4f4a-ad66-b68f5703fca9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Product selection POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0251bcaf-9f00-462e-b94c-2ac663d5c705", + "parentUUID": "bfe58b47-0387-4f4a-ad66-b68f5703fca9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Product selection POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_conditions_productSelection_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44ec00fd-fd88-475a-b769-fc0395cb84cd", + "parentUUID": "bfe58b47-0387-4f4a-ad66-b68f5703fca9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e018fb59-f1fc-4a44-bd64-2df9794d50a6", + "7618bc9f-bafd-41a5-9f55-4b156c72afd8", + "ab2d78a5-80a1-48f2-b5de-6bf58ab2caa6", + "0251bcaf-9f00-462e-b94c-2ac663d5c705", + "44ec00fd-fd88-475a-b769-fc0395cb84cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11274, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2b5a5195-14ea-44be-90a5-3ad35dc543c0", + "title": "BO - Catalog - Cart rules : Apply discount to specific product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/03_actions/07_applyToSpecificProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/03_actions/07_applyToSpecificProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Cart rules : Apply discount to specific product\"", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product \"before all\" hook in \"BO - Catalog - Cart rules : Apply discount to specific product\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cf3defb-9280-4a64-8191-4f33ff81f7f5", + "parentUUID": "2b5a5195-14ea-44be-90a5-3ad35dc543c0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Cart rules : Apply discount to specific product\"", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product \"after all\" hook in \"BO - Catalog - Cart rules : Apply discount to specific product\"", + "timedOut": false, + "duration": 15, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a630416b-a364-48ac-b7ac-cbe2b183fb99", + "parentUUID": "2b5a5195-14ea-44be-90a5-3ad35dc543c0", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "1e351084-9cd5-4391-8de1-3d18fd2ae951", + "title": "BO : Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/03_actions/07_applyToSpecificProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/03_actions/07_applyToSpecificProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product BO : Create cart rule should login in BO", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c68e4cc-8493-44fa-94bd-03cd3d0b45e0", + "parentUUID": "1e351084-9cd5-4391-8de1-3d18fd2ae951", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product BO : Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3608, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d92f09c8-2a35-4a26-9f0b-b3612aedabdb", + "parentUUID": "1e351084-9cd5-4391-8de1-3d18fd2ae951", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product BO : Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd2ac9d6-ac9a-4bbd-96c8-03412455e01d", + "parentUUID": "1e351084-9cd5-4391-8de1-3d18fd2ae951", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product BO : Create cart rule should create cart rule", + "timedOut": false, + "duration": 4707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, newCartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2de04d4f-f7d8-46a5-8471-7c754812616d", + "parentUUID": "1e351084-9cd5-4391-8de1-3d18fd2ae951", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product BO : Create cart rule should view my shop", + "timedOut": false, + "duration": 1660, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90d64d46-fe1e-4c77-a712-17e5d7f2ba30", + "parentUUID": "1e351084-9cd5-4391-8de1-3d18fd2ae951", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c68e4cc-8493-44fa-94bd-03cd3d0b45e0", + "d92f09c8-2a35-4a26-9f0b-b3612aedabdb", + "fd2ac9d6-ac9a-4bbd-96c8-03412455e01d", + "2de04d4f-f7d8-46a5-8471-7c754812616d", + "90d64d46-fe1e-4c77-a712-17e5d7f2ba30" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12471, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "title": "FO : Check the created cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/03_actions/07_applyToSpecificProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/03_actions/07_applyToSpecificProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to login page", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should go to login page", + "timedOut": false, + "duration": 694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd0c3ef1-ac7c-4f13-ac26-a4b5bddb68ba", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should login", + "timedOut": false, + "duration": 478, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b31791b-1266-44f1-aca4-2e4f6b58518f", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Mountain fox notebook' and go to product page", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should search for the product 'Mountain fox notebook' and go to product page", + "timedOut": false, + "duration": 1605, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_8.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_8.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24933e4c-a429-4776-97af-4c09aec3355b", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart and click on continue shopping", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should add the product to cart and click on continue shopping", + "timedOut": false, + "duration": 3500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, undefined, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.goToHomePage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebd5f99e-e488-4ef9-9c84-92d7b17f828c", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart by quick view", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should add the first product to the cart by quick view", + "timedOut": false, + "duration": 1625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_addFirstProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.continueShopping(page)];\n case 3:\n isNotVisible = _a.sent();\n (0, chai_1.expect)(isNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4881b81a-7b95-4bd1-b892-d5a71e4ba95b", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should add the second product to the cart by quick view", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should add the second product to the cart by quick view", + "timedOut": false, + "duration": 4289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_addSecondProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addSecondProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.eq(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ce84c12-a703-4c90-bab6-67283cdb1030", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should add the promo code and check the cart rule name", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should add the promo code and check the cart rule name", + "timedOut": false, + "duration": 1475, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_addPromoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPromoCode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page, 1)];\n case 3:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.eq(newCartRuleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d3e9d6a-dc16-454c-b55a-6c061c6540d3", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should check the discount value", + "timedOut": false, + "duration": 2013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_checkDiscountValue1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discount, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountValue1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_8.finalPrice, newCartRuleData.discountPercent)];\n case 2:\n discount = _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page)];\n case 3:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.eq(-discount.toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24778036-3fa9-433c-8303-e8a5589ca18f", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the second product from the cart", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should delete the second product from the cart", + "timedOut": false, + "duration": 2028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_deleteSecondProductFromCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSecondProductFromCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e3e828b-671a-455f-ac09-a45782f8113d", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should check the discount value", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_checkDiscountValue2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discount, discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountValue2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_8.finalPrice, newCartRuleData.discountPercent)];\n case 2:\n discount = _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page)];\n case 3:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.eq(-discount.toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c704fb63-4b13-4227-b3db-843b8e17f9f6", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the product 'Mountain fox notebook' from the cart", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should delete the product 'Mountain fox notebook' from the cart", + "timedOut": false, + "duration": 2041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_deleteFirstProductFromCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFirstProductFromCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1268854a-7ad8-4372-8e63-f1b734c5fb05", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no discount is applied to the cart", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should check that no discount is applied to the cart", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_checkNoDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isCartRuleNameVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08efaed5-51c7-47b0-a68c-3e8773cfc493", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the last product from the cart", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product FO : Check the created cart rule should delete the last product from the cart", + "timedOut": false, + "duration": 2030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_deleteLastProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLastProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08b29deb-2c9e-497f-b4fa-d79779d60602", + "parentUUID": "5bdfb48e-b5ab-48f1-9853-71db7710cf2b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fd0c3ef1-ac7c-4f13-ac26-a4b5bddb68ba", + "7b31791b-1266-44f1-aca4-2e4f6b58518f", + "24933e4c-a429-4776-97af-4c09aec3355b", + "ebd5f99e-e488-4ef9-9c84-92d7b17f828c", + "4881b81a-7b95-4bd1-b892-d5a71e4ba95b", + "5ce84c12-a703-4c90-bab6-67283cdb1030", + "7d3e9d6a-dc16-454c-b55a-6c061c6540d3", + "24778036-3fa9-433c-8303-e8a5589ca18f", + "1e3e828b-671a-455f-ac09-a45782f8113d", + "c704fb63-4b13-4227-b3db-843b8e17f9f6", + "1268854a-7ad8-4372-8e63-f1b734c5fb05", + "08efaed5-51c7-47b0-a68c-3e8773cfc493", + "08b29deb-2c9e-497f-b4fa-d79779d60602" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 24788, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d2f95faa-abac-4d12-9649-fc23859233b6", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/03_actions/07_applyToSpecificProduct.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/01_CRUDCartRule/03_actions/07_applyToSpecificProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "855c45ef-8d1d-4528-8ab7-1d6c73dcb072", + "parentUUID": "d2f95faa-abac-4d12-9649-fc23859233b6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "916155ef-dc92-4835-8a18-80e86de851d1", + "parentUUID": "d2f95faa-abac-4d12-9649-fc23859233b6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a221742-1e90-42d0-91fa-41bbf79d9849", + "parentUUID": "d2f95faa-abac-4d12-9649-fc23859233b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_postTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b438c9eb-7a0b-4643-9c2e-8cb2ed32e42d", + "parentUUID": "d2f95faa-abac-4d12-9649-fc23859233b6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_postTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba43b015-09bd-4764-ba14-3137abf68df4", + "parentUUID": "d2f95faa-abac-4d12-9649-fc23859233b6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_postTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20a3a66a-d98e-4ac2-9629-f13b47e4c0c8", + "parentUUID": "d2f95faa-abac-4d12-9649-fc23859233b6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Cart rules : Apply discount to specific product POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_CRUDCartRule_actions_applyToSpecificProduct_postTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d126635-06c7-42a1-b727-b33c9766ff82", + "parentUUID": "d2f95faa-abac-4d12-9649-fc23859233b6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2a221742-1e90-42d0-91fa-41bbf79d9849", + "b438c9eb-7a0b-4643-9c2e-8cb2ed32e42d", + "ba43b015-09bd-4764-ba14-3137abf68df4", + "20a3a66a-d98e-4ac2-9629-f13b47e4c0c8", + "1d126635-06c7-42a1-b727-b33c9766ff82" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11311, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "65550ed8-c618-4c0c-a84a-9875b1793b88", + "title": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules\"", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules \"before all\" hook in \"BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2393d17-e296-46c1-8918-269132503f83", + "parentUUID": "65550ed8-c618-4c0c-a84a-9875b1793b88", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules\"", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules \"after all\" hook in \"BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "67482230-6684-4881-ac5a-64a0d14de1b3", + "parentUUID": "65550ed8-c618-4c0c-a84a-9875b1793b88", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules should login in BO", + "timedOut": false, + "duration": 1678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c477f1bd-290a-40a5-8913-4de3dd8536e7", + "parentUUID": "65550ed8-c618-4c0c-a84a-9875b1793b88", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3610, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71a88db1-eca7-4c62-8dae-11c98bb9a61f", + "parentUUID": "65550ed8-c618-4c0c-a84a-9875b1793b88", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules should reset and get number of cart rules", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d60d0d9-9eee-4d22-886e-ac5275470e37", + "parentUUID": "65550ed8-c618-4c0c-a84a-9875b1793b88", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "aa836803-56f4-4eb0-bbb5-a4b604988687", + "title": "Create 2 cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Create 2 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 807, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_goToNewCartRulePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "761a9864-f6f0-4958-89e9-70f17edee980", + "parentUUID": "aa836803-56f4-4eb0-bbb5-a4b604988687", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Create 2 cart rules should create new cart rule", + "timedOut": false, + "duration": 3783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_createCartRule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleToCreate)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.at.most(numberOfCartRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dc3c39d-74d1-443c-85a4-396f055df298", + "parentUUID": "aa836803-56f4-4eb0-bbb5-a4b604988687", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Create 2 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_goToNewCartRulePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33c01202-3940-4649-98da-7127b268e95c", + "parentUUID": "aa836803-56f4-4eb0-bbb5-a4b604988687", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Create 2 cart rules should create new cart rule", + "timedOut": false, + "duration": 3754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_createCartRule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleToCreate)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.at.most(numberOfCartRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb42de1a-0df2-409c-b785-cc228e9b90d2", + "parentUUID": "aa836803-56f4-4eb0-bbb5-a4b604988687", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "761a9864-f6f0-4958-89e9-70f17edee980", + "8dc3c39d-74d1-443c-85a4-396f055df298", + "33c01202-3940-4649-98da-7127b268e95c", + "bb42de1a-0df2-409c-b785-cc228e9b90d2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9194, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "title": "Filter cart rules table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'todelete1'", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should filter by name 'todelete1'", + "timedOut": false, + "duration": 2911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, row, cartRuleStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterFilter).to.be.at.most(numberOfCartRules + 2);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, row)];\n case 5:\n cartRuleStatus = _a.sent();\n (0, chai_1.expect)(cartRuleStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, discounts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "290ce619-ad38-4fa5-afd5-80e0fae28235", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should reset all filters", + "timedOut": false, + "duration": 311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterReset).to.equal(numberOfCartRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8e7bde7-5f2d-4eea-b8ea-54bab12764c6", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by priority '1'", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should filter by priority '1'", + "timedOut": false, + "duration": 2889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterPriority\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, row, cartRuleStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterFilter).to.be.at.most(numberOfCartRules + 2);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, row)];\n case 5:\n cartRuleStatus = _a.sent();\n (0, chai_1.expect)(cartRuleStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, discounts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09ae804a-d5d6-43dd-a350-41a56cea45c4", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should reset all filters", + "timedOut": false, + "duration": 306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterPriorityReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterReset).to.equal(numberOfCartRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9d67b7c-de12-4075-ad8c-7c70bc903f97", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by code '4QABV6I0'", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should filter by code '4QABV6I0'", + "timedOut": false, + "duration": 2901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, row, cartRuleStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterFilter).to.be.at.most(numberOfCartRules + 2);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, row)];\n case 5:\n cartRuleStatus = _a.sent();\n (0, chai_1.expect)(cartRuleStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, discounts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cd24e4a-15e0-453d-8134-a8af9ad165e4", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should reset all filters", + "timedOut": false, + "duration": 316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterCodeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterReset).to.equal(numberOfCartRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1426ba87-68b1-4e8a-a177-38696ddae134", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by quantity '1'", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should filter by quantity '1'", + "timedOut": false, + "duration": 2890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, row, cartRuleStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterFilter).to.be.at.most(numberOfCartRules + 2);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, row)];\n case 5:\n cartRuleStatus = _a.sent();\n (0, chai_1.expect)(cartRuleStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, discounts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcfb6dbe-0729-42ad-bc4b-22d7568540dd", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should reset all filters", + "timedOut": false, + "duration": 307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterQuantityReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterReset).to.equal(numberOfCartRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10cf95f5-262a-46b6-a6f6-692adae226ed", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should filter by active '1'", + "timedOut": false, + "duration": 2847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, row, cartRuleStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterFilter).to.be.at.most(numberOfCartRules + 2);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, row)];\n case 5:\n cartRuleStatus = _a.sent();\n (0, chai_1.expect)(cartRuleStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, discounts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b25d52bf-6abb-4312-8d8c-cb170db5f3ce", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Filter cart rules table should reset all filters", + "timedOut": false, + "duration": 318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterStatusReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterReset).to.equal(numberOfCartRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82ab36c0-17a7-4239-b446-94786a2d7272", + "parentUUID": "b35ddcb6-bd8c-4d33-8e0d-c44f1db64d8e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "290ce619-ad38-4fa5-afd5-80e0fae28235", + "b8e7bde7-5f2d-4eea-b8ea-54bab12764c6", + "09ae804a-d5d6-43dd-a350-41a56cea45c4", + "b9d67b7c-de12-4075-ad8c-7c70bc903f97", + "6cd24e4a-15e0-453d-8134-a8af9ad165e4", + "1426ba87-68b1-4e8a-a177-38696ddae134", + "bcfb6dbe-0729-42ad-bc4b-22d7568540dd", + "10cf95f5-262a-46b6-a6f6-692adae226ed", + "b25d52bf-6abb-4312-8d8c-cb170db5f3ce", + "82ab36c0-17a7-4239-b446-94786a2d7272" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15996, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fba3b49e-737e-4b29-80ac-bbe4c1269843", + "title": "Quick edit cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'todelete1'", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Quick edit cart rule should filter by name 'todelete1'", + "timedOut": false, + "duration": 2914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, 'input', 'name', firstCartRule.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(firstCartRule.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ec2b628-5ab2-4bbb-9f1c-35cad1d56c49", + "parentUUID": "fba3b49e-737e-4b29-80ac-bbe4c1269843", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the first cart rule", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Quick edit cart rule should disable the first cart rule", + "timedOut": false, + "duration": 1263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_disableCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"CartRule\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.setCartRuleStatus(page, 1, status.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(status.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "777b8c11-9a5b-44bd-9bf1-26ea99a4f140", + "parentUUID": "fba3b49e-737e-4b29-80ac-bbe4c1269843", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the first cart rule", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Quick edit cart rule should enable the first cart rule", + "timedOut": false, + "duration": 1321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_enableCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"CartRule\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.setCartRuleStatus(page, 1, status.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(status.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39c63b31-0a86-4da2-96ea-00442e407b97", + "parentUUID": "fba3b49e-737e-4b29-80ac-bbe4c1269843", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Quick edit cart rule should reset all filters", + "timedOut": false, + "duration": 884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_resetAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterReset).to.equal(numberOfCartRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8454b9c6-a7e1-4f3f-8f28-ef5094b3d311", + "parentUUID": "fba3b49e-737e-4b29-80ac-bbe4c1269843", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4ec2b628-5ab2-4bbb-9f1c-35cad1d56c49", + "777b8c11-9a5b-44bd-9bf1-26ea99a4f140", + "39c63b31-0a86-4da2-96ea-00442e407b97", + "8454b9c6-a7e1-4f3f-8f28-ef5094b3d311" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6382, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c9fcc76a-7a8d-4d80-a448-261ec55a6a11", + "title": "Bulk actions cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/02_filterQuickEditAndBulkActionsCartRules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'todelete'", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Bulk actions cart rules should filter by name 'todelete'", + "timedOut": false, + "duration": 2908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_filterForBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterFilter).to.be.at.most(numberOfCartRules + 2);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, discounts_1.default.getTextColumn(page, row, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b3aef95-6bfb-4109-b1b9-2d7bf83dcfbc", + "parentUUID": "c9fcc76a-7a8d-4d80-a448-261ec55a6a11", + "isHook": false, + "skipped": false + }, + { + "title": "should enable cart rules with bulk actions", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Bulk actions cart rules should enable cart rules with bulk actions", + "timedOut": false, + "duration": 538, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_enableCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesBulkActions, row, rowStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"CartRules\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkSetStatus(page, test.wantedStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesBulkActions = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesBulkActions)) return [3 /*break*/, 7];\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, row)];\n case 5:\n rowStatus = _a.sent();\n (0, chai_1.expect)(rowStatus).to.equal(test.wantedStatus);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcaf92f1-88ec-4cf8-ad8c-fbd57b893123", + "parentUUID": "c9fcc76a-7a8d-4d80-a448-261ec55a6a11", + "isHook": false, + "skipped": false + }, + { + "title": "should disable cart rules with bulk actions", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Bulk actions cart rules should disable cart rules with bulk actions", + "timedOut": false, + "duration": 3070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_disableCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesBulkActions, row, rowStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"CartRules\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkSetStatus(page, test.wantedStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesBulkActions = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesBulkActions)) return [3 /*break*/, 7];\n return [4 /*yield*/, discounts_1.default.getCartRuleStatus(page, row)];\n case 5:\n rowStatus = _a.sent();\n (0, chai_1.expect)(rowStatus).to.equal(test.wantedStatus);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5f9be64-8b2e-474f-a392-89d0141fe177", + "parentUUID": "c9fcc76a-7a8d-4d80-a448-261ec55a6a11", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete cart rules", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Bulk actions cart rules should bulk delete cart rules", + "timedOut": false, + "duration": 493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_bulkDeleteCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkDeleteCartRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b90ea68a-7545-43b4-9784-ce0fe056678a", + "parentUUID": "c9fcc76a-7a8d-4d80-a448-261ec55a6a11", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, quick edit and bulk actions cart rules Bulk actions cart rules should reset all filters", + "timedOut": false, + "duration": 861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_filterQuickEditAndBulkActionsCartRules_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04e73866-c4d0-4be0-a847-6728dde1849e", + "parentUUID": "c9fcc76a-7a8d-4d80-a448-261ec55a6a11", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9b3aef95-6bfb-4109-b1b9-2d7bf83dcfbc", + "dcaf92f1-88ec-4cf8-ad8c-fbd57b893123", + "f5f9be64-8b2e-474f-a392-89d0141fe177", + "b90ea68a-7545-43b4-9784-ce0fe056678a", + "04e73866-c4d0-4be0-a847-6728dde1849e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7870, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c477f1bd-290a-40a5-8913-4de3dd8536e7", + "71a88db1-eca7-4c62-8dae-11c98bb9a61f", + "8d60d0d9-9eee-4d22-886e-ac5275470e37" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7297, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f7aba356-7006-477d-b07d-d33d661868f6", + "title": "BO - Catalog - Discounts : Sort and pagination cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Discounts : Sort and pagination cart rules\"", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules \"before all\" hook in \"BO - Catalog - Discounts : Sort and pagination cart rules\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cee9849-c949-40f3-8031-58810f4154d7", + "parentUUID": "f7aba356-7006-477d-b07d-d33d661868f6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Discounts : Sort and pagination cart rules\"", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules \"after all\" hook in \"BO - Catalog - Discounts : Sort and pagination cart rules\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "594b0eb1-d409-4277-aa11-670a7be665e7", + "parentUUID": "f7aba356-7006-477d-b07d-d33d661868f6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules should login in BO", + "timedOut": false, + "duration": 1730, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4107fd3-0958-4e0f-b6b3-07b10dbb0007", + "parentUUID": "f7aba356-7006-477d-b07d-d33d661868f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0dd7309-fc4c-4bc2-9481-dd340b4dbd47", + "parentUUID": "f7aba356-7006-477d-b07d-d33d661868f6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of cart rules", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules should reset filter and get number of cart rules", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51daa771-378f-4da3-8441-17676442feac", + "parentUUID": "f7aba356-7006-477d-b07d-d33d661868f6", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "194b0152-371e-43eb-b380-9eb656359f36", + "title": "Create 21 cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "923a5ed9-b530-44b0-9fe6-f73643d069a4", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°1", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°1", + "timedOut": false, + "duration": 3775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ae0450b-e01d-4aa0-b8d8-a72ee822aa7e", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f721aa8-d130-4018-a316-cec7d6590f77", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°2", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°2", + "timedOut": false, + "duration": 3749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2669db7-27af-4293-8f44-4326f537ffc0", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cb70285-21ef-4aed-bc9a-35d44afb3e76", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°3", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°3", + "timedOut": false, + "duration": 3724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ad87011-70f5-455b-9511-f1fb7711a9aa", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c53354e-eaa2-41e8-97e6-68d198652c93", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°4", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°4", + "timedOut": false, + "duration": 3806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "860fa3aa-207c-4901-bbc3-5673d5520fc7", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1fe0c8a-11b6-48af-b219-dd68da36e0c4", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°5", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°5", + "timedOut": false, + "duration": 3773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdaa077b-1b34-44ea-902b-64e07558b08d", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cafcc66-d32a-42b1-9fe5-60c06ff2936e", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°6", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°6", + "timedOut": false, + "duration": 3797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07e936af-a5a1-4e02-8b60-3f15c27979b3", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0a43e1a-12fd-4ee4-9620-707ad70933db", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°7", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°7", + "timedOut": false, + "duration": 3773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff98e588-2884-4927-892f-d53f800ea907", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e94df3b-e94c-403b-91d6-40b79e0ada38", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°8", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°8", + "timedOut": false, + "duration": 3782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88f5d957-39f0-46e8-8969-ff55c7fa64a8", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "deec0d4d-6d7f-4ac4-b75c-11991a60b222", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°9", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°9", + "timedOut": false, + "duration": 3800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12096602-690b-4778-81ea-bb68f55ebaa2", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b41308d-6f60-409c-8b12-1c3e58447c7c", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°10", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°10", + "timedOut": false, + "duration": 3762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "560de364-d0f1-4ea4-8b82-82bbe887bacc", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b536a411-64be-4bd6-bb9e-422af6344689", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°11", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°11", + "timedOut": false, + "duration": 3729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f8d864e-3371-4f1a-93e9-6974927695d6", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f0df611-2188-4ab3-aa3a-3275419d7ac0", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°12", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°12", + "timedOut": false, + "duration": 3765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d1dac23-6a98-4d18-a43c-1242f6d8dc1c", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "635f0668-541d-4903-aca3-7216a17eeddc", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°13", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°13", + "timedOut": false, + "duration": 3752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2de730e4-a671-4481-8648-b5dfc1f1e922", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e0b31dc-ace3-4b5c-b328-f98694a46fe1", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°14", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°14", + "timedOut": false, + "duration": 3880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "609c3afa-d24a-4ee1-947c-b25345a83ae8", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af56225a-564a-444c-95ba-73d7496d5a0c", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°15", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°15", + "timedOut": false, + "duration": 3810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "561e841e-ca3d-4986-9479-a6be61b3cb5a", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca93cdad-88c6-466d-ba0c-8afdf0c51183", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°16", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°16", + "timedOut": false, + "duration": 3817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a896d76-f255-49b2-9bb8-d00909c52aa7", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "582e9169-ba8f-4492-a0ca-6975e1e4fa0d", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°17", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°17", + "timedOut": false, + "duration": 3720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c556e8c1-854f-4e08-9c74-04c627253ef1", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45a78c53-fdce-4919-a97f-c27a0a7fbcbb", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°18", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°18", + "timedOut": false, + "duration": 3793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f5244d3-a4f3-4121-9066-29164110fc77", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "955c5567-5abe-44d8-840d-1f82d5951739", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°19", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°19", + "timedOut": false, + "duration": 3935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98e469a6-0eb2-4a54-addb-25e5d75ad03f", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8be7874a-4960-4a32-8db6-75a755340c65", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°20", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°20", + "timedOut": false, + "duration": 3809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7aed2ed7-65ed-4a6e-aef2-43cddad60b72", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should go to new cart rule page", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_goToNewCartRulePage20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCartRulePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4724b870-b46e-45af-bb3e-4f5c76293cdc", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + }, + { + "title": "should create cart rule n°21", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Create 21 cart rules should create cart rule n°21", + "timedOut": false, + "duration": 3793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_createCartRule20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCartRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCartRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterCreation).to.be.equal(numberOfCartRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4788dbb-4070-4c8c-9dbc-46c5df7d3ae1", + "parentUUID": "194b0152-371e-43eb-b380-9eb656359f36", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "923a5ed9-b530-44b0-9fe6-f73643d069a4", + "1ae0450b-e01d-4aa0-b8d8-a72ee822aa7e", + "9f721aa8-d130-4018-a316-cec7d6590f77", + "c2669db7-27af-4293-8f44-4326f537ffc0", + "9cb70285-21ef-4aed-bc9a-35d44afb3e76", + "8ad87011-70f5-455b-9511-f1fb7711a9aa", + "7c53354e-eaa2-41e8-97e6-68d198652c93", + "860fa3aa-207c-4901-bbc3-5673d5520fc7", + "e1fe0c8a-11b6-48af-b219-dd68da36e0c4", + "fdaa077b-1b34-44ea-902b-64e07558b08d", + "2cafcc66-d32a-42b1-9fe5-60c06ff2936e", + "07e936af-a5a1-4e02-8b60-3f15c27979b3", + "f0a43e1a-12fd-4ee4-9620-707ad70933db", + "ff98e588-2884-4927-892f-d53f800ea907", + "7e94df3b-e94c-403b-91d6-40b79e0ada38", + "88f5d957-39f0-46e8-8969-ff55c7fa64a8", + "deec0d4d-6d7f-4ac4-b75c-11991a60b222", + "12096602-690b-4778-81ea-bb68f55ebaa2", + "1b41308d-6f60-409c-8b12-1c3e58447c7c", + "560de364-d0f1-4ea4-8b82-82bbe887bacc", + "b536a411-64be-4bd6-bb9e-422af6344689", + "7f8d864e-3371-4f1a-93e9-6974927695d6", + "1f0df611-2188-4ab3-aa3a-3275419d7ac0", + "5d1dac23-6a98-4d18-a43c-1242f6d8dc1c", + "635f0668-541d-4903-aca3-7216a17eeddc", + "2de730e4-a671-4481-8648-b5dfc1f1e922", + "7e0b31dc-ace3-4b5c-b328-f98694a46fe1", + "609c3afa-d24a-4ee1-947c-b25345a83ae8", + "af56225a-564a-444c-95ba-73d7496d5a0c", + "561e841e-ca3d-4986-9479-a6be61b3cb5a", + "ca93cdad-88c6-466d-ba0c-8afdf0c51183", + "9a896d76-f255-49b2-9bb8-d00909c52aa7", + "582e9169-ba8f-4492-a0ca-6975e1e4fa0d", + "c556e8c1-854f-4e08-9c74-04c627253ef1", + "45a78c53-fdce-4919-a97f-c27a0a7fbcbb", + "2f5244d3-a4f3-4121-9066-29164110fc77", + "955c5567-5abe-44d8-840d-1f82d5951739", + "98e469a6-0eb2-4a54-addb-25e5d75ad03f", + "8be7874a-4960-4a32-8db6-75a755340c65", + "7aed2ed7-65ed-4a6e-aef2-43cddad60b72", + "4724b870-b46e-45af-bb3e-4f5c76293cdc", + "f4788dbb-4070-4c8c-9dbc-46c5df7d3ae1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 97276, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5e2541d1-ed15-4ad6-86b6-860461320adb", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f589983-dc0d-4b4b-82c5-5c75797c502e", + "parentUUID": "5e2541d1-ed15-4ad6-86b6-860461320adb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Pagination next and previous should click on next", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "915cab2a-0bc6-40d4-ba44-08ceece35348", + "parentUUID": "5e2541d1-ed15-4ad6-86b6-860461320adb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Pagination next and previous should click on previous", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f5ed80f-0a05-43f2-8b6d-8a4c1613697a", + "parentUUID": "5e2541d1-ed15-4ad6-86b6-860461320adb", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5c137d9-4636-4f2e-abdc-cdbcbb6d2389", + "parentUUID": "5e2541d1-ed15-4ad6-86b6-860461320adb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1f589983-dc0d-4b4b-82c5-5c75797c502e", + "915cab2a-0bc6-40d4-ba44-08ceece35348", + "6f5ed80f-0a05-43f2-8b6d-8a4c1613697a", + "f5c137d9-4636-4f2e-abdc-cdbcbb6d2389" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2410, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "title": "Sort cart rules table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_cart_rule' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'id_cart_rule' 'down' and check result", + "timedOut": false, + "duration": 1160, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d91d5341-4f10-48c5-9ff1-dffb2d093992", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'name' 'up' and check result", + "timedOut": false, + "duration": 1227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57218149-5ecd-48cc-a4cb-40e78e12a8de", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'name' 'down' and check result", + "timedOut": false, + "duration": 1175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8b953d2-108c-4f66-b4a0-c27ae49cc0c5", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'priority' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'priority' 'up' and check result", + "timedOut": false, + "duration": 1304, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByPriorityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "423f3896-4811-4bbf-bde6-d2bbb347727f", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'priority' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'priority' 'down' and check result", + "timedOut": false, + "duration": 1115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByPriorityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a19c9550-5803-479e-a5e3-300fb1cbd513", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'code' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'code' 'up' and check result", + "timedOut": false, + "duration": 1290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f690aa4c-6ea4-467c-9fc5-70a829ca6e95", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'code' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'code' 'down' and check result", + "timedOut": false, + "duration": 1126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37707919-24af-4089-aff2-c071ace0a744", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'quantity' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'quantity' 'up' and check result", + "timedOut": false, + "duration": 1261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByQuantityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6ca31ab-da58-453f-b5d3-d4507d444e13", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'quantity' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'quantity' 'down' and check result", + "timedOut": false, + "duration": 1157, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByQuantityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f1fbc77-5f96-42c5-a1b7-4d1fa0c13862", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'date' 'up' and check result", + "timedOut": false, + "duration": 1257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByDateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97e33ec4-8f82-4eb9-bfcf-415a6368d629", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'date' 'down' and check result", + "timedOut": false, + "duration": 1245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByDateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f33b2cfa-ee6e-46d7-9ee3-fe9d971dbe6d", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_cart_rule' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Sort cart rules table should sort by 'id_cart_rule' 'up' and check result", + "timedOut": false, + "duration": 1161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, discounts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c4f211c-2db5-4fb6-b979-83ab7d29986b", + "parentUUID": "66c813dc-04b7-4d8d-9685-234fd8df9484", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d91d5341-4f10-48c5-9ff1-dffb2d093992", + "57218149-5ecd-48cc-a4cb-40e78e12a8de", + "b8b953d2-108c-4f66-b4a0-c27ae49cc0c5", + "423f3896-4811-4bbf-bde6-d2bbb347727f", + "a19c9550-5803-479e-a5e3-300fb1cbd513", + "f690aa4c-6ea4-467c-9fc5-70a829ca6e95", + "37707919-24af-4089-aff2-c071ace0a744", + "c6ca31ab-da58-453f-b5d3-d4507d444e13", + "1f1fbc77-5f96-42c5-a1b7-4d1fa0c13862", + "97e33ec4-8f82-4eb9-bfcf-415a6368d629", + "f33b2cfa-ee6e-46d7-9ee3-fe9d971dbe6d", + "6c4f211c-2db5-4fb6-b979-83ab7d29986b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14478, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "77f3e7c0-9159-48dc-8078-40996738bc97", + "title": "Delete cart rules with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/01_cartRules/03_sortAndPaginationCartRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Delete cart rules with bulk actions should filter list by name", + "timedOut": false, + "duration": 3167, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, discounts_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "253e76d4-cd16-436d-a003-3ac40b5932d0", + "parentUUID": "77f3e7c0-9159-48dc-8078-40996738bc97", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rules and check result", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Delete cart rules with bulk actions should delete cart rules and check result", + "timedOut": false, + "duration": 588, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_bulkDeleteCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkDeleteCartRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3759ac79-f64f-4abe-804c-d8fcb0ac60d0", + "parentUUID": "77f3e7c0-9159-48dc-8078-40996738bc97", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Sort and pagination cart rules Delete cart rules with bulk actions should reset all filters", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_cartRules_sortAndPaginationCartRule_resetFilterAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eed8465c-7fe8-467b-9f50-66c31f7e53dd", + "parentUUID": "77f3e7c0-9159-48dc-8078-40996738bc97", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "253e76d4-cd16-436d-a003-3ac40b5932d0", + "3759ac79-f64f-4abe-804c-d8fcb0ac60d0", + "eed8465c-7fe8-467b-9f50-66c31f7e53dd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4611, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c4107fd3-0958-4e0f-b6b3-07b10dbb0007", + "a0dd7309-fc4c-4bc2-9481-dd340b4dbd47", + "51daa771-378f-4da3-8441-17676442feac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7360, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d4813218-c03c-436d-bb2b-f14d9a56b657", + "title": "BO - Catalog - Discounts : CRUD catalog price rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Discounts : CRUD catalog price rules\"", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules \"before all\" hook in \"BO - Catalog - Discounts : CRUD catalog price rules\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dd97f3a-7bde-4cf0-a2f4-f376508e492d", + "parentUUID": "d4813218-c03c-436d-bb2b-f14d9a56b657", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Discounts : CRUD catalog price rules\"", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules \"after all\" hook in \"BO - Catalog - Discounts : CRUD catalog price rules\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "083131af-8db5-44bf-a4e6-1f277eeb3d5e", + "parentUUID": "d4813218-c03c-436d-bb2b-f14d9a56b657", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules should login in BO", + "timedOut": false, + "duration": 1669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65cdfdda-f38f-4eaf-ba3b-ec30b7469d59", + "parentUUID": "d4813218-c03c-436d-bb2b-f14d9a56b657", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "59af94cd-3218-4417-a4db-c01c6c1fe512", + "title": "Create catalog price rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Create catalog price rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3610, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ac9e45c-52a2-4fe4-af9b-bbac393cd82e", + "parentUUID": "59af94cd-3218-4417-a4db-c01c6c1fe512", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog Price Rules' tab", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Create catalog price rule should go to 'Catalog Price Rules' tab", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_goToCatalogPriceRulesTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPriceRulesTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToCatalogPriceRulesTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(catalogPriceRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cd5ea6a-4178-4da9-99c6-415c08fe4f86", + "parentUUID": "59af94cd-3218-4417-a4db-c01c6c1fe512", + "isHook": false, + "skipped": false + }, + { + "title": "should create new catalog price rule", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Create catalog price rule should create new catalog price rule", + "timedOut": false, + "duration": 2030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_createCatalogPriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCatalogPriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, newCatalogPriceRuleData)];\n case 4:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce9bf9b0-5b52-43f1-a2be-fdf1757a81ca", + "parentUUID": "59af94cd-3218-4417-a4db-c01c6c1fe512", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5ac9e45c-52a2-4fe4-af9b-bbac393cd82e", + "0cd5ea6a-4178-4da9-99c6-415c08fe4f86", + "ce9bf9b0-5b52-43f1-a2be-fdf1757a81ca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6540, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4dca509d-e9bd-4c65-8530-22c976ad7517", + "title": "Check catalog price rule in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Check catalog price rule in FO should view my shop", + "timedOut": false, + "duration": 1906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e62f9123-0b79-440a-83a7-72c50e704014", + "parentUUID": "4dca509d-e9bd-4c65-8530-22c976ad7517", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Check catalog price rule in FO should go to the first product page", + "timedOut": false, + "duration": 838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_goToFirstProductPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "514bbbc6-a4e9-43e8-b7cb-1c39772fb742", + "parentUUID": "4dca509d-e9bd-4c65-8530-22c976ad7517", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Check catalog price rule in FO should check the discount", + "timedOut": false, + "duration": 1398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_checkDiscount_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityDiscountValue, unitDiscountValue, columnValue, finalPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscount_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getQuantityDiscountValue(page)];\n case 2:\n quantityDiscountValue = _a.sent();\n (0, chai_1.expect)(quantityDiscountValue).to.equal(newCatalogPriceRuleData.fromQuantity);\n return [4 /*yield*/, product_1.default.getDiscountValue(page)];\n case 3:\n unitDiscountValue = _a.sent();\n (0, chai_1.expect)(unitDiscountValue).to.equal(\"\\u20AC\".concat(newCatalogPriceRuleData.reduction, \".00\"));\n return [4 /*yield*/, product_1.default.getDiscountPercentage(page)];\n case 4:\n columnValue = _a.sent();\n (0, chai_1.expect)(columnValue).to.equal(defaultDiscount);\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 5:\n finalPrice = _a.sent();\n (0, chai_1.expect)(finalPrice.price).to.equal(productPrice);\n // Set quantity of the product\n return [4 /*yield*/, product_1.default.setQuantity(page, newCatalogPriceRuleData.fromQuantity)];\n case 6:\n // Set quantity of the product\n _a.sent();\n return [4 /*yield*/, product_1.default.getDiscountAmount(page)];\n case 7:\n // Check discount value\n columnValue = _a.sent();\n (0, chai_1.expect)(columnValue).to.equal(discountAmountForNewDiscount);\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 8:\n // Check final price\n finalPrice = _a.sent();\n (0, chai_1.expect)(finalPrice.price).to.equal(priceAfterNewDiscount);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "518aac37-e062-4ebc-bafa-8e280580e4d9", + "parentUUID": "4dca509d-e9bd-4c65-8530-22c976ad7517", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e62f9123-0b79-440a-83a7-72c50e704014", + "514bbbc6-a4e9-43e8-b7cb-1c39772fb742", + "518aac37-e062-4ebc-bafa-8e280580e4d9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4142, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c526089d-a390-4fc0-9088-2fa16ba9a7b4", + "title": "Update catalog price rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Update catalog price rule should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_goBackToBoToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBoToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(catalogPriceRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aff40471-62ea-44cf-8eb3-12f317b2d88f", + "parentUUID": "c526089d-a390-4fc0-9088-2fa16ba9a7b4", + "isHook": false, + "skipped": false + }, + { + "title": "should update the created catalog price rule", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Update catalog price rule should update the created catalog price rule", + "timedOut": false, + "duration": 2060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_updateCatalogPriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCatalogPriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToEditCatalogPriceRulePage(page, newCatalogPriceRuleData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle);\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, editCatalogPriceRuleData)];\n case 4:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6e61f4f-e5ad-4ae1-9246-ffea2b0c0b5b", + "parentUUID": "c526089d-a390-4fc0-9088-2fa16ba9a7b4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aff40471-62ea-44cf-8eb3-12f317b2d88f", + "c6e61f4f-e5ad-4ae1-9246-ffea2b0c0b5b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2065, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "54d29ead-fbe0-4954-96ae-a23b6c56c471", + "title": "Check updated catalog price rule in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Check updated catalog price rule in FO should view my shop", + "timedOut": false, + "duration": 1869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_viewMyShop_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "440f146c-ccd8-4fe5-9902-32927d15aebf", + "parentUUID": "54d29ead-fbe0-4954-96ae-a23b6c56c471", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Check updated catalog price rule in FO should go to the first product page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_goToFirstProductPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0219261-337c-4f90-9d33-f8c0a7b6f51a", + "parentUUID": "54d29ead-fbe0-4954-96ae-a23b6c56c471", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Check updated catalog price rule in FO should check the discount", + "timedOut": false, + "duration": 1396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_checkUpdatedCatalogPriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityDiscountValue, unitDiscountValue, columnValue, finalPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedCatalogPriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getQuantityDiscountValue(page)];\n case 2:\n quantityDiscountValue = _a.sent();\n (0, chai_1.expect)(quantityDiscountValue).to.equal(editCatalogPriceRuleData.fromQuantity);\n return [4 /*yield*/, product_1.default.getDiscountValue(page)];\n case 3:\n unitDiscountValue = _a.sent();\n (0, chai_1.expect)(unitDiscountValue).to.equal(\"\\u20AC\".concat(editCatalogPriceRuleData.reduction, \".00\"));\n return [4 /*yield*/, product_1.default.getDiscountPercentage(page)];\n case 4:\n columnValue = _a.sent();\n (0, chai_1.expect)(columnValue).to.equal(defaultDiscount);\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 5:\n finalPrice = _a.sent();\n (0, chai_1.expect)(finalPrice.price).to.equal(productPrice);\n // Set quantity of the product\n return [4 /*yield*/, product_1.default.setQuantity(page, editCatalogPriceRuleData.fromQuantity)];\n case 6:\n // Set quantity of the product\n _a.sent();\n return [4 /*yield*/, product_1.default.getDiscountAmount(page)];\n case 7:\n // Check discount value\n columnValue = _a.sent();\n (0, chai_1.expect)(columnValue).to.equal(discountAmountForUpdatedDiscount);\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 8:\n // Check final price\n finalPrice = _a.sent();\n (0, chai_1.expect)(finalPrice.price).to.equal(priceAfterUpdatedDiscount);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c83d33d-30bb-4fde-bb82-0aa3e3003042", + "parentUUID": "54d29ead-fbe0-4954-96ae-a23b6c56c471", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "440f146c-ccd8-4fe5-9902-32927d15aebf", + "d0219261-337c-4f90-9d33-f8c0a7b6f51a", + "8c83d33d-30bb-4fde-bb82-0aa3e3003042" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4090, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0a34ea37-bde8-4e78-b85c-c4e84e85e4e2", + "title": "Delete catalog price rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/01_CRUDCatalogPriceRule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Delete catalog price rule should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_goBackToBoToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBoToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(catalogPriceRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12a75a82-13b8-402e-96a5-ddf94aa5df50", + "parentUUID": "0a34ea37-bde8-4e78-b85c-c4e84e85e4e2", + "isHook": false, + "skipped": false + }, + { + "title": "should delete catalog price rule", + "fullTitle": "BO - Catalog - Discounts : CRUD catalog price rules Delete catalog price rule should delete catalog price rule", + "timedOut": false, + "duration": 1079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_CRUDCatalogPriceRule_deleteCatalogPriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCatalogPriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.deleteCatalogPriceRule(page, editCatalogPriceRuleData.name)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.contains(catalogPriceRules_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab3dcac3-f930-4cb8-ab8a-c23cd70e1df6", + "parentUUID": "0a34ea37-bde8-4e78-b85c-c4e84e85e4e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "12a75a82-13b8-402e-96a5-ddf94aa5df50", + "ab3dcac3-f930-4cb8-ab8a-c23cd70e1df6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1084, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "65cdfdda-f38f-4eaf-ba3b-ec30b7469d59" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1669, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "083b16be-de7e-424a-bc7e-af287aef9581", + "title": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table\"", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table \"before all\" hook in \"BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58201d6b-d29f-438c-a4d2-b1fe4a1f2ac5", + "parentUUID": "083b16be-de7e-424a-bc7e-af287aef9581", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table\"", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table \"after all\" hook in \"BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table\"", + "timedOut": false, + "duration": 15, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "886683c9-42a8-4c5a-bed4-76330eb4293c", + "parentUUID": "083b16be-de7e-424a-bc7e-af287aef9581", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table should login in BO", + "timedOut": false, + "duration": 1818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c34def3e-af93-42f7-9298-aa9400d56d68", + "parentUUID": "083b16be-de7e-424a-bc7e-af287aef9581", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbb0402a-6883-4a78-bab1-4c514a3f8352", + "parentUUID": "083b16be-de7e-424a-bc7e-af287aef9581", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog Price Rules' tab", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table should go to 'Catalog Price Rules' tab", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToCatalogPriceRulesTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPriceRulesTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToCatalogPriceRulesTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCatalogPriceRules = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(catalogPriceRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1038c061-8d57-40a8-bcf0-04f1010882f2", + "parentUUID": "083b16be-de7e-424a-bc7e-af287aef9581", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "98819633-8421-4902-91d8-c85966e845ba", + "title": "Create 21 catalog price rules in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a412b1ee-2c80-40a1-9bae-12ca142774b8", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°1", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°1", + "timedOut": false, + "duration": 1177, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00c81093-63f6-4b9b-b1f2-62ab9d64dcd7", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c41d24c6-52e8-4870-a387-40c93ef05541", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°2", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°2", + "timedOut": false, + "duration": 1182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb6b31cd-5643-498a-9a7e-628fdee10b4a", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5df50f40-9ac0-4d73-9a0f-2ae75165c2b0", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°3", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°3", + "timedOut": false, + "duration": 1218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78640112-875d-4f17-a6ed-e5b6fd6cf47c", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b30e1cd3-44b2-4ba8-a3d3-170444d7d10f", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°4", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°4", + "timedOut": false, + "duration": 1181, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40a882b9-a8db-44e2-98c0-2a462e2c1730", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94f171b8-c866-4606-a92d-2e7e0afe27cf", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°5", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°5", + "timedOut": false, + "duration": 1187, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffe92aff-8872-4c5e-a439-008205abe3e7", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55a4342b-795d-4f9f-be38-0f8ac2d45811", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°6", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°6", + "timedOut": false, + "duration": 1160, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a10f6d19-fb6f-40ef-8223-4ddbe06f8a28", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f4f730b-931f-4a8d-9355-c4db23e55862", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°7", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°7", + "timedOut": false, + "duration": 1188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce8b4001-ee2c-4cf7-9c43-10319e96f35d", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a5601cc-a2bc-494d-959c-98d7a9b7bb3f", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°8", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°8", + "timedOut": false, + "duration": 1191, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32069bf9-04eb-4423-8579-b1f094fc0823", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95049653-e4c5-451c-8614-b1eb73df333b", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°9", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°9", + "timedOut": false, + "duration": 1197, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21803e2f-f897-4afc-9db9-ec3a0df91d27", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b40f3256-1dc3-406a-bf03-d430fb224c02", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°10", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°10", + "timedOut": false, + "duration": 1182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "577a0b5a-162a-4a25-864f-d08ee85f962d", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb975818-71d7-4ae9-a3e3-a3e6578f79ce", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°11", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°11", + "timedOut": false, + "duration": 1187, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7e5e9f4-99df-4da2-8307-51012494c38b", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4f7f069-e2d9-4b0a-8c19-5dca04856961", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°12", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°12", + "timedOut": false, + "duration": 1190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e176fb4b-74e3-4b7e-86db-d3aedaf199e6", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dfa0bf2-a9b9-49f0-a1d0-88b0fbc9a347", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°13", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°13", + "timedOut": false, + "duration": 1179, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af4121c2-f053-4b7d-8776-6459d574d780", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9937f506-10e6-4387-adcf-7de5db14b8ba", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°14", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°14", + "timedOut": false, + "duration": 1192, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d1d46f6-707f-42dd-83d9-e169278bc7f6", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8aae466f-dfdc-4945-8b6b-4f663e239433", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°15", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°15", + "timedOut": false, + "duration": 1212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "169a0bd2-49d0-4904-8399-19296aca9395", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75a4fdd4-48e2-4317-850f-19171f1fa7d7", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°16", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°16", + "timedOut": false, + "duration": 1223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e30aca1-192f-4c5f-a3a1-6e203addda8b", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53b1ad07-465d-43cc-b435-8961ffcbc8a3", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°17", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°17", + "timedOut": false, + "duration": 1201, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77ff1ef0-4eca-4dc4-b2e6-8c935749ce01", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64150b9e-198d-45ad-a552-e05b14aa765c", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°18", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°18", + "timedOut": false, + "duration": 1186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9be547f3-eef0-436f-8fe4-57a8c654d6bc", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54f0f09c-07e6-4da6-bb89-6f6476aa2077", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°19", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°19", + "timedOut": false, + "duration": 1208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e3279be-17ee-40c0-b981-bd96334ea5b4", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4c14f17-8080-48b9-bb01-fa5f9441041a", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°20", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°20", + "timedOut": false, + "duration": 1217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03f9dd3e-9e95-475a-b4ca-d2245f5dce6f", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new catalog price rule page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should go to new catalog price rule page", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_goToNewCatalogPriceRule20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3d45645-6faa-4695-befc-d489f7aee3dd", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + }, + { + "title": "should create catalog price rule n°21", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Create 21 catalog price rules in BO should create catalog price rule n°21", + "timedOut": false, + "duration": 1221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_createCatalogPriceRule20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, numberOfCatalogPriceRulesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCatalogPriceRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCatalogPriceRulesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCatalogPriceRulesAfterCreation).to.be.at.most(numberOfCatalogPriceRules + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17c81d7c-8eda-4e91-97d4-4be4ffd701ad", + "parentUUID": "98819633-8421-4902-91d8-c85966e845ba", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a412b1ee-2c80-40a1-9bae-12ca142774b8", + "00c81093-63f6-4b9b-b1f2-62ab9d64dcd7", + "c41d24c6-52e8-4870-a387-40c93ef05541", + "cb6b31cd-5643-498a-9a7e-628fdee10b4a", + "5df50f40-9ac0-4d73-9a0f-2ae75165c2b0", + "78640112-875d-4f17-a6ed-e5b6fd6cf47c", + "b30e1cd3-44b2-4ba8-a3d3-170444d7d10f", + "40a882b9-a8db-44e2-98c0-2a462e2c1730", + "94f171b8-c866-4606-a92d-2e7e0afe27cf", + "ffe92aff-8872-4c5e-a439-008205abe3e7", + "55a4342b-795d-4f9f-be38-0f8ac2d45811", + "a10f6d19-fb6f-40ef-8223-4ddbe06f8a28", + "7f4f730b-931f-4a8d-9355-c4db23e55862", + "ce8b4001-ee2c-4cf7-9c43-10319e96f35d", + "1a5601cc-a2bc-494d-959c-98d7a9b7bb3f", + "32069bf9-04eb-4423-8579-b1f094fc0823", + "95049653-e4c5-451c-8614-b1eb73df333b", + "21803e2f-f897-4afc-9db9-ec3a0df91d27", + "b40f3256-1dc3-406a-bf03-d430fb224c02", + "577a0b5a-162a-4a25-864f-d08ee85f962d", + "eb975818-71d7-4ae9-a3e3-a3e6578f79ce", + "f7e5e9f4-99df-4da2-8307-51012494c38b", + "d4f7f069-e2d9-4b0a-8c19-5dca04856961", + "e176fb4b-74e3-4b7e-86db-d3aedaf199e6", + "9dfa0bf2-a9b9-49f0-a1d0-88b0fbc9a347", + "af4121c2-f053-4b7d-8776-6459d574d780", + "9937f506-10e6-4387-adcf-7de5db14b8ba", + "5d1d46f6-707f-42dd-83d9-e169278bc7f6", + "8aae466f-dfdc-4945-8b6b-4f663e239433", + "169a0bd2-49d0-4904-8399-19296aca9395", + "75a4fdd4-48e2-4317-850f-19171f1fa7d7", + "0e30aca1-192f-4c5f-a3a1-6e203addda8b", + "53b1ad07-465d-43cc-b435-8961ffcbc8a3", + "77ff1ef0-4eca-4dc4-b2e6-8c935749ce01", + "64150b9e-198d-45ad-a552-e05b14aa765c", + "9be547f3-eef0-436f-8fe4-57a8c654d6bc", + "54f0f09c-07e6-4da6-bb89-6f6476aa2077", + "5e3279be-17ee-40c0-b981-bd96334ea5b4", + "e4c14f17-8080-48b9-bb01-fa5f9441041a", + "03f9dd3e-9e95-475a-b4ca-d2245f5dce6f", + "e3d45645-6faa-4695-befc-d489f7aee3dd", + "17c81d7c-8eda-4e91-97d4-4be4ffd701ad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 44218, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "title": "Filter catalog price rules table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_specific_price_rule '1'", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by id_specific_price_rule '1'", + "timedOut": false, + "duration": 1045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.filterPriceRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfPriceRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterFilter).to.be.at.most(numberOfCatalogPriceRules + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfPriceRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "824f8137-fae1-4411-8f4e-2a04e7ab4e29", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 4949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterIDReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b84a5c1-bc88-448c-8aa4-e9a7949e09a6", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by a!name 'Industrial'", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by a!name 'Industrial'", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.filterPriceRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfPriceRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterFilter).to.be.at.most(numberOfCatalogPriceRules + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfPriceRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a25089b2-d5e3-45cc-9516-781f7cd722f4", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 4951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc0be97e-f790-4521-a99f-50c7d9c73af7", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by cul!name 'Euro'", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by cul!name 'Euro'", + "timedOut": false, + "duration": 1112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.filterPriceRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfPriceRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterFilter).to.be.at.most(numberOfCatalogPriceRules + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfPriceRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4e7db1f-11bc-4fd2-8487-c51429c0525d", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 4946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterCurrencyReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79f8f03c-9b85-454d-b2a3-e2b306a41df4", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by cl!name 'United Kingdom'", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by cl!name 'United Kingdom'", + "timedOut": false, + "duration": 997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.filterPriceRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfPriceRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterFilter).to.be.at.most(numberOfCatalogPriceRules + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfPriceRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b43dad5-6044-492b-9381-36c62b79fa86", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 4942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterCountryReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e5c5f5d-be0b-412b-a298-68173d110d52", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by gl!name 'Guest'", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by gl!name 'Guest'", + "timedOut": false, + "duration": 1010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.filterPriceRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfPriceRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterFilter).to.be.at.most(numberOfCatalogPriceRules + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfPriceRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98dfbff7-a02b-45ef-b3eb-d41583880e9c", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 4929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterGroupReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2152bd2c-a0f9-4c66-93f2-d44fc2be41f7", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by from_quantity '6'", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by from_quantity '6'", + "timedOut": false, + "duration": 971, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterFromQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.filterPriceRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfPriceRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterFilter).to.be.at.most(numberOfCatalogPriceRules + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfPriceRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "002f7c89-7e12-4278-976d-057a0c57f818", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 4922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterFromQuantityReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b0faa0c-5cb9-4a59-aebe-709a42056867", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by a!reduction_type 'Amount'", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by a!reduction_type 'Amount'", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterReductionType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.filterPriceRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfPriceRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterFilter).to.be.at.most(numberOfCatalogPriceRules + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfPriceRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08389206-4a30-445b-b20f-9f99b9c0890c", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 4949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterReductionTypeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf5314b8-d338-4b84-a62b-437cc69e3269", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by reduction '26'", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by reduction '26'", + "timedOut": false, + "duration": 956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterReduction\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.filterPriceRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfPriceRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterFilter).to.be.at.most(numberOfCatalogPriceRules + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfPriceRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8e24b8b-5a2b-4eb1-943a-717325f910d3", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 4988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterReductionReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45827492-a813-4d11-b984-b5e6fbfcf6ad", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by date Beginning and date End", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by date Beginning and date End", + "timedOut": false, + "duration": 631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterDateBeginning\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter by date\n return [4 /*yield*/, catalogPriceRules_1.default.filterByDate(page, test.args.filterBy, test.args.firstDate, test.args.secondDate)];\n case 2:\n // Filter by date\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(dateToCheck);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07ccea64-5863-4b96-adff-26d2c21c0169", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterDateBeginningReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccd4de47-3991-42ea-a1ba-80220bf62827", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by date Beginning and date End", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should filter by date Beginning and date End", + "timedOut": false, + "duration": 759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterDateEnd\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter by date\n return [4 /*yield*/, catalogPriceRules_1.default.filterByDate(page, test.args.filterBy, test.args.firstDate, test.args.secondDate)];\n case 2:\n // Filter by date\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, catalogPriceRules_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(dateToCheck);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dd3f14c-1bdd-4c7e-bbd8-c1c63e837cc3", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Filter catalog price rules table should reset all filters", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_filterDateEndReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPriceRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfPriceRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPriceRulesAfterReset).to.equal(numberOfCatalogPriceRules + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12e386e8-1e42-4b36-8fba-621550bcefe4", + "parentUUID": "9f8c7ae3-81e3-4c6a-95b7-13b2e1912e78", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "824f8137-fae1-4411-8f4e-2a04e7ab4e29", + "5b84a5c1-bc88-448c-8aa4-e9a7949e09a6", + "a25089b2-d5e3-45cc-9516-781f7cd722f4", + "dc0be97e-f790-4521-a99f-50c7d9c73af7", + "f4e7db1f-11bc-4fd2-8487-c51429c0525d", + "79f8f03c-9b85-454d-b2a3-e2b306a41df4", + "8b43dad5-6044-492b-9381-36c62b79fa86", + "5e5c5f5d-be0b-412b-a298-68173d110d52", + "98dfbff7-a02b-45ef-b3eb-d41583880e9c", + "2152bd2c-a0f9-4c66-93f2-d44fc2be41f7", + "002f7c89-7e12-4278-976d-057a0c57f818", + "2b0faa0c-5cb9-4a59-aebe-709a42056867", + "08389206-4a30-445b-b20f-9f99b9c0890c", + "cf5314b8-d338-4b84-a62b-437cc69e3269", + "b8e24b8b-5a2b-4eb1-943a-717325f910d3", + "45827492-a813-4d11-b984-b5e6fbfcf6ad", + "07ccea64-5863-4b96-adff-26d2c21c0169", + "ccd4de47-3991-42ea-a1ba-80220bf62827", + "1dd3f14c-1bdd-4c7e-bbd8-c1c63e837cc3", + "12e386e8-1e42-4b36-8fba-621550bcefe4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 49040, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "title": "Sort catalog price rules table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_specific_price_rule' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'id_specific_price_rule' 'down' and check result", + "timedOut": false, + "duration": 1188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c28a772b-5b92-41da-9d50-cbbf34ecfd19", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!name' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'a!name' 'up' and check result", + "timedOut": false, + "duration": 1320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87e4bb42-bb44-4dea-8ebb-4520a3c606b5", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!name' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'a!name' 'down' and check result", + "timedOut": false, + "duration": 1285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a7d4a3b-d2e4-442c-a819-013a2c246815", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'cul!name' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'cul!name' 'up' and check result", + "timedOut": false, + "duration": 1207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByCurrencyAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3da5b9d0-4647-45ea-b744-6b06cfc3cab2", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'cul!name' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'cul!name' 'down' and check result", + "timedOut": false, + "duration": 1277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByCurrencyDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29a5f0c2-d0bf-4924-92cb-c0e9e5432b7c", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'cl!name' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'cl!name' 'up' and check result", + "timedOut": false, + "duration": 1271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByCountryAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9e32933-9a2c-410f-9863-2370cab5dada", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'cl!name' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'cl!name' 'down' and check result", + "timedOut": false, + "duration": 1246, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByCountryDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "941b4f3e-ed0a-4789-98ac-86d44ffa6204", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'gl!name' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'gl!name' 'up' and check result", + "timedOut": false, + "duration": 1250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByGroupAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18c32ae0-703a-4c7d-908f-3eaaede612ef", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'gl!name' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'gl!name' 'down' and check result", + "timedOut": false, + "duration": 1280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByGroupDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf49fc5c-bcf3-4317-9bb9-a4bf06299991", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'from_quantity' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'from_quantity' 'up' and check result", + "timedOut": false, + "duration": 1193, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByFromQuantityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2338ad0-264e-4048-8cff-cb973034b08a", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'from_quantity' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'from_quantity' 'down' and check result", + "timedOut": false, + "duration": 1296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByFromQuantityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94071132-0473-4fe1-a277-a7813e4d7a8e", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!reduction_type' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'a!reduction_type' 'up' and check result", + "timedOut": false, + "duration": 1172, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByReducingTypeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf865835-0948-42fd-8b4b-a19e33e14fab", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!reduction_type' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'a!reduction_type' 'down' and check result", + "timedOut": false, + "duration": 1235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByReductionTypeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0a0189f-33cd-4349-8ab3-3435c0fdf3b1", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reduction' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'reduction' 'up' and check result", + "timedOut": false, + "duration": 1337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByReductionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "677301ae-fe76-469c-a559-f8b7a0ae9ecf", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reduction' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'reduction' 'down' and check result", + "timedOut": false, + "duration": 1201, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByReductionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7b69b3b-b4b7-4989-9d03-7f79c97f3ac9", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'from' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'from' 'up' and check result", + "timedOut": false, + "duration": 1284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByDateFromAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5971d80-0b8e-4c21-927e-7ae008357e40", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'from' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'from' 'down' and check result", + "timedOut": false, + "duration": 1336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByDateFromDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05380829-a4de-435e-a121-3c4c5b947420", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'to' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'to' 'up' and check result", + "timedOut": false, + "duration": 1186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByDateToAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9f4e447-2686-4066-86c7-fd197e38f836", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'to' 'down' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'to' 'down' and check result", + "timedOut": false, + "duration": 1231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByDateToDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1375394-4f22-4aa2-a79c-6c39b7c56751", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_specific_price_rule' 'up' and check result", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Sort catalog price rules table should sort by 'id_specific_price_rule' 'up' and check result", + "timedOut": false, + "duration": 1314, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f63e27f-4019-4954-8b27-65b3fa1c6154", + "parentUUID": "eb3c828e-b971-4b83-a6df-e119d64e4f09", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c28a772b-5b92-41da-9d50-cbbf34ecfd19", + "87e4bb42-bb44-4dea-8ebb-4520a3c606b5", + "0a7d4a3b-d2e4-442c-a819-013a2c246815", + "3da5b9d0-4647-45ea-b744-6b06cfc3cab2", + "29a5f0c2-d0bf-4924-92cb-c0e9e5432b7c", + "f9e32933-9a2c-410f-9863-2370cab5dada", + "941b4f3e-ed0a-4789-98ac-86d44ffa6204", + "18c32ae0-703a-4c7d-908f-3eaaede612ef", + "cf49fc5c-bcf3-4317-9bb9-a4bf06299991", + "d2338ad0-264e-4048-8cff-cb973034b08a", + "94071132-0473-4fe1-a277-a7813e4d7a8e", + "cf865835-0948-42fd-8b4b-a19e33e14fab", + "f0a0189f-33cd-4349-8ab3-3435c0fdf3b1", + "677301ae-fe76-469c-a559-f8b7a0ae9ecf", + "e7b69b3b-b4b7-4989-9d03-7f79c97f3ac9", + "d5971d80-0b8e-4c21-927e-7ae008357e40", + "05380829-a4de-435e-a121-3c4c5b947420", + "b9f4e447-2686-4066-86c7-fd197e38f836", + "c1375394-4f22-4aa2-a79c-6c39b7c56751", + "9f63e27f-4019-4954-8b27-65b3fa1c6154" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25109, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ea69426b-b80c-4ff2-a224-487e0de41cf0", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee1bf4a9-7344-404a-bcb1-b5588f8629d0", + "parentUUID": "ea69426b-b80c-4ff2-a224-487e0de41cf0", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Pagination next and previous should click on next", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34f3f8ed-cb68-4797-b42d-51951449fd5a", + "parentUUID": "ea69426b-b80c-4ff2-a224-487e0de41cf0", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 1023, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f3e1a23-5faf-4c35-8fa2-8df9b0f7aefe", + "parentUUID": "ea69426b-b80c-4ff2-a224-487e0de41cf0", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 50 per page", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Pagination next and previous should change the item number to 50 per page", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7913e64d-8d78-4e92-a0f1-0909840904a8", + "parentUUID": "ea69426b-b80c-4ff2-a224-487e0de41cf0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ee1bf4a9-7344-404a-bcb1-b5588f8629d0", + "34f3f8ed-cb68-4797-b42d-51951449fd5a", + "7f3e1a23-5faf-4c35-8fa2-8df9b0f7aefe", + "7913e64d-8d78-4e92-a0f1-0909840904a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3852, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "915a1413-a58e-418a-8037-eab70568c3f5", + "title": "Bulk delete catalog price rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/07_discounts/02_catalogPriceRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should bulk delete cart rules", + "fullTitle": "BO - Catalog - Discounts : Filter, sort and pagination catalog price rules table Bulk delete catalog price rules should bulk delete cart rules", + "timedOut": false, + "duration": 605, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_discounts_catalogPriceRules_filterSortAndPagination_bulkDeletePriceRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeletePriceRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.bulkDeletePriceRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(catalogPriceRules_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7d8027c-5bab-4234-bd69-f29e02e051ee", + "parentUUID": "915a1413-a58e-418a-8037-eab70568c3f5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b7d8027c-5bab-4234-bd69-f29e02e051ee" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 605, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c34def3e-af93-42f7-9298-aa9400d56d68", + "cbb0402a-6883-4a78-bab1-4c514a3f8352", + "1038c061-8d57-40a8-bcf0-04f1010882f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6286, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9fa4f250-adf9-4f15-ace6-d01d9566524d", + "title": "BO - Stocks - Movements : Filter by category, movement type, employee and period", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Stocks - Movements : Filter by category, movement type, employee and period\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period \"before all\" hook in \"BO - Stocks - Movements : Filter by category, movement type, employee and period\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a0c2157-8657-42e9-8110-4ae05918aa91", + "parentUUID": "9fa4f250-adf9-4f15-ace6-d01d9566524d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Stocks - Movements : Filter by category, movement type, employee and period\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period \"after all\" hook in \"BO - Stocks - Movements : Filter by category, movement type, employee and period\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "235fd09f-9676-4b11-a3bb-564fd359658e", + "parentUUID": "9fa4f250-adf9-4f15-ace6-d01d9566524d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "9a6894e3-185e-4501-af41-3fdc8e754f4d", + "title": "PRE-TEST: Create employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create employee\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period PRE-TEST: Create employee \"before all\" hook in \"PRE-TEST: Create employee\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c967c569-6620-4ea8-9d0b-9d59006e14cb", + "parentUUID": "9a6894e3-185e-4501-af41-3fdc8e754f4d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create employee\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period PRE-TEST: Create employee \"after all\" hook in \"PRE-TEST: Create employee\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b1fe122a-9b5d-40a3-9599-17b2e7c43b1e", + "parentUUID": "9a6894e3-185e-4501-af41-3fdc8e754f4d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period PRE-TEST: Create employee should login in BO", + "timedOut": false, + "duration": 1813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7da20e58-7978-45bb-bbc0-10f9bfe639fe", + "parentUUID": "9a6894e3-185e-4501-af41-3fdc8e754f4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period PRE-TEST: Create employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 4068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_preTest_1_goToTeamPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTeamPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b9f3792-d202-46cd-ab3d-1e33c4445b9e", + "parentUUID": "9a6894e3-185e-4501-af41-3fdc8e754f4d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period PRE-TEST: Create employee should reset all filters and get number of employees", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_preTest_1_resetFilterEmployeeTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterEmployeeTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30a0fbe9-f993-44dc-ae5e-f574eba5850f", + "parentUUID": "9a6894e3-185e-4501-af41-3fdc8e754f4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period PRE-TEST: Create employee should go to add new employee page", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_preTest_1_goToNewEmployeePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewEmployeePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d728384-3e92-4ff3-91fa-e9c4e9920763", + "parentUUID": "9a6894e3-185e-4501-af41-3fdc8e754f4d", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee and check result", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period PRE-TEST: Create employee should create employee and check result", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_preTest_1_createEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bedfc54-9dde-443f-9950-a3097c09259e", + "parentUUID": "9a6894e3-185e-4501-af41-3fdc8e754f4d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7da20e58-7978-45bb-bbc0-10f9bfe639fe", + "0b9f3792-d202-46cd-ab3d-1e33c4445b9e", + "30a0fbe9-f993-44dc-ae5e-f574eba5850f", + "7d728384-3e92-4ff3-91fa-e9c4e9920763", + "2bedfc54-9dde-443f-9950-a3097c09259e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9678, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "430af0cf-f024-429f-a688-e60c50c50c38", + "title": "Check all filters", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "bbb51720-be08-4c35-b8ac-6ca6e625c394", + "title": "BO - Bulk edit quantity by setting input value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Bulk edit quantity by setting input value should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e96492a3-8b57-4137-b41c-498925c4d933", + "parentUUID": "bbb51720-be08-4c35-b8ac-6ca6e625c394", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Bulk edit quantity by setting input value should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 5485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c30d0263-b079-4f27-9f54-a9618a54ccb2", + "parentUUID": "bbb51720-be08-4c35-b8ac-6ca6e625c394", + "isHook": false, + "skipped": false + }, + { + "title": "should add to quantities by setting input value", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Bulk edit quantity by setting input value should add to quantities by setting input value", + "timedOut": false, + "duration": 992, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_addToQuantities\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addToQuantities', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.bulkEditQuantityWithInput(page, 120)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b719e5f9-5cb5-4844-9828-ed7f8c349302", + "parentUUID": "bbb51720-be08-4c35-b8ac-6ca6e625c394", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e96492a3-8b57-4137-b41c-498925c4d933", + "c30d0263-b079-4f27-9f54-a9618a54ccb2", + "b719e5f9-5cb5-4844-9828-ed7f8c349302" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8187, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "abcf6ec3-3f76-470b-8d1d-ce857df9678f", + "title": "BO - Check Filter \"Movement Type\" after Employee Edition", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Movements page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Movement Type\" after Employee Edition should go to Movements page", + "timedOut": false, + "duration": 144, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToMovementsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMovementsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.goToSubTabMovements(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23442268-2a9a-4645-9780-ebfc72f3c779", + "parentUUID": "abcf6ec3-3f76-470b-8d1d-ce857df9678f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the filter \"Movement Type\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Movement Type\" after Employee Edition should check the filter \"Movement Type\"", + "timedOut": false, + "duration": 103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_checkFilterMovementType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isAdvancedFiltersVisible, choices;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFilterMovementType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersVisible(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.isAdvancedFiltersVisible(page)];\n case 3:\n isAdvancedFiltersVisible = _a.sent();\n (0, chai_1.expect)(isAdvancedFiltersVisible).to.be.eq(true);\n return [4 /*yield*/, movements_1.default.getAdvancedFiltersMovementTypeChoices(page)];\n case 4:\n choices = _a.sent();\n (0, chai_1.expect)(choices).to.be.length(2);\n (0, chai_1.expect)(choices).to.contains('None');\n (0, chai_1.expect)(choices).to.contains('Employee Edition');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78468006-45f0-404d-8a15-45257a3ec01f", + "parentUUID": "abcf6ec3-3f76-470b-8d1d-ce857df9678f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "23442268-2a9a-4645-9780-ebfc72f3c779", + "78468006-45f0-404d-8a15-45257a3ec01f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 247, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "title": "FO - Make an order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters FO - Make an order should go to FO", + "timedOut": false, + "duration": 1868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22cd0f59-c780-4042-8916-b044cf884d53", + "parentUUID": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters FO - Make an order should go to the first product", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToFirstProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProduct', baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d33a01cb-5713-4e6c-b29f-5733a5a05103", + "parentUUID": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters FO - Make an order should add product to cart", + "timedOut": false, + "duration": 3649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n // Add the created product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a3064ba-e673-4630-8c0a-d1adfeffd632", + "parentUUID": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and sign in by default customer", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters FO - Make an order should proceed to checkout and sign in by default customer", + "timedOut": false, + "duration": 1309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_proceedToCheckoutAndSignIn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckoutAndSignIn', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3556bcd-2a7c-4992-a23e-0aad62ff4fe7", + "parentUUID": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters FO - Make an order should go to delivery step", + "timedOut": false, + "duration": 291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5236d4d3-945c-41dd-9101-a2000dee5d27", + "parentUUID": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters FO - Make an order should go to payment step", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea22769e-f345-46fa-9a3a-316fd5fcef87", + "parentUUID": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters FO - Make an order should choose payment method and confirm the order", + "timedOut": false, + "duration": 1582, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6572ad7-b686-4484-9e19-5839e78bd1ee", + "parentUUID": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters FO - Make an order should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41bbc55a-db9a-481d-8a35-677cf56a3e72", + "parentUUID": "4cddfd59-f280-43b7-bfeb-5c6be4421006", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "22cd0f59-c780-4042-8916-b044cf884d53", + "d33a01cb-5713-4e6c-b29f-5733a5a05103", + "0a3064ba-e673-4630-8c0a-d1adfeffd632", + "b3556bcd-2a7c-4992-a23e-0aad62ff4fe7", + "5236d4d3-945c-41dd-9101-a2000dee5d27", + "ea22769e-f345-46fa-9a3a-316fd5fcef87", + "f6572ad7-b686-4484-9e19-5839e78bd1ee", + "41bbc55a-db9a-481d-8a35-677cf56a3e72" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10408, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a900f511-0fbb-4fab-bae6-e5e00cf52502", + "title": "BO - Change the status to delivered", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Change the status to delivered should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e5a893d-ee68-4ccb-a5e1-014a66c1077b", + "parentUUID": "a900f511-0fbb-4fab-bae6-e5e00cf52502", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get the last order ID", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Change the status to delivered should reset filter and get the last order ID", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'id_order', 1)];\n case 3:\n result = _a.sent();\n orderId = parseInt(result, 10);\n (0, chai_1.expect)(orderId).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f4e9e85-b50d-42c3-a444-925e9a8534e7", + "parentUUID": "a900f511-0fbb-4fab-bae6-e5e00cf52502", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Change the status to delivered should update order status", + "timedOut": false, + "duration": 991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.delivered)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ed86316-9cc9-4e53-9d2d-139b8dcdf3cf", + "parentUUID": "a900f511-0fbb-4fab-bae6-e5e00cf52502", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7e5a893d-ee68-4ccb-a5e1-014a66c1077b", + "9f4e9e85-b50d-42c3-a444-925e9a8534e7", + "0ed86316-9cc9-4e53-9d2d-139b8dcdf3cf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6828, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a6482868-ba3d-406b-96f5-58b5bba77337", + "title": "BO - Check Filter \"Movement Type\" after FO Order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Movement Type\" after FO Order should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToStocksPageAfterFOOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPageAfterFOOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0326cebe-8ae1-4911-9ad8-4e8909f870e5", + "parentUUID": "a6482868-ba3d-406b-96f5-58b5bba77337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Movements page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Movement Type\" after FO Order should go to Movements page", + "timedOut": false, + "duration": 184, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToMovementsPageAfterFOOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMovementsPageAfterFOOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.goToSubTabMovements(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7280f288-59ed-4d8d-99b2-a28e620c80cf", + "parentUUID": "a6482868-ba3d-406b-96f5-58b5bba77337", + "isHook": false, + "skipped": false + }, + { + "title": "should check the filter \"Movement Type\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Movement Type\" after FO Order should check the filter \"Movement Type\"", + "timedOut": false, + "duration": 68, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_checkFilterMovementTypeAfterFOOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var choices;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFilterMovementTypeAfterFOOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersVisible(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAdvancedFiltersMovementTypeChoices(page)];\n case 3:\n choices = _a.sent();\n (0, chai_1.expect)(choices).to.be.length(3);\n (0, chai_1.expect)(choices).to.contains('None');\n (0, chai_1.expect)(choices).to.contains('Employee Edition');\n (0, chai_1.expect)(choices).to.contains('Customer Order');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a44d4afc-dc95-4ed2-9d72-0318ed635e85", + "parentUUID": "a6482868-ba3d-406b-96f5-58b5bba77337", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0326cebe-8ae1-4911-9ad8-4e8909f870e5", + "7280f288-59ed-4d8d-99b2-a28e620c80cf", + "a44d4afc-dc95-4ed2-9d72-0318ed635e85" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4983, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "322169c7-03ff-4b67-bed4-149d0828d860", + "title": "BO - Filter by \"Movement Type\" to \"Customer Order'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set the filter \"Movement Type\" to \"Customer Order", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Filter by \"Movement Type\" to \"Customer Order' should set the filter \"Movement Type\" to \"Customer Order", + "timedOut": false, + "duration": 12121, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_setFilterMovementTypeCustomerOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFilterMovementTypeCustomerOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersVisible(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersMovementType(page, 'Customer Order')];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f6f94ab-db29-4813-9d4b-dbb8dbf7ec81", + "parentUUID": "322169c7-03ff-4b67-bed4-149d0828d860", + "isHook": false, + "skipped": false + }, + { + "title": "should check the filtered row", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Filter by \"Movement Type\" to \"Customer Order' should check the filtered row", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_checkFilteredRow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var name, reference, quantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFilteredRow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getTextColumnFromTable(page, 1, 'product_name')];\n case 2:\n name = _a.sent();\n (0, chai_1.expect)(name).to.contains(products_2.default.demo_1.name);\n return [4 /*yield*/, movements_1.default.getTextColumnFromTable(page, 1, 'reference')];\n case 3:\n reference = _a.sent();\n (0, chai_1.expect)(reference).to.be.equal(\"\".concat(products_2.default.demo_1.reference, \" \").concat(products_2.default.demo_1.reference));\n return [4 /*yield*/, movements_1.default.getTextColumnFromTable(page, 1, 'quantity')];\n case 4:\n quantity = _a.sent();\n (0, chai_1.expect)(quantity).to.be.equal('-1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a77ae1fe-25a4-4109-b6c3-77e87583839d", + "parentUUID": "322169c7-03ff-4b67-bed4-149d0828d860", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the link from the Column Type", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Filter by \"Movement Type\" to \"Customer Order' should click on the link from the Column Type", + "timedOut": false, + "duration": 1372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_clickLinkColumnType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickLinkColumnType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.clickOnMovementTypeLink(page, 1)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7bdaa25-90be-45cd-8497-9b3df6499248", + "parentUUID": "322169c7-03ff-4b67-bed4-149d0828d860", + "isHook": false, + "skipped": false + }, + { + "title": "should close the new tab", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Filter by \"Movement Type\" to \"Customer Order' should close the new tab", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_closeTabViewOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeTabViewOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "627391b7-f18a-4a4f-982e-7cb8674e234b", + "parentUUID": "322169c7-03ff-4b67-bed4-149d0828d860", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the filter \"Movement Type\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Filter by \"Movement Type\" to \"Customer Order' should reset the filter \"Movement Type\"", + "timedOut": false, + "duration": 415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_resetFilterMovementType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterMovementType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.resetAdvancedFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.be.gt(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed0d91c1-8c24-4a39-96b0-3a4065c860c1", + "parentUUID": "322169c7-03ff-4b67-bed4-149d0828d860", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1f6f94ab-db29-4813-9d4b-dbb8dbf7ec81", + "a77ae1fe-25a4-4109-b6c3-77e87583839d", + "d7bdaa25-90be-45cd-8497-9b3df6499248", + "627391b7-f18a-4a4f-982e-7cb8674e234b", + "ed0d91c1-8c24-4a39-96b0-3a4065c860c1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13969, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "title": "BO - Edit a product with the employee Ciara_Feest95@prestashop.com", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should logout from the employee \"demo@prestashop.com\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should logout from the employee \"demo@prestashop.com\"", + "timedOut": false, + "duration": 717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "[\n {\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_logoutFromBOPage\"\n },\n {\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n }\n]", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logoutFromBOPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9943df28-e0bd-432a-b17f-0b6c30f2829c", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + }, + { + "title": "should login from the employee \"Ciara_Feest95@prestashop.com", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should login from the employee \"Ciara_Feest95@prestashop.com", + "timedOut": false, + "duration": 1468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "[\n {\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_loginBOPageWithEmployee\"\n },\n {\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n }\n]", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginBOPageWithEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, loginBO_1.default.loginBO(this, page, employeeData.email, employeeData.password)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d8dd8bf-d8b2-4d24-938a-23266d8dcac4", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9f8dd75-7153-4732-b688-7dfdb8b35b85", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Mountain fox notebook'", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should filter by name 'Mountain fox notebook'", + "timedOut": false, + "duration": 1276, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', products_2.default.demo_8.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b61e986-8be6-43a4-95f9-c4621a12bd6c", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should go to the product page", + "timedOut": false, + "duration": 1350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdbdb776-000b-460d-9307-971f80ca4dae", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the Combinations tab", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should go to the Combinations tab", + "timedOut": false, + "duration": 128, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToCombinationsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCombinationsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'combinations')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'combinations')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41eed931-e7da-408c-ae53-778885786fb0", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + }, + { + "title": "should add 10 to 4 combinations", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should add 10 to 4 combinations", + "timedOut": false, + "duration": 3380, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_addQuantityToAllCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkActionsButtonVisible, modalTitle, successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addQuantityToAllCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.selectAllCombinations(page)];\n case 2:\n isBulkActionsButtonVisible = _a.sent();\n (0, chai_1.expect)(isBulkActionsButtonVisible).to.be.eq(true);\n return [4 /*yield*/, combinationsTab_1.default.clickOnEditCombinationsByBulkActions(page)];\n case 3:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).to.equal(combinationsTab_1.default.editCombinationsModalTitle(4));\n return [4 /*yield*/, combinationsTab_1.default.editCombinationsByBulkActions(page, editCombinationsData)];\n case 4:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.editCombinationsModalMessage(4));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db9ce6e9-7fcf-48db-9152-5c7d0858ca23", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from the employee \"Ciara_Feest95@prestashop.com\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should logout from the employee \"Ciara_Feest95@prestashop.com\"", + "timedOut": false, + "duration": 1069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "[\n {\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_logoutFromBOPageWithEmployee\"\n },\n {\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n }\n]", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logoutFromBOPageWithEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f527107-098b-40d9-91dd-2c39f0c8ef07", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + }, + { + "title": "should login from the employee \"demo@prestashop.com\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Edit a product with the employee Ciara_Feest95@prestashop.com should login from the employee \"demo@prestashop.com\"", + "timedOut": false, + "duration": 1392, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "[\n {\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_loginBOPage\"\n },\n {\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n }\n]", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginBOPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c911fcfe-827e-441f-a176-bdda92422af0", + "parentUUID": "f6b5a1c4-d557-41ce-a1f7-642818ee8572", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9943df28-e0bd-432a-b17f-0b6c30f2829c", + "9d8dd8bf-d8b2-4d24-938a-23266d8dcac4", + "e9f8dd75-7153-4732-b688-7dfdb8b35b85", + "6b61e986-8be6-43a4-95f9-c4621a12bd6c", + "fdbdb776-000b-460d-9307-971f80ca4dae", + "41eed931-e7da-408c-ae53-778885786fb0", + "db9ce6e9-7fcf-48db-9152-5c7d0858ca23", + "1f527107-098b-40d9-91dd-2c39f0c8ef07", + "c911fcfe-827e-441f-a176-bdda92422af0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15476, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dac283c7-71d1-4033-b8bb-64ea0e1f71cf", + "title": "BO - Check Filter \"Employee\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Employee\" should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToStocksPageAfterEmployeeEdition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPageAfterEmployeeEdition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79dd51a8-2b24-40af-8a2b-41a1ed92bfd1", + "parentUUID": "dac283c7-71d1-4033-b8bb-64ea0e1f71cf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Movements page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Employee\" should go to Movements page", + "timedOut": false, + "duration": 160, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToMovementsPageAfterEmployeeEdition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMovementsPageAfterEmployeeEdition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.goToSubTabMovements(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f62812c-f707-4fce-b5e0-ad0d0d20d359", + "parentUUID": "dac283c7-71d1-4033-b8bb-64ea0e1f71cf", + "isHook": false, + "skipped": false + }, + { + "title": "should set the filter \"Employee\" to \"Feest Ciara\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Employee\" should set the filter \"Employee\" to \"Feest Ciara\"", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_setFilterEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFilterEmployee', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f544d8c3-c9fc-45f2-98b7-b859113b2c74", + "parentUUID": "dac283c7-71d1-4033-b8bb-64ea0e1f71cf", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the filter \"Employee\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Employee\" should reset the filter \"Employee\"", + "timedOut": false, + "duration": 416, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_resetFilterEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.resetAdvancedFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElementsBeforeFilter = _a.sent();\n (0, chai_1.expect)(numElementsBeforeFilter).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0dc3c39e-fe6b-4c9c-aba4-55d84777ce35", + "parentUUID": "dac283c7-71d1-4033-b8bb-64ea0e1f71cf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "79dd51a8-2b24-40af-8a2b-41a1ed92bfd1", + "9f62812c-f707-4fce-b5e0-ad0d0d20d359", + "0dc3c39e-fe6b-4c9c-aba4-55d84777ce35" + ], + "failures": [], + "pending": [ + "f544d8c3-c9fc-45f2-98b7-b859113b2c74" + ], + "skipped": [], + "duration": 5345, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d64b724d-6a67-498f-ab1c-ded2f46c70cc", + "title": "BO - Check Filter \"Period\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set the filter \"Period\" to \"2024-01-29\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Period\" should set the filter \"Period\" to \"2024-01-29\"", + "timedOut": false, + "duration": 25268, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_setFilterPeriodToYesterday\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFilterPeriodToYesterday', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersVisible(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersEmployee(page, \"\".concat(employeeData.lastName, \" \").concat(employeeData.firstName))];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersDate(page, 'inf', dateYesterday, true)];\n case 4:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getTextForEmptyTable(page)];\n case 5:\n textContent = _a.sent();\n (0, chai_1.expect)(textContent).to.be.eq(movements_1.default.emptyTableMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96dec851-3b76-465c-9965-971fad130215", + "parentUUID": "d64b724d-6a67-498f-ab1c-ded2f46c70cc", + "isHook": false, + "skipped": false + }, + { + "title": "should set the filter \"Period\" to \"2024-01-30\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Period\" should set the filter \"Period\" to \"2024-01-30\"", + "timedOut": false, + "duration": 25721, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_setFilterPeriodToToday\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFilterPeriodToToday', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.resetAdvancedFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersVisible(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersEmployee(page, \"\".concat(employeeData.lastName, \" \").concat(employeeData.firstName))];\n case 4:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersDate(page, 'sup', dateToday, true)];\n case 5:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.be.eq(numElementsBeforeFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a9de366-c49c-4fd8-9fee-f193ba2224d6", + "parentUUID": "d64b724d-6a67-498f-ab1c-ded2f46c70cc", + "isHook": false, + "skipped": false + }, + { + "title": "should set the filter \"Period\" to \"2024-01-31\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Period\" should set the filter \"Period\" to \"2024-01-31\"", + "timedOut": false, + "duration": 25831, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_setFilterPeriodToTomorrow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFilterPeriodToTomorrow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.resetAdvancedFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersVisible(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersEmployee(page, \"\".concat(employeeData.lastName, \" \").concat(employeeData.firstName))];\n case 4:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersDate(page, 'sup', dateTomorrow, true)];\n case 5:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getTextForEmptyTable(page)];\n case 6:\n textContent = _a.sent();\n (0, chai_1.expect)(textContent).to.be.eq(movements_1.default.emptyTableMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9566696-8afd-445f-a544-6277efa8e604", + "parentUUID": "d64b724d-6a67-498f-ab1c-ded2f46c70cc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the filter \"Period\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Period\" should reset the filter \"Period\"", + "timedOut": false, + "duration": 474, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_resetFilterPeriod\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterPeriod', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.resetAdvancedFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.be.eq(numElementsBeforeFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f09d05ef-8272-4fc0-b8eb-fda0257a9859", + "parentUUID": "d64b724d-6a67-498f-ab1c-ded2f46c70cc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "96dec851-3b76-465c-9965-971fad130215", + "7a9de366-c49c-4fd8-9fee-f193ba2224d6", + "d9566696-8afd-445f-a544-6277efa8e604", + "f09d05ef-8272-4fc0-b8eb-fda0257a9859" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 77294, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2d9a04a3-ee72-4a85-ba49-3d4b676310b9", + "title": "BO - Check Filter \"Categories\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set the filter \"Categories\" to \"Clothes\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Categories\" should set the filter \"Categories\" to \"Clothes\"", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_setFilterCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFilterCategories', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersVisible(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersEmployee(page, \"\".concat(employeeData.lastName, \" \").concat(employeeData.firstName))];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersCategory(page, categories_1.default.clothes.name, true)];\n case 4:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getTextForEmptyTable(page)];\n case 5:\n textContent = _a.sent();\n (0, chai_1.expect)(textContent).to.be.eq(movements_1.default.emptyTableMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "404de97f-b264-42ba-9863-6fd2cecce04e", + "parentUUID": "2d9a04a3-ee72-4a85-ba49-3d4b676310b9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the filter \"Categories\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Categories\" should reset the filter \"Categories\"", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_resetFilterCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterCategories', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, movements_1.default.resetAdvancedFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.be.eq(numElementsBeforeFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1334a00-c773-4b95-a748-fd30773e032b", + "parentUUID": "2d9a04a3-ee72-4a85-ba49-3d4b676310b9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [], + "failures": [], + "pending": [ + "404de97f-b264-42ba-9863-6fd2cecce04e", + "c1334a00-c773-4b95-a748-fd30773e032b" + ], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "656feb7c-1ce6-468e-9ecb-d363f77a0abe", + "title": "BO - Disable a product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Disable a product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToProductsPageForDisabling\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageForDisabling', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f9f04eb-5f15-48b8-afe2-e945ba94ccab", + "parentUUID": "656feb7c-1ce6-468e-9ecb-d363f77a0abe", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Mountain fox notebook'", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Disable a product should filter by name 'Mountain fox notebook'", + "timedOut": false, + "duration": 1379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_filterToQuickEditForDisabling\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEditForDisabling', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', products_2.default.demo_8.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "681630d4-f8e5-468a-bf27-a534fddcfc2d", + "parentUUID": "656feb7c-1ce6-468e-9ecb-d363f77a0abe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Disable a product should go to the product page", + "timedOut": false, + "duration": 1166, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToProductPageForDisabling\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPageForDisabling', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39384305-7e03-42cc-bad9-6e2f9de13f80", + "parentUUID": "656feb7c-1ce6-468e-9ecb-d363f77a0abe", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the product", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Disable a product should disable the product", + "timedOut": false, + "duration": 1627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_disableProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1313be75-46d5-42d8-8971-6a5b4ad8c58a", + "parentUUID": "656feb7c-1ce6-468e-9ecb-d363f77a0abe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4f9f04eb-5f15-48b8-afe2-e945ba94ccab", + "681630d4-f8e5-468a-bf27-a534fddcfc2d", + "39384305-7e03-42cc-bad9-6e2f9de13f80", + "1313be75-46d5-42d8-8971-6a5b4ad8c58a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9033, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bfa3cc54-2e44-47d1-bc96-a4dce3bd939d", + "title": "BO - Check Filter \"Status\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Status\" should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToStocksPageAfterDisablingProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPageAfterDisablingProduct', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6027a43-449f-45cd-b0b4-f3ee21aebab3", + "parentUUID": "bfa3cc54-2e44-47d1-bc96-a4dce3bd939d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Movements page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Status\" should go to Movements page", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToMovementsPageAfterDisablingProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMovementsPageAfterDisablingProduct', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, stocks_1.default.goToSubTabMovements(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5514946c-146a-498b-9d91-7878d0e206b3", + "parentUUID": "bfa3cc54-2e44-47d1-bc96-a4dce3bd939d", + "isHook": false, + "skipped": false + }, + { + "title": "should set the filter \"Status\" to \"Disabled\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Status\" should set the filter \"Status\" to \"Disabled\"", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_setFilterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFilterStatus', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersVisible(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.setAdvancedFiltersStatus(page, false)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.be.eq(4);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "beb975a4-37ed-416c-a4ca-83616dd0a8f2", + "parentUUID": "bfa3cc54-2e44-47d1-bc96-a4dce3bd939d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the filter \"Status\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Check Filter \"Status\" should reset the filter \"Status\"", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_resetFilterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numElements;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterStatus', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, movements_1.default.resetAdvancedFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numElements = _a.sent();\n (0, chai_1.expect)(numElements).to.be.eq(numElementsBeforeFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31862fd4-877c-4e33-bc63-9ad2703ca75a", + "parentUUID": "bfa3cc54-2e44-47d1-bc96-a4dce3bd939d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [], + "failures": [], + "pending": [ + "f6027a43-449f-45cd-b0b4-f3ee21aebab3", + "5514946c-146a-498b-9d91-7878d0e206b3", + "beb975a4-37ed-416c-a4ca-83616dd0a8f2", + "31862fd4-877c-4e33-bc63-9ad2703ca75a" + ], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2cc92bea-67aa-4f88-9f7c-cc962be656d1", + "title": "BO - Enable a product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Enable a product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToProductsPageForEnabling\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageForEnabling', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f940d3d5-4713-4439-bb95-1da81c432b14", + "parentUUID": "2cc92bea-67aa-4f88-9f7c-cc962be656d1", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Mountain fox notebook'", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Enable a product should filter by name 'Mountain fox notebook'", + "timedOut": false, + "duration": 4182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_filterToQuickEditForEnabling\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEditForEnabling', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', products_2.default.demo_8.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc290cad-7c1a-4030-8291-f7859c2d5e5c", + "parentUUID": "2cc92bea-67aa-4f88-9f7c-cc962be656d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Enable a product should go to the product page", + "timedOut": false, + "duration": 1091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_goToProductPageForEnabling\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPageForEnabling', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efa52897-e89a-490e-a231-b1324ef8639f", + "parentUUID": "2cc92bea-67aa-4f88-9f7c-cc962be656d1", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the product", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Check all filters BO - Enable a product should enable the product", + "timedOut": false, + "duration": 1616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_enableProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProductStatus(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04a11588-ed7b-48f2-a512-6378ab36536d", + "parentUUID": "2cc92bea-67aa-4f88-9f7c-cc962be656d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f940d3d5-4713-4439-bb95-1da81c432b14", + "dc290cad-7c1a-4030-8291-f7859c2d5e5c", + "efa52897-e89a-490e-a231-b1324ef8639f", + "04a11588-ed7b-48f2-a512-6378ab36536d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11682, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "89c3443b-d230-46a0-b19e-579c690ed3b5", + "title": "Clean table tst_stock_mvt", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Clean table tst_stock_mvt\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Clean table tst_stock_mvt \"before all\" hook in \"Clean table tst_stock_mvt\"", + "timedOut": false, + "duration": 17, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!!global.GENERATE_FAILED_STEPS) return [3 /*break*/, 2];\n return [4 /*yield*/, (0, promise_1.createConnection)({\n user: global.INSTALL.DB_USER,\n password: global.INSTALL.DB_PASSWD,\n host: 'localhost',\n port: 3306,\n database: global.INSTALL.DB_NAME,\n connectionLimit: 5,\n //debug: true,\n })];\n case 1:\n dbConnection = _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f5945cc6-2e55-405a-b6cc-ffa4cad41561", + "parentUUID": "89c3443b-d230-46a0-b19e-579c690ed3b5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Clean table tst_stock_mvt\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Clean table tst_stock_mvt \"after all\" hook in \"Clean table tst_stock_mvt\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!dbConnection) return [3 /*break*/, 2];\n return [4 /*yield*/, dbConnection.end()];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cf4fcc95-aba1-4a52-a0b0-6e0b174aea6f", + "parentUUID": "89c3443b-d230-46a0-b19e-579c690ed3b5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should remove all lines in tst_stock_mvt", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period Clean table tst_stock_mvt should remove all lines in tst_stock_mvt", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_postTest_1_truncateTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, rows;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'truncateTable', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, dbConnection.execute(\"TRUNCATE TABLE \".concat(dbPrefix, \"stock_mvt\"))];\n case 2:\n _b.sent();\n return [4 /*yield*/, dbConnection.query({\n sql: \"SELECT * FROM \".concat(dbPrefix, \"stock_mvt\"),\n rowsAsArray: true,\n })];\n case 3:\n _a = __read.apply(void 0, [_b.sent(), 1]), rows = _a[0];\n (0, chai_1.expect)(rows).to.be.length(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6029b0c9-9dab-4081-9dd4-e10f0ff16a44", + "parentUUID": "89c3443b-d230-46a0-b19e-579c690ed3b5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6029b0c9-9dab-4081-9dd4-e10f0ff16a44" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1f21194f-e197-46eb-a38f-a23429a59704", + "title": "POST-TEST: Delete employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/01_filterMovements.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete employee\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period POST-TEST: Delete employee \"before all\" hook in \"POST-TEST: Delete employee\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee913802-28e4-4191-916c-b505534920c5", + "parentUUID": "1f21194f-e197-46eb-a38f-a23429a59704", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete employee\"", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period POST-TEST: Delete employee \"after all\" hook in \"POST-TEST: Delete employee\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d4738e57-e8b3-4b41-bcc8-6a6016ecf71a", + "parentUUID": "1f21194f-e197-46eb-a38f-a23429a59704", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period POST-TEST: Delete employee should login in BO", + "timedOut": false, + "duration": 1678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcc7b7a3-7b3b-4eb9-b05a-9d4893cc3f70", + "parentUUID": "1f21194f-e197-46eb-a38f-a23429a59704", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period POST-TEST: Delete employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_postTest_2_goToEmployeesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b00dd95b-bd05-4f61-a08d-6d2b3aebc2d7", + "parentUUID": "1f21194f-e197-46eb-a38f-a23429a59704", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of employees by email", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period POST-TEST: Delete employee should filter list of employees by email", + "timedOut": false, + "duration": 973, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_postTest_2_filterEmployeesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmployeesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', employeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(employeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba906e8c-5aa1-4fb7-affb-c0eb80ba613a", + "parentUUID": "1f21194f-e197-46eb-a38f-a23429a59704", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employee", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period POST-TEST: Delete employee should delete employee", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_postTest_2_deleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteEmployee(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "610530cb-59c8-45f2-aa72-842f6ef9a3f8", + "parentUUID": "1f21194f-e197-46eb-a38f-a23429a59704", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of employees", + "fullTitle": "BO - Stocks - Movements : Filter by category, movement type, employee and period POST-TEST: Delete employee should reset filter and check the number of employees", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_filterMovements_postTest_2_resetAfterDeleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f147dfe-1890-440f-92b2-05aa8b23de2b", + "parentUUID": "1f21194f-e197-46eb-a38f-a23429a59704", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bcc7b7a3-7b3b-4eb9-b05a-9d4893cc3f70", + "b00dd95b-bd05-4f61-a08d-6d2b3aebc2d7", + "ba906e8c-5aa1-4fb7-affb-c0eb80ba613a", + "610530cb-59c8-45f2-aa72-842f6ef9a3f8", + "7f147dfe-1890-440f-92b2-05aa8b23de2b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8261, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3a20511a-a9b5-4046-abca-8d6440af2807", + "title": "BO - Catalog - Movements : Sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Movements : Sort and pagination\"", + "fullTitle": "BO - Catalog - Movements : Sort and pagination \"before all\" hook in \"BO - Catalog - Movements : Sort and pagination\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a079f9a-e729-4ce1-b44f-2b7a258040be", + "parentUUID": "3a20511a-a9b5-4046-abca-8d6440af2807", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Movements : Sort and pagination\"", + "fullTitle": "BO - Catalog - Movements : Sort and pagination \"after all\" hook in \"BO - Catalog - Movements : Sort and pagination\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2a426d98-ca51-4939-805d-ef9e86b84e97", + "parentUUID": "3a20511a-a9b5-4046-abca-8d6440af2807", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Movements : Sort and pagination should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c649c7b0-5757-4fcd-8f00-890a1ab2a088", + "parentUUID": "3a20511a-a9b5-4046-abca-8d6440af2807", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "39a27c85-cb44-4d7c-974a-d2bd709bc509", + "title": "PRE-TEST: Bulk edit the quantity of products in stocks table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Movements : Sort and pagination PRE-TEST: Bulk edit the quantity of products in stocks table should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 5079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf9a8423-1692-4b96-8e85-fb80de3cb184", + "parentUUID": "39a27c85-cb44-4d7c-974a-d2bd709bc509", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk edit the quantity of the product 'Hummingbird printed t-shirt'", + "fullTitle": "BO - Catalog - Movements : Sort and pagination PRE-TEST: Bulk edit the quantity of products in stocks table should bulk edit the quantity of the product 'Hummingbird printed t-shirt'", + "timedOut": false, + "duration": 552, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_bulkEditQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkEditQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, products_1.default.demo_1.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.bulkEditQuantityWithInput(page, 301)];\n case 3:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e53d6e63-bdc4-4de7-909e-e4356cc208d6", + "parentUUID": "39a27c85-cb44-4d7c-974a-d2bd709bc509", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bf9a8423-1692-4b96-8e85-fb80de3cb184", + "e53d6e63-bdc4-4de7-909e-e4356cc208d6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5631, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "title": "Sort movements table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Movements page", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should go to Movements page", + "timedOut": false, + "duration": 146, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_goToMovementsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMovementsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.goToSubTabMovements(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0c2ce62-68ca-4e7f-a323-5407385dbb59", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'desc' and check result", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should sort by 'date_add' 'desc' and check result", + "timedOut": false, + "duration": 2347, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_sortByDateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, movements_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70a74d08-a9f7-44da-91c8-cec543b0d90e", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'asc' and check result", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should sort by 'date_add' 'asc' and check result", + "timedOut": false, + "duration": 2346, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_sortByDateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, movements_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd391753-5c86-47c1-8f69-10f4afd8ea0a", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'product_id' 'asc' and check result", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should sort by 'product_id' 'asc' and check result", + "timedOut": false, + "duration": 2370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_sortByProductIDAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, movements_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2753850d-146d-4ae8-bb8b-2cd9a6bcdbd5", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'product_id' 'desc' and check result", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should sort by 'product_id' 'desc' and check result", + "timedOut": false, + "duration": 2322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_sortByProductIDDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, movements_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f88b61a3-afc1-4bad-bb2b-76fd2fbd1672", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'product_name' 'asc' and check result", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should sort by 'product_name' 'asc' and check result", + "timedOut": false, + "duration": 2341, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_sortByProductNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, movements_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9935e0db-80a0-4310-882e-10c76938c0ca", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'product_name' 'desc' and check result", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should sort by 'product_name' 'desc' and check result", + "timedOut": false, + "duration": 2345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_sortByProductNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, movements_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "645b3505-3da3-4d25-9b37-60de7a3ed5e0", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 2336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, movements_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7c06085-47c0-4ba0-ae74-a6425ab17e61", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Sort movements table should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 2330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, movements_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0824182f-6e85-47d1-9b68-ed916c3e184f", + "parentUUID": "600cbac6-ac32-4b98-aa41-e31ea37265e8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e0c2ce62-68ca-4e7f-a323-5407385dbb59", + "70a74d08-a9f7-44da-91c8-cec543b0d90e", + "fd391753-5c86-47c1-8f69-10f4afd8ea0a", + "2753850d-146d-4ae8-bb8b-2cd9a6bcdbd5", + "f88b61a3-afc1-4bad-bb2b-76fd2fbd1672", + "9935e0db-80a0-4310-882e-10c76938c0ca", + "645b3505-3da3-4d25-9b37-60de7a3ed5e0", + "c7c06085-47c0-4ba0-ae74-a6425ab17e61", + "0824182f-6e85-47d1-9b68-ed916c3e184f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 18883, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ea45134e-e80d-4d9f-b071-fb48bcba51dd", + "title": "Bulk edit the quantity of products in the 2 pages of stocks table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Bulk edit the quantity of products in the 2 pages of stocks table should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 3989, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_goToStocksPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ec6dacc-641a-451c-a646-7f8dd12193a8", + "parentUUID": "ea45134e-e80d-4d9f-b071-fb48bcba51dd", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk edit the quantity of all products in the first page", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Bulk edit the quantity of products in the 2 pages of stocks table should bulk edit the quantity of all products in the first page", + "timedOut": false, + "duration": 991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_bulkEditQuantityFirstPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkEditQuantityFirstPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.bulkEditQuantityWithInput(page, 301)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "352aa646-7a00-4d1a-a608-5b4d11f9cba9", + "parentUUID": "ea45134e-e80d-4d9f-b071-fb48bcba51dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the second page and bulk edit the quantity of all products", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Bulk edit the quantity of products in the 2 pages of stocks table should go to the second page and bulk edit the quantity of all products", + "timedOut": false, + "duration": 452, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_goToSecondPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSecondPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.paginateTo(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.bulkEditQuantityWithInput(page, 301)];\n case 3:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45ac6f60-85b8-43cb-97e2-483a472b9644", + "parentUUID": "ea45134e-e80d-4d9f-b071-fb48bcba51dd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0ec6dacc-641a-451c-a646-7f8dd12193a8", + "352aa646-7a00-4d1a-a608-5b4d11f9cba9", + "45ac6f60-85b8-43cb-97e2-483a472b9644" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5432, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb7bf492-a803-4434-8bcf-8b78c545dd65", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_movements/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Movements page", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Pagination next and previous should go to Movements page", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_goToMovementsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMovementsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.goToSubTabMovements(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, movements_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(movements_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa63e546-9fff-4783-a6cc-d4ee68635737", + "parentUUID": "bb7bf492-a803-4434-8bcf-8b78c545dd65", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the next page", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Pagination next and previous should go to the next page", + "timedOut": false, + "duration": 162, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_goToNextPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNextPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.paginateTo(page, 2)];\n case 2:\n pageNumber = _a.sent();\n (0, chai_1.expect)(pageNumber).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cf7fa8f-143b-4ece-8205-1b697dca8173", + "parentUUID": "bb7bf492-a803-4434-8bcf-8b78c545dd65", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to the first page", + "fullTitle": "BO - Catalog - Movements : Sort and pagination Pagination next and previous should go back to the first page", + "timedOut": false, + "duration": 143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_movements_sortAndPagination_goBackToFirstPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToFirstPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, movements_1.default.paginateTo(page, 1)];\n case 2:\n pageNumber = _a.sent();\n (0, chai_1.expect)(pageNumber).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a339a212-d014-4e61-b903-6e258188db7a", + "parentUUID": "bb7bf492-a803-4434-8bcf-8b78c545dd65", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fa63e546-9fff-4783-a6cc-d4ee68635737", + "6cf7fa8f-143b-4ece-8205-1b697dca8173", + "a339a212-d014-4e61-b903-6e258188db7a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 536, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c649c7b0-5757-4fcd-8f00-890a1ab2a088" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1739, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "161b3840-89fe-4648-b4d3-6217c66baeeb", + "title": "BO - Catalog - Stocks : Simple filter stocks", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_simpleFilterStocks.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_simpleFilterStocks.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Stocks : Simple filter stocks\"", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks \"before all\" hook in \"BO - Catalog - Stocks : Simple filter stocks\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29e4bc40-844d-46fb-9bf3-415cb78935d8", + "parentUUID": "161b3840-89fe-4648-b4d3-6217c66baeeb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Stocks : Simple filter stocks\"", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks \"after all\" hook in \"BO - Catalog - Stocks : Simple filter stocks\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9e7e9415-15e5-45df-9adc-78a247920160", + "parentUUID": "161b3840-89fe-4648-b4d3-6217c66baeeb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks should login in BO", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "649a0956-b2f1-4e88-9cd2-5eaa09ff72a8", + "parentUUID": "161b3840-89fe-4648-b4d3-6217c66baeeb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 5069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_simpleFilterStocks_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03925e52-5a76-4be1-bb63-ee198018d6d6", + "parentUUID": "161b3840-89fe-4648-b4d3-6217c66baeeb", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of products in list", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks should get number of products in list", + "timedOut": false, + "duration": 1363, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_simpleFilterStocks_getNumberOfProductsInList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProductsInList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3be3f1e5-f2ff-4446-8946-4c9b156aa067", + "parentUUID": "161b3840-89fe-4648-b4d3-6217c66baeeb", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "0c42687a-a7b0-4576-a06f-9f283db8c1fb", + "title": "Filter products by name, reference and supplier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/01_simpleFilterStocks.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/01_simpleFilterStocks.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by product_name 'Hummingbird printed t-shirt'", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks Filter products by name, reference and supplier should filter by product_name 'Hummingbird printed t-shirt'", + "timedOut": false, + "duration": 1230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_simpleFilterStocks_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.most(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67d32078-65b6-46dd-b683-f1cceb1d3e57", + "parentUUID": "0c42687a-a7b0-4576-a06f-9f283db8c1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks Filter products by name, reference and supplier should reset all filters", + "timedOut": false, + "duration": 524, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_simpleFilterStocks_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94102557-73c8-4088-abc4-46324aedd2ae", + "parentUUID": "0c42687a-a7b0-4576-a06f-9f283db8c1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by reference 'demo_1'", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks Filter products by name, reference and supplier should filter by reference 'demo_1'", + "timedOut": false, + "duration": 1363, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_simpleFilterStocks_filterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.most(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be38855d-1e7a-4405-9f3c-46c51d41172e", + "parentUUID": "0c42687a-a7b0-4576-a06f-9f283db8c1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks Filter products by name, reference and supplier should reset all filters", + "timedOut": false, + "duration": 531, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_simpleFilterStocks_filterReferenceReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1466f23f-e8b6-4b17-8841-e269922d382c", + "parentUUID": "0c42687a-a7b0-4576-a06f-9f283db8c1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by supplier 'Fashion supplier'", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks Filter products by name, reference and supplier should filter by supplier 'Fashion supplier'", + "timedOut": false, + "duration": 1343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_simpleFilterStocks_filterSupplier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.most(numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92b574e1-20ba-43bc-a6f3-953273433118", + "parentUUID": "0c42687a-a7b0-4576-a06f-9f283db8c1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Simple filter stocks Filter products by name, reference and supplier should reset all filters", + "timedOut": false, + "duration": 516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_simpleFilterStocks_filterSupplierReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efbe9197-e674-495b-92e8-fb5025c18f48", + "parentUUID": "0c42687a-a7b0-4576-a06f-9f283db8c1fb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "67d32078-65b6-46dd-b683-f1cceb1d3e57", + "94102557-73c8-4088-abc4-46324aedd2ae", + "be38855d-1e7a-4405-9f3c-46c51d41172e", + "1466f23f-e8b6-4b17-8841-e269922d382c", + "92b574e1-20ba-43bc-a6f3-953273433118", + "efbe9197-e674-495b-92e8-fb5025c18f48" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5507, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "649a0956-b2f1-4e88-9cd2-5eaa09ff72a8", + "03925e52-5a76-4be1-bb63-ee198018d6d6", + "3be3f1e5-f2ff-4446-8946-4c9b156aa067" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8126, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5b952d9c-6cd9-4e04-ab4f-b3c5f66ef09d", + "title": "BO - Catalog - Stocks : Sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Stocks : Sort and pagination\"", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination \"before all\" hook in \"BO - Catalog - Stocks : Sort and pagination\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0c5f1fc-9796-46f2-9fe2-d22ae3a05f68", + "parentUUID": "5b952d9c-6cd9-4e04-ab4f-b3c5f66ef09d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Stocks : Sort and pagination\"", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination \"after all\" hook in \"BO - Catalog - Stocks : Sort and pagination\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ec120cb6-b532-4025-bb7a-8583763e24ea", + "parentUUID": "5b952d9c-6cd9-4e04-ab4f-b3c5f66ef09d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination should login in BO", + "timedOut": false, + "duration": 1696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "649ec7d3-a066-4140-9ee7-6ab31951bc33", + "parentUUID": "5b952d9c-6cd9-4e04-ab4f-b3c5f66ef09d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 5059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "730ff66e-66ce-4707-a7b7-fb896c440de1", + "parentUUID": "5b952d9c-6cd9-4e04-ab4f-b3c5f66ef09d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products in list", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination should reset filter and get number of products in list", + "timedOut": false, + "duration": 1368, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_getNumberOfProductsInList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProductsInList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85508c43-de9f-4a97-8246-b6a55d83f723", + "parentUUID": "5b952d9c-6cd9-4e04-ab4f-b3c5f66ef09d", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "70910048-e346-4849-8313-475571fdfe26", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the next page", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Pagination next and previous should go to the next page", + "timedOut": false, + "duration": 161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_goToNextPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNextPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.paginateTo(page, 2)];\n case 2:\n pageNumber = _a.sent();\n (0, chai_1.expect)(pageNumber).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75fc4a93-f99c-4208-95df-c3446e543bc0", + "parentUUID": "70910048-e346-4849-8313-475571fdfe26", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to the first page", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Pagination next and previous should go back to the first page", + "timedOut": false, + "duration": 192, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_goBackToFirstPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToFirstPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.paginateTo(page, 1)];\n case 2:\n pageNumber = _a.sent();\n (0, chai_1.expect)(pageNumber).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6b28b02-40fd-459f-b206-a92ef8887a29", + "parentUUID": "70910048-e346-4849-8313-475571fdfe26", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75fc4a93-f99c-4208-95df-c3446e543bc0", + "a6b28b02-40fd-459f-b206-a92ef8887a29" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 353, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "title": "Sort stock table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'product_id' 'desc' and check result", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Sort stock table should sort by 'product_id' 'desc' and check result", + "timedOut": false, + "duration": 7704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stocks_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7de5fb6-6d8b-41fd-82de-6097d80ceac9", + "parentUUID": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'product_id' 'asc' and check result", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Sort stock table should sort by 'product_id' 'asc' and check result", + "timedOut": false, + "duration": 7737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stocks_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89775d59-c110-4b9a-875a-de889fac6b48", + "parentUUID": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'product_name' 'asc' and check result", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Sort stock table should sort by 'product_name' 'asc' and check result", + "timedOut": false, + "duration": 7791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_sortByProductNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stocks_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3921d89-7d3a-4832-b947-ddabb0e0e43e", + "parentUUID": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'product_name' 'desc' and check result", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Sort stock table should sort by 'product_name' 'desc' and check result", + "timedOut": false, + "duration": 7829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_sortByProductNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stocks_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e64868b-78b8-4db8-b96d-041cf6a6c42d", + "parentUUID": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'asc' and check result", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Sort stock table should sort by 'reference' 'asc' and check result", + "timedOut": false, + "duration": 7871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stocks_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21455f41-840a-401e-8de7-084bdd347f63", + "parentUUID": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reference' 'desc' and check result", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Sort stock table should sort by 'reference' 'desc' and check result", + "timedOut": false, + "duration": 7853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stocks_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60914b0b-7680-4a80-8483-3f68f4e8724d", + "parentUUID": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'supplier' 'asc' and check result", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Sort stock table should sort by 'supplier' 'asc' and check result", + "timedOut": false, + "duration": 7894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_sortBySupplierAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stocks_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "546dba76-3817-4cbf-a9ae-564990cfd3f5", + "parentUUID": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'supplier' 'desc' and check result", + "fullTitle": "BO - Catalog - Stocks : Sort and pagination Sort stock table should sort by 'supplier' 'desc' and check result", + "timedOut": false, + "duration": 7914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_sortAndPagination_sortBySupplierDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stocks_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcb8547b-6c5d-4cac-8e28-4f65b5bf4d81", + "parentUUID": "f377fbb5-ef47-415e-afe3-504c0006d4f1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a7de5fb6-6d8b-41fd-82de-6097d80ceac9", + "89775d59-c110-4b9a-875a-de889fac6b48", + "d3921d89-7d3a-4832-b947-ddabb0e0e43e", + "3e64868b-78b8-4db8-b96d-041cf6a6c42d", + "21455f41-840a-401e-8de7-084bdd347f63", + "60914b0b-7680-4a80-8483-3f68f4e8724d", + "546dba76-3817-4cbf-a9ae-564990cfd3f5", + "fcb8547b-6c5d-4cac-8e28-4f65b5bf4d81" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 62593, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "649ec7d3-a066-4140-9ee7-6ab31951bc33", + "730ff66e-66ce-4707-a7b7-fb896c440de1", + "85508c43-de9f-4a97-8246-b6a55d83f723" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8123, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82594964-b142-472f-847d-f2da5c342571", + "title": "BO - Catalog - Stocks : Update Quantity", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Stocks : Update Quantity\"", + "fullTitle": "BO - Catalog - Stocks : Update Quantity \"before all\" hook in \"BO - Catalog - Stocks : Update Quantity\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bcaf08d-2e7c-4146-a286-81a099b07769", + "parentUUID": "82594964-b142-472f-847d-f2da5c342571", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Stocks : Update Quantity\"", + "fullTitle": "BO - Catalog - Stocks : Update Quantity \"after all\" hook in \"BO - Catalog - Stocks : Update Quantity\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "32357369-2853-4ddc-834c-d7795f62142a", + "parentUUID": "82594964-b142-472f-847d-f2da5c342571", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Stocks : Update Quantity should login in BO", + "timedOut": false, + "duration": 1769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16eb6b57-c37d-4a4b-a652-0bb59a932cf0", + "parentUUID": "82594964-b142-472f-847d-f2da5c342571", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Stocks : Update Quantity should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 5073, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "110f78a5-d248-48e0-9394-15fd15def7cd", + "parentUUID": "82594964-b142-472f-847d-f2da5c342571", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of products in list", + "fullTitle": "BO - Catalog - Stocks : Update Quantity should get number of products in list", + "timedOut": false, + "duration": 1355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_getNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd49a21e-f53c-48af-be6a-b68af6af6007", + "parentUUID": "82594964-b142-472f-847d-f2da5c342571", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "5473d1af-06dd-4448-9d8e-6e4ab685f810", + "title": "Update (add) quantity by setting input value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'Mountain fox - Vector graphics'", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (add) quantity by setting input value should filter by name 'Mountain fox - Vector graphics'", + "timedOut": false, + "duration": 1194, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_filterStocksadd\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn, _a, _b, _c;\n var _d;\n return __generator(this, function (_e) {\n switch (_e.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterStocks\".concat(test.args.action), baseContext)];\n case 1:\n _e.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, productStock.name)];\n case 2:\n _e.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _e.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.most(numberOfProducts);\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'product_name')];\n case 4:\n textColumn = _e.sent();\n (0, chai_1.expect)(productStock.name).to.contains(textColumn);\n // Get physical and available quantities of product\n _a = productStock;\n _d = {};\n _b = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'physical')];\n case 5:\n _d.physical = _b.apply(void 0, [_e.sent(), 10]);\n _c = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 6:\n // Get physical and available quantities of product\n _a.stocks = (_d.available = _c.apply(void 0, [_e.sent(), 10]),\n _d);\n (0, chai_1.expect)(productStock.stocks.physical).to.be.above(0);\n (0, chai_1.expect)(productStock.stocks.available).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b497987-f0be-4cae-91cc-fbf9fc9913a3", + "parentUUID": "5473d1af-06dd-4448-9d8e-6e4ab685f810", + "isHook": false, + "skipped": false + }, + { + "title": "should add quantity by setting input value", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (add) quantity by setting input value should add quantity by setting input value", + "timedOut": false, + "duration": 240, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_addToQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ToQuantity\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.updateRowQuantityWithInput(page, 1, test.args.updateValue)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43356306-25bb-4dc3-aa86-619b8ee72c79", + "parentUUID": "5473d1af-06dd-4448-9d8e-6e4ab685f810", + "isHook": false, + "skipped": false + }, + { + "title": "should check physical and available quantity", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (add) quantity by setting input value should check physical and available quantity", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_addCheckQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"CheckQuantity\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, 1)];\n case 2:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(productStock.stocks.physical + test.args.updateValue);\n productStock.stocks.physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(productStock.stocks.available + test.args.updateValue);\n productStock.stocks.available = quantityToCheck.available;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6cb70aa-1a22-4c6d-8785-458040ba1931", + "parentUUID": "5473d1af-06dd-4448-9d8e-6e4ab685f810", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (add) quantity by setting input value should reset all filters", + "timedOut": false, + "duration": 534, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_resetFilterStocks0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterStocks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d4cc203-dda1-4753-b5cc-8127dd4bbb99", + "parentUUID": "5473d1af-06dd-4448-9d8e-6e4ab685f810", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2b497987-f0be-4cae-91cc-fbf9fc9913a3", + "43356306-25bb-4dc3-aa86-619b8ee72c79", + "b6cb70aa-1a22-4c6d-8785-458040ba1931", + "9d4cc203-dda1-4753-b5cc-8127dd4bbb99" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1992, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c1207ad5-90d0-4147-aa8a-2e3e960a68a6", + "title": "Update (subtract) quantity by setting input value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'Mountain fox - Vector graphics'", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (subtract) quantity by setting input value should filter by name 'Mountain fox - Vector graphics'", + "timedOut": false, + "duration": 1183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_filterStockssubtract\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn, _a, _b, _c;\n var _d;\n return __generator(this, function (_e) {\n switch (_e.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterStocks\".concat(test.args.action), baseContext)];\n case 1:\n _e.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, productStock.name)];\n case 2:\n _e.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _e.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.most(numberOfProducts);\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'product_name')];\n case 4:\n textColumn = _e.sent();\n (0, chai_1.expect)(productStock.name).to.contains(textColumn);\n // Get physical and available quantities of product\n _a = productStock;\n _d = {};\n _b = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'physical')];\n case 5:\n _d.physical = _b.apply(void 0, [_e.sent(), 10]);\n _c = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 6:\n // Get physical and available quantities of product\n _a.stocks = (_d.available = _c.apply(void 0, [_e.sent(), 10]),\n _d);\n (0, chai_1.expect)(productStock.stocks.physical).to.be.above(0);\n (0, chai_1.expect)(productStock.stocks.available).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccee72b5-0717-4e1d-8d43-7be5d94d692f", + "parentUUID": "c1207ad5-90d0-4147-aa8a-2e3e960a68a6", + "isHook": false, + "skipped": false + }, + { + "title": "should subtract quantity by setting input value", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (subtract) quantity by setting input value should subtract quantity by setting input value", + "timedOut": false, + "duration": 206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_subtractToQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ToQuantity\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.updateRowQuantityWithInput(page, 1, test.args.updateValue)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a42e02c-c17d-415b-a349-2e9af75be932", + "parentUUID": "c1207ad5-90d0-4147-aa8a-2e3e960a68a6", + "isHook": false, + "skipped": false + }, + { + "title": "should check physical and available quantity", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (subtract) quantity by setting input value should check physical and available quantity", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_subtractCheckQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"CheckQuantity\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, 1)];\n case 2:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(productStock.stocks.physical + test.args.updateValue);\n productStock.stocks.physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(productStock.stocks.available + test.args.updateValue);\n productStock.stocks.available = quantityToCheck.available;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f7b89d4-cfed-44e9-bb7a-f456ab4b7be9", + "parentUUID": "c1207ad5-90d0-4147-aa8a-2e3e960a68a6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (subtract) quantity by setting input value should reset all filters", + "timedOut": false, + "duration": 538, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_resetFilterStocks1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterStocks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5443e639-a504-4f35-a64d-9379c5efdef3", + "parentUUID": "c1207ad5-90d0-4147-aa8a-2e3e960a68a6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ccee72b5-0717-4e1d-8d43-7be5d94d692f", + "4a42e02c-c17d-415b-a349-2e9af75be932", + "3f7b89d4-cfed-44e9-bb7a-f456ab4b7be9", + "5443e639-a504-4f35-a64d-9379c5efdef3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1948, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a28cd693-61b1-4bb4-a57b-0ccbf80cc244", + "title": "Update (add) quantity by using the number up/down", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'Mountain fox - Vector graphics'", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (add) quantity by using the number up/down should filter by name 'Mountain fox - Vector graphics'", + "timedOut": false, + "duration": 1179, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_filterStocks2add\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn, _a, _b, _c;\n var _d;\n return __generator(this, function (_e) {\n switch (_e.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterStocks2\".concat(test.args.action), baseContext)];\n case 1:\n _e.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, productStock.name)];\n case 2:\n _e.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _e.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.most(numberOfProducts);\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'product_name')];\n case 4:\n textColumn = _e.sent();\n (0, chai_1.expect)(productStock.name).to.contains(textColumn);\n // Get physical and available quantities of product\n _a = productStock;\n _d = {};\n _b = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'physical')];\n case 5:\n _d.physical = _b.apply(void 0, [_e.sent(), 10]);\n _c = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 6:\n // Get physical and available quantities of product\n _a.stocks = (_d.available = _c.apply(void 0, [_e.sent(), 10]),\n _d);\n (0, chai_1.expect)(productStock.stocks.physical).to.be.above(0);\n (0, chai_1.expect)(productStock.stocks.available).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8df44971-e35e-4878-875c-d695eda0f9cc", + "parentUUID": "a28cd693-61b1-4bb4-a57b-0ccbf80cc244", + "isHook": false, + "skipped": false + }, + { + "title": "should add quantity by using the arrow up/down buttons", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (add) quantity by using the number up/down should add quantity by using the arrow up/down buttons", + "timedOut": false, + "duration": 461, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_addToQuantity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ToQuantity2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.updateRowQuantityWithArrowUpDownButtons(page, 1, test.args.updateValue, test.args.direction)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "599693c4-d903-4819-8d7c-c9280041c968", + "parentUUID": "a28cd693-61b1-4bb4-a57b-0ccbf80cc244", + "isHook": false, + "skipped": false + }, + { + "title": "should check physical and available quantity", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (add) quantity by using the number up/down should check physical and available quantity", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_addCheckQuantity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"CheckQuantity2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, 1)];\n case 2:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(productStock.stocks.physical + test.args.updateValue);\n productStock.stocks.physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(productStock.stocks.available + test.args.updateValue);\n productStock.stocks.available = quantityToCheck.available;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "816863d0-bd14-4332-9d6b-80e42c8339a6", + "parentUUID": "a28cd693-61b1-4bb4-a57b-0ccbf80cc244", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (add) quantity by using the number up/down should reset all filters", + "timedOut": false, + "duration": 576, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_resetFilterStocks02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterStocks\".concat(index, \"2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a17ca5a9-49a0-476b-b10d-5bcc2dafea35", + "parentUUID": "a28cd693-61b1-4bb4-a57b-0ccbf80cc244", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8df44971-e35e-4878-875c-d695eda0f9cc", + "599693c4-d903-4819-8d7c-c9280041c968", + "816863d0-bd14-4332-9d6b-80e42c8339a6", + "a17ca5a9-49a0-476b-b10d-5bcc2dafea35" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2238, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fe0218b6-1bbc-4255-b0ea-481d81cdd2ce", + "title": "Update (subtract) quantity by using the number up/down", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'Mountain fox - Vector graphics'", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (subtract) quantity by using the number up/down should filter by name 'Mountain fox - Vector graphics'", + "timedOut": false, + "duration": 1206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_filterStocks2subtract\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn, _a, _b, _c;\n var _d;\n return __generator(this, function (_e) {\n switch (_e.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterStocks2\".concat(test.args.action), baseContext)];\n case 1:\n _e.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, productStock.name)];\n case 2:\n _e.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _e.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.most(numberOfProducts);\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'product_name')];\n case 4:\n textColumn = _e.sent();\n (0, chai_1.expect)(productStock.name).to.contains(textColumn);\n // Get physical and available quantities of product\n _a = productStock;\n _d = {};\n _b = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'physical')];\n case 5:\n _d.physical = _b.apply(void 0, [_e.sent(), 10]);\n _c = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 6:\n // Get physical and available quantities of product\n _a.stocks = (_d.available = _c.apply(void 0, [_e.sent(), 10]),\n _d);\n (0, chai_1.expect)(productStock.stocks.physical).to.be.above(0);\n (0, chai_1.expect)(productStock.stocks.available).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b041e6a-0486-434f-8c23-b391a3d2969c", + "parentUUID": "fe0218b6-1bbc-4255-b0ea-481d81cdd2ce", + "isHook": false, + "skipped": false + }, + { + "title": "should subtract quantity by using the arrow up/down buttons", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (subtract) quantity by using the number up/down should subtract quantity by using the arrow up/down buttons", + "timedOut": false, + "duration": 477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_subtractToQuantity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ToQuantity2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.updateRowQuantityWithArrowUpDownButtons(page, 1, test.args.updateValue, test.args.direction)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5894bb90-8e29-48ab-8f0e-9c35cf2e615a", + "parentUUID": "fe0218b6-1bbc-4255-b0ea-481d81cdd2ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check physical and available quantity", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (subtract) quantity by using the number up/down should check physical and available quantity", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_subtractCheckQuantity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"CheckQuantity2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, 1)];\n case 2:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(productStock.stocks.physical + test.args.updateValue);\n productStock.stocks.physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(productStock.stocks.available + test.args.updateValue);\n productStock.stocks.available = quantityToCheck.available;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f521db7-2c35-4395-a34d-0fc7362e7023", + "parentUUID": "fe0218b6-1bbc-4255-b0ea-481d81cdd2ce", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update (subtract) quantity by using the number up/down should reset all filters", + "timedOut": false, + "duration": 539, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_resetFilterStocks12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterStocks\".concat(index, \"2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11d262de-c07c-4eeb-a634-9474da9cc329", + "parentUUID": "fe0218b6-1bbc-4255-b0ea-481d81cdd2ce", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b041e6a-0486-434f-8c23-b391a3d2969c", + "5894bb90-8e29-48ab-8f0e-9c35cf2e615a", + "2f521db7-2c35-4395-a34d-0fc7362e7023", + "11d262de-c07c-4eeb-a634-9474da9cc329" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2243, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8a772176-e9d0-434c-ac6c-7d5c44583206", + "title": "Update quantity by using the number up/down and by writing in input", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/03_updateQuantity.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add quantity of the first product by using the arrow up/down buttons", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update quantity by using the number up/down and by writing in input should add quantity of the first product by using the arrow up/down buttons", + "timedOut": false, + "duration": 406, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_updateQuantityUp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantityUp', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 2:\n firstProductQuantity = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, stocks_1.default.setQuantityByArrowUpDown(page, 1, 6, 'up')];\n case 3:\n _b.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b68b175b-977a-4eac-90e5-74c1818998f3", + "parentUUID": "8a772176-e9d0-434c-ac6c-7d5c44583206", + "isHook": false, + "skipped": false + }, + { + "title": "should add quantity of the second product by setting input value", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update quantity by using the number up/down and by writing in input should add quantity of the second product by setting input value", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_updateQuantityInput\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantityInput', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 2, 'available')];\n case 2:\n secondProductQuantity = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, stocks_1.default.setQuantityWithInput(page, 2, 5)];\n case 3:\n _b.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bf2e649-e108-495a-8d42-27f2cc7383e5", + "parentUUID": "8a772176-e9d0-434c-ac6c-7d5c44583206", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Apply new quantity' and check new quantities", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update quantity by using the number up/down and by writing in input should click on 'Apply new quantity' and check new quantities", + "timedOut": false, + "duration": 196, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_applyNewQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'applyNewQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.clickOnApplyNewQuantity(page)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f3cf960-1aec-4dc5-9f50-6d59473cbfcb", + "parentUUID": "8a772176-e9d0-434c-ac6c-7d5c44583206", + "isHook": false, + "skipped": false + }, + { + "title": "should check the new quantity of the first product", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update quantity by using the number up/down and by writing in input should check the new quantity of the first product", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_checkFirstProductQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstProductQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, 1)];\n case 2:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(firstProductQuantity + 6);\n productStock.stocks.physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(firstProductQuantity + 6);\n productStock.stocks.available = quantityToCheck.available;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18ed0e2d-b5c5-4375-81cc-757e2cd780f4", + "parentUUID": "8a772176-e9d0-434c-ac6c-7d5c44583206", + "isHook": false, + "skipped": false + }, + { + "title": "should check the new quantity of the second product", + "fullTitle": "BO - Catalog - Stocks : Update Quantity Update quantity by using the number up/down and by writing in input should check the new quantity of the second product", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_updateQuantity_checkSecondProductQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSecondProductQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, 2)];\n case 2:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(secondProductQuantity + 5);\n productStock.stocks.physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(secondProductQuantity + 5);\n productStock.stocks.available = quantityToCheck.available;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "429278ae-6e79-4cde-ba13-1651b50af4f2", + "parentUUID": "8a772176-e9d0-434c-ac6c-7d5c44583206", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b68b175b-977a-4eac-90e5-74c1818998f3", + "3bf2e649-e108-495a-8d42-27f2cc7383e5", + "9f3cf960-1aec-4dc5-9f50-6d59473cbfcb", + "18ed0e2d-b5c5-4375-81cc-757e2cd780f4", + "429278ae-6e79-4cde-ba13-1651b50af4f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 689, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "16eb6b57-c37d-4a4b-a652-0bb59a932cf0", + "110f78a5-d248-48e0-9394-15fd15def7cd", + "cd49a21e-f53c-48af-be6a-b68af6af6007" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8197, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dc737b3b-9f6e-4ea1-bcc4-96b6a0f12df7", + "title": "BO - Catalog - Stocks : Bulk edit quantity", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/04_bulkEditQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/04_bulkEditQuantity.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Stocks : Bulk edit quantity\"", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity \"before all\" hook in \"BO - Catalog - Stocks : Bulk edit quantity\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f9513bd-b122-4235-a4a9-27110c06032c", + "parentUUID": "dc737b3b-9f6e-4ea1-bcc4-96b6a0f12df7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Stocks : Bulk edit quantity\"", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity \"after all\" hook in \"BO - Catalog - Stocks : Bulk edit quantity\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "05e7f720-1902-4fae-86b1-f816cfac3e6d", + "parentUUID": "dc737b3b-9f6e-4ea1-bcc4-96b6a0f12df7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity should login in BO", + "timedOut": false, + "duration": 1700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "386a2812-3bc7-4c53-a76d-8c4adeffb7d2", + "parentUUID": "dc737b3b-9f6e-4ea1-bcc4-96b6a0f12df7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 5055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_bulkEditQuantity_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23f540e8-18c4-4d12-a8de-0ae2f7acea5d", + "parentUUID": "dc737b3b-9f6e-4ea1-bcc4-96b6a0f12df7", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of products in list", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity should get number of products in list", + "timedOut": false, + "duration": 1361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_bulkEditQuantity_getNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bed825ad-976c-4c61-844e-f01a1d525910", + "parentUUID": "dc737b3b-9f6e-4ea1-bcc4-96b6a0f12df7", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "fc402d11-e39f-4cdd-a5dd-00e45acedf52", + "title": "Bulk edit quantity by setting input value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/04_bulkEditQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/04_bulkEditQuantity.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'Mountain fox notebook'", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity Bulk edit quantity by setting input value should filter by name 'Mountain fox notebook'", + "timedOut": false, + "duration": 1253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_bulkEditQuantity_filterToUpdateQuantities\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn, _a, _b, _c, _d;\n var _e;\n return __generator(this, function (_f) {\n switch (_f.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateQuantities', baseContext)];\n case 1:\n _f.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, products_1.default.demo_8.name)];\n case 2:\n _f.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _f.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.most(numberOfProducts);\n i = 1;\n _f.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 9];\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, i, 'product_name')];\n case 5:\n textColumn = _f.sent();\n (0, chai_1.expect)(textColumn).to.contains(products_1.default.demo_8.name);\n // Get physical and available quantities of product\n _a = stocks;\n _b = \"product\".concat(i);\n _e = {};\n _c = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, i, 'physical')];\n case 6:\n _e.physical = _c.apply(void 0, [_f.sent(), 10]);\n _d = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, i, 'available')];\n case 7:\n // Get physical and available quantities of product\n _a[_b] = (_e.available = _d.apply(void 0, [_f.sent(), 10]),\n _e);\n (0, chai_1.expect)(stocks[\"product\".concat(i)].physical).to.be.above(0);\n (0, chai_1.expect)(stocks[\"product\".concat(i)].available).to.be.above(0);\n _f.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7923c1f-a8f9-4d31-a926-ecdcd7877fec", + "parentUUID": "fc402d11-e39f-4cdd-a5dd-00e45acedf52", + "isHook": false, + "skipped": false + }, + { + "title": "should add to quantities by setting input value", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity Bulk edit quantity by setting input value should add to quantities by setting input value", + "timedOut": false, + "duration": 1464, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_bulkEditQuantity_addToQuantities\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage, numberOfProductsInList, i, quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ToQuantities\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.bulkEditQuantityWithInput(page, test.args.updateValue)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsInList = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsInList)) return [3 /*break*/, 7];\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, i)];\n case 5:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(stocks[\"product\".concat(i)].physical + test.args.updateValue);\n stocks[\"product\".concat(i)].physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(stocks[\"product\".concat(i)].available + test.args.updateValue);\n stocks[\"product\".concat(i)].available = quantityToCheck.available;\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12a62986-01e6-4aae-afe8-ccb93d15968d", + "parentUUID": "fc402d11-e39f-4cdd-a5dd-00e45acedf52", + "isHook": false, + "skipped": false + }, + { + "title": "should subtract to quantities by setting input value", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity Bulk edit quantity by setting input value should subtract to quantities by setting input value", + "timedOut": false, + "duration": 1398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_bulkEditQuantity_subtractToQuantities\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage, numberOfProductsInList, i, quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ToQuantities\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.bulkEditQuantityWithInput(page, test.args.updateValue)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsInList = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsInList)) return [3 /*break*/, 7];\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, i)];\n case 5:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(stocks[\"product\".concat(i)].physical + test.args.updateValue);\n stocks[\"product\".concat(i)].physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(stocks[\"product\".concat(i)].available + test.args.updateValue);\n stocks[\"product\".concat(i)].available = quantityToCheck.available;\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e85c50a-0aae-4126-8160-2933e4e9ed93", + "parentUUID": "fc402d11-e39f-4cdd-a5dd-00e45acedf52", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a7923c1f-a8f9-4d31-a926-ecdcd7877fec", + "12a62986-01e6-4aae-afe8-ccb93d15968d", + "5e85c50a-0aae-4126-8160-2933e4e9ed93" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4115, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e17715b1-5e7e-467a-a126-be20be5b2ae9", + "title": "Bulk edit quantity by using the arrow up/down", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/04_bulkEditQuantity.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/04_bulkEditQuantity.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add quantity by using the arrow up/down", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity Bulk edit quantity by using the arrow up/down should add quantity by using the arrow up/down", + "timedOut": false, + "duration": 1668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_bulkEditQuantity_addToQuantities2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage, numberOfProductsInList, i, quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ToQuantities2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.bulkEditQuantityWithArrowUpDownButtons(page, test.args.updateValue, test.args.direction)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsInList = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsInList)) return [3 /*break*/, 7];\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, i)];\n case 5:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(stocks[\"product\".concat(i)].physical + test.args.updateValue);\n stocks[\"product\".concat(i)].physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(stocks[\"product\".concat(i)].available + test.args.updateValue);\n stocks[\"product\".concat(i)].available = quantityToCheck.available;\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa1d7f6e-5615-40a8-9ec0-09c9cb5ce6e1", + "parentUUID": "e17715b1-5e7e-467a-a126-be20be5b2ae9", + "isHook": false, + "skipped": false + }, + { + "title": "should subtract quantity by using the arrow up/down", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity Bulk edit quantity by using the arrow up/down should subtract quantity by using the arrow up/down", + "timedOut": false, + "duration": 1646, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_bulkEditQuantity_subtractToQuantities2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage, numberOfProductsInList, i, quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ToQuantities2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.bulkEditQuantityWithArrowUpDownButtons(page, test.args.updateValue, test.args.direction)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsInList = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsInList)) return [3 /*break*/, 7];\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, i)];\n case 5:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(stocks[\"product\".concat(i)].physical + test.args.updateValue);\n stocks[\"product\".concat(i)].physical = quantityToCheck.physical;\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(stocks[\"product\".concat(i)].available + test.args.updateValue);\n stocks[\"product\".concat(i)].available = quantityToCheck.available;\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d48b77d4-fa86-4d04-90fd-41bf8a4dde3d", + "parentUUID": "e17715b1-5e7e-467a-a126-be20be5b2ae9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Bulk edit quantity Bulk edit quantity by using the arrow up/down should reset all filters", + "timedOut": false, + "duration": 528, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_bulkEditQuantity_resetAfterEditQuantities\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterEditQuantities', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15a71e83-41d0-4be0-81cc-acf89a1cfb04", + "parentUUID": "e17715b1-5e7e-467a-a126-be20be5b2ae9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fa1d7f6e-5615-40a8-9ec0-09c9cb5ce6e1", + "d48b77d4-fa86-4d04-90fd-41bf8a4dde3d", + "15a71e83-41d0-4be0-81cc-acf89a1cfb04" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3842, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "386a2812-3bc7-4c53-a76d-8c4adeffb7d2", + "23f540e8-18c4-4d12-a8de-0ae2f7acea5d", + "bed825ad-976c-4c61-844e-f01a1d525910" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8116, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "affe5985-f623-44c7-a5a6-808b5093a451", + "title": "BO - Catalog - Stocks : Filter stocks by status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/05_filterStocksByStatus.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/05_filterStocksByStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Stocks : Filter stocks by status\"", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status \"before all\" hook in \"BO - Catalog - Stocks : Filter stocks by status\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a8c4bf0-aad4-45fe-95ac-9881fe1c86a1", + "parentUUID": "affe5985-f623-44c7-a5a6-808b5093a451", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Stocks : Filter stocks by status\"", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status \"after all\" hook in \"BO - Catalog - Stocks : Filter stocks by status\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "683777a2-7f01-4b07-bcd1-c78dc38ec4b7", + "parentUUID": "affe5985-f623-44c7-a5a6-808b5093a451", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "cae27dc7-b6a7-496b-b356-bfce765b3c8c", + "title": "Create disabled product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/05_filterStocksByStatus.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/05_filterStocksByStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Create disabled product should login in BO", + "timedOut": false, + "duration": 1704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c627e81b-4815-43c9-a3bb-c41cc08dff6c", + "parentUUID": "cae27dc7-b6a7-496b-b356-bfce765b3c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Create disabled product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_goToProductsPageToCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b016023-2206-4d9d-90a0-5f12018467fc", + "parentUUID": "cae27dc7-b6a7-496b-b356-bfce765b3c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Create disabled product should reset all filters", + "timedOut": false, + "duration": 2971, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7af6c91c-8c64-4343-8236-ecbac8d641e1", + "parentUUID": "cae27dc7-b6a7-496b-b356-bfce765b3c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Create disabled product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1353f0f-a840-417c-a75d-b1e1876e354e", + "parentUUID": "cae27dc7-b6a7-496b-b356-bfce765b3c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Create disabled product should choose 'Standard product'", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb6a4bc8-b393-498b-b5b4-f9eb99718f77", + "parentUUID": "cae27dc7-b6a7-496b-b356-bfce765b3c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Create disabled product should go to new product page", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88281377-1437-43ca-a4f6-91223cdf58b7", + "parentUUID": "cae27dc7-b6a7-496b-b356-bfce765b3c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Create disabled product should create standard product", + "timedOut": false, + "duration": 4549, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3f99a1a-8e82-4dfb-b920-fed43288b072", + "parentUUID": "cae27dc7-b6a7-496b-b356-bfce765b3c8c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c627e81b-4815-43c9-a3bb-c41cc08dff6c", + "6b016023-2206-4d9d-90a0-5f12018467fc", + "7af6c91c-8c64-4343-8236-ecbac8d641e1", + "b1353f0f-a840-417c-a75d-b1e1876e354e", + "fb6a4bc8-b393-498b-b5b4-f9eb99718f77", + "88281377-1437-43ca-a4f6-91223cdf58b7", + "f3f99a1a-8e82-4dfb-b920-fed43288b072" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15220, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7fd2d8c2-fbb3-4b24-8d33-eb004d8f269f", + "title": "Check the disabled product in stocks page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/05_filterStocksByStatus.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/05_filterStocksByStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Check the disabled product in stocks page should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.catalogParentLink, add_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d786f73-af17-41ea-b973-535ee926b038", + "parentUUID": "7fd2d8c2-fbb3-4b24-8d33-eb004d8f269f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by status 'disabled' and check the existence of the created product", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Check the disabled product in stocks page should filter by status 'disabled' and check the existence of the created product", + "timedOut": false, + "duration": 199, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_filterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.filterByStatus(page, 'disabled')];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'product_name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4142021e-e0d5-463d-bd17-84d17bbcd7a3", + "parentUUID": "7fd2d8c2-fbb3-4b24-8d33-eb004d8f269f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3d786f73-af17-41ea-b973-535ee926b038", + "4142021e-e0d5-463d-bd17-84d17bbcd7a3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4241, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c738090c-a813-4e24-a393-da0bbb71ce9f", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/05_filterStocksByStatus.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/05_filterStocksByStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Delete product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.goToSubMenu(page, stocks_1.default.catalogParentLink, stocks_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6528f62-5ef6-4275-b859-7013fb17e5aa", + "parentUUID": "c738090c-a813-4e24-a393-da0bbb71ce9f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by the created product and check result", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Delete product should filter list by the created product and check result", + "timedOut": false, + "duration": 1280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'reference', productData.reference, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'reference', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(productData.reference);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "385d5b20-afb2-44db-ae92-fdd64c3516fb", + "parentUUID": "c738090c-a813-4e24-a393-da0bbb71ce9f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Delete product should click on delete product button", + "timedOut": false, + "duration": 265, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a27dac2-392d-4dfa-bfa2-cd05e8e74a57", + "parentUUID": "c738090c-a813-4e24-a393-da0bbb71ce9f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Delete product should delete product", + "timedOut": false, + "duration": 576, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60ba06b3-ba08-467e-b377-f530b50592b7", + "parentUUID": "c738090c-a813-4e24-a393-da0bbb71ce9f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by status Delete product should reset filter", + "timedOut": false, + "duration": 2909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByStatus_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "897ccdd4-d972-430e-bfeb-614bee6fa166", + "parentUUID": "c738090c-a813-4e24-a393-da0bbb71ce9f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b6528f62-5ef6-4275-b859-7013fb17e5aa", + "385d5b20-afb2-44db-ae92-fdd64c3516fb", + "4a27dac2-392d-4dfa-bfa2-cd05e8e74a57", + "60ba06b3-ba08-467e-b377-f530b50592b7", + "897ccdd4-d972-430e-bfeb-614bee6fa166" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8870, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "title": "BO - Catalog - Stocks : Display products below low stock level first", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/06_displayProductsBelowLowStock.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/06_displayProductsBelowLowStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Stocks : Display products below low stock level first\"", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first \"before all\" hook in \"BO - Catalog - Stocks : Display products below low stock level first\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "585df532-0fd6-46fc-9c8e-b6b5b8c231fc", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Stocks : Display products below low stock level first\"", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first \"after all\" hook in \"BO - Catalog - Stocks : Display products below low stock level first\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5cdb58c9-d884-4497-a5a1-7d2d57ce0cf2", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should login in BO", + "timedOut": false, + "duration": 1687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12dab25f-346d-4bef-bfcb-45385cbe23a0", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 5083, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80ba859f-728e-4fe6-8aeb-dcab4de0384a", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of products in list", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should get the number of products in list", + "timedOut": false, + "duration": 1354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_getNumberOfProductsInList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProductsInList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98ceaab8-327c-488f-92f0-67081b89d9ec", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should get the quantity of the second product in the list", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should get the quantity of the second product in the list", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_getQuantityOfSecondProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getQuantityOfSecondProduct', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 2, 'available')];\n case 2:\n productQuantity = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2658decd-97d6-4190-933c-9ec2554a33c3", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should update the second product quantity to -300", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should update the second product quantity to -300", + "timedOut": false, + "duration": 274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_updateProductQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage, quantityToCheck;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateProductQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.updateRowQuantityWithInput(page, 2, -productQuantity)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [4 /*yield*/, stocks_1.default.getStockQuantityForProduct(page, 2)];\n case 3:\n quantityToCheck = _a.sent();\n (0, chai_1.expect)(quantityToCheck.physical).to.be.equal(0);\n (0, chai_1.expect)(quantityToCheck.available).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e91b5b75-5e90-4351-83f0-64ca3a04bec4", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Display products below low stock level first'", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should check 'Display products below low stock level first'", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_checkDisplayProductBelowLowStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDisplayProductBelowLowStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.setDisplayProductsBelowLowOfStock(page, true)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6849ef14-52b2-4dfa-927f-2ebb2ae926e4", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the second product is displayed first", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should check that the second product is displayed first", + "timedOut": false, + "duration": 132, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_checkSecondProductIsDisplayedFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSecondProductIsDisplayedFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'product_name')];\n case 2:\n productName = _a.sent();\n (0, chai_1.expect)(productName).to.contain('Hummingbird notebook');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f25c569-dab8-4c0e-9688-83097ad3a13e", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should check the available quantity for the first product", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should check the available quantity for the first product", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_checkAvailableQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var availableQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAvailableQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 2:\n availableQuantity = _a.sent();\n (0, chai_1.expect)(availableQuantity).to.equal('0 !');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "341d3dfa-9c9e-4018-8010-fb4c5bd50fc3", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should check the physical quantity for the first product", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should check the physical quantity for the first product", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_checkPhysicalQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPhysicalQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'physical')];\n case 2:\n productQuantity = _a.sent();\n (0, chai_1.expect)(productQuantity).to.equal('0');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a381e91-d868-4d91-ac32-7aa1ba10c6f3", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the whole product line is red", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should check that the whole product line is red", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_checkLineIsRed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isLowStock;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLineIsRed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.isProductLowStock(page, 1)];\n case 2:\n isLowStock = _a.sent();\n (0, chai_1.expect)(isLowStock).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d8cf91f-f542-4357-a9f0-379c83424c3f", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck 'Display products below low stock level first'", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should uncheck 'Display products below low stock level first'", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_uncheckDisplayProductBelowLowStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uncheckDisplayProductBelowLowStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.setDisplayProductsBelowLowOfStock(page, false)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b450875-8dda-4f6f-a71d-0d05d8f5f10e", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the edited product is displayed second", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should check that the edited product is displayed second", + "timedOut": false, + "duration": 133, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_checkEditedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'product_name')];\n case 2:\n productName = _a.sent();\n (0, chai_1.expect)(productName).to.not.contain('Hummingbird notebook');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "450b7ca3-3cc2-44ea-b7aa-e5d2e0c69329", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the whole product line is not red", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should check that the whole product line is not red", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_displayProductsBelowLowStock_checkLineIsNotRed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isLowStock;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLineIsNotRed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.isProductLowStock(page, 1)];\n case 2:\n isLowStock = _a.sent();\n (0, chai_1.expect)(isLowStock).to.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "659c5af0-a633-4adf-bd63-544bd4c78ee3", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the products are sorted by ID desc", + "fullTitle": "BO - Catalog - Stocks : Display products below low stock level first should check that the products are sorted by ID desc", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": null, + "code": "", + "err": {}, + "uuid": "cc8e1bb7-b58e-458d-8299-949ced0bbe8f", + "parentUUID": "ef25abdc-b914-46cf-8635-bd53a2a9adef", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "12dab25f-346d-4bef-bfcb-45385cbe23a0", + "80ba859f-728e-4fe6-8aeb-dcab4de0384a", + "98ceaab8-327c-488f-92f0-67081b89d9ec", + "2658decd-97d6-4190-933c-9ec2554a33c3", + "e91b5b75-5e90-4351-83f0-64ca3a04bec4", + "6849ef14-52b2-4dfa-927f-2ebb2ae926e4", + "4f25c569-dab8-4c0e-9688-83097ad3a13e", + "341d3dfa-9c9e-4018-8010-fb4c5bd50fc3", + "4a381e91-d868-4d91-ac32-7aa1ba10c6f3", + "8d8cf91f-f542-4357-a9f0-379c83424c3f", + "2b450875-8dda-4f6f-a71d-0d05d8f5f10e", + "450b7ca3-3cc2-44ea-b7aa-e5d2e0c69329", + "659c5af0-a633-4adf-bd63-544bd4c78ee3" + ], + "failures": [], + "pending": [ + "cc8e1bb7-b58e-458d-8299-949ced0bbe8f" + ], + "skipped": [], + "duration": 9747, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b351191a-0f46-409f-bcb2-13e8791c669e", + "title": "BO - Catalog - Stocks : Filter stocks by categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/07_filterStocksByCategories.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/07_filterStocksByCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Stocks : Filter stocks by categories\"", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories \"before all\" hook in \"BO - Catalog - Stocks : Filter stocks by categories\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8f4e28c-58f9-4abd-87df-00579b6bdf8e", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Stocks : Filter stocks by categories\"", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories \"after all\" hook in \"BO - Catalog - Stocks : Filter stocks by categories\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f917ad4f-3e07-4672-96b9-82b2ed7b06d9", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should login in BO", + "timedOut": false, + "duration": 1685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4851180-8746-4c4a-ba25-c243a4a8aa36", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByCategories_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.catalogParentLink, add_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2537058d-20ce-4bdd-a246-7164267105ad", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products in list", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should reset filter and get number of products in list", + "timedOut": false, + "duration": 1352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByCategories_getNumberOfProductsInList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProductsInList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d009103-72f8-4e12-80b6-6ae5cfe65a82", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by categories 'Art and Accessories' and check the result", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should filter by categories 'Art and Accessories' and check the result", + "timedOut": false, + "duration": 5078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByCategories_filterCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.filterByCategory(page, ['Art', 'Accessories'])];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, 'reference')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.include.members(categories_1.default.art.products.concat(categories_1.default.accessories.products));\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c401b61f-1e08-465f-8252-bc0b272eb43e", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck the selected categories 'Art and Accessories' and check the result", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should uncheck the selected categories 'Art and Accessories' and check the result", + "timedOut": false, + "duration": 2050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByCategories_resetFilterCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.filterByCategory(page, ['Art', 'Accessories'])];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "091bf35d-8ab5-48bd-8786-1aa677e37afd", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by category 'Clothes' and check the result", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should filter by category 'Clothes' and check the result", + "timedOut": false, + "duration": 4571, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByCategories_filterByCategoryClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCategoryClothes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.filterByCategory(page, ['Clothes'])];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getAllRowsColumnContent(page, 'reference')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.include.members(categories_1.default.clothes.products);\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f21a2b2-1358-4c55-9f78-ce3a0cc25a85", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck the selected category 'Clothes' and check the result", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should uncheck the selected category 'Clothes' and check the result", + "timedOut": false, + "duration": 1785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByCategories_resetFilterCategoryClothes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterCategoryClothes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.filterByCategory(page, ['Clothes'])];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8780932-7d99-47be-a56e-2fd6d9ef93a2", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by all categories and check result", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should filter by all categories and check result", + "timedOut": false, + "duration": 2501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByCategories_filterByAllCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByAllCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.filterByCategory(page, ['Home', 'Clothes', 'Men', 'Women', 'Accessories', 'Stationery', 'Home Accessories', 'Art'])];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea1f5a47-7c1f-479d-a271-5fe70f6f8649", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck all categories and check result", + "fullTitle": "BO - Catalog - Stocks : Filter stocks by categories should uncheck all categories and check result", + "timedOut": false, + "duration": 2504, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_filterStocksByCategories_uncheckAllCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uncheckAllCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.filterByCategory(page, ['Home', 'Clothes', 'Men', 'Women', 'Accessories', 'Stationery', 'Home Accessories', 'Art'])];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getTotalNumberOfProducts(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd821961-5ba9-4f13-a0b3-5f9e25dab456", + "parentUUID": "b351191a-0f46-409f-bcb2-13e8791c669e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b4851180-8746-4c4a-ba25-c243a4a8aa36", + "2537058d-20ce-4bdd-a246-7164267105ad", + "1d009103-72f8-4e12-80b6-6ae5cfe65a82", + "c401b61f-1e08-465f-8252-bc0b272eb43e", + "091bf35d-8ab5-48bd-8786-1aa677e37afd", + "3f21a2b2-1358-4c55-9f78-ce3a0cc25a85", + "a8780932-7d99-47be-a56e-2fd6d9ef93a2", + "ea1f5a47-7c1f-479d-a271-5fe70f6f8649", + "dd821961-5ba9-4f13-a0b3-5f9e25dab456" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25571, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e5b7f14d-e51a-41fa-bf60-ca7174204239", + "title": "BO - Catalog - Stocks : Help card in stocks page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/03_catalog/08_stocks/08_helpCard.ts", + "file": "/campaigns/functional/BO/03_catalog/08_stocks/08_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Stocks : Help card in stocks page\"", + "fullTitle": "BO - Catalog - Stocks : Help card in stocks page \"before all\" hook in \"BO - Catalog - Stocks : Help card in stocks page\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f59b7b1c-e942-45ac-ba8d-658b9e4fe74e", + "parentUUID": "e5b7f14d-e51a-41fa-bf60-ca7174204239", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Stocks : Help card in stocks page\"", + "fullTitle": "BO - Catalog - Stocks : Help card in stocks page \"after all\" hook in \"BO - Catalog - Stocks : Help card in stocks page\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "42409ba9-5821-4473-9d17-b47cbaacf1be", + "parentUUID": "e5b7f14d-e51a-41fa-bf60-ca7174204239", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Stocks : Help card in stocks page should login in BO", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc8c3444-8af2-4316-898a-279aaddfe2cf", + "parentUUID": "e5b7f14d-e51a-41fa-bf60-ca7174204239", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Catalog - Stocks : Help card in stocks page should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_helpCard_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed38bd30-028c-4ad1-99b3-f4e2a247932a", + "parentUUID": "e5b7f14d-e51a-41fa-bf60-ca7174204239", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Catalog - Stocks : Help card in stocks page should open the help side bar and check the document language", + "timedOut": false, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, stocks_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5299f2bf-887b-426f-8ebd-de9aa7e4bc53", + "parentUUID": "e5b7f14d-e51a-41fa-bf60-ca7174204239", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Catalog - Stocks : Help card in stocks page should close the help side bar", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_catalog_stocks_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb75ed1e-3b11-4cb7-bdbc-23594145024d", + "parentUUID": "e5b7f14d-e51a-41fa-bf60-ca7174204239", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc8c3444-8af2-4316-898a-279aaddfe2cf", + "ed38bd30-028c-4ad1-99b3-f4e2a247932a", + "5299f2bf-887b-426f-8ebd-de9aa7e4bc53", + "fb75ed1e-3b11-4cb7-bdbc-23594145024d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5920, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "47e47652-40e8-41c0-bcb8-4315597c552c", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 423, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b213e2e1-77ce-4fea-9556-777a18250647", + "parentUUID": "47e47652-40e8-41c0-bcb8-4315597c552c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "177a1be8-8a44-4e91-ab24-b040f0df6a37", + "parentUUID": "47e47652-40e8-41c0-bcb8-4315597c552c", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de1dfd4d-60c1-4e32-92e3-f6e8f67fa1c6", + "parentUUID": "47e47652-40e8-41c0-bcb8-4315597c552c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "00d394d1-ba30-4b59-a708-c870990fdea6", + "title": "BO - Customers - Customers : Filter and quick edit Customers table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : Filter and quick edit Customers table\"", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table \"before all\" hook in \"BO - Customers - Customers : Filter and quick edit Customers table\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed76598a-e865-4405-8a25-15391b960ae9", + "parentUUID": "00d394d1-ba30-4b59-a708-c870990fdea6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : Filter and quick edit Customers table\"", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table \"after all\" hook in \"BO - Customers - Customers : Filter and quick edit Customers table\"", + "timedOut": false, + "duration": 25, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cb415190-73bb-4ab5-ad37-0aecc8ab5439", + "parentUUID": "00d394d1-ba30-4b59-a708-c870990fdea6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table should login in BO", + "timedOut": false, + "duration": 6401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b07ad575-af11-4155-848c-5fb3a5273f0e", + "parentUUID": "00d394d1-ba30-4b59-a708-c870990fdea6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 5541, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ffb1a4c-0a98-4f8a-ad66-0f2ccb198914", + "parentUUID": "00d394d1-ba30-4b59-a708-c870990fdea6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of customers in BO", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table should reset all filters and get number of customers in BO", + "timedOut": false, + "duration": 2019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48fa28d7-1430-4bf3-a88e-bafd0e61fd2e", + "parentUUID": "00d394d1-ba30-4b59-a708-c870990fdea6", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "2d54392b-10bf-40d1-9aa1-618e451198da", + "title": "Filter customers table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_customer '2'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by id_customer '2'", + "timedOut": false, + "duration": 1221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, _a, customerStatus, newsletterStatus, partnerOffersStatus, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _b.sent();\n if (!['filterActive', 'filterNewsletter', 'filterOptin'].includes(test.args.testIdentifier)) return [3 /*break*/, 3];\n return [4 /*yield*/, customers_1.default.filterCustomersSwitch(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _b.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, customers_1.default.filterCustomers(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _b.sent();\n _b.label = 5;\n case 5: return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfCustomersAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.most(numberOfCustomers);\n i = 1;\n _b.label = 7;\n case 7:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 17];\n _a = test.args.filterBy;\n switch (_a) {\n case 'active': return [3 /*break*/, 8];\n case 'newsletter': return [3 /*break*/, 10];\n case 'optin': return [3 /*break*/, 12];\n }\n return [3 /*break*/, 14];\n case 8: return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 9:\n customerStatus = _b.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 10: return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, i)];\n case 11:\n newsletterStatus = _b.sent();\n (0, chai_1.expect)(newsletterStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 12: return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, i)];\n case 13:\n partnerOffersStatus = _b.sent();\n (0, chai_1.expect)(partnerOffersStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 14: return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, test.args.filterBy)];\n case 15:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [3 /*break*/, 16];\n case 16:\n i++;\n return [3 /*break*/, 7];\n case 17: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "600052dc-373b-40b2-babd-dc978e8556ca", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 373, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equals(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "636e4ac0-7e5b-4efa-805d-f1986784e6b9", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by social_title 'Mr.'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by social_title 'Mr.'", + "timedOut": false, + "duration": 1060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterSocialTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, _a, customerStatus, newsletterStatus, partnerOffersStatus, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _b.sent();\n if (!['filterActive', 'filterNewsletter', 'filterOptin'].includes(test.args.testIdentifier)) return [3 /*break*/, 3];\n return [4 /*yield*/, customers_1.default.filterCustomersSwitch(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _b.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, customers_1.default.filterCustomers(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _b.sent();\n _b.label = 5;\n case 5: return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfCustomersAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.most(numberOfCustomers);\n i = 1;\n _b.label = 7;\n case 7:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 17];\n _a = test.args.filterBy;\n switch (_a) {\n case 'active': return [3 /*break*/, 8];\n case 'newsletter': return [3 /*break*/, 10];\n case 'optin': return [3 /*break*/, 12];\n }\n return [3 /*break*/, 14];\n case 8: return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 9:\n customerStatus = _b.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 10: return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, i)];\n case 11:\n newsletterStatus = _b.sent();\n (0, chai_1.expect)(newsletterStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 12: return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, i)];\n case 13:\n partnerOffersStatus = _b.sent();\n (0, chai_1.expect)(partnerOffersStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 14: return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, test.args.filterBy)];\n case 15:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [3 /*break*/, 16];\n case 16:\n i++;\n return [3 /*break*/, 7];\n case 17: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21e3841c-b41c-4d1a-9fee-bc6457fe310d", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 457, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterSocialTitleReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equals(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4175fb2f-368f-443b-b971-558a755e9576", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by firstname 'John'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by firstname 'John'", + "timedOut": false, + "duration": 1142, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterFirstName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, _a, customerStatus, newsletterStatus, partnerOffersStatus, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _b.sent();\n if (!['filterActive', 'filterNewsletter', 'filterOptin'].includes(test.args.testIdentifier)) return [3 /*break*/, 3];\n return [4 /*yield*/, customers_1.default.filterCustomersSwitch(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _b.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, customers_1.default.filterCustomers(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _b.sent();\n _b.label = 5;\n case 5: return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfCustomersAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.most(numberOfCustomers);\n i = 1;\n _b.label = 7;\n case 7:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 17];\n _a = test.args.filterBy;\n switch (_a) {\n case 'active': return [3 /*break*/, 8];\n case 'newsletter': return [3 /*break*/, 10];\n case 'optin': return [3 /*break*/, 12];\n }\n return [3 /*break*/, 14];\n case 8: return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 9:\n customerStatus = _b.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 10: return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, i)];\n case 11:\n newsletterStatus = _b.sent();\n (0, chai_1.expect)(newsletterStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 12: return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, i)];\n case 13:\n partnerOffersStatus = _b.sent();\n (0, chai_1.expect)(partnerOffersStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 14: return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, test.args.filterBy)];\n case 15:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [3 /*break*/, 16];\n case 16:\n i++;\n return [3 /*break*/, 7];\n case 17: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf1748a4-dd79-48b8-a777-0ed020afc557", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 363, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterFirstNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equals(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7e48f85-ea90-4331-a3d4-7444e82f8098", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by lastname 'DOE'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by lastname 'DOE'", + "timedOut": false, + "duration": 1055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterLastName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, _a, customerStatus, newsletterStatus, partnerOffersStatus, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _b.sent();\n if (!['filterActive', 'filterNewsletter', 'filterOptin'].includes(test.args.testIdentifier)) return [3 /*break*/, 3];\n return [4 /*yield*/, customers_1.default.filterCustomersSwitch(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _b.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, customers_1.default.filterCustomers(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _b.sent();\n _b.label = 5;\n case 5: return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfCustomersAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.most(numberOfCustomers);\n i = 1;\n _b.label = 7;\n case 7:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 17];\n _a = test.args.filterBy;\n switch (_a) {\n case 'active': return [3 /*break*/, 8];\n case 'newsletter': return [3 /*break*/, 10];\n case 'optin': return [3 /*break*/, 12];\n }\n return [3 /*break*/, 14];\n case 8: return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 9:\n customerStatus = _b.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 10: return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, i)];\n case 11:\n newsletterStatus = _b.sent();\n (0, chai_1.expect)(newsletterStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 12: return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, i)];\n case 13:\n partnerOffersStatus = _b.sent();\n (0, chai_1.expect)(partnerOffersStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 14: return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, test.args.filterBy)];\n case 15:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [3 /*break*/, 16];\n case 16:\n i++;\n return [3 /*break*/, 7];\n case 17: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a22a101c-83f5-4247-a54b-4f7dbb395028", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterLastNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equals(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f01f020-8bee-43a9-bb54-fd79f93fc262", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by email 'pub@prestashop.com'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by email 'pub@prestashop.com'", + "timedOut": false, + "duration": 1126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, _a, customerStatus, newsletterStatus, partnerOffersStatus, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _b.sent();\n if (!['filterActive', 'filterNewsletter', 'filterOptin'].includes(test.args.testIdentifier)) return [3 /*break*/, 3];\n return [4 /*yield*/, customers_1.default.filterCustomersSwitch(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _b.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, customers_1.default.filterCustomers(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _b.sent();\n _b.label = 5;\n case 5: return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfCustomersAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.most(numberOfCustomers);\n i = 1;\n _b.label = 7;\n case 7:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 17];\n _a = test.args.filterBy;\n switch (_a) {\n case 'active': return [3 /*break*/, 8];\n case 'newsletter': return [3 /*break*/, 10];\n case 'optin': return [3 /*break*/, 12];\n }\n return [3 /*break*/, 14];\n case 8: return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 9:\n customerStatus = _b.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 10: return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, i)];\n case 11:\n newsletterStatus = _b.sent();\n (0, chai_1.expect)(newsletterStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 12: return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, i)];\n case 13:\n partnerOffersStatus = _b.sent();\n (0, chai_1.expect)(partnerOffersStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 14: return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, test.args.filterBy)];\n case 15:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [3 /*break*/, 16];\n case 16:\n i++;\n return [3 /*break*/, 7];\n case 17: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8882d352-4c53-43da-9e8c-0a37ab46fb85", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 373, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterEmailReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equals(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ce9cc27-5df0-47b2-839b-ff05753ed87e", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by active '1'", + "timedOut": false, + "duration": 1014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, _a, customerStatus, newsletterStatus, partnerOffersStatus, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _b.sent();\n if (!['filterActive', 'filterNewsletter', 'filterOptin'].includes(test.args.testIdentifier)) return [3 /*break*/, 3];\n return [4 /*yield*/, customers_1.default.filterCustomersSwitch(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _b.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, customers_1.default.filterCustomers(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _b.sent();\n _b.label = 5;\n case 5: return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfCustomersAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.most(numberOfCustomers);\n i = 1;\n _b.label = 7;\n case 7:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 17];\n _a = test.args.filterBy;\n switch (_a) {\n case 'active': return [3 /*break*/, 8];\n case 'newsletter': return [3 /*break*/, 10];\n case 'optin': return [3 /*break*/, 12];\n }\n return [3 /*break*/, 14];\n case 8: return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 9:\n customerStatus = _b.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 10: return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, i)];\n case 11:\n newsletterStatus = _b.sent();\n (0, chai_1.expect)(newsletterStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 12: return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, i)];\n case 13:\n partnerOffersStatus = _b.sent();\n (0, chai_1.expect)(partnerOffersStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 14: return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, test.args.filterBy)];\n case 15:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [3 /*break*/, 16];\n case 16:\n i++;\n return [3 /*break*/, 7];\n case 17: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55f2de29-376b-41c4-a2bb-18ea3fa0c2cb", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 368, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterActiveReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equals(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0134778-5c2e-4ff9-8cd8-26d395b8d5d0", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by newsletter '1'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by newsletter '1'", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, _a, customerStatus, newsletterStatus, partnerOffersStatus, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _b.sent();\n if (!['filterActive', 'filterNewsletter', 'filterOptin'].includes(test.args.testIdentifier)) return [3 /*break*/, 3];\n return [4 /*yield*/, customers_1.default.filterCustomersSwitch(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _b.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, customers_1.default.filterCustomers(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _b.sent();\n _b.label = 5;\n case 5: return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfCustomersAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.most(numberOfCustomers);\n i = 1;\n _b.label = 7;\n case 7:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 17];\n _a = test.args.filterBy;\n switch (_a) {\n case 'active': return [3 /*break*/, 8];\n case 'newsletter': return [3 /*break*/, 10];\n case 'optin': return [3 /*break*/, 12];\n }\n return [3 /*break*/, 14];\n case 8: return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 9:\n customerStatus = _b.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 10: return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, i)];\n case 11:\n newsletterStatus = _b.sent();\n (0, chai_1.expect)(newsletterStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 12: return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, i)];\n case 13:\n partnerOffersStatus = _b.sent();\n (0, chai_1.expect)(partnerOffersStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 14: return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, test.args.filterBy)];\n case 15:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [3 /*break*/, 16];\n case 16:\n i++;\n return [3 /*break*/, 7];\n case 17: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bab786b7-c394-4f49-a4d6-3ad16f747706", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterNewsletterReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equals(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e3319de-3102-4eb6-8250-35aa21276bf7", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by optin '0'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by optin '0'", + "timedOut": false, + "duration": 1024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterOptin\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, _a, customerStatus, newsletterStatus, partnerOffersStatus, textColumn;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _b.sent();\n if (!['filterActive', 'filterNewsletter', 'filterOptin'].includes(test.args.testIdentifier)) return [3 /*break*/, 3];\n return [4 /*yield*/, customers_1.default.filterCustomersSwitch(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _b.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, customers_1.default.filterCustomers(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 4:\n _b.sent();\n _b.label = 5;\n case 5: return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 6:\n numberOfCustomersAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.most(numberOfCustomers);\n i = 1;\n _b.label = 7;\n case 7:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 17];\n _a = test.args.filterBy;\n switch (_a) {\n case 'active': return [3 /*break*/, 8];\n case 'newsletter': return [3 /*break*/, 10];\n case 'optin': return [3 /*break*/, 12];\n }\n return [3 /*break*/, 14];\n case 8: return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 9:\n customerStatus = _b.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 10: return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, i)];\n case 11:\n newsletterStatus = _b.sent();\n (0, chai_1.expect)(newsletterStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 12: return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, i)];\n case 13:\n partnerOffersStatus = _b.sent();\n (0, chai_1.expect)(partnerOffersStatus).to.equals(test.args.filterValue === '1');\n return [3 /*break*/, 16];\n case 14: return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, test.args.filterBy)];\n case 15:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [3 /*break*/, 16];\n case 16:\n i++;\n return [3 /*break*/, 7];\n case 17: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb30d292-c0bc-4dd5-bd98-aa4e80e3da21", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 454, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterOptinReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equals(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d84333c8-8b39-4260-9d94-136ab011551f", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by registration 'Date from' and 'Date to'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should filter by registration 'Date from' and 'Date to'", + "timedOut": false, + "duration": 1211, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterByDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByDate', baseContext)];\n case 1:\n _a.sent();\n // Filter orders\n return [4 /*yield*/, customers_1.default.filterCustomersByRegistration(page, today, today)];\n case 2:\n // Filter orders\n _a.sent();\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCustomersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, i, 'date_add')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(today);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa81b498-ec93-4504-babf-c92aa716d498", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Filter customers table should reset all filters", + "timedOut": false, + "duration": 375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equal(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4102e08e-420b-4a41-b117-4aa47c6a32b8", + "parentUUID": "2d54392b-10bf-40d1-9aa1-618e451198da", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "600052dc-373b-40b2-babd-dc978e8556ca", + "636e4ac0-7e5b-4efa-805d-f1986784e6b9", + "21e3841c-b41c-4d1a-9fee-bc6457fe310d", + "4175fb2f-368f-443b-b971-558a755e9576", + "bf1748a4-dd79-48b8-a777-0ed020afc557", + "f7e48f85-ea90-4331-a3d4-7444e82f8098", + "a22a101c-83f5-4247-a54b-4f7dbb395028", + "3f01f020-8bee-43a9-bb54-fd79f93fc262", + "8882d352-4c53-43da-9e8c-0a37ab46fb85", + "1ce9cc27-5df0-47b2-839b-ff05753ed87e", + "55f2de29-376b-41c4-a2bb-18ea3fa0c2cb", + "d0134778-5c2e-4ff9-8cd8-26d395b8d5d0", + "bab786b7-c394-4f49-a4d6-3ad16f747706", + "9e3319de-3102-4eb6-8250-35aa21276bf7", + "bb30d292-c0bc-4dd5-bd98-aa4e80e3da21", + "d84333c8-8b39-4260-9d94-136ab011551f", + "aa81b498-ec93-4504-babf-c92aa716d498", + "4102e08e-420b-4a41-b117-4aa47c6a32b8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13369, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b8a32e2b-8441-49f6-bade-6f1e7a4578f1", + "title": "Quick edit customers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "beforeHooks": [], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Quick edit customers\"", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Quick edit customers \"after all\" hook in \"Quick edit customers\"", + "timedOut": false, + "duration": 431, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "10d34aef-e2e5-423e-8c86-45a67c08d71d", + "parentUUID": "b8a32e2b-8441-49f6-bade-6f1e7a4578f1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should filter by email 'pub@prestashop.com'", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Quick edit customers should filter by email 'pub@prestashop.com'", + "timedOut": false, + "duration": 1081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customers_2.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.be.at.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99752a2a-f7e6-4d8d-9965-4b56066483ae", + "parentUUID": "b8a32e2b-8441-49f6-bade-6f1e7a4578f1", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "1e5a1a0e-443c-46bc-8d0a-db1b581d6a07", + "title": "Quick edit customer status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should disable customer status", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Quick edit customers Quick edit customer status should disable customer status", + "timedOut": false, + "duration": 4494, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_quickEditStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var resultMessage, customerStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickEditStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setCustomerStatus(page, 1, test.args.value)];\n case 2:\n resultMessage = _a.sent();\n if (resultMessage) {\n (0, chai_1.expect)(resultMessage).to.contains(customers_1.default.successfulUpdateStatusMessage);\n }\n return [4 /*yield*/, customers_1.default.getCustomerStatus(page, 1)];\n case 3:\n customerStatus = _a.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe2c285b-9eb4-44c8-ac24-002ab87849ac", + "parentUUID": "1e5a1a0e-443c-46bc-8d0a-db1b581d6a07", + "isHook": false, + "skipped": false + }, + { + "title": "should enable customer status", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Quick edit customers Quick edit customer status should enable customer status", + "timedOut": false, + "duration": 4493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_quickEditStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var resultMessage, customerStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickEditStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setCustomerStatus(page, 1, test.args.value)];\n case 2:\n resultMessage = _a.sent();\n if (resultMessage) {\n (0, chai_1.expect)(resultMessage).to.contains(customers_1.default.successfulUpdateStatusMessage);\n }\n return [4 /*yield*/, customers_1.default.getCustomerStatus(page, 1)];\n case 3:\n customerStatus = _a.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73e094b3-ec1c-4eb0-a391-ce952abbf8cc", + "parentUUID": "1e5a1a0e-443c-46bc-8d0a-db1b581d6a07", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fe2c285b-9eb4-44c8-ac24-002ab87849ac", + "73e094b3-ec1c-4eb0-a391-ce952abbf8cc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8987, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cfaff128-e1ea-4796-ae7e-004407825bc8", + "title": "Quick edit newsletter status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should enable customer newsletter status", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Quick edit customers Quick edit newsletter status should enable customer newsletter status", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_quickEditNewsletter0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var resultMessage, customerStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickEditNewsletter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setNewsletterStatus(page, 1, test.args.value)];\n case 2:\n resultMessage = _a.sent();\n if (resultMessage) {\n (0, chai_1.expect)(resultMessage).to.contains(customers_1.default.successfulUpdateStatusMessage);\n }\n return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, 1)];\n case 3:\n customerStatus = _a.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10844fb1-6a46-46ac-bdcd-66d52bfb7ff9", + "parentUUID": "cfaff128-e1ea-4796-ae7e-004407825bc8", + "isHook": false, + "skipped": false + }, + { + "title": "should disable customer newsletter status", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Quick edit customers Quick edit newsletter status should disable customer newsletter status", + "timedOut": false, + "duration": 4490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_quickEditNewsletter1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var resultMessage, customerStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickEditNewsletter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setNewsletterStatus(page, 1, test.args.value)];\n case 2:\n resultMessage = _a.sent();\n if (resultMessage) {\n (0, chai_1.expect)(resultMessage).to.contains(customers_1.default.successfulUpdateStatusMessage);\n }\n return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, 1)];\n case 3:\n customerStatus = _a.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14e599b3-531b-47e9-a93e-4edafbd69e7c", + "parentUUID": "cfaff128-e1ea-4796-ae7e-004407825bc8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "10844fb1-6a46-46ac-bdcd-66d52bfb7ff9", + "14e599b3-531b-47e9-a93e-4edafbd69e7c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4496, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "36ea18ae-f240-4cf7-ab9f-ddc766130b8d", + "title": "Quick edit partner offers status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/01_filterAndQuickEditCustomers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should enable customer partner offers status", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Quick edit customers Quick edit partner offers status should enable customer partner offers status", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_quickEditOptin0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var resultMessage, customerStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickEditOptin\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setPartnerOffersStatus(page, 1, test.args.value)];\n case 2:\n resultMessage = _a.sent();\n if (resultMessage) {\n (0, chai_1.expect)(resultMessage).to.contains(customers_1.default.successfulUpdateStatusMessage);\n }\n return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, 1)];\n case 3:\n customerStatus = _a.sent();\n (0, chai_1.expect)(customerStatus).to.be.equal(test.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1009af9c-2b7c-46d4-a755-48ca11c43556", + "parentUUID": "36ea18ae-f240-4cf7-ab9f-ddc766130b8d", + "isHook": false, + "skipped": false + }, + { + "title": "should disable customer partner offers status", + "fullTitle": "BO - Customers - Customers : Filter and quick edit Customers table Quick edit customers Quick edit partner offers status should disable customer partner offers status", + "timedOut": false, + "duration": 4493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_filterAndQuickEditCustomers_quickEditOptin1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var resultMessage, customerStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickEditOptin\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setPartnerOffersStatus(page, 1, test.args.value)];\n case 2:\n resultMessage = _a.sent();\n if (resultMessage) {\n (0, chai_1.expect)(resultMessage).to.contains(customers_1.default.successfulUpdateStatusMessage);\n }\n return [4 /*yield*/, customers_1.default.getPartnerOffersStatus(page, 1)];\n case 3:\n customerStatus = _a.sent();\n (0, chai_1.expect)(customerStatus).to.be.equal(test.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee248ca8-c777-4cbd-bcd7-4404e39b152c", + "parentUUID": "36ea18ae-f240-4cf7-ab9f-ddc766130b8d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1009af9c-2b7c-46d4-a755-48ca11c43556", + "ee248ca8-c777-4cbd-bcd7-4404e39b152c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4499, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "99752a2a-f7e6-4d8d-9965-4b56066483ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1081, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b07ad575-af11-4155-848c-5fb3a5273f0e", + "4ffb1a4c-0a98-4f8a-ad66-0f2ccb198914", + "48fa28d7-1430-4bf3-a88e-bafd0e61fd2e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13961, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9ec9c755-fa69-42f6-a609-90a2fac2539d", + "title": "BO - Customers - Customers : CRUD Customer in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : CRUD Customer in BO\"", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO \"before all\" hook in \"BO - Customers - Customers : CRUD Customer in BO\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54cb137c-8e03-4075-bbda-77b0d39b1441", + "parentUUID": "9ec9c755-fa69-42f6-a609-90a2fac2539d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : CRUD Customer in BO\"", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO \"after all\" hook in \"BO - Customers - Customers : CRUD Customer in BO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "300085c5-108e-47a6-a488-716678b36c17", + "parentUUID": "9ec9c755-fa69-42f6-a609-90a2fac2539d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO should login in BO", + "timedOut": false, + "duration": 1768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a41e3eed-426e-462d-9e1c-ab4c52337b53", + "parentUUID": "9ec9c755-fa69-42f6-a609-90a2fac2539d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cbdeba1-9aae-4b33-8ea4-1b22274ff745", + "parentUUID": "9ec9c755-fa69-42f6-a609-90a2fac2539d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa92b0ca-5997-4e5f-acb8-c51ee4fd7f28", + "parentUUID": "9ec9c755-fa69-42f6-a609-90a2fac2539d", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "dcc3b901-fd3c-4ea0-802d-f8971b821ce6", + "title": "Create customer in BO and check sign in in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new customer page", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Create customer in BO and check sign in in FO should go to add new customer page", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44344c3a-3bca-4305-aadd-e63f2572328b", + "parentUUID": "dcc3b901-fd3c-4ea0-802d-f8971b821ce6", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer and check result", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Create customer in BO and check sign in in FO should create customer and check result", + "timedOut": false, + "duration": 1526, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, createCustomerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterCreation).to.be.equal(numberOfCustomers + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81ff5c94-89b1-4d24-9664-1a33bf088766", + "parentUUID": "dcc3b901-fd3c-4ea0-802d-f8971b821ce6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "44344c3a-3bca-4305-aadd-e63f2572328b", + "81ff5c94-89b1-4d24-9664-1a33bf088766" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2423, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f14b7788-01de-4453-b610-163dec4f468a", + "title": "Check sign in in FO by new customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Check sign in in FO by new customer should view my shop", + "timedOut": false, + "duration": 1746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f74d5d3d-b389-4b1c-8471-d2e5e5543b85", + "parentUUID": "f14b7788-01de-4453-b610-163dec4f468a", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by new customer", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Check sign in in FO by new customer should sign in by new customer", + "timedOut": false, + "duration": 1376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_signInWithNewCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInWithNewCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, createCustomerData)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f3545ed-d355-4d80-810b-1d2fad286356", + "parentUUID": "f14b7788-01de-4453-b610-163dec4f468a", + "isHook": false, + "skipped": false + }, + { + "title": "should logout", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Check sign in in FO by new customer should logout", + "timedOut": false, + "duration": 1771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_logOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logOutFO', baseContext)];\n case 1:\n _a.sent();\n // Logout in FO\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 2:\n // Logout in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b79efa8b-d690-4a59-9270-17f359e267b6", + "parentUUID": "f14b7788-01de-4453-b610-163dec4f468a", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Check sign in in FO by new customer should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a7fda78-ed0c-4da9-b16a-329a1d03ae16", + "parentUUID": "f14b7788-01de-4453-b610-163dec4f468a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f74d5d3d-b389-4b1c-8471-d2e5e5543b85", + "6f3545ed-d355-4d80-810b-1d2fad286356", + "b79efa8b-d690-4a59-9270-17f359e267b6", + "1a7fda78-ed0c-4da9-b16a-329a1d03ae16" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4899, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6ebf3a0b-8872-4ddf-ba2e-cbe46f3080ff", + "title": "View created customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by email 'Tara.Ryan34@prestashop.com'", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO View created customer should filter list by email 'Tara.Ryan34@prestashop.com'", + "timedOut": false, + "duration": 3173, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_filterToViewCreatedCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCreatedCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', createCustomerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eeaee886-ddea-4407-b588-2d30f5c99b1b", + "parentUUID": "6ebf3a0b-8872-4ddf-ba2e-cbe46f3080ff", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view customer", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO View created customer should click on view customer", + "timedOut": false, + "duration": 974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToViewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToViewCustomerPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(createCustomerName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "def4b83f-e912-417f-9fe2-6f0cd2b57cbb", + "parentUUID": "6ebf3a0b-8872-4ddf-ba2e-cbe46f3080ff", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer personal information", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO View created customer should check customer personal information", + "timedOut": false, + "duration": 38, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_checkCreatedCustomerInfo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText, numOrders, numCarts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedCustomerInfo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPersonalInformationTitle(page)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.firstName);\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.lastName);\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.email);\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, 'Orders')];\n case 3:\n numOrders = _a.sent();\n (0, chai_1.expect)(parseInt(numOrders, 10)).equal(0);\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, 'Carts')];\n case 4:\n numCarts = _a.sent();\n (0, chai_1.expect)(parseInt(numCarts, 10)).equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38d104be-69db-41de-926e-0aa83adf324c", + "parentUUID": "6ebf3a0b-8872-4ddf-ba2e-cbe46f3080ff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eeaee886-ddea-4407-b588-2d30f5c99b1b", + "def4b83f-e912-417f-9fe2-6f0cd2b57cbb", + "38d104be-69db-41de-926e-0aa83adf324c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4185, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ac1d4a7a-a264-4fce-a568-fdbd8634092d", + "title": "Update customer in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Update customer in BO should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToCustomerPageToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerPageToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToSubMenu(page, view_1.default.customersParentLink, view_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8c904f3-2bca-4058-b7c0-2c857e963833", + "parentUUID": "ac1d4a7a-a264-4fce-a568-fdbd8634092d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email 'Tara.Ryan34@prestashop.com'", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Update customer in BO should filter list by email 'Tara.Ryan34@prestashop.com'", + "timedOut": false, + "duration": 1452, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_filterToUpdateCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', createCustomerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acb4f8ac-3b7b-45f4-960d-10e66b29bb60", + "parentUUID": "ac1d4a7a-a264-4fce-a568-fdbd8634092d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit customer page", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Update customer in BO should go to edit customer page", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToEditPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToEditCustomerPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03e11b76-1723-4dd9-9fae-d29dbc04e424", + "parentUUID": "ac1d4a7a-a264-4fce-a568-fdbd8634092d", + "isHook": false, + "skipped": false + }, + { + "title": "should update customer", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Update customer in BO should update customer", + "timedOut": false, + "duration": 1798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_updateCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, editCustomerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulUpdateMessage);\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomersAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterUpdate).to.be.equal(numberOfCustomers + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d3a47e3-3f70-42e2-a157-9600316ddd5a", + "parentUUID": "ac1d4a7a-a264-4fce-a568-fdbd8634092d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c8c904f3-2bca-4058-b7c0-2c857e963833", + "acb4f8ac-3b7b-45f4-960d-10e66b29bb60", + "03e11b76-1723-4dd9-9fae-d29dbc04e424", + "2d3a47e3-3f70-42e2-a157-9600316ddd5a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8019, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8d5bcb7c-62b6-48ce-93f3-66246b6c862b", + "title": "Check sign in in FO by disabled customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Check sign in in FO by disabled customer should view my shop", + "timedOut": false, + "duration": 1754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f39a04e-0a50-458a-a35b-8e318a8371dd", + "parentUUID": "8d5bcb7c-62b6-48ce-93f3-66246b6c862b", + "isHook": false, + "skipped": false + }, + { + "title": "should check sign in by edited account", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Check sign in in FO by disabled customer should check sign in by edited account", + "timedOut": false, + "duration": 4059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_checkFOSignInWithUpdatedCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFOSignInWithUpdatedCustomer', baseContext)];\n case 1:\n _a.sent();\n // Try to log in\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Try to log in\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, editCustomerData)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(false);\n return [4 /*yield*/, login_1.loginPage.getLoginError(page)];\n case 5:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.loginPage.disabledAccountErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3354925d-cd01-494d-9f1b-1e460890e5b8", + "parentUUID": "8d5bcb7c-62b6-48ce-93f3-66246b6c862b", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Check sign in in FO by disabled customer should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb7326f9-0634-4548-847c-3f715a243998", + "parentUUID": "8d5bcb7c-62b6-48ce-93f3-66246b6c862b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6f39a04e-0a50-458a-a35b-8e318a8371dd", + "3354925d-cd01-494d-9f1b-1e460890e5b8", + "fb7326f9-0634-4548-847c-3f715a243998" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5819, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "99b28cfa-9ed5-47a8-a37f-9f6ca07a3ec6", + "title": "View updated customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by email 'Cristal.Streich@prestashop.com'", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO View updated customer should filter list by email 'Cristal.Streich@prestashop.com'", + "timedOut": false, + "duration": 3180, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_filterToViewUpdatedCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewUpdatedCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', editCustomerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4c9069d-c612-4bc1-8e46-d4c63f8920f9", + "parentUUID": "99b28cfa-9ed5-47a8-a37f-9f6ca07a3ec6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view customer", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO View updated customer should click on view customer", + "timedOut": false, + "duration": 896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToViewUpdatedCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewUpdatedCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToViewCustomerPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(editCustomerName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "547ac256-1c98-43aa-92f4-aadbe249fe47", + "parentUUID": "99b28cfa-9ed5-47a8-a37f-9f6ca07a3ec6", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer personal information", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO View updated customer should check customer personal information", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_checkUpdatedCustomerInfo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText, numOrders, numCarts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedCustomerInfo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPersonalInformationTitle(page)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(editCustomerData.firstName);\n (0, chai_1.expect)(cardHeaderText).to.contains(editCustomerData.lastName);\n (0, chai_1.expect)(cardHeaderText).to.contains(editCustomerData.email);\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, 'Orders')];\n case 3:\n numOrders = _a.sent();\n (0, chai_1.expect)(parseInt(numOrders, 10)).equal(0);\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, 'Carts')];\n case 4:\n numCarts = _a.sent();\n (0, chai_1.expect)(parseInt(numCarts, 10)).equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "860adba4-dcc6-440e-8dbe-64e88b33d275", + "parentUUID": "99b28cfa-9ed5-47a8-a37f-9f6ca07a3ec6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c4c9069d-c612-4bc1-8e46-d4c63f8920f9", + "547ac256-1c98-43aa-92f4-aadbe249fe47", + "860adba4-dcc6-440e-8dbe-64e88b33d275" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4112, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5e3baf8c-4f7b-491d-b7ae-b527f4881d4e", + "title": "Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/02_CRUDCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Delete customer should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_goToCustomersPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToSubMenu(page, view_1.default.customersParentLink, view_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c3455cf-c7a7-486f-9e5c-ee1b26f4c3cf", + "parentUUID": "5e3baf8c-4f7b-491d-b7ae-b527f4881d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email 'Cristal.Streich@prestashop.com'", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Delete customer should filter list by email 'Cristal.Streich@prestashop.com'", + "timedOut": false, + "duration": 1473, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', editCustomerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef1544e4-d17f-482d-bafc-2e0cc4124adf", + "parentUUID": "5e3baf8c-4f7b-491d-b7ae-b527f4881d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Delete customer should delete customer", + "timedOut": false, + "duration": 1954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulDeleteMessage);\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomersAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterDelete).to.be.equal(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c88b19b3-566f-481a-b9cf-af55e6f9dfd4", + "parentUUID": "5e3baf8c-4f7b-491d-b7ae-b527f4881d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : CRUD Customer in BO Delete customer should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_CRUDCustomer_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equal(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a40047b-9c96-4c01-b4b2-4e88219a7941", + "parentUUID": "5e3baf8c-4f7b-491d-b7ae-b527f4881d4e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7c3455cf-c7a7-486f-9e5c-ee1b26f4c3cf", + "ef1544e4-d17f-482d-bafc-2e0cc4124adf", + "c88b19b3-566f-481a-b9cf-af55e6f9dfd4", + "9a40047b-9c96-4c01-b4b2-4e88219a7941" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9327, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a41e3eed-426e-462d-9e1c-ab4c52337b53", + "8cbdeba1-9aae-4b33-8ea4-1b22274ff745", + "fa92b0ca-5997-4e5f-acb8-c51ee4fd7f28" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8757, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52d05291-6e57-47a8-a5fb-3b3c8bb0512d", + "title": "BO - Customers - Customers : Customers bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/03_customersBulkActions.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/03_customersBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : Customers bulk actions\"", + "fullTitle": "BO - Customers - Customers : Customers bulk actions \"before all\" hook in \"BO - Customers - Customers : Customers bulk actions\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56164b74-d82a-4473-848a-004620d44a3c", + "parentUUID": "52d05291-6e57-47a8-a5fb-3b3c8bb0512d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : Customers bulk actions\"", + "fullTitle": "BO - Customers - Customers : Customers bulk actions \"after all\" hook in \"BO - Customers - Customers : Customers bulk actions\"", + "timedOut": false, + "duration": 15, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ac04a974-414b-4370-9764-ba9aae3f23b8", + "parentUUID": "52d05291-6e57-47a8-a5fb-3b3c8bb0512d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Customers bulk actions should login in BO", + "timedOut": false, + "duration": 1704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b40d5fcd-6963-456b-bcd3-703767947f91", + "parentUUID": "52d05291-6e57-47a8-a5fb-3b3c8bb0512d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Customers bulk actions should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54673ca4-acae-4d48-a0a1-87a3c0035f74", + "parentUUID": "52d05291-6e57-47a8-a5fb-3b3c8bb0512d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Customers bulk actions should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdb70952-4160-478a-94da-7d72f317ecce", + "parentUUID": "52d05291-6e57-47a8-a5fb-3b3c8bb0512d", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "031311df-da25-4adb-a623-24df6cbc0c17", + "title": "Create 2 customers in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/03_customersBulkActions.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/03_customersBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new customer page", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Create 2 customers in BO should go to add new customer page", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_goToAddCustomerPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCustomerPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f476564-2b48-4876-9748-a5749d8fa1ca", + "parentUUID": "031311df-da25-4adb-a623-24df6cbc0c17", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer n°1 and check result", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Create 2 customers in BO should create customer n°1 and check result", + "timedOut": false, + "duration": 1510, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_createCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCustomer\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, test.args.customerToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterCreation).to.be.equal(numberOfCustomers + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "983f60d2-2ae2-4035-8ff0-5c52e75b58a4", + "parentUUID": "031311df-da25-4adb-a623-24df6cbc0c17", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Create 2 customers in BO should go to add new customer page", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_goToAddCustomerPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCustomerPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d97d999c-7836-4007-a519-06c55ed20890", + "parentUUID": "031311df-da25-4adb-a623-24df6cbc0c17", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer n°2 and check result", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Create 2 customers in BO should create customer n°2 and check result", + "timedOut": false, + "duration": 1500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_createCustomer2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCustomer\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, test.args.customerToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterCreation).to.be.equal(numberOfCustomers + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "184ac307-eaf2-4f78-85db-cb45e528419f", + "parentUUID": "031311df-da25-4adb-a623-24df6cbc0c17", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8f476564-2b48-4876-9748-a5749d8fa1ca", + "983f60d2-2ae2-4035-8ff0-5c52e75b58a4", + "d97d999c-7836-4007-a519-06c55ed20890", + "184ac307-eaf2-4f78-85db-cb45e528419f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4677, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a343dd3a-1864-4d54-840b-974053a02ad3", + "title": "Enable/Disable customers by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/03_customersBulkActions.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/03_customersBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by firstName", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Enable/Disable customers by bulk actions should filter list by firstName", + "timedOut": false, + "duration": 1026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_filterToBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'firstname', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'firstname')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b84bf98f-6b55-4957-8cb8-a9b5fe48fba5", + "parentUUID": "a343dd3a-1864-4d54-840b-974053a02ad3", + "isHook": false, + "skipped": false + }, + { + "title": "should disable customers with bulk actions and check result", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Enable/Disable customers by bulk actions should disable customers with bulk actions and check result", + "timedOut": false, + "duration": 522, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_disableCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersInGrid, i, customerStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Customers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(customers_1.default.successfulUpdateMessage);\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersInGrid = _a.sent();\n (0, chai_1.expect)(numberOfCustomersInGrid).to.be.at.least(2);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCustomersInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 5:\n customerStatus = _a.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeee630d-44dc-447c-a2f9-adbfadcde457", + "parentUUID": "a343dd3a-1864-4d54-840b-974053a02ad3", + "isHook": false, + "skipped": false + }, + { + "title": "should enable customers with bulk actions and check result", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Enable/Disable customers by bulk actions should enable customers with bulk actions and check result", + "timedOut": false, + "duration": 1160, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_enableCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersInGrid, i, customerStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Customers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(customers_1.default.successfulUpdateMessage);\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersInGrid = _a.sent();\n (0, chai_1.expect)(numberOfCustomersInGrid).to.be.at.least(2);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCustomersInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, customers_1.default.getCustomerStatus(page, i)];\n case 5:\n customerStatus = _a.sent();\n (0, chai_1.expect)(customerStatus).to.equals(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33bdb1f7-9aed-4358-b5e3-c7dd3445bf37", + "parentUUID": "a343dd3a-1864-4d54-840b-974053a02ad3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b84bf98f-6b55-4957-8cb8-a9b5fe48fba5", + "aeee630d-44dc-447c-a2f9-adbfadcde457", + "33bdb1f7-9aed-4358-b5e3-c7dd3445bf37" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2708, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b6f638a4-0ba4-4f6c-9536-132045f511bb", + "title": "Delete customers by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/03_customersBulkActions.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/03_customersBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by firstName", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Delete customers by bulk actions should filter list by firstName", + "timedOut": false, + "duration": 1030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'firstname', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'firstname')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2164877e-6ff0-47d8-bd1d-f1ce198a94d7", + "parentUUID": "b6f638a4-0ba4-4f6c-9536-132045f511bb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customers", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Delete customers by bulk actions should delete customers", + "timedOut": false, + "duration": 1614, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_bulkDeleteCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomersBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56ad6ee1-9ed4-4a05-9fcc-19532094f98f", + "parentUUID": "b6f638a4-0ba4-4f6c-9536-132045f511bb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Customers bulk actions Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 364, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_customersBulkActions_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.equal(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9accb447-194c-4ca9-8b81-e60362c32b59", + "parentUUID": "b6f638a4-0ba4-4f6c-9536-132045f511bb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2164877e-6ff0-47d8-bd1d-f1ce198a94d7", + "56ad6ee1-9ed4-4a05-9fcc-19532094f98f", + "9accb447-194c-4ca9-8b81-e60362c32b59" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3008, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b40d5fcd-6963-456b-bcd3-703767947f91", + "54673ca4-acae-4d48-a0a1-87a3c0035f74", + "bdb70952-4160-478a-94da-7d72f317ecce" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8693, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "20b20893-76b1-4c2f-a758-63ec941d6017", + "title": "BO - Customers - Customers : Pagination and sort customers table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : Pagination and sort customers table\"", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table \"before all\" hook in \"BO - Customers - Customers : Pagination and sort customers table\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all customers data\n return [4 /*yield*/, files_1.default.createCSVFile('.', fileName, customers_2.default)];\n case 3:\n // Create csv file with all customers data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a58984f-95db-4b8b-a659-d847a9f34e23", + "parentUUID": "20b20893-76b1-4c2f-a758-63ec941d6017", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : Pagination and sort customers table\"", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table \"after all\" hook in \"BO - Customers - Customers : Pagination and sort customers table\"", + "timedOut": false, + "duration": 24, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete created csv file\n return [4 /*yield*/, files_1.default.deleteFile(fileName)];\n case 2:\n // Delete created csv file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "efe6dfbd-6f5f-4b2c-86a8-1e6e5c952ae4", + "parentUUID": "20b20893-76b1-4c2f-a758-63ec941d6017", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "title": "PRE-TEST: Import file 'customers.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'customers.csv'\"", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' \"before all\" hook in \"PRE-TEST: Import file 'customers.csv'\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4186f81c-da20-482b-b8d3-3616dde61328", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'customers.csv'\"", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' \"after all\" hook in \"PRE-TEST: Import file 'customers.csv'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6f3fc62b-397a-4b09-8961-4d1703c8deed", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' should login in BO", + "timedOut": false, + "duration": 1713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e91b34a3-476d-4870-aee2-012f029a5e25", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c23a38b-3540-4b82-9ac1-0e27c7164455", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'customers.csv' file", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' should import 'customers.csv' file", + "timedOut": false, + "duration": 2088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2c64106-29d7-45c7-a52f-0155db652205", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' should go to next import file step", + "timedOut": false, + "duration": 438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88dc0df9-bbd7-4225-a856-98ff3c59d77c", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' should start import file", + "timedOut": false, + "duration": 245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "707eb9f1-00a2-4644-a3c0-e1064e0ba380", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' should check that the import is completed", + "timedOut": false, + "duration": 1589, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57910a70-756b-4955-91b8-0e34811e7d4c", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table PRE-TEST: Import file 'customers.csv' should close import progress modal", + "timedOut": false, + "duration": 1171, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7002bc9-6b0c-41a4-ac53-ef5ce7f9a5eb", + "parentUUID": "0ff5aa9a-7cbf-42e4-bf09-81fe21ac2367", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e91b34a3-476d-4870-aee2-012f029a5e25", + "0c23a38b-3540-4b82-9ac1-0e27c7164455", + "b2c64106-29d7-45c7-a52f-0155db652205", + "88dc0df9-bbd7-4225-a856-98ff3c59d77c", + "707eb9f1-00a2-4644-a3c0-e1064e0ba380", + "57910a70-756b-4955-91b8-0e34811e7d4c", + "f7002bc9-6b0c-41a4-ac53-ef5ce7f9a5eb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12141, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "13d5397c-8420-4f13-90a3-a48fc7010b96", + "title": "Go to 'Customers > Customers' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Go to 'Customers > Customers' page should login in BO", + "timedOut": false, + "duration": 1687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "853b4b8e-bb33-4758-bbd0-e1a584e0237a", + "parentUUID": "13d5397c-8420-4f13-90a3-a48fc7010b96", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Go to 'Customers > Customers' page should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 5033, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b66d17cf-0e1f-4264-852d-8d50bf278101", + "parentUUID": "13d5397c-8420-4f13-90a3-a48fc7010b96", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of customers in BO", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Go to 'Customers > Customers' page should reset all filters and get number of customers in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad639914-a85e-423a-b67c-97c4a337ac7d", + "parentUUID": "13d5397c-8420-4f13-90a3-a48fc7010b96", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "853b4b8e-bb33-4758-bbd0-e1a584e0237a", + "b66d17cf-0e1f-4264-852d-8d50bf278101", + "ad639914-a85e-423a-b67c-97c4a337ac7d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8726, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "22b1a093-d932-4611-b7f9-7a026423cd5d", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe0393fa-4a46-4996-ba6b-c998365332cc", + "parentUUID": "22b1a093-d932-4611-b7f9-7a026423cd5d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Pagination next and previous should click on next", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "baec7eb5-a2fb-47f3-b1e0-80fd26e20291", + "parentUUID": "22b1a093-d932-4611-b7f9-7a026423cd5d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f9723bb-3b7c-4e86-a3a5-dff4134a256e", + "parentUUID": "22b1a093-d932-4611-b7f9-7a026423cd5d", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac1ec2b5-1618-47a5-8714-9243e10d4021", + "parentUUID": "22b1a093-d932-4611-b7f9-7a026423cd5d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fe0393fa-4a46-4996-ba6b-c998365332cc", + "baec7eb5-a2fb-47f3-b1e0-80fd26e20291", + "3f9723bb-3b7c-4e86-a3a5-dff4134a256e", + "ac1ec2b5-1618-47a5-8714-9243e10d4021" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3763, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "title": "Sort customers table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_customer' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'id_customer' 'desc' and check result", + "timedOut": false, + "duration": 4060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ec3f210-94d2-463b-88fa-39e3c66da4e8", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'social_title' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'social_title' 'asc' and check result", + "timedOut": false, + "duration": 3109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortBySocialTitleAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ca411f6-661e-44e8-aec7-a5bb9d5a8f49", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'social_title' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'social_title' 'desc' and check result", + "timedOut": false, + "duration": 3135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortBySocialTitleDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c9728d2-e2fa-4e45-9fba-bb380deeaf49", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'firstname' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'firstname' 'asc' and check result", + "timedOut": false, + "duration": 3199, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByFirstNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfe945fb-a76f-4345-a582-b1b9db357355", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'firstname' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'firstname' 'desc' and check result", + "timedOut": false, + "duration": 3147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByFirstNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bf612d7-e94c-4aa6-9325-ad428899df07", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'lastname' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'lastname' 'asc' and check result", + "timedOut": false, + "duration": 3122, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByLastNameCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0791d62-7e46-4493-8e2b-480108acd115", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'lastname' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'lastname' 'desc' and check result", + "timedOut": false, + "duration": 3097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortLastNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22bfe810-6ebf-47d7-b722-8be0482e9cac", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'email' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'email' 'asc' and check result", + "timedOut": false, + "duration": 3097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByEmailAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "721e7c3d-126b-43d4-9126-12a7d728a881", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'email' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'email' 'desc' and check result", + "timedOut": false, + "duration": 3096, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByEmailDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9d0a0f7-f1d5-48f5-96d8-1e2c7939b27c", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'total_spent' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'total_spent' 'asc' and check result", + "timedOut": false, + "duration": 3120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortBySalesAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c435600e-508c-43c7-896f-9628d61f4d44", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'total_spent' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'total_spent' 'desc' and check result", + "timedOut": false, + "duration": 3152, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortBySalesDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6e0db52-4a4e-4e44-9081-a3d7ef309461", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 3169, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByEnabledAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a52f3cff-d486-48f7-b0ac-3b32c360b38b", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 3143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByEnabledDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "daa90a20-8a55-40fb-b849-b4c46fe895e9", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'newsletter' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'newsletter' 'asc' and check result", + "timedOut": false, + "duration": 3103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByNewslettersAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdb200b0-47e0-464a-95d0-b8f2bc59a117", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'newsletter' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'newsletter' 'desc' and check result", + "timedOut": false, + "duration": 3099, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByNewslettersDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18977171-4548-46cf-88d0-cf267fed7b86", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'optin' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'optin' 'asc' and check result", + "timedOut": false, + "duration": 3155, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByPartnerOffersAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "931ac092-b9d6-4f66-9846-0bda1c7b1355", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'optin' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'optin' 'desc' and check result", + "timedOut": false, + "duration": 3091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByPartnerOffersDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8916c89a-22ef-4925-aabd-210e79afb35b", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'date_add' 'asc' and check result", + "timedOut": false, + "duration": 3120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByRegistrationAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcd3a947-c99f-4db7-83e3-e81e56a30ad7", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'date_add' 'desc' and check result", + "timedOut": false, + "duration": 3170, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByRegistrationDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e9936c1-52f0-4c6c-b103-7658a7f42678", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'connect' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'connect' 'asc' and check result", + "timedOut": false, + "duration": 3167, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByLastVisitAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08dcc31c-d50f-404e-b8cf-c995617a6442", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'connect' 'desc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'connect' 'desc' and check result", + "timedOut": false, + "duration": 3112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByLastVisitDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d114bf94-c457-427d-a431-10a83a35a73d", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_customer' 'asc' and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table Sort customers table should sort by 'id_customer' 'asc' and check result", + "timedOut": false, + "duration": 3158, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, customers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isNumber) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseInt(text, 10); });\n sortedTableFloat = sortedTable.map(function (text) { return parseInt(text, 10); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3bfa309-cf50-401e-b3f6-0f939f1637b8", + "parentUUID": "9b4f3433-4404-49cc-ba45-8573437d9ea7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0ec3f210-94d2-463b-88fa-39e3c66da4e8", + "0ca411f6-661e-44e8-aec7-a5bb9d5a8f49", + "3c9728d2-e2fa-4e45-9fba-bb380deeaf49", + "cfe945fb-a76f-4345-a582-b1b9db357355", + "3bf612d7-e94c-4aa6-9325-ad428899df07", + "d0791d62-7e46-4493-8e2b-480108acd115", + "22bfe810-6ebf-47d7-b722-8be0482e9cac", + "721e7c3d-126b-43d4-9126-12a7d728a881", + "b9d0a0f7-f1d5-48f5-96d8-1e2c7939b27c", + "c435600e-508c-43c7-896f-9628d61f4d44", + "e6e0db52-4a4e-4e44-9081-a3d7ef309461", + "a52f3cff-d486-48f7-b0ac-3b32c360b38b", + "daa90a20-8a55-40fb-b849-b4c46fe895e9", + "bdb200b0-47e0-464a-95d0-b8f2bc59a117", + "18977171-4548-46cf-88d0-cf267fed7b86", + "931ac092-b9d6-4f66-9846-0bda1c7b1355", + "8916c89a-22ef-4925-aabd-210e79afb35b", + "dcd3a947-c99f-4db7-83e3-e81e56a30ad7", + "3e9936c1-52f0-4c6c-b103-7658a7f42678", + "08dcc31c-d50f-404e-b8cf-c995617a6442", + "d114bf94-c457-427d-a431-10a83a35a73d", + "b3bfa309-cf50-401e-b3f6-0f939f1637b8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 69821, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "title": "POST-TEST: Delete customers by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/04_paginationAndSortCustomers.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table POST-TEST: Delete customers by bulk actions \"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1116ebc-82bb-4f40-87a4-6de1b708ff5d", + "parentUUID": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table POST-TEST: Delete customers by bulk actions \"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "aef52a23-cf4f-4bd8-92dd-a4eab97554fc", + "parentUUID": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table POST-TEST: Delete customers by bulk actions should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53cebd77-f83b-4e02-b92a-3cc5f53f756a", + "parentUUID": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table POST-TEST: Delete customers by bulk actions should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "837b70ec-fe7e-40d4-839f-200175f94cee", + "parentUUID": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "375d9479-c61c-45e7-8dce-3799cf4a36eb", + "parentUUID": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'email'", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table POST-TEST: Delete customers by bulk actions should filter list by 'email'", + "timedOut": false, + "duration": 1069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_postTest_1_filterToBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', filterBy, value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, filterBy)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dd522e1-eae5-4e79-8975-b0f96fcbd034", + "parentUUID": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customers with Bulk Actions and check result", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table POST-TEST: Delete customers by bulk actions should delete customers with Bulk Actions and check result", + "timedOut": false, + "duration": 1622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_postTest_1_bulkDeleteCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomersBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3de39683-51ec-4c8d-98ee-38a52d1975da", + "parentUUID": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Pagination and sort customers table POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 368, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_paginationAndSortCustomers_postTest_1_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.below(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41115cb9-deb3-4ee6-8592-6d7ec03681b9", + "parentUUID": "8f518bad-c6ff-4beb-b426-2deac83baea1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "53cebd77-f83b-4e02-b92a-3cc5f53f756a", + "837b70ec-fe7e-40d4-839f-200175f94cee", + "375d9479-c61c-45e7-8dce-3799cf4a36eb", + "8dd522e1-eae5-4e79-8975-b0f96fcbd034", + "3de39683-51ec-4c8d-98ee-38a52d1975da", + "41115cb9-deb3-4ee6-8592-6d7ec03681b9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11812, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "title": "BO - Customers - Customers : Set required fields", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/05_setRequiredFields.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/05_setRequiredFields.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : Set required fields\"", + "fullTitle": "BO - Customers - Customers : Set required fields \"before all\" hook in \"BO - Customers - Customers : Set required fields\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27fe78cf-aab9-494d-9bd1-bb262843d29e", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : Set required fields\"", + "fullTitle": "BO - Customers - Customers : Set required fields \"after all\" hook in \"BO - Customers - Customers : Set required fields\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "95a60be7-532c-4188-9fe6-9cdc7eec549f", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Set required fields should login in BO", + "timedOut": false, + "duration": 1772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aca664cb-b77d-4174-9e94-6ac57815cab3", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Set required fields should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bc6bebe-fbb3-49e5-887c-c841e2c31657", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should select 'Partner offers' as required fields", + "fullTitle": "BO - Customers - Customers : Set required fields should select 'Partner offers' as required fields", + "timedOut": false, + "duration": 1230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_selectPartnersOffers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"PartnersOffers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setRequiredFields(page, 0, test.args.exist)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48b33d25-fbf0-415d-83c9-a3a6ebbaa4d0", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Customers - Customers : Set required fields should view my shop", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69efe2f7-2dcd-4eac-aac3-ec6d548c472b", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account FO and check 'Receive offers from our partners' checkbox", + "fullTitle": "BO - Customers - Customers : Set required fields should go to create account FO and check 'Receive offers from our partners' checkbox", + "timedOut": false, + "duration": 1422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_checkPartnersOffers0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPartnersOffers\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0156fd3f-ca67-4478-ad7c-b27204d930a3", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Receive offers from our partners' checkbox", + "fullTitle": "BO - Customers - Customers : Set required fields should check 'Receive offers from our partners' checkbox", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_checkReceiveOffersCheckbox0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPartnerOfferRequired;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReceiveOffersCheckbox\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isPartnerOfferRequired(page)];\n case 2:\n isPartnerOfferRequired = _a.sent();\n (0, chai_1.expect)(isPartnerOfferRequired).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a364817-e0d1-4cf1-894f-d5d91e801d2b", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customers - Customers : Set required fields should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b5a8d3d-f43c-4511-9fe5-4c8d161f019b", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should unselect 'Partner offers' as required fields", + "fullTitle": "BO - Customers - Customers : Set required fields should unselect 'Partner offers' as required fields", + "timedOut": false, + "duration": 1195, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_unselectPartnersOffers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"PartnersOffers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setRequiredFields(page, 0, test.args.exist)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16975d03-bfc7-44ea-84bb-b7f6254c1524", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Customers - Customers : Set required fields should view my shop", + "timedOut": false, + "duration": 1689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36f094a4-0cc7-4d07-8a52-9881facaf6d0", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account FO and check 'Receive offers from our partners' checkbox", + "fullTitle": "BO - Customers - Customers : Set required fields should go to create account FO and check 'Receive offers from our partners' checkbox", + "timedOut": false, + "duration": 1403, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_checkPartnersOffers1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPartnersOffers\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc2846e8-8077-4597-aa95-1ffe6a5e3761", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Receive offers from our partners' checkbox", + "fullTitle": "BO - Customers - Customers : Set required fields should check 'Receive offers from our partners' checkbox", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_checkReceiveOffersCheckbox1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPartnerOfferRequired;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReceiveOffersCheckbox\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isPartnerOfferRequired(page)];\n case 2:\n isPartnerOfferRequired = _a.sent();\n (0, chai_1.expect)(isPartnerOfferRequired).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d919a4ee-310b-4502-8024-63a8fa67db54", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customers - Customers : Set required fields should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_setRequiredFields_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e64d1ee-443e-42e5-91aa-ec7bbd8f5eca", + "parentUUID": "f331ddd0-5d85-44dd-a0dd-d801d75d9ae3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aca664cb-b77d-4174-9e94-6ac57815cab3", + "7bc6bebe-fbb3-49e5-887c-c841e2c31657", + "48b33d25-fbf0-415d-83c9-a3a6ebbaa4d0", + "69efe2f7-2dcd-4eac-aac3-ec6d548c472b", + "0156fd3f-ca67-4478-ad7c-b27204d930a3", + "5a364817-e0d1-4cf1-894f-d5d91e801d2b", + "2b5a8d3d-f43c-4511-9fe5-4c8d161f019b", + "16975d03-bfc7-44ea-84bb-b7f6254c1524", + "36f094a4-0cc7-4d07-8a52-9881facaf6d0", + "fc2846e8-8077-4597-aa95-1ffe6a5e3761", + "d919a4ee-310b-4502-8024-63a8fa67db54", + "5e64d1ee-443e-42e5-91aa-ec7bbd8f5eca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16491, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fe07a8ff-02fd-4fa1-9083-30b602bbc575", + "title": "BO - Customers - Customers : Export customers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/06_exportCustomers.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/06_exportCustomers.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : Export customers\"", + "fullTitle": "BO - Customers - Customers : Export customers \"before all\" hook in \"BO - Customers - Customers : Export customers\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1e437fa-ce02-4d16-a552-cff3459242cf", + "parentUUID": "fe07a8ff-02fd-4fa1-9083-30b602bbc575", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : Export customers\"", + "fullTitle": "BO - Customers - Customers : Export customers \"after all\" hook in \"BO - Customers - Customers : Export customers\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8e9875c2-e25c-460b-b1f7-5e90f39a5d26", + "parentUUID": "fe07a8ff-02fd-4fa1-9083-30b602bbc575", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Export customers should login in BO", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db632958-10d7-49a6-ba82-aefac9b01adc", + "parentUUID": "fe07a8ff-02fd-4fa1-9083-30b602bbc575", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Export customers should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_exportCustomers_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d283f27c-fc81-41b5-a3f1-2087b422908d", + "parentUUID": "fe07a8ff-02fd-4fa1-9083-30b602bbc575", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of customers in BO", + "fullTitle": "BO - Customers - Customers : Export customers should reset all filters and get number of customers in BO", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_exportCustomers_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d626527-4648-45e1-b73b-d8d7330339f7", + "parentUUID": "fe07a8ff-02fd-4fa1-9083-30b602bbc575", + "isHook": false, + "skipped": false + }, + { + "title": "should export customers to a csv file", + "fullTitle": "BO - Customers - Customers : Export customers should export customers to a csv file", + "timedOut": false, + "duration": 255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_exportCustomers_exportCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'exportCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.exportDataToCsv(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'Export of data has failed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0d7cccb-b11d-48ad-be37-6e37270dab63", + "parentUUID": "fe07a8ff-02fd-4fa1-9083-30b602bbc575", + "isHook": false, + "skipped": false + }, + { + "title": "should check existence of customers data in csv file", + "fullTitle": "BO - Customers - Customers : Export customers should check existence of customers data in csv file", + "timedOut": false, + "duration": 122, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_exportCustomers_checkAllCustomersInCsvFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var row, customerInCsvFormat, textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllCustomersInCsvFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfCustomers = _a.sent();\n row = 1;\n _a.label = 3;\n case 3:\n if (!(row <= numberOfCustomers)) return [3 /*break*/, 7];\n return [4 /*yield*/, customers_1.default.getCustomerInCsvFormat(page, row)];\n case 4:\n customerInCsvFormat = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, customerInCsvFormat, true)];\n case 5:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"\".concat(customerInCsvFormat, \" was not found in the file\")).to.eq(true);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 3];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69b14dc7-bc5b-4b73-a0c0-2dd0186e281d", + "parentUUID": "fe07a8ff-02fd-4fa1-9083-30b602bbc575", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db632958-10d7-49a6-ba82-aefac9b01adc", + "d283f27c-fc81-41b5-a3f1-2087b422908d", + "7d626527-4648-45e1-b73b-d8d7330339f7", + "e0d7cccb-b11d-48ad-be37-6e37270dab63", + "69b14dc7-bc5b-4b73-a0c0-2dd0186e281d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8071, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "094c555b-a464-4cce-8e3e-6264b5a669d4", + "title": "BO - Customers - Customers : Help card on customers page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/07_helpCard.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/07_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : Help card on customers page\"", + "fullTitle": "BO - Customers - Customers : Help card on customers page \"before all\" hook in \"BO - Customers - Customers : Help card on customers page\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e954f99a-8c03-40cf-918a-f38267bdc9df", + "parentUUID": "094c555b-a464-4cce-8e3e-6264b5a669d4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : Help card on customers page\"", + "fullTitle": "BO - Customers - Customers : Help card on customers page \"after all\" hook in \"BO - Customers - Customers : Help card on customers page\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "befa0dd4-7ac1-46fa-83e4-f454cf4808cc", + "parentUUID": "094c555b-a464-4cce-8e3e-6264b5a669d4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Help card on customers page should login in BO", + "timedOut": false, + "duration": 1714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c88bb61-070a-41e5-af7b-fd3d907e7a21", + "parentUUID": "094c555b-a464-4cce-8e3e-6264b5a669d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Help card on customers page should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4994, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_helpCard_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cc59059-c997-450a-84a7-f15e4ca3096f", + "parentUUID": "094c555b-a464-4cce-8e3e-6264b5a669d4", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Customers - Customers : Help card on customers page should open the help side bar and check the document language", + "timedOut": false, + "duration": 114, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, customers_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4bc0e36-01ed-4104-82c2-7fbad714f76a", + "parentUUID": "094c555b-a464-4cce-8e3e-6264b5a669d4", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Customers - Customers : Help card on customers page should close the help side bar", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarNotVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a3b4ce0-206f-4bb1-b4bd-6a895e42ffba", + "parentUUID": "094c555b-a464-4cce-8e3e-6264b5a669d4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c88bb61-070a-41e5-af7b-fd3d907e7a21", + "6cc59059-c997-450a-84a7-f15e4ca3096f", + "b4bc0e36-01ed-4104-82c2-7fbad714f76a", + "2a3b4ce0-206f-4bb1-b4bd-6a895e42ffba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6872, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "857ced3e-9e56-4294-88ff-2b15f640704a", + "title": "BO - Customers - Customers : View information about customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : View information about customer\"", + "fullTitle": "BO - Customers - Customers : View information about customer \"before all\" hook in \"BO - Customers - Customers : View information about customer\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa17641e-a423-474b-9e57-88bdea10f1f2", + "parentUUID": "857ced3e-9e56-4294-88ff-2b15f640704a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : View information about customer\"", + "fullTitle": "BO - Customers - Customers : View information about customer \"after all\" hook in \"BO - Customers - Customers : View information about customer\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "888de27b-63b6-41f0-b15c-59fbff84b204", + "parentUUID": "857ced3e-9e56-4294-88ff-2b15f640704a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : View information about customer should login in BO", + "timedOut": false, + "duration": 1713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77afd0b9-078c-4593-b324-cc55d625426b", + "parentUUID": "857ced3e-9e56-4294-88ff-2b15f640704a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : View information about customer should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1ebdee8-a656-41bf-ba41-070b636e6e09", + "parentUUID": "857ced3e-9e56-4294-88ff-2b15f640704a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : View information about customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_resetAllFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bcd0798-d5a9-48bd-81a1-a960ddab6fa6", + "parentUUID": "857ced3e-9e56-4294-88ff-2b15f640704a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6f85d264-7b02-4b7d-9d13-5724979581ae", + "title": "Create customer in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new customer page", + "fullTitle": "BO - Customers - Customers : View information about customer Create customer in BO should go to add new customer page", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b1fb660-f1d9-4d19-afa0-071e1478b1b7", + "parentUUID": "6f85d264-7b02-4b7d-9d13-5724979581ae", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer and check result", + "fullTitle": "BO - Customers - Customers : View information about customer Create customer in BO should create customer and check result", + "timedOut": false, + "duration": 1517, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, createCustomerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterCreation).to.be.equal(numberOfCustomers + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7800ecd4-2c18-45d4-a7dc-ec048507a1ee", + "parentUUID": "6f85d264-7b02-4b7d-9d13-5724979581ae", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0b1fb660-f1d9-4d19-afa0-071e1478b1b7", + "7800ecd4-2c18-45d4-a7dc-ec048507a1ee" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2365, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "title": "View customer created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by email 'Malika_Schimmel91@prestashop.com'", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should filter list by email 'Malika_Schimmel91@prestashop.com'", + "timedOut": false, + "duration": 3077, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_filterToViewCreatedCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCreatedCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', createCustomerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dd2228d-15e8-4eb1-90f0-b856c4c69632", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view customer", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should click on view customer", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToViewCustomerPageAfterCreateCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCustomerPageAfterCreateCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToViewCustomerPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(createCustomerName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31e1ea9e-3c84-4ba2-b43b-660278c75729", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + }, + { + "title": "should check personal information title", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should check personal information title", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkPersonalInformationTitle1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPersonalInformationTitle1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPersonalInformationTitle(page)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.firstName);\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.lastName);\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb0819fb-c3ea-45d2-8a02-e3d12dbe83dc", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer personal information", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should check customer personal information", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkCreatedCustomerInfo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedCustomerInfo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Personal information')];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.socialTitle);\n (0, chai_1.expect)(cardHeaderText).to.contains(\"birth date: \".concat(customerBirthDate));\n (0, chai_1.expect)(cardHeaderText).to.contains('Never');\n (0, chai_1.expect)(cardHeaderText).to.contains(languages_1.default.english.name);\n (0, chai_1.expect)(cardHeaderText).to.contains('Newsletter');\n (0, chai_1.expect)(cardHeaderText).to.contains('Partner offers');\n (0, chai_1.expect)(cardHeaderText).to.contains('Active');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "457eaa88-732a-432a-a6f5-97211f7f8ba3", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + }, + { + "title": "should check Orders number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should check Orders number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkOrdersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bfbcabc-9e37-4ee6-8992-29bd9d3cbea1", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + }, + { + "title": "should check Carts number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should check Carts number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkCartsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b256bc81-ba45-43c8-8575-21143260a661", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + }, + { + "title": "should check Messages number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should check Messages number", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkMessagesNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8cee652-a2de-4cec-87b4-9ed24580b98f", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + }, + { + "title": "should check Vouchers number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should check Vouchers number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkVouchersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a4487f8-c322-4e0c-8b26-f52d606210f1", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + }, + { + "title": "should check Groups number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer created should check Groups number", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkGroupsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb86c777-98ac-4bb4-a612-d76b00f96610", + "parentUUID": "9d4f0b43-48cd-4652-9a31-2430fe1d9383", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4dd2228d-15e8-4eb1-90f0-b856c4c69632", + "31e1ea9e-3c84-4ba2-b43b-660278c75729", + "fb0819fb-c3ea-45d2-8a02-e3d12dbe83dc", + "457eaa88-732a-432a-a6f5-97211f7f8ba3", + "6bfbcabc-9e37-4ee6-8992-29bd9d3cbea1", + "b256bc81-ba45-43c8-8575-21143260a661", + "d8cee652-a2de-4cec-87b4-9ed24580b98f", + "1a4487f8-c322-4e0c-8b26-f52d606210f1", + "bb86c777-98ac-4bb4-a612-d76b00f96610" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3991, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "title": "Create order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Customers - Customers : View information about customer Create order in FO should view my shop", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc498bb8-0f7c-45bd-b5f7-381198ae2e77", + "parentUUID": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart", + "fullTitle": "BO - Customers - Customers : View information about customer Create order in FO should add the first product to the cart", + "timedOut": false, + "duration": 6548, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_addFirstProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0af14683-08d2-4c82-9926-bab5a2df9f3b", + "parentUUID": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout", + "fullTitle": "BO - Customers - Customers : View information about customer Create order in FO should proceed to checkout", + "timedOut": false, + "duration": 255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4df2b7c9-04d6-45b5-b4ed-0631c22455f7", + "parentUUID": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "isHook": false, + "skipped": false + }, + { + "title": "should login and go to address step", + "fullTitle": "BO - Customers - Customers : View information about customer Create order in FO should login and go to address step", + "timedOut": false, + "duration": 1090, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_loginToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepLoginComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, createCustomerData)];\n case 3:\n isStepLoginComplete = _a.sent();\n (0, chai_1.expect)(isStepLoginComplete, 'Step Personal information is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e1ab781-d448-4a2b-8a68-b18097ebf3c1", + "parentUUID": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "isHook": false, + "skipped": false + }, + { + "title": "should create address then continue to delivery step", + "fullTitle": "BO - Customers - Customers : View information about customer Create order in FO should create address then continue to delivery step", + "timedOut": false, + "duration": 1592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, address)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d97c2a2b-c665-47cd-af3a-0b3b279a820a", + "parentUUID": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "isHook": false, + "skipped": false + }, + { + "title": "should add a comment then continue to payment step", + "fullTitle": "BO - Customers - Customers : View information about customer Create order in FO should add a comment then continue to payment step", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethodAndAddComment(page, 1, 'test message')];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "550e5736-cc52-4a12-9e1f-a0c1e80248f3", + "parentUUID": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the payment method and confirm the order", + "fullTitle": "BO - Customers - Customers : View information about customer Create order in FO should choose the payment method and confirm the order", + "timedOut": false, + "duration": 1586, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_choosePaymentMethod\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'choosePaymentMethod', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74fe85b8-0604-4c6c-a896-8279bc099f1e", + "parentUUID": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customers - Customers : View information about customer Create order in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(createCustomerName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f0466f5-093a-47eb-bcd9-2ec59fb9d440", + "parentUUID": "74c4cdcc-99b7-41e6-988d-e8892bad63a6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dc498bb8-0f7c-45bd-b5f7-381198ae2e77", + "0af14683-08d2-4c82-9926-bab5a2df9f3b", + "4df2b7c9-04d6-45b5-b4ed-0631c22455f7", + "2e1ab781-d448-4a2b-8a68-b18097ebf3c1", + "d97c2a2b-c665-47cd-af3a-0b3b279a820a", + "550e5736-cc52-4a12-9e1f-a0c1e80248f3", + "74fe85b8-0604-4c6c-a896-8279bc099f1e", + "5f0466f5-093a-47eb-bcd9-2ec59fb9d440" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13660, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "title": "View customer after creating the order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToViewCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToSubMenu(page, view_1.default.customersParentLink, view_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50e3468b-dfd6-4795-9f79-dc1f06a30a77", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email 'Malika_Schimmel91@prestashop.com'", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should filter list by email 'Malika_Schimmel91@prestashop.com'", + "timedOut": false, + "duration": 1463, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_filterToViewCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', createCustomerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc997273-f862-4b6d-bdda-cd2248eda229", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view customer", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should click on view customer", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToViewCustomerPageAfterCreateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCustomerPageAfterCreateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToViewCustomerPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(createCustomerName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fb6f6c4-49b3-4f30-b2e8-5a4491bf0dd8", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check personal information title", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check personal information title", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkPersonalInformationTitle2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPersonalInformationTitle2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPersonalInformationTitle(page)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.firstName);\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.lastName);\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed3c95a6-2077-41b2-b2d1-25cac1878c7b", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer personal information", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check customer personal information", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkCreatedCustomerInfo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedCustomerInfo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Personal information')];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(createCustomerData.socialTitle);\n (0, chai_1.expect)(cardHeaderText).to.contains(\"birth date: \".concat(customerBirthDate));\n (0, chai_1.expect)(cardHeaderText).to.contains(today);\n (0, chai_1.expect)(cardHeaderText).to.contains(languages_1.default.english.name);\n (0, chai_1.expect)(cardHeaderText).to.contains('Newsletter');\n (0, chai_1.expect)(cardHeaderText).to.contains('Partner offers');\n (0, chai_1.expect)(cardHeaderText).to.contains('Active');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5fee79b-fb2d-4023-af47-e35b514f503c", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check Orders number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check Orders number", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkOrdersNumberAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"NumberAfterEdit\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9d66166-8309-4642-951b-534f201d9ce5", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check Carts number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check Carts number", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkCartsNumberAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"NumberAfterEdit\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70c625ef-68d2-4360-a110-f0fd7aa44e11", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check Purchased products number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check Purchased products number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkPurchased productsNumberAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"NumberAfterEdit\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eab20254-37a1-4430-b527-54347e27757a", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check Messages number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check Messages number", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkMessagesNumberAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"NumberAfterEdit\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "737c1274-b98f-4da4-8e1a-d2ddf9c4e7c5", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check Vouchers number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check Vouchers number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkVouchersNumberAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"NumberAfterEdit\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abb3f1db-f218-43a2-8214-60bb0de2b263", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check Last emails number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check Last emails number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkLast emailsNumberAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"NumberAfterEdit\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e82d4bc4-545b-4aaf-8ed6-dd4b49f565aa", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check Last connections number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check Last connections number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkLast connectionsNumberAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"NumberAfterEdit\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "491a1ebf-0648-4e9d-b1a4-fc356e950b13", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check Groups number", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check Groups number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkGroupsNumberAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"NumberAfterEdit\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24b317c0-5a1b-426e-ad0d-ec02f2bf66e8", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check orders", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check orders", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkOrders\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrders', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Orders')];\n case 2:\n carts = _a.sent();\n (0, chai_1.expect)(carts).to.contains(today);\n (0, chai_1.expect)(carts).to.contains('Bank transfer');\n (0, chai_1.expect)(carts).to.contains(orderStatuses_1.default.awaitingBankWire.name);\n (0, chai_1.expect)(carts).to.contains('€0.00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1d44952-45d2-4f31-8b34-656beffd6c57", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check carts", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check carts", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Carts')];\n case 2:\n carts = _a.sent();\n (0, chai_1.expect)(carts).to.contains(today);\n (0, chai_1.expect)(carts).to.contains(products_1.default.demo_1.finalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8e3d8ff-fe55-48ad-b79e-11e60938230d", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check purchased products", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check purchased products", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkPurchasedProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var viewedProduct;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPurchasedProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Purchased products')];\n case 2:\n viewedProduct = _a.sent();\n (0, chai_1.expect)(viewedProduct).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdaab9cf-5cd9-4c05-adb1-52c4579798ed", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check address", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check address", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Addresses')];\n case 2:\n customerAddress = _a.sent();\n (0, chai_1.expect)(customerAddress).to.contains(address.company);\n (0, chai_1.expect)(customerAddress).to.contains(\"\".concat(createCustomerData.firstName, \" \").concat(createCustomerData.lastName));\n (0, chai_1.expect)(customerAddress).to.contains(address.address);\n (0, chai_1.expect)(customerAddress).to.contains(address.country);\n (0, chai_1.expect)(customerAddress).to.contains(address.phone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "887e632f-d292-401b-9df7-5d59caff03e7", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check messages", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check messages", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkMessages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Messages')];\n case 2:\n carts = _a.sent();\n (0, chai_1.expect)(carts).to.contains(today);\n (0, chai_1.expect)(carts).to.contains('Open');\n (0, chai_1.expect)(carts).to.contains('test message');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a08a955-b03b-42f8-826f-29ac2c5a468d", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check last connections", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check last connections", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkLAstConnections\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLAstConnections', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Last connections')];\n case 2:\n carts = _a.sent();\n (0, chai_1.expect)(carts).to.contains(today);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "281db537-4b9f-4184-8f4c-f5cf55510303", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should check groups", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should check groups", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkGroups\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var groups;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGroups', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Groups')];\n case 2:\n groups = _a.sent();\n (0, chai_1.expect)(groups).to.contains(createCustomerData.defaultCustomerGroup);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b8af026-ac4f-4fcd-8f5f-30aff38251e2", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + }, + { + "title": "should add a private note", + "fullTitle": "BO - Customers - Customers : View information about customer View customer after creating the order should add a private note", + "timedOut": false, + "duration": 463, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_addPrivateNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPrivateNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.setPrivateNote(page, 'Test note')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(view_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46ed42f4-9cc7-4a4b-bf7c-dadb4559f8cc", + "parentUUID": "11a9930a-d7ec-40e6-8149-c76b32e97c75", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "50e3468b-dfd6-4795-9f79-dc1f06a30a77", + "bc997273-f862-4b6d-bdda-cd2248eda229", + "6fb6f6c4-49b3-4f30-b2e8-5a4491bf0dd8", + "ed3c95a6-2077-41b2-b2d1-25cac1878c7b", + "a5fee79b-fb2d-4023-af47-e35b514f503c", + "f9d66166-8309-4642-951b-534f201d9ce5", + "70c625ef-68d2-4360-a110-f0fd7aa44e11", + "eab20254-37a1-4430-b527-54347e27757a", + "737c1274-b98f-4da4-8e1a-d2ddf9c4e7c5", + "abb3f1db-f218-43a2-8214-60bb0de2b263", + "e82d4bc4-545b-4aaf-8ed6-dd4b49f565aa", + "491a1ebf-0648-4e9d-b1a4-fc356e950b13", + "24b317c0-5a1b-426e-ad0d-ec02f2bf66e8", + "e1d44952-45d2-4f31-8b34-656beffd6c57", + "e8e3d8ff-fe55-48ad-b79e-11e60938230d", + "bdaab9cf-5cd9-4c05-adb1-52c4579798ed", + "887e632f-d292-401b-9df7-5d59caff03e7", + "3a08a955-b03b-42f8-826f-29ac2c5a468d", + "281db537-4b9f-4184-8f4c-f5cf55510303", + "5b8af026-ac4f-4fcd-8f5f-30aff38251e2", + "46ed42f4-9cc7-4a4b-bf7c-dadb4559f8cc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6949, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d1a78cef-f34a-45fa-939f-945ef91a644d", + "title": "Edit customer then view it and check information", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit customer page", + "fullTitle": "BO - Customers - Customers : View information about customer Edit customer then view it and check information should go to edit customer page", + "timedOut": false, + "duration": 833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToEditCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToEditCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76fa2b04-cc7d-41a9-97a1-6bafaa5b8b42", + "parentUUID": "d1a78cef-f34a-45fa-939f-945ef91a644d", + "isHook": false, + "skipped": false + }, + { + "title": "should edit customer information", + "fullTitle": "BO - Customers - Customers : View information about customer Edit customer then view it and check information should edit customer information", + "timedOut": false, + "duration": 1319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_updateCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, editCustomerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(view_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39a90c55-6b57-4dcf-8292-5e0d667731bb", + "parentUUID": "d1a78cef-f34a-45fa-939f-945ef91a644d", + "isHook": false, + "skipped": false + }, + { + "title": "should check personal information title", + "fullTitle": "BO - Customers - Customers : View information about customer Edit customer then view it and check information should check personal information title", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkUpdatedCustomerTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedCustomerTitle', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPersonalInformationTitle(page)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(editCustomerData.firstName);\n (0, chai_1.expect)(cardHeaderText).to.contains(editCustomerData.lastName);\n (0, chai_1.expect)(cardHeaderText).to.contains(editCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28feb893-3b5c-4d7c-8f7e-e17b1073e2cd", + "parentUUID": "d1a78cef-f34a-45fa-939f-945ef91a644d", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer personal information", + "fullTitle": "BO - Customers - Customers : View information about customer Edit customer then view it and check information should check customer personal information", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkUpdatedCustomerInfo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedCustomerInfo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Personal information')];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(editCustomerData.socialTitle);\n (0, chai_1.expect)(cardHeaderText).to.contains(\"birth date: \".concat(editCustomerBirthDate));\n (0, chai_1.expect)(cardHeaderText).to.contains(today);\n (0, chai_1.expect)(cardHeaderText).to.contains(languages_1.default.english.name);\n (0, chai_1.expect)(cardHeaderText).to.contains('Newsletter');\n (0, chai_1.expect)(cardHeaderText).to.contains('Partner offers');\n (0, chai_1.expect)(cardHeaderText).to.contains('Active');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0015fa73-5020-4497-9587-a8c2a8e6252c", + "parentUUID": "d1a78cef-f34a-45fa-939f-945ef91a644d", + "isHook": false, + "skipped": false + }, + { + "title": "should check groups", + "fullTitle": "BO - Customers - Customers : View information about customer Edit customer then view it and check information should check groups", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkGroupsAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var groups;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGroupsAfterEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Groups')];\n case 2:\n groups = _a.sent();\n (0, chai_1.expect)(groups).to.contains(editCustomerData.defaultCustomerGroup);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccd30e10-7797-46a0-b888-f4270e6840c0", + "parentUUID": "d1a78cef-f34a-45fa-939f-945ef91a644d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76fa2b04-cc7d-41a9-97a1-6bafaa5b8b42", + "39a90c55-6b57-4dcf-8292-5e0d667731bb", + "28feb893-3b5c-4d7c-8f7e-e17b1073e2cd", + "0015fa73-5020-4497-9587-a8c2a8e6252c", + "ccd30e10-7797-46a0-b888-f4270e6840c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2173, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "943bc3d1-3bdd-4638-b240-a07794326b93", + "title": "Edit order then view customer and check information", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to view order page", + "fullTitle": "BO - Customers - Customers : View information about customer Edit order then view customer and check information should go to view order page", + "timedOut": false, + "duration": 1037, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToorderPageCustomerBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToorderPageCustomerBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToPage(page, 'Orders')];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06234f5c-4005-4f89-bd1e-807764d53cb2", + "parentUUID": "943bc3d1-3bdd-4638-b240-a07794326b93", + "isHook": false, + "skipped": false + }, + { + "title": "should modify order status", + "fullTitle": "BO - Customers - Customers : View information about customer Edit order then view customer and check information should modify order status", + "timedOut": false, + "duration": 1238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_modifyOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'modifyOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbc5d9ce-2b87-4cd6-886f-b345241760c0", + "parentUUID": "943bc3d1-3bdd-4638-b240-a07794326b93", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : View information about customer Edit order then view customer and check information should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToCustomersPageAfterEditOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPageAfterEditOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.goToSubMenu(page, customerBlock_1.default.customersParentLink, customerBlock_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c384e262-fd24-4c58-89ef-d9268230101a", + "parentUUID": "943bc3d1-3bdd-4638-b240-a07794326b93", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email 'Cruz_Powlowski@prestashop.com'", + "fullTitle": "BO - Customers - Customers : View information about customer Edit order then view customer and check information should filter list by email 'Cruz_Powlowski@prestashop.com'", + "timedOut": false, + "duration": 1473, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_filterToViewCustomerAfterEditOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCustomerAfterEditOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', editCustomerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b10924de-7600-42c7-b410-3f8f88776fa6", + "parentUUID": "943bc3d1-3bdd-4638-b240-a07794326b93", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view customer", + "fullTitle": "BO - Customers - Customers : View information about customer Edit order then view customer and check information should click on view customer", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToViewCustomerPageAfterEditOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCustomerPageAfterEditOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToViewCustomerPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(editCustomerName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c7b605a-1335-49a2-bbd0-4eab871dcb66", + "parentUUID": "943bc3d1-3bdd-4638-b240-a07794326b93", + "isHook": false, + "skipped": false + }, + { + "title": "should check order status", + "fullTitle": "BO - Customers - Customers : View information about customer Edit order then view customer and check information should check order status", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_CheckOrderStatusAfterEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'CheckOrderStatusAfterEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Orders')];\n case 2:\n carts = _a.sent();\n (0, chai_1.expect)(carts).to.contains(today);\n (0, chai_1.expect)(carts).to.contains('Bank transfer');\n (0, chai_1.expect)(carts).to.contains(orderStatuses_1.default.shipped.name);\n (0, chai_1.expect)(carts).to.contains(products_1.default.demo_1.finalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6bfc259-177e-418c-85ee-51069c8c8711", + "parentUUID": "943bc3d1-3bdd-4638-b240-a07794326b93", + "isHook": false, + "skipped": false + }, + { + "title": "should check purchased products number", + "fullTitle": "BO - Customers - Customers : View information about customer Edit order then view customer and check information should check purchased products number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_CheckPurchasedProductsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'CheckPurchasedProductsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, 'Purchased products')];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75dc4680-778d-4a2d-ad47-a86650a7348a", + "parentUUID": "943bc3d1-3bdd-4638-b240-a07794326b93", + "isHook": false, + "skipped": false + }, + { + "title": "should check purchased products", + "fullTitle": "BO - Customers - Customers : View information about customer Edit order then view customer and check information should check purchased products", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_checkPurchasedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var purchasedProduct;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPurchasedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Purchased products')];\n case 2:\n purchasedProduct = _a.sent();\n (0, chai_1.expect)(purchasedProduct).to.contains(today);\n (0, chai_1.expect)(purchasedProduct).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4476022-24ff-4da7-a423-013ec2c7ba6d", + "parentUUID": "943bc3d1-3bdd-4638-b240-a07794326b93", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "06234f5c-4005-4f89-bd1e-807764d53cb2", + "dbc5d9ce-2b87-4cd6-886f-b345241760c0", + "c384e262-fd24-4c58-89ef-d9268230101a", + "b10924de-7600-42c7-b410-3f8f88776fa6", + "6c7b605a-1335-49a2-bbd0-4eab871dcb66", + "c6bfc259-177e-418c-85ee-51069c8c8711", + "75dc4680-778d-4a2d-ad47-a86650a7348a", + "b4476022-24ff-4da7-a423-013ec2c7ba6d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8406, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c328576a-5534-4cf6-836d-70afecc4fc55", + "title": "Edit address then view customer and check address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit address page", + "fullTitle": "BO - Customers - Customers : View information about customer Edit address then view customer and check address should go to edit address page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToEditAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToPage(page, 'Addresses')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e46a8552-f434-4a68-ac53-37c00b9f4f31", + "parentUUID": "c328576a-5534-4cf6-836d-70afecc4fc55", + "isHook": false, + "skipped": false + }, + { + "title": "should modify the address", + "fullTitle": "BO - Customers - Customers : View information about customer Edit address then view customer and check address should modify the address", + "timedOut": false, + "duration": 4407, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_updateAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditAddress(page, createAddressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(view_1.default.updateSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3da62d3c-8c9e-4100-8c7e-b110e918d32a", + "parentUUID": "c328576a-5534-4cf6-836d-70afecc4fc55", + "isHook": false, + "skipped": false + }, + { + "title": "should check the edited address", + "fullTitle": "BO - Customers - Customers : View information about customer Edit address then view customer and check address should check the edited address", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_CheckEditedAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'CheckEditedAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Addresses')];\n case 2:\n customerAddress = _a.sent();\n (0, chai_1.expect)(customerAddress).to.contains(createAddressData.company);\n (0, chai_1.expect)(customerAddress).to.contains(\"\".concat(createAddressData.firstName, \" \").concat(createAddressData.lastName));\n (0, chai_1.expect)(customerAddress).to.contains(createAddressData.address);\n (0, chai_1.expect)(customerAddress).to.contains(createAddressData.country);\n (0, chai_1.expect)(customerAddress).to.contains(createAddressData.phone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8b0b6fd-b746-4222-8cc9-a77fbfa8803a", + "parentUUID": "c328576a-5534-4cf6-836d-70afecc4fc55", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e46a8552-f434-4a68-ac53-37c00b9f4f31", + "3da62d3c-8c9e-4100-8c7e-b110e918d32a", + "f8b0b6fd-b746-4222-8cc9-a77fbfa8803a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d69f30bc-0ef5-4bd9-99fb-775618479d35", + "title": "View cart page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to view cart page", + "fullTitle": "BO - Customers - Customers : View information about customer View cart page should go to view cart page", + "timedOut": false, + "duration": 861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToViewCartPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var idCart, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCartPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumnFromTableCarts(page, 'id_cart', 1)];\n case 2:\n idCart = _a.sent();\n return [4 /*yield*/, view_1.default.goToPage(page, 'Carts')];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_2.default.pageTitle(idCart));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4d70547-30bf-4d94-961f-3edd14c8a7bb", + "parentUUID": "d69f30bc-0ef5-4bd9-99fb-775618479d35", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b4d70547-30bf-4d94-961f-3edd14c8a7bb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 861, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9aabbfaf-c65d-4819-aca6-e23347c64f4c", + "title": "Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/08_viewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : View information about customer Delete customer should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_goToCustomersPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_2.default.goToSubMenu(page, view_2.default.customersParentLink, view_2.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac562853-07c4-4173-ae57-ad01038bed43", + "parentUUID": "9aabbfaf-c65d-4819-aca6-e23347c64f4c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email 'Cruz_Powlowski@prestashop.com'", + "fullTitle": "BO - Customers - Customers : View information about customer Delete customer should filter list by email 'Cruz_Powlowski@prestashop.com'", + "timedOut": false, + "duration": 1468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', editCustomerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editCustomerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "123a1241-0be8-4a13-b5f4-41c92a431bcb", + "parentUUID": "9aabbfaf-c65d-4819-aca6-e23347c64f4c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer", + "fullTitle": "BO - Customers - Customers : View information about customer Delete customer should delete customer", + "timedOut": false, + "duration": 1916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulDeleteMessage);\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomersAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterDelete).to.be.equal(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2296aa2c-7afe-4dc5-8c32-5c4d89293652", + "parentUUID": "9aabbfaf-c65d-4819-aca6-e23347c64f4c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : View information about customer Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewCustomer_resetAllFilter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c97bc519-a116-43c2-bca0-43343f78f8c2", + "parentUUID": "9aabbfaf-c65d-4819-aca6-e23347c64f4c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ac562853-07c4-4173-ae57-ad01038bed43", + "123a1241-0be8-4a13-b5f4-41c92a431bcb", + "2296aa2c-7afe-4dc5-8c32-5c4d89293652", + "c97bc519-a116-43c2-bca0-43343f78f8c2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9111, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "77afd0b9-078c-4593-b324-cc55d625426b", + "a1ebdee8-a656-41bf-ba41-070b636e6e09", + "8bcd0798-d5a9-48bd-81a1-a960ddab6fa6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8707, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "title": "BO - Customers - Customers : Check customer subscription to newsletter from BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/09_subscribeToNewsletter.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/09_subscribeToNewsletter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : Check customer subscription to newsletter from BO\"", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO \"before all\" hook in \"BO - Customers - Customers : Check customer subscription to newsletter from BO\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18c5ecff-a842-480c-9207-6b8a820b4cd7", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : Check customer subscription to newsletter from BO\"", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO \"after all\" hook in \"BO - Customers - Customers : Check customer subscription to newsletter from BO\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "facf960c-f4ed-491a-a33b-f435492c5d80", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should login in BO", + "timedOut": false, + "duration": 1743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dac5753-c67f-45a0-857b-b73575421fe3", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_goToCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d58d9121-0245-4e45-89aa-b4244ec9b55a", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of customers in BO", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should reset all filters and get number of customers in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5378d8df-af98-47d8-9a61-6baf624dc8ae", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by email 'pub@prestashop.com'", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should filter by email 'pub@prestashop.com'", + "timedOut": false, + "duration": 1054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_filterByEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customers_2.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterFilter).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6795775-e103-483a-b9f3-4e506c28e310", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should disable newsletters", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should disable newsletters", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_disableNewsLetters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"NewsLetters\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setNewsletterStatus(page, 1, test.args.value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, 1)];\n case 3:\n newsletterStatus = _a.sent();\n (0, chai_1.expect)(newsletterStatus).to.be.equal(test.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa675972-51de-40b7-9643-8bf132b543dc", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_goToModuleManageTo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToModuleManageTo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToSubMenu(page, customers_1.default.modulesParentLink, customers_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04de3924-81a3-4e6c-9211-8bce24d4fabb", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Newsletter subscription' module", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should go to 'Newsletter subscription' module", + "timedOut": false, + "duration": 2178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_goToEmailSubscriptionModule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEmailSubscriptionModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Search and go to configure module page\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailSubscription)];\n case 2:\n // Search and go to configure module page\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailSubscription.tag)];\n case 3:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(modules_1.default.psEmailSubscription.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e3c9912-0942-47db-8519-2c2430fc2884", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer registration to newsletter", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should check customer registration to newsletter", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_checkCustomerRegistration0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var listOfEmails;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCustomerRegistration\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getListOfNewsletterRegistrationEmails(page)];\n case 2:\n listOfEmails = _a.sent();\n if (test.args.value) {\n (0, chai_1.expect)(listOfEmails).to.include(customers_2.default.johnDoe.email);\n }\n else {\n (0, chai_1.expect)(listOfEmails).to.not.include(customers_2.default.johnDoe.email);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8465d44a-acf7-4009-9453-6d50d9eccf6c", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_gotoCustomersPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"gotoCustomersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.goToSubMenu(page, psEmailSubscription_1.default.customersParentLink, psEmailSubscription_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b26cedb-ee7c-4b5e-baca-85688bf0e161", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should enable newsletters", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should enable newsletters", + "timedOut": false, + "duration": 4487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_enableNewsLetters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"NewsLetters\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.setNewsletterStatus(page, 1, test.args.value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getNewsletterStatus(page, 1)];\n case 3:\n newsletterStatus = _a.sent();\n (0, chai_1.expect)(newsletterStatus).to.be.equal(test.args.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c74c167c-46a3-469f-82d0-6a9df914f821", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 3843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_goToModuleManageTo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToModuleManageTo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToSubMenu(page, customers_1.default.modulesParentLink, customers_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d79631da-a722-4b81-885e-580257e880b9", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Newsletter subscription' module", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should go to 'Newsletter subscription' module", + "timedOut": false, + "duration": 2025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_goToEmailSubscriptionModule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEmailSubscriptionModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Search and go to configure module page\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailSubscription)];\n case 2:\n // Search and go to configure module page\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailSubscription.tag)];\n case 3:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(modules_1.default.psEmailSubscription.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6f713e5-702a-42e5-b6f0-bf2033095a89", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer registration to newsletter", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should check customer registration to newsletter", + "timedOut": false, + "duration": 1012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_checkCustomerRegistration1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var listOfEmails;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCustomerRegistration\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getListOfNewsletterRegistrationEmails(page)];\n case 2:\n listOfEmails = _a.sent();\n if (test.args.value) {\n (0, chai_1.expect)(listOfEmails).to.include(customers_2.default.johnDoe.email);\n }\n else {\n (0, chai_1.expect)(listOfEmails).to.not.include(customers_2.default.johnDoe.email);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7cf97b0-08be-470b-be0f-759599d21b46", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_gotoCustomersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"gotoCustomersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.goToSubMenu(page, psEmailSubscription_1.default.customersParentLink, psEmailSubscription_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "362bba1a-bb1d-44ed-887b-71e0c7487684", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : Check customer subscription to newsletter from BO should reset all filters", + "timedOut": false, + "duration": 339, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_subscribeToNewsletter_resetAfterAll\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterAll', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.equal(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fc4ba1b-a7fe-4a2e-a804-4dce38c419f8", + "parentUUID": "77775b48-392a-4bc5-8fd4-6ce956cb1d37", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5dac5753-c67f-45a0-857b-b73575421fe3", + "d58d9121-0245-4e45-89aa-b4244ec9b55a", + "5378d8df-af98-47d8-9a61-6baf624dc8ae", + "e6795775-e103-483a-b9f3-4e506c28e310", + "aa675972-51de-40b7-9643-8bf132b543dc", + "04de3924-81a3-4e6c-9211-8bce24d4fabb", + "9e3c9912-0942-47db-8519-2c2430fc2884", + "8465d44a-acf7-4009-9453-6d50d9eccf6c", + "8b26cedb-ee7c-4b5e-baca-85688bf0e161", + "c74c167c-46a3-469f-82d0-6a9df914f821", + "d79631da-a722-4b81-885e-580257e880b9", + "d6f713e5-702a-42e5-b6f0-bf2033095a89", + "d7cf97b0-08be-470b-be0f-759599d21b46", + "362bba1a-bb1d-44ed-887b-71e0c7487684", + "8fc4ba1b-a7fe-4a2e-a804-4dce38c419f8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 36166, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "58e5e02d-c219-453a-a4cd-7cf6df869c6b", + "title": "BO - Customers - Customers : View/edit voucher", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/10_viewEditVoucher.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/10_viewEditVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Customers : View/edit voucher\"", + "fullTitle": "BO - Customers - Customers : View/edit voucher \"before all\" hook in \"BO - Customers - Customers : View/edit voucher\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b1d49fb-b5ee-4524-b005-8c5d559b4c2b", + "parentUUID": "58e5e02d-c219-453a-a4cd-7cf6df869c6b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Customers : View/edit voucher\"", + "fullTitle": "BO - Customers - Customers : View/edit voucher \"after all\" hook in \"BO - Customers - Customers : View/edit voucher\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f01d8869-d2dd-4a6e-a728-828884c70273", + "parentUUID": "58e5e02d-c219-453a-a4cd-7cf6df869c6b", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "191fcd0e-a401-42d7-b3b0-0f0f877f388e", + "title": "PRE-TEST: Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/10_viewEditVoucher.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/10_viewEditVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Customers - Customers : View/edit voucher PRE-TEST: Create cart rule \"before all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3d6ba4a-aa59-40cc-a396-c90c18f2f831", + "parentUUID": "191fcd0e-a401-42d7-b3b0-0f0f877f388e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Customers - Customers : View/edit voucher PRE-TEST: Create cart rule \"after all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b9046f50-d6cd-4f3a-852d-befab0f79301", + "parentUUID": "191fcd0e-a401-42d7-b3b0-0f0f877f388e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : View/edit voucher PRE-TEST: Create cart rule should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dc16a05-bf3d-4a1c-bee5-056cbb7a5ce9", + "parentUUID": "191fcd0e-a401-42d7-b3b0-0f0f877f388e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Customers - Customers : View/edit voucher PRE-TEST: Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_PreTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81e4799b-1fc4-4948-b6ee-35eb88d43133", + "parentUUID": "191fcd0e-a401-42d7-b3b0-0f0f877f388e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Customers - Customers : View/edit voucher PRE-TEST: Create cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_PreTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0d39221-8bbf-49f6-b7e2-41a09b293953", + "parentUUID": "191fcd0e-a401-42d7-b3b0-0f0f877f388e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Customers - Customers : View/edit voucher PRE-TEST: Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_PreTest_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cc51dfd-c80d-445a-ad9f-cef83c0211bd", + "parentUUID": "191fcd0e-a401-42d7-b3b0-0f0f877f388e", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Customers - Customers : View/edit voucher PRE-TEST: Create cart rule should create new cart rule", + "timedOut": false, + "duration": 4720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_PreTest_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fa43935-1850-490d-b9a5-6460cf72abbe", + "parentUUID": "191fcd0e-a401-42d7-b3b0-0f0f877f388e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2dc16a05-bf3d-4a1c-bee5-056cbb7a5ce9", + "81e4799b-1fc4-4948-b6ee-35eb88d43133", + "d0d39221-8bbf-49f6-b7e2-41a09b293953", + "6cc51dfd-c80d-445a-ad9f-cef83c0211bd", + "2fa43935-1850-490d-b9a5-6460cf72abbe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12979, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9e679b5f-2b6b-4db7-a3c7-040b084a40f7", + "title": "View voucher", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/10_viewEditVoucher.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/10_viewEditVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Customers : View/edit voucher View voucher should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54f8770e-ac38-4faf-a250-2974825c9c2e", + "parentUUID": "9e679b5f-2b6b-4db7-a3c7-040b084a40f7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Customers : View/edit voucher View voucher should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3c784b4-d320-473c-b883-eee0457f7edc", + "parentUUID": "9e679b5f-2b6b-4db7-a3c7-040b084a40f7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email 'pub@prestashop.com'", + "fullTitle": "BO - Customers - Customers : View/edit voucher View voucher should filter list by email 'pub@prestashop.com'", + "timedOut": false, + "duration": 3080, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_filterToViewCreatedCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToViewCreatedCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customers_2.default.johnDoe.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(customers_2.default.johnDoe.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89a4d8a9-5e9a-4b70-aac2-163527fb731d", + "parentUUID": "9e679b5f-2b6b-4db7-a3c7-040b084a40f7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view customer", + "fullTitle": "BO - Customers - Customers : View/edit voucher View voucher should click on view customer", + "timedOut": false, + "duration": 1186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_goToViewCustomerPageAfterCreateCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewCustomerPageAfterCreateCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToViewCustomerPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle('J. DOE'));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26ffbc14-3f84-466f-98a3-bc04e7b24c72", + "parentUUID": "9e679b5f-2b6b-4db7-a3c7-040b084a40f7", + "isHook": false, + "skipped": false + }, + { + "title": "should check vouchers number", + "fullTitle": "BO - Customers - Customers : View/edit voucher View voucher should check vouchers number", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_checkVouchersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkVouchersNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(page, 'Vouchers')];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.eq('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ea34f63-90a2-47a7-9aa7-99a186553193", + "parentUUID": "9e679b5f-2b6b-4db7-a3c7-040b084a40f7", + "isHook": false, + "skipped": false + }, + { + "title": "should check vouchers table", + "fullTitle": "BO - Customers - Customers : View/edit voucher View voucher should check vouchers table", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_checkVouchersTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var vouchers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkVouchersTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextFromElement(page, 'Vouchers')];\n case 2:\n vouchers = _a.sent();\n (0, chai_1.expect)(vouchers).to.contains(\"\".concat(newCartRuleData.name, \" check 1\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b35f9957-bd8a-4b04-a579-0cf1359a971c", + "parentUUID": "9e679b5f-2b6b-4db7-a3c7-040b084a40f7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "54f8770e-ac38-4faf-a250-2974825c9c2e", + "e3c784b4-d320-473c-b883-eee0457f7edc", + "89a4d8a9-5e9a-4b70-aac2-163527fb731d", + "26ffbc14-3f84-466f-98a3-bc04e7b24c72", + "1ea34f63-90a2-47a7-9aa7-99a186553193", + "b35f9957-bd8a-4b04-a579-0cf1359a971c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10999, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a536bcfc-01b8-4134-88da-3480d4fb561f", + "title": "Edit voucher", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/10_viewEditVoucher.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/10_viewEditVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on edit voucher button", + "fullTitle": "BO - Customers - Customers : View/edit voucher Edit voucher should click on edit voucher button", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_clickOnEditVoucherButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditVoucherButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToPage(page, 'Vouchers')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bfb043a-438b-4455-8328-6e3b47609105", + "parentUUID": "a536bcfc-01b8-4134-88da-3480d4fb561f", + "isHook": false, + "skipped": false + }, + { + "title": "should update the created cart rule", + "fullTitle": "BO - Customers - Customers : View/edit voucher Edit voucher should update the created cart rule", + "timedOut": false, + "duration": 1229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_updateCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.fillInformationForm(page, editCartRuleData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveCartRule(page)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(view_1.default.updateSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6366a771-9d54-4535-9e63-44c5859a4296", + "parentUUID": "a536bcfc-01b8-4134-88da-3480d4fb561f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created voucher", + "fullTitle": "BO - Customers - Customers : View/edit voucher Edit voucher should delete the created voucher", + "timedOut": false, + "duration": 958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_deleteVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.deleteVoucher(page, 1)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(view_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8befc7cb-f1ef-42dc-bb84-b665635af846", + "parentUUID": "a536bcfc-01b8-4134-88da-3480d4fb561f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Customers page", + "fullTitle": "BO - Customers - Customers : View/edit voucher Edit voucher should go to Customers page", + "timedOut": false, + "duration": 3894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_goToCustomersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5ca9e07-7a8a-4cc9-85fa-33bdf4101d3f", + "parentUUID": "a536bcfc-01b8-4134-88da-3480d4fb561f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Customers : View/edit voucher Edit voucher should reset all filters", + "timedOut": false, + "duration": 2330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_viewEditVoucher_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomersAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterDelete).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "060604c0-661b-4353-bc17-40570b03df3f", + "parentUUID": "a536bcfc-01b8-4134-88da-3480d4fb561f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1bfb043a-438b-4455-8328-6e3b47609105", + "6366a771-9d54-4535-9e63-44c5859a4296", + "8befc7cb-f1ef-42dc-bb84-b665635af846", + "d5ca9e07-7a8a-4cc9-85fa-33bdf4101d3f", + "060604c0-661b-4353-bc17-40570b03df3f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9265, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "567720cb-b3af-4bdd-b537-050c41a65bbb", + "title": "BO - Customers _ Customers : Transform guest to customer account", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers _ Customers : Transform guest to customer account\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account \"before all\" hook in \"BO - Customers _ Customers : Transform guest to customer account\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ac1a4f3-bf43-4a81-b440-f8eb6dafbe08", + "parentUUID": "567720cb-b3af-4bdd-b537-050c41a65bbb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers _ Customers : Transform guest to customer account\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account \"after all\" hook in \"BO - Customers _ Customers : Transform guest to customer account\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b1f1f7f7-df41-47d9-b2db-af31de3a2011", + "parentUUID": "567720cb-b3af-4bdd-b537-050c41a65bbb", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "9b16f29a-bb53-4679-a532-5fb3d8a2cc87", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a552c9e6-609f-4385-9c96-b21b925773ae", + "parentUUID": "9b16f29a-bb53-4679-a532-5fb3d8a2cc87", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1880ceac-b21a-4c5f-be07-0a2e3ebca953", + "parentUUID": "9b16f29a-bb53-4679-a532-5fb3d8a2cc87", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21eb5614-b604-43e8-b431-1e278d7bf78a", + "parentUUID": "9b16f29a-bb53-4679-a532-5fb3d8a2cc87", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fe1e994-0bf1-449e-a1e6-3fc0482a1955", + "parentUUID": "9b16f29a-bb53-4679-a532-5fb3d8a2cc87", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd7c078b-4f94-45f4-a134-6319ced9bca0", + "parentUUID": "9b16f29a-bb53-4679-a532-5fb3d8a2cc87", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "21eb5614-b604-43e8-b431-1e278d7bf78a", + "2fe1e994-0bf1-449e-a1e6-3fc0482a1955", + "cd7c078b-4f94-45f4-a134-6319ced9bca0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7185, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "690c3ea7-275b-44ee-b1fd-4279a87faccc", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e76c9f7f-e998-4546-8588-5e7cd4cc2e22", + "parentUUID": "690c3ea7-275b-44ee-b1fd-4279a87faccc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5a4fa8bf-976d-4066-b60d-cac5e0413897", + "parentUUID": "690c3ea7-275b-44ee-b1fd-4279a87faccc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43fb016f-90b2-4786-8e8d-ae8e5e39b82d", + "parentUUID": "690c3ea7-275b-44ee-b1fd-4279a87faccc", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d3b4ea1-a358-4663-bcaa-c2b11592d2b9", + "parentUUID": "690c3ea7-275b-44ee-b1fd-4279a87faccc", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_preTest_2_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90ebfe3a-dc51-40b4-b049-207b24011acf", + "parentUUID": "690c3ea7-275b-44ee-b1fd-4279a87faccc", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1524, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_preTest_2_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7ddb610-44de-4c7f-b58a-1e6ffeba7027", + "parentUUID": "690c3ea7-275b-44ee-b1fd-4279a87faccc", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2189, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_preTest_2_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "640996e2-5dff-409e-863e-7d29c409e17f", + "parentUUID": "690c3ea7-275b-44ee-b1fd-4279a87faccc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "43fb016f-90b2-4786-8e8d-ae8e5e39b82d", + "0d3b4ea1-a358-4663-bcaa-c2b11592d2b9", + "90ebfe3a-dc51-40b4-b049-207b24011acf", + "e7ddb610-44de-4c7f-b58a-1e6ffeba7027", + "640996e2-5dff-409e-863e-7d29c409e17f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10835, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ef3e622e-6505-4186-b05a-21370208245d", + "title": "Transform a guest to customer account", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should login in BO", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bd1aca3-767d-4f34-8c6e-3beb550d0994", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 4999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a5a95f4-c0d9-4a52-9181-87285d38ade0", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should reset all filters", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_resetAllFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d05e6cd-84f4-4629-8006-3d75328c36a9", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter customers group by guest", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should filter customers group by guest", + "timedOut": false, + "duration": 3067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_filterCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'default_group', 'Guest')];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'default_group')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.eq('Guest');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f976d69-0c4b-4b6e-b9b9-8083fa378d20", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view customer page", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should go to view customer page", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_goToViewPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToViewCustomerPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(\"\".concat(customerData.firstName[0], \". \").concat(customerData.lastName)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c23703f-4d32-42f6-b29c-470d5ede0772", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on transform to customer account", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should click on transform to customer account", + "timedOut": false, + "duration": 1087, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_clickOnTransferToCustomerAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnTransferToCustomerAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.clickOnTransformToCustomerAccount(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(view_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa92a314-2ddf-481f-b3e8-4b2438784d3a", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox and check the subject", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should check if the mail is in mailbox and check the subject", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_checkMailIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMailIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Your guest account was converted to a customer account\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5bf5f7b-46a4-4ee6-9ccc-28971c45014f", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the transform to customer account button is not visible", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should check the transform to customer account button is not visible", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_isButtonVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isButtonVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.isTransformToCustomerAccountButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31428ce7-8006-45be-94c5-9e587718fc77", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to Customers page", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should go back to Customers page", + "timedOut": false, + "duration": 3898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_goBackToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3826c49a-1661-4944-b536-2038b35c24c7", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the customers table is empty", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should check that the customers table is empty", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_checkNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextWhenTableIsEmpty(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a85a3377-c3a1-4524-8cb5-d519bc10e428", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account Transform a guest to customer account should reset all filters", + "timedOut": false, + "duration": 2329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b8a5876-75bc-4f77-96c7-3ea33dd3ef5b", + "parentUUID": "ef3e622e-6505-4186-b05a-21370208245d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9bd1aca3-767d-4f34-8c6e-3beb550d0994", + "0a5a95f4-c0d9-4a52-9181-87285d38ade0", + "2d05e6cd-84f4-4629-8006-3d75328c36a9", + "1f976d69-0c4b-4b6e-b9b9-8083fa378d20", + "6c23703f-4d32-42f6-b29c-470d5ede0772", + "aa92a314-2ddf-481f-b3e8-4b2438784d3a", + "e5bf5f7b-46a4-4ee6-9ccc-28971c45014f", + "31428ce7-8006-45be-94c5-9e587718fc77", + "3826c49a-1661-4944-b536-2038b35c24c7", + "a85a3377-c3a1-4524-8cb5-d519bc10e428", + "2b8a5876-75bc-4f77-96c7-3ea33dd3ef5b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21012, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1d006add-c522-4501-8404-53e617ecc600", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bf8a5cb-2f8c-4c2a-af6d-2934b33390b9", + "parentUUID": "1d006add-c522-4501-8404-53e617ecc600", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1c05021f-1ce0-4510-b217-ae6cdefc9814", + "parentUUID": "1d006add-c522-4501-8404-53e617ecc600", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c814bc71-02c9-400c-b271-40dc01e94c53", + "parentUUID": "1d006add-c522-4501-8404-53e617ecc600", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 4995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5b34fca-8299-4ba2-8832-c1f44215d74b", + "parentUUID": "1d006add-c522-4501-8404-53e617ecc600", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34cb26c4-2433-45a1-a410-c1705c6ba9f9", + "parentUUID": "1d006add-c522-4501-8404-53e617ecc600", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1137, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efd0e7c9-58ff-4232-8ae3-04e32857ace6", + "parentUUID": "1d006add-c522-4501-8404-53e617ecc600", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1590, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c65146a-5974-43c2-902f-b1b483fa8462", + "parentUUID": "1d006add-c522-4501-8404-53e617ecc600", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dd50109-21c8-4cae-b833-6e0c5e7a67a4", + "parentUUID": "1d006add-c522-4501-8404-53e617ecc600", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c814bc71-02c9-400c-b271-40dc01e94c53", + "f5b34fca-8299-4ba2-8832-c1f44215d74b", + "34cb26c4-2433-45a1-a410-c1705c6ba9f9", + "efd0e7c9-58ff-4232-8ae3-04e32857ace6", + "5c65146a-5974-43c2-902f-b1b483fa8462", + "5dd50109-21c8-4cae-b833-6e0c5e7a67a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11818, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ab5bdfe5-63aa-4a1b-b378-35b3a4497f17", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "file": "/campaigns/functional/BO/04_customers/01_customers/11_transformGuestToCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ba6ddb2-8587-4eca-a22f-cf2ba449076d", + "parentUUID": "ab5bdfe5-63aa-4a1b-b378-35b3a4497f17", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a389da43-57b7-4487-a1c8-5da9288f8817", + "parentUUID": "ab5bdfe5-63aa-4a1b-b378-35b3a4497f17", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebaa7a38-58f5-40f8-bd66-8b060da25368", + "parentUUID": "ab5bdfe5-63aa-4a1b-b378-35b3a4497f17", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7440cc5-69ae-4c6f-a9bf-988c47deeaed", + "parentUUID": "ab5bdfe5-63aa-4a1b-b378-35b3a4497f17", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Customers _ Customers : Transform guest to customer account POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 392, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_customers_transformGuestToCustomer_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "051304f5-927b-4562-8367-1905ff2350ca", + "parentUUID": "ab5bdfe5-63aa-4a1b-b378-35b3a4497f17", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ebaa7a38-58f5-40f8-bd66-8b060da25368", + "e7440cc5-69ae-4c6f-a9bf-988c47deeaed", + "051304f5-927b-4562-8367-1905ff2350ca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7041, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "81ef8f5f-a893-4118-b3d4-0adbbc467461", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 430, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6f5f8a7-a8f1-46cb-abc3-5f48e916421b", + "parentUUID": "81ef8f5f-a893-4118-b3d4-0adbbc467461", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9a587bf-2c7e-4210-8743-9235ed75b82c", + "parentUUID": "81ef8f5f-a893-4118-b3d4-0adbbc467461", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f935f082-dce9-40f0-b4e6-40daee9f05b3", + "parentUUID": "81ef8f5f-a893-4118-b3d4-0adbbc467461", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4807840a-3038-4fc7-9290-e6718505a7d2", + "title": "BO - Customers - Addresses : Filter Addresses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/01_filterAddresses.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/01_filterAddresses.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Addresses : Filter Addresses table\"", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table \"before all\" hook in \"BO - Customers - Addresses : Filter Addresses table\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20042c1a-f4cd-4304-bd98-2e3cbe3ee53e", + "parentUUID": "4807840a-3038-4fc7-9290-e6718505a7d2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Addresses : Filter Addresses table\"", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table \"after all\" hook in \"BO - Customers - Addresses : Filter Addresses table\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "df0b5500-71b6-4d8c-9e44-4c6729378ed0", + "parentUUID": "4807840a-3038-4fc7-9290-e6718505a7d2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table should login in BO", + "timedOut": false, + "duration": 6826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1559d4f-3ab9-4eaf-8e68-b565ce5cacd4", + "parentUUID": "4807840a-3038-4fc7-9290-e6718505a7d2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer > Addresses' page", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table should go to 'Customer > Addresses' page", + "timedOut": false, + "duration": 4425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a7b43ee-c5ea-4424-bbd6-73699e8c619b", + "parentUUID": "4807840a-3038-4fc7-9290-e6718505a7d2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of addresses in BO", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table should reset all filters and get number of addresses in BO", + "timedOut": false, + "duration": 2022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ffffcf1-b87d-4952-a027-966d43a13f6c", + "parentUUID": "4807840a-3038-4fc7-9290-e6718505a7d2", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "title": "Filter addresses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/01_filterAddresses.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/01_filterAddresses.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_address '1'", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should filter by id_address '1'", + "timedOut": false, + "duration": 1065, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy === 'id_country' ? 'country_name' : test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86612954-2f6d-4d0a-a4f1-011004fd7eef", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should reset all filters", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d570479-6089-4df1-a699-34ae9e3027ed", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by firstname 'John'", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should filter by firstname 'John'", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterFirstName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy === 'id_country' ? 'country_name' : test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2938cb0-db55-463a-92cc-27d3032a503c", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should reset all filters", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterFirstNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bef4142f-87a8-48a6-b5ae-80157800dc9a", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by lastname 'DOE'", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should filter by lastname 'DOE'", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterLanstName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy === 'id_country' ? 'country_name' : test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5025e417-e313-4ebf-88ae-e4d6098a0b8f", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should reset all filters", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterLanstNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02e89c81-17b9-48dd-b728-62a8d9399ee1", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by address1 'Anonymous'", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should filter by address1 'Anonymous'", + "timedOut": false, + "duration": 935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy === 'id_country' ? 'country_name' : test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2df8bdc7-3245-4dd7-a767-59d3b6d66833", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should reset all filters", + "timedOut": false, + "duration": 313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterAddressReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "165a69ef-91f9-439c-b1ac-13eb8b809061", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by postcode '75002'", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should filter by postcode '75002'", + "timedOut": false, + "duration": 894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterPostCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy === 'id_country' ? 'country_name' : test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69afef5d-efd5-4a1f-b4e6-9e8b2eac8f88", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should reset all filters", + "timedOut": false, + "duration": 306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterPostCodeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3001e19-b780-4d4c-b843-5f6ac219db87", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by city 'Miami'", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should filter by city 'Miami'", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterCity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy === 'id_country' ? 'country_name' : test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "136b1766-a330-4402-a5c8-0420b9564a1b", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should reset all filters", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterCityReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f6189f2-dcac-4899-a775-76b39996862f", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by id_country 'France'", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should filter by id_country 'France'", + "timedOut": false, + "duration": 892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterIdCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(numberOfAddresses);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfAddressesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, i, test.args.filterBy === 'id_country' ? 'country_name' : test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14c00f68-3033-4bb8-a1e8-a4b1d93d57c7", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Filter Addresses table Filter addresses table should reset all filters", + "timedOut": false, + "duration": 528, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_filterAddresses_filterIdCountryReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04a4f557-68c0-4818-864e-5aa6d6d988a4", + "parentUUID": "8e8addd2-80c7-4fe2-8537-427f8ad88b9e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "86612954-2f6d-4d0a-a4f1-011004fd7eef", + "6d570479-6089-4df1-a699-34ae9e3027ed", + "d2938cb0-db55-463a-92cc-27d3032a503c", + "bef4142f-87a8-48a6-b5ae-80157800dc9a", + "5025e417-e313-4ebf-88ae-e4d6098a0b8f", + "02e89c81-17b9-48dd-b728-62a8d9399ee1", + "2df8bdc7-3245-4dd7-a767-59d3b6d66833", + "165a69ef-91f9-439c-b1ac-13eb8b809061", + "69afef5d-efd5-4a1f-b4e6-9e8b2eac8f88", + "c3001e19-b780-4d4c-b843-5f6ac219db87", + "136b1766-a330-4402-a5c8-0420b9564a1b", + "0f6189f2-dcac-4899-a775-76b39996862f", + "14c00f68-3033-4bb8-a1e8-a4b1d93d57c7", + "04a4f557-68c0-4818-864e-5aa6d6d988a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8913, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b1559d4f-3ab9-4eaf-8e68-b565ce5cacd4", + "1a7b43ee-c5ea-4424-bbd6-73699e8c619b", + "7ffffcf1-b87d-4952-a027-966d43a13f6c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13273, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b07d585e-7ea2-4e61-a6e8-5d9be697f992", + "title": "BO - Customers - Addresses : CRUD Address in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/02_CRUDAddressInBO.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/02_CRUDAddressInBO.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Addresses : CRUD Address in BO\"", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO \"before all\" hook in \"BO - Customers - Addresses : CRUD Address in BO\"", + "timedOut": false, + "duration": 282, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9fce31a-ef9c-4681-a9f4-28a1b77f2d8c", + "parentUUID": "b07d585e-7ea2-4e61-a6e8-5d9be697f992", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Addresses : CRUD Address in BO\"", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO \"after all\" hook in \"BO - Customers - Addresses : CRUD Address in BO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b1dff57e-9cd2-40a2-907a-9acf41fdab9a", + "parentUUID": "b07d585e-7ea2-4e61-a6e8-5d9be697f992", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO should login in BO", + "timedOut": false, + "duration": 1843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d9d45f9-dc4b-47aa-b5ab-6df9ff22669d", + "parentUUID": "b07d585e-7ea2-4e61-a6e8-5d9be697f992", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4eba88e1-e4a9-4d56-823d-097c5657a25e", + "parentUUID": "b07d585e-7ea2-4e61-a6e8-5d9be697f992", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1095169f-63a3-4fd8-bf72-d78fa81d6f55", + "parentUUID": "b07d585e-7ea2-4e61-a6e8-5d9be697f992", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "4af35f7f-c236-44b5-a186-0d1686bc3069", + "title": "Create address in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/02_CRUDAddressInBO.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/02_CRUDAddressInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new address page", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO Create address in BO should go to add new address page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ecdcc77-35e1-450e-aed4-094af8a829e3", + "parentUUID": "4af35f7f-c236-44b5-a186-0d1686bc3069", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO Create address in BO should create address and check result", + "timedOut": false, + "duration": 2479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, createAddressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c70518bd-96bb-406e-b327-141a818661ad", + "parentUUID": "4af35f7f-c236-44b5-a186-0d1686bc3069", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4ecdcc77-35e1-450e-aed4-094af8a829e3", + "c70518bd-96bb-406e-b327-141a818661ad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3285, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cbcf89c6-0c7c-476a-834b-e29a35bcc00d", + "title": "Update address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/02_CRUDAddressInBO.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/02_CRUDAddressInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by first name and last name", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO Update address should filter list by first name and last name", + "timedOut": false, + "duration": 3896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstName, lastName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, 'input', 'firstname', createAddressData.firstName)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, 'input', 'lastname', createAddressData.lastName)];\n case 4:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, 1, 'firstname')];\n case 5:\n firstName = _a.sent();\n (0, chai_1.expect)(firstName).to.contains(createAddressData.firstName);\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, 1, 'lastname')];\n case 6:\n lastName = _a.sent();\n (0, chai_1.expect)(lastName).to.contains(createAddressData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "448c7968-54ce-4e27-91ff-66028b211671", + "parentUUID": "cbcf89c6-0c7c-476a-834b-e29a35bcc00d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit address page", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO Update address should go to edit address page", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_goToEditAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToEditAddressPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8c0d1c6-d022-4de5-8bb4-c4dde8afd712", + "parentUUID": "cbcf89c6-0c7c-476a-834b-e29a35bcc00d", + "isHook": false, + "skipped": false + }, + { + "title": "should update address", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO Update address should update address", + "timedOut": false, + "duration": 4634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_updateAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, editAddressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulUpdateMessage);\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfAddressesAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterUpdate).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "170c210c-1922-4ff6-ae73-4fa23a92ec0f", + "parentUUID": "cbcf89c6-0c7c-476a-834b-e29a35bcc00d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "448c7968-54ce-4e27-91ff-66028b211671", + "c8c0d1c6-d022-4de5-8bb4-c4dde8afd712", + "170c210c-1922-4ff6-ae73-4fa23a92ec0f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9325, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c1ed68ae-cc98-4775-b790-964e0917a211", + "title": "Delete address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/02_CRUDAddressInBO.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/02_CRUDAddressInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by first name and last name", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO Delete address should filter list by first name and last name", + "timedOut": false, + "duration": 3770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstName, lastName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, 'input', 'firstname', editAddressData.firstName)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, 'input', 'lastname', editAddressData.lastName)];\n case 4:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, 1, 'firstname')];\n case 5:\n firstName = _a.sent();\n (0, chai_1.expect)(firstName).to.contains(editAddressData.firstName);\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, 1, 'lastname')];\n case 6:\n lastName = _a.sent();\n (0, chai_1.expect)(lastName).to.contains(editAddressData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97913a0e-60e3-4da0-9b0d-6ba299da33f1", + "parentUUID": "c1ed68ae-cc98-4775-b790-964e0917a211", + "isHook": false, + "skipped": false + }, + { + "title": "should delete address", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO Delete address should delete address", + "timedOut": false, + "duration": 1260, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_deleteAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.deleteAddress(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulDeleteMessage);\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfAddressesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterDelete).to.be.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5597320d-e93d-4b74-bb90-49d3da6c4bef", + "parentUUID": "c1ed68ae-cc98-4775-b790-964e0917a211", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : CRUD Address in BO Delete address should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_CRUDAddressInBO_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2e9c8d7-4a72-4d92-8752-b05fb5a94fc7", + "parentUUID": "c1ed68ae-cc98-4775-b790-964e0917a211", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97913a0e-60e3-4da0-9b0d-6ba299da33f1", + "5597320d-e93d-4b74-bb90-49d3da6c4bef", + "b2e9c8d7-4a72-4d92-8752-b05fb5a94fc7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7037, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "6d9d45f9-dc4b-47aa-b5ab-6df9ff22669d", + "4eba88e1-e4a9-4d56-823d-097c5657a25e", + "1095169f-63a3-4fd8-bf72-d78fa81d6f55" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8728, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "593dcaa7-daad-47cf-8058-ce55d73b0003", + "title": "BO - Customers - Addresses : Addresses bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/03_addressesBulkActions.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/03_addressesBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Addresses : Addresses bulk actions\"", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions \"before all\" hook in \"BO - Customers - Addresses : Addresses bulk actions\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de741f74-a8e8-40ac-b240-5c3dea0103a1", + "parentUUID": "593dcaa7-daad-47cf-8058-ce55d73b0003", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Addresses : Addresses bulk actions\"", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions \"after all\" hook in \"BO - Customers - Addresses : Addresses bulk actions\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "eca9b276-f7bf-4e21-8adf-b88b34d4593a", + "parentUUID": "593dcaa7-daad-47cf-8058-ce55d73b0003", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0998c926-d8e6-4bb9-b04d-26291346752a", + "parentUUID": "593dcaa7-daad-47cf-8058-ce55d73b0003", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6b505ca-cbb1-4b66-9d07-6c78fbc4bfeb", + "parentUUID": "593dcaa7-daad-47cf-8058-ce55d73b0003", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions should reset all filters", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd226617-a39a-49d1-ad15-1205f3f93bea", + "parentUUID": "593dcaa7-daad-47cf-8058-ce55d73b0003", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "f126c3d6-fddd-41dc-9745-fc8296b93ca6", + "title": "Create 2 addresses in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/03_addressesBulkActions.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/03_addressesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new address page", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions Create 2 addresses in BO should go to add new address page", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_goToAddAddressPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAddressPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59b7a46e-3db1-42f4-8c5c-cdf9882df4c0", + "parentUUID": "f126c3d6-fddd-41dc-9745-fc8296b93ca6", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°1 and check result", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions Create 2 addresses in BO should create address n°1 and check result", + "timedOut": false, + "duration": 2405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_createAddress1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, test.args.addressToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89752a28-525b-414f-993b-ebb4ca95891c", + "parentUUID": "f126c3d6-fddd-41dc-9745-fc8296b93ca6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions Create 2 addresses in BO should go to add new address page", + "timedOut": false, + "duration": 755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_goToAddAddressPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAddressPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e5ab352-b2d6-4cd3-9d84-1c8594d606fd", + "parentUUID": "f126c3d6-fddd-41dc-9745-fc8296b93ca6", + "isHook": false, + "skipped": false + }, + { + "title": "should create address n°2 and check result", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions Create 2 addresses in BO should create address n°2 and check result", + "timedOut": false, + "duration": 2413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_createAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, test.args.addressToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8349eaeb-1e47-4489-ada4-b778b1ae20a3", + "parentUUID": "f126c3d6-fddd-41dc-9745-fc8296b93ca6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "59b7a46e-3db1-42f4-8c5c-cdf9882df4c0", + "89752a28-525b-414f-993b-ebb4ca95891c", + "8e5ab352-b2d6-4cd3-9d84-1c8594d606fd", + "8349eaeb-1e47-4489-ada4-b778b1ae20a3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6362, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a3e52b24-5e8f-4f24-a368-7f5e4d89a703", + "title": "Delete addresses with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/03_addressesBulkActions.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/03_addressesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by address todelete", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions Delete addresses with Bulk Actions should filter list by address todelete", + "timedOut": false, + "duration": 2967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var address;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, 'input', 'address1', addressData.address)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, 1, 'address1')];\n case 4:\n address = _a.sent();\n (0, chai_1.expect)(address).to.contains(addressData.address);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c1fa6ef-fd62-4033-bdd1-95ac4fd8af22", + "parentUUID": "a3e52b24-5e8f-4f24-a368-7f5e4d89a703", + "isHook": false, + "skipped": false + }, + { + "title": "should delete addresses with Bulk Actions and check addresses Page", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions Delete addresses with Bulk Actions should delete addresses with Bulk Actions and check addresses Page", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_bulkDeleteAddresses\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteAddresses', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.deleteAddressesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(addresses_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae564cbd-d99d-41c3-a52a-e1c70864d71c", + "parentUUID": "a3e52b24-5e8f-4f24-a368-7f5e4d89a703", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Addresses bulk actions Delete addresses with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_addressesBulkActions_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.be.equal(numberOfAddresses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2204f974-494c-4f00-94a2-6f0c8e73afcb", + "parentUUID": "a3e52b24-5e8f-4f24-a368-7f5e4d89a703", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5c1fa6ef-fd62-4033-bdd1-95ac4fd8af22", + "ae564cbd-d99d-41c3-a52a-e1c70864d71c", + "2204f974-494c-4f00-94a2-6f0c8e73afcb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4218, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0998c926-d8e6-4bb9-b04d-26291346752a", + "a6b505ca-cbb1-4b66-9d07-6c78fbc4bfeb", + "fd226617-a39a-49d1-ad15-1205f3f93bea" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8575, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6540c5d4-6cb9-4966-8e30-874df8cb73d4", + "title": "BO - Customers - Addresses : Pagination and sort addresses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Addresses : Pagination and sort addresses table\"", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table \"before all\" hook in \"BO - Customers - Addresses : Pagination and sort addresses table\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create csv file with all customers data\n return [4 /*yield*/, files_1.default.createCSVFile('.', fileName, addresses_2.default)];\n case 3:\n // Create csv file with all customers data\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96e97b43-4a68-463d-8650-2f4c4232810a", + "parentUUID": "6540c5d4-6cb9-4966-8e30-874df8cb73d4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Addresses : Pagination and sort addresses table\"", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table \"after all\" hook in \"BO - Customers - Addresses : Pagination and sort addresses table\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete created csv file\n return [4 /*yield*/, files_1.default.deleteFile(fileName)];\n case 2:\n // Delete created csv file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "407ca92b-eea6-4af8-af80-16ad966f6982", + "parentUUID": "6540c5d4-6cb9-4966-8e30-874df8cb73d4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "title": "PRE-TEST: Import file 'addresses.csv'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Import file 'addresses.csv'\"", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' \"before all\" hook in \"PRE-TEST: Import file 'addresses.csv'\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d4b1c67-d860-4db8-97b0-d5c11fce97a4", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Import file 'addresses.csv'\"", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' \"after all\" hook in \"PRE-TEST: Import file 'addresses.csv'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "30d2ff99-7187-4fdd-ab19-09e1c3e2383c", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' should login in BO", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "202ae5b4-4525-43c1-ae60-5608f1efee0e", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Import' page", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' should go to 'Advanced Parameters > Import' page", + "timedOut": false, + "duration": 4893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_preTest_1_goToImportPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImportPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.importLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e4399e6-f9eb-452b-b15a-cf0ba0fddb24", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": false, + "skipped": false + }, + { + "title": "should import 'addresses.csv' file", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' should import 'addresses.csv' file", + "timedOut": false, + "duration": 2093, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_preTest_1_importFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.uploadImportFile(page, entityToImport, fileName)];\n case 2:\n uploadSuccessText = _a.sent();\n (0, chai_1.expect)(uploadSuccessText).contain(fileName);\n return [4 /*yield*/, import_1.default.isForceAllIDNumbersVisible(page)];\n case 3:\n if (!_a.sent()) return [3 /*break*/, 5];\n return [4 /*yield*/, import_1.default.setForceAllIDNumbers(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1aab4702-a017-4951-80ca-642c3ae05b5b", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next import file step", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' should go to next import file step", + "timedOut": false, + "duration": 441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_preTest_1_nextStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var panelTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nextStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.goToImportNextStep(page)];\n case 2:\n panelTitle = _a.sent();\n (0, chai_1.expect)(panelTitle).contain(import_1.default.importPanelTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "477ab8dc-35fc-41d9-946b-2c8c9e2b06f9", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": false, + "skipped": false + }, + { + "title": "should start import file", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' should start import file", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_preTest_1_confirmImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.startFileImport(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).contain(import_1.default.importModalTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3df15732-ac68-441f-be15-9ec2a968ea43", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the import is completed", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' should check that the import is completed", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_preTest_1_waitForImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'waitForImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.getImportValidationMessage(page)];\n case 2:\n isCompleted = _a.sent();\n (0, chai_1.expect)(isCompleted, 'The import is not completed!')\n .contain('Data imported')\n .and.contain('Look at your listings to make sure it\\'s all there as you wished.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af47cf85-2575-4705-a760-8223a1101968", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": false, + "skipped": false + }, + { + "title": "should close import progress modal", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table PRE-TEST: Import file 'addresses.csv' should close import progress modal", + "timedOut": false, + "duration": 1082, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_preTest_1_closeImportModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeImportModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.closeImportModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4c5b362-43aa-48ec-8f9c-f07a6810a87f", + "parentUUID": "4b087d58-0696-4e6e-9805-71ed288b18d0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "202ae5b4-4525-43c1-ae60-5608f1efee0e", + "3e4399e6-f9eb-452b-b15a-cf0ba0fddb24", + "1aab4702-a017-4951-80ca-642c3ae05b5b", + "477ab8dc-35fc-41d9-946b-2c8c9e2b06f9", + "3df15732-ac68-441f-be15-9ec2a968ea43", + "af47cf85-2575-4705-a760-8223a1101968", + "d4c5b362-43aa-48ec-8f9c-f07a6810a87f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11304, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "23e060e7-a615-4cea-9329-371a19057803", + "title": "Go to 'Customers > Addresses' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Go to 'Customers > Addresses' page should login in BO", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2286e6e-df01-42ae-8c00-a5a8a8e74659", + "parentUUID": "23e060e7-a615-4cea-9329-371a19057803", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Go to 'Customers > Addresses' page should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef67c037-d549-43fd-bd9e-58ab32468e5c", + "parentUUID": "23e060e7-a615-4cea-9329-371a19057803", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of addresses in BO", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Go to 'Customers > Addresses' page should reset all filters and get number of addresses in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7172fe79-adc5-41eb-83d8-5299579a7ea6", + "parentUUID": "23e060e7-a615-4cea-9329-371a19057803", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f2286e6e-df01-42ae-8c00-a5a8a8e74659", + "ef67c037-d549-43fd-bd9e-58ab32468e5c", + "7172fe79-adc5-41eb-83d8-5299579a7ea6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8604, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9f143506-4844-4072-b501-b615adf41030", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cce430f5-7d83-4fdf-92ef-82cbc4b5ad89", + "parentUUID": "9f143506-4844-4072-b501-b615adf41030", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Pagination next and previous should click on next", + "timedOut": false, + "duration": 804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87030cfc-1e18-42fd-a27c-4661494fd3cd", + "parentUUID": "9f143506-4844-4072-b501-b615adf41030", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bb0083d-a87d-495c-b40c-a147d310a925", + "parentUUID": "9f143506-4844-4072-b501-b615adf41030", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b34101c6-db16-48b3-95cb-464f9a2352ec", + "parentUUID": "9f143506-4844-4072-b501-b615adf41030", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cce430f5-7d83-4fdf-92ef-82cbc4b5ad89", + "87030cfc-1e18-42fd-a27c-4661494fd3cd", + "8bb0083d-a87d-495c-b40c-a147d310a925", + "b34101c6-db16-48b3-95cb-464f9a2352ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2081, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "title": "Sort addresses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_address' 'desc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'id_address' 'desc' and check result", + "timedOut": false, + "duration": 3006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8215a253-1d2f-4233-a814-145df7b953e5", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'firstname' 'asc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'firstname' 'asc' and check result", + "timedOut": false, + "duration": 3016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByFirstNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0991f6e0-c819-4651-ac79-0f43f97c9ace", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'firstname' 'desc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'firstname' 'desc' and check result", + "timedOut": false, + "duration": 3046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByFirstNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efd717bf-f385-4ef0-a08d-8a6bc01b276d", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'lastname' 'asc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'lastname' 'asc' and check result", + "timedOut": false, + "duration": 3165, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByLastNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "452882df-bb29-4205-addc-3709b2718127", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'lastname' 'desc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'lastname' 'desc' and check result", + "timedOut": false, + "duration": 3040, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByLastNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a586fbe2-0534-46a8-a030-a82e4942bfab", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'address1' 'asc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'address1' 'asc' and check result", + "timedOut": false, + "duration": 3014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByAddress1Asc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8eeb0d20-492c-440f-8fc9-73bae1c5f59b", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'address1' 'desc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'address1' 'desc' and check result", + "timedOut": false, + "duration": 3012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByAddress1Desc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6984ec58-941a-4e62-be9e-02c36fc8f5f3", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'postcode' 'asc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'postcode' 'asc' and check result", + "timedOut": false, + "duration": 3011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByPostCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b024b13-e466-45ae-87b3-52467e2f51bb", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'postcode' 'desc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'postcode' 'desc' and check result", + "timedOut": false, + "duration": 3022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByPostCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73f41665-a836-4e4b-80d5-d340894d85db", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'city' 'asc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'city' 'asc' and check result", + "timedOut": false, + "duration": 3157, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByCityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a7f6191-98fb-41a5-a71c-7506c8e0ace2", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'city' 'desc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'city' 'desc' and check result", + "timedOut": false, + "duration": 3038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByCityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bae38182-ce0a-4348-b713-abdaa847328f", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'country_name' 'asc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'country_name' 'asc' and check result", + "timedOut": false, + "duration": 3026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByCountryAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83d77d64-850d-4dd9-84b7-70f9b6f2c5ec", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'country_name' 'desc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'country_name' 'desc' and check result", + "timedOut": false, + "duration": 2987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByCountryDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79f82e84-0c81-4487-bfd0-6296e1f4e52e", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_address' 'asc' and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table Sort addresses table should sort by 'id_address' 'asc' and check result", + "timedOut": false, + "duration": 3011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, addresses_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "836ea4b6-c951-4703-a135-76b4f5012514", + "parentUUID": "c79fe9cf-8cde-45ab-8e92-e719450f699f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8215a253-1d2f-4233-a814-145df7b953e5", + "0991f6e0-c819-4651-ac79-0f43f97c9ace", + "efd717bf-f385-4ef0-a08d-8a6bc01b276d", + "452882df-bb29-4205-addc-3709b2718127", + "a586fbe2-0534-46a8-a030-a82e4942bfab", + "8eeb0d20-492c-440f-8fc9-73bae1c5f59b", + "6984ec58-941a-4e62-be9e-02c36fc8f5f3", + "2b024b13-e466-45ae-87b3-52467e2f51bb", + "73f41665-a836-4e4b-80d5-d340894d85db", + "9a7f6191-98fb-41a5-a71c-7506c8e0ace2", + "bae38182-ce0a-4348-b713-abdaa847328f", + "83d77d64-850d-4dd9-84b7-70f9b6f2c5ec", + "79f82e84-0c81-4487-bfd0-6296e1f4e52e", + "836ea4b6-c951-4703-a135-76b4f5012514" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 42551, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "title": "POST-TEST: Delete addresses by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/04_paginationAndSortAddresses.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete addresses by bulk actions\"", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table POST-TEST: Delete addresses by bulk actions \"before all\" hook in \"POST-TEST: Delete addresses by bulk actions\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f1cd4bc-ebf7-4b4c-a09f-660b59a1b2e9", + "parentUUID": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete addresses by bulk actions\"", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table POST-TEST: Delete addresses by bulk actions \"after all\" hook in \"POST-TEST: Delete addresses by bulk actions\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bb70296d-bde8-447f-acf0-7d96217409c6", + "parentUUID": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table POST-TEST: Delete addresses by bulk actions should login in BO", + "timedOut": false, + "duration": 1738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4b380d5-3022-4736-abaf-18806d0c9718", + "parentUUID": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table POST-TEST: Delete addresses by bulk actions should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_postTest_1_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba74680f-cb4d-49ae-a86c-21ac428b9093", + "parentUUID": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table POST-TEST: Delete addresses by bulk actions should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_postTest_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "016dca73-36e4-41ff-ad14-3bc2f604ab2d", + "parentUUID": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'lastname'", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table POST-TEST: Delete addresses by bulk actions should filter list by 'lastname'", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_postTest_1_filterToBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var address;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, 'input', filterBy, value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, 1, filterBy)];\n case 3:\n address = _a.sent();\n (0, chai_1.expect)(address).to.contains(value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90301e7a-da2d-4fc5-a2e0-0b96bc5feb6b", + "parentUUID": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "isHook": false, + "skipped": false + }, + { + "title": "should delete addresses with bulk actions and check result", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table POST-TEST: Delete addresses by bulk actions should delete addresses with bulk actions and check result", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_postTest_1_bulkDeleteAddresses\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteAddresses', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.deleteAddressesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(addresses_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c7e05c1-f91e-4b73-b4a8-26568454c736", + "parentUUID": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Addresses : Pagination and sort addresses table POST-TEST: Delete addresses by bulk actions should reset all filters", + "timedOut": false, + "duration": 314, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_paginationAndSortAddresses_postTest_1_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74627e63-6606-48ca-a4bd-89864d8ae8d9", + "parentUUID": "97783a99-d58e-4b2b-b1c5-e44106521bad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b4b380d5-3022-4736-abaf-18806d0c9718", + "ba74680f-cb4d-49ae-a86c-21ac428b9093", + "016dca73-36e4-41ff-ad14-3bc2f604ab2d", + "90301e7a-da2d-4fc5-a2e0-0b96bc5feb6b", + "3c7e05c1-f91e-4b73-b4a8-26568454c736", + "74627e63-6606-48ca-a4bd-89864d8ae8d9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10852, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3f0104ac-023e-46fd-a50c-42e7a35867bb", + "title": "BO - Customers - Addresses - Help card on addresses page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/05_helpCard.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/05_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Addresses - Help card on addresses page\"", + "fullTitle": "BO - Customers - Addresses - Help card on addresses page \"before all\" hook in \"BO - Customers - Addresses - Help card on addresses page\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e75b6bdf-8053-4979-bdeb-989d206b2737", + "parentUUID": "3f0104ac-023e-46fd-a50c-42e7a35867bb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Addresses - Help card on addresses page\"", + "fullTitle": "BO - Customers - Addresses - Help card on addresses page \"after all\" hook in \"BO - Customers - Addresses - Help card on addresses page\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "de8d2015-81de-448e-b281-a28dacfd1750", + "parentUUID": "3f0104ac-023e-46fd-a50c-42e7a35867bb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Addresses - Help card on addresses page should login in BO", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae55e75b-12a1-44e6-ba8e-70f2b7cac320", + "parentUUID": "3f0104ac-023e-46fd-a50c-42e7a35867bb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Addresses - Help card on addresses page should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 3835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_helpCard_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f705b079-a103-417f-b3cf-a96663705ead", + "parentUUID": "3f0104ac-023e-46fd-a50c-42e7a35867bb", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Customers - Addresses - Help card on addresses page should open the help side bar and check the document language", + "timedOut": false, + "duration": 121, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, addresses_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27d5500c-af57-46f3-9303-e0e48622af24", + "parentUUID": "3f0104ac-023e-46fd-a50c-42e7a35867bb", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Customers - Addresses - Help card on addresses page should close the help side bar", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarNotVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c30d8b0c-1450-4060-98a2-8cbbcf4d0974", + "parentUUID": "3f0104ac-023e-46fd-a50c-42e7a35867bb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ae55e75b-12a1-44e6-ba8e-70f2b7cac320", + "f705b079-a103-417f-b3cf-a96663705ead", + "27d5500c-af57-46f3-9303-e0e48622af24", + "c30d8b0c-1450-4060-98a2-8cbbcf4d0974" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5739, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "title": "BO - Customers - Addresses : Set required fields for addresses", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/02_addresses/06_setRequiredFields.ts", + "file": "/campaigns/functional/BO/04_customers/02_addresses/06_setRequiredFields.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Addresses : Set required fields for addresses\"", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses \"before all\" hook in \"BO - Customers - Addresses : Set required fields for addresses\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03ac5622-c388-4bdf-9ecc-f25d6acf12ef", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Addresses : Set required fields for addresses\"", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses \"after all\" hook in \"BO - Customers - Addresses : Set required fields for addresses\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f6a133e8-0b71-439d-a256-a4989dad9c75", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "216b2f6c-daa9-4c02-849a-a0ef99420854", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d437eef2-41a7-4869-8c30-f224d446aa6a", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should select 'Vat number' as required fields", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should select 'Vat number' as required fields", + "timedOut": false, + "duration": 1141, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_selectVatNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"VatNumber\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.setRequiredFields(page, 6, test.args.exist)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1549ed7a-091e-401e-8b72-ed90e37c86c0", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop and login", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should view my shop and login", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b560afb7-643c-4653-abf1-529a2644e0ad", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should login in FO", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should login in FO", + "timedOut": false, + "duration": 1350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_loginFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not connected in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66768834-ba0c-4030-807b-7101a8b13233", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 3381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_goToFOAddressesPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFOAddressesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToAddressesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_2.addressesPage.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(addresses_2.addressesPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0772ecf2-d8f9-4289-a886-8c8bb7fadc91", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create address page", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should go to create address page", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_goToNewAddressPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_2.addressesPage.openNewAddressForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.getHeaderTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(addAddress_1.addAddressPage.creationFormTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af23bd4a-76f9-4f3f-9683-950a36fdcd2f", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should check if 'Vat number' is required", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should check if 'Vat number' is required", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_checkOptionalLabel0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOptionalLabel\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.isVatNumberRequired(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84c70a25-f79e-4c2e-b6b2-e401226dbd21", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should sign out from FO", + "timedOut": false, + "duration": 1176, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_signOutFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"signOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "899c2f79-1fd1-4004-aeca-a70128a36b3e", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ff77fd1-0aa9-447f-a4bf-8590e3a08e8a", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should unselect 'Vat number' as required fields", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should unselect 'Vat number' as required fields", + "timedOut": false, + "duration": 1110, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_unselectVatNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"VatNumber\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.setRequiredFields(page, 6, test.args.exist)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7dfc8ca-2c42-45a2-935b-0104d441b1c6", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop and login", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should view my shop and login", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b415cb46-cd76-4b0f-9217-940fa6b694c7", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should login in FO", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should login in FO", + "timedOut": false, + "duration": 1161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_loginFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not connected in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea791ff6-0ff8-4b4f-9f47-5e6ea01095c0", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 3360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_goToFOAddressesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFOAddressesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToAddressesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_2.addressesPage.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(addresses_2.addressesPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4a4a8c4-a6b4-4152-848b-2255d0114de3", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create address page", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should go to create address page", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_goToNewAddressPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_2.addressesPage.openNewAddressForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.getHeaderTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(addAddress_1.addAddressPage.creationFormTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6589a92e-3f1a-45d9-a0cf-d2d8cad65010", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should check if 'Vat number' is required", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should check if 'Vat number' is required", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_checkOptionalLabel1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOptionalLabel\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.isVatNumberRequired(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32e77f69-475a-43a2-b32b-a7096af7769f", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should sign out from FO", + "timedOut": false, + "duration": 1158, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_signOutFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"signOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4c05ef7-b410-4da1-8787-930b09cba47c", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customers - Addresses : Set required fields for addresses should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_addresses_setRequiredFields_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "519af343-a909-4391-8c63-4037de50f51b", + "parentUUID": "25b0231a-5213-4936-8b93-1bb98f8160ca", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "216b2f6c-daa9-4c02-849a-a0ef99420854", + "d437eef2-41a7-4869-8c30-f224d446aa6a", + "1549ed7a-091e-401e-8b72-ed90e37c86c0", + "b560afb7-643c-4653-abf1-529a2644e0ad", + "66768834-ba0c-4030-807b-7101a8b13233", + "0772ecf2-d8f9-4289-a886-8c8bb7fadc91", + "af23bd4a-76f9-4f3f-9683-950a36fdcd2f", + "84c70a25-f79e-4c2e-b6b2-e401226dbd21", + "899c2f79-1fd1-4004-aeca-a70128a36b3e", + "4ff77fd1-0aa9-447f-a4bf-8590e3a08e8a", + "b7dfc8ca-2c42-45a2-935b-0104d441b1c6", + "b415cb46-cd76-4b0f-9217-940fa6b694c7", + "ea791ff6-0ff8-4b4f-9f47-5e6ea01095c0", + "c4a4a8c4-a6b4-4152-848b-2255d0114de3", + "6589a92e-3f1a-45d9-a0cf-d2d8cad65010", + "32e77f69-475a-43a2-b32b-a7096af7769f", + "c4c05ef7-b410-4da1-8787-930b09cba47c", + "519af343-a909-4391-8c63-4037de50f51b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 26286, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "537ee5fa-2031-42d6-a171-983bf4306730", + "title": "BO - Customers - Outstanding : Help card in outstanding page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/01_helpCard.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/01_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Outstanding : Help card in outstanding page\"", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page \"before all\" hook in \"BO - Customers - Outstanding : Help card in outstanding page\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c751427-00c1-4528-bde5-da5b1b4c3621", + "parentUUID": "537ee5fa-2031-42d6-a171-983bf4306730", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Outstanding : Help card in outstanding page\"", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page \"after all\" hook in \"BO - Customers - Outstanding : Help card in outstanding page\"", + "timedOut": false, + "duration": 15, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a69e6ec3-75e8-437e-9ad6-68e166ac70e9", + "parentUUID": "537ee5fa-2031-42d6-a171-983bf4306730", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "31f7a0df-b75c-4ab7-87d6-a216bb0751c6", + "title": "PRE-TEST: Enable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/01_helpCard.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/01_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page PRE-TEST: Enable B2B \"before all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad7243b4-3be6-4508-93c5-0b7c484ff916", + "parentUUID": "31f7a0df-b75c-4ab7-87d6-a216bb0751c6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page PRE-TEST: Enable B2B \"after all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "776ec0f5-74e1-4add-9dcb-5734272793ba", + "parentUUID": "31f7a0df-b75c-4ab7-87d6-a216bb0751c6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page PRE-TEST: Enable B2B should login in BO", + "timedOut": false, + "duration": 1706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83318012-3927-4954-91d9-c3a391109253", + "parentUUID": "31f7a0df-b75c-4ab7-87d6-a216bb0751c6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page PRE-TEST: Enable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_helpCard_goToCustomerSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b87f045-e471-4df7-ae08-0bef91d3dada", + "parentUUID": "31f7a0df-b75c-4ab7-87d6-a216bb0751c6", + "isHook": false, + "skipped": false + }, + { + "title": "should enable B2B mode", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page PRE-TEST: Enable B2B should enable B2B mode", + "timedOut": false, + "duration": 376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_helpCard_enableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a9d370b-030b-4145-97b5-ac72c2fbaca9", + "parentUUID": "31f7a0df-b75c-4ab7-87d6-a216bb0751c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "83318012-3927-4954-91d9-c3a391109253", + "1b87f045-e471-4df7-ae08-0bef91d3dada", + "6a9d370b-030b-4145-97b5-ac72c2fbaca9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6929, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52eb1523-80be-4161-8c6b-9d74afadefbc", + "title": "Help card in outstanding page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/01_helpCard.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/01_helpCard.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page Help card in outstanding page should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46de41fe-6249-4b9b-b91c-6b477c64c0c2", + "parentUUID": "52eb1523-80be-4161-8c6b-9d74afadefbc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Outstanding' page", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page Help card in outstanding page should go to 'Customers > Outstanding' page", + "timedOut": false, + "duration": 4814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_helpCard_goToOutstandingPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOutstandingPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.outstandingLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(outstanding_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7dab7df0-f0af-4c46-9dd4-d7d5f487b0ee", + "parentUUID": "52eb1523-80be-4161-8c6b-9d74afadefbc", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page Help card in outstanding page should open the help side bar and check the document language", + "timedOut": false, + "duration": 115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, outstanding_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b1c1e24-34c6-4278-b096-10966ebd2743", + "parentUUID": "52eb1523-80be-4161-8c6b-9d74afadefbc", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page Help card in outstanding page should close the help side bar", + "timedOut": false, + "duration": 55, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarNotVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8c9d812-223c-4409-8bee-344a5c14dbb0", + "parentUUID": "52eb1523-80be-4161-8c6b-9d74afadefbc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "46de41fe-6249-4b9b-b91c-6b477c64c0c2", + "7dab7df0-f0af-4c46-9dd4-d7d5f487b0ee", + "6b1c1e24-34c6-4278-b096-10966ebd2743", + "c8c9d812-223c-4409-8bee-344a5c14dbb0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6711, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "38971051-014a-4bb2-a9d0-4578a41c65cd", + "title": "POST-TEST: Disable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/01_helpCard.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/01_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page POST-TEST: Disable B2B \"before all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "441eddd5-83e8-4d6e-95d3-cd885f0c5d38", + "parentUUID": "38971051-014a-4bb2-a9d0-4578a41c65cd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page POST-TEST: Disable B2B \"after all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b4a51f2a-1232-4484-a137-84c9ad3dfa99", + "parentUUID": "38971051-014a-4bb2-a9d0-4578a41c65cd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page POST-TEST: Disable B2B should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d631c5d7-f254-4d01-83a8-704343b0930f", + "parentUUID": "38971051-014a-4bb2-a9d0-4578a41c65cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page POST-TEST: Disable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_helpCard_goToCustomerSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7b679e9-adcb-4937-b2db-d90a00647de1", + "parentUUID": "38971051-014a-4bb2-a9d0-4578a41c65cd", + "isHook": false, + "skipped": false + }, + { + "title": "should disable B2B mode", + "fullTitle": "BO - Customers - Outstanding : Help card in outstanding page POST-TEST: Disable B2B should disable B2B mode", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_helpCard_disableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa526ef2-03f9-41de-b081-272ca0005cc3", + "parentUUID": "38971051-014a-4bb2-a9d0-4578a41c65cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d631c5d7-f254-4d01-83a8-704343b0930f", + "b7b679e9-adcb-4937-b2db-d90a00647de1", + "fa526ef2-03f9-41de-b081-272ca0005cc3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6902, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "364ffc9e-b110-482b-9469-eeff31ee89ee", + "title": "BO - Customers - Outstanding : View order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Outstanding : View order\"", + "fullTitle": "BO - Customers - Outstanding : View order \"before all\" hook in \"BO - Customers - Outstanding : View order\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53916ba1-0ad6-47e4-aa24-2deba889b4d1", + "parentUUID": "364ffc9e-b110-482b-9469-eeff31ee89ee", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Outstanding : View order\"", + "fullTitle": "BO - Customers - Outstanding : View order \"after all\" hook in \"BO - Customers - Outstanding : View order\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "86ea330b-129a-411e-aea2-9d2adaa0ebdb", + "parentUUID": "364ffc9e-b110-482b-9469-eeff31ee89ee", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "dd819a1c-8ada-492f-96ce-7795653e7f98", + "title": "PRE-TEST: Enable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Enable B2B \"before all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16e1ec23-b328-4f55-9dbb-8002e30e8268", + "parentUUID": "dd819a1c-8ada-492f-96ce-7795653e7f98", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Enable B2B \"after all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "32a8504f-2041-4a72-93f9-b622bcbb7123", + "parentUUID": "dd819a1c-8ada-492f-96ce-7795653e7f98", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Enable B2B should login in BO", + "timedOut": false, + "duration": 1746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dbb7562-530d-4b8f-8218-15f208c71825", + "parentUUID": "dd819a1c-8ada-492f-96ce-7795653e7f98", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Enable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_goToCustomerSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "558ae87a-1762-4ca7-b9cb-0665979d6049", + "parentUUID": "dd819a1c-8ada-492f-96ce-7795653e7f98", + "isHook": false, + "skipped": false + }, + { + "title": "should enable B2B mode", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Enable B2B should enable B2B mode", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_enableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98dc9916-27d7-4629-88fb-ddaaa389b5a2", + "parentUUID": "dd819a1c-8ada-492f-96ce-7795653e7f98", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3dbb7562-530d-4b8f-8218-15f208c71825", + "558ae87a-1762-4ca7-b9cb-0665979d6049", + "98dc9916-27d7-4629-88fb-ddaaa389b5a2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6946, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c5bbbc7-4006-4c3c-bf91-702317b79ee9", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "59a90425-5410-4837-9bac-fabd48dfe389", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b19a235f-cf66-4164-ba8d-8522e0958659", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38f3abeb-c553-4e22-98c9-fbb5f57b32fe", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 511, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d70267a5-f8f7-4ed8-bfe9-1d15cb2e2e1a", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7341, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7009cfb2-7abb-4b25-85a0-b078137b0889", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "978f5f1f-6ab1-4933-bd73-aab1e84a8fef", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "154d8120-15b3-444b-99d1-9bfa14ca055e", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1561, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd2d58a4-1b31-48d2-88f8-1ee22bc5109b", + "parentUUID": "e9ea5134-b739-4f63-8c72-2ac589cc38ff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b19a235f-cf66-4164-ba8d-8522e0958659", + "38f3abeb-c553-4e22-98c9-fbb5f57b32fe", + "d70267a5-f8f7-4ed8-bfe9-1d15cb2e2e1a", + "7009cfb2-7abb-4b25-85a0-b078137b0889", + "978f5f1f-6ab1-4933-bd73-aab1e84a8fef", + "154d8120-15b3-444b-99d1-9bfa14ca055e", + "cd2d58a4-1b31-48d2-88f8-1ee22bc5109b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13231, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dff9b61e-b4ae-48eb-85e7-36151e8ef92a", + "title": "PRE-TEST: Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Update order status to payment accepted should login in BO", + "timedOut": false, + "duration": 1765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59e4cd1d-1428-4d04-a166-6f93bb99fe07", + "parentUUID": "dff9b61e-b4ae-48eb-85e7-36151e8ef92a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Update order status to payment accepted should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86994dff-71e1-457f-82d1-974a957b9138", + "parentUUID": "dff9b61e-b4ae-48eb-85e7-36151e8ef92a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get the last orderID and reference", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Update order status to payment accepted should reset filter and get the last orderID and reference", + "timedOut": false, + "duration": 2018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_resetFilterOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterOrder', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, orders_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'id_order', 1)];\n case 3:\n orderId = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(orderId).to.be.at.least(1);\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 1)];\n case 4:\n orderReference = _b.sent();\n (0, chai_1.expect)(orderReference).to.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f3c3a39-0c3f-4429-a38e-ecedd7a7a2d6", + "parentUUID": "dff9b61e-b4ae-48eb-85e7-36151e8ef92a", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1395, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49ac167a-3b76-4722-b955-a9a12dee3e83", + "parentUUID": "dff9b61e-b4ae-48eb-85e7-36151e8ef92a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : View order PRE-TEST: Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_checkStatusBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66146e2c-a6f4-49bb-8b01-6e2fe4a8a241", + "parentUUID": "dff9b61e-b4ae-48eb-85e7-36151e8ef92a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "59e4cd1d-1428-4d04-a166-6f93bb99fe07", + "86994dff-71e1-457f-82d1-974a957b9138", + "7f3c3a39-0c3f-4429-a38e-ecedd7a7a2d6", + "49ac167a-3b76-4722-b955-a9a12dee3e83", + "66146e2c-a6f4-49bb-8b01-6e2fe4a8a241" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9241, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "485ead3b-35a1-4779-854e-a125eceb7217", + "title": "View order from the outstanding page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Outstanding' page", + "fullTitle": "BO - Customers - Outstanding : View order View order from the outstanding page should go to 'Customers > Outstanding' page", + "timedOut": false, + "duration": 4569, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_goToOutstandingPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOutstandingPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.outstandingLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(outstanding_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b30c293-de47-46fd-ac79-7b322ef81652", + "parentUUID": "485ead3b-35a1-4779-854e-a125eceb7217", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get the last outstanding ID", + "fullTitle": "BO - Customers - Outstanding : View order View order from the outstanding page should reset filter and get the last outstanding ID", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_resetFilterOutstanding\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var outstandingId, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterOutstanding', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, outstanding_1.default.getTextColumn(page, 'id_invoice', 1)];\n case 3:\n outstandingId = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(outstandingId).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53541539-4a67-497e-b444-842573148750", + "parentUUID": "485ead3b-35a1-4779-854e-a125eceb7217", + "isHook": false, + "skipped": false + }, + { + "title": "should view the Order and check the orderID and the reference", + "fullTitle": "BO - Customers - Outstanding : View order View order from the outstanding page should view the Order and check the orderID and the reference", + "timedOut": false, + "duration": 526, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_viewOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var outstandingOrderId, outstandingOrderReference;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.viewOrder(page, 'actions', 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getOrderID(page)];\n case 3:\n outstandingOrderId = _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getOrderReference(page)];\n case 4:\n outstandingOrderReference = _a.sent();\n [\n { args: { columnName: outstandingOrderId, result: orderId } },\n { args: { columnName: outstandingOrderReference, result: orderReference } },\n ].forEach(function (test) {\n (0, chai_1.expect)(test.args.columnName).to.be.equal(test.args.result);\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc05ae78-6b7d-4be3-ad25-5a5ff71ff26e", + "parentUUID": "485ead3b-35a1-4779-854e-a125eceb7217", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7b30c293-de47-46fd-ac79-7b322ef81652", + "53541539-4a67-497e-b444-842573148750", + "fc05ae78-6b7d-4be3-ad25-5a5ff71ff26e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5103, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c005b805-3996-4f4b-ac45-9de88aa597ee", + "title": "POST-TEST: Disable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/02_viewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : View order POST-TEST: Disable B2B \"before all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2dd8ea0-a821-46f3-a01c-10ada29f1152", + "parentUUID": "c005b805-3996-4f4b-ac45-9de88aa597ee", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : View order POST-TEST: Disable B2B \"after all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "985328c8-1f94-4b3b-9397-dc7e9780cb07", + "parentUUID": "c005b805-3996-4f4b-ac45-9de88aa597ee", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : View order POST-TEST: Disable B2B should login in BO", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e589b12-7369-4630-9912-2a96855f68ce", + "parentUUID": "c005b805-3996-4f4b-ac45-9de88aa597ee", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : View order POST-TEST: Disable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_goToCustomerSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db2a2f90-3c0a-4432-9c10-4dcaeace0ca1", + "parentUUID": "c005b805-3996-4f4b-ac45-9de88aa597ee", + "isHook": false, + "skipped": false + }, + { + "title": "should disable B2B mode", + "fullTitle": "BO - Customers - Outstanding : View order POST-TEST: Disable B2B should disable B2B mode", + "timedOut": false, + "duration": 356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewOrder_disableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f897ab9d-0249-444d-a3dd-126c0bf5bd77", + "parentUUID": "c005b805-3996-4f4b-ac45-9de88aa597ee", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4e589b12-7369-4630-9912-2a96855f68ce", + "db2a2f90-3c0a-4432-9c10-4dcaeace0ca1", + "f897ab9d-0249-444d-a3dd-126c0bf5bd77" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6906, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "30a7a4b7-b4ea-4876-8b87-5c02e0835175", + "title": "BO - Customers - Outstanding : View invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Outstanding : View invoice\"", + "fullTitle": "BO - Customers - Outstanding : View invoice \"before all\" hook in \"BO - Customers - Outstanding : View invoice\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f19e6e12-f840-457b-812c-625b50329188", + "parentUUID": "30a7a4b7-b4ea-4876-8b87-5c02e0835175", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Outstanding : View invoice\"", + "fullTitle": "BO - Customers - Outstanding : View invoice \"after all\" hook in \"BO - Customers - Outstanding : View invoice\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ddc0e105-d0ce-4316-bcbb-bd00e182b35a", + "parentUUID": "30a7a4b7-b4ea-4876-8b87-5c02e0835175", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "dd9f3d9d-7a46-4042-b920-a60b693465a9", + "title": "PRE-TEST: Enable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Enable B2B \"before all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8c11835-e32d-44a8-a854-fc0260fb0212", + "parentUUID": "dd9f3d9d-7a46-4042-b920-a60b693465a9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Enable B2B \"after all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 15, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7bf9257f-cadf-4b2c-b52a-8568b5ff93e0", + "parentUUID": "dd9f3d9d-7a46-4042-b920-a60b693465a9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Enable B2B should login in BO", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ab2defa-a324-427e-ac94-fd7c11ada5ce", + "parentUUID": "dd9f3d9d-7a46-4042-b920-a60b693465a9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Enable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_goToCustomerSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3817788-bd54-4211-906b-db535a775381", + "parentUUID": "dd9f3d9d-7a46-4042-b920-a60b693465a9", + "isHook": false, + "skipped": false + }, + { + "title": "should enable B2B mode", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Enable B2B should enable B2B mode", + "timedOut": false, + "duration": 356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_enableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34e1ff0a-5332-42dd-b76a-073bd4df6059", + "parentUUID": "dd9f3d9d-7a46-4042-b920-a60b693465a9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ab2defa-a324-427e-ac94-fd7c11ada5ce", + "c3817788-bd54-4211-906b-db535a775381", + "34e1ff0a-5332-42dd-b76a-073bd4df6059" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6932, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "83406a49-6416-4f5b-af52-98a38dab193e", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edceb291-9c4d-443c-b276-b85ab5d8b8cb", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3f1ee971-3859-48f5-83ea-fcc395424dbe", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3db4e774-8511-48f6-945f-1462fbd02bc6", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59f9d28d-f415-4377-8d16-9a3cb4e79552", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 518, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03dae566-579c-4434-af21-0c4bcb565eb0", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1e7f652-9ec9-404d-bf32-2c50358f80a2", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 993, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd651225-57e1-4139-b5ed-cb7af4f0acb4", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9508373f-7cb4-44a1-b4ce-bdbc63d55a93", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1495, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5831118-7cf0-4d71-9b1f-31354b412182", + "parentUUID": "83406a49-6416-4f5b-af52-98a38dab193e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3db4e774-8511-48f6-945f-1462fbd02bc6", + "59f9d28d-f415-4377-8d16-9a3cb4e79552", + "03dae566-579c-4434-af21-0c4bcb565eb0", + "c1e7f652-9ec9-404d-bf32-2c50358f80a2", + "dd651225-57e1-4139-b5ed-cb7af4f0acb4", + "9508373f-7cb4-44a1-b4ce-bdbc63d55a93", + "a5831118-7cf0-4d71-9b1f-31354b412182" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12913, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6a924565-c125-497a-a125-5515e8dea59f", + "title": "PRE-TEST: Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Update order status to payment accepted should login in BO", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cd119d1-0704-490b-8558-0bcff7ebe6ef", + "parentUUID": "6a924565-c125-497a-a125-5515e8dea59f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Update order status to payment accepted should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24ef163d-672d-437d-8dc4-73c23a1ffe74", + "parentUUID": "6a924565-c125-497a-a125-5515e8dea59f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get the last reference", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Update order status to payment accepted should reset filter and get the last reference", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_resetFilterOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 1)];\n case 3:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).to.not.equal(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cea6690-0a49-49fd-b3ea-0fff34f93748", + "parentUUID": "6a924565-c125-497a-a125-5515e8dea59f", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e256b002-2422-4f50-95ab-1bcd7af72b75", + "parentUUID": "6a924565-c125-497a-a125-5515e8dea59f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : View invoice PRE-TEST: Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_checkStatusBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99737b03-8586-4edc-92eb-caebd80b4bb8", + "parentUUID": "6a924565-c125-497a-a125-5515e8dea59f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6cd119d1-0704-490b-8558-0bcff7ebe6ef", + "24ef163d-672d-437d-8dc4-73c23a1ffe74", + "6cea6690-0a49-49fd-b3ea-0fff34f93748", + "e256b002-2422-4f50-95ab-1bcd7af72b75", + "99737b03-8586-4edc-92eb-caebd80b4bb8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8893, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f3d5d45d-2cb9-4100-b0a1-7312fcd79551", + "title": "View invoice from the outstanding page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Outstanding' page", + "fullTitle": "BO - Customers - Outstanding : View invoice View invoice from the outstanding page should go to 'Customers > Outstanding' page", + "timedOut": false, + "duration": 4573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_goToOutstandingPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOutstandingPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.outstandingLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(outstanding_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f7361a1-efe9-4ca9-a76c-ef9bf6c19d16", + "parentUUID": "f3d5d45d-2cb9-4100-b0a1-7312fcd79551", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get the last outstanding ID", + "fullTitle": "BO - Customers - Outstanding : View invoice View invoice from the outstanding page should reset filter and get the last outstanding ID", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_resetFilterOutstanding\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var outstandingId, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterOutstanding', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, outstanding_1.default.getTextColumn(page, 'id_invoice', 1)];\n case 3:\n outstandingId = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(outstandingId).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3260c8e6-034b-4e54-b6e6-10a199bef6fd", + "parentUUID": "f3d5d45d-2cb9-4100-b0a1-7312fcd79551", + "isHook": false, + "skipped": false + }, + { + "title": "should view the Invoice and check the order reference", + "fullTitle": "BO - Customers - Outstanding : View invoice View invoice from the outstanding page should view the Invoice and check the order reference", + "timedOut": false, + "duration": 276, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_viewInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.viewInvoice(page, 'invoice', 1)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'The file is not existing!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88440bee-81c8-416e-8eaf-36fe8aedcad9", + "parentUUID": "f3d5d45d-2cb9-4100-b0a1-7312fcd79551", + "isHook": false, + "skipped": false + }, + { + "title": "should check reference in the invoice pdf file", + "fullTitle": "BO - Customers - Outstanding : View invoice View invoice from the outstanding page should check reference in the invoice pdf file", + "timedOut": false, + "duration": 737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_checkInvoiceReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var referenceOrder;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, orderReference)];\n case 2:\n referenceOrder = _a.sent();\n (0, chai_1.expect)(referenceOrder).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21f48be6-2dd3-4c59-8f7f-4eee6c3f5b91", + "parentUUID": "f3d5d45d-2cb9-4100-b0a1-7312fcd79551", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4f7361a1-efe9-4ca9-a76c-ef9bf6c19d16", + "3260c8e6-034b-4e54-b6e6-10a199bef6fd", + "88440bee-81c8-416e-8eaf-36fe8aedcad9", + "21f48be6-2dd3-4c59-8f7f-4eee6c3f5b91" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5594, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6409d156-6831-43c8-b470-aa9fc3a9dc17", + "title": "POST-TEST: Disable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/03_viewInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : View invoice POST-TEST: Disable B2B \"before all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75664a0f-1270-41d6-a4fa-02f161b55252", + "parentUUID": "6409d156-6831-43c8-b470-aa9fc3a9dc17", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : View invoice POST-TEST: Disable B2B \"after all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "524417a6-40b2-46b6-ad73-cb37f72aba25", + "parentUUID": "6409d156-6831-43c8-b470-aa9fc3a9dc17", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : View invoice POST-TEST: Disable B2B should login in BO", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99631078-d5f5-42a0-b4a3-e2a1451b71de", + "parentUUID": "6409d156-6831-43c8-b470-aa9fc3a9dc17", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : View invoice POST-TEST: Disable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_goToCustomerSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10f1ad88-8afd-4f5e-bb02-118726e131eb", + "parentUUID": "6409d156-6831-43c8-b470-aa9fc3a9dc17", + "isHook": false, + "skipped": false + }, + { + "title": "should disable B2B mode", + "fullTitle": "BO - Customers - Outstanding : View invoice POST-TEST: Disable B2B should disable B2B mode", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_viewInvoice_disableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "629c7db0-629f-43f5-9443-b0b57329cce9", + "parentUUID": "6409d156-6831-43c8-b470-aa9fc3a9dc17", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99631078-d5f5-42a0-b4a3-e2a1451b71de", + "10f1ad88-8afd-4f5e-bb02-118726e131eb", + "629c7db0-629f-43f5-9443-b0b57329cce9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6870, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6026f02a-7869-4604-8c4f-576b631ad0ce", + "title": "BO - Customers - Outstanding : Pagination of the outstanding page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Outstanding : Pagination of the outstanding page\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page \"before all\" hook in \"BO - Customers - Outstanding : Pagination of the outstanding page\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6c3507e-6af8-41c3-b211-e0a20ce61efb", + "parentUUID": "6026f02a-7869-4604-8c4f-576b631ad0ce", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Outstanding : Pagination of the outstanding page\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page \"after all\" hook in \"BO - Customers - Outstanding : Pagination of the outstanding page\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ba75a4b5-ed91-4f09-bd84-216235b39b47", + "parentUUID": "6026f02a-7869-4604-8c4f-576b631ad0ce", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "3806442f-2e95-4072-8b74-3a527e497dbb", + "title": "PRE-TEST: Enable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Enable B2B \"before all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60b3a823-af45-4888-b0b7-2075fc0dba33", + "parentUUID": "3806442f-2e95-4072-8b74-3a527e497dbb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Enable B2B \"after all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "550d3fb6-e4a0-4fcd-ac4e-6c12dae3f4a7", + "parentUUID": "3806442f-2e95-4072-8b74-3a527e497dbb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Enable B2B should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fcb14d7-81bc-4753-a1df-866d04606fd0", + "parentUUID": "3806442f-2e95-4072-8b74-3a527e497dbb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Enable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToCustomerSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b31450df-b860-4050-979a-2bb817589bfa", + "parentUUID": "3806442f-2e95-4072-8b74-3a527e497dbb", + "isHook": false, + "skipped": false + }, + { + "title": "should enable B2B mode", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Enable B2B should enable B2B mode", + "timedOut": false, + "duration": 358, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_enableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f5a7ce1-5555-4572-8e9e-6e33d3cf7aa3", + "parentUUID": "3806442f-2e95-4072-8b74-3a527e497dbb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0fcb14d7-81bc-4753-a1df-866d04606fd0", + "b31450df-b860-4050-979a-2bb817589bfa", + "0f5a7ce1-5555-4572-8e9e-6e33d3cf7aa3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6883, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "583c5d6d-59b9-4a50-9cfe-a55ed6055f0f", + "title": "PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login to BO", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO should login to BO", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c40d334b-6e32-483f-b17f-28f42b349704", + "parentUUID": "583c5d6d-59b9-4a50-9cfe-a55ed6055f0f", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7c03649e-9576-4711-a16e-ff435030252e", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "860a9191-b26c-4f7f-944e-e4f06e600493", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1e8c7141-b277-4cfe-b45d-715e2a73df83", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_0_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d43143f7-c5e7-4d46-9baf-5288e9e6ce2c", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_0_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55f4943a-8f2a-415c-9439-cedda124d5bb", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_0_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfdcb3cb-a40f-4071-93e0-efbaa447c986", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_0_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc95bdad-b35d-41e0-bd3e-7125af694173", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_0_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "275d2224-ea2a-4e32-b63d-32af37ebf64e", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_0_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7218331-acd0-4fc3-aa8d-4ee5ae2b82bb", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1510, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_0_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59a36d26-db8d-4c75-93e1-b518d8a8b80a", + "parentUUID": "7c03649e-9576-4711-a16e-ff435030252e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d43143f7-c5e7-4d46-9baf-5288e9e6ce2c", + "55f4943a-8f2a-415c-9439-cedda124d5bb", + "cfdcb3cb-a40f-4071-93e0-efbaa447c986", + "fc95bdad-b35d-41e0-bd3e-7125af694173", + "275d2224-ea2a-4e32-b63d-32af37ebf64e", + "c7218331-acd0-4fc3-aa8d-4ee5ae2b82bb", + "59a36d26-db8d-4c75-93e1-b518d8a8b80a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12973, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cd971bbf-f03e-4f46-bfa1-cbf2deb967f8", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 3858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e28df3dd-410e-4fe5-be2f-f56c1deffe96", + "parentUUID": "cd971bbf-f03e-4f46-bfa1-cbf2deb967f8", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1304, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c14a3ab-379b-45a8-93e2-23138a5fecd9", + "parentUUID": "cd971bbf-f03e-4f46-bfa1-cbf2deb967f8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb50e2cd-9e75-46a2-9486-7207a1c7e152", + "parentUUID": "cd971bbf-f03e-4f46-bfa1-cbf2deb967f8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e28df3dd-410e-4fe5-be2f-f56c1deffe96", + "5c14a3ab-379b-45a8-93e2-23138a5fecd9", + "fb50e2cd-9e75-46a2-9486-7207a1c7e152" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5171, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11ef5548-4c10-4eb5-a726-cadf8959adcf", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "26bba751-6584-46cf-a108-45d182742762", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "660c1e05-0a58-4649-8dc9-987ecd4a27f1", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bdf3f71-3cf8-497f-a2c9-7f571357c4aa", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 514, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41553600-5856-4d05-922e-92590b6fcef2", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c48c1ed8-f252-43db-9968-2ccdb2ac97e6", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6cf1df0-7b55-452a-9bd1-5127ed83b2e9", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "435f92dc-35b9-4d0d-be3c-3a3e38c2a72e", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1497, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9ddf1f8-dabe-4d19-831f-6dd12282b663", + "parentUUID": "8d9588e2-3155-4167-9f38-e8f19bec10f5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "660c1e05-0a58-4649-8dc9-987ecd4a27f1", + "8bdf3f71-3cf8-497f-a2c9-7f571357c4aa", + "41553600-5856-4d05-922e-92590b6fcef2", + "c48c1ed8-f252-43db-9968-2ccdb2ac97e6", + "f6cf1df0-7b55-452a-9bd1-5127ed83b2e9", + "435f92dc-35b9-4d0d-be3c-3a3e38c2a72e", + "e9ddf1f8-dabe-4d19-831f-6dd12282b663" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12855, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5136a321-2fbf-489c-9553-bc5dae1e7cd7", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80d18954-d0e2-41c5-b272-f79d01c232a6", + "parentUUID": "5136a321-2fbf-489c-9553-bc5dae1e7cd7", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e291965-6a3b-4428-952c-aed96b0fbcc2", + "parentUUID": "5136a321-2fbf-489c-9553-bc5dae1e7cd7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9452232-f9bf-4bb6-b8fd-935bb9ddcf99", + "parentUUID": "5136a321-2fbf-489c-9553-bc5dae1e7cd7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "80d18954-d0e2-41c5-b272-f79d01c232a6", + "6e291965-6a3b-4428-952c-aed96b0fbcc2", + "f9452232-f9bf-4bb6-b8fd-935bb9ddcf99" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1602, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f7074a43-9404-4702-8bff-695439b8f596", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0511c47c-d6c5-4897-806f-ebecb0737c74", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "db0ccda9-2619-42fa-aba6-5a550fcd0a71", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "258ea294-dd42-4c83-866c-094e70c97440", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f9823b2-1e27-4a79-a684-a5a9d5b5e155", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61b5fc0e-4c64-4fb2-b732-f3e34bb1c17b", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7213, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5fc19de-4af6-43f8-8b53-9842d157dc7e", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd8c3357-b101-460b-97ef-f62cf2148def", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ee3c0b9-5186-4be8-8ddd-dcb573f4fa9b", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1486, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01559c6d-858e-4e7d-8d7c-332cd8f9247d", + "parentUUID": "f7074a43-9404-4702-8bff-695439b8f596", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "258ea294-dd42-4c83-866c-094e70c97440", + "8f9823b2-1e27-4a79-a684-a5a9d5b5e155", + "61b5fc0e-4c64-4fb2-b732-f3e34bb1c17b", + "f5fc19de-4af6-43f8-8b53-9842d157dc7e", + "cd8c3357-b101-460b-97ef-f62cf2148def", + "7ee3c0b9-5186-4be8-8ddd-dcb573f4fa9b", + "01559c6d-858e-4e7d-8d7c-332cd8f9247d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12874, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ca5b5298-7f02-46fe-bace-5c4eec199bb8", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c6b16c2-5abf-4924-a21c-d81152786b68", + "parentUUID": "ca5b5298-7f02-46fe-bace-5c4eec199bb8", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d910dac9-4d83-4564-b673-c553b324aada", + "parentUUID": "ca5b5298-7f02-46fe-bace-5c4eec199bb8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "523db7db-da50-4a78-91b0-6345a1d3f133", + "parentUUID": "ca5b5298-7f02-46fe-bace-5c4eec199bb8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0c6b16c2-5abf-4924-a21c-d81152786b68", + "d910dac9-4d83-4564-b673-c553b324aada", + "523db7db-da50-4a78-91b0-6345a1d3f133" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1556, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ef8006c-f0e4-42fe-bea7-dd8facfed3da", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d8164b83-6ed8-400b-9c8e-d2d61afefe06", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fc5f565-f8d7-43df-a265-17c29aa633ac", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b506c6b-6699-4898-94b7-c54a1588eadf", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 508, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a4da077-5f7a-41ac-b1e2-c5c3b10e56a6", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7220, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a6793ec-d1a8-4367-8c0e-a9881d2b61e7", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_3_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1943f31f-7183-46dc-8116-b42678673813", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_3_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e287fce-99e0-4f7f-af25-f2fbc796c022", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_3_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fc2de0f-7b09-409e-b98c-615c09e1a544", + "parentUUID": "44eb28d5-83d7-428d-a02a-570ba84e73e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5fc5f565-f8d7-43df-a265-17c29aa633ac", + "4b506c6b-6699-4898-94b7-c54a1588eadf", + "8a4da077-5f7a-41ac-b1e2-c5c3b10e56a6", + "4a6793ec-d1a8-4367-8c0e-a9881d2b61e7", + "1943f31f-7183-46dc-8116-b42678673813", + "4e287fce-99e0-4f7f-af25-f2fbc796c022", + "1fc2de0f-7b09-409e-b98c-615c09e1a544" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12842, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "04ea22b7-4491-4384-98de-9dce217bf374", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51264650-4dd3-4428-b2c1-e350e1c6d632", + "parentUUID": "04ea22b7-4491-4384-98de-9dce217bf374", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9c85eeb-e0be-4ee3-9acd-78360f34d9b8", + "parentUUID": "04ea22b7-4491-4384-98de-9dce217bf374", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8adca2d8-a1d7-41d4-aaff-007d5338508d", + "parentUUID": "04ea22b7-4491-4384-98de-9dce217bf374", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "51264650-4dd3-4428-b2c1-e350e1c6d632", + "a9c85eeb-e0be-4ee3-9acd-78360f34d9b8", + "8adca2d8-a1d7-41d4-aaff-007d5338508d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1729, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b53b3a90-fc08-49d3-a7bf-9151a14dbeea", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "af953d11-a9c3-434f-a8a5-01b3b8bf577c", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_4_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7449db19-0698-41c4-a469-99a4149fae2f", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_4_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bce280a-32e5-4eb8-ba16-31d54e1c3249", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 528, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_4_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7e4253c-80fc-4105-b979-9d5156e7f7f6", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_4_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3ab0c75-8167-47d4-b240-b14064b5cebc", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_4_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59425d77-b342-4414-a31f-aca8607398e6", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_4_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e29e6745-163e-4f98-a6c8-7fca0401a145", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1513, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_4_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57676ceb-a649-4d8e-97a2-5e479443c7ac", + "parentUUID": "fa7a36fb-4347-4518-a870-ee3f3f93a7dc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7449db19-0698-41c4-a469-99a4149fae2f", + "6bce280a-32e5-4eb8-ba16-31d54e1c3249", + "e7e4253c-80fc-4105-b979-9d5156e7f7f6", + "c3ab0c75-8167-47d4-b240-b14064b5cebc", + "59425d77-b342-4414-a31f-aca8607398e6", + "e29e6745-163e-4f98-a6c8-7fca0401a145", + "57676ceb-a649-4d8e-97a2-5e479443c7ac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12853, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b708e0cc-5117-48db-969e-7e85d1d9322c", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68ba2847-c138-465c-9636-070f5026916c", + "parentUUID": "b708e0cc-5117-48db-969e-7e85d1d9322c", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cb1940d-9f94-44c0-94c2-394e20f20403", + "parentUUID": "b708e0cc-5117-48db-969e-7e85d1d9322c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "239088b2-dc79-48c6-9a89-7c847c168fdc", + "parentUUID": "b708e0cc-5117-48db-969e-7e85d1d9322c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "68ba2847-c138-465c-9636-070f5026916c", + "3cb1940d-9f94-44c0-94c2-394e20f20403", + "239088b2-dc79-48c6-9a89-7c847c168fdc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1600, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "273699f5-65ae-4489-a945-9c56d9a45f8c", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3adb4103-a3cf-4e42-b73f-1dadd13f3701", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_5_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a2d61eb-ddd9-42cc-af9b-c2bc6cfd5cfd", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_5_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de22aa68-76be-4f22-b791-2ef53ced8e2b", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 514, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_5_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a45b320-ee35-41c4-83cf-c616d512922a", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_5_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e0fb5c6-6ebf-4e97-b27f-18a555be59ff", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_5_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad7f5ba3-a6ce-4daa-a745-f4ec568bbb76", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_5_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04378b17-09b9-4a85-be2c-9830ae41f1f9", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1504, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_5_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6816584a-add8-4a6d-9799-156e2fc90784", + "parentUUID": "2073bdf5-6a3d-4717-ab33-8c6ad3de54bd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2a2d61eb-ddd9-42cc-af9b-c2bc6cfd5cfd", + "de22aa68-76be-4f22-b791-2ef53ced8e2b", + "8a45b320-ee35-41c4-83cf-c616d512922a", + "3e0fb5c6-6ebf-4e97-b27f-18a555be59ff", + "ad7f5ba3-a6ce-4daa-a745-f4ec568bbb76", + "04378b17-09b9-4a85-be2c-9830ae41f1f9", + "6816584a-add8-4a6d-9799-156e2fc90784" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12889, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b9919053-c2ad-4ccd-b5ef-c30c2ebe33fb", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 262, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80a01a09-dd04-40d6-8d99-f3de861bc48c", + "parentUUID": "b9919053-c2ad-4ccd-b5ef-c30c2ebe33fb", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba4accdd-511a-41d3-bbf6-da6ddb644ded", + "parentUUID": "b9919053-c2ad-4ccd-b5ef-c30c2ebe33fb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de89d8c6-d20a-44d8-b05a-feb0edfd51b8", + "parentUUID": "b9919053-c2ad-4ccd-b5ef-c30c2ebe33fb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "80a01a09-dd04-40d6-8d99-f3de861bc48c", + "ba4accdd-511a-41d3-bbf6-da6ddb644ded", + "de89d8c6-d20a-44d8-b05a-feb0edfd51b8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1623, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 25, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dadcce23-98b2-4ee0-9529-ae81b1b6d9cc", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7b487ddf-eb9b-4b66-a1c0-a51a65af29ea", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_6_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e1a918c-3f32-4d08-86bb-d5b13185f821", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_6_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5420e3a6-9033-4af8-9ee1-d9ba9cd56281", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 514, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_6_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d4f90be-a140-477d-b593-c209a254b5f5", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_6_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4af145d-2450-4abe-a7da-0ae45361b887", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_6_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62a2d085-b757-4025-a4e7-064c5ca3947e", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_6_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0e989e7-c450-4a9a-b5b6-0db8772840c8", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_6_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "196931cb-ef9c-42ad-9fb6-5f4dda9b96c4", + "parentUUID": "9e3828db-e16c-409c-a12e-50ff0c621f32", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1e1a918c-3f32-4d08-86bb-d5b13185f821", + "5420e3a6-9033-4af8-9ee1-d9ba9cd56281", + "7d4f90be-a140-477d-b593-c209a254b5f5", + "e4af145d-2450-4abe-a7da-0ae45361b887", + "62a2d085-b757-4025-a4e7-064c5ca3947e", + "e0e989e7-c450-4a9a-b5b6-0db8772840c8", + "196931cb-ef9c-42ad-9fb6-5f4dda9b96c4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12856, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "11941fd7-8343-4a54-aca3-57a161fe691a", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97d0341d-241a-45a9-8514-952eb9fca27d", + "parentUUID": "11941fd7-8343-4a54-aca3-57a161fe691a", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1384, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2de95644-d810-4844-a351-92b221a51635", + "parentUUID": "11941fd7-8343-4a54-aca3-57a161fe691a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5456aa16-e753-453d-abe2-7f0be54db0e8", + "parentUUID": "11941fd7-8343-4a54-aca3-57a161fe691a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97d0341d-241a-45a9-8514-952eb9fca27d", + "2de95644-d810-4844-a351-92b221a51635", + "5456aa16-e753-453d-abe2-7f0be54db0e8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1723, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c90800b5-2955-4c1b-afba-e116696dda3a", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "942f33d2-df47-4517-997c-61dedd05c150", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5098b8a1-240c-4f52-a999-923555475d1f", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_7_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "613a60d4-070e-43f9-9b3a-7d28ea276459", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_7_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2282805f-f564-4884-8952-3bce1662b8eb", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_7_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df790c09-ea31-4bdb-acfa-2a5040c730a7", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7219, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_7_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c408125e-cf26-497b-8dfa-6b80bf9cc7c8", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_7_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b118eca-3ed1-4f4d-8859-2970aa605160", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_7_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdd68f6d-c45b-42b2-870e-cce74d1db7bc", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1505, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_7_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c475f02-e0e2-4358-a64c-19bb7f7e4cea", + "parentUUID": "c90800b5-2955-4c1b-afba-e116696dda3a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "613a60d4-070e-43f9-9b3a-7d28ea276459", + "2282805f-f564-4884-8952-3bce1662b8eb", + "df790c09-ea31-4bdb-acfa-2a5040c730a7", + "c408125e-cf26-497b-8dfa-6b80bf9cc7c8", + "9b118eca-3ed1-4f4d-8859-2970aa605160", + "bdd68f6d-c45b-42b2-870e-cce74d1db7bc", + "1c475f02-e0e2-4358-a64c-19bb7f7e4cea" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12874, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "be521281-fc85-49ad-ba77-4e52a3414077", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25adb908-6a8f-4a83-9a91-8acbe7a9eaad", + "parentUUID": "be521281-fc85-49ad-ba77-4e52a3414077", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1505c320-3805-47e2-b717-3d3bf3be1c4f", + "parentUUID": "be521281-fc85-49ad-ba77-4e52a3414077", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc95d65e-e1de-4a2e-b69f-a2cd28929965", + "parentUUID": "be521281-fc85-49ad-ba77-4e52a3414077", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "25adb908-6a8f-4a83-9a91-8acbe7a9eaad", + "1505c320-3805-47e2-b717-3d3bf3be1c4f", + "bc95d65e-e1de-4a2e-b69f-a2cd28929965" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1630, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2339f326-6417-4006-b452-37ade0e23e7b", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3dd8729e-d2b0-4f96-a147-1cd5d9018e10", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_8_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7613b7a-3afc-4b2d-854d-e3090b5fadd3", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_8_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5f29e14-be3e-4105-bc89-24c8d9edfc20", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_8_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6680a743-f062-43eb-bd47-dc2da6d972b2", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7196, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_8_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "118d0549-acdf-488d-94e0-a94ac97f7e93", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_8_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ca41acb-127d-4abe-aebe-022603c0d8c9", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_8_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27e90ac6-8acb-487a-acb4-f4bdb917da59", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_8_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d979090-8f65-4479-8e25-f41bece2af4c", + "parentUUID": "301dd71a-5c9f-4ea5-bad4-8997c4370f8c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d7613b7a-3afc-4b2d-854d-e3090b5fadd3", + "e5f29e14-be3e-4105-bc89-24c8d9edfc20", + "6680a743-f062-43eb-bd47-dc2da6d972b2", + "118d0549-acdf-488d-94e0-a94ac97f7e93", + "6ca41acb-127d-4abe-aebe-022603c0d8c9", + "27e90ac6-8acb-487a-acb4-f4bdb917da59", + "6d979090-8f65-4479-8e25-f41bece2af4c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12834, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d13c8683-1958-422b-846b-dbf0e7198664", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca51c578-ec9a-4702-907d-3c2acd0b1c86", + "parentUUID": "d13c8683-1958-422b-846b-dbf0e7198664", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9c99c64-d52d-4719-9443-3f91b677cff3", + "parentUUID": "d13c8683-1958-422b-846b-dbf0e7198664", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e032e30-4f5f-4930-b75e-a59256cf5509", + "parentUUID": "d13c8683-1958-422b-846b-dbf0e7198664", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca51c578-ec9a-4702-907d-3c2acd0b1c86", + "d9c99c64-d52d-4719-9443-3f91b677cff3", + "8e032e30-4f5f-4930-b75e-a59256cf5509" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1702, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eba38fb6-2492-4cab-9d37-2138595012a2", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6f36837-1a13-4de7-a928-6f4026ac0ca1", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1c4fbdb6-d204-4221-8c2f-28a906d11136", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_9_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2d10451-179d-43fb-b3b9-356b143c7e4b", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_9_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7424959-a9ed-41ed-b529-cbabde3b5a00", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 512, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_9_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f62fbb7b-eeeb-47e0-beb5-1c54ffb3363a", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_9_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10ad98da-c0a4-47c1-b802-73e4fa935fbe", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_9_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34d3a084-7711-4780-ae18-b5b10d7c6d3b", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_9_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cd77173-cb38-46bf-921e-1284f1f343bd", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_9_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7843e6d8-2250-4a8f-a0b9-b2f61bdc40eb", + "parentUUID": "eba38fb6-2492-4cab-9d37-2138595012a2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c2d10451-179d-43fb-b3b9-356b143c7e4b", + "f7424959-a9ed-41ed-b529-cbabde3b5a00", + "f62fbb7b-eeeb-47e0-beb5-1c54ffb3363a", + "10ad98da-c0a4-47c1-b802-73e4fa935fbe", + "34d3a084-7711-4780-ae18-b5b10d7c6d3b", + "5cd77173-cb38-46bf-921e-1284f1f343bd", + "7843e6d8-2250-4a8f-a0b9-b2f61bdc40eb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12924, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "be2ad3c5-660a-4771-a36e-fe76f3b04dd1", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b63c6d8e-7061-4d35-8c72-13de909b3529", + "parentUUID": "be2ad3c5-660a-4771-a36e-fe76f3b04dd1", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bbcec05-3b45-4ea7-bf39-e065656af209", + "parentUUID": "be2ad3c5-660a-4771-a36e-fe76f3b04dd1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7df49f72-5397-4c0e-af56-d66c82f83ca4", + "parentUUID": "be2ad3c5-660a-4771-a36e-fe76f3b04dd1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b63c6d8e-7061-4d35-8c72-13de909b3529", + "9bbcec05-3b45-4ea7-bf39-e065656af209", + "7df49f72-5397-4c0e-af56-d66c82f83ca4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1628, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10fc4959-5be7-4b9a-8ea2-a75b8c7fd655", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4f626e94-57f8-45dc-9793-2e1127b88897", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_10_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "781f9762-0f4d-429f-bdf6-a8d8a0492435", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_10_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48dfb9d4-a2f7-4f9f-8717-5108e75e3d64", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 505, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_10_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef238127-ca3a-4fce-893f-bcd7a82fcb08", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_10_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d1d0a11-e3d5-4378-8702-df22be5ccad8", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_10_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b120f6c7-9006-4db4-8775-017d0a7d4461", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_10_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fd24cca-985f-4a50-b334-e95960124a4a", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1510, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_preTest_10_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4964754c-26ae-4801-806f-9df112d008dd", + "parentUUID": "bc0b3960-f98c-4b78-a592-fb2c8ee68a91", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "781f9762-0f4d-429f-bdf6-a8d8a0492435", + "48dfb9d4-a2f7-4f9f-8717-5108e75e3d64", + "ef238127-ca3a-4fce-893f-bcd7a82fcb08", + "0d1d0a11-e3d5-4378-8702-df22be5ccad8", + "b120f6c7-9006-4db4-8775-017d0a7d4461", + "3fd24cca-985f-4a50-b334-e95960124a4a", + "4964754c-26ae-4801-806f-9df112d008dd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12867, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f868787f-27f0-42b7-b1dd-884f310fcee6", + "title": "Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOrdersPage_10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a1e6dde-1267-481c-b301-6257331f2b3a", + "parentUUID": "f868787f-27f0-42b7-b1dd-884f310fcee6", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1406, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_updateOrderStatus_10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97172553-0d67-46ec-b9eb-7a0f7be795d3", + "parentUUID": "f868787f-27f0-42b7-b1dd-884f310fcee6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page PRE-TEST: Create 11 orders on FO and change their status to payment accepted on BO Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_checkStatusBO_10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c37efee5-2331-4878-ada3-b13b5f438470", + "parentUUID": "f868787f-27f0-42b7-b1dd-884f310fcee6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5a1e6dde-1267-481c-b301-6257331f2b3a", + "97172553-0d67-46ec-b9eb-7a0f7be795d3", + "c37efee5-2331-4878-ada3-b13b5f438470" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1779, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c40d334b-6e32-483f-b17f-28f42b349704" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1717, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "56c4c8c5-32af-493d-ae79-44a12c1d6c08", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO > Customers > Outstanding page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page Pagination next and previous should go to BO > Customers > Outstanding page", + "timedOut": false, + "duration": 3606, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToOutstandingPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOutstandingPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.outstandingLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(outstanding_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdbf1489-5583-47fa-903d-a66b99c09e70", + "parentUUID": "56c4c8c5-32af-493d-ae79-44a12c1d6c08", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get the number of outstanding", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page Pagination next and previous should reset all filters and get the number of outstanding", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"resetFilterAndGetNumberOfOutstanding\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAndGetNumberOfOutstanding')];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstanding = _a.sent();\n (0, chai_1.expect)(numberOutstanding).to.be.above(numberOfOrdersToCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0a7adfb-c926-4deb-bbb3-430086066b88", + "parentUUID": "56c4c8c5-32af-493d-ae79-44a12c1d6c08", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not correct (page 1 / \".concat(Math.ceil(numberOutstanding / 10), \")\"))\n .to.contains(\"(page 1 / \".concat(Math.ceil(numberOutstanding / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f90f666d-eabe-4dca-813b-756ef962a113", + "parentUUID": "56c4c8c5-32af-493d-ae79-44a12c1d6c08", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page Pagination next and previous should click on next", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not (page 2 / \".concat(Math.ceil(numberOutstanding / 10), \")\"))\n .to.contains(\"(page 2 / \".concat(Math.ceil(numberOutstanding / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9443341c-f006-448c-80b1-515744e43468", + "parentUUID": "56c4c8c5-32af-493d-ae79-44a12c1d6c08", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page Pagination next and previous should click on previous", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not (page 1 / \".concat(Math.ceil(numberOutstanding / 10), \")\"))\n .to.contains(\"(page 1 / \".concat(Math.ceil(numberOutstanding / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d90bdbfb-8ac6-421c-85cc-1b96dcfe4f32", + "parentUUID": "56c4c8c5-32af-493d-ae79-44a12c1d6c08", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, 'Number of pages is not correct').to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1248bd3a-d771-422a-abe1-c120b6516fc8", + "parentUUID": "56c4c8c5-32af-493d-ae79-44a12c1d6c08", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fdbf1489-5583-47fa-903d-a66b99c09e70", + "d0a7adfb-c926-4deb-bbb3-430086066b88", + "f90f666d-eabe-4dca-813b-756ef962a113", + "9443341c-f006-448c-80b1-515744e43468", + "d90bdbfb-8ac6-421c-85cc-1b96dcfe4f32", + "1248bd3a-d771-422a-abe1-c120b6516fc8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6724, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "25798c54-1712-4ed9-b271-620914061dcb", + "title": "POST-TEST: Disable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/04_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page POST-TEST: Disable B2B \"before all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87119892-568c-409e-8878-901936288200", + "parentUUID": "25798c54-1712-4ed9-b271-620914061dcb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page POST-TEST: Disable B2B \"after all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "86128b53-11ce-4b22-9b9e-f4434bf6a688", + "parentUUID": "25798c54-1712-4ed9-b271-620914061dcb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page POST-TEST: Disable B2B should login in BO", + "timedOut": false, + "duration": 1745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02d538a9-b2c8-4839-9923-ce558e4a2c79", + "parentUUID": "25798c54-1712-4ed9-b271-620914061dcb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page POST-TEST: Disable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_goToCustomerSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8592756e-6d25-464b-b96f-a8f92a42e902", + "parentUUID": "25798c54-1712-4ed9-b271-620914061dcb", + "isHook": false, + "skipped": false + }, + { + "title": "should disable B2B mode", + "fullTitle": "BO - Customers - Outstanding : Pagination of the outstanding page POST-TEST: Disable B2B should disable B2B mode", + "timedOut": false, + "duration": 352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_pagination_disableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d75803a6-03b9-4b67-af24-6dd8d4c38716", + "parentUUID": "25798c54-1712-4ed9-b271-620914061dcb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "02d538a9-b2c8-4839-9923-ce558e4a2c79", + "8592756e-6d25-464b-b96f-a8f92a42e902", + "d75803a6-03b9-4b67-af24-6dd8d4c38716" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6922, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0e511cf0-d5d5-4341-a42b-b85c04e93d8e", + "title": "BO - Customers - Outstanding : Filter and sort the Outstanding table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customers - Outstanding : Filter and sort the Outstanding table\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table \"before all\" hook in \"BO - Customers - Outstanding : Filter and sort the Outstanding table\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "804b8eda-8908-4cfd-b81a-27cb47b9cb5e", + "parentUUID": "0e511cf0-d5d5-4341-a42b-b85c04e93d8e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customers - Outstanding : Filter and sort the Outstanding table\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table \"after all\" hook in \"BO - Customers - Outstanding : Filter and sort the Outstanding table\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "80f317ab-34a9-4bb2-bbf4-c9c94306cdc5", + "parentUUID": "0e511cf0-d5d5-4341-a42b-b85c04e93d8e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "ed41750e-89f3-41c3-8381-3aeb34868d4f", + "title": "PRE-TEST: Enable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Enable B2B \"before all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef0ad8e9-0429-475b-afc9-e6098b390621", + "parentUUID": "ed41750e-89f3-41c3-8381-3aeb34868d4f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Enable B2B \"after all\" hook in \"PRE-TEST: Enable B2B\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dbc8e329-304a-4c16-81d7-a5b186dd7881", + "parentUUID": "ed41750e-89f3-41c3-8381-3aeb34868d4f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Enable B2B should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e802cf8-2218-4052-b3c0-2b9703a65bf8", + "parentUUID": "ed41750e-89f3-41c3-8381-3aeb34868d4f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Enable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_goToCustomerSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28e0c047-2e08-4357-bdd2-117555bfa421", + "parentUUID": "ed41750e-89f3-41c3-8381-3aeb34868d4f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable B2B mode", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Enable B2B should enable B2B mode", + "timedOut": false, + "duration": 364, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_enableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05db2c3f-d5b9-4468-a4aa-372cec286327", + "parentUUID": "ed41750e-89f3-41c3-8381-3aeb34868d4f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9e802cf8-2218-4052-b3c0-2b9703a65bf8", + "28e0c047-2e08-4357-bdd2-117555bfa421", + "05db2c3f-d5b9-4468-a4aa-372cec286327" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6910, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "db9ed3e4-e664-4585-a35e-6130ca58f1c2", + "title": "PRE-TEST: Create outstanding", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login to BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding should login to BO", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63ad19f0-a4ac-464e-a9c8-fbdb3235764b", + "parentUUID": "db9ed3e4-e664-4585-a35e-6130ca58f1c2", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "1a2f02b9-bb52-45ce-b319-81137769ec58", + "title": "PRE-TEST: Create B2B customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create B2B customer\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer \"before all\" hook in \"PRE-TEST: Create B2B customer\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73b2ae54-c8d1-492b-8719-20e1749d700d", + "parentUUID": "1a2f02b9-bb52-45ce-b319-81137769ec58", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create B2B customer\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer \"after all\" hook in \"PRE-TEST: Create B2B customer\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cd5dcd58-e369-454e-ab2c-2e9aa6224198", + "parentUUID": "1a2f02b9-bb52-45ce-b319-81137769ec58", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should login in BO", + "timedOut": false, + "duration": 1765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c1ea186-6160-44f3-aa25-122cc5df9fe2", + "parentUUID": "1a2f02b9-bb52-45ce-b319-81137769ec58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 5016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_0_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4373b1cf-2635-4769-94fa-979c8cc66ad2", + "parentUUID": "1a2f02b9-bb52-45ce-b319-81137769ec58", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should go to add new customer page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_0_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca596abe-7b7e-4cb2-9e11-68e478b10877", + "parentUUID": "1a2f02b9-bb52-45ce-b319-81137769ec58", + "isHook": false, + "skipped": false + }, + { + "title": "should create B2B customer and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should create B2B customer and check result", + "timedOut": false, + "duration": 1674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_0_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditB2BCustomer(page, customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c23ea4d-e413-40a3-8fc2-227cec9a262b", + "parentUUID": "1a2f02b9-bb52-45ce-b319-81137769ec58", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7c1ea186-6160-44f3-aa25-122cc5df9fe2", + "4373b1cf-2635-4769-94fa-979c8cc66ad2", + "ca596abe-7b7e-4cb2-9e11-68e478b10877", + "5c23ea4d-e413-40a3-8fc2-227cec9a262b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9365, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "98861059-8017-48a1-8ff1-068732041c03", + "title": "PRE-TEST: Create address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address \"before all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48159133-2089-4bf8-a0c2-ef1f4c8333b7", + "parentUUID": "98861059-8017-48a1-8ff1-068732041c03", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address \"after all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "42d23154-9818-4ff6-b124-dd2e2348819d", + "parentUUID": "98861059-8017-48a1-8ff1-068732041c03", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should login in BO", + "timedOut": false, + "duration": 1796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfc6496d-1ca4-4ebe-84e6-4a280348f785", + "parentUUID": "98861059-8017-48a1-8ff1-068732041c03", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_0_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2d96a32-6aed-4ed4-b6c8-828cd48bf6cf", + "parentUUID": "98861059-8017-48a1-8ff1-068732041c03", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_0_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a9b2297-68c7-4c33-b055-822761453fea", + "parentUUID": "98861059-8017-48a1-8ff1-068732041c03", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should go to add new address page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_0_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18a9f9b2-5613-4437-850d-7d73cf7c43e6", + "parentUUID": "98861059-8017-48a1-8ff1-068732041c03", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should create address and check result", + "timedOut": false, + "duration": 2442, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_0_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ca95f1c-02dc-4756-90d8-222c8d370336", + "parentUUID": "98861059-8017-48a1-8ff1-068732041c03", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bfc6496d-1ca4-4ebe-84e6-4a280348f785", + "b2d96a32-6aed-4ed4-b6c8-828cd48bf6cf", + "1a9b2297-68c7-4c33-b055-822761453fea", + "18a9f9b2-5613-4437-850d-7d73cf7c43e6", + "3ca95f1c-02dc-4756-90d8-222c8d370336" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11870, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42ac6686-67a5-4f02-96e4-b9c0ad1c1b64", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dbe42297-e2be-454c-b654-b525078c7221", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_0_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b069c9d6-4ab1-47f1-9d02-0b927f9e642b", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_0_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8e1e34e-d8b5-4308-8fcd-d3547a8e90a2", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 606, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_0_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4ab6ee9-3825-4d1d-b4dc-98093a70394f", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_0_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83488d5e-6a0f-4c20-b733-487b9ebc489a", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_0_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75190643-93a9-43ae-a364-cd722a519c1f", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_0_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d54a1216-1f74-4765-a870-453a28a2eab0", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1495, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_0_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94d25c55-67fd-4742-b892-84b6700e5112", + "parentUUID": "e5efab2f-fa8b-47b3-bb2f-07f512582773", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b069c9d6-4ab1-47f1-9d02-0b927f9e642b", + "c8e1e34e-d8b5-4308-8fcd-d3547a8e90a2", + "e4ab6ee9-3825-4d1d-b4dc-98093a70394f", + "83488d5e-6a0f-4c20-b733-487b9ebc489a", + "75190643-93a9-43ae-a364-cd722a519c1f", + "d54a1216-1f74-4765-a870-453a28a2eab0", + "94d25c55-67fd-4742-b892-84b6700e5112" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12960, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "559a3707-f346-49de-90df-769dd514442a", + "title": "PRE-TEST : Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 3913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_goToOrdersPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0548f135-6cd7-4820-93fb-6d84b750a2c7", + "parentUUID": "559a3707-f346-49de-90df-769dd514442a", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_updateOrderStatus_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a64281b4-0d4f-4b69-bcc2-97122d18e24d", + "parentUUID": "559a3707-f346-49de-90df-769dd514442a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_checkStatusBO_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f820c76-464e-40d0-8332-38d237272e9c", + "parentUUID": "559a3707-f346-49de-90df-769dd514442a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0548f135-6cd7-4820-93fb-6d84b750a2c7", + "a64281b4-0d4f-4b69-bcc2-97122d18e24d", + "6f820c76-464e-40d0-8332-38d237272e9c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5251, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8951e9da-61be-40b6-8a89-9d7ea77fc29a", + "title": "PRE-TEST: Create B2B customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create B2B customer\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer \"before all\" hook in \"PRE-TEST: Create B2B customer\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ceaab61-2958-4b42-87d5-40a3614a7006", + "parentUUID": "8951e9da-61be-40b6-8a89-9d7ea77fc29a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create B2B customer\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer \"after all\" hook in \"PRE-TEST: Create B2B customer\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1bacd214-81a6-497c-b59a-a75de78e98c1", + "parentUUID": "8951e9da-61be-40b6-8a89-9d7ea77fc29a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should login in BO", + "timedOut": false, + "duration": 1769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f3c084a-856d-4ba3-b6e6-8429b1fb9119", + "parentUUID": "8951e9da-61be-40b6-8a89-9d7ea77fc29a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 5007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d477812b-0ec8-4570-b8de-2e1f4f60428d", + "parentUUID": "8951e9da-61be-40b6-8a89-9d7ea77fc29a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should go to add new customer page", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_1_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed9613df-ab9c-4552-9921-bdbe6ad99b5b", + "parentUUID": "8951e9da-61be-40b6-8a89-9d7ea77fc29a", + "isHook": false, + "skipped": false + }, + { + "title": "should create B2B customer and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should create B2B customer and check result", + "timedOut": false, + "duration": 1614, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_1_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditB2BCustomer(page, customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35cc7471-a524-4999-92bd-1428fd472bf4", + "parentUUID": "8951e9da-61be-40b6-8a89-9d7ea77fc29a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6f3c084a-856d-4ba3-b6e6-8429b1fb9119", + "d477812b-0ec8-4570-b8de-2e1f4f60428d", + "ed9613df-ab9c-4552-9921-bdbe6ad99b5b", + "35cc7471-a524-4999-92bd-1428fd472bf4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9250, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d0d7e333-c9dc-434f-b71b-333d060fbe02", + "title": "PRE-TEST: Create address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address \"before all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7001dd6e-0b4c-4248-97bd-6ab63e523344", + "parentUUID": "d0d7e333-c9dc-434f-b71b-333d060fbe02", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address \"after all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0a5accb0-25db-4613-a802-207be6fc8160", + "parentUUID": "d0d7e333-c9dc-434f-b71b-333d060fbe02", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should login in BO", + "timedOut": false, + "duration": 1756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59300875-1339-4703-b015-009b55794917", + "parentUUID": "d0d7e333-c9dc-434f-b71b-333d060fbe02", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_1_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ab2e4e9-ac0d-4e14-979b-d4a36bbf26b6", + "parentUUID": "d0d7e333-c9dc-434f-b71b-333d060fbe02", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dbeb8d9-ae01-4511-a0a7-72a3607b2974", + "parentUUID": "d0d7e333-c9dc-434f-b71b-333d060fbe02", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should go to add new address page", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_1_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "443da26e-e5ca-4572-aa2a-8683e7679395", + "parentUUID": "d0d7e333-c9dc-434f-b71b-333d060fbe02", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should create address and check result", + "timedOut": false, + "duration": 2456, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_1_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "271461e4-1282-4106-aecf-0a012d50d8de", + "parentUUID": "d0d7e333-c9dc-434f-b71b-333d060fbe02", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "59300875-1339-4703-b015-009b55794917", + "5ab2e4e9-ac0d-4e14-979b-d4a36bbf26b6", + "1dbeb8d9-ae01-4511-a0a7-72a3607b2974", + "443da26e-e5ca-4572-aa2a-8683e7679395", + "271461e4-1282-4106-aecf-0a012d50d8de" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11832, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b0908c6-78ab-45bd-8eb7-e6bd8ab779a7", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c2bd829a-d235-46ce-8e30-ac6741ff73a6", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbc1c5ba-40ff-49d6-8328-efcd38b96fd1", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b4609b9-f77b-4feb-8a01-1f9b278d918f", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 642, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a245f36-dcfa-4ed5-b404-2e90f96cfbe3", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cd9ddf1-6bc9-4ed1-ad83-e3bb9a3e930f", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6135f98b-8f21-4116-8a26-e3db8b5b1127", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7da5bfa-88cf-4290-9ac1-210901149bb0", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60d00262-6357-45d8-ac7f-30a76d1bdf15", + "parentUUID": "9adebef3-9b47-41d2-9419-17c02e2769cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dbc1c5ba-40ff-49d6-8328-efcd38b96fd1", + "8b4609b9-f77b-4feb-8a01-1f9b278d918f", + "6a245f36-dcfa-4ed5-b404-2e90f96cfbe3", + "2cd9ddf1-6bc9-4ed1-ad83-e3bb9a3e930f", + "6135f98b-8f21-4116-8a26-e3db8b5b1127", + "e7da5bfa-88cf-4290-9ac1-210901149bb0", + "60d00262-6357-45d8-ac7f-30a76d1bdf15" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12765, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0f80621b-abec-4613-af9d-c6679a869aa9", + "title": "PRE-TEST : Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_goToOrdersPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39c0c72e-639d-470d-9c7d-29d29e0c8caa", + "parentUUID": "0f80621b-abec-4613-af9d-c6679a869aa9", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_updateOrderStatus_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7631f95-4a34-4b41-b415-fbaedba44b2b", + "parentUUID": "0f80621b-abec-4613-af9d-c6679a869aa9", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_checkStatusBO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc8a98c7-8d5d-4719-b2c9-87680f0a11a1", + "parentUUID": "0f80621b-abec-4613-af9d-c6679a869aa9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "39c0c72e-639d-470d-9c7d-29d29e0c8caa", + "e7631f95-4a34-4b41-b415-fbaedba44b2b", + "fc8a98c7-8d5d-4719-b2c9-87680f0a11a1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1643, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d99dfd77-5558-426b-ad11-2068fc6c049a", + "title": "PRE-TEST: Create B2B customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create B2B customer\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer \"before all\" hook in \"PRE-TEST: Create B2B customer\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87ca35e1-3f57-4492-bc43-cbdd31153642", + "parentUUID": "d99dfd77-5558-426b-ad11-2068fc6c049a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create B2B customer\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer \"after all\" hook in \"PRE-TEST: Create B2B customer\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f02acfc1-764d-445d-b885-60977136f4e1", + "parentUUID": "d99dfd77-5558-426b-ad11-2068fc6c049a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69dc3ebb-f788-4a71-bef6-054502823961", + "parentUUID": "d99dfd77-5558-426b-ad11-2068fc6c049a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 5022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_2_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "585868f8-8d02-4f91-a3d9-3370302891b2", + "parentUUID": "d99dfd77-5558-426b-ad11-2068fc6c049a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should go to add new customer page", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_2_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3c23144-1f68-4508-9d77-48c85ed05510", + "parentUUID": "d99dfd77-5558-426b-ad11-2068fc6c049a", + "isHook": false, + "skipped": false + }, + { + "title": "should create B2B customer and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create B2B customer should create B2B customer and check result", + "timedOut": false, + "duration": 1615, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createB2BAccount_2_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditB2BCustomer(page, customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89178da1-96b7-484c-b466-93c0fa2ca0e9", + "parentUUID": "d99dfd77-5558-426b-ad11-2068fc6c049a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "69dc3ebb-f788-4a71-bef6-054502823961", + "585868f8-8d02-4f91-a3d9-3370302891b2", + "e3c23144-1f68-4508-9d77-48c85ed05510", + "89178da1-96b7-484c-b466-93c0fa2ca0e9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9231, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9515708f-ddba-4f49-87bf-aeba84205054", + "title": "PRE-TEST: Create address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address \"before all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ac4d646-5d7e-48b3-8c8b-1c981a4fd931", + "parentUUID": "9515708f-ddba-4f49-87bf-aeba84205054", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address \"after all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fe1a9188-38a9-4cfd-b42d-81cf9e089dec", + "parentUUID": "9515708f-ddba-4f49-87bf-aeba84205054", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should login in BO", + "timedOut": false, + "duration": 1757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccc175fe-b44e-4719-815c-cde1fd3441a7", + "parentUUID": "9515708f-ddba-4f49-87bf-aeba84205054", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_2_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dcdf6cd-b2e7-4d30-95e6-1023f279c68e", + "parentUUID": "9515708f-ddba-4f49-87bf-aeba84205054", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should reset all filters", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_2_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21fed3e5-9baa-467b-9699-871852d08dea", + "parentUUID": "9515708f-ddba-4f49-87bf-aeba84205054", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should go to add new address page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_2_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b198da26-8f2c-4626-9660-38e493bea06f", + "parentUUID": "9515708f-ddba-4f49-87bf-aeba84205054", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create address should create address and check result", + "timedOut": false, + "duration": 2425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createAddress_2_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07c021f9-1d1e-40b7-8c9b-796f55adc260", + "parentUUID": "9515708f-ddba-4f49-87bf-aeba84205054", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ccc175fe-b44e-4719-815c-cde1fd3441a7", + "2dcdf6cd-b2e7-4d30-95e6-1023f279c68e", + "21fed3e5-9baa-467b-9699-871852d08dea", + "b198da26-8f2c-4626-9660-38e493bea06f", + "07c021f9-1d1e-40b7-8c9b-796f55adc260" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11811, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f967cf75-51da-4474-beee-65b148879563", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf17a7a9-3ee3-4152-8115-71920206ff5e", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "89a5592b-d9c7-4232-bb18-2cec42b4e815", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bab3abd-730f-46c1-8937-15e70a114319", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2df3927a-25b1-42b0-8b39-38633a21e634", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 570, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "965808e5-3f3a-46be-a73c-89d35eff466c", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a79d778e-2efc-43ab-aeb6-88023e86437e", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 976, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb42288a-4972-4d41-a8e2-7742105a5bb2", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "145665aa-68b0-4403-a799-da5723df57a4", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1495, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_preTest_createOrder_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f36835b3-99d5-4a7c-9834-1797dcb4328b", + "parentUUID": "f967cf75-51da-4474-beee-65b148879563", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4bab3abd-730f-46c1-8937-15e70a114319", + "2df3927a-25b1-42b0-8b39-38633a21e634", + "965808e5-3f3a-46be-a73c-89d35eff466c", + "a79d778e-2efc-43ab-aeb6-88023e86437e", + "eb42288a-4972-4d41-a8e2-7742105a5bb2", + "145665aa-68b0-4403-a799-da5723df57a4", + "f36835b3-99d5-4a7c-9834-1797dcb4328b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12888, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "61b54a09-99cd-42d7-84ac-a663bfdfe604", + "title": "PRE-TEST : Update order status to payment accepted", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Orders > Orders page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should go to Orders > Orders page", + "timedOut": false, + "duration": 357, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_goToOrdersPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, orders_1.default.reloadPage(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90ef323f-005a-4475-95f2-7fe9d45cfb3d", + "parentUUID": "61b54a09-99cd-42d7-84ac-a663bfdfe604", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should update order status", + "timedOut": false, + "duration": 1412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_updateOrderStatus_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd41b687-4c2b-4b2a-90be-2e4ffd7c22bb", + "parentUUID": "61b54a09-99cd-42d7-84ac-a663bfdfe604", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table PRE-TEST: Create outstanding PRE-TEST : Update order status to payment accepted should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_checkStatusBO_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4588517-4464-426e-a80d-82724cf5cbc9", + "parentUUID": "61b54a09-99cd-42d7-84ac-a663bfdfe604", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "90ef323f-005a-4475-95f2-7fe9d45cfb3d", + "dd41b687-4c2b-4b2a-90be-2e4ffd7c22bb", + "e4588517-4464-426e-a80d-82724cf5cbc9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1778, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "63ad19f0-a4ac-464e-a9c8-fbdb3235764b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1695, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2bfa6c7a-6588-4886-a857-db2679dec56a", + "title": "Go to the outstanding page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Outstanding' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Go to the outstanding page should go to 'Customers > Outstanding' page", + "timedOut": false, + "duration": 3590, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_goToOutstandingPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOutstandingPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.outstandingLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(outstanding_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d2fcec5-0006-40bc-9983-e51e7dfb46e9", + "parentUUID": "2bfa6c7a-6588-4886-a857-db2679dec56a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get the outstanding number", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Go to the outstanding page should reset filter and get the outstanding number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_resetFilterOutstanding\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterOutstanding', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstanding = _a.sent();\n (0, chai_1.expect)(numberOutstanding).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ff0a5f9-10a4-4220-be61-131b55a2e362", + "parentUUID": "2bfa6c7a-6588-4886-a857-db2679dec56a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1d2fcec5-0006-40bc-9983-e51e7dfb46e9", + "3ff0a5f9-10a4-4220-be61-131b55a2e362" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3597, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "title": "Filter outstanding table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_invoice", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should filter by id_invoice", + "timedOut": false, + "duration": 862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"filterByID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterFilter).to.be.at.most(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d524a41-3c20-4791-a18c-1937c50cea3c", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get the number of outstanding", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should reset all filters and get the number of outstanding", + "timedOut": false, + "duration": 2835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"resetFilterAndGetNumberOfOutstanding1_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAndGetNumberOfOutstanding1_\".concat(index))];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterReset = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterReset).to.be.equal(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa14b237-f710-429a-9ab9-5d7a07e6095d", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by customer", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should filter by customer", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"filterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterFilter).to.be.at.most(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f47c9b0-a610-4b2d-b685-512f2aa56015", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get the number of outstanding", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should reset all filters and get the number of outstanding", + "timedOut": false, + "duration": 2840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"resetFilterAndGetNumberOfOutstanding1_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAndGetNumberOfOutstanding1_\".concat(index))];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterReset = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterReset).to.be.equal(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b4286c5-876e-44b9-bb17-1f0a4eab1d50", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by company", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should filter by company", + "timedOut": false, + "duration": 883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"filterByCompany\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterFilter).to.be.at.most(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "214c54ac-c9d5-49f8-a17c-a204ae623a6f", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get the number of outstanding", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should reset all filters and get the number of outstanding", + "timedOut": false, + "duration": 2843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"resetFilterAndGetNumberOfOutstanding1_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAndGetNumberOfOutstanding1_\".concat(index))];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterReset = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterReset).to.be.equal(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46429e6d-eee2-4581-9225-00ee474ab305", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by risk", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should filter by risk", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"filterByRisk\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterFilter).to.be.at.most(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abe55070-558b-404f-9ae4-0096f99f654c", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get the number of outstanding", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should reset all filters and get the number of outstanding", + "timedOut": false, + "duration": 2840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"resetFilterAndGetNumberOfOutstanding1_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAndGetNumberOfOutstanding1_\".concat(index))];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterReset = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterReset).to.be.equal(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a189b520-64a1-44dc-b930-a21f95be5e7c", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by outstanding_allow_amount", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should filter by outstanding_allow_amount", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"filterOutstandingAllowance1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterFilter).to.be.at.most(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4159a5e8-8abb-4a19-84c5-0b8592b823b3", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get the number of outstanding", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should reset all filters and get the number of outstanding", + "timedOut": false, + "duration": 2830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"resetFilterAndGetNumberOfOutstanding1_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAndGetNumberOfOutstanding1_\".concat(index))];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterReset = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterReset).to.be.equal(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "907362d8-e3cf-4cf9-975b-28d7592e1ec8", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the outstanding table by 'Date from' and 'Date to'", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should filter the outstanding table by 'Date from' and 'Date to'", + "timedOut": false, + "duration": 1086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_filterByDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOutstandingAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByDate', baseContext)];\n case 1:\n _a.sent();\n // Filter outstanding\n return [4 /*yield*/, outstanding_1.default.filterOutstandingByDate(page, today, today)];\n case 2:\n // Filter outstanding\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOfOutstandingAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOutstandingAfterFilter).to.be.at.most(numberOutstanding);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfOutstandingAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, outstanding_1.default.getTextColumn(page, 'date_add', i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(dateToCheck);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e120760-bdaf-480b-8d82-86ea276b46d7", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get the number of outstanding", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Filter outstanding table should reset all filters and get the number of outstanding", + "timedOut": false, + "duration": 2848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"resetFilterAndGetNumberOfOutstanding2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAndGetNumberOfOutstanding2')];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterReset = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterReset).to.be.equal(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2a8e05d-131d-4f6d-937b-7865cc8e400c", + "parentUUID": "b2f7c324-9501-405f-95f7-786e7ce8d031", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0d524a41-3c20-4791-a18c-1937c50cea3c", + "aa14b237-f710-429a-9ab9-5d7a07e6095d", + "0f47c9b0-a610-4b2d-b685-512f2aa56015", + "3b4286c5-876e-44b9-bb17-1f0a4eab1d50", + "214c54ac-c9d5-49f8-a17c-a204ae623a6f", + "46429e6d-eee2-4581-9225-00ee474ab305", + "abe55070-558b-404f-9ae4-0096f99f654c", + "a189b520-64a1-44dc-b930-a21f95be5e7c", + "4159a5e8-8abb-4a19-84c5-0b8592b823b3", + "907362d8-e3cf-4cf9-975b-28d7592e1ec8", + "4e120760-bdaf-480b-8d82-86ea276b46d7", + "e2a8e05d-131d-4f6d-937b-7865cc8e400c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22420, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "title": "Sort outstanding table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter outstanding table by outstanding allowance", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should filter outstanding table by outstanding allowance", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"filterByOutstandingAllowance2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByOutstandingAllowance2')];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.filterTable(page, 'input', 'outstanding_allow_amount', '€')];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterFilter).to.be.at.most(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75c523eb-e841-44ec-8af5-da5f29345cc5", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by outstanding allowance desc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by outstanding allowance desc", + "timedOut": false, + "duration": 3766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByOutstandingAllowanceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, 'outstanding_allow_amount')];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, 'outstanding_allow_amount', test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, 'outstanding_allow_amount')];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "855242f1-3af5-43cf-a200-1216102e39ff", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by outstanding allowance asc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by outstanding allowance asc", + "timedOut": false, + "duration": 2972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByOutstandingAllowanceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, 'outstanding_allow_amount')];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, 'outstanding_allow_amount', test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, 'outstanding_allow_amount')];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edc764ae-aa92-400f-837f-b94d586de4df", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get the number of outstanding", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should reset all filters and get the number of outstanding", + "timedOut": false, + "duration": 2837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"resetFilterAndGetNumberOfOutstanding3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOutstandingAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAndGetNumberOfOutstanding3')];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getNumberOutstanding(page)];\n case 3:\n numberOutstandingAfterReset = _a.sent();\n (0, chai_1.expect)(numberOutstandingAfterReset).to.be.equal(numberOutstanding);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "879f07e3-41e8-432a-be5e-4521dfe871e5", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by date_add desc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by date_add desc", + "timedOut": false, + "duration": 3855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByDateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "defe9fec-8934-4065-b942-d51639e90057", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by customer desc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by customer desc", + "timedOut": false, + "duration": 3909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByCustomerDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abf71654-8715-4718-a368-b05a76851424", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by company desc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by company desc", + "timedOut": false, + "duration": 3913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByCompanyDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db82fa81-359c-42b0-b718-689d9303a2d9", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by date_add asc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by date_add asc", + "timedOut": false, + "duration": 3039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByDateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e5140d5-db6f-4341-b9f0-3ca4bfdc802e", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by customer asc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by customer asc", + "timedOut": false, + "duration": 3080, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByCustomerAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ec9428e-99e9-49a0-bdef-6e5367277da8", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by company asc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by company asc", + "timedOut": false, + "duration": 3038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByCompanyAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfaaf409-edb5-4cf9-82a7-89af5dcb15c5", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by id_invoice asc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by id_invoice asc", + "timedOut": false, + "duration": 2955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be49542b-8bdc-4898-aad8-4f1a785d1abd", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by id_invoice desc", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table Sort outstanding table should sort by id_invoice desc", + "timedOut": false, + "duration": 2945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, outstanding_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, outstanding_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae88a597-bb52-4d58-8d6e-8d8014be0d52", + "parentUUID": "4efec7bf-2a14-42fb-980c-5f8cda595aba", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75c523eb-e841-44ec-8af5-da5f29345cc5", + "855242f1-3af5-43cf-a200-1216102e39ff", + "edc764ae-aa92-400f-837f-b94d586de4df", + "879f07e3-41e8-432a-be5e-4521dfe871e5", + "defe9fec-8934-4065-b942-d51639e90057", + "abf71654-8715-4718-a368-b05a76851424", + "db82fa81-359c-42b0-b718-689d9303a2d9", + "6e5140d5-db6f-4341-b9f0-3ca4bfdc802e", + "4ec9428e-99e9-49a0-bdef-6e5367277da8", + "bfaaf409-edb5-4cf9-82a7-89af5dcb15c5", + "be49542b-8bdc-4898-aad8-4f1a785d1abd", + "ae88a597-bb52-4d58-8d6e-8d8014be0d52" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 37195, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "title": "POST-TEST: Delete customers by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions \"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72be3214-1c7f-4f45-8caf-283f267f2dbb", + "parentUUID": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions \"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 15, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "eccd4fe8-97de-4d9b-bca6-da4e3b9a9511", + "parentUUID": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should login in BO", + "timedOut": false, + "duration": 1705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c7561b3-e6a1-4f92-8e11-054e340b3719", + "parentUUID": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should go 'Customers > Customers' page", + "timedOut": false, + "duration": 4999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d1a8501-081d-4266-b07f-b5f631dda8ff", + "parentUUID": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d57bbdaf-15b4-4835-b322-fd448f89501a", + "parentUUID": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'email'", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should filter list by 'email'", + "timedOut": false, + "duration": 1143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_1_filterToBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', filterBy, value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, filterBy)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15655dd0-5f93-4887-9c2b-a3e52235f9e9", + "parentUUID": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customers with Bulk Actions and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should delete customers with Bulk Actions and check result", + "timedOut": false, + "duration": 1627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_1_bulkDeleteCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomersBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4a31448-681b-4779-9830-c8eed1712494", + "parentUUID": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 368, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_1_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.below(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "716e3dea-d951-4086-8941-cc1ccccc273c", + "parentUUID": "bbcae722-3517-42d2-bd3d-98a86c6499b9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c7561b3-e6a1-4f92-8e11-054e340b3719", + "7d1a8501-081d-4266-b07f-b5f631dda8ff", + "d57bbdaf-15b4-4835-b322-fd448f89501a", + "15655dd0-5f93-4887-9c2b-a3e52235f9e9", + "a4a31448-681b-4779-9830-c8eed1712494", + "716e3dea-d951-4086-8941-cc1ccccc273c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11849, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "title": "POST-TEST: Delete customers by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions \"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12e98311-6b8f-4750-a3f0-89f135baae27", + "parentUUID": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions \"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3f1509f5-5547-4cd0-914b-fc6bb9141067", + "parentUUID": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bba0e98c-cab5-45ad-9a98-a4dd3349c40b", + "parentUUID": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should go 'Customers > Customers' page", + "timedOut": false, + "duration": 4996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_2_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6184892d-c202-430d-9411-b94ddd17104a", + "parentUUID": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_2_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42fa14e3-3096-4e94-a867-3c593521076b", + "parentUUID": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'email'", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should filter list by 'email'", + "timedOut": false, + "duration": 1096, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_2_filterToBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', filterBy, value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, filterBy)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f616e84e-781f-4fee-b5c8-f1d8f4c794b9", + "parentUUID": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customers with Bulk Actions and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should delete customers with Bulk Actions and check result", + "timedOut": false, + "duration": 1588, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_2_bulkDeleteCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomersBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db65cc2e-ef38-4adc-b935-c6dd270d3092", + "parentUUID": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_2_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.below(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba3e9590-8b7d-4ae8-947f-ffc0b4a601cd", + "parentUUID": "01c74a16-0398-4b09-8ba6-20471f924d5d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bba0e98c-cab5-45ad-9a98-a4dd3349c40b", + "6184892d-c202-430d-9411-b94ddd17104a", + "42fa14e3-3096-4e94-a867-3c593521076b", + "f616e84e-781f-4fee-b5c8-f1d8f4c794b9", + "db65cc2e-ef38-4adc-b935-c6dd270d3092", + "ba3e9590-8b7d-4ae8-947f-ffc0b4a601cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11774, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "title": "POST-TEST: Delete customers by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions \"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9685fe5-2a26-43b7-9317-37f36da5cc04", + "parentUUID": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions \"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c2b37014-15ea-4f57-80d7-235181a3765e", + "parentUUID": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should login in BO", + "timedOut": false, + "duration": 1701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "364e4aa8-2a90-4a75-9025-e1e7d5750bc3", + "parentUUID": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should go 'Customers > Customers' page", + "timedOut": false, + "duration": 4978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_3_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e5fa35e-1613-44f5-bc3a-71819db2b410", + "parentUUID": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_3_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d3721c2-26b0-4e62-8d87-055b0368fef9", + "parentUUID": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'email'", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should filter list by 'email'", + "timedOut": false, + "duration": 1094, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_3_filterToBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', filterBy, value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, filterBy)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "670cb5ae-91ba-4107-bfdb-54e43f2e3fb1", + "parentUUID": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customers with Bulk Actions and check result", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should delete customers with Bulk Actions and check result", + "timedOut": false, + "duration": 1581, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_3_bulkDeleteCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomersBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "446814f9-789d-4da9-98ae-4cb579d9c4ae", + "parentUUID": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 349, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_3_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.below(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "805e2072-ad35-4d9b-a49e-5e6fcaaeb04f", + "parentUUID": "e96e3e58-73e7-45a2-8b32-e96700b98a27", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "364e4aa8-2a90-4a75-9025-e1e7d5750bc3", + "4e5fa35e-1613-44f5-bc3a-71819db2b410", + "8d3721c2-26b0-4e62-8d87-055b0368fef9", + "670cb5ae-91ba-4107-bfdb-54e43f2e3fb1", + "446814f9-789d-4da9-98ae-4cb579d9c4ae", + "805e2072-ad35-4d9b-a49e-5e6fcaaeb04f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11710, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d09f1adf-1a72-4681-9341-89b7687a9d39", + "title": "POST-TEST: Disable B2B", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "file": "/campaigns/functional/BO/04_customers/03_outstanding/05_sortFilterOutstanding.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Disable B2B \"before all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 58, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd7b2ca7-aa55-4e96-a6e5-e460cd235e2a", + "parentUUID": "d09f1adf-1a72-4681-9341-89b7687a9d39", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable B2B\"", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Disable B2B \"after all\" hook in \"POST-TEST: Disable B2B\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "197c3f3d-7d41-41c5-9d4d-39fc5ac7b5a0", + "parentUUID": "d09f1adf-1a72-4681-9341-89b7687a9d39", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Disable B2B should login in BO", + "timedOut": false, + "duration": 1701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc7ad8c9-d032-4922-a3b0-f9335718e4f4", + "parentUUID": "d09f1adf-1a72-4681-9341-89b7687a9d39", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Disable B2B should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_4_goToCustomerSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c7e5cb1-978c-42b2-9193-401258ad518e", + "parentUUID": "d09f1adf-1a72-4681-9341-89b7687a9d39", + "isHook": false, + "skipped": false + }, + { + "title": "should disable B2B mode", + "fullTitle": "BO - Customers - Outstanding : Filter and sort the Outstanding table POST-TEST: Disable B2B should disable B2B mode", + "timedOut": false, + "duration": 352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customers_outstanding_sortFilterOutstanding_postTest_4_disableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableB2BMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3051f07c-0d68-42b0-bf40-676d7605adea", + "parentUUID": "d09f1adf-1a72-4681-9341-89b7687a9d39", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dc7ad8c9-d032-4922-a3b0-f9335718e4f4", + "9c7e5cb1-978c-42b2-9193-401258ad518e", + "3051f07c-0d68-42b0-bf40-676d7605adea" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6875, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "f68b86a1-ca89-4e2f-8b07-cf3977d89f0d", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 691, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9df841ba-6190-46e5-b215-77526a529d72", + "parentUUID": "f68b86a1-ca89-4e2f-8b07-cf3977d89f0d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 50, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3122880-35b9-4764-b314-8551537f3028", + "parentUUID": "f68b86a1-ca89-4e2f-8b07-cf3977d89f0d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3dd8185-398b-47e6-b751-3c403eb4bc4e", + "parentUUID": "f68b86a1-ca89-4e2f-8b07-cf3977d89f0d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "895ae916-9e78-4018-9e57-e1f8dc48b185", + "title": "BO - Customer Service : View message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/01_viewMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/01_viewMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service : View message\"", + "fullTitle": "BO - Customer Service : View message \"before all\" hook in \"BO - Customer Service : View message\"", + "timedOut": false, + "duration": 129, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.generateImage(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f33b17a9-c2aa-4296-9bb1-6aea2b47655b", + "parentUUID": "895ae916-9e78-4018-9e57-e1f8dc48b185", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service : View message\"", + "fullTitle": "BO - Customer Service : View message \"after all\" hook in \"BO - Customer Service : View message\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e310e35c-f4ca-48eb-a7ea-287393f5c8fb", + "parentUUID": "895ae916-9e78-4018-9e57-e1f8dc48b185", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "47ab73fc-e27e-429b-a372-1555ef2d981f", + "title": "FO : Send message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/01_viewMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/01_viewMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - Customer Service : View message FO : Send message should open the shop page", + "timedOut": false, + "duration": 547, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_openShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58c681f3-2065-4272-97e9-53b19412f1f4", + "parentUUID": "47ab73fc-e27e-429b-a372-1555ef2d981f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to contact us page", + "fullTitle": "BO - Customer Service : View message FO : Send message should go to contact us page", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_goOnContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goOnContactPage', baseContext)];\n case 1:\n _a.sent();\n // Go to contact us page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Contact us')];\n case 2:\n // Go to contact us page\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d83b67f8-edc1-4b9f-8d23-0085d447f329", + "parentUUID": "47ab73fc-e27e-429b-a372-1555ef2d981f", + "isHook": false, + "skipped": false + }, + { + "title": "should send message to customer service", + "fullTitle": "BO - Customer Service : View message FO : Send message should send message to customer service", + "timedOut": false, + "duration": 455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, \"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertSuccess(page)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(contactUs_1.contactUsPage.validationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "442f95a8-d1f5-4f70-9900-f48dee2538ff", + "parentUUID": "47ab73fc-e27e-429b-a372-1555ef2d981f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "58c681f3-2065-4272-97e9-53b19412f1f4", + "d83b67f8-edc1-4b9f-8d23-0085d447f329", + "442f95a8-d1f5-4f70-9900-f48dee2538ff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1771, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9d9d23a8-3053-48c6-827f-59f00918014f", + "title": "BO : View message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/01_viewMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/01_viewMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : View message BO : View message should login in BO", + "timedOut": false, + "duration": 6325, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "565dd9f1-52f9-4f77-a209-3ac6c9084173", + "parentUUID": "9d9d23a8-3053-48c6-827f-59f00918014f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : View message BO : View message should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 4634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be93ac7f-8a1d-48d5-a1d4-fcf723db6392", + "parentUUID": "9d9d23a8-3053-48c6-827f-59f00918014f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the customer service id and the date", + "fullTitle": "BO - Customer Service : View message BO : View message should get the customer service id and the date", + "timedOut": false, + "duration": 4022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_getMessageID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getMessageID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'id_customer_thread')];\n case 2:\n idCustomer = _a.sent();\n (0, chai_1.expect)(parseInt(idCustomer, 10)).to.be.at.least(0);\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'date')];\n case 3:\n messageDateTime = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd1d356d-436b-4ff6-ba14-cae27ecb2d21", + "parentUUID": "9d9d23a8-3053-48c6-827f-59f00918014f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : View message BO : View message should go to view message page", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_goToViewMessagePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewMessagePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b09f1123-0aba-4d38-a737-658dcdb39ba2", + "parentUUID": "9d9d23a8-3053-48c6-827f-59f00918014f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the thread form", + "fullTitle": "BO - Customer Service : View message BO : View message should check the thread form", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_checkThreadForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var badgeNumber, text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThreadForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getBadgeNumber(page)];\n case 2:\n badgeNumber = _a.sent();\n (0, chai_1.expect)(badgeNumber).to.contains(idCustomer);\n return [4 /*yield*/, view_1.default.getCustomerMessage(page)];\n case 3:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains(contactUsData.emailAddress);\n (0, chai_1.expect)(text).to.contains(contactUsData.subject);\n (0, chai_1.expect)(text).to.contains(\"\".concat(messageDateTime.substring(0, 10), \" - \").concat(messageDateTime.substring(11, 16)));\n (0, chai_1.expect)(text).to.contains('Attachment');\n (0, chai_1.expect)(text).to.contains(contactUsData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61ae7070-2ef6-4eb4-860f-fe2ac2f4dfd0", + "parentUUID": "9d9d23a8-3053-48c6-827f-59f00918014f", + "isHook": false, + "skipped": false + }, + { + "title": "should check your answer form", + "fullTitle": "BO - Customer Service : View message BO : View message should check your answer form", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_checkYourAnswerForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var titleContent, formContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkYourAnswerForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getYourAnswerFormTitle(page)];\n case 2:\n titleContent = _a.sent();\n (0, chai_1.expect)(titleContent).to.contains(\"Your answer to \".concat(contactUsData.emailAddress));\n return [4 /*yield*/, view_1.default.getYourAnswerFormContent(page)];\n case 3:\n formContent = _a.sent();\n (0, chai_1.expect)(formContent).to.contains('Dear Customer, Regards, Customer service');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8007596-5b95-457c-ac2c-37de9e815452", + "parentUUID": "9d9d23a8-3053-48c6-827f-59f00918014f", + "isHook": false, + "skipped": false + }, + { + "title": "should check orders and messages timeline", + "fullTitle": "BO - Customer Service : View message BO : View message should check orders and messages timeline", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_checkOrdersAndMessagesForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrdersAndMessagesForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getOrdersAndMessagesTimeline(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains('Orders and messages timeline');\n (0, chai_1.expect)(text).to.contains(\"\".concat(messageDateTime.substring(0, 10), \" - \").concat(messageDateTime.substring(11, 16)));\n (0, chai_1.expect)(text).to.contains(\"Message to: \".concat(contactUsData.subject));\n (0, chai_1.expect)(text).to.contains(contactUsData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f70940a-a23c-4220-a08f-e003f54ce170", + "parentUUID": "9d9d23a8-3053-48c6-827f-59f00918014f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "565dd9f1-52f9-4f77-a209-3ac6c9084173", + "be93ac7f-8a1d-48d5-a1d4-fcf723db6392", + "bd1d356d-436b-4ff6-ba14-cae27ecb2d21", + "b09f1123-0aba-4d38-a737-658dcdb39ba2", + "61ae7070-2ef6-4eb4-860f-fe2ac2f4dfd0", + "d8007596-5b95-457c-ac2c-37de9e815452", + "0f70940a-a23c-4220-a08f-e003f54ce170" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15877, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a8a3f045-3f0f-4ad5-8551-bfb1a5a3893f", + "title": "BO : Delete the message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/01_viewMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/01_viewMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : View message BO : Delete the message should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_goToOrderMessagesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9aeaf15-4cb9-41d2-804c-17dfb95440a1", + "parentUUID": "a8a3f045-3f0f-4ad5-8551-bfb1a5a3893f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "BO - Customer Service : View message BO : Delete the message should delete the message", + "timedOut": false, + "duration": 446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_viewMessage_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7572b15a-f22b-46ff-8c51-151730e166c3", + "parentUUID": "a8a3f045-3f0f-4ad5-8551-bfb1a5a3893f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e9aeaf15-4cb9-41d2-804c-17dfb95440a1", + "7572b15a-f22b-46ff-8c51-151730e166c3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4315, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2ddace31-4cb7-4c6b-84e4-f2834c03b06b", + "title": "BO - Customer Service : Change status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service : Change status\"", + "fullTitle": "BO - Customer Service : Change status \"before all\" hook in \"BO - Customer Service : Change status\"", + "timedOut": false, + "duration": 82, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.generateImage(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0636a060-aa0f-4bca-ba06-662888e0d47e", + "parentUUID": "2ddace31-4cb7-4c6b-84e4-f2834c03b06b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service : Change status\"", + "fullTitle": "BO - Customer Service : Change status \"after all\" hook in \"BO - Customer Service : Change status\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "881ab77d-456d-4dac-9411-6998713b0187", + "parentUUID": "2ddace31-4cb7-4c6b-84e4-f2834c03b06b", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "12b034ec-87ab-49dc-97f4-370447de9248", + "title": "FO : Send message to customer service", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - Customer Service : Change status FO : Send message to customer service should open the shop page", + "timedOut": false, + "duration": 474, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_openShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6023cde7-2af0-44b4-9ed6-1dcf6e91d08a", + "parentUUID": "12b034ec-87ab-49dc-97f4-370447de9248", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customer Service : Change status FO : Send message to customer service should go to login page", + "timedOut": false, + "duration": 745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToLoginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "206061f0-ca1c-4cbf-b189-d0b6d52632ed", + "parentUUID": "12b034ec-87ab-49dc-97f4-370447de9248", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Customer Service : Change status FO : Send message to customer service should sign in with default customer", + "timedOut": false, + "duration": 644, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_sighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8493f619-3b04-4d0c-8ec4-f1d63dce9021", + "parentUUID": "12b034ec-87ab-49dc-97f4-370447de9248", + "isHook": false, + "skipped": false + }, + { + "title": "should go to contact us page", + "fullTitle": "BO - Customer Service : Change status FO : Send message to customer service should go to contact us page", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactPage', baseContext)];\n case 1:\n _a.sent();\n // Go to contact us page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Contact us')];\n case 2:\n // Go to contact us page\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8417e8f3-6391-4b99-b709-98dd5a0173cb", + "parentUUID": "12b034ec-87ab-49dc-97f4-370447de9248", + "isHook": false, + "skipped": false + }, + { + "title": "should send message to customer service", + "fullTitle": "BO - Customer Service : Change status FO : Send message to customer service should send message to customer service", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, \"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertSuccess(page)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(contactUs_1.contactUsPage.validationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34f7ec31-20e5-43ee-b1fb-306cfe9d80c8", + "parentUUID": "12b034ec-87ab-49dc-97f4-370447de9248", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6023cde7-2af0-44b4-9ed6-1dcf6e91d08a", + "206061f0-ca1c-4cbf-b189-d0b6d52632ed", + "8493f619-3b04-4d0c-8ec4-f1d63dce9021", + "8417e8f3-6391-4b99-b709-98dd5a0173cb", + "34f7ec31-20e5-43ee-b1fb-306cfe9d80c8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2979, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d8a5ba4a-b2de-404d-b465-85324889d035", + "title": "BO : Change message status and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should login in BO", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "420bc54e-3df0-4b83-88a0-3897cce50110", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3633, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56cc2572-d011-4636-b824-a1714f7bd170", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to view message page", + "timedOut": false, + "duration": 771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToViewMessagePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToViewMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e613c88d-f88d-4eca-9388-7c9291380d56", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Handled'", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should change the order status to 'Handled'", + "timedOut": false, + "duration": 257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_setOrderStatusHandled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setOrderStatus\".concat(test.args.status), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.setStatus(page, test.args.status)];\n case 2:\n newStatus = _a.sent();\n (0, chai_1.expect)(newStatus).to.contains(test.args.statusToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6c5314f-cd86-4682-a156-3420dd394329", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToOrderMessagesPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderMessagesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa79e4a2-f7c5-4d69-9331-79461e34b2ba", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the status color is changed", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should check if the status color is changed", + "timedOut": false, + "duration": 508, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_checkStatusColor0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChanged;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusColor\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.isStatusChanged(page, 1, test.args.status)];\n case 2:\n isChanged = _a.sent();\n (0, chai_1.expect)(isChanged).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "147b1b1a-11ed-489e-9043-c2134e986a6b", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to view message page", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToViewMessagePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToViewMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09c3cc71-7f5b-4fd0-a911-609bdf4fb438", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Re-open'", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should change the order status to 'Re-open'", + "timedOut": false, + "duration": 250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_setOrderStatusRe-open\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setOrderStatus\".concat(test.args.status), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.setStatus(page, test.args.status)];\n case 2:\n newStatus = _a.sent();\n (0, chai_1.expect)(newStatus).to.contains(test.args.statusToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1111cce-a9b3-43ee-8e60-99808331e526", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToOrderMessagesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderMessagesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1eea00c9-7240-4cab-9f5d-629e8079371a", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the status color is changed", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should check if the status color is changed", + "timedOut": false, + "duration": 506, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_checkStatusColor1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChanged;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusColor\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.isStatusChanged(page, 1, test.args.status)];\n case 2:\n isChanged = _a.sent();\n (0, chai_1.expect)(isChanged).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca8c2252-6534-4182-bc36-b5b57c247e86", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to view message page", + "timedOut": false, + "duration": 774, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToViewMessagePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToViewMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f85d0196-ba42-48f7-a628-d7eb3a7591b1", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Pending 1'", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should change the order status to 'Pending 1'", + "timedOut": false, + "duration": 265, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_setOrderStatusPending 1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setOrderStatus\".concat(test.args.status), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.setStatus(page, test.args.status)];\n case 2:\n newStatus = _a.sent();\n (0, chai_1.expect)(newStatus).to.contains(test.args.statusToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fa5531d-528d-40eb-a04a-76da9ee5c922", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToOrderMessagesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderMessagesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "038adb95-957f-415b-83bb-f6cc2d137913", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the status color is changed", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should check if the status color is changed", + "timedOut": false, + "duration": 506, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_checkStatusColor2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChanged;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusColor\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.isStatusChanged(page, 1, test.args.status)];\n case 2:\n isChanged = _a.sent();\n (0, chai_1.expect)(isChanged).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a4c70fe-8c2b-4752-9ddf-24abfd1c0940", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to view message page", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToViewMessagePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToViewMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32f63563-453b-4ac5-a202-9f43543878fd", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Pending 2'", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should change the order status to 'Pending 2'", + "timedOut": false, + "duration": 241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_setOrderStatusPending 2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setOrderStatus\".concat(test.args.status), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.setStatus(page, test.args.status)];\n case 2:\n newStatus = _a.sent();\n (0, chai_1.expect)(newStatus).to.contains(test.args.statusToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9031242c-b6ba-4ab9-9056-ad88481bd98a", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToOrderMessagesPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderMessagesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a35155d-b834-48f1-bbbc-b2d00d0f09d8", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the status color is changed", + "fullTitle": "BO - Customer Service : Change status BO : Change message status and check it should check if the status color is changed", + "timedOut": false, + "duration": 507, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_checkStatusColor3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isChanged;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusColor\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.isStatusChanged(page, 1, test.args.status)];\n case 2:\n isChanged = _a.sent();\n (0, chai_1.expect)(isChanged).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1843015-ecd0-4ce0-a23f-a3bd6b325290", + "parentUUID": "d8a5ba4a-b2de-404d-b465-85324889d035", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "420bc54e-3df0-4b83-88a0-3897cce50110", + "56cc2572-d011-4636-b824-a1714f7bd170", + "e613c88d-f88d-4eca-9388-7c9291380d56", + "b6c5314f-cd86-4682-a156-3420dd394329", + "aa79e4a2-f7c5-4d69-9331-79461e34b2ba", + "147b1b1a-11ed-489e-9043-c2134e986a6b", + "09c3cc71-7f5b-4fd0-a911-609bdf4fb438", + "b1111cce-a9b3-43ee-8e60-99808331e526", + "1eea00c9-7240-4cab-9f5d-629e8079371a", + "ca8c2252-6534-4182-bc36-b5b57c247e86", + "f85d0196-ba42-48f7-a628-d7eb3a7591b1", + "1fa5531d-528d-40eb-a04a-76da9ee5c922", + "038adb95-957f-415b-83bb-f6cc2d137913", + "4a4c70fe-8c2b-4752-9ddf-24abfd1c0940", + "32f63563-453b-4ac5-a202-9f43543878fd", + "9031242c-b6ba-4ab9-9056-ad88481bd98a", + "1a35155d-b834-48f1-bbbc-b2d00d0f09d8", + "c1843015-ecd0-4ce0-a23f-a3bd6b325290" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 26727, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "92826959-5eec-4116-9648-cbfcf847b0ff", + "title": "BO : Forward the message to an existing employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : Change status BO : Forward the message to an existing employee should go to view message page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToViewMessagePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewMessagePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c39e44cb-b72e-4c8c-96bc-3e3671077317", + "parentUUID": "92826959-5eec-4116-9648-cbfcf847b0ff", + "isHook": false, + "skipped": false + }, + { + "title": "should click on forward message button", + "fullTitle": "BO - Customer Service : Change status BO : Forward the message to an existing employee should click on forward message button", + "timedOut": false, + "duration": 255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_clickOnForwardButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnForwardButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.clickOnForwardMessageButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6524f700-2fea-4742-88d0-05f9ad4acd99", + "parentUUID": "92826959-5eec-4116-9648-cbfcf847b0ff", + "isHook": false, + "skipped": false + }, + { + "title": "should forward the message and check the thread", + "fullTitle": "BO - Customer Service : Change status BO : Forward the message to an existing employee should forward the message and check the thread", + "timedOut": false, + "duration": 2613, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_forwardMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var messages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'forwardMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.forwardMessage(page, forwardMessageData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getThreadMessages(page)];\n case 3:\n messages = _a.sent();\n (0, chai_1.expect)(messages)\n .to.contains(\"\".concat(view_1.default.forwardMessageSuccessMessage, \" \").concat(employees_1.default.DefaultEmployee.firstName)\n + \" \".concat(employees_1.default.DefaultEmployee.lastName))\n .and.contains(forwardMessageData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4fb688f-77e0-48da-8e77-87bf6a68a1cc", + "parentUUID": "92826959-5eec-4116-9648-cbfcf847b0ff", + "isHook": false, + "skipped": false + }, + { + "title": "should check orders and messages timeline", + "fullTitle": "BO - Customer Service : Change status BO : Forward the message to an existing employee should check orders and messages timeline", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_checkOrdersAndMessagesForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrdersAndMessagesForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getOrdersAndMessagesTimeline(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains('Orders and messages timeline')\n .and.contains(\"\".concat(view_1.default.forwardMessageSuccessMessage, \" \").concat(employees_1.default.DefaultEmployee.firstName)\n + \" \".concat(employees_1.default.DefaultEmployee.lastName))\n .and.contains(\"Comment: \".concat(forwardMessageData.message));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "046694fc-ba6e-490b-8b82-277fb2b34e84", + "parentUUID": "92826959-5eec-4116-9648-cbfcf847b0ff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c39e44cb-b72e-4c8c-96bc-3e3671077317", + "6524f700-2fea-4742-88d0-05f9ad4acd99", + "e4fb688f-77e0-48da-8e77-87bf6a68a1cc", + "046694fc-ba6e-490b-8b82-277fb2b34e84" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3690, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "44e8fcdb-1080-4760-bde8-119dd1708b60", + "title": "BO : Delete the message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/02_changeStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Change status BO : Delete the message should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_goToOrderMessagesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea06bdcb-a2b9-41b1-b00e-83515a3d0672", + "parentUUID": "44e8fcdb-1080-4760-bde8-119dd1708b60", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "BO - Customer Service : Change status BO : Delete the message should delete the message", + "timedOut": false, + "duration": 447, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_changeStatus_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46c2156f-25c6-4021-8346-e13fb7fd548e", + "parentUUID": "44e8fcdb-1080-4760-bde8-119dd1708b60", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ea06bdcb-a2b9-41b1-b00e-83515a3d0672", + "46c2156f-25c6-4021-8346-e13fb7fd548e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4249, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52d8c66d-6314-4bd7-af0f-1be62b3c37ea", + "title": "BO - Customer Service : Respond to message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service : Respond to message\"", + "fullTitle": "BO - Customer Service : Respond to message \"before all\" hook in \"BO - Customer Service : Respond to message\"", + "timedOut": false, + "duration": 91, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [4 /*yield*/, files_1.default.generateImage(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68b054c9-1c04-454c-b2e6-12a42ea1e241", + "parentUUID": "52d8c66d-6314-4bd7-af0f-1be62b3c37ea", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service : Respond to message\"", + "fullTitle": "BO - Customer Service : Respond to message \"after all\" hook in \"BO - Customer Service : Respond to message\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b8f0ae9f-4b21-4aa9-90c2-08de8de582a8", + "parentUUID": "52d8c66d-6314-4bd7-af0f-1be62b3c37ea", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "3f17681d-5006-41e4-9662-8f5d78db6377", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Customer Service : Respond to message PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 63, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cf7009d-b4ff-468a-853d-cdb85e9514ab", + "parentUUID": "3f17681d-5006-41e4-9662-8f5d78db6377", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Customer Service : Respond to message PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8d1da34b-b9c5-44ca-b941-abbf6f60f42d", + "parentUUID": "3f17681d-5006-41e4-9662-8f5d78db6377", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Respond to message PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02234e76-f855-4a0e-b665-82f7b985729e", + "parentUUID": "3f17681d-5006-41e4-9662-8f5d78db6377", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Customer Service : Respond to message PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 5331, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8458db0-024e-4ffa-a1eb-de3fbf988fe8", + "parentUUID": "3f17681d-5006-41e4-9662-8f5d78db6377", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Customer Service : Respond to message PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "062b621b-35e7-4bab-8767-77b15836eb03", + "parentUUID": "3f17681d-5006-41e4-9662-8f5d78db6377", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "02234e76-f855-4a0e-b665-82f7b985729e", + "e8458db0-024e-4ffa-a1eb-de3fbf988fe8", + "062b621b-35e7-4bab-8767-77b15836eb03" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7752, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bee90fa8-6531-4845-b4b9-a46180e9b6ea", + "title": "FO : Send message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - Customer Service : Respond to message FO : Send message should open the shop page", + "timedOut": false, + "duration": 475, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_openShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40d4b4d3-6e43-4ea5-9f3a-9bbac93f90eb", + "parentUUID": "bee90fa8-6531-4845-b4b9-a46180e9b6ea", + "isHook": false, + "skipped": false + }, + { + "title": "should go to contact us page", + "fullTitle": "BO - Customer Service : Respond to message FO : Send message should go to contact us page", + "timedOut": false, + "duration": 726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_goOnContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goOnContactPage', baseContext)];\n case 1:\n _a.sent();\n // Go to contact us page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Contact us')];\n case 2:\n // Go to contact us page\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68de02ac-0872-4ce3-9cc6-7b81daa51aa5", + "parentUUID": "bee90fa8-6531-4845-b4b9-a46180e9b6ea", + "isHook": false, + "skipped": false + }, + { + "title": "should send message to customer service", + "fullTitle": "BO - Customer Service : Respond to message FO : Send message should send message to customer service", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, \"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertSuccess(page)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(contactUs_1.contactUsPage.validationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94f15ed7-a626-4c89-89ae-349ca87c6709", + "parentUUID": "bee90fa8-6531-4845-b4b9-a46180e9b6ea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "40d4b4d3-6e43-4ea5-9f3a-9bbac93f90eb", + "68de02ac-0872-4ce3-9cc6-7b81daa51aa5", + "94f15ed7-a626-4c89-89ae-349ca87c6709" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1566, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "46b96890-57ae-43cd-837c-68c12571409f", + "title": "BO : Respond to message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Respond to message BO : Respond to message should login in BO", + "timedOut": false, + "duration": 1674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e0a446c-c601-4c40-953f-eab70d173120", + "parentUUID": "46b96890-57ae-43cd-837c-68c12571409f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Respond to message BO : Respond to message should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73f2d49d-67e5-487e-9750-746bdb9c0077", + "parentUUID": "46b96890-57ae-43cd-837c-68c12571409f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : Respond to message BO : Respond to message should go to view message page", + "timedOut": false, + "duration": 775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_goToViewMessagePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewMessagePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28603b26-db85-425c-8624-3b2eefd9cd4f", + "parentUUID": "46b96890-57ae-43cd-837c-68c12571409f", + "isHook": false, + "skipped": false + }, + { + "title": "should add a response and check the thread", + "fullTitle": "BO - Customer Service : Respond to message BO : Respond to message should add a response and check the thread", + "timedOut": false, + "duration": 504, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_respondToMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var messages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'respondToMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.addResponse(page, answerMessage)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getThreadMessages(page)];\n case 3:\n messages = _a.sent();\n (0, chai_1.expect)(messages).to.contains(answerMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8eb8d6fb-2aa9-4298-9acf-ff58d8280a48", + "parentUUID": "46b96890-57ae-43cd-837c-68c12571409f", + "isHook": false, + "skipped": false + }, + { + "title": "should check orders and messages timeline", + "fullTitle": "BO - Customer Service : Respond to message BO : Respond to message should check orders and messages timeline", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_checkOrdersAndMessagesForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrdersAndMessagesForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getOrdersAndMessagesTimeline(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains(answerMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3b2c9f8-5d37-4018-a2d3-6745b5394eab", + "parentUUID": "46b96890-57ae-43cd-837c-68c12571409f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is in mailbox", + "fullTitle": "BO - Customer Service : Respond to message BO : Respond to message should check that the confirmation mail is in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_checkMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains(\"[\".concat(global.INSTALL.SHOP_NAME, \"] An answer to your message\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d78d3eae-437d-4bcc-a024-685fc6e50695", + "parentUUID": "46b96890-57ae-43cd-837c-68c12571409f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3e0a446c-c601-4c40-953f-eab70d173120", + "73f2d49d-67e5-487e-9750-746bdb9c0077", + "28603b26-db85-425c-8624-3b2eefd9cd4f", + "8eb8d6fb-2aa9-4298-9acf-ff58d8280a48", + "a3b2c9f8-5d37-4018-a2d3-6745b5394eab", + "d78d3eae-437d-4bcc-a024-685fc6e50695" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6591, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f1b87909-d40a-4fdc-a81c-1525a68950b8", + "title": "BO : Delete the message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Respond to message BO : Delete the message should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_goToOrderMessagesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f3a75cf-ce5f-4606-b9d6-0ae3bb11d160", + "parentUUID": "f1b87909-d40a-4fdc-a81c-1525a68950b8", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "BO - Customer Service : Respond to message BO : Delete the message should delete the message", + "timedOut": false, + "duration": 458, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe0c3a7d-d2c0-413d-bfa1-ff5aa7cd6dc4", + "parentUUID": "f1b87909-d40a-4fdc-a81c-1525a68950b8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3f3a75cf-ce5f-4606-b9d6-0ae3bb11d160", + "fe0c3a7d-d2c0-413d-bfa1-ff5aa7cd6dc4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4258, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e9bff4d3-4f96-486d-b743-b6b8336c9c40", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/03_respondToMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Customer Service : Respond to message POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1905a6b-7754-4b2e-b0e8-78223c7cb7e9", + "parentUUID": "e9bff4d3-4f96-486d-b743-b6b8336c9c40", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Customer Service : Respond to message POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "666b7c40-f6a1-4d3b-ba9b-356f92889c0a", + "parentUUID": "e9bff4d3-4f96-486d-b743-b6b8336c9c40", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Respond to message POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "042e36fd-b8e1-4e3d-a36d-b8f5484bccb6", + "parentUUID": "e9bff4d3-4f96-486d-b743-b6b8336c9c40", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Customer Service : Respond to message POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f852c6b-ff21-4794-9b17-d7f104c98082", + "parentUUID": "e9bff4d3-4f96-486d-b743-b6b8336c9c40", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Customer Service : Respond to message POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_respondToMessage_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4047605c-85d4-4c89-8d13-3cbf8003fc66", + "parentUUID": "e9bff4d3-4f96-486d-b743-b6b8336c9c40", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "042e36fd-b8e1-4e3d-a36d-b8f5484bccb6", + "9f852c6b-ff21-4794-9b17-d7f104c98082", + "4047605c-85d4-4c89-8d13-3cbf8003fc66" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7049, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "140b12a8-21c3-428b-95a9-9edea04f2697", + "title": "BO - Customer Service : Contact options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service : Contact options\"", + "fullTitle": "BO - Customer Service : Contact options \"before all\" hook in \"BO - Customer Service : Contact options\"", + "timedOut": false, + "duration": 85, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.generateImage(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdd7c663-52c6-4b9b-9c7c-c5ccd65e5681", + "parentUUID": "140b12a8-21c3-428b-95a9-9edea04f2697", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service : Contact options\"", + "fullTitle": "BO - Customer Service : Contact options \"after all\" hook in \"BO - Customer Service : Contact options\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "660440e6-5953-435f-b7d1-ab2a1f120a86", + "parentUUID": "140b12a8-21c3-428b-95a9-9edea04f2697", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "86b105bd-a606-46f9-bb60-8489bd80901b", + "title": "BO : Update default message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Contact options BO : Update default message should login in BO", + "timedOut": false, + "duration": 1779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d126a984-2fa2-412f-86e8-19e729d7392e", + "parentUUID": "86b105bd-a606-46f9-bb60-8489bd80901b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Contact options BO : Update default message should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3623, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goToCustomerServicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerServicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4f74714-ba44-42ab-90fa-c784db2f9a36", + "parentUUID": "86b105bd-a606-46f9-bb60-8489bd80901b", + "isHook": false, + "skipped": false + }, + { + "title": "should update default message", + "fullTitle": "BO - Customer Service : Contact options BO : Update default message should update default message", + "timedOut": false, + "duration": 321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_updateDefaultMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateDefaultMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.setDefaultMessage(page, 'Test default message')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerService_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8c9549d-6b61-4972-be5a-b455f1a47b51", + "parentUUID": "86b105bd-a606-46f9-bb60-8489bd80901b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d126a984-2fa2-412f-86e8-19e729d7392e", + "b4f74714-ba44-42ab-90fa-c784db2f9a36", + "a8c9549d-6b61-4972-be5a-b455f1a47b51" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5723, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ade1117f-045e-4396-bb4c-4e8dc703829a", + "title": "FO : Send message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Customer Service : Contact options FO : Send message should go to FO page", + "timedOut": false, + "duration": 1051, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goToFoToOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47f4eb86-0913-4811-86fa-6854e8c1d58e", + "parentUUID": "ade1117f-045e-4396-bb4c-4e8dc703829a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to contact us page", + "fullTitle": "BO - Customer Service : Contact options FO : Send message should go to contact us page", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goToContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactPage', baseContext)];\n case 1:\n _a.sent();\n // Go to contact us page\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Contact us')];\n case 2:\n // Go to contact us page\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "189f2369-4975-4e85-ac82-127997750e28", + "parentUUID": "ade1117f-045e-4396-bb4c-4e8dc703829a", + "isHook": false, + "skipped": false + }, + { + "title": "should send message to customer service then close the page", + "fullTitle": "BO - Customer Service : Contact options FO : Send message should send message to customer service then close the page", + "timedOut": false, + "duration": 368, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, \"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertSuccess(page)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(contactUs_1.contactUsPage.validationMessage);\n return [4 /*yield*/, contactUs_1.contactUsPage.closePage(browserContext, page, 0)];\n case 4:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5ee2825-c494-420c-a959-220a176032ff", + "parentUUID": "ade1117f-045e-4396-bb4c-4e8dc703829a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "47f4eb86-0913-4811-86fa-6854e8c1d58e", + "189f2369-4975-4e85-ac82-127997750e28", + "e5ee2825-c494-420c-a959-220a176032ff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2128, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9a8370d6-fa59-409d-901b-1b673822757e", + "title": "BO : Check default message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : Contact options BO : Check default message should go to view message page", + "timedOut": false, + "duration": 995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goToViewMessagePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewMessagePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b4c90a0-5160-4cd0-8c20-bd87f0065104", + "parentUUID": "9a8370d6-fa59-409d-901b-1b673822757e", + "isHook": false, + "skipped": false + }, + { + "title": "should check your answer form", + "fullTitle": "BO - Customer Service : Contact options BO : Check default message should check your answer form", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_checkYourAnswerForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var formContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkYourAnswerForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getYourAnswerFormContent(page)];\n case 2:\n formContent = _a.sent();\n (0, chai_1.expect)(formContent).to.contains('Test default message');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5645e62e-2fab-489f-8f02-3aa37676ca26", + "parentUUID": "9a8370d6-fa59-409d-901b-1b673822757e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Contact options BO : Check default message should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5332efa7-97d4-4814-b5b7-ec56cfaa6374", + "parentUUID": "9a8370d6-fa59-409d-901b-1b673822757e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to default message", + "fullTitle": "BO - Customer Service : Contact options BO : Check default message should go back to default message", + "timedOut": false, + "duration": 307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goBackToDefaultMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDefaultMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.setDefaultMessage(page, 'Dear Customer,\\n\\n Regards,\\nCustomer service')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerService_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a38989b5-de67-4685-a629-b0cb99f9889c", + "parentUUID": "9a8370d6-fa59-409d-901b-1b673822757e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b4c90a0-5160-4cd0-8c20-bd87f0065104", + "5645e62e-2fab-489f-8f02-3aa37676ca26", + "5332efa7-97d4-4814-b5b7-ec56cfaa6374", + "a38989b5-de67-4685-a629-b0cb99f9889c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5124, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "title": "BO/FO : Enable/Disable allow file uploading and check in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should disable Allow file uploading", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should disable Allow file uploading", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_disableFileUploading\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"FileUploading\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.allowFileUploading(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerService_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03e05f74-c305-42d0-a8c1-f53d7f68a49a", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should view my shop", + "timedOut": false, + "duration": 984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1cf6364-b2cb-4a50-9c83-9cb80aa2f7c7", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to contact us page", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should go to contact us page", + "timedOut": false, + "duration": 700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goToContactUsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToContactUsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Contact us')];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41fb7bf4-7d0d-48d1-9fe5-d24361e5b909", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of attachment input in contact us form", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should check the existence of attachment input in contact us form", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_checkUploadFile0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkUploadFile\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.isAttachmentInputVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e9dc166-a653-4112-9e90-64218e2ac4d5", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8f9fb94-a7c2-4d68-b061-33719d51638b", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Allow file uploading", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should enable Allow file uploading", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_enableFileUploading\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"FileUploading\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.allowFileUploading(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerService_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30a5ebcb-d5e6-4d3e-b6af-1117ea663a21", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should view my shop", + "timedOut": false, + "duration": 1042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "750ae297-5099-4ea7-b20a-392dbae75aad", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to contact us page", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should go to contact us page", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goToContactUsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToContactUsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Contact us')];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2aadda0-b42e-4f85-8a44-27684ce36994", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of attachment input in contact us form", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should check the existence of attachment input in contact us form", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_checkUploadFile1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkUploadFile\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.isAttachmentInputVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7abad213-8e60-4f34-813f-306bfac7e18e", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Customer Service : Contact options BO/FO : Enable/Disable allow file uploading and check in FO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e40f04a3-ef22-4df9-812d-b66758b55356", + "parentUUID": "5fa210a8-d014-4f0d-8885-a01c3a14950d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "03e05f74-c305-42d0-a8c1-f53d7f68a49a", + "b1cf6364-b2cb-4a50-9c83-9cb80aa2f7c7", + "41fb7bf4-7d0d-48d1-9fe5-d24361e5b909", + "6e9dc166-a653-4112-9e90-64218e2ac4d5", + "c8f9fb94-a7c2-4d68-b061-33719d51638b", + "30a5ebcb-d5e6-4d3e-b6af-1117ea663a21", + "750ae297-5099-4ea7-b20a-392dbae75aad", + "d2aadda0-b42e-4f85-8a44-27684ce36994", + "7abad213-8e60-4f34-813f-306bfac7e18e", + "e40f04a3-ef22-4df9-812d-b66758b55356" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5107, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7b08b918-8b68-4a17-9243-629c635da8b7", + "title": "BO : Delete the order message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/04_contactOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the message", + "fullTitle": "BO - Customer Service : Contact options BO : Delete the order message should delete the message", + "timedOut": false, + "duration": 429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_contactOptions_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08fd5b19-af87-4033-be82-9d0cd95326f2", + "parentUUID": "7b08b918-8b68-4a17-9243-629c635da8b7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "08fd5b19-af87-4033-be82-9d0cd95326f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 429, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "edc6266c-3f15-41cc-8aa4-6b4d2a114678", + "title": "BO - Customer Service : Customer service options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/05_customerServiceOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/05_customerServiceOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service : Customer service options\"", + "fullTitle": "BO - Customer Service : Customer service options \"before all\" hook in \"BO - Customer Service : Customer service options\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4277619d-fee8-4fe3-b940-fcaf1da00213", + "parentUUID": "edc6266c-3f15-41cc-8aa4-6b4d2a114678", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service : Customer service options\"", + "fullTitle": "BO - Customer Service : Customer service options \"after all\" hook in \"BO - Customer Service : Customer service options\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1d27a364-b4a6-483e-a0a5-b49f05efd790", + "parentUUID": "edc6266c-3f15-41cc-8aa4-6b4d2a114678", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Customer service options should login in BO", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "800f1c8a-4f77-4d16-985b-3ea4c3d5a1f1", + "parentUUID": "edc6266c-3f15-41cc-8aa4-6b4d2a114678", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Customer service options should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_customerServiceOptions_goToCustomerServicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerServicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a16c10e4-a5ae-4edf-9fd6-97b27cc8edac", + "parentUUID": "edc6266c-3f15-41cc-8aa4-6b4d2a114678", + "isHook": false, + "skipped": false + }, + { + "title": "should set customer service options", + "fullTitle": "BO - Customer Service : Customer service options should set customer service options", + "timedOut": false, + "duration": 508, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_customerServiceOptions_setOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.setCustomerServiceOptions(page, optionsData)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(customerService_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01688645-01d3-485d-a47c-034cf10aea18", + "parentUUID": "edc6266c-3f15-41cc-8aa4-6b4d2a114678", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new block Sync is visible", + "fullTitle": "BO - Customer Service : Customer service options should check that the new block Sync is visible", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_customerServiceOptions_checkSyncBlockVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSyncBlockVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.isRunSyncButtonVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1576d6e-2fe5-4077-8793-edd8d988c355", + "parentUUID": "edc6266c-3f15-41cc-8aa4-6b4d2a114678", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "800f1c8a-4f77-4d16-985b-3ea4c3d5a1f1", + "a16c10e4-a5ae-4edf-9fd6-97b27cc8edac", + "01688645-01d3-485d-a47c-034cf10aea18", + "b1576d6e-2fe5-4077-8793-edd8d988c355" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5843, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb5b20bf-6d6a-4f25-83c1-fae4d788fbe6", + "title": "BO - Customer Service : Forward message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service : Forward message\"", + "fullTitle": "BO - Customer Service : Forward message \"before all\" hook in \"BO - Customer Service : Forward message\"", + "timedOut": false, + "duration": 85, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [4 /*yield*/, files_1.default.generateImage(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a96ead2c-df4f-4ec0-bab9-0504b9ce72a5", + "parentUUID": "bb5b20bf-6d6a-4f25-83c1-fae4d788fbe6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service : Forward message\"", + "fullTitle": "BO - Customer Service : Forward message \"after all\" hook in \"BO - Customer Service : Forward message\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".jpg\"))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d1e33014-68ed-4f81-a4aa-e75d3f4d74b4", + "parentUUID": "bb5b20bf-6d6a-4f25-83c1-fae4d788fbe6", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a293a782-872c-47ea-a32c-5e19a5fc5208", + "title": "PRE-TEST: Create employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create employee\"", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Create employee \"before all\" hook in \"PRE-TEST: Create employee\"", + "timedOut": false, + "duration": 61, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f6f6216-f3cd-4561-be89-868b435fdd12", + "parentUUID": "a293a782-872c-47ea-a32c-5e19a5fc5208", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create employee\"", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Create employee \"after all\" hook in \"PRE-TEST: Create employee\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ef374c29-2232-4ee4-bde4-97c06eac591c", + "parentUUID": "a293a782-872c-47ea-a32c-5e19a5fc5208", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Create employee should login in BO", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6901d21c-c6a9-4964-aba9-904a12d1262c", + "parentUUID": "a293a782-872c-47ea-a32c-5e19a5fc5208", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Create employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_preTest_1_goToTeamPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTeamPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74b2632b-0e2e-4ffc-8f73-356a723c8433", + "parentUUID": "a293a782-872c-47ea-a32c-5e19a5fc5208", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Create employee should reset all filters and get number of employees", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_preTest_1_resetFilterEmployeeTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterEmployeeTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27bf5bfd-182f-4784-bf8c-fba889c746be", + "parentUUID": "a293a782-872c-47ea-a32c-5e19a5fc5208", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Create employee should go to add new employee page", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_preTest_1_goToNewEmployeePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewEmployeePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fab83f3-0855-4348-a410-854682c9491c", + "parentUUID": "a293a782-872c-47ea-a32c-5e19a5fc5208", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee and check result", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Create employee should create employee and check result", + "timedOut": false, + "duration": 866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_preTest_1_createEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d233cf4b-ae11-4d33-8077-253757c1c204", + "parentUUID": "a293a782-872c-47ea-a32c-5e19a5fc5208", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6901d21c-c6a9-4964-aba9-904a12d1262c", + "74b2632b-0e2e-4ffc-8f73-356a723c8433", + "27bf5bfd-182f-4784-bf8c-fba889c746be", + "3fab83f3-0855-4348-a410-854682c9491c", + "d233cf4b-ae11-4d33-8077-253757c1c204" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9369, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dcf24260-32e9-4fb3-b375-11172218e252", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2111909d-d727-48d1-bf2a-199f7db7ee00", + "parentUUID": "dcf24260-32e9-4fb3-b375-11172218e252", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "024cd9fb-5cd9-4e90-8b54-fdbf38d6492e", + "parentUUID": "dcf24260-32e9-4fb3-b375-11172218e252", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1742, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e62cf5c-4e76-4231-ac3f-8d1af9efb8dc", + "parentUUID": "dcf24260-32e9-4fb3-b375-11172218e252", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_preTest_2_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0d79a07-7082-40e9-a90e-b1eb9060400a", + "parentUUID": "dcf24260-32e9-4fb3-b375-11172218e252", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Customer Service : Forward message PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 574, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_preTest_2_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "663fd96b-71a9-4e29-b7f7-408e9ee0fe59", + "parentUUID": "dcf24260-32e9-4fb3-b375-11172218e252", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3e62cf5c-4e76-4231-ac3f-8d1af9efb8dc", + "e0d79a07-7082-40e9-a90e-b1eb9060400a", + "663fd96b-71a9-4e29-b7f7-408e9ee0fe59" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7184, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "title": "FO: Send message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should open the shop page", + "timedOut": false, + "duration": 468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_openShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4096696-74cd-4ab2-8d2a-10cf07d35fd6", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should go to login page", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_goToFOLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36ef8a8e-e43b-444f-82f7-c329e29d606e", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in FO", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should sign in FO", + "timedOut": false, + "duration": 536, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f6dfb5d-5f8f-4ce5-844f-8d3e35274052", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should go to home page", + "timedOut": false, + "duration": 778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4403d590-d820-49c0-8a52-b5608e0523bd", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should add first product to cart and Proceed to checkout", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should add first product to cart and Proceed to checkout", + "timedOut": false, + "duration": 2032, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88b630c9-be3f-4812-b61d-dcce896c2f8e", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and check Step Address", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should proceed to checkout and check Step Address", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_checkAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInformationComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isStepCompleted(page, checkout_1.default.personalInformationStepForm)];\n case 3:\n isStepPersonalInformationComplete = _a.sent();\n (0, chai_1.expect)(isStepPersonalInformationComplete, 'Step Personal information is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "effb3d80-3af3-4637-b242-91de8c9188fc", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Address and go to Delivery Step", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should validate Step Address and go to Delivery Step", + "timedOut": false, + "duration": 281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_checkDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d163629f-a0d5-4071-8e1a-f461ab1e2f2a", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Delivery and go to Payment Step", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should validate Step Delivery and go to Payment Step", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9879bf9-c6ca-492a-bd29-de6237e93375", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should Pay and confirm order", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should Pay and confirm order", + "timedOut": false, + "duration": 1387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8926829-3ab2-4569-9089-264058540143", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should go to order history page", + "timedOut": false, + "duration": 1423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcf34260-a20f-4716-b821-2d7c84dfdfc2", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "Go to order details ", + "fullTitle": "BO - Customer Service : Forward message FO: Send message Go to order details ", + "timedOut": false, + "duration": 1735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_goToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.addAMessage(page, messageOption, messageSend)];\n case 3:\n successMessageText = _a.sent();\n (0, chai_1.expect)(successMessageText).to.equal(orderDetails_1.default.successMessageText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a58e76d8-2f47-42b7-bb43-f166b7ba4cd0", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox", + "fullTitle": "BO - Customer Service : Forward message FO: Send message should check if the mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_checkMailIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMailIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains('Message from a custom');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2894953-aafb-402a-85e7-d5a91de905bc", + "parentUUID": "fb07fd18-7f9c-42f5-ba61-8f2ea6bb2ef5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f4096696-74cd-4ab2-8d2a-10cf07d35fd6", + "36ef8a8e-e43b-444f-82f7-c329e29d606e", + "8f6dfb5d-5f8f-4ce5-844f-8d3e35274052", + "4403d590-d820-49c0-8a52-b5608e0523bd", + "88b630c9-be3f-4812-b61d-dcce896c2f8e", + "effb3d80-3af3-4637-b242-91de8c9188fc", + "d163629f-a0d5-4071-8e1a-f461ab1e2f2a", + "b9879bf9-c6ca-492a-bd29-de6237e93375", + "f8926829-3ab2-4569-9089-264058540143", + "fcf34260-a20f-4716-b821-2d7c84dfdfc2", + "a58e76d8-2f47-42b7-bb43-f166b7ba4cd0", + "d2894953-aafb-402a-85e7-d5a91de905bc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10962, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c672414b-24fd-4c31-bfc3-e9c2a122ae51", + "title": "BO: Forward message to another employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to another employee should login in BO", + "timedOut": false, + "duration": 1672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "629c105e-1ebe-47db-83ad-93c2c441146b", + "parentUUID": "c672414b-24fd-4c31-bfc3-e9c2a122ae51", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to another employee should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6510c04-9615-4a1c-bc94-56e0e4d276cb", + "parentUUID": "c672414b-24fd-4c31-bfc3-e9c2a122ae51", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view message page", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to another employee should go to view message page", + "timedOut": false, + "duration": 770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_goToViewMessagePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewMessagePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9ad1140-bf06-470d-8f77-7a8e898d2ed2", + "parentUUID": "c672414b-24fd-4c31-bfc3-e9c2a122ae51", + "isHook": false, + "skipped": false + }, + { + "title": "should click on forward message button", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to another employee should click on forward message button", + "timedOut": false, + "duration": 261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_clickOnForwardButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnForwardButton1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.clickOnForwardMessageButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e19fbbdc-ba2a-4239-baf3-d7a8ce636138", + "parentUUID": "c672414b-24fd-4c31-bfc3-e9c2a122ae51", + "isHook": false, + "skipped": false + }, + { + "title": "should forward the message and check the thread", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to another employee should forward the message and check the thread", + "timedOut": false, + "duration": 2410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_forwardMessage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var messages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'forwardMessage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.forwardMessage(page, forwardMessageData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getThreadMessages(page)];\n case 3:\n messages = _a.sent();\n (0, chai_1.expect)(messages)\n .to.contains(\"\".concat(view_1.default.forwardMessageSuccessMessage, \" \").concat(employeeData.firstName)\n + \" \".concat(employeeData.lastName))\n .and.contains(forwardMessageData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b19cde87-cf67-4087-88c7-8cc769a3aa01", + "parentUUID": "c672414b-24fd-4c31-bfc3-e9c2a122ae51", + "isHook": false, + "skipped": false + }, + { + "title": "should check orders and messages timeline", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to another employee should check orders and messages timeline", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_checkOrdersAndMessagesForm1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrdersAndMessagesForm1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getOrdersAndMessagesTimeline(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains('Orders and messages timeline')\n .and.contains(\"\".concat(view_1.default.forwardMessageSuccessMessage, \" \").concat(employeeData.firstName)\n + \" \".concat(employeeData.lastName))\n .and.contains(\"Comment: \".concat(forwardMessageData.message));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db454489-720c-4f34-ac67-2909770e8df8", + "parentUUID": "c672414b-24fd-4c31-bfc3-e9c2a122ae51", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to another employee should check if the mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_checkMailIsInMailbox2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMailIsInMailbox2', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains('Fwd: Customer message');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb3e9b9b-ffb6-49f9-83ce-824f0c1dfdeb", + "parentUUID": "c672414b-24fd-4c31-bfc3-e9c2a122ae51", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "629c105e-1ebe-47db-83ad-93c2c441146b", + "e6510c04-9615-4a1c-bc94-56e0e4d276cb", + "b9ad1140-bf06-470d-8f77-7a8e898d2ed2", + "e19fbbdc-ba2a-4239-baf3-d7a8ce636138", + "b19cde87-cf67-4087-88c7-8cc769a3aa01", + "db454489-720c-4f34-ac67-2909770e8df8", + "fb3e9b9b-ffb6-49f9-83ce-824f0c1dfdeb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8746, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d132bfc6-f58b-4cd6-acd6-b4d4ac724699", + "title": "BO: Forward message to someone else", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on forward message button", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to someone else should click on forward message button", + "timedOut": false, + "duration": 238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_clickOnForwardButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnForwardButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.clickOnForwardMessageButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "205188ec-9191-47ff-8eac-6750be3b7a8f", + "parentUUID": "d132bfc6-f58b-4cd6-acd6-b4d4ac724699", + "isHook": false, + "skipped": false + }, + { + "title": "should forward the message and check the thread", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to someone else should forward the message and check the thread", + "timedOut": false, + "duration": 783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_forwardMessage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var messages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'forwardMessage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.forwardMessage(page, forwardMessageData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getThreadMessages(page)];\n case 3:\n messages = _a.sent();\n (0, chai_1.expect)(messages)\n .to.contains(\"Message forwarded to \".concat(forwardMessageData.emailAddress))\n .and.contains(forwardMessageData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4f66eee-6262-4f06-a802-58b8b1df0abf", + "parentUUID": "d132bfc6-f58b-4cd6-acd6-b4d4ac724699", + "isHook": false, + "skipped": false + }, + { + "title": "should check orders and messages timeline", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to someone else should check orders and messages timeline", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_checkOrdersAndMessagesForm2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrdersAndMessagesForm2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getOrdersAndMessagesTimeline(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains('Orders and messages timeline')\n .and.contains(\"Message forwarded to \".concat(forwardMessageData.emailAddress))\n .and.contains(\"Comment: \".concat(forwardMessageData.message));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c1152a6-ae2c-4195-b1cd-86dcb3ed9676", + "parentUUID": "d132bfc6-f58b-4cd6-acd6-b4d4ac724699", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox", + "fullTitle": "BO - Customer Service : Forward message BO: Forward message to someone else should check if the mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_checkMailIsInMailbox3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMailIsInMailbox3', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains('Fwd: Customer message');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "382de2a3-3280-44bf-a1b1-fee190c7de67", + "parentUUID": "d132bfc6-f58b-4cd6-acd6-b4d4ac724699", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "205188ec-9191-47ff-8eac-6750be3b7a8f", + "d4f66eee-6262-4f06-a802-58b8b1df0abf", + "3c1152a6-ae2c-4195-b1cd-86dcb3ed9676", + "382de2a3-3280-44bf-a1b1-fee190c7de67" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1032, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6d9795e8-a62c-42a9-9e38-7b1ea11282d1", + "title": "BO : Delete the message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Customer Service' page", + "fullTitle": "BO - Customer Service : Forward message BO : Delete the message should go to 'Customer Service > Customer Service' page", + "timedOut": false, + "duration": 3800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_goToOrderMessagesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2ef6ba9-aa45-4c6a-8ab7-81d919fe51be", + "parentUUID": "6d9795e8-a62c-42a9-9e38-7b1ea11282d1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "BO - Customer Service : Forward message BO : Delete the message should delete the message", + "timedOut": false, + "duration": 436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d14ca90-879f-4388-b0f1-8edafa556092", + "parentUUID": "6d9795e8-a62c-42a9-9e38-7b1ea11282d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a2ef6ba9-aa45-4c6a-8ab7-81d919fe51be", + "0d14ca90-879f-4388-b0f1-8edafa556092" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4236, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2e2df620-9e79-4663-bb58-d7f9363b6d9e", + "title": "POST-TEST: Delete employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete employee\"", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Delete employee \"before all\" hook in \"POST-TEST: Delete employee\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22f0b2e3-e2ee-4f48-a406-0b1ef72d9770", + "parentUUID": "2e2df620-9e79-4663-bb58-d7f9363b6d9e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete employee\"", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Delete employee \"after all\" hook in \"POST-TEST: Delete employee\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6edbf223-952f-4f6b-9ecf-ab83ba4796d5", + "parentUUID": "2e2df620-9e79-4663-bb58-d7f9363b6d9e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Delete employee should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a451ac0-3fa4-4511-953c-c9eb8140285c", + "parentUUID": "2e2df620-9e79-4663-bb58-d7f9363b6d9e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Delete employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_postTest_1_goToEmployeesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "471ef41e-801c-49ea-9417-f4d0f2759429", + "parentUUID": "2e2df620-9e79-4663-bb58-d7f9363b6d9e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of employees by email", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Delete employee should filter list of employees by email", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_postTest_1_filterEmployeesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmployeesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', employeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(employeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a7a4083-2697-423a-87ca-a6553d728e35", + "parentUUID": "2e2df620-9e79-4663-bb58-d7f9363b6d9e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employee", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Delete employee should delete employee", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_postTest_1_deleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteEmployee(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de7d56bb-6577-41d4-8f7a-ef67b8e73600", + "parentUUID": "2e2df620-9e79-4663-bb58-d7f9363b6d9e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of employees", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Delete employee should reset filter and check the number of employees", + "timedOut": false, + "duration": 859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_postTest_1_resetAfterDeleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a53caed0-4c83-4b4f-87b7-0a2a5baa539e", + "parentUUID": "2e2df620-9e79-4663-bb58-d7f9363b6d9e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5a451ac0-3fa4-4511-953c-c9eb8140285c", + "471ef41e-801c-49ea-9417-f4d0f2759429", + "6a7a4083-2697-423a-87ca-a6553d728e35", + "de7d56bb-6577-41d4-8f7a-ef67b8e73600", + "a53caed0-4c83-4b4f-87b7-0a2a5baa539e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8367, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "675e09f3-a357-43e1-9541-e28b8e67819c", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/01_customerService/06_forwardMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07c3bf29-c7d1-40e7-b87d-fc1dc8543187", + "parentUUID": "675e09f3-a357-43e1-9541-e28b8e67819c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cbfd36e3-2150-409a-8b74-b0959c7eb4b2", + "parentUUID": "675e09f3-a357-43e1-9541-e28b8e67819c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1382e7d9-e96c-47f1-aac9-537a37464f34", + "parentUUID": "675e09f3-a357-43e1-9541-e28b8e67819c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41d62537-eae0-44a4-997a-743d474afc03", + "parentUUID": "675e09f3-a357-43e1-9541-e28b8e67819c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Customer Service : Forward message POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_customerService_forwardMessage_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29dc6f50-cd67-4597-ae9f-f8ee903fc095", + "parentUUID": "675e09f3-a357-43e1-9541-e28b8e67819c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1382e7d9-e96c-47f1-aac9-537a37464f34", + "41d62537-eae0-44a4-997a-743d474afc03", + "29dc6f50-cd67-4597-ae9f-f8ee903fc095" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7007, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "803ef7a6-bd60-4b05-81c6-c4e002720929", + "title": "BO - Customer Service - Order Messages : CRUD order message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/01_CRUDOrderMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/01_CRUDOrderMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service - Order Messages : CRUD order message\"", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message \"before all\" hook in \"BO - Customer Service - Order Messages : CRUD order message\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a21aa18a-9c02-4a5f-a950-282f58850682", + "parentUUID": "803ef7a6-bd60-4b05-81c6-c4e002720929", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service - Order Messages : CRUD order message\"", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message \"after all\" hook in \"BO - Customer Service - Order Messages : CRUD order message\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "790a393d-b639-498c-8b49-6a85d1089591", + "parentUUID": "803ef7a6-bd60-4b05-81c6-c4e002720929", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36b2e97e-df2a-42b9-b958-60afe768d8f4", + "parentUUID": "803ef7a6-bd60-4b05-81c6-c4e002720929", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Order Messages' page", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message should go to 'Customer Service > Order Messages' page", + "timedOut": false, + "duration": 4821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.orderMessagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderMessages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b51e60cb-2e75-4a67-ba4d-c8bf8bdaa3f5", + "parentUUID": "803ef7a6-bd60-4b05-81c6-c4e002720929", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessages = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b96f8676-1836-4862-92c6-d697666499c6", + "parentUUID": "803ef7a6-bd60-4b05-81c6-c4e002720929", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "d0fe4ec0-a05f-4c79-9fc7-6f808049fb7a", + "title": "Create order message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/01_CRUDOrderMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/01_CRUDOrderMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new order message page", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Create order message should go to new order message page", + "timedOut": false, + "duration": 779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_goToNewOrderMessagePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewOrderMessagePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3437fad-96f3-4dc7-b956-5f63af75371c", + "parentUUID": "d0fe4ec0-a05f-4c79-9fc7-6f808049fb7a", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Create order message should create order message", + "timedOut": false, + "duration": 1485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_createOrderMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOrderMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17f01266-3f0c-444d-81eb-991ae913da5f", + "parentUUID": "d0fe4ec0-a05f-4c79-9fc7-6f808049fb7a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters and check number of order messages", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Create order message should reset filters and check number of order messages", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_resetAfterCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterReset).to.be.equal(numberOfOrderMessages + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1cabe15-c509-428a-adf0-6e027d1c0a68", + "parentUUID": "d0fe4ec0-a05f-4c79-9fc7-6f808049fb7a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a3437fad-96f3-4dc7-b956-5f63af75371c", + "17f01266-3f0c-444d-81eb-991ae913da5f", + "f1cabe15-c509-428a-adf0-6e027d1c0a68" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4270, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a6030d21-be4a-4e79-82e9-da04e611fbd0", + "title": "Update order message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/01_CRUDOrderMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/01_CRUDOrderMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'creber'", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Update order message should filter by name 'creber'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.filterTable(page, 'name', createOrderMessageData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrderMessagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterFilter).to.be.at.most(numberOfOrderMessages + 1);\n return [4 /*yield*/, orderMessages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createOrderMessageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41a4b10e-dbd0-4923-b02f-5bd65923a213", + "parentUUID": "a6030d21-be4a-4e79-82e9-da04e611fbd0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit first order message page", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Update order message should go to edit first order message page", + "timedOut": false, + "duration": 764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_goToEditPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.gotoEditOrderMessage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9b60ae7-f933-44e2-a743-a47fc89d45b6", + "parentUUID": "a6030d21-be4a-4e79-82e9-da04e611fbd0", + "isHook": false, + "skipped": false + }, + { + "title": "should edit order message", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Update order message should edit order message", + "timedOut": false, + "duration": 1429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_updateOrderMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, editOrderMessageData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderMessages_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ca9db03-35a7-4d14-bd27-96b8d0e4dcb4", + "parentUUID": "a6030d21-be4a-4e79-82e9-da04e611fbd0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters and check number of order messages", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Update order message should reset filters and check number of order messages", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_resetAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterReset).to.be.equal(numberOfOrderMessages + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19b180f8-d845-4da5-9b34-35684045b447", + "parentUUID": "a6030d21-be4a-4e79-82e9-da04e611fbd0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "41a4b10e-dbd0-4923-b02f-5bd65923a213", + "b9b60ae7-f933-44e2-a743-a47fc89d45b6", + "0ca9db03-35a7-4d14-bd27-96b8d0e4dcb4", + "19b180f8-d845-4da5-9b34-35684045b447" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3348, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "33f52c2d-b8a8-47ed-b5d7-c42a68214747", + "title": "Delete order message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/01_CRUDOrderMessage.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/01_CRUDOrderMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'adicio'", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Delete order message should filter by name 'adicio'", + "timedOut": false, + "duration": 866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.filterTable(page, 'name', editOrderMessageData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrderMessagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterFilter).to.be.at.most(numberOfOrderMessages + 1);\n return [4 /*yield*/, orderMessages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editOrderMessageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36e557d4-2a7c-44ef-a736-efcbc76d6656", + "parentUUID": "33f52c2d-b8a8-47ed-b5d7-c42a68214747", + "isHook": false, + "skipped": false + }, + { + "title": "should delete order message", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Delete order message should delete order message", + "timedOut": false, + "duration": 1410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_deleteOrderMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteOrderMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.deleteOrderMessage(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(orderMessages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "637debfd-0fa0-46dc-9bee-c92a4e6a8698", + "parentUUID": "33f52c2d-b8a8-47ed-b5d7-c42a68214747", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters and check number of order messages", + "fullTitle": "BO - Customer Service - Order Messages : CRUD order message Delete order message should reset filters and check number of order messages", + "timedOut": false, + "duration": 288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_CRUDOrderMessage_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterReset).to.be.equal(numberOfOrderMessages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71dd10bd-b6fd-44de-9fe2-cf54dcae837c", + "parentUUID": "33f52c2d-b8a8-47ed-b5d7-c42a68214747", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "36e557d4-2a7c-44ef-a736-efcbc76d6656", + "637debfd-0fa0-46dc-9bee-c92a4e6a8698", + "71dd10bd-b6fd-44de-9fe2-cf54dcae837c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2564, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "36b2e97e-df2a-42b9-b958-60afe768d8f4", + "b51e60cb-2e75-4a67-ba4d-c8bf8bdaa3f5", + "b96f8676-1836-4862-92c6-d697666499c6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8558, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "08d0edf5-edfc-42c8-ad20-574405b647f7", + "title": "BO - Customer Service - Order Messages : Filter and bulk delete order messages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/02_filterAndBulkDeleteOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/02_filterAndBulkDeleteOrderMessages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service - Order Messages : Filter and bulk delete order messages\"", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages \"before all\" hook in \"BO - Customer Service - Order Messages : Filter and bulk delete order messages\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09b95b6b-c70f-43f0-ab40-32ff15c7da92", + "parentUUID": "08d0edf5-edfc-42c8-ad20-574405b647f7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service - Order Messages : Filter and bulk delete order messages\"", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages \"after all\" hook in \"BO - Customer Service - Order Messages : Filter and bulk delete order messages\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "71ff7974-e16c-43bf-ae61-551df4cb2b9d", + "parentUUID": "08d0edf5-edfc-42c8-ad20-574405b647f7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages should login in BO", + "timedOut": false, + "duration": 1747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56aef6e9-51be-402e-8189-3e15d50c7df7", + "parentUUID": "08d0edf5-edfc-42c8-ad20-574405b647f7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Message > Order Messages' page", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages should go to 'Customer Message > Order Messages' page", + "timedOut": false, + "duration": 4829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.orderMessagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderMessages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9c44094-2f76-42aa-8da7-7b8f66abc84c", + "parentUUID": "08d0edf5-edfc-42c8-ad20-574405b647f7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessages = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ac90cae-cd79-4b3f-a598-2b183b0bfa4f", + "parentUUID": "08d0edf5-edfc-42c8-ad20-574405b647f7", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "ef0f70d0-dd29-4935-9938-7b2dc545df06", + "title": "Create 2 order messages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/02_filterAndBulkDeleteOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/02_filterAndBulkDeleteOrderMessages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Create 2 order messages should go to new order message page", + "timedOut": false, + "duration": 775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_goToNewOrderMessagePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4804d632-d022-412b-9266-53e4111629d3", + "parentUUID": "ef0f70d0-dd29-4935-9938-7b2dc545df06", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Create 2 order messages should create order message", + "timedOut": false, + "duration": 1549, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_createOrderMessage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, test.args.orderMessageToCreate)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c79c6324-bf94-45b8-adeb-bb13304114cb", + "parentUUID": "ef0f70d0-dd29-4935-9938-7b2dc545df06", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Create 2 order messages should go to new order message page", + "timedOut": false, + "duration": 732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_goToNewOrderMessagePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c2d1824-da6f-4924-94fd-aabb676d8428", + "parentUUID": "ef0f70d0-dd29-4935-9938-7b2dc545df06", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Create 2 order messages should create order message", + "timedOut": false, + "duration": 1450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_createOrderMessage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, test.args.orderMessageToCreate)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9be31667-9fb6-4f32-98c9-3e46a2cd8d27", + "parentUUID": "ef0f70d0-dd29-4935-9938-7b2dc545df06", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4804d632-d022-412b-9266-53e4111629d3", + "c79c6324-bf94-45b8-adeb-bb13304114cb", + "8c2d1824-da6f-4924-94fd-aabb676d8428", + "9be31667-9fb6-4f32-98c9-3e46a2cd8d27" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4506, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "917b3b87-f56f-436e-9d41-438ba883fe07", + "title": "Filter order messages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/02_filterAndBulkDeleteOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/02_filterAndBulkDeleteOrderMessages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'todelete2'", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Filter order messages table should filter by name 'todelete2'", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrderMessagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterFilter).to.be.at.most(numberOfOrderMessages + 1);\n return [4 /*yield*/, orderMessages_1.default.getTextColumnFromTable(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f354b932-c22a-4279-8c1c-35d65a37d60e", + "parentUUID": "917b3b87-f56f-436e-9d41-438ba883fe07", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters and check number of order messages", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Filter order messages table should reset filters and check number of order messages", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterReset).to.be.equal(numberOfOrderMessages + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea6ea8eb-bc77-4780-845e-dfaa5ceb478b", + "parentUUID": "917b3b87-f56f-436e-9d41-438ba883fe07", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by message 'Statim sui cognatus vehemens avarus suggero.'", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Filter order messages table should filter by message 'Statim sui cognatus vehemens avarus suggero.'", + "timedOut": false, + "duration": 924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_filterMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrderMessagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterFilter).to.be.at.most(numberOfOrderMessages + 1);\n return [4 /*yield*/, orderMessages_1.default.getTextColumnFromTable(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "201254fa-ba99-4ee2-9a60-ded3f86ec349", + "parentUUID": "917b3b87-f56f-436e-9d41-438ba883fe07", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters and check number of order messages", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Filter order messages table should reset filters and check number of order messages", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_filterMessageReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterReset).to.be.equal(numberOfOrderMessages + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fb58242-cc12-4ed2-8cc4-719931770093", + "parentUUID": "917b3b87-f56f-436e-9d41-438ba883fe07", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f354b932-c22a-4279-8c1c-35d65a37d60e", + "ea6ea8eb-bc77-4780-845e-dfaa5ceb478b", + "201254fa-ba99-4ee2-9a60-ded3f86ec349", + "2fb58242-cc12-4ed2-8cc4-719931770093" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2389, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "86b75147-e9b0-4999-9c01-8a6cc1c00002", + "title": "Delete order messages with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/02_filterAndBulkDeleteOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/02_filterAndBulkDeleteOrderMessages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'todelete'", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Delete order messages with bulk actions should filter by name 'todelete'", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.filterTable(page, 'name', firstOrderMessageData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(firstOrderMessageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b878a35-8fc6-43f3-b950-34eab79d2794", + "parentUUID": "86b75147-e9b0-4999-9c01-8a6cc1c00002", + "isHook": false, + "skipped": false + }, + { + "title": "should delete order messages", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Delete order messages with bulk actions should delete order messages", + "timedOut": false, + "duration": 1446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.deleteWithBulkActions(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(orderMessages_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19ab67d0-8033-413f-897c-0c476f321743", + "parentUUID": "86b75147-e9b0-4999-9c01-8a6cc1c00002", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters and check number of order messages", + "fullTitle": "BO - Customer Service - Order Messages : Filter and bulk delete order messages Delete order messages with bulk actions should reset filters and check number of order messages", + "timedOut": false, + "duration": 281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_filterAndBulkDeleteOrderMessages_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterReset).to.be.equal(numberOfOrderMessages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb2b9c5c-5b9d-40a7-98a4-d216b45a3baa", + "parentUUID": "86b75147-e9b0-4999-9c01-8a6cc1c00002", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9b878a35-8fc6-43f3-b950-34eab79d2794", + "19ab67d0-8033-413f-897c-0c476f321743", + "fb2b9c5c-5b9d-40a7-98a4-d216b45a3baa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2625, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "56aef6e9-51be-402e-8189-3e15d50c7df7", + "d9c44094-2f76-42aa-8da7-7b8f66abc84c", + "5ac90cae-cd79-4b3f-a598-2b183b0bfa4f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8583, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "22779152-85a0-479a-971b-2f7199698465", + "title": "BO - Customer Service - Order Messages : Pagination and sort order messages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service - Order Messages : Pagination and sort order messages\"", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages \"before all\" hook in \"BO - Customer Service - Order Messages : Pagination and sort order messages\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f503eb2-8df0-4ccf-b920-4c2052827428", + "parentUUID": "22779152-85a0-479a-971b-2f7199698465", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service - Order Messages : Pagination and sort order messages\"", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages \"after all\" hook in \"BO - Customer Service - Order Messages : Pagination and sort order messages\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4f938183-4a90-445e-836d-253acb13d08b", + "parentUUID": "22779152-85a0-479a-971b-2f7199698465", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages should login in BO", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "788b2306-8da9-4fb5-8fbc-3953ccc895a5", + "parentUUID": "22779152-85a0-479a-971b-2f7199698465", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Message > Order Messages' page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages should go to 'Customer Message > Order Messages' page", + "timedOut": false, + "duration": 4816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.orderMessagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderMessages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc1085c8-72ae-4909-b2f4-2fdc4fcab06e", + "parentUUID": "22779152-85a0-479a-971b-2f7199698465", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of order messages in BO", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages should reset all filters and get number of order messages in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessages = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a0c67f6-b4fa-4c82-bd33-819dc030a528", + "parentUUID": "22779152-85a0-479a-971b-2f7199698465", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "206648e6-314c-4d0e-9764-373c4f421329", + "title": "Create 10 order messages in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec57b57d-3928-4618-b275-d3f208aa331a", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°1", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°1", + "timedOut": false, + "duration": 1390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07154746-850d-4e6e-9bbe-2d103a97482e", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "133d595c-838b-4ef1-8226-4a6e80df7837", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4aad728-9e88-4927-8bc5-04b576406afa", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°2", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°2", + "timedOut": false, + "duration": 1516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "178cc005-1eee-4dd7-8117-559898f2138d", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2de75da-2132-4419-8158-21679f50e35d", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6db3c64f-892f-415a-8b44-0d8ae8f2864a", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°3", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°3", + "timedOut": false, + "duration": 1447, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d5b0150-f156-4dd2-8f32-00b99a6601fc", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36607423-04a5-4ecf-b7d6-578adcc73e7f", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89da5d00-797a-4bd3-8fe6-01eb803a092b", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°4", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°4", + "timedOut": false, + "duration": 1404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "190a4285-caeb-45be-9812-214ac0adb402", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2b7fee4-28e2-4b36-9824-020943690593", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b26a24ac-f432-47bb-8545-a110ee5edbef", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°5", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°5", + "timedOut": false, + "duration": 1528, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d381d8c-9981-450f-9ad0-ce1c045d117a", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "154f2e78-7083-4403-a9a4-556ed0e9c14b", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "181c26e8-464a-4ef0-82e3-651bce962bb6", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°6", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°6", + "timedOut": false, + "duration": 1561, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c979a37a-319a-4e1a-abfe-0c48c1b548e2", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcc26dd5-a46f-4e6f-b53a-aa6e6a0f9878", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01ee39c0-e32d-48e9-9f23-17ed28d6e989", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°7", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°7", + "timedOut": false, + "duration": 1464, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81d60328-a3b6-4fa8-b8cc-9cc5f442a7db", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "570ba115-77cd-469e-8b10-85e067e8e8e2", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2fa482e-50c7-4f10-828b-aa1dcc44f15d", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°8", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°8", + "timedOut": false, + "duration": 1406, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74200397-e38d-424e-8fd5-f4f120dca6c3", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f50c9fe-6dd7-42cc-8548-fa5828e2888a", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "339a86f8-374d-4f5c-96fd-6d4d32b89b8d", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°9", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°9", + "timedOut": false, + "duration": 1470, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "310e4b43-78e0-40c6-9169-966ad31a2faf", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8f4ea16-0e6b-47da-9d17-18b82c9384db", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new order message page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should go to add new order message page", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_goToNewOrderMessagePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewOrderMessagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.goToAddNewOrderMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95942aff-8afe-4fdf-865e-62340d179945", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should create order message n°10", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should create order message n°10", + "timedOut": false, + "duration": 1553, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_createOrderMessage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addEditOrderMessage(page, createOrderMessageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderMessages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa0ee9f9-6f08-4936-aecd-1b7a6304201e", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order messages number", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Create 10 order messages in BO should check the order messages number", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_checkOrderMessageNumber9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderMessageNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrderMessagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterCreation).to.be.equal(numberOfOrderMessages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7f44d61-bb8d-4859-afc2-a8e83bb83cce", + "parentUUID": "206648e6-314c-4d0e-9764-373c4f421329", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ec57b57d-3928-4618-b275-d3f208aa331a", + "07154746-850d-4e6e-9bbe-2d103a97482e", + "133d595c-838b-4ef1-8226-4a6e80df7837", + "d4aad728-9e88-4927-8bc5-04b576406afa", + "178cc005-1eee-4dd7-8117-559898f2138d", + "c2de75da-2132-4419-8158-21679f50e35d", + "6db3c64f-892f-415a-8b44-0d8ae8f2864a", + "5d5b0150-f156-4dd2-8f32-00b99a6601fc", + "36607423-04a5-4ecf-b7d6-578adcc73e7f", + "89da5d00-797a-4bd3-8fe6-01eb803a092b", + "190a4285-caeb-45be-9812-214ac0adb402", + "e2b7fee4-28e2-4b36-9824-020943690593", + "b26a24ac-f432-47bb-8545-a110ee5edbef", + "0d381d8c-9981-450f-9ad0-ce1c045d117a", + "154f2e78-7083-4403-a9a4-556ed0e9c14b", + "181c26e8-464a-4ef0-82e3-651bce962bb6", + "c979a37a-319a-4e1a-abfe-0c48c1b548e2", + "fcc26dd5-a46f-4e6f-b53a-aa6e6a0f9878", + "01ee39c0-e32d-48e9-9f23-17ed28d6e989", + "81d60328-a3b6-4fa8-b8cc-9cc5f442a7db", + "570ba115-77cd-469e-8b10-85e067e8e8e2", + "d2fa482e-50c7-4f10-828b-aa1dcc44f15d", + "74200397-e38d-424e-8fd5-f4f120dca6c3", + "2f50c9fe-6dd7-42cc-8548-fa5828e2888a", + "339a86f8-374d-4f5c-96fd-6d4d32b89b8d", + "310e4b43-78e0-40c6-9169-966ad31a2faf", + "e8f4ea16-0e6b-47da-9d17-18b82c9384db", + "95942aff-8afe-4fdf-865e-62340d179945", + "aa0ee9f9-6f08-4936-aecd-1b7a6304201e", + "f7f44d61-bb8d-4859-afc2-a8e83bb83cce" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22106, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2bf2e2e4-0c5d-400c-a038-5bd17ba00fc7", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5aa9d63c-0c7e-439f-9955-291531d86789", + "parentUUID": "2bf2e2e4-0c5d-400c-a038-5bd17ba00fc7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Pagination next and previous should click on next", + "timedOut": false, + "duration": 792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "390ce074-bc01-4f90-a886-e8381d900fdd", + "parentUUID": "2bf2e2e4-0c5d-400c-a038-5bd17ba00fc7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Pagination next and previous should click on previous", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83fb61f3-5ef2-458f-9ee9-0b20e3571030", + "parentUUID": "2bf2e2e4-0c5d-400c-a038-5bd17ba00fc7", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90710c89-d8bb-401f-9079-a25bd2cace9c", + "parentUUID": "2bf2e2e4-0c5d-400c-a038-5bd17ba00fc7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5aa9d63c-0c7e-439f-9955-291531d86789", + "390ce074-bc01-4f90-a886-e8381d900fdd", + "83fb61f3-5ef2-458f-9ee9-0b20e3571030", + "90710c89-d8bb-401f-9079-a25bd2cace9c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2093, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "012ae4f7-08b2-4322-9a9e-018fd70ebc19", + "title": "Sort order messages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_order_message' 'desc' and check result", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Sort order messages table should sort by 'id_order_message' 'desc' and check result", + "timedOut": false, + "duration": 2943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_sortByIDDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orderMessages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5939a507-264f-46a9-a390-de71f9c09785", + "parentUUID": "012ae4f7-08b2-4322-9a9e-018fd70ebc19", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Sort order messages table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orderMessages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55c9e450-d238-4cf2-9641-89f6a5e06cf1", + "parentUUID": "012ae4f7-08b2-4322-9a9e-018fd70ebc19", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Sort order messages table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 2908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orderMessages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f0a4cef-e022-4b92-a94f-a9c1266877e2", + "parentUUID": "012ae4f7-08b2-4322-9a9e-018fd70ebc19", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'message' 'desc' and check result", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Sort order messages table should sort by 'message' 'desc' and check result", + "timedOut": false, + "duration": 3705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_sortByMessageDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orderMessages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e50109a-7dd8-4a2d-9f31-eef9a26e954e", + "parentUUID": "012ae4f7-08b2-4322-9a9e-018fd70ebc19", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'message' 'asc' and check result", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Sort order messages table should sort by 'message' 'asc' and check result", + "timedOut": false, + "duration": 2910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_sortByMessageAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orderMessages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05db7745-c7d8-484b-b833-ef118b1a4ec0", + "parentUUID": "012ae4f7-08b2-4322-9a9e-018fd70ebc19", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_order_message' 'asc' and check result", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Sort order messages table should sort by 'id_order_message' 'asc' and check result", + "timedOut": false, + "duration": 2922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_sortByIDAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orderMessages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03787a2e-24da-4981-b9bd-8cf7ebad8536", + "parentUUID": "012ae4f7-08b2-4322-9a9e-018fd70ebc19", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5939a507-264f-46a9-a390-de71f9c09785", + "55c9e450-d238-4cf2-9641-89f6a5e06cf1", + "1f0a4cef-e022-4b92-a94f-a9c1266877e2", + "8e50109a-7dd8-4a2d-9f31-eef9a26e954e", + "05db7745-c7d8-484b-b833-ef118b1a4ec0", + "03787a2e-24da-4981-b9bd-8cf7ebad8536" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19089, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "471a293f-9717-495d-a331-dcd4eb66d786", + "title": "Delete order messages with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "file": "/campaigns/functional/BO/05_customerService/02_orderMessages/03_paginationAndSortOrderMessages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Delete order messages with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.filterTable(page, 'name', 'toSortAndPaginate')];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('toSortAndPaginate');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "607fefcf-5156-4a0c-b275-0ff602e10467", + "parentUUID": "471a293f-9717-495d-a331-dcd4eb66d786", + "isHook": false, + "skipped": false + }, + { + "title": "should delete order messages", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Delete order messages with Bulk Actions should delete order messages", + "timedOut": false, + "duration": 1453, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_BulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'BulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.deleteWithBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(orderMessages_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc2b79ba-0b47-40d6-acf0-3fb4d92b1ed0", + "parentUUID": "471a293f-9717-495d-a331-dcd4eb66d786", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Customer Service - Order Messages : Pagination and sort order messages Delete order messages with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_orderMessages_paginationAndSortOrderMessages_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrderMessagesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrderMessagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrderMessagesAfterFilter).to.be.equal(numberOfOrderMessages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7bbb804-041a-4eb8-8519-43b2684e5476", + "parentUUID": "471a293f-9717-495d-a331-dcd4eb66d786", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "607fefcf-5156-4a0c-b275-0ff602e10467", + "dc2b79ba-0b47-40d6-acf0-3fb4d92b1ed0", + "d7bbb804-041a-4eb8-8519-43b2684e5476" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2650, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "788b2306-8da9-4fb5-8fbc-3953ccc895a5", + "bc1085c8-72ae-4909-b2f4-2fdc4fcab06e", + "2a0c67f6-b4fa-4c82-bd33-819dc030a528" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8566, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "17853f5d-a122-4bff-bd6b-4ce99b7273b0", + "title": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/01_merchandiseReturnOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/01_merchandiseReturnOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options \"before all\" hook in \"BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7218d1a2-e000-49b8-804b-9388cf86d94c", + "parentUUID": "17853f5d-a122-4bff-bd6b-4ce99b7273b0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options \"after all\" hook in \"BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9c72db69-75f5-4e61-9362-35ba46cd5168", + "parentUUID": "17853f5d-a122-4bff-bd6b-4ce99b7273b0", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "title": "PRE-TEST: Create order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/01_merchandiseReturnOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/01_merchandiseReturnOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options PRE-TEST: Create order in FO should go to FO page", + "timedOut": false, + "duration": 1672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7f2f9bb-faf0-42f7-9a2c-fc3c0b410653", + "parentUUID": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options PRE-TEST: Create order in FO should go to login page", + "timedOut": false, + "duration": 679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61426019-029b-4ca9-8f96-30b33b174e41", + "parentUUID": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options PRE-TEST: Create order in FO should sign in with default customer", + "timedOut": false, + "duration": 491, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_sighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6648699-63f5-44a3-a39e-e11149262ceb", + "parentUUID": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options PRE-TEST: Create order in FO should add product to cart", + "timedOut": false, + "duration": 7272, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1b396d7-03ce-4dd9-bd0c-d152c040e929", + "parentUUID": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options PRE-TEST: Create order in FO should go to delivery step", + "timedOut": false, + "duration": 996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25397a7b-3bc0-4f4c-b9cd-ebe5b68c2cc6", + "parentUUID": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options PRE-TEST: Create order in FO should go to payment step", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de81e3fb-5635-43fa-af89-f02e7e2204d2", + "parentUUID": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options PRE-TEST: Create order in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cf9f85d-5fd7-4eed-88d0-25c10599d1a5", + "parentUUID": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options PRE-TEST: Create order in FO should sign out from FO", + "timedOut": false, + "duration": 1190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_sighOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44f73e02-c27c-4f09-881b-2ae0d7788bee", + "parentUUID": "c3eeffcf-2641-467b-82d7-8668fe5872ce", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b7f2f9bb-faf0-42f7-9a2c-fc3c0b410653", + "61426019-029b-4ca9-8f96-30b33b174e41", + "c6648699-63f5-44a3-a39e-e11149262ceb", + "f1b396d7-03ce-4dd9-bd0c-d152c040e929", + "25397a7b-3bc0-4f4c-b9cd-ebe5b68c2cc6", + "de81e3fb-5635-43fa-af89-f02e7e2204d2", + "3cf9f85d-5fd7-4eed-88d0-25c10599d1a5", + "44f73e02-c27c-4f09-881b-2ae0d7788bee" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14097, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "14c18160-df46-48f7-8f7c-3064c782b226", + "title": "BO : Enable/Disable and update the prefix", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/01_merchandiseReturnOptions.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/01_merchandiseReturnOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should login in BO", + "timedOut": false, + "duration": 1633, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6064897e-7635-40dc-b9e7-fd413e1b9cd3", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4597, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToMerchandiseReturnsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73029238-83de-4d7f-b8bb-d5a7efff21e8", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should activate merchandise returns", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should activate merchandise returns", + "timedOut": false, + "duration": 282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_activateReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Returns\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28931c03-b5fb-4094-b6f7-93f56c8881e9", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should update Returns prefix", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should update Returns prefix", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_updateReturnPrefix0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateReturnPrefix\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setReturnsPrefix(page, test.args.prefix)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5c21ec7-674e-4bd2-8cc2-6da36ff48a0c", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToOrdersPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89c6ad85-4b12-4e4d-ae18-c9025e6eb450", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 2394, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_filterOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "552fabdc-9296-40ca-ac9d-467b4b09768a", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to the first order page", + "timedOut": false, + "duration": 1057, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToOrderPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d431c3fd-8f8c-4a96-a82d-3f5e828a088c", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_updateOrderStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4384aeff-c7d2-49a7-a891-35e5770cbe23", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the button 'Return products' is visible", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should check if the button 'Return products' is visible", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_checkReturnProductsButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnProductsButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.isReturnProductsButtonVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8509b732-f8bb-4d84-87f5-0c1ab9a80fad", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to FO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f9ddc72-5fea-4b12-9575-d8480b8bc8f9", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should login", + "timedOut": false, + "duration": 1890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToAccountPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 5:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4e0d284-0d62-4d49-aac7-68738bb1f947", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to 'Order history and details' page", + "timedOut": false, + "duration": 711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToOrderHistoryPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderHistoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e155e47-71b8-451d-b7c5-54c4fb00b41a", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_isOrderReturnFormVisible0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"isOrderReturnFormVisible\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a169b53a-1fcf-496a-97bc-15627b225ce4", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should create a merchandise return", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'test')];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ace33d8-5ac1-49ad-812c-c38ebf57e690", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should verify order return prefix", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should verify order return prefix", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_checkOrderReturnPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumn(page, 'fileName')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.contains(test.args.prefix);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2472794-6e41-4bb8-a1ba-429cf31d0714", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should close the FO page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_closeFoAndGoBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeFoAndGoBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fbd023a0-1a5d-4cb2-86e0-eab3cc69989e", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4589, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToMerchandiseReturnsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5acec63f-8b11-4164-9bbe-8296c477d141", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should deactivate merchandise returns", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should deactivate merchandise returns", + "timedOut": false, + "duration": 265, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_deactivateReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Returns\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d4c2faf-206f-43ce-9e5c-43ebbbdf26f5", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should update Returns prefix", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should update Returns prefix", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_updateReturnPrefix1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateReturnPrefix\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setReturnsPrefix(page, test.args.prefix)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e2936d3-7ea8-4b28-8be2-df49a624f991", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3589, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aefb8377-c11a-4000-bcdc-f2584cd2e160", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 1175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_filterOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50d4a620-0fee-4785-9e1c-f5b951f42f60", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to the first order page", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2094af63-6871-4424-bfd6-3580519b8f24", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_updateOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6c92dfc-e6b2-4e29-ba45-f82b5849ca80", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the button 'Return products' is visible", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should check if the button 'Return products' is visible", + "timedOut": false, + "duration": 2001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_checkReturnProductsButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnProductsButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.isReturnProductsButtonVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7a80198-317a-40a6-8d6c-e726019ce30b", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to FO", + "timedOut": false, + "duration": 1707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8f30bdc-26e6-403a-81fb-02c8e1527bf6", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to account page", + "timedOut": false, + "duration": 694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToAccountPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "979e868e-06a5-4da1-8edc-eb5abb0c6de0", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to 'Order history and details' page", + "timedOut": false, + "duration": 708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_goToOrderHistoryPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderHistoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "426ea717-5dde-4c0e-bb06-075ab81ba30f", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 1734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_isOrderReturnFormVisible1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"isOrderReturnFormVisible\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82ae4d0a-c84b-4120-a598-d98ad42b0a32", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Merchandise return (RMA) options BO : Enable/Disable and update the prefix should close the FO page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_merchandiseReturnOptions_closeFoAndGoBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeFoAndGoBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cf831ae-3244-4321-9dc6-48400c3fa01d", + "parentUUID": "14c18160-df46-48f7-8f7c-3064c782b226", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6064897e-7635-40dc-b9e7-fd413e1b9cd3", + "73029238-83de-4d7f-b8bb-d5a7efff21e8", + "28931c03-b5fb-4094-b6f7-93f56c8881e9", + "e5c21ec7-674e-4bd2-8cc2-6da36ff48a0c", + "89c6ad85-4b12-4e4d-ae18-c9025e6eb450", + "552fabdc-9296-40ca-ac9d-467b4b09768a", + "d431c3fd-8f8c-4a96-a82d-3f5e828a088c", + "4384aeff-c7d2-49a7-a891-35e5770cbe23", + "8509b732-f8bb-4d84-87f5-0c1ab9a80fad", + "6f9ddc72-5fea-4b12-9575-d8480b8bc8f9", + "f4e0d284-0d62-4d49-aac7-68738bb1f947", + "6e155e47-71b8-451d-b7c5-54c4fb00b41a", + "a169b53a-1fcf-496a-97bc-15627b225ce4", + "0ace33d8-5ac1-49ad-812c-c38ebf57e690", + "e2472794-6e41-4bb8-a1ba-429cf31d0714", + "fbd023a0-1a5d-4cb2-86e0-eab3cc69989e", + "5acec63f-8b11-4164-9bbe-8296c477d141", + "5d4c2faf-206f-43ce-9e5c-43ebbbdf26f5", + "4e2936d3-7ea8-4b28-8be2-df49a624f991", + "aefb8377-c11a-4000-bcdc-f2584cd2e160", + "50d4a620-0fee-4785-9e1c-f5b951f42f60", + "2094af63-6871-4424-bfd6-3580519b8f24", + "c6c92dfc-e6b2-4e29-ba45-f82b5849ca80", + "a7a80198-317a-40a6-8d6c-e726019ce30b", + "a8f30bdc-26e6-403a-81fb-02c8e1527bf6", + "979e868e-06a5-4da1-8edc-eb5abb0c6de0", + "426ea717-5dde-4c0e-bb06-075ab81ba30f", + "82ae4d0a-c84b-4120-a598-d98ad42b0a32", + "7cf831ae-3244-4321-9dc6-48400c3fa01d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 40295, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9c59590e-e22e-4e13-822f-3034fcde9cf4", + "title": "BO - Customer Service - Merchandise Returns : Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service - Merchandise Returns : Delete product\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product \"before all\" hook in \"BO - Customer Service - Merchandise Returns : Delete product\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "338f7429-c45c-4421-b242-cd6b54cabccb", + "parentUUID": "9c59590e-e22e-4e13-822f-3034fcde9cf4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service - Merchandise Returns : Delete product\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product \"after all\" hook in \"BO - Customer Service - Merchandise Returns : Delete product\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "25a4c521-8c8e-403c-af2a-7af3d93f7511", + "parentUUID": "9c59590e-e22e-4e13-822f-3034fcde9cf4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2468adb8-52ef-44f9-8120-6b82aabf5126", + "title": "PRE-TEST: Create order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Create order in FO should go to FO page", + "timedOut": false, + "duration": 1649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6176a405-166c-4006-98c6-9fbf8e672a0b", + "parentUUID": "2468adb8-52ef-44f9-8120-6b82aabf5126", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Create order in FO should go to login page", + "timedOut": false, + "duration": 681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86605557-2d29-4e1b-95f9-120427b143ee", + "parentUUID": "2468adb8-52ef-44f9-8120-6b82aabf5126", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Create order in FO should sign in with default customer", + "timedOut": false, + "duration": 511, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_sighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54d6ecb8-0c69-4e8c-914f-63dfa94c4722", + "parentUUID": "2468adb8-52ef-44f9-8120-6b82aabf5126", + "isHook": false, + "skipped": false + }, + { + "title": "should add 3 products to the cart", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Create order in FO should add 3 products to the cart", + "timedOut": false, + "duration": 8455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Add first product to cart by quick view\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 2)];\n case 3:\n // Add first product to cart by quick view\n _a.sent();\n return [4 /*yield*/, home_1.homePage.continueShopping(page)];\n case 4:\n _a.sent();\n // Add second product to cart by quick view\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 2, 2)];\n case 5:\n // Add second product to cart by quick view\n _a.sent();\n return [4 /*yield*/, home_1.homePage.continueShopping(page)];\n case 6:\n _a.sent();\n // Add third product to cart by quick view\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 3, 2)];\n case 7:\n // Add third product to cart by quick view\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 8:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 9:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(6);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b11daba-0782-4ce3-87d2-18c37511c815", + "parentUUID": "2468adb8-52ef-44f9-8120-6b82aabf5126", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Create order in FO should go to delivery step", + "timedOut": false, + "duration": 1069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a48aa99-745c-4d41-868e-104444663fe8", + "parentUUID": "2468adb8-52ef-44f9-8120-6b82aabf5126", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Create order in FO should go to payment step", + "timedOut": false, + "duration": 321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd78be5e-a294-4566-84e7-2ca397587506", + "parentUUID": "2468adb8-52ef-44f9-8120-6b82aabf5126", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Create order in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1614, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9007ec13-fe11-4859-a4e9-c6cb533b0bd2", + "parentUUID": "2468adb8-52ef-44f9-8120-6b82aabf5126", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6176a405-166c-4006-98c6-9fbf8e672a0b", + "86605557-2d29-4e1b-95f9-120427b143ee", + "54d6ecb8-0c69-4e8c-914f-63dfa94c4722", + "4b11daba-0782-4ce3-87d2-18c37511c815", + "5a48aa99-745c-4d41-868e-104444663fe8", + "dd78be5e-a294-4566-84e7-2ca397587506", + "9007ec13-fe11-4859-a4e9-c6cb533b0bd2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14300, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ee185a77-3534-4f0c-8691-0bf011ca30d8", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c128ad10-946c-4b2a-b725-d8e430f62401", + "parentUUID": "ee185a77-3534-4f0c-8691-0bf011ca30d8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c701138b-3f84-4530-98ad-fe9e1eff1652", + "parentUUID": "ee185a77-3534-4f0c-8691-0bf011ca30d8", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0d05b0a-ba5c-4068-bef4-a17407c652ed", + "parentUUID": "ee185a77-3534-4f0c-8691-0bf011ca30d8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c128ad10-946c-4b2a-b725-d8e430f62401", + "c701138b-3f84-4530-98ad-fe9e1eff1652", + "c0d05b0a-ba5c-4068-bef4-a17407c652ed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6579, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8a4e8ca5-1062-4107-b343-e9896ca803e8", + "title": "PRE-TEST: Change order status to 'Shipped'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Change order status to 'Shipped' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4dff587-9466-4097-941f-7a14442c9053", + "parentUUID": "8a4e8ca5-1062-4107-b343-e9896ca803e8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Change order status to 'Shipped' should go to the first order page", + "timedOut": false, + "duration": 1030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7dd6a80-0384-4117-99ba-9323e4112aef", + "parentUUID": "8a4e8ca5-1062-4107-b343-e9896ca803e8", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Change order status to 'Shipped' should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1270, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc0df9b8-76a2-4636-8c29-c64c3635fcff", + "parentUUID": "8a4e8ca5-1062-4107-b343-e9896ca803e8", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the button 'Return products' is visible", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product PRE-TEST: Change order status to 'Shipped' should check if the button 'Return products' is visible", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_checkReturnProductsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnProductsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.isReturnProductsButtonVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f536b97-d104-4edc-b1e7-39abe1a9817b", + "parentUUID": "8a4e8ca5-1062-4107-b343-e9896ca803e8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c4dff587-9466-4097-941f-7a14442c9053", + "c7dd6a80-0384-4117-99ba-9323e4112aef", + "fc0df9b8-76a2-4636-8c29-c64c3635fcff", + "5f536b97-d104-4edc-b1e7-39abe1a9817b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6166, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "57e7cbbb-519d-47c3-bb3b-1593a30c7487", + "title": "FO : Create merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product FO : Create merchandise returns should view my shop", + "timedOut": false, + "duration": 1749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10b7b4df-9540-47c2-80b2-0a0179cfe936", + "parentUUID": "57e7cbbb-519d-47c3-bb3b-1593a30c7487", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product FO : Create merchandise returns should go to account page", + "timedOut": false, + "duration": 713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c40cf634-25fd-4660-a1ba-edcc4e6a8d12", + "parentUUID": "57e7cbbb-519d-47c3-bb3b-1593a30c7487", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product FO : Create merchandise returns should go to 'Order history and details' page", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47121349-e1b4-4c1d-834a-ac4e5e795ca5", + "parentUUID": "57e7cbbb-519d-47c3-bb3b-1593a30c7487", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product FO : Create merchandise returns should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_isOrderReturnFormVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d80e1ec-010d-42a5-954c-3d55516bbccd", + "parentUUID": "57e7cbbb-519d-47c3-bb3b-1593a30c7487", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product FO : Create merchandise returns should create a merchandise return", + "timedOut": false, + "duration": 942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'test', 3, [{ quantity: 1 }, { quantity: 1 }, { quantity: 2 }])];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59d339b7-f0b6-441d-b633-c36c46b34333", + "parentUUID": "57e7cbbb-519d-47c3-bb3b-1593a30c7487", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product FO : Create merchandise returns should close the FO page and go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_closeFoAndGoBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFoAndGoBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20b055c0-a8ae-4255-a622-37901ceb36f3", + "parentUUID": "57e7cbbb-519d-47c3-bb3b-1593a30c7487", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "10b7b4df-9540-47c2-80b2-0a0179cfe936", + "c40cf634-25fd-4660-a1ba-edcc4e6a8d12", + "47121349-e1b4-4c1d-834a-ac4e5e795ca5", + "5d80e1ec-010d-42a5-954c-3d55516bbccd", + "59d339b7-f0b6-441d-b633-c36c46b34333", + "20b055c0-a8ae-4255-a622-37901ceb36f3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4900, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3fa6bf18-b93d-4a27-bf94-6819edea8009", + "title": "BO : Delete products from merchandise return", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product BO : Delete products from merchandise return should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToMerchandiseReturnsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e483a53-1278-4217-8c91-f0e3c5ab0b79", + "parentUUID": "3fa6bf18-b93d-4a27-bf94-6819edea8009", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product BO : Delete products from merchandise return should go to edit merchandise returns page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToEditReturnsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f67e9d3a-1695-4c17-838a-57f2d87da78c", + "parentUUID": "3fa6bf18-b93d-4a27-bf94-6819edea8009", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the first returned product", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product BO : Delete products from merchandise return should delete the first returned product", + "timedOut": false, + "duration": 923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_deleteFirstProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteFirstProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.deleteProduct(page, 1)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(edit_1.default.successfulUpdateMessage);\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07a7cb1a-2847-4aab-844e-f99ed43c69f2", + "parentUUID": "3fa6bf18-b93d-4a27-bf94-6819edea8009", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product BO : Delete products from merchandise return should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToMerchandiseReturnsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71ba2e53-36b7-479e-b0c8-f2614de90a3e", + "parentUUID": "3fa6bf18-b93d-4a27-bf94-6819edea8009", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product BO : Delete products from merchandise return should go to edit merchandise returns page", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_goToEditReturnsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df6a0ef4-e811-4aaa-a1f2-85b202b3c7f7", + "parentUUID": "3fa6bf18-b93d-4a27-bf94-6819edea8009", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the first returned product", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product BO : Delete products from merchandise return should delete the first returned product", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_deleteFirstProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteFirstProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.deleteProduct(page, 1)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(edit_1.default.successfulUpdateMessage);\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e788850a-278f-4e9e-ac59-9cff1d04f855", + "parentUUID": "3fa6bf18-b93d-4a27-bf94-6819edea8009", + "isHook": false, + "skipped": false + }, + { + "title": "should try to delete the last returned product and check the error message", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product BO : Delete products from merchandise return should try to delete the last returned product and check the error message", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_deleteLastProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLastProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.clickOnDeleteLastProductButton(page)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.contains(merchandiseReturns_1.default.errorDeletionMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32ff228d-ec7f-42a2-8728-c440e313eab1", + "parentUUID": "3fa6bf18-b93d-4a27-bf94-6819edea8009", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6e483a53-1278-4217-8c91-f0e3c5ab0b79", + "f67e9d3a-1695-4c17-838a-57f2d87da78c", + "07a7cb1a-2847-4aab-844e-f99ed43c69f2", + "71ba2e53-36b7-479e-b0c8-f2614de90a3e", + "df6a0ef4-e811-4aaa-a1f2-85b202b3c7f7", + "e788850a-278f-4e9e-ac59-9cff1d04f855", + "32ff228d-ec7f-42a2-8728-c440e313eab1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11678, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "db1071c8-af4c-40af-8f9f-fea5783d43f3", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/02_deleteProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should disable merchandise returns", + "fullTitle": "BO - Customer Service - Merchandise Returns : Delete product POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_deleteProduct_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1061081f-a2a6-4952-be50-6525dc306ee4", + "parentUUID": "db1071c8-af4c-40af-8f9f-fea5783d43f3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1061081f-a2a6-4952-be50-6525dc306ee4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 291, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "51472054-799c-4cd8-b775-a9e26df41ec6", + "title": "BO - Customer Service - Merchandise Returns : Update status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Customer Service - Merchandise Returns : Update status\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status \"before all\" hook in \"BO - Customer Service - Merchandise Returns : Update status\"", + "timedOut": false, + "duration": 56, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb57ad9c-0960-4536-a0b0-5646379ad60e", + "parentUUID": "51472054-799c-4cd8-b775-a9e26df41ec6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Customer Service - Merchandise Returns : Update status\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status \"after all\" hook in \"BO - Customer Service - Merchandise Returns : Update status\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3b3fadc4-fbe2-4289-8ad1-c76da9e0354f", + "parentUUID": "51472054-799c-4cd8-b775-a9e26df41ec6", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0f5f3baf-e1ca-4bc8-a0fd-6f0d7a47ae76", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d48d241-9c8b-4dbf-a3f1-c61e3942fc88", + "parentUUID": "0f5f3baf-e1ca-4bc8-a0fd-6f0d7a47ae76", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a373655a-d468-4b16-bbc9-1707f55ed408", + "parentUUID": "0f5f3baf-e1ca-4bc8-a0fd-6f0d7a47ae76", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8da2d24f-3e9e-4b43-be57-6911a32d5ae3", + "parentUUID": "0f5f3baf-e1ca-4bc8-a0fd-6f0d7a47ae76", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4614, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_1_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77a39161-23d1-4461-ae53-568111fcf0fb", + "parentUUID": "0f5f3baf-e1ca-4bc8-a0fd-6f0d7a47ae76", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_1_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2bbe63c-533e-4fa5-940c-54be5a6b0163", + "parentUUID": "0f5f3baf-e1ca-4bc8-a0fd-6f0d7a47ae76", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8da2d24f-3e9e-4b43-be57-6911a32d5ae3", + "77a39161-23d1-4461-ae53-568111fcf0fb", + "a2bbe63c-533e-4fa5-940c-54be5a6b0163" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6742, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9310afb-34ec-4c93-8ba4-ffd20418fa6f", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "21151050-ecfa-4204-a6c5-4dcb52f81227", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c21457fb-d9a1-4fe0-a096-3ee4a6294f10", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a517f14a-4952-44ec-8fb0-c6c0212e35a6", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 478, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba09f6e2-13b7-4e8f-a571-5a1a4d3da18e", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e4f8ed4-4e5b-4ffd-b1a9-27f664c03a49", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 971, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1aab08d-7873-426f-8b43-1be5612b7d74", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7230002-7824-415c-ba4e-46188c06c64f", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a787753-81cc-443b-8830-75ad45d4457f", + "parentUUID": "0a800fd2-ecee-47c0-9be0-9362822e4f43", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c21457fb-d9a1-4fe0-a096-3ee4a6294f10", + "a517f14a-4952-44ec-8fb0-c6c0212e35a6", + "ba09f6e2-13b7-4e8f-a571-5a1a4d3da18e", + "2e4f8ed4-4e5b-4ffd-b1a9-27f664c03a49", + "a1aab08d-7873-426f-8b43-1be5612b7d74", + "d7230002-7824-415c-ba4e-46188c06c64f", + "2a787753-81cc-443b-8830-75ad45d4457f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12659, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4f8eb03c-0804-4c8f-8095-88fcd5b37b54", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e8f9f25-5f21-4abc-a026-d6a825583c41", + "parentUUID": "4f8eb03c-0804-4c8f-8095-88fcd5b37b54", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3d50fb48-4c35-451e-a2a5-71d87545573b", + "parentUUID": "4f8eb03c-0804-4c8f-8095-88fcd5b37b54", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25bc2ee9-1cd3-4e06-b244-1c105c74f04a", + "parentUUID": "4f8eb03c-0804-4c8f-8095-88fcd5b37b54", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_3_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ec60aee-44c2-4ff0-8974-439a23c40d69", + "parentUUID": "4f8eb03c-0804-4c8f-8095-88fcd5b37b54", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 599, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_preTest_3_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b77b7601-eff8-4d11-8088-2d93f0b5ff98", + "parentUUID": "4f8eb03c-0804-4c8f-8095-88fcd5b37b54", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "25bc2ee9-1cd3-4e06-b244-1c105c74f04a", + "3ec60aee-44c2-4ff0-8974-439a23c40d69", + "b77b7601-eff8-4d11-8088-2d93f0b5ff98" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7192, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dca56cd1-2a3b-472d-8fbf-b77222301bca", + "title": "PRE-TEST: Change order status to 'Shipped'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Change order status to 'Shipped' should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fad332f8-4a30-4f2d-8c72-285462b48e5f", + "parentUUID": "dca56cd1-2a3b-472d-8fbf-b77222301bca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Change order status to 'Shipped' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7538e761-93a2-425d-9f1c-17fa94f7338c", + "parentUUID": "dca56cd1-2a3b-472d-8fbf-b77222301bca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Change order status to 'Shipped' should go to the first order page", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d491d460-6ec3-4bae-8fe8-8d75377e1d19", + "parentUUID": "dca56cd1-2a3b-472d-8fbf-b77222301bca", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Change order status to 'Shipped' should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1136, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a046ea21-4a5d-42f1-91d1-c768de54b6fd", + "parentUUID": "dca56cd1-2a3b-472d-8fbf-b77222301bca", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the button 'Return products' is visible", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status PRE-TEST: Change order status to 'Shipped' should check if the button 'Return products' is visible", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkReturnProductsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnProductsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.isReturnProductsButtonVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "837dcef1-72c4-4895-bb53-5e9592eb1c61", + "parentUUID": "dca56cd1-2a3b-472d-8fbf-b77222301bca", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fad332f8-4a30-4f2d-8c72-285462b48e5f", + "7538e761-93a2-425d-9f1c-17fa94f7338c", + "d491d460-6ec3-4bae-8fe8-8d75377e1d19", + "a046ea21-4a5d-42f1-91d1-c768de54b6fd", + "837dcef1-72c4-4895-bb53-5e9592eb1c61" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7627, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2b2f5579-21f5-4ad6-a049-d092d7f29179", + "title": "FO : Create merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status FO : Create merchandise returns should view my shop", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15b67b34-7488-4605-8d08-a25d4e1fd5cb", + "parentUUID": "2b2f5579-21f5-4ad6-a049-d092d7f29179", + "isHook": false, + "skipped": false + }, + { + "title": "should login in FO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status FO : Create merchandise returns should login in FO", + "timedOut": false, + "duration": 1219, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e425068-cd05-43a0-a0be-a3df0da3b13d", + "parentUUID": "2b2f5579-21f5-4ad6-a049-d092d7f29179", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status FO : Create merchandise returns should go to account page", + "timedOut": false, + "duration": 688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcb4afe8-23d9-49d6-b79c-6c9523fe7475", + "parentUUID": "2b2f5579-21f5-4ad6-a049-d092d7f29179", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status FO : Create merchandise returns should go to 'Order history and details' page", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afde1a2b-b94c-440d-87d9-79e2343274c7", + "parentUUID": "2b2f5579-21f5-4ad6-a049-d092d7f29179", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status FO : Create merchandise returns should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_isOrderReturnFormVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "998b8673-6418-4a24-8eac-fea8e3090f03", + "parentUUID": "2b2f5579-21f5-4ad6-a049-d092d7f29179", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status FO : Create merchandise returns should create a merchandise return", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'test', 1, [{ quantity: 1 }])];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93edaab3-21ac-433c-9d7b-3e20ca1874ae", + "parentUUID": "2b2f5579-21f5-4ad6-a049-d092d7f29179", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status FO : Create merchandise returns should close the FO page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_closeFoAndGoBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFoAndGoBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ab64589-f3a0-496c-a382-9c2efcd1123c", + "parentUUID": "2b2f5579-21f5-4ad6-a049-d092d7f29179", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "15b67b34-7488-4605-8d08-a25d4e1fd5cb", + "7e425068-cd05-43a0-a0be-a3df0da3b13d", + "bcb4afe8-23d9-49d6-b79c-6c9523fe7475", + "afde1a2b-b94c-440d-87d9-79e2343274c7", + "998b8673-6418-4a24-8eac-fea8e3090f03", + "93edaab3-21ac-433c-9d7b-3e20ca1874ae", + "9ab64589-f3a0-496c-a382-9c2efcd1123c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5935, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d2724acf-5d42-40af-b4e6-a65d5d9908e7", + "title": "BO : Update returns status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3615, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToMerchandiseReturnsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25ba9b47-77d9-407a-8cb1-d93089cb49ce", + "parentUUID": "d2724acf-5d42-40af-b4e6-a65d5d9908e7", + "isHook": false, + "skipped": false + }, + { + "title": "should get the return number", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status should get the return number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_getReturnNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getReturnNumber', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order_return')];\n case 2:\n returnID = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(returnID).to.not.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b035f308-52cc-43a9-b0dd-2b99d283efe3", + "parentUUID": "d2724acf-5d42-40af-b4e6-a65d5d9908e7", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "title": "Update returns status to Waiting for package and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should go to edit merchandise returns page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToEditReturnsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a37b1cb-467d-4f8e-baa7-be80a4c0231f", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should update the status", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should update the status", + "timedOut": false, + "duration": 1062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_editStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b424b8e-04ee-4572-bebb-359e47a23f20", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email subject", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should check the confirmation email subject", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkConfirmationEmail0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkConfirmationEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject)\n .to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Your order return status has changed\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b721abc-6930-41d2-b986-4432a7a72d34", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email text", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should check the confirmation email text", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkConfirmationEmailText0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkConfirmationEmailText\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].text)\n .to.contains('We have updated the progress on your return')\n .and.to.contains(\"the new status is: \\\"\".concat(test.args.status, \"\\\".\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22239fab-46f0-47fb-923e-b0dc6a237239", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should download and check the existence of the PDF print out file", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should download and check the existence of the PDF print out file", + "timedOut": false, + "duration": 348, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkPDF\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPDF', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.downloadPDF(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'File does not exist').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7c5a836-7da4-4955-a276-3ca1e0723e21", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the file name", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should check the file name", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkFileName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFileName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.eq('Print out');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1aa1e349-2b64-4bca-b4fd-72e566ae11b0", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the header of the return PDF", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should check the header of the return PDF", + "timedOut": false, + "duration": 745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkOrderReturnPDF\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var returnPrefix, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnPDF', baseContext)];\n case 1:\n _a.sent();\n returnPrefix = '#RE00000';\n if (returnID >= 10) {\n returnPrefix = '#RE0000';\n }\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"ORDER RETURN,,\".concat(todayDate, \",,\").concat(returnPrefix).concat(returnID))];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'The header of the PDF is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f19f6572-c7d1-47b2-80b0-e332b1e0b86e", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the billing address in the PDF", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should check the billing address in the PDF", + "timedOut": false, + "duration": 377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkBillingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var billingAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBillingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Billing & Delivery Address,,'\n + \"\".concat(address_1.default.second.firstName, \" \").concat(address_1.default.second.lastName, \",\")\n + \"\".concat(address_1.default.second.company, \",\")\n + \"\".concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\")\n + \"\".concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city, \",\")\n + \"\".concat(address_1.default.second.country, \",\")\n + \"\".concat(address_1.default.second.phone))];\n case 2:\n billingAddressExist = _a.sent();\n (0, chai_1.expect)(billingAddressExist, 'Billing address is not correct in PDF!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b24845f2-418e-40f4-b3ec-2b6028ca777c", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return number", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should check the return number", + "timedOut": false, + "duration": 266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkReturnNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var returnPrefix, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnNumber', baseContext)];\n case 1:\n _a.sent();\n returnPrefix = '00000';\n if (returnID >= 10) {\n returnPrefix = '0000';\n }\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'We have logged your return request.,Your package must be returned to us within 14 days of receiving your order.'\n + \",,Return Number, ,Date,,\".concat(returnPrefix).concat(returnID, \", ,\").concat(todayDate))];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Order return ID and the date are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eba7f3cc-23b1-40e6-af9d-f6b9ac04990e", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the returned product details", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should check the returned product details", + "timedOut": false, + "duration": 244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkReturnedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Items to be returned, ,Reference, ,Qty,,\".concat(products_1.default.demo_1.name, \" (Size: S - Color: White), ,\")\n + \"\".concat(products_1.default.demo_1.reference, \", ,1\"))];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Returned product details are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f2ffe98-b8d3-44c0-9339-0976a1ebb37b", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should click on cancel button", + "timedOut": false, + "duration": 1035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_clickOnCancelButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnCancelButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.clickOnCancelButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1190962-eeb9-4543-b7c4-c03c019b5720", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated status in the merchandise returns table", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Waiting for package and check result should check the updated status in the merchandise returns table", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'name')];\n case 2:\n status = _a.sent();\n (0, chai_1.expect)(status).to.eq(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fe2956d-9a78-47d8-a315-a2c1f60b1efa", + "parentUUID": "a2a7b857-a1f6-4409-ba37-011ad9a351e3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9a37b1cb-467d-4f8e-baa7-be80a4c0231f", + "7b424b8e-04ee-4572-bebb-359e47a23f20", + "8b721abc-6930-41d2-b986-4432a7a72d34", + "22239fab-46f0-47fb-923e-b0dc6a237239", + "c7c5a836-7da4-4955-a276-3ca1e0723e21", + "1aa1e349-2b64-4bca-b4fd-72e566ae11b0", + "f19f6572-c7d1-47b2-80b0-e332b1e0b86e", + "b24845f2-418e-40f4-b3ec-2b6028ca777c", + "eba7f3cc-23b1-40e6-af9d-f6b9ac04990e", + "1f2ffe98-b8d3-44c0-9339-0976a1ebb37b", + "b1190962-eeb9-4543-b7c4-c03c019b5720", + "8fe2956d-9a78-47d8-a315-a2c1f60b1efa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4898, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9b90d4f9-be48-42ab-903f-15ed7ea628e0", + "title": "Update returns status to Package received and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Package received and check result should go to edit merchandise returns page", + "timedOut": false, + "duration": 822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToEditReturnsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "295a34fc-bac8-4435-9f77-5741ec2e3c1c", + "parentUUID": "9b90d4f9-be48-42ab-903f-15ed7ea628e0", + "isHook": false, + "skipped": false + }, + { + "title": "should update the status", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Package received and check result should update the status", + "timedOut": false, + "duration": 1040, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_editStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ed270e0-0fbf-47f5-a2eb-4c7562492e34", + "parentUUID": "9b90d4f9-be48-42ab-903f-15ed7ea628e0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email subject", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Package received and check result should check the confirmation email subject", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkConfirmationEmail1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkConfirmationEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject)\n .to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Your order return status has changed\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c20dc277-f2b6-45f6-bcb0-9dbd749a84f8", + "parentUUID": "9b90d4f9-be48-42ab-903f-15ed7ea628e0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email text", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Package received and check result should check the confirmation email text", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkConfirmationEmailText1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkConfirmationEmailText\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].text)\n .to.contains('We have updated the progress on your return')\n .and.to.contains(\"the new status is: \\\"\".concat(test.args.status, \"\\\".\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea29947e-65e8-4969-8b39-d35247c33799", + "parentUUID": "9b90d4f9-be48-42ab-903f-15ed7ea628e0", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the file is not existing", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Package received and check result should check that the file is not existing", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkFileNotExisting1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFileNotExisting\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.eq('--');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4e6cfa0-b258-451a-85fa-ecec1b9b8529", + "parentUUID": "9b90d4f9-be48-42ab-903f-15ed7ea628e0", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Package received and check result should click on cancel button", + "timedOut": false, + "duration": 1025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_clickOnCancelButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnCancelButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.clickOnCancelButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9431d66-73c5-444c-aca9-ecdccdc5cc58", + "parentUUID": "9b90d4f9-be48-42ab-903f-15ed7ea628e0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated status in the merchandise returns table", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Package received and check result should check the updated status in the merchandise returns table", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'name')];\n case 2:\n status = _a.sent();\n (0, chai_1.expect)(status).to.eq(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74e928cc-e246-4444-94da-aaaa192c2d1f", + "parentUUID": "9b90d4f9-be48-42ab-903f-15ed7ea628e0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "295a34fc-bac8-4435-9f77-5741ec2e3c1c", + "2ed270e0-0fbf-47f5-a2eb-4c7562492e34", + "c20dc277-f2b6-45f6-bcb0-9dbd749a84f8", + "ea29947e-65e8-4969-8b39-d35247c33799", + "e4e6cfa0-b258-451a-85fa-ecec1b9b8529", + "f9431d66-73c5-444c-aca9-ecdccdc5cc58", + "74e928cc-e246-4444-94da-aaaa192c2d1f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2914, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6ce8d626-9d9a-49f2-be04-b7f701138e4b", + "title": "Update returns status to Return denied and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return denied and check result should go to edit merchandise returns page", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToEditReturnsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87bfd28f-d009-4ada-bf95-fb2062223fee", + "parentUUID": "6ce8d626-9d9a-49f2-be04-b7f701138e4b", + "isHook": false, + "skipped": false + }, + { + "title": "should update the status", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return denied and check result should update the status", + "timedOut": false, + "duration": 1050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_editStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1df8a059-5d0c-47f2-98a9-121a17450a02", + "parentUUID": "6ce8d626-9d9a-49f2-be04-b7f701138e4b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email subject", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return denied and check result should check the confirmation email subject", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkConfirmationEmail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkConfirmationEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject)\n .to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Your order return status has changed\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21344837-4386-411d-9f73-ab0c14950619", + "parentUUID": "6ce8d626-9d9a-49f2-be04-b7f701138e4b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email text", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return denied and check result should check the confirmation email text", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkConfirmationEmailText2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkConfirmationEmailText\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].text)\n .to.contains('We have updated the progress on your return')\n .and.to.contains(\"the new status is: \\\"\".concat(test.args.status, \"\\\".\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22183db7-56b7-421a-bfc8-6b54935ac151", + "parentUUID": "6ce8d626-9d9a-49f2-be04-b7f701138e4b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the file is not existing", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return denied and check result should check that the file is not existing", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkFileNotExisting2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFileNotExisting\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.eq('--');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b359c71-962f-4d17-9aa6-da8905a9aa88", + "parentUUID": "6ce8d626-9d9a-49f2-be04-b7f701138e4b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return denied and check result should click on cancel button", + "timedOut": false, + "duration": 1024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_clickOnCancelButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnCancelButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.clickOnCancelButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ae94723-98e9-4a31-8020-39bd1ab5732a", + "parentUUID": "6ce8d626-9d9a-49f2-be04-b7f701138e4b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated status in the merchandise returns table", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return denied and check result should check the updated status in the merchandise returns table", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'name')];\n case 2:\n status = _a.sent();\n (0, chai_1.expect)(status).to.eq(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a4a6709-ca04-4f7a-bad7-95839fae0494", + "parentUUID": "6ce8d626-9d9a-49f2-be04-b7f701138e4b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "87bfd28f-d009-4ada-bf95-fb2062223fee", + "1df8a059-5d0c-47f2-98a9-121a17450a02", + "21344837-4386-411d-9f73-ab0c14950619", + "22183db7-56b7-421a-bfc8-6b54935ac151", + "5b359c71-962f-4d17-9aa6-da8905a9aa88", + "2ae94723-98e9-4a31-8020-39bd1ab5732a", + "5a4a6709-ca04-4f7a-bad7-95839fae0494" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2918, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "02b5f2b1-7712-47fc-90b9-8d82b5d0ca18", + "title": "Update returns status to Return completed and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return completed and check result should go to edit merchandise returns page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_goToEditReturnsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b59d354e-d000-40ec-9242-cf87608c7331", + "parentUUID": "02b5f2b1-7712-47fc-90b9-8d82b5d0ca18", + "isHook": false, + "skipped": false + }, + { + "title": "should update the status", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return completed and check result should update the status", + "timedOut": false, + "duration": 1041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_editStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dbca866-1d2d-467c-aad0-2670490d8c78", + "parentUUID": "02b5f2b1-7712-47fc-90b9-8d82b5d0ca18", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email subject", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return completed and check result should check the confirmation email subject", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkConfirmationEmail3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkConfirmationEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject)\n .to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Your order return status has changed\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "161a8556-4ccc-47d5-ab0b-30152b74b0a3", + "parentUUID": "02b5f2b1-7712-47fc-90b9-8d82b5d0ca18", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email text", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return completed and check result should check the confirmation email text", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkConfirmationEmailText3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkConfirmationEmailText\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].text)\n .to.contains('We have updated the progress on your return')\n .and.to.contains(\"the new status is: \\\"\".concat(test.args.status, \"\\\".\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffc45253-c935-490d-9b23-4e437ea4171d", + "parentUUID": "02b5f2b1-7712-47fc-90b9-8d82b5d0ca18", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the file is not existing", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return completed and check result should check that the file is not existing", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkFileNotExisting3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFileNotExisting\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.eq('--');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bf79004-0664-4f50-a102-83d530424a85", + "parentUUID": "02b5f2b1-7712-47fc-90b9-8d82b5d0ca18", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return completed and check result should click on cancel button", + "timedOut": false, + "duration": 1033, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_clickOnCancelButton3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnCancelButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.clickOnCancelButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92c1dd96-31b2-4bfd-b863-c9b6eec78cc1", + "parentUUID": "02b5f2b1-7712-47fc-90b9-8d82b5d0ca18", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated status in the merchandise returns table", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status BO : Update returns status Update returns status to Return completed and check result should check the updated status in the merchandise returns table", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_checkStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'name')];\n case 2:\n status = _a.sent();\n (0, chai_1.expect)(status).to.eq(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e34e0e26-18ba-4cad-806d-d542b78f84b2", + "parentUUID": "02b5f2b1-7712-47fc-90b9-8d82b5d0ca18", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b59d354e-d000-40ec-9242-cf87608c7331", + "4dbca866-1d2d-467c-aad0-2670490d8c78", + "161a8556-4ccc-47d5-ab0b-30152b74b0a3", + "ffc45253-c935-490d-9b23-4e437ea4171d", + "8bf79004-0664-4f50-a102-83d530424a85", + "92c1dd96-31b2-4bfd-b863-c9b6eec78cc1", + "e34e0e26-18ba-4cad-806d-d542b78f84b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2916, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "25ba9b47-77d9-407a-8cb1-d93089cb49ce", + "b035f308-52cc-43a9-b0dd-2b99d283efe3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3622, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b8511785-f616-4d58-bc21-74b53fab817c", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2843083a-68bd-4df1-8542-1d2cd937f383", + "parentUUID": "b8511785-f616-4d58-bc21-74b53fab817c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8af65c70-9a87-4f73-a436-b3548c686779", + "parentUUID": "b8511785-f616-4d58-bc21-74b53fab817c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dca85d0d-d6c1-46fc-86ca-643162c42d58", + "parentUUID": "b8511785-f616-4d58-bc21-74b53fab817c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3608, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_postTest_1_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec19c610-1e84-4ffc-9f27-c8659534fbcc", + "parentUUID": "b8511785-f616-4d58-bc21-74b53fab817c", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_postTest_1_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56585c6a-8811-4e1c-afcb-aeba05b54b0d", + "parentUUID": "b8511785-f616-4d58-bc21-74b53fab817c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dca85d0d-d6c1-46fc-86ca-643162c42d58", + "ec19c610-1e84-4ffc-9f27-c8659534fbcc", + "56585c6a-8811-4e1c-afcb-aeba05b54b0d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5606, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d7b78ebe-758e-4f1f-870e-51569761a594", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "file": "/campaigns/functional/BO/05_customerService/03_merchandiseReturns/03_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8f2366b-7a5f-4898-b582-bef7a24b473b", + "parentUUID": "d7b78ebe-758e-4f1f-870e-51569761a594", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c82daa89-b12f-477a-a3b2-bb15d5ee35e4", + "parentUUID": "d7b78ebe-758e-4f1f-870e-51569761a594", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8900b73-d993-4049-9387-9a05554f8157", + "parentUUID": "d7b78ebe-758e-4f1f-870e-51569761a594", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "513f4188-7f8c-47d1-afe9-18b8e79856b6", + "parentUUID": "d7b78ebe-758e-4f1f-870e-51569761a594", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Customer Service - Merchandise Returns : Update status POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_customerService_merchandiseReturns_updateStatus_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ece3f70-4de9-442e-930b-f16f068fbcae", + "parentUUID": "d7b78ebe-758e-4f1f-870e-51569761a594", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d8900b73-d993-4049-9387-9a05554f8157", + "513f4188-7f8c-47d1-afe9-18b8e79856b6", + "6ece3f70-4de9-442e-930b-f16f068fbcae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7030, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "aa4089f4-f14e-4d54-8941-6e1907871288", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1646, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a6e740c-7513-4051-b146-95c409eda121", + "parentUUID": "aa4089f4-f14e-4d54-8941-6e1907871288", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba08fc6b-5038-4174-909a-67bd3e138a0a", + "parentUUID": "aa4089f4-f14e-4d54-8941-6e1907871288", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92c50ed4-a615-4e03-bd62-dc0fb07a3bb4", + "parentUUID": "aa4089f4-f14e-4d54-8941-6e1907871288", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "247141c0-b550-402b-a5e2-08e8fca104d0", + "title": "BO - Dashboard : Enable/Disable demo mode & check stats", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/01_enableDisableDemoMode.ts", + "file": "/campaigns/functional/BO/01_dashboard/01_enableDisableDemoMode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Dashboard : Enable/Disable demo mode & check stats\"", + "fullTitle": "BO - Dashboard : Enable/Disable demo mode & check stats \"before all\" hook in \"BO - Dashboard : Enable/Disable demo mode & check stats\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9123932-518b-4da2-b48f-4d11554c8d44", + "parentUUID": "247141c0-b550-402b-a5e2-08e8fca104d0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Dashboard : Enable/Disable demo mode & check stats\"", + "fullTitle": "BO - Dashboard : Enable/Disable demo mode & check stats \"after all\" hook in \"BO - Dashboard : Enable/Disable demo mode & check stats\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1fa402f1-05ef-4de9-8963-44993b9212a7", + "parentUUID": "247141c0-b550-402b-a5e2-08e8fca104d0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Dashboard : Enable/Disable demo mode & check stats should login in BO", + "timedOut": false, + "duration": 6632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46b1766d-fb8b-42fd-a201-a86f9ce9d11f", + "parentUUID": "247141c0-b550-402b-a5e2-08e8fca104d0", + "isHook": false, + "skipped": false + }, + { + "title": "should enable demo mode and check stats", + "fullTitle": "BO - Dashboard : Enable/Disable demo mode & check stats should enable demo mode and check stats", + "timedOut": false, + "duration": 4068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_enableDisableDemoMode_enableDemoMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var salesScore;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableDemoMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.setDemoMode(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getSalesScore(page)];\n case 3:\n salesScore = _a.sent();\n (0, chai_1.expect)(salesScore).to.be.above(400000);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eaba9463-8e90-421c-8fe5-d257d912eb2c", + "parentUUID": "247141c0-b550-402b-a5e2-08e8fca104d0", + "isHook": false, + "skipped": false + }, + { + "title": "should disable demo mode and check stats", + "fullTitle": "BO - Dashboard : Enable/Disable demo mode & check stats should disable demo mode and check stats", + "timedOut": false, + "duration": 2062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_enableDisableDemoMode_disableDemoMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var salesScore;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableDemoMode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.setDemoMode(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getSalesScore(page)];\n case 3:\n salesScore = _a.sent();\n (0, chai_1.expect)(salesScore).to.be.below(50000);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e250c36-078a-4483-b902-abaa4c006095", + "parentUUID": "247141c0-b550-402b-a5e2-08e8fca104d0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "46b1766d-fb8b-42fd-a201-a86f9ce9d11f", + "eaba9463-8e90-421c-8fe5-d257d912eb2c", + "8e250c36-078a-4483-b902-abaa4c006095" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12762, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3f511cbf-1ec5-4761-88bf-d0946e9f8e64", + "title": "BO - Dashboard : Activity overview", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Dashboard : Activity overview\"", + "fullTitle": "BO - Dashboard : Activity overview \"before all\" hook in \"BO - Dashboard : Activity overview\"", + "timedOut": false, + "duration": 204, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9456a158-f09c-4588-b033-4643c16bf205", + "parentUUID": "3f511cbf-1ec5-4761-88bf-d0946e9f8e64", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Dashboard : Activity overview\"", + "fullTitle": "BO - Dashboard : Activity overview \"after all\" hook in \"BO - Dashboard : Activity overview\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6fc8232d-eced-4c99-a90f-8d98aff636b6", + "parentUUID": "3f511cbf-1ec5-4761-88bf-d0946e9f8e64", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b9099e4c-665f-4d29-816d-ac3b3b5967f5", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "BO - Dashboard : Activity overview PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e15e2a1-4c69-4ecc-a935-6c30b6a6806e", + "parentUUID": "b9099e4c-665f-4d29-816d-ac3b3b5967f5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "BO - Dashboard : Activity overview PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "81adde6b-d21f-4b72-9853-ff6b681a06d1", + "parentUUID": "b9099e4c-665f-4d29-816d-ac3b3b5967f5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Dashboard : Activity overview PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 2064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "569e6858-b137-4755-9766-31988676176d", + "parentUUID": "b9099e4c-665f-4d29-816d-ac3b3b5967f5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Dashboard : Activity overview PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bb45193-48ae-469d-831d-ee9f1583d55e", + "parentUUID": "b9099e4c-665f-4d29-816d-ac3b3b5967f5", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "BO - Dashboard : Activity overview PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57767acd-338f-4738-886e-a9818662e8c5", + "parentUUID": "b9099e4c-665f-4d29-816d-ac3b3b5967f5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "569e6858-b137-4755-9766-31988676176d", + "0bb45193-48ae-469d-831d-ee9f1583d55e", + "57767acd-338f-4738-886e-a9818662e8c5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7132, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a001f483-38dd-4ca8-afbd-f90e430a4979", + "title": "Check Online visitor & Active shopping carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts should login in BO", + "timedOut": false, + "duration": 1730, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fbb1469-8d89-47f1-ae6a-90721f7d9863", + "parentUUID": "a001f483-38dd-4ca8-afbd-f90e430a4979", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "c86df155-e888-4773-925c-7f030f9e5add", + "title": "Check Online visitor", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get the number of online visitors", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should get the number of online visitors", + "timedOut": false, + "duration": 1021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNumberOfOnlineVisitors\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfOnlineVisitors', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfOnlineVisitors(page)];\n case 2:\n numberOfOnlineVisitors = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "582e93b0-985b-49a1-9144-0eaa09389db0", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Online visitor link and check stats page", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should click on Online visitor link and check stats page", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnlineVisitors\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnlineVisitors', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnOnlineVisitorsLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stats_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(stats_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ac4a6f8-b37b-4f7b-9f0a-2c5287968ccc", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should view my shop", + "timedOut": false, + "duration": 1805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19c08807-9654-4dc1-8b6f-4e5ae3e20846", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should go to login page", + "timedOut": false, + "duration": 724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToLoginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d14db01a-f0af-40b4-ad0a-e28b989bef2c", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should sign in with default customer", + "timedOut": false, + "duration": 664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_sighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_2.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "110b60f2-074a-4311-92e0-4795f3aa189e", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from FO", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should logout from FO", + "timedOut": false, + "duration": 1779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_logoutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logoutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66e151c9-8775-4f28-a6a6-7892ad72b772", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, stats_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stats_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14767c95-0fe7-4ef1-ade6-e3c252cc59d3", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should go back to dashboard page", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stats_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9022a942-6dd1-4070-b057-9f0a912b4eb1", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of Online visitors", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Online visitor should check the number of Online visitors", + "timedOut": false, + "duration": 1017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkNumberOfOnlineVisitors\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var onlineVisitors;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfOnlineVisitors', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfOnlineVisitors(page)];\n case 2:\n onlineVisitors = _a.sent();\n (0, chai_1.expect)(onlineVisitors).to.eq(numberOfOnlineVisitors + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67c8a18c-bb6c-428c-b26e-f550daba4f94", + "parentUUID": "c86df155-e888-4773-925c-7f030f9e5add", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "582e93b0-985b-49a1-9144-0eaa09389db0", + "9ac4a6f8-b37b-4f7b-9f0a-2c5287968ccc", + "19c08807-9654-4dc1-8b6f-4e5ae3e20846", + "d14db01a-f0af-40b4-ad0a-e28b989bef2c", + "110b60f2-074a-4311-92e0-4795f3aa189e", + "66e151c9-8775-4f28-a6a6-7892ad72b772", + "14767c95-0fe7-4ef1-ade6-e3c252cc59d3", + "9022a942-6dd1-4070-b057-9f0a912b4eb1", + "67c8a18c-bb6c-428c-b26e-f550daba4f94" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8885, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "title": "Check Active shopping carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on Active shopping carts link and check shopping carts page", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should click on Active shopping carts link and check shopping carts page", + "timedOut": false, + "duration": 978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickActiveShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickActiveShoppingCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnActiveShoppingCartsLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc064090-32f5-47d4-ba5f-cea99582e1cc", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should go back to dashboard page", + "timedOut": false, + "duration": 1020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fa53633-a4d1-4a05-a313-46f0ac9a4c50", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of active shopping carts", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should get the number of active shopping carts", + "timedOut": false, + "duration": 1016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNumberOfActiveShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfActiveShoppingCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfActiveShoppingCarts(page)];\n case 2:\n activeShoppingCarts = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d35eba0b-f12d-4a6c-ab9b-c5046e65f76b", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should view my shop", + "timedOut": false, + "duration": 1692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54948cbe-ba17-473a-a6e1-d55d27e109f8", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should go to login page", + "timedOut": false, + "duration": 710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToLoginFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e47da7d-5f08-4260-9579-ed0737214043", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should sign in with default customer", + "timedOut": false, + "duration": 518, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_sighInFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_2.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1725fd15-fb48-4431-a306-9dafb5accc85", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should add product to cart", + "timedOut": false, + "duration": 7353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "424a39ac-7f4d-43c9-96b6-5e826b26991d", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should go to delivery step", + "timedOut": false, + "duration": 1060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98bf8d8a-7fe2-41ec-b382-edb2ccbab472", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should go to payment step", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a1b0012-3f05-4fad-bd77-aff903226ee7", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should choose payment method and confirm the order", + "timedOut": false, + "duration": 1590, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddf8ab0d-c507-4a48-9316-5bfc5969cf27", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should go back to BO", + "timedOut": false, + "duration": 519, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "184e480a-3a89-4468-aab5-accb38e45b29", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of active shopping carts", + "fullTitle": "BO - Dashboard : Activity overview Check Online visitor & Active shopping carts Check Active shopping carts should check the number of active shopping carts", + "timedOut": false, + "duration": 1015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkNumberOfShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newActiveShoppingCarts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfShoppingCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfActiveShoppingCarts(page)];\n case 2:\n newActiveShoppingCarts = _a.sent();\n (0, chai_1.expect)(newActiveShoppingCarts).to.eq(activeShoppingCarts + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e40c1dbc-1f64-4c87-9ff6-488be519fa3a", + "parentUUID": "c52d5544-d613-41cc-a5c7-d75b9fc37659", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc064090-32f5-47d4-ba5f-cea99582e1cc", + "1fa53633-a4d1-4a05-a313-46f0ac9a4c50", + "d35eba0b-f12d-4a6c-ab9b-c5046e65f76b", + "54948cbe-ba17-473a-a6e1-d55d27e109f8", + "2e47da7d-5f08-4260-9579-ed0737214043", + "1725fd15-fb48-4431-a306-9dafb5accc85", + "424a39ac-7f4d-43c9-96b6-5e826b26991d", + "98bf8d8a-7fe2-41ec-b382-edb2ccbab472", + "2a1b0012-3f05-4fad-bd77-aff903226ee7", + "ddf8ab0d-c507-4a48-9316-5bfc5969cf27", + "184e480a-3a89-4468-aab5-accb38e45b29", + "e40c1dbc-1f64-4c87-9ff6-488be519fa3a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17804, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "6fbb1469-8d89-47f1-ae6a-90721f7d9863" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1730, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9a29f5b2-7377-456e-bf14-35d88b26ed6c", + "title": "Check currently pending block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "5c175450-3a74-4735-9cf2-6b2b1ebea8cd", + "title": "Check orders", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get Orders number", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check orders should get Orders number", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getOrdersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrdersNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfOrders(page)];\n case 2:\n ordersNumber = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bf05a5c-bda0-4a6b-b2f1-525550b9ea87", + "parentUUID": "5c175450-3a74-4735-9cf2-6b2b1ebea8cd", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Orders link and check Orders page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check orders should click on Orders link and check Orders page", + "timedOut": false, + "duration": 1410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnOrdersLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnOrdersLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnOrdersLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdd7e17c-0afc-42c2-b3fa-980274f0327e", + "parentUUID": "5c175450-3a74-4735-9cf2-6b2b1ebea8cd", + "isHook": false, + "skipped": false + }, + { + "title": "should change the first order status to Processing in progress", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check orders should change the first order status to Processing in progress", + "timedOut": false, + "duration": 1383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_changeOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeOrderStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.processingInProgress)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3e30eed-5831-4bff-9682-ee863fa99372", + "parentUUID": "5c175450-3a74-4735-9cf2-6b2b1ebea8cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check orders should go back to dashboard page", + "timedOut": false, + "duration": 1073, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fb4e77d-0631-4da9-980a-b01bc4c90351", + "parentUUID": "5c175450-3a74-4735-9cf2-6b2b1ebea8cd", + "isHook": false, + "skipped": false + }, + { + "title": "should check Orders number", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check orders should check Orders number", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkOrdersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newOrdersNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrdersNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfOrders(page)];\n case 2:\n newOrdersNumber = _a.sent();\n (0, chai_1.expect)(newOrdersNumber).to.eq(ordersNumber + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5e76659-2446-46e4-bb49-1a36e9786eff", + "parentUUID": "5c175450-3a74-4735-9cf2-6b2b1ebea8cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6bf05a5c-bda0-4a6b-b2f1-525550b9ea87", + "bdd7e17c-0afc-42c2-b3fa-980274f0327e", + "c3e30eed-5831-4bff-9682-ee863fa99372", + "5fb4e77d-0631-4da9-980a-b01bc4c90351", + "d5e76659-2446-46e4-bb49-1a36e9786eff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5894, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ee2847b2-c890-479f-9d07-77c736914c46", + "title": "Check Return/Exchanges", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get Return/Exchange number", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should get Return/Exchange number", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getReturnExchangeNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getReturnExchangeNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfReturnExchange(page)];\n case 2:\n numberOfReturnExchanges = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4106268d-5cb7-4bcf-9e7e-b257df2aaf89", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Return/Exchange link and check merchandise returns page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should click on Return/Exchange link and check merchandise returns page", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnReturnExchangeLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnReturnExchangeLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnReturnExchangeLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ff72a7c-c428-4b05-8a3b-a4b804d8d1be", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should go to orders page", + "timedOut": false, + "duration": 3616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27cde1ad-0fcf-4d13-baac-1c3862772c1b", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should change the first order status to Delivered", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should change the first order status to Delivered", + "timedOut": false, + "duration": 982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_changeOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeOrderStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.delivered)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0ab0a27-d4c7-491c-8983-f5fbc4016459", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should go back to dashboard page", + "timedOut": false, + "duration": 1041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22e739ab-7470-4e58-8482-6b92ddac3892", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should view my shop", + "timedOut": false, + "duration": 1777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95a6c561-173a-4fa4-a03a-10fa122940fe", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should go to account page", + "timedOut": false, + "duration": 729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ace959db-aa4a-4012-9f48-1e990f70965f", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should go to 'Order history and details' page", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d559444-c3e8-417e-a7f7-1964efa192bf", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_isOrderReturnFormVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba3182df-f6be-442f-9dc4-979677c28cf7", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should create a merchandise return", + "timedOut": false, + "duration": 882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'test', 1, [{ quantity: 1 }])];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dac7cc03-215c-4983-a8aa-2e5b018824ce", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should close the FO page and go back to BO", + "timedOut": false, + "duration": 472, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_closeFoAndGoBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFoAndGoBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, dashboard_1.default.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8b4ac70-5505-44e3-8e83-ef85be0ace7d", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + }, + { + "title": "should check Return/Exchange number", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Return/Exchanges should check Return/Exchange number", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkReturnExchangeNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newNumberOfReturnExchanges;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnExchangeNumber', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, dashboard_1.default.getNumberOfReturnExchange(page)];\n case 2:\n newNumberOfReturnExchanges = _a.sent();\n (0, chai_1.expect)(newNumberOfReturnExchanges).to.eq(numberOfReturnExchanges + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43c2a64d-285c-471f-acfb-305da8a53fff", + "parentUUID": "ee2847b2-c890-479f-9d07-77c736914c46", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4106268d-5cb7-4bcf-9e7e-b257df2aaf89", + "5ff72a7c-c428-4b05-8a3b-a4b804d8d1be", + "27cde1ad-0fcf-4d13-baac-1c3862772c1b", + "f0ab0a27-d4c7-491c-8983-f5fbc4016459", + "22e739ab-7470-4e58-8482-6b92ddac3892", + "95a6c561-173a-4fa4-a03a-10fa122940fe", + "ace959db-aa4a-4012-9f48-1e990f70965f", + "3d559444-c3e8-417e-a7f7-1964efa192bf", + "ba3182df-f6be-442f-9dc4-979677c28cf7", + "dac7cc03-215c-4983-a8aa-2e5b018824ce", + "c8b4ac70-5505-44e3-8e83-ef85be0ace7d" + ], + "failures": [], + "pending": [ + "43c2a64d-285c-471f-acfb-305da8a53fff" + ], + "skipped": [], + "duration": 12755, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0cdb8835-139f-4dde-b178-c6dc2266be94", + "title": "Check Abandoned carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check Abandoned carts number", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Abandoned carts should check Abandoned carts number", + "timedOut": false, + "duration": 1015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getAbandonedCartsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var abandonedCartsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getAbandonedCartsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfAbandonedCarts(page)];\n case 2:\n abandonedCartsNumber = _a.sent();\n (0, chai_1.expect)(abandonedCartsNumber).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ea7bb46-0319-4e0d-b5c3-dfa423c5e21b", + "parentUUID": "0cdb8835-139f-4dde-b178-c6dc2266be94", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Abandoned carts link and check Shopping carts page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check Abandoned carts should click on Abandoned carts link and check Shopping carts page", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickAbandonedCartsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickAbandonedCartsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnAbandonedCartsLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71037fc9-23ac-422c-9b13-742bb2251e17", + "parentUUID": "0cdb8835-139f-4dde-b178-c6dc2266be94", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ea7bb46-0319-4e0d-b5c3-dfa423c5e21b", + "71037fc9-23ac-422c-9b13-742bb2251e17" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1904, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "title": "Check out of stock products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should go back to dashboard page", + "timedOut": false, + "duration": 1059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cd41557-f1e6-42bc-8b6f-858903999a48", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + }, + { + "title": "should get out of stock products number", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should get out of stock products number", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getOutOfStockProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOutOfStockProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getOutOfStockProducts(page)];\n case 2:\n outOfStockProductNumber = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20ef605e-6a7a-4f57-9538-1a20f77cd35b", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Out of stock products link and check Monitoring page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should click on Out of stock products link and check Monitoring page", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOutOfStockLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOutOfStockLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnOutOfStockProductsLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, monitoring_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(monitoring_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6342e4ff-e1e7-4682-96bf-e1a4305f9b93", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5106, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38313302-ecb3-47a6-80ac-a81f5b6f6fb9", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3f217d6-e3cf-47ba-ae9f-aecdfa1afeca", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "727cc96d-26ca-4e3c-88a2-f2a1662c5a64", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + }, + { + "title": "should create out of stock product", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should create out of stock product", + "timedOut": false, + "duration": 5678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "616be75b-242b-4d35-9ded-8cde58b5098f", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should go back to dashboard page", + "timedOut": false, + "duration": 1115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c868e266-8a35-46ea-b455-2e78130d7abe", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + }, + { + "title": "should check out of stock products number", + "fullTitle": "BO - Dashboard : Activity overview Check currently pending block Check out of stock products should check out of stock products number", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkOutOfStockProductsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newOutOfStockProductNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOutOfStockProductsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getOutOfStockProducts(page)];\n case 2:\n newOutOfStockProductNumber = _a.sent();\n (0, chai_1.expect)(newOutOfStockProductNumber).to.eq(outOfStockProductNumber + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41387675-8d75-46f1-af46-baaa5a76811a", + "parentUUID": "203465df-a3ad-402e-ab5d-27cf3b4654ef", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9cd41557-f1e6-42bc-8b6f-858903999a48", + "20ef605e-6a7a-4f57-9538-1a20f77cd35b", + "6342e4ff-e1e7-4682-96bf-e1a4305f9b93", + "38313302-ecb3-47a6-80ac-a81f5b6f6fb9", + "d3f217d6-e3cf-47ba-ae9f-aecdfa1afeca", + "727cc96d-26ca-4e3c-88a2-f2a1662c5a64", + "616be75b-242b-4d35-9ded-8cde58b5098f", + "c868e266-8a35-46ea-b455-2e78130d7abe", + "41387675-8d75-46f1-af46-baaa5a76811a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15067, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19fb2e5b-910c-4cab-90e8-98e631212abf", + "title": "Check notifications block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "ac560632-397a-41c2-8058-df67fad59f9c", + "title": "Check new messages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get new message number", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check new messages should get new message number", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNewMessagesNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNewMessagesNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfNewMessages(page)];\n case 2:\n messagesNumber = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7104d37-01ba-4e29-86c7-e93dc9c85a3b", + "parentUUID": "ac560632-397a-41c2-8058-df67fad59f9c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on New messages link and check Customer service page", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check new messages should click on New messages link and check Customer service page", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnNewMessagesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewMessagesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNewMessagesLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "533d5fe4-6039-4df5-89ba-a577eb52b2e5", + "parentUUID": "ac560632-397a-41c2-8058-df67fad59f9c", + "isHook": false, + "skipped": false + }, + { + "title": "should view my store", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check new messages should view my store", + "timedOut": false, + "duration": 1859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "279b1548-99e1-45eb-b980-f0e493413d6d", + "parentUUID": "ac560632-397a-41c2-8058-df67fad59f9c", + "isHook": false, + "skipped": false + }, + { + "title": "should to contact us page", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check new messages should to contact us page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goOnContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goOnContactPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Contact us')];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e090c41-dece-440f-a870-09bbdba71251", + "parentUUID": "ac560632-397a-41c2-8058-df67fad59f9c", + "isHook": false, + "skipped": false + }, + { + "title": "should send message to customer service", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check new messages should send message to customer service", + "timedOut": false, + "duration": 395, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertSuccess(page)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(contactUs_1.contactUsPage.validationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38c4ed8c-5a9e-47f7-8e8d-1cc0987e18af", + "parentUUID": "ac560632-397a-41c2-8058-df67fad59f9c", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check new messages should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToBo3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51037dd2-39ac-4ab0-8a02-3a1edc10bfb8", + "parentUUID": "ac560632-397a-41c2-8058-df67fad59f9c", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check new messages should go back to dashboard page", + "timedOut": false, + "duration": 1035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd0b0d89-d6c8-4d27-acc6-dd26c544bd03", + "parentUUID": "ac560632-397a-41c2-8058-df67fad59f9c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of new messages", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check new messages should check the number of new messages", + "timedOut": false, + "duration": 1016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkNumberOfNewMessages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newMessagesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfNewMessages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfNewMessages(page)];\n case 2:\n newMessagesNumber = _a.sent();\n (0, chai_1.expect)(newMessagesNumber).to.eq(messagesNumber + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa17310c-d136-457a-a60c-82dd29d48a23", + "parentUUID": "ac560632-397a-41c2-8058-df67fad59f9c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f7104d37-01ba-4e29-86c7-e93dc9c85a3b", + "533d5fe4-6039-4df5-89ba-a577eb52b2e5", + "279b1548-99e1-45eb-b980-f0e493413d6d", + "6e090c41-dece-440f-a870-09bbdba71251", + "38c4ed8c-5a9e-47f7-8e8d-1cc0987e18af", + "51037dd2-39ac-4ab0-8a02-3a1edc10bfb8", + "dd0b0d89-d6c8-4d27-acc6-dd26c544bd03", + "fa17310c-d136-457a-a60c-82dd29d48a23" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7019, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d8586f4f-ea08-4b9a-b52c-58406ba1ca93", + "title": "Check Product reviews", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get the number of product reviews", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check Product reviews should get the number of product reviews", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNumberOfProductReviews\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productReviewsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProductReviews', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfProductReviews(page)];\n case 2:\n productReviewsNumber = _a.sent();\n (0, chai_1.expect)(productReviewsNumber).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68c4e82a-d974-48a1-bda3-350538de6bad", + "parentUUID": "d8586f4f-ea08-4b9a-b52c-58406ba1ca93", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Products reviews link and check Product comments page", + "fullTitle": "BO - Dashboard : Activity overview Check notifications block Check Product reviews should click on Products reviews link and check Product comments page", + "timedOut": false, + "duration": 960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnProductReviewLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnProductReviewLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnProductReviewsLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productComments_1.default.getPageSubTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(productComments_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2db89bb8-95ea-48f1-aaec-d947118ce3aa", + "parentUUID": "d8586f4f-ea08-4b9a-b52c-58406ba1ca93", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "68c4e82a-d974-48a1-bda3-350538de6bad", + "2db89bb8-95ea-48f1-aaec-d947118ce3aa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1966, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b07b576a-2dda-45a1-8fca-1031071eb08f", + "title": "Check Customers & Newsletters block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block should go back to dashboard page", + "timedOut": false, + "duration": 1028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard8', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab0cfeca-640b-4732-ae2d-45cbe463b9d2", + "parentUUID": "b07b576a-2dda-45a1-8fca-1031071eb08f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of customers", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block should get the number of customers", + "timedOut": false, + "duration": 1018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNumberOfCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfNewCustomers(page)];\n case 2:\n newCustomersNumber = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3919fdaf-47e8-484b-bf8f-0e971d19f2f8", + "parentUUID": "b07b576a-2dda-45a1-8fca-1031071eb08f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of new subscriptions", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block should get the number of new subscriptions", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNumberOfNewSubscriptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfNewSubscriptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfNewSubscriptions(page)];\n case 2:\n newSubscriptionsNumber = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcdbd035-7987-4862-8111-ffd01a658599", + "parentUUID": "b07b576a-2dda-45a1-8fca-1031071eb08f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of total subscribers", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block should get the number of total subscribers", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNumberOfTotalSubscribers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfTotalSubscribers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfTotalSubscribers(page)];\n case 2:\n totalSubscribersNumber = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0419e339-f8fc-46b6-82d1-ec93e901eb06", + "parentUUID": "b07b576a-2dda-45a1-8fca-1031071eb08f", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "85691b17-1f64-4f90-8c46-5e8e407c678f", + "title": "Check Customers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on New customers link and check Customers page", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check Customers should click on New customers link and check Customers page", + "timedOut": false, + "duration": 1065, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnNewCustomersLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewCustomersLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNewCustomersLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4831ab2-2650-4df8-8f13-5f39752c7fc4", + "parentUUID": "85691b17-1f64-4f90-8c46-5e8e407c678f", + "isHook": false, + "skipped": false + }, + { + "title": "should create new customer and enable newsletter status", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check Customers should create new customer and enable newsletter status", + "timedOut": false, + "duration": 7111, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_createNewCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditCustomer(page, createCustomerData)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [4 /*yield*/, customers_1.default.setNewsletterStatus(page, 1, true)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "292fff3e-aeb8-4259-8e39-481055de9106", + "parentUUID": "85691b17-1f64-4f90-8c46-5e8e407c678f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check Customers should go back to dashboard page", + "timedOut": false, + "duration": 1090, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard9', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cc979d8-ec9d-453b-acef-c274017c7d1e", + "parentUUID": "85691b17-1f64-4f90-8c46-5e8e407c678f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of new customers", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check Customers should check the number of new customers", + "timedOut": false, + "duration": 1018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkNumberOfNewCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newCustomers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfNewCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfNewCustomers(page)];\n case 2:\n newCustomers = _a.sent();\n (0, chai_1.expect)(newCustomers).to.eq(newCustomersNumber + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef8fe6f5-db89-4342-8b09-90b8b14669e1", + "parentUUID": "85691b17-1f64-4f90-8c46-5e8e407c678f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b4831ab2-2650-4df8-8f13-5f39752c7fc4", + "292fff3e-aeb8-4259-8e39-481055de9106", + "3cc979d8-ec9d-453b-acef-c274017c7d1e", + "ef8fe6f5-db89-4342-8b09-90b8b14669e1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10284, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ac426046-29f1-4541-8776-e7e8267d9a26", + "title": "Check New Subscriptions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the number of new subscriptions", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check New Subscriptions should check the number of new subscriptions", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkNumberOfNewSubscriptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newSubscriptions;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfNewSubscriptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfNewSubscriptions(page)];\n case 2:\n newSubscriptions = _a.sent();\n (0, chai_1.expect)(newSubscriptions).to.eq(newSubscriptionsNumber + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30e7d258-eb08-4e44-9bc2-dd292f75adb7", + "parentUUID": "ac426046-29f1-4541-8776-e7e8267d9a26", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new subscriptions link and check Stats page", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check New Subscriptions should click on new subscriptions link and check Stats page", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnNewSubscriptionsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewSubscriptionsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNewSubscriptionsLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stats_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(stats_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0653bcc-9a1a-4531-960e-883ffc2be7c5", + "parentUUID": "ac426046-29f1-4541-8776-e7e8267d9a26", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check New Subscriptions should go back to dashboard page", + "timedOut": false, + "duration": 1038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bf35f11-9ec5-4e42-ac07-4436c9c05060", + "parentUUID": "ac426046-29f1-4541-8776-e7e8267d9a26", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "30e7d258-eb08-4e44-9bc2-dd292f75adb7", + "c0653bcc-9a1a-4531-960e-883ffc2be7c5", + "8bf35f11-9ec5-4e42-ac07-4436c9c05060" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2921, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "95267bee-217e-4e5a-9eea-fcf557b789d2", + "title": "Check Total subscribers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the number of total subscribers", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check Total subscribers should check the number of total subscribers", + "timedOut": false, + "duration": 1017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkNumberOfTotalSubscribers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newTotalSubscribers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfTotalSubscribers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfTotalSubscribers(page)];\n case 2:\n newTotalSubscribers = _a.sent();\n (0, chai_1.expect)(newTotalSubscribers).to.eq(totalSubscribersNumber + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df8081af-976e-400e-afbf-7aa6863535a2", + "parentUUID": "95267bee-217e-4e5a-9eea-fcf557b789d2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Total subscribers link and check Newsletter subscription page", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check Total subscribers should click on Total subscribers link and check Newsletter subscription page", + "timedOut": false, + "duration": 994, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnTotalSubscribersLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnTotalSubscribersLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnTotalSubscribersLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psEmailSubscription_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2b88eeb-3008-45ff-8da3-b54450d7da78", + "parentUUID": "95267bee-217e-4e5a-9eea-fcf557b789d2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check Customers & Newsletters block Check Total subscribers should go back to dashboard page", + "timedOut": false, + "duration": 1048, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard11', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d4742ba-92eb-452e-9cfd-37d5b96a60ca", + "parentUUID": "95267bee-217e-4e5a-9eea-fcf557b789d2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "df8081af-976e-400e-afbf-7aa6863535a2", + "c2b88eeb-3008-45ff-8da3-b54450d7da78", + "9d4742ba-92eb-452e-9cfd-37d5b96a60ca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3059, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "ab0cfeca-640b-4732-ae2d-45cbe463b9d2", + "3919fdaf-47e8-484b-bf8f-0e971d19f2f8", + "fcdbd035-7987-4862-8111-ffd01a658599", + "0419e339-f8fc-46b6-82d1-ec93e901eb06" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4057, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "27f20fc4-e93d-4f90-9e46-bf8471d9502e", + "title": "Check Traffic block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "aa10afc6-9caa-41d9-aa41-b525c9e7fb84", + "title": "Check Visits", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get the number of visits", + "fullTitle": "BO - Dashboard : Activity overview Check Traffic block Check Visits should get the number of visits", + "timedOut": false, + "duration": 1018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNumberOfVisits\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfVisits', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfVisits(page)];\n case 2:\n newCustomersNumber = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc47f0db-2a46-48b7-b714-cb2807de2858", + "parentUUID": "aa10afc6-9caa-41d9-aa41-b525c9e7fb84", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Visits link and check Stats page", + "fullTitle": "BO - Dashboard : Activity overview Check Traffic block Check Visits should click on Visits link and check Stats page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnVisitsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnVisitsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnVisitsLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stats_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(stats_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8929d1e2-2521-44b0-b4ec-7a5ae0b5d408", + "parentUUID": "aa10afc6-9caa-41d9-aa41-b525c9e7fb84", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check Traffic block Check Visits should go back to dashboard page", + "timedOut": false, + "duration": 1143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard12', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfc0fa70-7fee-4408-9d8c-5408f693183e", + "parentUUID": "aa10afc6-9caa-41d9-aa41-b525c9e7fb84", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cc47f0db-2a46-48b7-b714-cb2807de2858", + "8929d1e2-2521-44b0-b4ec-7a5ae0b5d408", + "bfc0fa70-7fee-4408-9d8c-5408f693183e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2959, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "427f6229-7a30-411e-99ff-143567a89180", + "title": "Check Unique visitors", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get the number of Unique Visitors", + "fullTitle": "BO - Dashboard : Activity overview Check Traffic block Check Unique visitors should get the number of Unique Visitors", + "timedOut": false, + "duration": 1017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_getNumberOfUniqueVisitors\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfUniqueVisitors', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNumberOfVisits(page)];\n case 2:\n newCustomersNumber = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31af0c7c-d523-41a1-945f-d26a93576a62", + "parentUUID": "427f6229-7a30-411e-99ff-143567a89180", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Unique Visitors link and check Stats page", + "fullTitle": "BO - Dashboard : Activity overview Check Traffic block Check Unique visitors should click on Unique Visitors link and check Stats page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnUniqueVisitorsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnUniqueVisitorsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnUniqueVisitorsLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stats_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(stats_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81805781-6594-4853-9d53-becb55a98bbd", + "parentUUID": "427f6229-7a30-411e-99ff-143567a89180", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Activity overview Check Traffic block Check Unique visitors should go back to dashboard page", + "timedOut": false, + "duration": 1072, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goBackToDashboard13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard13', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "939d5dec-a878-4e59-baad-79433b10b8c4", + "parentUUID": "427f6229-7a30-411e-99ff-143567a89180", + "isHook": false, + "skipped": false + }, + { + "title": "should check Traffic sources", + "fullTitle": "BO - Dashboard : Activity overview Check Traffic block Check Unique visitors should check Traffic sources", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_checkTrafficSources\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var trafficSources;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTrafficSources', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getTrafficSources(page)];\n case 2:\n trafficSources = _a.sent();\n (0, chai_1.expect)(trafficSources).to.contains('prestashop.com')\n .and.to.contains('Direct link');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb56d25a-b372-499f-b72f-04a0e67a2902", + "parentUUID": "427f6229-7a30-411e-99ff-143567a89180", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "31af0c7c-d523-41a1-945f-d26a93576a62", + "81805781-6594-4853-9d53-becb55a98bbd", + "939d5dec-a878-4e59-baad-79433b10b8c4", + "cb56d25a-b372-499f-b72f-04a0e67a2902" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2914, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "64aeb765-bfd9-4354-877e-b450cab33de8", + "title": "Configuration", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on configure link", + "fullTitle": "BO - Dashboard : Activity overview Configuration should click on configure link", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnConfigureLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isConfigureFormVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnConfigureLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnConfigureLink(page)];\n case 2:\n isConfigureFormVisible = _a.sent();\n (0, chai_1.expect)(isConfigureFormVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3346ae2-4784-47d4-ba7c-630e668c10d3", + "parentUUID": "64aeb765-bfd9-4354-877e-b450cab33de8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b3346ae2-4784-47d4-ba7c-630e668c10d3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 851, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efe55e42-c20b-4a90-ae07-dcb4f30a1bc0", + "parentUUID": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "23bab775-6957-43b4-81ff-5b9995065835", + "parentUUID": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "387e5dce-8971-45ab-bfaa-89e239dcf690", + "parentUUID": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f946febe-96ba-430f-9f04-af0858b9e48e", + "parentUUID": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0538a10-c42b-4566-9e31-8aff2f0964cd", + "parentUUID": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1133, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa87261d-ad31-4f45-998b-5fd7afd31222", + "parentUUID": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1599, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a16a946-bc29-47ad-9afb-d4025f87e9b3", + "parentUUID": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 373, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8867f8d7-faf2-41b2-b37c-8c6b7b77c2e3", + "parentUUID": "3adf0031-2c1a-460a-841c-d9213d87c47e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "387e5dce-8971-45ab-bfaa-89e239dcf690", + "f946febe-96ba-430f-9f04-af0858b9e48e", + "d0538a10-c42b-4566-9e31-8aff2f0964cd", + "fa87261d-ad31-4f45-998b-5fd7afd31222", + "7a16a946-bc29-47ad-9afb-d4025f87e9b3", + "8867f8d7-faf2-41b2-b37c-8c6b7b77c2e3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11900, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "title": "POST-TEST: Delete product 'Intelligent Steel Pants'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Intelligent Steel Pants'\"", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete product 'Intelligent Steel Pants' \"before all\" hook in \"POST-TEST: Delete product 'Intelligent Steel Pants'\"", + "timedOut": false, + "duration": 61, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2aa50802-6000-4047-a6e6-61715ef50f26", + "parentUUID": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Intelligent Steel Pants'\"", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete product 'Intelligent Steel Pants' \"after all\" hook in \"POST-TEST: Delete product 'Intelligent Steel Pants'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6b69aca9-cf45-4a0a-8c9b-744e8d888af6", + "parentUUID": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete product 'Intelligent Steel Pants' should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ae274d0-2d4b-4f4b-9d35-918bf3f38786", + "parentUUID": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete product 'Intelligent Steel Pants' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d09c9318-7507-4a88-88bd-7f3b735cee66", + "parentUUID": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete product 'Intelligent Steel Pants' should reset all filters", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c3e17ff-a752-4ec9-84f4-28cb37f59b77", + "parentUUID": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete product 'Intelligent Steel Pants' should click on delete product button", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bc85d1b-ca9e-4ef9-b3e4-56b7eab24e3e", + "parentUUID": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete product 'Intelligent Steel Pants' should delete product", + "timedOut": false, + "duration": 708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5f4f39a-6cff-463b-96d4-d9f63d893be1", + "parentUUID": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Delete product 'Intelligent Steel Pants' should reset filter", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21c805b8-3f52-4b99-8805-81043ddcfed7", + "parentUUID": "abbc5c98-59ce-4bc3-90d8-d05aa34714dd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2ae274d0-2d4b-4f4b-9d35-918bf3f38786", + "d09c9318-7507-4a88-88bd-7f3b735cee66", + "5c3e17ff-a752-4ec9-84f4-28cb37f59b77", + "7bc85d1b-ca9e-4ef9-b3e4-56b7eab24e3e", + "b5f4f39a-6cff-463b-96d4-d9f63d893be1", + "21c805b8-3f52-4b99-8805-81043ddcfed7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6735, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0549ef7c-9cc5-4284-ba2a-3b8890c3b806", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "file": "/campaigns/functional/BO/01_dashboard/02_activityOverview.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fa0305b-8d7a-496c-ba71-97ed6295597c", + "parentUUID": "0549ef7c-9cc5-4284-ba2a-3b8890c3b806", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d218ab84-a41a-446e-a701-2775c75c3fe1", + "parentUUID": "0549ef7c-9cc5-4284-ba2a-3b8890c3b806", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e350d0bd-0c14-498f-97ef-00e8658a129a", + "parentUUID": "0549ef7c-9cc5-4284-ba2a-3b8890c3b806", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3598, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a15e5a74-7143-45b2-8124-b48018667032", + "parentUUID": "0549ef7c-9cc5-4284-ba2a-3b8890c3b806", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "BO - Dashboard : Activity overview POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_activityOverview_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6f55b00-e100-4c5a-a7bf-6f10735fe895", + "parentUUID": "0549ef7c-9cc5-4284-ba2a-3b8890c3b806", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e350d0bd-0c14-498f-97ef-00e8658a129a", + "a15e5a74-7143-45b2-8124-b48018667032", + "c6f55b00-e100-4c5a-a7bf-6f10735fe895" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5718, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b1755105-f644-4ea0-aa46-f0a5b9e24b3c", + "title": "BO - Dashboard : Products and sales", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "file": "/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Dashboard : Products and sales\"", + "fullTitle": "BO - Dashboard : Products and sales \"before all\" hook in \"BO - Dashboard : Products and sales\"", + "timedOut": false, + "duration": 54, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8800b6b0-e291-4c3a-bc6f-0d8c19b20e52", + "parentUUID": "b1755105-f644-4ea0-aa46-f0a5b9e24b3c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Dashboard : Products and sales\"", + "fullTitle": "BO - Dashboard : Products and sales \"after all\" hook in \"BO - Dashboard : Products and sales\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9398b455-bc69-43f0-a1e2-58f4a0ce9c18", + "parentUUID": "b1755105-f644-4ea0-aa46-f0a5b9e24b3c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "adff0da5-5a94-448c-98b3-5c91801c4dad", + "title": "Check Online visitor & Active shopping carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "file": "/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "163780cd-f681-49bb-82c3-7042b27e8b69", + "parentUUID": "adff0da5-5a94-448c-98b3-5c91801c4dad", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "3197b290-edc7-45b1-bdd4-93afb54d54ee", + "title": "Check Recent orders tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "file": "/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the title of Recent orders tab", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Recent orders tab should check the title of Recent orders tab", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_checkRecentOrdersTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var tableTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkRecentOrdersTitle', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getRecentOrdersTitle(page)];\n case 2:\n tableTitle = _a.sent();\n (0, chai_1.expect)(tableTitle).to.eq('Last 10 orders');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d37afcee-8ef2-4a0a-82fc-d7d4783e3239", + "parentUUID": "3197b290-edc7-45b1-bdd4-93afb54d54ee", + "isHook": false, + "skipped": false + }, + { + "title": "should click on details icon of the first row and check Order details page", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Recent orders tab should click on details icon of the first row and check Order details page", + "timedOut": false, + "duration": 1377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_clickOnDetailsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDetailsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnDetailsButtonOfRecentOrdersTable(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e952e5ea-25ec-45c0-be8b-f3a7a2dea306", + "parentUUID": "3197b290-edc7-45b1-bdd4-93afb54d54ee", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to dashboard page", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Recent orders tab should go back to dashboard page", + "timedOut": false, + "duration": 1080, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_goBackToDashboard\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToDashboard', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d81a7aff-8d42-47f1-88b3-0d7bec78defd", + "parentUUID": "3197b290-edc7-45b1-bdd4-93afb54d54ee", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d37afcee-8ef2-4a0a-82fc-d7d4783e3239", + "e952e5ea-25ec-45c0-be8b-f3a7a2dea306", + "d81a7aff-8d42-47f1-88b3-0d7bec78defd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2483, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dfe24ab7-02fb-47b0-a0d0-1b05174b9824", + "title": "Check Best sellers tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "file": "/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on best sellers tab and check the title", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Best sellers tab should click on best sellers tab and check the title", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_clickOnBestSellersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var tabTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBestSellersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToBestSellersTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getBestSellersTabTitle(page)];\n case 3:\n tabTitle = _a.sent();\n (0, chai_1.expect)(tabTitle).to.contains('Top 10 products');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54b4d645-9438-4ac2-96c8-6833df346deb", + "parentUUID": "dfe24ab7-02fb-47b0-a0d0-1b05174b9824", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the best sellers table is visible", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Best sellers tab should check that the best sellers table is visible", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_isBestSellersTableVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isBestSellersTableVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isBestSellersTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6151a94f-75dc-49f0-b821-7309bf319995", + "parentUUID": "dfe24ab7-02fb-47b0-a0d0-1b05174b9824", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "54b4d645-9438-4ac2-96c8-6833df346deb", + "6151a94f-75dc-49f0-b821-7309bf319995" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 78, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cbac4daf-26b6-4664-96f0-5a58d66de37d", + "title": "Check Most viewed tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "file": "/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on most viewed tab and check the title", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Most viewed tab should click on most viewed tab and check the title", + "timedOut": false, + "duration": 66, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_clickOnMostViewedTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var tabTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnMostViewedTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToMostViewedTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getMostViewedTabTitle(page)];\n case 3:\n tabTitle = _a.sent();\n (0, chai_1.expect)(tabTitle).to.contains('Most Viewed');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d21dd653-c1bb-4347-a831-842269b2ce5a", + "parentUUID": "cbac4daf-26b6-4664-96f0-5a58d66de37d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the most viewed table is visible", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Most viewed tab should check that the most viewed table is visible", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_isMostViewedTableVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isMostViewedTableVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isMostViewedTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b138897f-a8e0-411b-a9f2-cd2392be4ad2", + "parentUUID": "cbac4daf-26b6-4664-96f0-5a58d66de37d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d21dd653-c1bb-4347-a831-842269b2ce5a", + "b138897f-a8e0-411b-a9f2-cd2392be4ad2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 76, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8fbc9050-ae6a-4ee6-9366-d00380a35648", + "title": "Check Top searches tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "file": "/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check top searchers tab and check the title", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Top searches tab should check top searchers tab and check the title", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_checkTopSearchersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var tabTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTopSearchersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToTopSearchersTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getTopSearchersTabTitle(page)];\n case 3:\n tabTitle = _a.sent();\n (0, chai_1.expect)(tabTitle).to.contains('Top 10 most search terms');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec65879f-75a6-4399-9b6d-0117a6d5388e", + "parentUUID": "8fbc9050-ae6a-4ee6-9366-d00380a35648", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the top searchers table is visible", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Check Top searches tab should check that the top searchers table is visible", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_isTopSearchersTableVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isTopSearchersTableVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isTopSearchersTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "250b1a81-f89d-4967-babb-c980f261bd8e", + "parentUUID": "8fbc9050-ae6a-4ee6-9366-d00380a35648", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ec65879f-75a6-4399-9b6d-0117a6d5388e", + "250b1a81-f89d-4967-babb-c980f261bd8e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 61, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5b6b7a31-c9ad-4399-bca1-feaa92566593", + "title": "Configuration", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "file": "/campaigns/functional/BO/01_dashboard/03_productsAndSales.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on configure link", + "fullTitle": "BO - Dashboard : Products and sales Check Online visitor & Active shopping carts Configuration should click on configure link", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_productsAndSales_clickOnConfigureLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isConfigureFormVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnConfigureLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnConfigureProductsAndSalesLink(page)];\n case 2:\n isConfigureFormVisible = _a.sent();\n (0, chai_1.expect)(isConfigureFormVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edef9f56-008b-4f55-8c23-d04f22ffc62d", + "parentUUID": "5b6b7a31-c9ad-4399-bca1-feaa92566593", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "edef9f56-008b-4f55-8c23-d04f22ffc62d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 850, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "163780cd-f681-49bb-82c3-7042b27e8b69" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1739, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "73acd4f2-8eb0-4b3b-9bfe-325e5ee8f330", + "title": "BO - dashboard : Help card in dashboard page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/01_dashboard/04_helpCard.ts", + "file": "/campaigns/functional/BO/01_dashboard/04_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - dashboard : Help card in dashboard page\"", + "fullTitle": "BO - dashboard : Help card in dashboard page \"before all\" hook in \"BO - dashboard : Help card in dashboard page\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb1d3207-af52-42ab-bf27-9f01809158e6", + "parentUUID": "73acd4f2-8eb0-4b3b-9bfe-325e5ee8f330", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - dashboard : Help card in dashboard page\"", + "fullTitle": "BO - dashboard : Help card in dashboard page \"after all\" hook in \"BO - dashboard : Help card in dashboard page\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "016ba95d-ff7d-415d-aa41-f9a26aa98995", + "parentUUID": "73acd4f2-8eb0-4b3b-9bfe-325e5ee8f330", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - dashboard : Help card in dashboard page should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7042c6f7-5f3b-45d1-a200-48207fe76892", + "parentUUID": "73acd4f2-8eb0-4b3b-9bfe-325e5ee8f330", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document title", + "fullTitle": "BO - dashboard : Help card in dashboard page should open the help side bar and check the document title", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.openHelpCard(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.getHelpDocumentTitle(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('Discovering the Administration Area');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "165c68cb-d886-465d-a8c2-ecf0c5d53ed3", + "parentUUID": "73acd4f2-8eb0-4b3b-9bfe-325e5ee8f330", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - dashboard : Help card in dashboard page should close the help side bar", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_dashboard_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeHelpCard(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db1b715c-4816-4396-ad68-502e7a16a481", + "parentUUID": "73acd4f2-8eb0-4b3b-9bfe-325e5ee8f330", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7042c6f7-5f3b-45d1-a200-48207fe76892", + "165c68cb-d886-465d-a8c2-ecf0c5d53ed3", + "db1b715c-4816-4396-ad68-502e7a16a481" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2679, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "abcc2220-4a67-4792-b79b-de26a152dd57", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1260, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adfdab9e-55ad-4241-8b3d-b694e71bfa61", + "parentUUID": "abcc2220-4a67-4792-b79b-de26a152dd57", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e36db3b-ddf1-4f23-ae80-f1e0352abfa0", + "parentUUID": "abcc2220-4a67-4792-b79b-de26a152dd57", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "054b9530-bd34-408f-9818-99a25423465a", + "parentUUID": "abcc2220-4a67-4792-b79b-de26a152dd57", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "e7c4db1f-c0a3-49e8-b9ec-7fbc91eb5113", + "title": "BO - Design - Theme & Logo : Add new theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/01_addNewTheme.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/01_addNewTheme.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Theme & Logo : Add new theme\"", + "fullTitle": "BO - Design - Theme & Logo : Add new theme \"before all\" hook in \"BO - Design - Theme & Logo : Add new theme\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e63671b-3856-4898-9fbe-8105974a06ed", + "parentUUID": "e7c4db1f-c0a3-49e8-b9ec-7fbc91eb5113", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Theme & Logo : Add new theme\"", + "fullTitle": "BO - Design - Theme & Logo : Add new theme \"after all\" hook in \"BO - Design - Theme & Logo : Add new theme\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile('theme.zip'),\n files_1.default.deleteFile('../../themes/theme.zip'),\n files_1.default.deleteFile('../../admin-dev/hummingbird.zip'),\n ])];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "40775821-d630-49d0-a962-77e19668d2e2", + "parentUUID": "e7c4db1f-c0a3-49e8-b9ec-7fbc91eb5113", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Theme & Logo : Add new theme should login in BO", + "timedOut": false, + "duration": 6610, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "559a3161-4cdb-4fbf-921f-8752e4719a43", + "parentUUID": "e7c4db1f-c0a3-49e8-b9ec-7fbc91eb5113", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Design - Theme & Logo : Add new theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 5119, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52535371-8e6d-450c-a0dc-13148ebee43b", + "parentUUID": "e7c4db1f-c0a3-49e8-b9ec-7fbc91eb5113", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "BO - Design - Theme & Logo : Add new theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1403, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_goToAddNewTheme1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b99332e1-6f6b-42c3-88fa-c1ccc39b4599", + "parentUUID": "e7c4db1f-c0a3-49e8-b9ec-7fbc91eb5113", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "a5fb7f6c-baad-4d33-a93b-f72c2783b0a7", + "title": "Import from your computer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/01_addNewTheme.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/01_addNewTheme.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download theme from the web", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from your computer should download theme from the web", + "timedOut": false, + "duration": 330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_downloadTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.downloadFile(urlTheme, 'theme.zip')];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist('theme.zip')];\n case 3:\n found = _a.sent();\n (0, chai_1.expect)(found).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e24b20ec-b0eb-453a-8bd7-9d2c2c3561aa", + "parentUUID": "a5fb7f6c-baad-4d33-a93b-f72c2783b0a7", + "isHook": false, + "skipped": false + }, + { + "title": "should import theme from your computer", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from your computer should import theme from your computer", + "timedOut": false, + "duration": 970, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_importThemeFromComputer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importThemeFromComputer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromYourComputer(page, 'theme.zip')];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a4a56af-0692-4945-9a8b-1fcd07a60654", + "parentUUID": "a5fb7f6c-baad-4d33-a93b-f72c2783b0a7", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from your computer should remove the theme Hummingbird", + "timedOut": false, + "duration": 1176, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_removeThemeHummingbird1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e38dd528-219b-46ce-8c39-e573915cdc75", + "parentUUID": "a5fb7f6c-baad-4d33-a93b-f72c2783b0a7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e24b20ec-b0eb-453a-8bd7-9d2c2c3561aa", + "1a4a56af-0692-4945-9a8b-1fcd07a60654", + "e38dd528-219b-46ce-8c39-e573915cdc75" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2476, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9180d831-beb6-4f6e-a8e4-53fbf2aa5410", + "title": "Import from the web", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/01_addNewTheme.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/01_addNewTheme.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Add new theme' page", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from the web should go to 'Add new theme' page", + "timedOut": false, + "duration": 1351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_goToAddNewTheme2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "387a1f03-6532-49ed-bfeb-6f6639eab7a6", + "parentUUID": "9180d831-beb6-4f6e-a8e4-53fbf2aa5410", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from the web should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 1949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_importThemeFromWeb\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importThemeFromWeb', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bcef596-5fb3-47e5-a7d4-1afd7493000a", + "parentUUID": "9180d831-beb6-4f6e-a8e4-53fbf2aa5410", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from the web should remove the theme Hummingbird", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_removeThemeHummingbird2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cc30e92-88ef-4b23-a5d7-f2ebbb49ac3a", + "parentUUID": "9180d831-beb6-4f6e-a8e4-53fbf2aa5410", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "387a1f03-6532-49ed-bfeb-6f6639eab7a6", + "7bcef596-5fb3-47e5-a7d4-1afd7493000a", + "8cc30e92-88ef-4b23-a5d7-f2ebbb49ac3a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4109, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0e8101d6-5ce4-4741-8b4c-bc0f18bd4a69", + "title": "Import from FTP", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/01_addNewTheme.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/01_addNewTheme.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Add new theme' page", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from FTP should go to 'Add new theme' page", + "timedOut": false, + "duration": 1375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_goToAddNewTheme3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.downloadFile(urlTheme, '../../themes/theme.zip')];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfd84a11-e493-4f5c-b0de-c54aa35f7e68", + "parentUUID": "0e8101d6-5ce4-4741-8b4c-bc0f18bd4a69", + "isHook": false, + "skipped": false + }, + { + "title": "should import from FTP", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from FTP should import from FTP", + "timedOut": false, + "duration": 1388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_importFromFTP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importFromFTP', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromFTP(page, 'theme.zip')];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d6a29f2-2ff5-4b21-91f5-3d42534ff0bc", + "parentUUID": "0e8101d6-5ce4-4741-8b4c-bc0f18bd4a69", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "BO - Design - Theme & Logo : Add new theme Import from FTP should remove the theme Hummingbird", + "timedOut": false, + "duration": 765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_addNewTheme_removeThemeHummingbird3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e718adf-4f8a-4193-b770-4bf77ddf8bda", + "parentUUID": "0e8101d6-5ce4-4741-8b4c-bc0f18bd4a69", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dfd84a11-e493-4f5c-b0de-c54aa35f7e68", + "8d6a29f2-2ff5-4b21-91f5-3d42534ff0bc", + "5e718adf-4f8a-4193-b770-4bf77ddf8bda" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3528, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "559a3161-4cdb-4fbf-921f-8752e4719a43", + "52535371-8e6d-450c-a0dc-13148ebee43b", + "b99332e1-6f6b-42c3-88fa-c1ccc39b4599" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13132, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c2150312-4513-4d0b-8e66-153ae9fd756b", + "title": "BO - Design - Theme & Logo : Export current theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/02_exportCurrentTheme.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/01_themeAndLogo/02_exportCurrentTheme.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Theme & Logo : Export current theme\"", + "fullTitle": "BO - Design - Theme & Logo : Export current theme \"before all\" hook in \"BO - Design - Theme & Logo : Export current theme\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5832e340-9973-4544-99ff-60a5ee2cfa3f", + "parentUUID": "c2150312-4513-4d0b-8e66-153ae9fd756b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Theme & Logo : Export current theme\"", + "fullTitle": "BO - Design - Theme & Logo : Export current theme \"after all\" hook in \"BO - Design - Theme & Logo : Export current theme\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('../../themes/classic.zip')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ffa5be24-dfd3-4f68-8cbc-e27d93d60e60", + "parentUUID": "c2150312-4513-4d0b-8e66-153ae9fd756b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Theme & Logo : Export current theme should login in BO", + "timedOut": false, + "duration": 1800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00a2279c-f920-4fe8-80a7-e81845bf0e2d", + "parentUUID": "c2150312-4513-4d0b-8e66-153ae9fd756b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Design - Theme & Logo : Export current theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_exportCurrentTheme_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a188934b-1a65-43bb-a048-1cc9e6c06de6", + "parentUUID": "c2150312-4513-4d0b-8e66-153ae9fd756b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on export current theme button", + "fullTitle": "BO - Design - Theme & Logo : Export current theme should click on export current theme button", + "timedOut": false, + "duration": 2581, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_exportCurrentTheme_exportCurrentTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'exportCurrentTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.exportCurrentTheme(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(themeAndLogo_1.default.successExportMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "345c25e2-3515-4a95-a064-f4807eb4b754", + "parentUUID": "c2150312-4513-4d0b-8e66-153ae9fd756b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the theme is exported successfully", + "fullTitle": "BO - Design - Theme & Logo : Export current theme should check that the theme is exported successfully", + "timedOut": false, + "duration": 100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_themeAndLogo_exportCurrentTheme_checkTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist('../../themes/classic.zip')];\n case 2:\n found = _a.sent();\n (0, chai_1.expect)(found).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eed1109d-e8b6-4604-9caf-9379e739a7cf", + "parentUUID": "c2150312-4513-4d0b-8e66-153ae9fd756b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "00a2279c-f920-4fe8-80a7-e81845bf0e2d", + "a188934b-1a65-43bb-a048-1cc9e6c06de6", + "345c25e2-3515-4a95-a064-f4807eb4b754", + "eed1109d-e8b6-4604-9caf-9379e739a7cf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9334, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f8263230-09f3-4440-9afa-77d77554498f", + "title": "BO - Design - Theme & Logo : Enable/disable module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/02_pagesConfiguration/01_enableDisableModule.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/02_pagesConfiguration/01_enableDisableModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Theme & Logo : Enable/disable module\"", + "fullTitle": "BO - Design - Theme & Logo : Enable/disable module \"before all\" hook in \"BO - Design - Theme & Logo : Enable/disable module\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c77f6c10-5425-486c-be72-72f43d92135c", + "parentUUID": "f8263230-09f3-4440-9afa-77d77554498f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Theme & Logo : Enable/disable module\"", + "fullTitle": "BO - Design - Theme & Logo : Enable/disable module \"after all\" hook in \"BO - Design - Theme & Logo : Enable/disable module\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8cfe67a1-d33d-484d-b398-94ff0ca2d6e3", + "parentUUID": "f8263230-09f3-4440-9afa-77d77554498f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Theme & Logo : Enable/disable module should login in BO", + "timedOut": false, + "duration": 1801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43646a96-15bb-459f-bb29-4699abe945e3", + "parentUUID": "f8263230-09f3-4440-9afa-77d77554498f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Design - Theme & Logo : Enable/disable module should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_enableDisableModule_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14e2f7de-8e91-448c-916c-d79bcd589125", + "parentUUID": "f8263230-09f3-4440-9afa-77d77554498f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Pages configuration' page", + "fullTitle": "BO - Design - Theme & Logo : Enable/disable module should go to 'Pages configuration' page", + "timedOut": false, + "duration": 1555, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_enableDisableModule_goToPagesConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPagesConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToSubTabPagesConfiguration(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pagesConfiguration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdeaa646-2722-4333-bb7a-26dd3848e6fa", + "parentUUID": "f8263230-09f3-4440-9afa-77d77554498f", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the module", + "fullTitle": "BO - Design - Theme & Logo : Enable/disable module should disable the module", + "timedOut": false, + "duration": 1671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_enableDisableModule_disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.setActionInModule(page, modules_1.default.mainMenu, test.args.action)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(pagesConfiguration_1.default.successMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "907281b8-8001-4ac8-a5b1-39e817331318", + "parentUUID": "f8263230-09f3-4440-9afa-77d77554498f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the module", + "fullTitle": "BO - Design - Theme & Logo : Enable/disable module should enable the module", + "timedOut": false, + "duration": 4430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_enableDisableModule_enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.setActionInModule(page, modules_1.default.mainMenu, test.args.action)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(pagesConfiguration_1.default.successMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa27694d-f8ba-45d0-83c8-b7de56a2bae6", + "parentUUID": "f8263230-09f3-4440-9afa-77d77554498f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "43646a96-15bb-459f-bb29-4699abe945e3", + "14e2f7de-8e91-448c-916c-d79bcd589125", + "bdeaa646-2722-4333-bb7a-26dd3848e6fa", + "907281b8-8001-4ac8-a5b1-39e817331318", + "fa27694d-f8ba-45d0-83c8-b7de56a2bae6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14297, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "984de0aa-6b63-47b8-967a-286aa0bd74f4", + "title": "BO - Design - Theme & Logo : Reset module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/02_pagesConfiguration/02_resetModule.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/02_pagesConfiguration/02_resetModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Theme & Logo : Reset module\"", + "fullTitle": "BO - Design - Theme & Logo : Reset module \"before all\" hook in \"BO - Design - Theme & Logo : Reset module\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae720ea9-2be9-465d-b3bc-82b2abffce16", + "parentUUID": "984de0aa-6b63-47b8-967a-286aa0bd74f4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Theme & Logo : Reset module\"", + "fullTitle": "BO - Design - Theme & Logo : Reset module \"after all\" hook in \"BO - Design - Theme & Logo : Reset module\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1a19e4c5-d446-4ccc-b421-13396421aeda", + "parentUUID": "984de0aa-6b63-47b8-967a-286aa0bd74f4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Theme & Logo : Reset module should login in BO", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1028ec4-2d92-4903-8e35-d0de82a3f972", + "parentUUID": "984de0aa-6b63-47b8-967a-286aa0bd74f4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Design - Theme & Logo : Reset module should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_resetModule_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "219f7dd2-3cb4-4914-adfc-dd4df3f301ac", + "parentUUID": "984de0aa-6b63-47b8-967a-286aa0bd74f4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Pages configuration' page", + "fullTitle": "BO - Design - Theme & Logo : Reset module should go to 'Pages configuration' page", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_resetModule_goToPagesConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPagesConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToSubTabPagesConfiguration(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pagesConfiguration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3ce6ba7-9619-45b7-beb3-d8740ef0a042", + "parentUUID": "984de0aa-6b63-47b8-967a-286aa0bd74f4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the module", + "fullTitle": "BO - Design - Theme & Logo : Reset module should reset the module", + "timedOut": false, + "duration": 2361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_resetModule_resetModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.setActionInModule(page, modules_1.default.mainMenu, 'reset')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(pagesConfiguration_1.default.successMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27520ed8-5d2f-4945-bd1c-84b080aa1b82", + "parentUUID": "984de0aa-6b63-47b8-967a-286aa0bd74f4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b1028ec4-2d92-4903-8e35-d0de82a3f972", + "219f7dd2-3cb4-4914-adfc-dd4df3f301ac", + "a3ce6ba7-9619-45b7-beb3-d8740ef0a042", + "27520ed8-5d2f-4945-bd1c-84b080aa1b82" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9882, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "47c938b1-bc3c-4839-b2ee-1aefd28daa99", + "title": "BO - Design - Theme & Logo : Install/Uninstall module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/02_pagesConfiguration/03_installUninstallModule.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/02_pagesConfiguration/03_installUninstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Theme & Logo : Install/Uninstall module\"", + "fullTitle": "BO - Design - Theme & Logo : Install/Uninstall module \"before all\" hook in \"BO - Design - Theme & Logo : Install/Uninstall module\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "522d0d26-02e0-49c4-b17e-03a2eab7aa46", + "parentUUID": "47c938b1-bc3c-4839-b2ee-1aefd28daa99", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Theme & Logo : Install/Uninstall module\"", + "fullTitle": "BO - Design - Theme & Logo : Install/Uninstall module \"after all\" hook in \"BO - Design - Theme & Logo : Install/Uninstall module\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8a300a52-61bc-40fb-ae0b-d4b24d5a95d1", + "parentUUID": "47c938b1-bc3c-4839-b2ee-1aefd28daa99", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Theme & Logo : Install/Uninstall module should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4d55888-2844-4028-bc06-52dcf51111aa", + "parentUUID": "47c938b1-bc3c-4839-b2ee-1aefd28daa99", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Design - Theme & Logo : Install/Uninstall module should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_installUninstallModule_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d11e76ad-e587-4647-898e-db99037bb682", + "parentUUID": "47c938b1-bc3c-4839-b2ee-1aefd28daa99", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Pages configuration' page", + "fullTitle": "BO - Design - Theme & Logo : Install/Uninstall module should go to 'Pages configuration' page", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_installUninstallModule_goToPagesConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPagesConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToSubTabPagesConfiguration(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pagesConfiguration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "183712e2-f823-4864-aee4-3d10be63782e", + "parentUUID": "47c938b1-bc3c-4839-b2ee-1aefd28daa99", + "isHook": false, + "skipped": false + }, + { + "title": "should uninstall the module", + "fullTitle": "BO - Design - Theme & Logo : Install/Uninstall module should uninstall the module", + "timedOut": false, + "duration": 1768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_installUninstallModule_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.setActionInModule(page, modules_1.default.mainMenu, 'uninstall')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(pagesConfiguration_1.default.successMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27b8919d-4154-416b-ba6f-54b8b17b5f95", + "parentUUID": "47c938b1-bc3c-4839-b2ee-1aefd28daa99", + "isHook": false, + "skipped": false + }, + { + "title": "should install the module", + "fullTitle": "BO - Design - Theme & Logo : Install/Uninstall module should install the module", + "timedOut": false, + "duration": 4631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_pagesConfiguration_installUninstallModule_installModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'installModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.setActionInModule(page, modules_1.default.mainMenu, 'install')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(pagesConfiguration_1.default.successMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dadfbcc6-2039-4898-9208-317d5ae4c2d1", + "parentUUID": "47c938b1-bc3c-4839-b2ee-1aefd28daa99", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4d55888-2844-4028-bc06-52dcf51111aa", + "d11e76ad-e587-4647-898e-db99037bb682", + "183712e2-f823-4864-aee4-3d10be63782e", + "27b8919d-4154-416b-ba6f-54b8b17b5f95", + "dadfbcc6-2039-4898-9208-317d5ae4c2d1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13901, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3c6fc076-ab99-434c-be75-05d268d3c7d8", + "title": "BO - Design - Theme & Logo - Advanced Customization", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Theme & Logo - Advanced Customization\"", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization \"before all\" hook in \"BO - Design - Theme & Logo - Advanced Customization\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "974d4a43-f54e-46ee-9ed3-88df8d32a1df", + "parentUUID": "3c6fc076-ab99-434c-be75-05d268d3c7d8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Theme & Logo - Advanced Customization\"", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization \"after all\" hook in \"BO - Design - Theme & Logo - Advanced Customization\"", + "timedOut": false, + "duration": 18, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8cfe3690-cde9-413e-a0a1-ee23750cac06", + "parentUUID": "3c6fc076-ab99-434c-be75-05d268d3c7d8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization should login in BO", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c065389-bc75-4b24-aa0c-f82bd4cf3c08", + "parentUUID": "3c6fc076-ab99-434c-be75-05d268d3c7d8", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "647ddadd-5470-40ed-99d9-c20d4ca96adb", + "title": "BO - Modules - Check that the 'Theme Customization' module is installed and enabled ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Modules - Check that the 'Theme Customization' module is installed and enabled should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "566012ca-91aa-4841-a78a-69abdd1dff75", + "parentUUID": "647ddadd-5470-40ed-99d9-c20d4ca96adb", + "isHook": false, + "skipped": false + }, + { + "title": "should search for module Theme Customization", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Modules - Check that the 'Theme Customization' module is installed and enabled should search for module Theme Customization", + "timedOut": false, + "duration": 764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_searchForModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.themeCustomization)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, \"The module \".concat(modules_1.default.themeCustomization.name, \" is not installed\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad3e7c91-8410-47df-ba2a-1049428003cc", + "parentUUID": "647ddadd-5470-40ed-99d9-c20d4ca96adb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the status of the module Theme Customization", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Modules - Check that the 'Theme Customization' module is installed and enabled should check the status of the module Theme Customization", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_checkStatusModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.isModuleStatus(page, modules_1.default.themeCustomization.name, 'enable')];\n case 2:\n isModuleEnabled = _a.sent();\n (0, chai_1.expect)(isModuleEnabled, \"The module \".concat(modules_1.default.themeCustomization.name, \" is disabled\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97ae2cfa-1caf-4fad-ac18-b2413dd82c0c", + "parentUUID": "647ddadd-5470-40ed-99d9-c20d4ca96adb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "566012ca-91aa-4841-a78a-69abdd1dff75", + "ad3e7c91-8410-47df-ba2a-1049428003cc", + "97ae2cfa-1caf-4fad-ac18-b2413dd82c0c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5638, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "10e041ef-23da-4099-a4ca-c2e7be168803", + "title": "BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_goToThemeAndLogoPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e5ebf1b-74ce-49f9-a6a4-ec3edd00a8b2", + "parentUUID": "10e041ef-23da-4099-a4ca-c2e7be168803", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Customization' page", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it should go to 'Advanced Customization' page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_goToAdvancedCustomizationPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedCustomizationPage_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToSubTabAdvancedCustomization(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(advancedCustomization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "644a4466-87cc-4734-ac0d-aa15ced69fd0", + "parentUUID": "10e041ef-23da-4099-a4ca-c2e7be168803", + "isHook": false, + "skipped": false + }, + { + "title": "should download theme", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it should download theme", + "timedOut": false, + "duration": 221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_downloadTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.downloadTheme(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'Theme was not downloaded').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57e30071-7ec2-4731-a155-4b7adcc6e158", + "parentUUID": "10e041ef-23da-4099-a4ca-c2e7be168803", + "isHook": false, + "skipped": false + }, + { + "title": "should click on upload child theme button", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it should click on upload child theme button", + "timedOut": false, + "duration": 252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_clickOnUploadChildTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnUploadChildTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.clickOnUploadChildThemeButton(page)];\n case 2:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle, 'Modal \\'Upload child theme\\' is not displayed')\n .to.contains('Drop your child theme archive here or select file');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9407ba30-120f-476d-a4cf-28a930f588c8", + "parentUUID": "10e041ef-23da-4099-a4ca-c2e7be168803", + "isHook": false, + "skipped": false + }, + { + "title": "should upload child theme", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it should upload child theme", + "timedOut": false, + "duration": 480, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_uploadChildTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var uploadTheme;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uploadChildTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.renameFile(filePath, renamedFilePath)];\n case 2:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.uploadTheme(page, renamedFilePath)];\n case 3:\n uploadTheme = _a.sent();\n (0, chai_1.expect)(uploadTheme, 'Child theme is not uploaded')\n .to.contains('The child theme has been added successfully.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa614b1f-7275-44e9-8c02-a5b6d0208f9e", + "parentUUID": "10e041ef-23da-4099-a4ca-c2e7be168803", + "isHook": false, + "skipped": false + }, + { + "title": "should close the modal", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it should close the modal", + "timedOut": false, + "duration": 222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_closeModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.closeModal(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed, 'Modal not closed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84d2d6e3-81bb-4f69-885d-ee486999540b", + "parentUUID": "10e041ef-23da-4099-a4ca-c2e7be168803", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the zip file of the child theme from the themes folder", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it should remove the zip file of the child theme from the themes folder", + "timedOut": false, + "duration": 5110, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_removeZipFileChildThemeFromThemesFolder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var generatedFilePath, doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', 'removeZipFileChildThemeFromThemesFolder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilePathAutomaticallyGenerated(themesPath, renamedFilePath)];\n case 2:\n generatedFilePath = _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(generatedFilePath)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(generatedFilePath)];\n case 4:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bf50a1b-784b-42b1-8e9e-964ed423e841", + "parentUUID": "10e041ef-23da-4099-a4ca-c2e7be168803", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the zip file of the child theme from the temporary path", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization BO - Design - Theme & Logo - Advanced Customization : Download a child theme and upload it should remove the zip file of the child theme from the temporary path", + "timedOut": false, + "duration": 5110, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_removeChildThemeFromTemporaryPath\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', 'removeChildThemeFromTemporaryPath', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(renamedFilePath)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(renamedFilePath)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0028aed1-5bfa-4a9d-800a-5f4f936673b5", + "parentUUID": "10e041ef-23da-4099-a4ca-c2e7be168803", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1e5ebf1b-74ce-49f9-a6a4-ec3edd00a8b2", + "644a4466-87cc-4734-ac0d-aa15ced69fd0", + "57e30071-7ec2-4731-a155-4b7adcc6e158", + "9407ba30-120f-476d-a4cf-28a930f588c8", + "fa614b1f-7275-44e9-8c02-a5b6d0208f9e", + "84d2d6e3-81bb-4f69-885d-ee486999540b", + "2bf50a1b-784b-42b1-8e9e-964ed423e841", + "0028aed1-5bfa-4a9d-800a-5f4f936673b5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16822, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dea1eade-4192-4817-9c9b-6fc1c1bf8bf4", + "title": "Use the child theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization Use the child theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_goToThemeAndLogoPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46aa0fa6-d0e4-4fae-b42f-62bac19ea2e3", + "parentUUID": "dea1eade-4192-4817-9c9b-6fc1c1bf8bf4", + "isHook": false, + "skipped": false + }, + { + "title": "should use the child theme", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization Use the child theme should use the child theme", + "timedOut": false, + "duration": 1121, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_useChildTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'useChildTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.useTheme(page)];\n case 2:\n successResult = _a.sent();\n (0, chai_1.expect)(successResult).to.be.equal(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b833d084-aff1-4a94-8fd6-cf78271302d4", + "parentUUID": "dea1eade-4192-4817-9c9b-6fc1c1bf8bf4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view my shop", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization Use the child theme should click on view my shop", + "timedOut": false, + "duration": 2035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_clickOnViewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25d87b12-6e12-4d27-ae1e-758d0e0f87d0", + "parentUUID": "dea1eade-4192-4817-9c9b-6fc1c1bf8bf4", + "isHook": false, + "skipped": false + }, + { + "title": "should close the current page", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization Use the child theme should close the current page", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_closeCurrentPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeCurrentPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eced2dd-fac9-4a77-ac01-f00bc123ce7f", + "parentUUID": "dea1eade-4192-4817-9c9b-6fc1c1bf8bf4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "46aa0fa6-d0e4-4fae-b42f-62bac19ea2e3", + "b833d084-aff1-4a94-8fd6-cf78271302d4", + "25d87b12-6e12-4d27-ae1e-758d0e0f87d0", + "3eced2dd-fac9-4a77-ac01-f00bc123ce7f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8020, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d1cd1066-fbeb-4d40-bdd8-db9440def160", + "title": "Remove the child theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should use the classic theme", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization Remove the child theme should use the classic theme", + "timedOut": false, + "duration": 1085, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_useClassicTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'useClassicTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.useTheme(page)];\n case 2:\n successResult = _a.sent();\n (0, chai_1.expect)(successResult).to.be.equal(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89a22f78-5796-4764-bfa4-f9e8686051c9", + "parentUUID": "d1cd1066-fbeb-4d40-bdd8-db9440def160", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the child theme", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization Remove the child theme should delete the child theme", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_deleteChildTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteChildTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.deleteTheme(page)];\n case 2:\n successResult = _a.sent();\n (0, chai_1.expect)(successResult).to.be.equal(themeAndLogo_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2948638d-6e1c-46d6-9270-8ee4b9b640f6", + "parentUUID": "d1cd1066-fbeb-4d40-bdd8-db9440def160", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "89a22f78-5796-4764-bfa4-f9e8686051c9", + "2948638d-6e1c-46d6-9270-8ee4b9b640f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1940, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f2c9dcc1-f587-4044-829b-9ef93e368949", + "title": "How to use parents/child themes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "file": "/campaigns/functional/BO/08_design/01_themeAndLogo/03_advancedCustomization/01_advancedCustomization.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Customization' page", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization How to use parents/child themes should go to 'Advanced Customization' page", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_goToAdvancedCustomizationPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedCustomizationPage_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToSubTabAdvancedCustomization(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(advancedCustomization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ec2051f-91cc-416d-b769-cd8ee0abe1ad", + "parentUUID": "f2c9dcc1-f587-4044-829b-9ef93e368949", + "isHook": false, + "skipped": false + }, + { + "title": "should get the How to use parents/child themes link", + "fullTitle": "BO - Design - Theme & Logo - Advanced Customization How to use parents/child themes should get the How to use parents/child themes link", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_themeAndLogo_advancedCustomization_advancedCustomization_getHowToUseParentsChildThemesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var linkParentChildPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', 'getHowToUseParentsChildThemesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.getHowToUseParentsChildThemesLink(page)];\n case 2:\n linkParentChildPage = _a.sent();\n (0, chai_1.expect)(linkParentChildPage)\n .to\n .contains('https://devdocs.prestashop.com/1.7/themes/reference/template_inheritance/parent_child_feature/');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c55bc8f-88c6-4e91-8de8-0689f93ea484", + "parentUUID": "f2c9dcc1-f587-4044-829b-9ef93e368949", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2ec2051f-91cc-416d-b769-cd8ee0abe1ad", + "7c55bc8f-88c6-4e91-8de8-0689f93ea484" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 903, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "1c065389-bc75-4b24-aa0c-f82bd4cf3c08" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1760, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "78eb4192-91ee-4f63-bcf5-29d71dcd11a6", + "title": "BO - Design - Email Theme : Preview email theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/03_emailTheme/01_previewEmailThemes.ts", + "file": "/campaigns/functional/BO/08_design/03_emailTheme/01_previewEmailThemes.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Email Theme : Preview email theme\"", + "fullTitle": "BO - Design - Email Theme : Preview email theme \"before all\" hook in \"BO - Design - Email Theme : Preview email theme\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8536f0f7-4a88-4106-b360-5ac242b3bf98", + "parentUUID": "78eb4192-91ee-4f63-bcf5-29d71dcd11a6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Email Theme : Preview email theme\"", + "fullTitle": "BO - Design - Email Theme : Preview email theme \"after all\" hook in \"BO - Design - Email Theme : Preview email theme\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4dd4d8ff-9439-4a53-a07d-f7e5a46a8d69", + "parentUUID": "78eb4192-91ee-4f63-bcf5-29d71dcd11a6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Email Theme : Preview email theme should login in BO", + "timedOut": false, + "duration": 1862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c2201ac-a85d-42a2-84d8-5db96e447037", + "parentUUID": "78eb4192-91ee-4f63-bcf5-29d71dcd11a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Email Theme' page", + "fullTitle": "BO - Design - Email Theme : Preview email theme should go to 'Design > Email Theme' page", + "timedOut": false, + "duration": 4867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_previewEmailThemes_goToEmailThemePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailThemePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.emailThemeLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(emailThemes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d226b3c-2383-49c6-8147-cf0c9ae1696e", + "parentUUID": "78eb4192-91ee-4f63-bcf5-29d71dcd11a6", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "5cd4b9e9-191e-4904-8b43-61ea20c2c937", + "title": "Preview email theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/03_emailTheme/01_previewEmailThemes.ts", + "file": "/campaigns/functional/BO/08_design/03_emailTheme/01_previewEmailThemes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview email theme 'classic'", + "fullTitle": "BO - Design - Email Theme : Preview email theme Preview email theme should preview email theme 'classic'", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_previewEmailThemes_previewEmailTheme_classic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewEmailTheme_\".concat(test.args.emailThemeName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.previewEmailTheme(page, test.args.emailThemeName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preview_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(preview_1.default.pageTitle, \" \").concat(test.args.emailThemeName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "708148a2-4114-4565-ab62-b9040ddca2f8", + "parentUUID": "5cd4b9e9-191e-4904-8b43-61ea20c2c937", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of layouts", + "fullTitle": "BO - Design - Email Theme : Preview email theme Preview email theme should check number of layouts", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_previewEmailThemes_checkNumberLayouts_classic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLayouts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberLayouts_\".concat(test.args.emailThemeName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preview_1.default.getNumberOfLayoutInGrid(page)];\n case 2:\n numberOfLayouts = _a.sent();\n (0, chai_1.expect)(numberOfLayouts).to.equal(test.args.numberOfLayouts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e72e6626-c9c9-4742-b9e9-20ba37891c61", + "parentUUID": "5cd4b9e9-191e-4904-8b43-61ea20c2c937", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to email themes page", + "fullTitle": "BO - Design - Email Theme : Preview email theme Preview email theme should go back to email themes page", + "timedOut": false, + "duration": 770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_previewEmailThemes_backToEmailThemePageFromclassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"backToEmailThemePageFrom\".concat(test.args.emailThemeName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preview_1.default.goBackToEmailThemesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(emailThemes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31110d17-5ba5-45ca-a68f-9e086e3d8cf1", + "parentUUID": "5cd4b9e9-191e-4904-8b43-61ea20c2c937", + "isHook": false, + "skipped": false + }, + { + "title": "should preview email theme 'modern'", + "fullTitle": "BO - Design - Email Theme : Preview email theme Preview email theme should preview email theme 'modern'", + "timedOut": false, + "duration": 196, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_previewEmailThemes_previewEmailTheme_modern\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewEmailTheme_\".concat(test.args.emailThemeName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.previewEmailTheme(page, test.args.emailThemeName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preview_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(preview_1.default.pageTitle, \" \").concat(test.args.emailThemeName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76228c15-bb74-40ff-8431-0bb6f1e5367a", + "parentUUID": "5cd4b9e9-191e-4904-8b43-61ea20c2c937", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of layouts", + "fullTitle": "BO - Design - Email Theme : Preview email theme Preview email theme should check number of layouts", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_previewEmailThemes_checkNumberLayouts_modern\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLayouts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberLayouts_\".concat(test.args.emailThemeName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preview_1.default.getNumberOfLayoutInGrid(page)];\n case 2:\n numberOfLayouts = _a.sent();\n (0, chai_1.expect)(numberOfLayouts).to.equal(test.args.numberOfLayouts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da9eaae0-28b1-4314-95b1-c96219fc61d8", + "parentUUID": "5cd4b9e9-191e-4904-8b43-61ea20c2c937", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to email themes page", + "fullTitle": "BO - Design - Email Theme : Preview email theme Preview email theme should go back to email themes page", + "timedOut": false, + "duration": 764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_previewEmailThemes_backToEmailThemePageFrommodern\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"backToEmailThemePageFrom\".concat(test.args.emailThemeName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preview_1.default.goBackToEmailThemesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(emailThemes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6836f33-2d8b-4af9-963f-37f5ea9ea794", + "parentUUID": "5cd4b9e9-191e-4904-8b43-61ea20c2c937", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "708148a2-4114-4565-ab62-b9040ddca2f8", + "e72e6626-c9c9-4742-b9e9-20ba37891c61", + "31110d17-5ba5-45ca-a68f-9e086e3d8cf1", + "76228c15-bb74-40ff-8431-0bb6f1e5367a", + "da9eaae0-28b1-4314-95b1-c96219fc61d8", + "a6836f33-2d8b-4af9-963f-37f5ea9ea794" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1990, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "3c2201ac-a85d-42a2-84d8-5db96e447037", + "1d226b3c-2383-49c6-8147-cf0c9ae1696e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6729, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9bc43645-af54-4a8b-a411-bb1ee9ed84e7", + "title": "BO - Design - Email Theme : Select default email theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/03_emailTheme/02_selectDefaultEmailTheme.ts", + "file": "/campaigns/functional/BO/08_design/03_emailTheme/02_selectDefaultEmailTheme.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Email Theme : Select default email theme\"", + "fullTitle": "BO - Design - Email Theme : Select default email theme \"before all\" hook in \"BO - Design - Email Theme : Select default email theme\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "611f517f-16fd-4208-823c-b38845f7c0ef", + "parentUUID": "9bc43645-af54-4a8b-a411-bb1ee9ed84e7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Email Theme : Select default email theme\"", + "fullTitle": "BO - Design - Email Theme : Select default email theme \"after all\" hook in \"BO - Design - Email Theme : Select default email theme\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bae111be-a50b-4eaa-980c-0c72a0f2eecf", + "parentUUID": "9bc43645-af54-4a8b-a411-bb1ee9ed84e7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Email Theme : Select default email theme should login in BO", + "timedOut": false, + "duration": 1735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab7e5a35-5d75-4154-8247-b800bca69eb2", + "parentUUID": "9bc43645-af54-4a8b-a411-bb1ee9ed84e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Email Theme' page", + "fullTitle": "BO - Design - Email Theme : Select default email theme should go to 'Design > Email Theme' page", + "timedOut": false, + "duration": 4843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_selectDefaultEmailTheme_goToEmailThemePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailThemePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.emailThemeLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(emailThemes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aac190f9-ed28-42b8-aff9-7f6583fc31f1", + "parentUUID": "9bc43645-af54-4a8b-a411-bb1ee9ed84e7", + "isHook": false, + "skipped": false + }, + { + "title": "should select 'classic' as default email theme", + "fullTitle": "BO - Design - Email Theme : Select default email theme should select 'classic' as default email theme", + "timedOut": false, + "duration": 350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_selectDefaultEmailTheme_classicAsDefaultEmailTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(emailTheme, \"AsDefaultEmailTheme\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.selectDefaultEmailTheme(page, emailTheme)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(emailThemes_1.default.emailThemeConfigurationSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f903c271-1224-4800-b70e-4d2852a510f8", + "parentUUID": "9bc43645-af54-4a8b-a411-bb1ee9ed84e7", + "isHook": false, + "skipped": false + }, + { + "title": "should select 'modern' as default email theme", + "fullTitle": "BO - Design - Email Theme : Select default email theme should select 'modern' as default email theme", + "timedOut": false, + "duration": 859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_selectDefaultEmailTheme_modernAsDefaultEmailTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(emailTheme, \"AsDefaultEmailTheme\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.selectDefaultEmailTheme(page, emailTheme)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(emailThemes_1.default.emailThemeConfigurationSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9539b830-7376-4c93-ab47-eff83cb6648a", + "parentUUID": "9bc43645-af54-4a8b-a411-bb1ee9ed84e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ab7e5a35-5d75-4154-8247-b800bca69eb2", + "aac190f9-ed28-42b8-aff9-7f6583fc31f1", + "f903c271-1224-4800-b70e-4d2852a510f8", + "9539b830-7376-4c93-ab47-eff83cb6648a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7787, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b9ea7bca-cdb4-4553-ab00-0665528bd9ae", + "title": "BO - Design - Email Theme : View raw html and text", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/03_emailTheme/03_viewRawHtmlAndText.ts", + "file": "/campaigns/functional/BO/08_design/03_emailTheme/03_viewRawHtmlAndText.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Email Theme : View raw html and text\"", + "fullTitle": "BO - Design - Email Theme : View raw html and text \"before all\" hook in \"BO - Design - Email Theme : View raw html and text\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "596d7759-5654-4592-a3d7-0136b5dd9ff1", + "parentUUID": "b9ea7bca-cdb4-4553-ab00-0665528bd9ae", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Email Theme : View raw html and text\"", + "fullTitle": "BO - Design - Email Theme : View raw html and text \"after all\" hook in \"BO - Design - Email Theme : View raw html and text\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "da3bec28-7359-4686-bcdd-25e989528fd5", + "parentUUID": "b9ea7bca-cdb4-4553-ab00-0665528bd9ae", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Email Theme : View raw html and text should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00ded007-6160-4f3a-ad2b-e3d9472023c4", + "parentUUID": "b9ea7bca-cdb4-4553-ab00-0665528bd9ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Email Theme' page", + "fullTitle": "BO - Design - Email Theme : View raw html and text should go to 'Design > Email Theme' page", + "timedOut": false, + "duration": 4839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_viewRawHtmlAndText_goToEmailThemesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailThemesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.emailThemeLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(emailThemes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b53babe-5bb0-41da-ba50-fda36f4bf067", + "parentUUID": "b9ea7bca-cdb4-4553-ab00-0665528bd9ae", + "isHook": false, + "skipped": false + }, + { + "title": "should preview classic email theme", + "fullTitle": "BO - Design - Email Theme : View raw html and text should preview classic email theme", + "timedOut": false, + "duration": 217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_viewRawHtmlAndText_previewEmailTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewEmailTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, emailThemes_1.default.previewEmailTheme(page, emailThemeName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preview_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(\"\".concat(preview_1.default.pageTitle, \" \").concat(emailThemeName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9511a9e0-725e-4fd2-a218-8d828b1f88f0", + "parentUUID": "b9ea7bca-cdb4-4553-ab00-0665528bd9ae", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "2f70588b-74a4-4da3-a178-f570dd593ba1", + "title": "View raw html", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/03_emailTheme/03_viewRawHtmlAndText.ts", + "file": "/campaigns/functional/BO/08_design/03_emailTheme/03_viewRawHtmlAndText.ts", + "beforeHooks": [], + "afterHooks": [ + { + "title": "\"after all\" hook in \"View raw html\"", + "fullTitle": "BO - Design - Email Theme : View raw html and text View raw html \"after all\" hook in \"View raw html\"", + "timedOut": false, + "duration": 3, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return newPage.close();", + "err": {}, + "uuid": "a005bfc6-af45-4101-b20f-c5c8ee521ca1", + "parentUUID": "2f70588b-74a4-4da3-a178-f570dd593ba1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should view raw html and check its URL", + "fullTitle": "BO - Design - Email Theme : View raw html and text View raw html should view raw html and check its URL", + "timedOut": false, + "duration": 205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_viewRawHtmlAndText_viewRawHtml\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewRawHtml', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preview_1.default.viewRawHtml(page, 1)];\n case 2:\n newPage = _a.sent();\n (0, chai_1.expect)(newPage.url())\n .to.contain(emailThemeName)\n .and.to.contain('raw')\n .and.to.contain('.html');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c69fd994-27cd-4872-beff-5fa7f35e197d", + "parentUUID": "2f70588b-74a4-4da3-a178-f570dd593ba1", + "isHook": false, + "skipped": false + }, + { + "title": "should get text from page and check email format", + "fullTitle": "BO - Design - Email Theme : View raw html and text View raw html should get text from page and check email format", + "timedOut": false, + "duration": 44, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_viewRawHtmlAndText_checkRawHtmlText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkRawHtmlText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preview_1.default.getTextFromViewLayoutPage(newPage)];\n case 2:\n pageText = _a.sent();\n (0, chai_1.expect)(pageText)\n .to.contain(global.FO.URL)\n .and.to.contain('')\n .and.to.contain('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c6b5067-f9c2-4e4f-8805-878e166d520f", + "parentUUID": "2f70588b-74a4-4da3-a178-f570dd593ba1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c69fd994-27cd-4872-beff-5fa7f35e197d", + "5c6b5067-f9c2-4e4f-8805-878e166d520f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 249, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6bd2bb32-0246-4451-bc45-03155d4936a6", + "title": "View raw text", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/03_emailTheme/03_viewRawHtmlAndText.ts", + "file": "/campaigns/functional/BO/08_design/03_emailTheme/03_viewRawHtmlAndText.ts", + "beforeHooks": [], + "afterHooks": [ + { + "title": "\"after all\" hook in \"View raw text\"", + "fullTitle": "BO - Design - Email Theme : View raw html and text View raw text \"after all\" hook in \"View raw text\"", + "timedOut": false, + "duration": 2, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return newPage.close();", + "err": {}, + "uuid": "b4220f2d-670f-4457-a2ab-bfbbedd740ee", + "parentUUID": "6bd2bb32-0246-4451-bc45-03155d4936a6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should view raw text and check its URL", + "fullTitle": "BO - Design - Email Theme : View raw html and text View raw text should view raw text and check its URL", + "timedOut": false, + "duration": 172, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_viewRawHtmlAndText_viewRawText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewRawText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preview_1.default.viewRawText(page, 1)];\n case 2:\n newPage = _a.sent();\n (0, chai_1.expect)(newPage.url())\n .to.contain(emailThemeName)\n .and.to.contain('raw')\n .and.to.contain('.txt');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a81316ce-495e-42ab-8af2-0cf388e8207d", + "parentUUID": "6bd2bb32-0246-4451-bc45-03155d4936a6", + "isHook": false, + "skipped": false + }, + { + "title": "should get text from page and check format", + "fullTitle": "BO - Design - Email Theme : View raw html and text View raw text should get text from page and check format", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_emailTheme_viewRawHtmlAndText_checkRawTextPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkRawTextPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preview_1.default.getTextFromViewLayoutPage(newPage)];\n case 2:\n pageText = _a.sent();\n (0, chai_1.expect)(pageText)\n .to.contain(global.FO.URL)\n .and.to.contain('Hi');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63c2db0e-efa8-484b-8884-faf9add080dc", + "parentUUID": "6bd2bb32-0246-4451-bc45-03155d4936a6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a81316ce-495e-42ab-8af2-0cf388e8207d", + "63c2db0e-efa8-484b-8884-faf9add080dc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 202, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "00ded007-6160-4f3a-ad2b-e3d9472023c4", + "2b53babe-5bb0-41da-ba50-fda36f4bf067", + "9511a9e0-725e-4fd2-a218-8d828b1f88f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6785, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "92f29d9d-4f1a-4da0-bac0-3b776f7a2f26", + "title": "BO - Design - Pages : CRUD category and page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Pages : CRUD category and page\"", + "fullTitle": "BO - Design - Pages : CRUD category and page \"before all\" hook in \"BO - Design - Pages : CRUD category and page\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2168b58-4d4e-4f57-9b2a-7ee012272bc8", + "parentUUID": "92f29d9d-4f1a-4da0-bac0-3b776f7a2f26", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Pages : CRUD category and page\"", + "fullTitle": "BO - Design - Pages : CRUD category and page \"after all\" hook in \"BO - Design - Pages : CRUD category and page\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ddea09af-4d94-4511-a59e-c0483221ccd6", + "parentUUID": "92f29d9d-4f1a-4da0-bac0-3b776f7a2f26", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Pages : CRUD category and page should login in BO", + "timedOut": false, + "duration": 1708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2868aeda-04b3-42bb-b7d1-2eb52f418c04", + "parentUUID": "92f29d9d-4f1a-4da0-bac0-3b776f7a2f26", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - Design - Pages : CRUD category and page should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88cf905c-4f91-4d0a-8bd9-e6ee8b724076", + "parentUUID": "92f29d9d-4f1a-4da0-bac0-3b776f7a2f26", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of categories in BO", + "fullTitle": "BO - Design - Pages : CRUD category and page should reset all filters and get number of categories in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategories = _a.sent();\n if (numberOfCategories !== 0)\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50735ecd-197e-401c-8c90-a3d142d0c102", + "parentUUID": "92f29d9d-4f1a-4da0-bac0-3b776f7a2f26", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "title": "Create category in BO and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should go to add new page category", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToNewPageCategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewPageCategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dba1896d-2602-4961-9c61-04b8b2c9776b", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + }, + { + "title": "should create category ", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should create category ", + "timedOut": false, + "duration": 1173, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_CreatePageCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'CreatePageCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a90e39d-65c3-4736-9e82-3cf3d728ec39", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should go back to categories", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goBackToCategoriesAfterCreation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToCategoriesAfterCreation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "187cc1ba-7d45-48fd-aadc-c104b0919a07", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should check the categories number", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_checkCategoriesNumberAfterCreation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCategoriesNumberAfterCreation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac15b931-c9ee-417a-866b-9989a82eff9c", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new category and check result", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should search for the new category and check result", + "timedOut": false, + "duration": 951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_searchCreatedCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCreatedCategory1', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, 'input', 'name', createCategoryData.name)];\n case 2:\n _b.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'name')];\n case 3:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(createCategoryData.name);\n _a = parseInt;\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'id_cms_category')];\n case 4:\n // Get category ID\n categoryID = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3451a679-28fd-4c69-8226-914cccb573fd", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should view my shop", + "timedOut": false, + "duration": 1869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a02538ba-2991-4380-a752-129628031fac", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Sitemap' page", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should go to 'Sitemap' page", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToSiteMapPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSiteMapPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15efb383-7814-4500-9bfa-7a8cdde332de", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + }, + { + "title": "should check the created category", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should check the created category", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_checkCreatedCategoryFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageCategoryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedCategoryFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageCategoryName(page, categoryID)];\n case 2:\n pageCategoryName = _a.sent();\n (0, chai_1.expect)(pageCategoryName).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b8f3648-3e9e-45b0-925a-d9c1d5c011ff", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Design - Pages : CRUD category and page Create category in BO and check it in FO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eae2fd1d-75fa-4173-a5d1-7e0e3fdefb48", + "parentUUID": "e7860a3a-a35a-47c0-ad9d-88919539b356", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dba1896d-2602-4961-9c61-04b8b2c9776b", + "6a90e39d-65c3-4736-9e82-3cf3d728ec39", + "187cc1ba-7d45-48fd-aadc-c104b0919a07", + "ac15b931-c9ee-417a-866b-9989a82eff9c", + "3451a679-28fd-4c69-8226-914cccb573fd", + "a02538ba-2991-4380-a752-129628031fac", + "15efb383-7814-4500-9bfa-7a8cdde332de", + "8b8f3648-3e9e-45b0-925a-d9c1d5c011ff", + "eae2fd1d-75fa-4173-a5d1-7e0e3fdefb48" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6428, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "title": "Create page in BO and preview it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on view category", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should click on view category", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_viewCategoryToCreateNewPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCategoryToCreateNewPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.viewCategory(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74a7422a-0653-4e9d-beaf-d2ec2714f03d", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + }, + { + "title": "should get the pages number", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should get the pages number", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_checkNumberOfPages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfPages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, pagesTableName)];\n case 2:\n numberOfPages = _a.sent();\n (0, chai_1.expect)(numberOfPages).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d410424-c657-4633-a1f9-099be3e7521d", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should go to add new page", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToAddNewPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48c1b4e4-b7f6-479c-94b2-390ad7718abe", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + }, + { + "title": "should create page", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should create page", + "timedOut": false, + "duration": 1393, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_createPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df2a8e6e-a6a1-47ab-99a1-6a0e3f479b9a", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created page and check result", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should search for the created page and check result", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_checkCreatedPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, 'input', 'meta_title', createPageData.title)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, 1, 'meta_title')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createPageData.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db7719ec-4e6b-42bd-aba2-6ce615350ee0", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit page", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should go to edit page", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToCreatedPageForPreview\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreatedPageForPreview', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToEditPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle(createPageData.title));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8f1c0ae-7a64-4b8f-b1d1-fc489c08dc6a", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + }, + { + "title": "should preview the page in FO", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should preview the page in FO", + "timedOut": false, + "duration": 1190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_previewPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, metaTitle, pageContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewPage(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, cms_1.default.getTextContent(page, cms_1.default.pageTitle)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(createPageData.title);\n return [4 /*yield*/, cms_1.default.getPageTitle(page)];\n case 4:\n metaTitle = _a.sent();\n (0, chai_1.expect)(metaTitle).to.equal(createPageData.metaTitle);\n return [4 /*yield*/, cms_1.default.getTextContent(page, cms_1.default.pageContent)];\n case 5:\n pageContent = _a.sent();\n (0, chai_1.expect)(pageContent).to.include(createPageData.content);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a7d0600-ff20-4733-aa2b-24949caca9da", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should go back to BO", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cms_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle(createPageData.title));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02ff1e65-bbd4-4da7-946d-532c895e605b", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Design - Pages : CRUD category and page Create page in BO and preview it in FO should click on cancel button", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_cancelCreatedPageEdition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'cancelCreatedPageEdition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.cancelPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e606227e-8dc6-48f4-a1e0-3f779c448080", + "parentUUID": "ae246a34-6b4f-462b-b687-0a94c6a1e0f9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74a7422a-0653-4e9d-beaf-d2ec2714f03d", + "7d410424-c657-4633-a1f9-099be3e7521d", + "48c1b4e4-b7f6-479c-94b2-390ad7718abe", + "df2a8e6e-a6a1-47ab-99a1-6a0e3f479b9a", + "db7719ec-4e6b-42bd-aba2-6ce615350ee0", + "d8f1c0ae-7a64-4b8f-b1d1-fc489c08dc6a", + "5a7d0600-ff20-4733-aa2b-24949caca9da", + "02ff1e65-bbd4-4da7-946d-532c895e605b", + "e606227e-8dc6-48f4-a1e0-3f779c448080" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6947, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "title": "Update category in BO and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the created category and check result", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should search for the created category and check result", + "timedOut": false, + "duration": 952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_searchCreatedCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCreatedCategory2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, 'input', 'name', createCategoryData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35ec6ea2-516c-4b0d-a697-cfb2024bf4ec", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit category page", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should go to edit category page", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToEditCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToEditCategoryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fafebde-a166-4cdf-ba59-32d8723edd6f", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should update the created page category", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should update the created page category", + "timedOut": false, + "duration": 1293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_UpdateCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'UpdateCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditPageCategory(page, editCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04846dd6-7b8f-4669-a75c-acc671ade4d0", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should go back to categories list", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goBackToCategoriesAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToCategoriesAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6f5124d-4bc4-40a3-b26d-a27e076d5d20", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the updated category and check result", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should search for the updated category and check result", + "timedOut": false, + "duration": 956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_searchUpdatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchUpdatedCategory', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, 'input', 'name', editCategoryData.name)];\n case 2:\n _b.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'name')];\n case 3:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(editCategoryData.name);\n _a = parseInt;\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'id_cms_category')];\n case 4:\n categoryID = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8f087c1-af0e-4b48-a0a1-3d1fb398e82d", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should view my shop", + "timedOut": false, + "duration": 1581, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c91019b0-ba5d-4642-84ac-bfaf72ede1c9", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Sitemap' page", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should go to 'Sitemap' page", + "timedOut": false, + "duration": 753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToSiteMapPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSiteMapPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7150403f-53c9-4121-9cc7-2cd92accda50", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated category", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should check the updated category", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_checkUpdatedCategoryFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageCategoryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedCategoryFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageCategoryName(page, categoryID)];\n case 2:\n pageCategoryName = _a.sent();\n (0, chai_1.expect)(pageCategoryName).to.contains(editCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90bcd297-8139-4714-9e03-d0594f4996fd", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Design - Pages : CRUD category and page Update category in BO and check it in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b02977e0-a572-41a9-ba04-3967cb375665", + "parentUUID": "d9a19f6f-5de6-45ed-a684-3df72f0fa9eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "35ec6ea2-516c-4b0d-a697-cfb2024bf4ec", + "4fafebde-a166-4cdf-ba59-32d8723edd6f", + "04846dd6-7b8f-4669-a75c-acc671ade4d0", + "b6f5124d-4bc4-40a3-b26d-a27e076d5d20", + "b8f087c1-af0e-4b48-a0a1-3d1fb398e82d", + "c91019b0-ba5d-4642-84ac-bfaf72ede1c9", + "7150403f-53c9-4121-9cc7-2cd92accda50", + "90bcd297-8139-4714-9e03-d0594f4996fd", + "b02977e0-a572-41a9-ba04-3967cb375665" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7263, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "title": "Update page created in BO and preview it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on view category", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should click on view category", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_viewUpdatedCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewUpdatedCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.viewCategory(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97c26acf-e1c8-4a86-aae3-1550065f34b8", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created page and check result", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should search for the created page and check result", + "timedOut": false, + "duration": 903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_searchCreatedPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCreatedPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, 'input', 'meta_title', createPageData.title)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, 1, 'meta_title')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createPageData.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a95f636-a58c-4673-9e8f-316acbbc237c", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit page", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should go to edit page", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToCreatedPageForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreatedPageForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToEditPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle(createPageData.title));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41d863f0-2881-4ba7-a81a-951659551702", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + }, + { + "title": "should update the created page", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should update the created page", + "timedOut": false, + "duration": 1410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_updatePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updatePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, editPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee424d0c-dd1b-488a-be55-3a51ff03adf7", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the updated Page and check result", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should search for the updated Page and check result", + "timedOut": false, + "duration": 945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_searchUpdatedPageForPreview\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchUpdatedPageForPreview', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, 'input', 'meta_title', editPageData.title)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, 1, 'meta_title')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editPageData.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40121916-7d84-411a-8122-7b19927249e6", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit page", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should go to edit page", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goToUpdatedPageForPreview\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToUpdatedPageForPreview', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToEditPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle(editPageData.title));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71d74657-b73d-49cc-a57b-c79e3011ada1", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on preview button and check that the page does not exist in FO", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should click on preview button and check that the page does not exist in FO", + "timedOut": false, + "duration": 1131, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_previewUpdatedPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewUpdatedPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewPage(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, cms_1.default.getTextContent(page, cms_1.default.pageTitle)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.include(cms_1.default.pageNotFound);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "360d202f-a6ad-42e7-a3bf-14fe67c64309", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should go back to BO", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cms_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle(editPageData.title));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2136d4e0-4023-4faa-8572-da469a448ac9", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Design - Pages : CRUD category and page Update page created in BO and preview it in FO should click on cancel button", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_cancelUpdatedPageEdition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'cancelUpdatedPageEdition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.cancelPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e0c39e2-2015-4185-b116-a02789f1a28b", + "parentUUID": "121e88d2-6ae1-462e-a2ff-3a03927df2b6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97c26acf-e1c8-4a86-aae3-1550065f34b8", + "3a95f636-a58c-4673-9e8f-316acbbc237c", + "41d863f0-2881-4ba7-a81a-951659551702", + "ee424d0c-dd1b-488a-be55-3a51ff03adf7", + "40121916-7d84-411a-8122-7b19927249e6", + "71d74657-b73d-49cc-a57b-c79e3011ada1", + "360d202f-a6ad-42e7-a3bf-14fe67c64309", + "2136d4e0-4023-4faa-8572-da469a448ac9", + "0e0c39e2-2015-4185-b116-a02789f1a28b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7779, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cc94ab22-df53-42a8-b242-1627d2d02b15", + "title": "Delete page and category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/01_CRUDPageCategory.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on view category", + "fullTitle": "BO - Design - Pages : CRUD category and page Delete page and category should click on view category", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_viewCategoryForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCategoryForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.viewCategory(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e690589-883e-42db-b002-952cf60de473", + "parentUUID": "cc94ab22-df53-42a8-b242-1627d2d02b15", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the updated page to delete", + "fullTitle": "BO - Design - Pages : CRUD category and page Delete page and category should search for the updated page to delete", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_searchUpdatedPageForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchUpdatedPageForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, 'input', 'meta_title', editPageData.title)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, 1, 'meta_title')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editPageData.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a505d89f-6875-4dd3-96b1-c184a1375479", + "parentUUID": "cc94ab22-df53-42a8-b242-1627d2d02b15", + "isHook": false, + "skipped": false + }, + { + "title": "should delete page", + "fullTitle": "BO - Design - Pages : CRUD category and page Delete page and category should delete page", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_deletePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deletePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.deleteRowInTable(page, pagesTableName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71375ddc-1504-4394-a24d-e4224e690b95", + "parentUUID": "cc94ab22-df53-42a8-b242-1627d2d02b15", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Design - Pages : CRUD category and page Delete page and category should reset filter", + "timedOut": false, + "duration": 339, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_resetFilterPages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterDeletion;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterPages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTableName)];\n case 2:\n numberOfPagesAfterDeletion = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterDeletion).to.be.equal(numberOfPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1efce1f5-1211-4851-8fc5-061931f5fb58", + "parentUUID": "cc94ab22-df53-42a8-b242-1627d2d02b15", + "isHook": false, + "skipped": false + }, + { + "title": "should click on back to list", + "fullTitle": "BO - Design - Pages : CRUD category and page Delete page and category should click on back to list", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_goBackToCategoriesAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToCategoriesAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4c8ef45-e036-4746-bbe9-73f9bb93ac5d", + "parentUUID": "cc94ab22-df53-42a8-b242-1627d2d02b15", + "isHook": false, + "skipped": false + }, + { + "title": "should delete category", + "fullTitle": "BO - Design - Pages : CRUD category and page Delete page and category should delete category", + "timedOut": false, + "duration": 942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_deleteCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.deleteRowInTable(page, categoriesTableName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "842787cc-7554-40cc-8e63-b6eb812bb0af", + "parentUUID": "cc94ab22-df53-42a8-b242-1627d2d02b15", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Design - Pages : CRUD category and page Delete page and category should reset filter", + "timedOut": false, + "duration": 330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_CRUDPageCategory_resetFilterCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterDeletion;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterDeletion = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterDeletion).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44148c8b-9414-4dee-87e3-25be9f24708f", + "parentUUID": "cc94ab22-df53-42a8-b242-1627d2d02b15", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e690589-883e-42db-b002-952cf60de473", + "a505d89f-6875-4dd3-96b1-c184a1375479", + "71375ddc-1504-4394-a24d-e4224e690b95", + "1efce1f5-1211-4851-8fc5-061931f5fb58", + "d4c8ef45-e036-4746-bbe9-73f9bb93ac5d", + "842787cc-7554-40cc-8e63-b6eb812bb0af", + "44148c8b-9414-4dee-87e3-25be9f24708f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5077, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "2868aeda-04b3-42bb-b7d1-2eb52f418c04", + "88cf905c-4f91-4d0a-8bd9-e6ee8b724076", + "50735ecd-197e-401c-8c90-a3d142d0c102" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8682, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "64affe0c-388a-4e96-85df-59f3fc3c9e15", + "title": "BO - Design - Pages : Help card on pages page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/02_helpCard.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/02_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Pages : Help card on pages page\"", + "fullTitle": "BO - Design - Pages : Help card on pages page \"before all\" hook in \"BO - Design - Pages : Help card on pages page\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a64374c7-dc37-4805-9ac9-c62e01241286", + "parentUUID": "64affe0c-388a-4e96-85df-59f3fc3c9e15", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Pages : Help card on pages page\"", + "fullTitle": "BO - Design - Pages : Help card on pages page \"after all\" hook in \"BO - Design - Pages : Help card on pages page\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e7012dd0-3e1c-45c2-a9b3-6eecd9dfa865", + "parentUUID": "64affe0c-388a-4e96-85df-59f3fc3c9e15", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Pages : Help card on pages page should login in BO", + "timedOut": false, + "duration": 1747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05830452-f998-4d59-a6b3-5a66c6e38b05", + "parentUUID": "64affe0c-388a-4e96-85df-59f3fc3c9e15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - Design - Pages : Help card on pages page should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_helpCard_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da464855-d4d5-4965-a368-6d8ac75afab0", + "parentUUID": "64affe0c-388a-4e96-85df-59f3fc3c9e15", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Design - Pages : Help card on pages page should open the help side bar and check the document language", + "timedOut": false, + "duration": 129, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, pages_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de8b787a-7006-43e8-8b12-81af3c073f50", + "parentUUID": "64affe0c-388a-4e96-85df-59f3fc3c9e15", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Design - Pages : Help card on pages page should close the help side bar", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abf3ad2d-f720-41a8-9da1-428d3661ae10", + "parentUUID": "64affe0c-388a-4e96-85df-59f3fc3c9e15", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "05830452-f998-4d59-a6b3-5a66c6e38b05", + "da464855-d4d5-4965-a368-6d8ac75afab0", + "de8b787a-7006-43e8-8b12-81af3c073f50", + "abf3ad2d-f720-41a8-9da1-428d3661ae10" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6796, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "696a1369-7d52-42cd-9a5d-f191a61953c3", + "title": "BO - Design - Pages : Filter and quick edit categories table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/01_filterAndQuickEditCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/01_filterAndQuickEditCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Pages : Filter and quick edit categories table\"", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table \"before all\" hook in \"BO - Design - Pages : Filter and quick edit categories table\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae1d02f0-1550-4ba5-8faf-5f5610ab0162", + "parentUUID": "696a1369-7d52-42cd-9a5d-f191a61953c3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Pages : Filter and quick edit categories table\"", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table \"after all\" hook in \"BO - Design - Pages : Filter and quick edit categories table\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "805d77ff-e922-48f2-9459-f8d59402b7c7", + "parentUUID": "696a1369-7d52-42cd-9a5d-f191a61953c3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table should login in BO", + "timedOut": false, + "duration": 1688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "435efed4-e801-45fc-beb7-d04d6f4695a3", + "parentUUID": "696a1369-7d52-42cd-9a5d-f191a61953c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc26e3a5-e401-4718-9cd7-f94b528124c7", + "parentUUID": "696a1369-7d52-42cd-9a5d-f191a61953c3", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "4aabd3b7-945d-4365-bea4-8a5e747584a7", + "title": "Create 2 categories then filter the table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/01_filterAndQuickEditCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/01_filterAndQuickEditCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new category", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Create 2 categories then filter the table should go to add new category", + "timedOut": false, + "duration": 775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_goToAddCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd03068d-855b-490f-a41c-4baac82421f4", + "parentUUID": "4aabd3b7-945d-4365-bea4-8a5e747584a7", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°1", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Create 2 categories then filter the table should create category n°1", + "timedOut": false, + "duration": 1130, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_createCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, categoryToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03448a2c-251f-45e7-80d1-9f1194aa91a4", + "parentUUID": "4aabd3b7-945d-4365-bea4-8a5e747584a7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Create 2 categories then filter the table should go back to categories list", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_backToCategories1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"backToCategories\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "048ad315-1666-480f-ab89-8a78664848c8", + "parentUUID": "4aabd3b7-945d-4365-bea4-8a5e747584a7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new category", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Create 2 categories then filter the table should go to add new category", + "timedOut": false, + "duration": 763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_goToAddCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03212d35-cb6d-49bb-ad3f-2ce5d36ca4ef", + "parentUUID": "4aabd3b7-945d-4365-bea4-8a5e747584a7", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°2", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Create 2 categories then filter the table should create category n°2", + "timedOut": false, + "duration": 1278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_createCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, categoryToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b4604cb-7369-4ceb-b52b-858233cc349b", + "parentUUID": "4aabd3b7-945d-4365-bea4-8a5e747584a7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Create 2 categories then filter the table should go back to categories list", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_backToCategories2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"backToCategories\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14fac993-fb78-4048-b308-bcbc417ef056", + "parentUUID": "4aabd3b7-945d-4365-bea4-8a5e747584a7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dd03068d-855b-490f-a41c-4baac82421f4", + "03448a2c-251f-45e7-80d1-9f1194aa91a4", + "048ad315-1666-480f-ab89-8a78664848c8", + "03212d35-cb6d-49bb-ad3f-2ce5d36ca4ef", + "2b4604cb-7369-4ceb-b52b-858233cc349b", + "14fac993-fb78-4048-b308-bcbc417ef056" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5530, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "title": "Filter categories table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/01_filterAndQuickEditCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/01_filterAndQuickEditCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should reset filter and get number of categories in BO", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should reset filter and get number of categories in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_resetBeforeFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetBeforeFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75df9136-56af-41f0-b27c-56466d0cb19e", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by id_cms_category '1'", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should filter by id_cms_category '1'", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_filterIdCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.most(numberOfCategories);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, pages_1.default.getStatus(page, categoriesTableName, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81d2ff3a-4111-40e7-8da5-d3d7348afcc7", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should reset all filters", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_reset_filterIdCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"reset_\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb9c5b0b-5286-4463-8f4d-9617afe2b864", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Toys'", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should filter by name 'Toys'", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.most(numberOfCategories);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, pages_1.default.getStatus(page, categoriesTableName, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54fffbf0-83aa-4d67-9a7d-c5a83ea487d5", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should reset all filters", + "timedOut": false, + "duration": 331, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_reset_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"reset_\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cadbaf5c-f9e5-4d77-868c-99a72b0369ab", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by description 'Decumbo corroboro aegrus patior desipio confugo subnecto solvo tondeo voveo.'", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should filter by description 'Decumbo corroboro aegrus patior desipio confugo subnecto solvo tondeo voveo.'", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_filterDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.most(numberOfCategories);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, pages_1.default.getStatus(page, categoriesTableName, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca58c385-821d-4974-ab89-cdcb2268ddc3", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should reset all filters", + "timedOut": false, + "duration": 317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_reset_filterDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"reset_\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0228175-7bca-4ab2-87b8-2ea3726fbdc9", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should filter by active '1'", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, i, categoryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.most(numberOfCategories);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, pages_1.default.getStatus(page, categoriesTableName, i)];\n case 5:\n categoryStatus = _a.sent();\n (0, chai_1.expect)(categoryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ccc74d3-7031-4d01-84e0-79f98d6f9782", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Filter categories table should reset all filters", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_reset_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"reset_\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39013f39-1a08-4d81-8613-3c61b84a087e", + "parentUUID": "a8a9c8d0-38d3-43c7-b75a-72d92d12b203", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75df9136-56af-41f0-b27c-56466d0cb19e", + "81d2ff3a-4111-40e7-8da5-d3d7348afcc7", + "eb9c5b0b-5286-4463-8f4d-9617afe2b864", + "54fffbf0-83aa-4d67-9a7d-c5a83ea487d5", + "cadbaf5c-f9e5-4d77-868c-99a72b0369ab", + "ca58c385-821d-4974-ab89-cdcb2268ddc3", + "e0228175-7bca-4ab2-87b8-2ea3726fbdc9", + "4ccc74d3-7031-4d01-84e0-79f98d6f9782", + "39013f39-1a08-4d81-8613-3c61b84a087e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7080, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "44e31312-33c1-45ec-a9b4-32524f5a0d90", + "title": "Quick edit categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/01_filterAndQuickEditCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/01_filterAndQuickEditCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by category name 'Toys'", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Quick edit categories should filter by category name 'Toys'", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_filterForBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, 'input', 'name', firstCategoryData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 3:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.at.most(numberOfCategories);\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(firstCategoryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41d905ca-4712-4aa7-9ff7-eb6194ce2f02", + "parentUUID": "44e31312-33c1-45ec-a9b4-32524f5a0d90", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the category", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Quick edit categories should disable the category", + "timedOut": false, + "duration": 359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_bulkdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(categoryStatus.args.status), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.setStatus(page, categoriesTableName, 1, categoryStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, pages_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(pages_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, pages_1.default.getStatus(page, categoriesTableName, 1)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(categoryStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeb4f300-7c37-4b34-adf5-34fb3fcb0998", + "parentUUID": "44e31312-33c1-45ec-a9b4-32524f5a0d90", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Quick edit categories should reset all filters", + "timedOut": false, + "duration": 334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_resetAfterdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(categoryStatus.args.status), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c740efe-2a1d-4287-b17a-953472a4a505", + "parentUUID": "44e31312-33c1-45ec-a9b4-32524f5a0d90", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the category", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Quick edit categories should enable the category", + "timedOut": false, + "duration": 354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_bulkenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(categoryStatus.args.status), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.setStatus(page, categoriesTableName, 1, categoryStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, pages_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(pages_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, pages_1.default.getStatus(page, categoriesTableName, 1)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(categoryStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1983ac9-3c44-42d1-805b-fc86cae6f438", + "parentUUID": "44e31312-33c1-45ec-a9b4-32524f5a0d90", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Quick edit categories should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_resetAfterenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(categoryStatus.args.status), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8b1fd69-f045-496e-8154-95cee5f01d5f", + "parentUUID": "44e31312-33c1-45ec-a9b4-32524f5a0d90", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories with Bulk Actions and check result", + "fullTitle": "BO - Design - Pages : Filter and quick edit categories table Quick edit categories should delete categories with Bulk Actions and check result", + "timedOut": false, + "duration": 951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_filterAndQuickEditCategories_bulkDeleteCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.deleteWithBulkActions(page, categoriesTableName)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(pages_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddf5facd-532c-408a-b85e-3d5cd5fe6193", + "parentUUID": "44e31312-33c1-45ec-a9b4-32524f5a0d90", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "41d905ca-4712-4aa7-9ff7-eb6194ce2f02", + "aeb4f300-7c37-4b34-adf5-34fb3fcb0998", + "2c740efe-2a1d-4287-b17a-953472a4a505", + "f1983ac9-3c44-42d1-805b-fc86cae6f438", + "f8b1fd69-f045-496e-8154-95cee5f01d5f", + "ddf5facd-532c-408a-b85e-3d5cd5fe6193" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4936, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "435efed4-e801-45fc-beb7-d04d6f4695a3", + "cc26e3a5-e401-4718-9cd7-f94b528124c7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6564, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ad9d0ed6-1b4f-4f27-9d00-f553ee54b187", + "title": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/02_categoriesBulkActions.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/02_categoriesBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions\"", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions \"before all\" hook in \"BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4035abf4-23ac-48ea-ae2c-08915e2f03ce", + "parentUUID": "ad9d0ed6-1b4f-4f27-9d00-f553ee54b187", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions\"", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions \"after all\" hook in \"BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5702681e-b2d6-4384-b92b-c6d18d89f494", + "parentUUID": "ad9d0ed6-1b4f-4f27-9d00-f553ee54b187", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50019791-7292-4596-8e46-87c263d5e745", + "parentUUID": "ad9d0ed6-1b4f-4f27-9d00-f553ee54b187", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dcf5bd1-42a6-4f36-b371-775633c7eb4e", + "parentUUID": "ad9d0ed6-1b4f-4f27-9d00-f553ee54b187", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of categories in BO", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions should reset filter and get number of categories in BO", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategories = _a.sent();\n if (numberOfCategories !== 0) {\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5167f83-06c6-4e6d-8df3-d8da6fa357c3", + "parentUUID": "ad9d0ed6-1b4f-4f27-9d00-f553ee54b187", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "8dd606ad-b62f-4a45-ba84-c37eab56a08d", + "title": "Create 2 categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/02_categoriesBulkActions.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/02_categoriesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Create 2 categories should go to add new page category", + "timedOut": false, + "duration": 763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_goToAddCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f969753e-9e4a-4698-be17-3b711e79c59d", + "parentUUID": "8dd606ad-b62f-4a45-ba84-c37eab56a08d", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n° 1", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Create 2 categories should create category n° 1", + "timedOut": false, + "duration": 1161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_createCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, categoryToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3cc41d3-a8ff-4730-86b6-96b46575791d", + "parentUUID": "8dd606ad-b62f-4a45-ba84-c37eab56a08d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Create 2 categories should go back to categories list", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_backToCategories1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"backToCategories\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de0bba53-da46-4690-819d-ceb5cb79d01b", + "parentUUID": "8dd606ad-b62f-4a45-ba84-c37eab56a08d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Create 2 categories should go to add new page category", + "timedOut": false, + "duration": 758, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_goToAddCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e48a39c-2120-4160-a2e0-41c6171180c0", + "parentUUID": "8dd606ad-b62f-4a45-ba84-c37eab56a08d", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n° 2", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Create 2 categories should create category n° 2", + "timedOut": false, + "duration": 1210, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_createCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, categoryToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f57f379-5665-4089-ade8-1a40eaaf0e5b", + "parentUUID": "8dd606ad-b62f-4a45-ba84-c37eab56a08d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Create 2 categories should go back to categories list", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_backToCategories2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"backToCategories\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddb1df4f-69ff-4b60-9af7-614ee3d6b713", + "parentUUID": "8dd606ad-b62f-4a45-ba84-c37eab56a08d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f969753e-9e4a-4698-be17-3b711e79c59d", + "e3cc41d3-a8ff-4730-86b6-96b46575791d", + "de0bba53-da46-4690-819d-ceb5cb79d01b", + "9e48a39c-2120-4160-a2e0-41c6171180c0", + "5f57f379-5665-4089-ade8-1a40eaaf0e5b", + "ddb1df4f-69ff-4b60-9af7-614ee3d6b713" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5478, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4e3cb42e-7df8-422d-a6ab-880a81cb2b29", + "title": "Enable and Disable categories with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/02_categoriesBulkActions.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/02_categoriesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by Name", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Enable and Disable categories with Bulk Actions should filter list by Name", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_filterToChangeStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToChangeStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e78b6542-0663-429b-8024-c46e30a504de", + "parentUUID": "4e3cb42e-7df8-422d-a6ab-880a81cb2b29", + "isHook": false, + "skipped": false + }, + { + "title": "should disable categories with bulk actions and check result", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Enable and Disable categories with Bulk Actions should disable categories with bulk actions and check result", + "timedOut": false, + "duration": 462, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_disableCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(categoryStatus.args.status, \"Category\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.bulkSetStatus(page, categoriesTableName, categoryStatus.args.enable)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(pages_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 3:\n numberOfCategoriesInGrid = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, pages_1.default.getStatus(page, categoriesTableName, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(categoryStatus.args.enable);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7050a4d-4ef5-408c-817a-b82cd48495f2", + "parentUUID": "4e3cb42e-7df8-422d-a6ab-880a81cb2b29", + "isHook": false, + "skipped": false + }, + { + "title": "should enable categories with bulk actions and check result", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Enable and Disable categories with Bulk Actions should enable categories with bulk actions and check result", + "timedOut": false, + "duration": 450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_enableCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCategoriesInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(categoryStatus.args.status, \"Category\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.bulkSetStatus(page, categoriesTableName, categoryStatus.args.enable)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(pages_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 3:\n numberOfCategoriesInGrid = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCategoriesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, pages_1.default.getStatus(page, categoriesTableName, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(categoryStatus.args.enable);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d22f27d-3d4a-42f7-9128-5662beace275", + "parentUUID": "4e3cb42e-7df8-422d-a6ab-880a81cb2b29", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e78b6542-0663-429b-8024-c46e30a504de", + "b7050a4d-4ef5-408c-817a-b82cd48495f2", + "0d22f27d-3d4a-42f7-9128-5662beace275" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1840, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d0e1e4bd-1ed7-4737-b957-63cf4efad776", + "title": "Delete categories with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/02_categoriesBulkActions.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/02_categoriesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by Name", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Delete categories with Bulk Actions should filter list by Name", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02dfc5c2-974c-4d09-8bd6-faa088f3005b", + "parentUUID": "d0e1e4bd-1ed7-4737-b957-63cf4efad776", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Delete categories with Bulk Actions should delete categories", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_bulkDeleteCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.deleteWithBulkActions(page, categoriesTableName)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(pages_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0840537f-6074-4e01-bf35-536265cba46e", + "parentUUID": "d0e1e4bd-1ed7-4737-b957-63cf4efad776", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete categories with Bulk Actions Delete categories with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_categoriesBulkActions_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b07e41c-a3da-4db9-bae1-73b74cc2c42b", + "parentUUID": "d0e1e4bd-1ed7-4737-b957-63cf4efad776", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "02dfc5c2-974c-4d09-8bd6-faa088f3005b", + "0840537f-6074-4e01-bf35-536265cba46e", + "8b07e41c-a3da-4db9-bae1-73b74cc2c42b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2202, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "50019791-7292-4596-8e46-87c263d5e745", + "2dcf5bd1-42a6-4f36-b371-775633c7eb4e", + "d5167f83-06c6-4e6d-8df3-d8da6fa357c3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8596, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5178aaed-0e20-498d-9c20-94d55048c505", + "title": "BO - Design - Pages : Pagination and sort categories table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Pages : Pagination and sort categories table\"", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table \"before all\" hook in \"BO - Design - Pages : Pagination and sort categories table\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bd25f58-2331-4bad-be1f-81a122bbe20c", + "parentUUID": "5178aaed-0e20-498d-9c20-94d55048c505", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Pages : Pagination and sort categories table\"", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table \"after all\" hook in \"BO - Design - Pages : Pagination and sort categories table\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1507a504-3123-4deb-bcc4-d0caa3dab514", + "parentUUID": "5178aaed-0e20-498d-9c20-94d55048c505", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56d8c3fd-592f-40b5-aef8-aa384dd954e0", + "parentUUID": "5178aaed-0e20-498d-9c20-94d55048c505", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc056a21-7348-48a4-b1b2-2fd16f6c374c", + "parentUUID": "5178aaed-0e20-498d-9c20-94d55048c505", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of categories in BO", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table should reset all filters and get number of categories in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategories = _a.sent();\n if (numberOfCategories !== 0)\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "310247e1-4488-4d6b-a292-323ef30a3406", + "parentUUID": "5178aaed-0e20-498d-9c20-94d55048c505", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "title": "Create 11 categories in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc9116ce-b71e-4aec-b280-df96eb9ee54d", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°1", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°1", + "timedOut": false, + "duration": 1218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce86eb14-e1b0-4cd6-a05c-f8f140047397", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f19bb8c3-75ea-4a53-b3da-dcbc326f8cbe", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2138d4a7-b18c-4469-a96e-63462d77f840", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99b584c5-0457-4d60-9deb-a0cc7363ab38", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°2", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°2", + "timedOut": false, + "duration": 1161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c4a9a65-a35c-481b-849d-12c74761b244", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a4fb20a-e884-4980-a8c2-c16e5073acba", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6df7c60-5952-48a1-b1b6-4205049cbf5e", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ddbcc71-1b67-40a5-becf-1728c36748db", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°3", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°3", + "timedOut": false, + "duration": 1120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09331a6e-f06d-4275-a01f-3a2ec8326a35", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7fc2490-e0e9-4465-b681-fc71c5cbffe5", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dc9c256-e078-467b-b4c8-468de363eb2e", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "978db364-2772-475e-92f2-fc7ae745738f", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°4", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°4", + "timedOut": false, + "duration": 1189, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e14ddcea-71f6-40d6-a41b-d16ad775665b", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d74a321c-ad63-4bc2-a10b-dbff8cb885ab", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ebb54c4-b100-4b35-8e10-7190cf325be7", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53a3ecab-53dd-4a6d-a740-ff2b1392677a", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°5", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°5", + "timedOut": false, + "duration": 1203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbb85470-33b9-4372-90e9-f085b38dc388", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc3ed817-604b-4e45-8d05-1e22ea750094", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82401a20-1631-49e3-b6f5-dd30f9bd112a", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29bacf40-f09f-4770-b4af-ae12bb53aff0", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°6", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°6", + "timedOut": false, + "duration": 1194, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "670f1ef8-e33f-4f26-8ef6-0e2a5b426dce", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e211749-3b48-4f7e-82d9-3ee14cb40f8f", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd319c85-4d40-416b-9699-f79fbbc62ef6", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b77cd786-0406-4411-96ce-e809c4cb0324", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°7", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°7", + "timedOut": false, + "duration": 1156, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5807b15-d331-41e1-b7aa-7884e3d87fe5", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37535675-4a9a-49e6-9f5f-50d6daf23338", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c643d6e-3d25-454d-bfe3-112fda9ce9ae", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51440f3f-c7e2-4d45-93f5-a87dd73989b2", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°8", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°8", + "timedOut": false, + "duration": 1132, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "034c736a-fbf3-406e-8943-77ecbb476e21", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f017c7d-8c04-48d1-89ae-e7a8c6e680fe", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c72f0a6-7b77-4f87-a1d1-221ed9d64af3", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69c57ca7-45c7-481c-a1af-0d5b86b3afca", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°9", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°9", + "timedOut": false, + "duration": 1325, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c65dc93-f50c-4619-8aec-48a8cb4877e1", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d9bc738-7535-4169-9362-cc9292c9ffdb", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce363470-8aeb-460c-a18d-b40c61865c77", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b152d143-8001-4f4b-b438-d1b2de1485d6", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°10", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°10", + "timedOut": false, + "duration": 1178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "415360dc-8101-49a4-96d4-36c47ebf82f3", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "628acfa8-9d7a-41b3-8b86-1d9e9b2b25d6", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "630a3f18-c65b-40e8-8347-54b18d6da3af", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page category", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go to add new page category", + "timedOut": false, + "duration": 759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goToNewPageCategoryPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPageCategoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPageCategory(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4792f909-f9e0-4405-82d2-f2a62ffb71fc", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should create category n°11", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should create category n°11", + "timedOut": false, + "duration": 1188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_CreatePageCategory10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreatePageCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPageCategory(page, createCategoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ac55899-3d15-43c1-8d2c-5e6d8779087c", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to categories list", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should go back to categories list", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_goBackToCategories10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToCategories\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.backToList(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10f4de08-beb6-41f3-9a63-7ec0f34c6da1", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + }, + { + "title": "should check the categories number", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Create 11 categories in BO should check the categories number", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_checkCategoriesNumber10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoriesNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterCreation).to.be.equal(numberOfCategories + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6e25a9b-2972-48dc-86af-8b51173043f4", + "parentUUID": "c920aa8b-6220-4a5f-b9ef-bcd398918b13", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dc9116ce-b71e-4aec-b280-df96eb9ee54d", + "ce86eb14-e1b0-4cd6-a05c-f8f140047397", + "f19bb8c3-75ea-4a53-b3da-dcbc326f8cbe", + "2138d4a7-b18c-4469-a96e-63462d77f840", + "99b584c5-0457-4d60-9deb-a0cc7363ab38", + "3c4a9a65-a35c-481b-849d-12c74761b244", + "8a4fb20a-e884-4980-a8c2-c16e5073acba", + "d6df7c60-5952-48a1-b1b6-4205049cbf5e", + "5ddbcc71-1b67-40a5-becf-1728c36748db", + "09331a6e-f06d-4275-a01f-3a2ec8326a35", + "a7fc2490-e0e9-4465-b681-fc71c5cbffe5", + "8dc9c256-e078-467b-b4c8-468de363eb2e", + "978db364-2772-475e-92f2-fc7ae745738f", + "e14ddcea-71f6-40d6-a41b-d16ad775665b", + "d74a321c-ad63-4bc2-a10b-dbff8cb885ab", + "2ebb54c4-b100-4b35-8e10-7190cf325be7", + "53a3ecab-53dd-4a6d-a740-ff2b1392677a", + "cbb85470-33b9-4372-90e9-f085b38dc388", + "fc3ed817-604b-4e45-8d05-1e22ea750094", + "82401a20-1631-49e3-b6f5-dd30f9bd112a", + "29bacf40-f09f-4770-b4af-ae12bb53aff0", + "670f1ef8-e33f-4f26-8ef6-0e2a5b426dce", + "8e211749-3b48-4f7e-82d9-3ee14cb40f8f", + "fd319c85-4d40-416b-9699-f79fbbc62ef6", + "b77cd786-0406-4411-96ce-e809c4cb0324", + "b5807b15-d331-41e1-b7aa-7884e3d87fe5", + "37535675-4a9a-49e6-9f5f-50d6daf23338", + "2c643d6e-3d25-454d-bfe3-112fda9ce9ae", + "51440f3f-c7e2-4d45-93f5-a87dd73989b2", + "034c736a-fbf3-406e-8943-77ecbb476e21", + "7f017c7d-8c04-48d1-89ae-e7a8c6e680fe", + "7c72f0a6-7b77-4f87-a1d1-221ed9d64af3", + "69c57ca7-45c7-481c-a1af-0d5b86b3afca", + "0c65dc93-f50c-4619-8aec-48a8cb4877e1", + "1d9bc738-7535-4169-9362-cc9292c9ffdb", + "ce363470-8aeb-460c-a18d-b40c61865c77", + "b152d143-8001-4f4b-b438-d1b2de1485d6", + "415360dc-8101-49a4-96d4-36c47ebf82f3", + "628acfa8-9d7a-41b3-8b86-1d9e9b2b25d6", + "630a3f18-c65b-40e8-8347-54b18d6da3af", + "4792f909-f9e0-4405-82d2-f2a62ffb71fc", + "5ac55899-3d15-43c1-8d2c-5e6d8779087c", + "10f4de08-beb6-41f3-9a63-7ec0f34c6da1", + "f6e25a9b-2972-48dc-86af-8b51173043f4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 30493, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dfed106c-fd5a-44e7-a06d-e2df2d8a40fc", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.selectCategoryPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a8c66cf-ab50-4c82-b04f-2c504e4ab680", + "parentUUID": "dfed106c-fd5a-44e7-a06d-e2df2d8a40fc", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Pagination next and previous should click on next", + "timedOut": false, + "duration": 827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.paginationCategoryNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9279f86-07a0-4c01-958f-2fb1ae0642f1", + "parentUUID": "dfed106c-fd5a-44e7-a06d-e2df2d8a40fc", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.paginationCategoryPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bc64cbe-699d-42f5-9f45-169ac964c161", + "parentUUID": "dfed106c-fd5a-44e7-a06d-e2df2d8a40fc", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.selectCategoryPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c62e8dc-52bb-4480-8347-db10ca7916ea", + "parentUUID": "dfed106c-fd5a-44e7-a06d-e2df2d8a40fc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6a8c66cf-ab50-4c82-b04f-2c504e4ab680", + "e9279f86-07a0-4c01-958f-2fb1ae0642f1", + "2bc64cbe-699d-42f5-9f45-169ac964c161", + "8c62e8dc-52bb-4480-8347-db10ca7916ea" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2193, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "title": "Sort categories table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_cms_category' 'desc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'id_cms_category' 'desc' and check result", + "timedOut": false, + "duration": 3866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b26b695b-35bf-42b7-b66b-11417af0e4d6", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'desc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'position' 'desc' and check result", + "timedOut": false, + "duration": 3865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByPositionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "664b2148-7fb1-4612-a717-d7074c3cdf77", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 3026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cfe417b-e82c-4311-b2e7-27b1472a8378", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 3016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortBNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7bbc2d4-0cec-4f3d-8961-b41679646827", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'description' 'asc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'description' 'asc' and check result", + "timedOut": false, + "duration": 3052, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByDescriptionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cd11e27-4ef2-4fb3-9605-2ab10495e7cf", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'description' 'desc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'description' 'desc' and check result", + "timedOut": false, + "duration": 3013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByDescriptionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "659daed9-225b-42ad-8c8b-ad43c6ac774d", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 3028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByStatusAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45964cad-c327-4007-9542-68a3dedb733d", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 3114, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByStatusDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a4e7b64-163a-47b5-99d6-fefbfb78b0a2", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'asc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'position' 'asc' and check result", + "timedOut": false, + "duration": 3084, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByPositionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df2123bf-94e3-46a0-bc1e-d2f53dbc912a", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_cms_category' 'asc' and check result", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Sort categories table should sort by 'id_cms_category' 'asc' and check result", + "timedOut": false, + "duration": 3099, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPageCategory(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPageCategory(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29d22c7e-6dde-45d8-8346-24b73c5ff41e", + "parentUUID": "3a2a2009-dbd3-4031-830d-6ae4f89c3f70", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b26b695b-35bf-42b7-b66b-11417af0e4d6", + "664b2148-7fb1-4612-a717-d7074c3cdf77", + "4cfe417b-e82c-4311-b2e7-27b1472a8378", + "c7bbc2d4-0cec-4f3d-8961-b41679646827", + "3cd11e27-4ef2-4fb3-9605-2ab10495e7cf", + "659daed9-225b-42ad-8c8b-ad43c6ac774d", + "45964cad-c327-4007-9542-68a3dedb733d", + "5a4e7b64-163a-47b5-99d6-fefbfb78b0a2", + "df2123bf-94e3-46a0-bc1e-d2f53dbc912a", + "29d22c7e-6dde-45d8-8346-24b73c5ff41e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 32163, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "37c6de9a-0d40-4296-b9fd-9d16237d90d6", + "title": "Delete categories with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/categories/03_paginationAndSortCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Delete categories with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, categoriesTableName, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPageCategory(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73c2cee3-3644-4762-97f6-67ef75fe3c1a", + "parentUUID": "37c6de9a-0d40-4296-b9fd-9d16237d90d6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Delete categories with Bulk Actions should delete categories", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_bulkDeleteCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCategories', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.deleteWithBulkActions(page, categoriesTableName)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(pages_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc26f634-2b02-49c5-aca3-7e2274dbcf1b", + "parentUUID": "37c6de9a-0d40-4296-b9fd-9d16237d90d6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Pagination and sort categories table Delete categories with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_categories_paginationAndSortCategories_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, categoriesTableName)];\n case 2:\n numberOfCategoriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.equal(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18ab4011-4c12-4391-9e58-8595bfa6a654", + "parentUUID": "37c6de9a-0d40-4296-b9fd-9d16237d90d6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "73c2cee3-3644-4762-97f6-67ef75fe3c1a", + "dc26f634-2b02-49c5-aca3-7e2274dbcf1b", + "18ab4011-4c12-4391-9e58-8595bfa6a654" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2322, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "56d8c3fd-592f-40b5-aef8-aa384dd954e0", + "bc056a21-7348-48a4-b1b2-2fd16f6c374c", + "310247e1-4488-4d6b-a292-323ef30a3406" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8605, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9f7527f7-096f-4bf9-9298-e4d5417ebe94", + "title": "BO - Design - Pages : Filter and quick edit pages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/01_filterAndQuickEditPages.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/01_filterAndQuickEditPages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Pages : Filter and quick edit pages table\"", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table \"before all\" hook in \"BO - Design - Pages : Filter and quick edit pages table\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a95eeac3-a316-42ff-a468-a6501949e28a", + "parentUUID": "9f7527f7-096f-4bf9-9298-e4d5417ebe94", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Pages : Filter and quick edit pages table\"", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table \"after all\" hook in \"BO - Design - Pages : Filter and quick edit pages table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9b95d815-bdd1-40c3-9689-357a6efc6e86", + "parentUUID": "9f7527f7-096f-4bf9-9298-e4d5417ebe94", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "480d6ca0-03bb-478c-9ab6-e1265660ce81", + "parentUUID": "9f7527f7-096f-4bf9-9298-e4d5417ebe94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "123f7607-3055-4597-a01f-5c898ad27be9", + "parentUUID": "9f7527f7-096f-4bf9-9298-e4d5417ebe94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of pages in BO", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table should reset all filters and get number of pages in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTableName)];\n case 2:\n numberOfPages = _a.sent();\n (0, chai_1.expect)(numberOfPages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7062d286-7796-4a99-9deb-14bfb6c2b960", + "parentUUID": "9f7527f7-096f-4bf9-9298-e4d5417ebe94", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "title": "Filter pages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/01_filterAndQuickEditPages.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/01_filterAndQuickEditPages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_cms '1'", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Filter pages table should filter by id_cms '1'", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterFilter, i, pagesStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, pagesTableName)];\n case 3:\n numberOfPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterFilter).to.be.at.most(numberOfPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfPagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, pages_1.default.getStatus(page, pagesTableName, i)];\n case 5:\n pagesStatus = _a.sent();\n (0, chai_1.expect)(pagesStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc55d5c3-aa6c-41dc-a5bb-59a5822866ed", + "parentUUID": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Filter pages table should reset all filters", + "timedOut": false, + "duration": 324, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_reset_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"reset_\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTableName)];\n case 2:\n numberOfPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterReset).to.be.equal(numberOfPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1fd93ad-a3e3-4e44-869b-b095a130284e", + "parentUUID": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by link_rewrite 'about-us'", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Filter pages table should filter by link_rewrite 'about-us'", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_filterByLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterFilter, i, pagesStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, pagesTableName)];\n case 3:\n numberOfPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterFilter).to.be.at.most(numberOfPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfPagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, pages_1.default.getStatus(page, pagesTableName, i)];\n case 5:\n pagesStatus = _a.sent();\n (0, chai_1.expect)(pagesStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2afd050-d334-405e-a219-b88ce63c4f84", + "parentUUID": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Filter pages table should reset all filters", + "timedOut": false, + "duration": 317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_reset_filterByLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"reset_\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTableName)];\n case 2:\n numberOfPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterReset).to.be.equal(numberOfPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c113a773-31f0-41fc-a80c-2419a8eb336a", + "parentUUID": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by meta_title 'Terms and conditions of use'", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Filter pages table should filter by meta_title 'Terms and conditions of use'", + "timedOut": false, + "duration": 960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_filterByMetaTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterFilter, i, pagesStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, pagesTableName)];\n case 3:\n numberOfPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterFilter).to.be.at.most(numberOfPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfPagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, pages_1.default.getStatus(page, pagesTableName, i)];\n case 5:\n pagesStatus = _a.sent();\n (0, chai_1.expect)(pagesStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56a1c682-7b46-48ee-a91d-39f6690261ca", + "parentUUID": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Filter pages table should reset all filters", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_reset_filterByMetaTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"reset_\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTableName)];\n case 2:\n numberOfPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterReset).to.be.equal(numberOfPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9eec2daf-f725-4436-9d23-09b112ad1e09", + "parentUUID": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Filter pages table should filter by active '1'", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_filterByActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterFilter, i, pagesStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, pagesTableName)];\n case 3:\n numberOfPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterFilter).to.be.at.most(numberOfPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfPagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, pages_1.default.getStatus(page, pagesTableName, i)];\n case 5:\n pagesStatus = _a.sent();\n (0, chai_1.expect)(pagesStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "533afdd6-0450-49b6-a2b4-e2c6816295cd", + "parentUUID": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Filter pages table should reset all filters", + "timedOut": false, + "duration": 331, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_reset_filterByActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"reset_\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTableName)];\n case 2:\n numberOfPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterReset).to.be.equal(numberOfPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1140d2a-7a8a-4c74-bfe3-a72309f1e623", + "parentUUID": "f2c5bda9-0870-4027-bd5b-1ae17c9e54be", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc55d5c3-aa6c-41dc-a5bb-59a5822866ed", + "a1fd93ad-a3e3-4e44-869b-b095a130284e", + "b2afd050-d334-405e-a219-b88ce63c4f84", + "c113a773-31f0-41fc-a80c-2419a8eb336a", + "56a1c682-7b46-48ee-a91d-39f6690261ca", + "9eec2daf-f725-4436-9d23-09b112ad1e09", + "533afdd6-0450-49b6-a2b4-e2c6816295cd", + "f1140d2a-7a8a-4c74-bfe3-a72309f1e623" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5013, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "44bfccfc-e98d-4c8b-8ea5-2ea53f862a32", + "title": "Quick edit pages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/01_filterAndQuickEditPages.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/01_filterAndQuickEditPages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by Title 'Terms and conditions of use'", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Quick edit pages should filter by Title 'Terms and conditions of use'", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_quickEditFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickEditFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTableName, 'input', 'meta_title', CMSpage_1.default.termsAndCondition.title)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, pagesTableName)];\n case 3:\n numberOfPagesAfterFilter = _a.sent();\n if (numberOfPages === 0) {\n (0, chai_1.expect)(numberOfPagesAfterFilter).to.be.equal(numberOfPages + 1);\n }\n else {\n (0, chai_1.expect)(numberOfPagesAfterFilter).to.be.at.most(numberOfPages);\n }\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, 1, 'meta_title')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(CMSpage_1.default.termsAndCondition.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb4edd02-281f-4d66-b2a9-03c60b2e084f", + "parentUUID": "44bfccfc-e98d-4c8b-8ea5-2ea53f862a32", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the page", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Quick edit pages should disable the page", + "timedOut": false, + "duration": 340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_disablePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(pageStatus.args.status, \"Page\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.setStatus(page, pagesTableName, 1, pageStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, pages_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(pages_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, pages_1.default.getStatus(page, pagesTableName, 1)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(pageStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "500169ce-d707-418d-9398-0bfc163fbc03", + "parentUUID": "44bfccfc-e98d-4c8b-8ea5-2ea53f862a32", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the page", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Quick edit pages should enable the page", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_enablePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(pageStatus.args.status, \"Page\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.setStatus(page, pagesTableName, 1, pageStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, pages_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(pages_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, pages_1.default.getStatus(page, pagesTableName, 1)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(pageStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ed24f1b-5453-4474-865e-464294c9d258", + "parentUUID": "44bfccfc-e98d-4c8b-8ea5-2ea53f862a32", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Filter and quick edit pages table Quick edit pages should reset all filters", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_filterAndQuickEditPages_quickEditReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickEditReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTableName)];\n case 2:\n numberOfPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterReset).to.be.equal(numberOfPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b06b1c44-03f5-46a9-9df0-aeb3170c96a4", + "parentUUID": "44bfccfc-e98d-4c8b-8ea5-2ea53f862a32", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fb4edd02-281f-4d66-b2a9-03c60b2e084f", + "500169ce-d707-418d-9398-0bfc163fbc03", + "5ed24f1b-5453-4474-865e-464294c9d258", + "b06b1c44-03f5-46a9-9df0-aeb3170c96a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1935, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "480d6ca0-03bb-478c-9ab6-e1265660ce81", + "123f7607-3055-4597-a01f-5c898ad27be9", + "7062d286-7796-4a99-9deb-14bfb6c2b960" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8627, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8fa0993e-1c5b-4a36-9756-d0145804c24b", + "title": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/02_pagesBulkActions.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/02_pagesBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions\"", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions \"before all\" hook in \"BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "118e6186-58b0-41c4-ba46-114d5c47c265", + "parentUUID": "8fa0993e-1c5b-4a36-9756-d0145804c24b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions\"", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions \"after all\" hook in \"BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ab5f0d7e-546a-4243-a5c0-242b15e3326f", + "parentUUID": "8fa0993e-1c5b-4a36-9756-d0145804c24b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions should login in BO", + "timedOut": false, + "duration": 1738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddd22f7c-29c3-4b7e-840a-11358dbb4a20", + "parentUUID": "8fa0993e-1c5b-4a36-9756-d0145804c24b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7ef9e08-323c-49fb-a6e3-8816e1cf27c9", + "parentUUID": "8fa0993e-1c5b-4a36-9756-d0145804c24b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of pages in BO", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions should reset filter and get number of pages in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTable)];\n case 2:\n numberOfPages = _a.sent();\n (0, chai_1.expect)(numberOfPages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5314295e-f60d-4564-889a-2db6f3ca00d8", + "parentUUID": "8fa0993e-1c5b-4a36-9756-d0145804c24b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "0ab0bb91-acfe-4c89-a708-4f222335b767", + "title": "Create 2 pages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/02_pagesBulkActions.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/02_pagesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new page", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Create 2 pages should go to add new page", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_goToAddPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1daf5589-9e5d-4c04-a624-1d09ae455558", + "parentUUID": "0ab0bb91-acfe-4c89-a708-4f222335b767", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°1", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Create 2 pages should create page n°1", + "timedOut": false, + "duration": 1384, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_createPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, pageToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea28f43d-3336-407b-b0d6-86e026efb40d", + "parentUUID": "0ab0bb91-acfe-4c89-a708-4f222335b767", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Create 2 pages should go to add new page", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_goToAddPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30541a2a-7fb3-4153-b1ab-060898407325", + "parentUUID": "0ab0bb91-acfe-4c89-a708-4f222335b767", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°2", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Create 2 pages should create page n°2", + "timedOut": false, + "duration": 1342, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_createPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, pageToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a12b750-592d-4327-8cd1-a053a88b82e8", + "parentUUID": "0ab0bb91-acfe-4c89-a708-4f222335b767", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1daf5589-9e5d-4c04-a624-1d09ae455558", + "ea28f43d-3336-407b-b0d6-86e026efb40d", + "30541a2a-7fb3-4153-b1ab-060898407325", + "6a12b750-592d-4327-8cd1-a053a88b82e8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4491, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8cc9161a-c1b1-472b-9633-8530e72e4713", + "title": "Enable and Disable pages with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/02_pagesBulkActions.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/02_pagesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by Title", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Enable and Disable pages with Bulk Actions should filter list by Title", + "timedOut": false, + "duration": 906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_filterForBulkEditStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkEditStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTable, 'input', 'meta_title', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, 1, 'meta_title')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "581d45b9-8db6-44da-bced-af0a03a2bd0e", + "parentUUID": "8cc9161a-c1b1-472b-9633-8530e72e4713", + "isHook": false, + "skipped": false + }, + { + "title": "should disable pages with Bulk Actions and check result", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Enable and Disable pages with Bulk Actions should disable pages with Bulk Actions and check result", + "timedOut": false, + "duration": 426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_disablePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfPagesInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(pageStatus.args.status, \"Page\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.bulkSetStatus(page, pagesTable, pageStatus.args.enable)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(pages_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, pagesTable)];\n case 3:\n numberOfPagesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfPagesInGrid).to.be.at.most(numberOfPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfPagesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, pages_1.default.getStatus(page, pagesTable, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(pageStatus.args.enable);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be548c51-a881-4385-b01b-da32986b75e2", + "parentUUID": "8cc9161a-c1b1-472b-9633-8530e72e4713", + "isHook": false, + "skipped": false + }, + { + "title": "should enable pages with Bulk Actions and check result", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Enable and Disable pages with Bulk Actions should enable pages with Bulk Actions and check result", + "timedOut": false, + "duration": 431, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_enablePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfPagesInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(pageStatus.args.status, \"Page\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.bulkSetStatus(page, pagesTable, pageStatus.args.enable)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(pages_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, pagesTable)];\n case 3:\n numberOfPagesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfPagesInGrid).to.be.at.most(numberOfPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfPagesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, pages_1.default.getStatus(page, pagesTable, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(pageStatus.args.enable);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4564739-8378-4b0b-876f-949a0987ee62", + "parentUUID": "8cc9161a-c1b1-472b-9633-8530e72e4713", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "581d45b9-8db6-44da-bced-af0a03a2bd0e", + "be548c51-a881-4385-b01b-da32986b75e2", + "e4564739-8378-4b0b-876f-949a0987ee62" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1763, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "54f21126-5910-41fe-94bf-2d42f2a31df4", + "title": "Delete pages with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/02_pagesBulkActions.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/02_pagesBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by Title", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Delete pages with Bulk Actions should filter list by Title", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, pagesTable, 'input', 'meta_title', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, 1, 'meta_title')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "881d5f44-618c-436a-8691-6914a1bdd13c", + "parentUUID": "54f21126-5910-41fe-94bf-2d42f2a31df4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete pages", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Delete pages with Bulk Actions should delete pages", + "timedOut": false, + "duration": 945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_BulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'BulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.deleteWithBulkActions(page, pagesTable)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(pages_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "892c1040-2be7-475a-8b50-0e3467fdeccb", + "parentUUID": "54f21126-5910-41fe-94bf-2d42f2a31df4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Pages : Enable/Disable/Delete pages with Bulk Actions Delete pages with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagesBulkActions_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, pagesTable)];\n case 2:\n numberOfPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterFilter).to.be.equal(numberOfPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd278515-5bab-4dbe-99aa-45d1a6e4a935", + "parentUUID": "54f21126-5910-41fe-94bf-2d42f2a31df4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "881d5f44-618c-436a-8691-6914a1bdd13c", + "892c1040-2be7-475a-8b50-0e3467fdeccb", + "fd278515-5bab-4dbe-99aa-45d1a6e4a935" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2192, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "ddd22f7c-29c3-4b7e-840a-11358dbb4a20", + "b7ef9e08-323c-49fb-a6e3-8816e1cf27c9", + "5314295e-f60d-4564-889a-2db6f3ca00d8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8611, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3f82bac1-62d1-4778-aa81-23d8adc3debc", + "title": "BO - design - Pages : Pagination of Pages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/03_pagination.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/03_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - design - Pages : Pagination of Pages table\"", + "fullTitle": "BO - design - Pages : Pagination of Pages table \"before all\" hook in \"BO - design - Pages : Pagination of Pages table\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c23dcc44-5225-40ff-9711-3bb75345a3ea", + "parentUUID": "3f82bac1-62d1-4778-aa81-23d8adc3debc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - design - Pages : Pagination of Pages table\"", + "fullTitle": "BO - design - Pages : Pagination of Pages table \"after all\" hook in \"BO - design - Pages : Pagination of Pages table\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "825849b4-f64a-4fb9-9b94-286ab984a45a", + "parentUUID": "3f82bac1-62d1-4778-aa81-23d8adc3debc", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "27197a7b-1604-4994-b05d-6030cd20d6da", + "title": "PRE-TEST: Create 11 pages in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/03_pagination.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/03_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should login in BO", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00904290-a133-4eee-8d38-2ef80ddba823", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42fb2063-4fb6-4124-83dc-da2809a426d2", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of pages in BO", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should reset all filters and get number of pages in BO", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, 'cms_page')];\n case 2:\n numberOfPages = _a.sent();\n if (numberOfPages !== 0) {\n (0, chai_1.expect)(numberOfPages).to.be.above(0);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c86e1d3-c4f3-4ee1-bb12-cf23d07f110b", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5f9b25d-b15c-46bd-9c7f-5eb2c456b13d", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°1", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°1", + "timedOut": false, + "duration": 1365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84884756-8979-4caf-99f7-49d9a84fa30d", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f09056eb-ff1d-432d-a7f6-7ae9f86ce905", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°2", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°2", + "timedOut": false, + "duration": 1379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dbf0221-bb04-433e-aca7-60278f30ab6c", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3c77ab3-ae6e-4c4c-830a-737322f19c05", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°3", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°3", + "timedOut": false, + "duration": 1323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea1c92e7-f993-4c6f-9519-143d3ba8d6af", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53915818-def3-4294-ab81-300268b77367", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°4", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°4", + "timedOut": false, + "duration": 1466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59d916c3-6688-4ad2-84fc-0f8bff711de3", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1091e406-80dc-4e12-a758-29d6f596ffe8", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°5", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°5", + "timedOut": false, + "duration": 1348, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecf76b01-c449-44c6-b7fa-5496cc26ff49", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "031faf87-9486-4ef4-93b2-c59eaefae562", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°6", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°6", + "timedOut": false, + "duration": 1401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51f1cac5-cb95-4117-b71e-2f839113ef11", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97106dc1-d546-4cc0-9270-8a251e15cfe7", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°7", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°7", + "timedOut": false, + "duration": 1336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76389e0a-7550-496d-b723-bf5dac1cfb18", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35b9f17d-cd32-4830-9c74-eb0dbf1a9452", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°8", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°8", + "timedOut": false, + "duration": 1330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be799e95-507a-4ebb-a5de-6e8183dd0f7a", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d1531f2-07a2-40ec-8861-765703386f06", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°9", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°9", + "timedOut": false, + "duration": 1401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b711a669-bd24-4606-9973-b08380435dbb", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44771334-33f6-4224-955e-4bf63d9c5b4f", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°10", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°10", + "timedOut": false, + "duration": 1361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "895fac55-ebc6-4183-acdc-b8d4beeb0fa4", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new page page", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should go to add new page page", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_goToNewPagePage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewPagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.goToAddNewPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4779c13f-fb38-4b96-82f6-174d900dcd9a", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should create page n°11", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should create page n°11", + "timedOut": false, + "duration": 1359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_createPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditPage(page, createPageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(pages_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30c1b4c4-beb5-47a3-b3b1-b2a6a0b0b05b", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + }, + { + "title": "should check the pages number", + "fullTitle": "BO - design - Pages : Pagination of Pages table PRE-TEST: Create 11 pages in BO should check the pages number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_checkPagesNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPagesNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getNumberOfElementInGrid(page, 'cms_page')];\n case 2:\n numberOfPagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterCreation).to.be.equal(numberOfPages + 11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e44e782-8251-4a8e-b94d-1628bffc6479", + "parentUUID": "27197a7b-1604-4994-b05d-6030cd20d6da", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "00904290-a133-4eee-8d38-2ef80ddba823", + "42fb2063-4fb6-4124-83dc-da2809a426d2", + "8c86e1d3-c4f3-4ee1-bb12-cf23d07f110b", + "f5f9b25d-b15c-46bd-9c7f-5eb2c456b13d", + "84884756-8979-4caf-99f7-49d9a84fa30d", + "f09056eb-ff1d-432d-a7f6-7ae9f86ce905", + "5dbf0221-bb04-433e-aca7-60278f30ab6c", + "f3c77ab3-ae6e-4c4c-830a-737322f19c05", + "ea1c92e7-f993-4c6f-9519-143d3ba8d6af", + "53915818-def3-4294-ab81-300268b77367", + "59d916c3-6688-4ad2-84fc-0f8bff711de3", + "1091e406-80dc-4e12-a758-29d6f596ffe8", + "ecf76b01-c449-44c6-b7fa-5496cc26ff49", + "031faf87-9486-4ef4-93b2-c59eaefae562", + "51f1cac5-cb95-4117-b71e-2f839113ef11", + "97106dc1-d546-4cc0-9270-8a251e15cfe7", + "76389e0a-7550-496d-b723-bf5dac1cfb18", + "35b9f17d-cd32-4830-9c74-eb0dbf1a9452", + "be799e95-507a-4ebb-a5de-6e8183dd0f7a", + "6d1531f2-07a2-40ec-8861-765703386f06", + "b711a669-bd24-4606-9973-b08380435dbb", + "44771334-33f6-4224-955e-4bf63d9c5b4f", + "895fac55-ebc6-4183-acdc-b8d4beeb0fa4", + "4779c13f-fb38-4b96-82f6-174d900dcd9a", + "30c1b4c4-beb5-47a3-b3b1-b2a6a0b0b05b", + "9e44e782-8251-4a8e-b94d-1628bffc6479" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 32960, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3655cda5-5b00-46b8-a82d-c2780db13234", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/03_pagination.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/03_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - design - Pages : Pagination of Pages table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.selectPagesPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6b192a7-ddf3-4fde-bb2f-b8997e469add", + "parentUUID": "3655cda5-5b00-46b8-a82d-c2780db13234", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - design - Pages : Pagination of Pages table Pagination next and previous should click on next", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.paginationPagesNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ab4eed0-effe-483b-9cc3-99fdcbdb2557", + "parentUUID": "3655cda5-5b00-46b8-a82d-c2780db13234", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - design - Pages : Pagination of Pages table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.paginationPagesPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83529c27-0e23-42da-bd98-328a69549731", + "parentUUID": "3655cda5-5b00-46b8-a82d-c2780db13234", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - design - Pages : Pagination of Pages table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.selectPagesPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c43a56ed-7447-4889-8d40-3fdb07cb9855", + "parentUUID": "3655cda5-5b00-46b8-a82d-c2780db13234", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b6b192a7-ddf3-4fde-bb2f-b8997e469add", + "1ab4eed0-effe-483b-9cc3-99fdcbdb2557", + "83529c27-0e23-42da-bd98-328a69549731", + "c43a56ed-7447-4889-8d40-3fdb07cb9855" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2126, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2da2abbc-0c7d-407a-8460-8b09d596ae42", + "title": "POST-TEST: Delete pages with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/03_pagination.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/03_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by title", + "fullTitle": "BO - design - Pages : Pagination of Pages table POST-TEST: Delete pages with Bulk Actions should filter list by title", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.filterTable(page, 'cms_page', 'input', 'meta_title', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getTextColumnFromTableCmsPage(page, 1, 'meta_title')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0991c563-6f6e-4b2e-b124-d556f79d7952", + "parentUUID": "2da2abbc-0c7d-407a-8460-8b09d596ae42", + "isHook": false, + "skipped": false + }, + { + "title": "should delete pages", + "fullTitle": "BO - design - Pages : Pagination of Pages table POST-TEST: Delete pages with Bulk Actions should delete pages", + "timedOut": false, + "duration": 1024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_BulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'BulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.deleteWithBulkActions(page, 'cms_page')];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(pages_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a55123b-47c6-4670-995c-863daa0626d6", + "parentUUID": "2da2abbc-0c7d-407a-8460-8b09d596ae42", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - design - Pages : Pagination of Pages table POST-TEST: Delete pages with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_pagination_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfPagesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.resetAndGetNumberOfLines(page, 'cms_page')];\n case 2:\n numberOfPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfPagesAfterFilter).to.be.equal(numberOfPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "098730ac-7152-493c-b9d4-a92c49948051", + "parentUUID": "2da2abbc-0c7d-407a-8460-8b09d596ae42", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0991c563-6f6e-4b2e-b124-d556f79d7952", + "9a55123b-47c6-4670-995c-863daa0626d6", + "098730ac-7152-493c-b9d4-a92c49948051" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2297, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f0941d66-8cd5-4db8-b9f8-9e2dd1be059a", + "title": "BO - design - Pages : Sort Pages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/04_sortPages.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/04_sortPages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - design - Pages : Sort Pages table\"", + "fullTitle": "BO - design - Pages : Sort Pages table \"before all\" hook in \"BO - design - Pages : Sort Pages table\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b05f564-faa7-4d75-af71-42038bc7ac02", + "parentUUID": "f0941d66-8cd5-4db8-b9f8-9e2dd1be059a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - design - Pages : Sort Pages table\"", + "fullTitle": "BO - design - Pages : Sort Pages table \"after all\" hook in \"BO - design - Pages : Sort Pages table\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "28f63236-b9e4-4b31-9d0a-b397f0230ee0", + "parentUUID": "f0941d66-8cd5-4db8-b9f8-9e2dd1be059a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - design - Pages : Sort Pages table should login in BO", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9915a4d7-4e5d-42b0-8831-113c4b96a1a0", + "parentUUID": "f0941d66-8cd5-4db8-b9f8-9e2dd1be059a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Pages' page", + "fullTitle": "BO - design - Pages : Sort Pages table should go to 'Design > Pages' page", + "timedOut": false, + "duration": 4870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_goToCmsPagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCmsPagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.pagesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pages_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e10eb5c-3313-4811-b2a0-ac677f7b6a01", + "parentUUID": "f0941d66-8cd5-4db8-b9f8-9e2dd1be059a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "title": "Sort pages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/04_pages/pages/04_sortPages.ts", + "file": "/campaigns/functional/BO/08_design/04_pages/pages/04_sortPages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'position' 'desc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'position' 'desc' and check result", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByPositionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07d0077a-5916-4d30-9819-8e77df762f3d", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_cms' 'asc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'id_cms' 'asc' and check result", + "timedOut": false, + "duration": 2852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c98ad93-75d9-46e6-81e3-fa3a8a972fc6", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_cms' 'desc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'id_cms' 'desc' and check result", + "timedOut": false, + "duration": 2850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b1360d9-a923-411c-9cf7-878c473772f9", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'link_rewrite' 'asc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'link_rewrite' 'asc' and check result", + "timedOut": false, + "duration": 2852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByUrlAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95f37da7-bfb4-4f9a-97d9-ad0c65fb3438", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'link_rewrite' 'desc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'link_rewrite' 'desc' and check result", + "timedOut": false, + "duration": 2847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByUrlDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9303ecba-66b2-42ef-a4c4-8fdef4d38e2e", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'meta_title' 'asc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'meta_title' 'asc' and check result", + "timedOut": false, + "duration": 2851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByTitleAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65d005f8-1a8a-423a-a5be-a36b6b980d76", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'meta_title' 'desc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'meta_title' 'desc' and check result", + "timedOut": false, + "duration": 2848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByTitleDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a170055f-6de1-46dc-b826-f1f61b4f5ffa", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 2852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByStatusAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cef21cb7-ed25-4b4a-8ac1-55dd9a0b03c5", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 2844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByStatusDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7c446b5-39d7-463d-b0e0-da69cf76a25a", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'asc' and check result", + "fullTitle": "BO - design - Pages : Sort Pages table Sort pages table should sort by 'position' 'asc' and check result", + "timedOut": false, + "duration": 2848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_pages_pages_sortPages_sortByPositionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, pages_1.default.sortTableCmsPage(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, pages_1.default.getAllRowsColumnContentTableCmsPage(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87b790cc-69e5-4b0b-9b49-448bb857559b", + "parentUUID": "3dd3eeb5-77b5-45c9-a1a0-87630d3e27ed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "07d0077a-5916-4d30-9819-8e77df762f3d", + "4c98ad93-75d9-46e6-81e3-fa3a8a972fc6", + "1b1360d9-a923-411c-9cf7-878c473772f9", + "95f37da7-bfb4-4f9a-97d9-ad0c65fb3438", + "9303ecba-66b2-42ef-a4c4-8fdef4d38e2e", + "65d005f8-1a8a-423a-a5be-a36b6b980d76", + "a170055f-6de1-46dc-b826-f1f61b4f5ffa", + "cef21cb7-ed25-4b4a-8ac1-55dd9a0b03c5", + "a7c446b5-39d7-463d-b0e0-da69cf76a25a", + "87b790cc-69e5-4b0b-9b49-448bb857559b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28539, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "9915a4d7-4e5d-42b0-8831-113c4b96a1a0", + "2e10eb5c-3313-4811-b2a0-ac677f7b6a01" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6573, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "72291511-1bdd-4597-8c4d-d99be95d8240", + "title": "BO - Design - Positions : Filter module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/05_positions/01_filterModule.ts", + "file": "/campaigns/functional/BO/08_design/05_positions/01_filterModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Positions : Filter module\"", + "fullTitle": "BO - Design - Positions : Filter module \"before all\" hook in \"BO - Design - Positions : Filter module\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc0a136e-fe50-4e59-911c-1fbf320b9488", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Positions : Filter module\"", + "fullTitle": "BO - Design - Positions : Filter module \"after all\" hook in \"BO - Design - Positions : Filter module\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cca6922b-df42-4e86-8b81-9dafb3f4ea2b", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Positions : Filter module should login in BO", + "timedOut": false, + "duration": 1762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba22d816-6451-46f4-81db-957fa1a16cf6", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Positions' page", + "fullTitle": "BO - Design - Positions : Filter module should go to 'Design > Positions' page", + "timedOut": false, + "duration": 5274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_filterModule_goToPositionsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPositionsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.positionsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, positions_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, positions_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(positions_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "389e279f-8c68-4cce-b7f0-58533c9f05ae", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by module 'Wishlist' and check the result", + "fullTitle": "BO - Design - Positions : Filter module should filter by module 'Wishlist' and check the result", + "timedOut": false, + "duration": 249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_filterModule_filterModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfHooks;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.filterModule(page, moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, positions_1.default.getNumberOfHooks(page)];\n case 3:\n numberOfHooks = _a.sent();\n (0, chai_1.expect)(numberOfHooks).to.eq(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bb9466c-35fc-4459-98c1-0e21302686dc", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + }, + { + "title": "should check the hook 'displayAdminCustomers'", + "fullTitle": "BO - Design - Positions : Filter module should check the hook 'displayAdminCustomers'", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_filterModule_checkHooksdisplayAdminCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, firstModuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkHooks\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.isHookVisible(page, hook)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, positions_1.default.getModulesInHook(page, hook)];\n case 3:\n firstModuleName = _a.sent();\n (0, chai_1.expect)(firstModuleName).to.contain(moduleName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7be8886d-b8cc-49cd-ace2-f0501aca3351", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + }, + { + "title": "should check the hook 'displayCustomerAccount'", + "fullTitle": "BO - Design - Positions : Filter module should check the hook 'displayCustomerAccount'", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_filterModule_checkHooksdisplayCustomerAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, firstModuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkHooks\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.isHookVisible(page, hook)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, positions_1.default.getModulesInHook(page, hook)];\n case 3:\n firstModuleName = _a.sent();\n (0, chai_1.expect)(firstModuleName).to.contain(moduleName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4706a3a-4bbd-4807-a825-1070e36cbc77", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + }, + { + "title": "should check the hook 'displayFooter'", + "fullTitle": "BO - Design - Positions : Filter module should check the hook 'displayFooter'", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_filterModule_checkHooksdisplayFooter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, firstModuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkHooks\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.isHookVisible(page, hook)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, positions_1.default.getModulesInHook(page, hook)];\n case 3:\n firstModuleName = _a.sent();\n (0, chai_1.expect)(firstModuleName).to.contain(moduleName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6965fc02-c973-4f7d-b818-74c1bfcc0f04", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + }, + { + "title": "should check the hook 'displayMyAccountBlock'", + "fullTitle": "BO - Design - Positions : Filter module should check the hook 'displayMyAccountBlock'", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_filterModule_checkHooksdisplayMyAccountBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, firstModuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkHooks\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.isHookVisible(page, hook)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, positions_1.default.getModulesInHook(page, hook)];\n case 3:\n firstModuleName = _a.sent();\n (0, chai_1.expect)(firstModuleName).to.contain(moduleName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19b540b0-32eb-49e2-aa18-ecf6db47f9da", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + }, + { + "title": "should check the hook 'displayProductActions'", + "fullTitle": "BO - Design - Positions : Filter module should check the hook 'displayProductActions'", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_filterModule_checkHooksdisplayProductActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, firstModuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkHooks\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.isHookVisible(page, hook)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, positions_1.default.getModulesInHook(page, hook)];\n case 3:\n firstModuleName = _a.sent();\n (0, chai_1.expect)(firstModuleName).to.contain(moduleName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7120a548-bfe4-4c99-8d24-cb5ab3f2841f", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by 'All modules' and check the result", + "fullTitle": "BO - Design - Positions : Filter module should filter by 'All modules' and check the result", + "timedOut": false, + "duration": 324, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_filterModule_filterAllModules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfHooks;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterAllModules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.filterModule(page, 'All modules')];\n case 2:\n _a.sent();\n return [4 /*yield*/, positions_1.default.getNumberOfHooks(page)];\n case 3:\n numberOfHooks = _a.sent();\n (0, chai_1.expect)(numberOfHooks).to.above(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae5af964-2128-4cf7-9de9-4f6602ade469", + "parentUUID": "72291511-1bdd-4597-8c4d-d99be95d8240", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ba22d816-6451-46f4-81db-957fa1a16cf6", + "389e279f-8c68-4cce-b7f0-58533c9f05ae", + "4bb9466c-35fc-4459-98c1-0e21302686dc", + "7be8886d-b8cc-49cd-ace2-f0501aca3351", + "b4706a3a-4bbd-4807-a825-1070e36cbc77", + "6965fc02-c973-4f7d-b818-74c1bfcc0f04", + "19b540b0-32eb-49e2-aa18-ecf6db47f9da", + "7120a548-bfe4-4c99-8d24-cb5ab3f2841f", + "ae5af964-2128-4cf7-9de9-4f6602ade469" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7718, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "title": "BO - Design - Positions : Search for a hook", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/05_positions/02_searchHook.ts", + "file": "/campaigns/functional/BO/08_design/05_positions/02_searchHook.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Positions : Search for a hook\"", + "fullTitle": "BO - Design - Positions : Search for a hook \"before all\" hook in \"BO - Design - Positions : Search for a hook\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b1b5473-bf8f-4ddb-aba7-44f703ac7465", + "parentUUID": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Positions : Search for a hook\"", + "fullTitle": "BO - Design - Positions : Search for a hook \"after all\" hook in \"BO - Design - Positions : Search for a hook\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "15e37388-b4ff-41c4-a90e-54ea4157f734", + "parentUUID": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Positions : Search for a hook should login in BO", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c3a9b33-30e0-4628-bf15-db67eeb48b87", + "parentUUID": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Positions' page", + "fullTitle": "BO - Design - Positions : Search for a hook should go to 'Design > Positions' page", + "timedOut": false, + "duration": 5267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_searchHook_goToPositionsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPositionsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.positionsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, positions_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, positions_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(positions_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25980391-a947-4cc4-84ca-2c46eadb397f", + "parentUUID": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the hook 'displayCustomerAccount' and check result", + "fullTitle": "BO - Design - Positions : Search for a hook should search for the hook 'displayCustomerAccount' and check result", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_searchHook_searchForHook_displayCustomerAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForHook_\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.searchHook(page, hook)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(hook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "135ec447-3659-488e-a60d-90295c1e7235", + "parentUUID": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the hook 'displayFooter' and check result", + "fullTitle": "BO - Design - Positions : Search for a hook should search for the hook 'displayFooter' and check result", + "timedOut": false, + "duration": 754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_searchHook_searchForHook_displayFooter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForHook_\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.searchHook(page, hook)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(hook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1080e612-fd1a-4016-afe5-8166c956126a", + "parentUUID": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the hook 'displayProductAdditionalInfo' and check result", + "fullTitle": "BO - Design - Positions : Search for a hook should search for the hook 'displayProductAdditionalInfo' and check result", + "timedOut": false, + "duration": 761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_searchHook_searchForHook_displayProductAdditionalInfo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForHook_\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.searchHook(page, hook)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(hook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c79d56b2-b0a4-4556-a3a2-a9b637500b92", + "parentUUID": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the hook 'displayBackOfficeHeader' and check result", + "fullTitle": "BO - Design - Positions : Search for a hook should search for the hook 'displayBackOfficeHeader' and check result", + "timedOut": false, + "duration": 710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_positions_searchHook_searchForHook_displayBackOfficeHeader\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForHook_\".concat(hook), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, positions_1.default.searchHook(page, hook)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(hook);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8917fc97-6ebd-45f0-a4ee-ed5a62b79ff8", + "parentUUID": "f6d7f300-3537-4fa4-b64d-0fb1f5665b02", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8c3a9b33-30e0-4628-bf15-db67eeb48b87", + "25980391-a947-4cc4-84ca-2c46eadb397f", + "135ec447-3659-488e-a60d-90295c1e7235", + "1080e612-fd1a-4016-afe5-8166c956126a", + "c79d56b2-b0a4-4556-a3a2-a9b637500b92", + "8917fc97-6ebd-45f0-a4ee-ed5a62b79ff8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10002, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "21bbc1a6-2e53-43f6-8f88-eeb084ff3735", + "title": "BO - Design - Positions : Filter image types table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/01_filterImageTypes.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/01_filterImageTypes.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Positions : Filter image types table\"", + "fullTitle": "BO - Design - Positions : Filter image types table \"before all\" hook in \"BO - Design - Positions : Filter image types table\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a57b14e3-c345-4846-acc3-f52193bd8134", + "parentUUID": "21bbc1a6-2e53-43f6-8f88-eeb084ff3735", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Positions : Filter image types table\"", + "fullTitle": "BO - Design - Positions : Filter image types table \"after all\" hook in \"BO - Design - Positions : Filter image types table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ee4a4ff3-f4cc-49d1-a142-9c83ea4580e5", + "parentUUID": "21bbc1a6-2e53-43f6-8f88-eeb084ff3735", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Positions : Filter image types table should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "003c474b-c6a7-414a-905e-dd7cd573ea7e", + "parentUUID": "21bbc1a6-2e53-43f6-8f88-eeb084ff3735", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Positions : Filter image types table should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aef3c27e-f732-47a5-8798-7a00ba7a4078", + "parentUUID": "21bbc1a6-2e53-43f6-8f88-eeb084ff3735", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of image types in BO", + "fullTitle": "BO - Design - Positions : Filter image types table should reset all filters and get number of image types in BO", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypes = _a.sent();\n (0, chai_1.expect)(numberOfImageTypes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77c85d6f-cf26-4ef7-9513-3585908d72e5", + "parentUUID": "21bbc1a6-2e53-43f6-8f88-eeb084ff3735", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "title": "Filter image types table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/01_filterImageTypes.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/01_filterImageTypes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_image_type '1'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by id_image_type '1'", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccd05633-3642-441e-9aa9-0e7992cabf85", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aca752b4-b3cf-4e03-926e-3d819dda3d77", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'cart_default'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by name 'cart_default'", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d3349ca-5931-4bda-b863-73a2a6dfbaa9", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c5554eb-6794-43ae-b993-f3afa16f00b7", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by width '125'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by width '125'", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterWidth\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4acc060b-ab6c-4114-a88d-8159ce6cdcdc", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterWidthReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51cd1eba-d119-4d93-9f1b-11e9e63c4f65", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by height '125'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by height '125'", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterHeight\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fad2830-ef8d-4ca2-adb3-99fbfad8da96", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterHeightReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dee570e-cdc2-42bc-93f7-b48d034f87e0", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by products '1'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by products '1'", + "timedOut": false, + "duration": 882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e17ab0a-b4cc-4064-a63d-acf727fd3916", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterProductsReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c2f6175-c81f-4cbe-ab1a-aa057531993e", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by categories '0'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by categories '0'", + "timedOut": false, + "duration": 5859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterCategories\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2beefb48-8e37-48d8-a590-b4180dfb3bce", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterCategoriesReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50fc7657-e149-4066-a352-49d4518dcb29", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by manufacturers '0'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by manufacturers '0'", + "timedOut": false, + "duration": 4851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterManufacturers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc1db14c-7f7d-4ed4-a478-240d017830ec", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterManufacturersReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd07b127-2249-49bc-8a92-9cc554f0f4e8", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by suppliers '0'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by suppliers '0'", + "timedOut": false, + "duration": 4843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterSuppliers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc9e67d4-b5cb-46c5-8ae8-27314819a5f0", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterSuppliersReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a2686c8-793a-40d6-8846-d811c60a55b6", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by stores '0'", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should filter by stores '0'", + "timedOut": false, + "duration": 6858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterStores\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, row, status, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterType === 'select')) return [3 /*break*/, 6];\n return [4 /*yield*/, imageSettings_1.default.getImageTypeStatus(page, row, test.args.filterBy)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3caed0c-14b3-4b6a-ba06-9d08c6ee34ce", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Positions : Filter image types table Filter image types table should reset all filters", + "timedOut": false, + "duration": 2936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_filterImageTypes_filterStoresReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "980983a5-e6b5-49c5-bbb9-f2f420f8c88c", + "parentUUID": "fbd34a2c-29d7-4d46-a058-5dd93ac220e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ccd05633-3642-441e-9aa9-0e7992cabf85", + "aca752b4-b3cf-4e03-926e-3d819dda3d77", + "2d3349ca-5931-4bda-b863-73a2a6dfbaa9", + "1c5554eb-6794-43ae-b993-f3afa16f00b7", + "4acc060b-ab6c-4114-a88d-8159ce6cdcdc", + "51cd1eba-d119-4d93-9f1b-11e9e63c4f65", + "5fad2830-ef8d-4ca2-adb3-99fbfad8da96", + "5dee570e-cdc2-42bc-93f7-b48d034f87e0", + "7e17ab0a-b4cc-4064-a63d-acf727fd3916", + "1c2f6175-c81f-4cbe-ab1a-aa057531993e", + "2beefb48-8e37-48d8-a590-b4180dfb3bce", + "50fc7657-e149-4066-a352-49d4518dcb29", + "fc1db14c-7f7d-4ed4-a478-240d017830ec", + "bd07b127-2249-49bc-8a92-9cc554f0f4e8", + "fc9e67d4-b5cb-46c5-8ae8-27314819a5f0", + "3a2686c8-793a-40d6-8846-d811c60a55b6", + "b3caed0c-14b3-4b6a-ba06-9d08c6ee34ce", + "980983a5-e6b5-49c5-bbb9-f2f420f8c88c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 52930, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "003c474b-c6a7-414a-905e-dd7cd573ea7e", + "aef3c27e-f732-47a5-8798-7a00ba7a4078", + "77c85d6f-cf26-4ef7-9513-3585908d72e5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6469, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "088f22a7-a39c-488f-abcc-68dceb523c18", + "title": "BO - Design - Image Settings : CRUD image type in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/02_CRUDImageType.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/02_CRUDImageType.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings : CRUD image type in BO\"", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO \"before all\" hook in \"BO - Design - Image Settings : CRUD image type in BO\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d474aa3c-ded7-4fc8-b97a-c83257e62f58", + "parentUUID": "088f22a7-a39c-488f-abcc-68dceb523c18", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings : CRUD image type in BO\"", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO \"after all\" hook in \"BO - Design - Image Settings : CRUD image type in BO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "54f6c96b-72b9-45df-bef0-d45b76dc5692", + "parentUUID": "088f22a7-a39c-488f-abcc-68dceb523c18", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO should login in BO", + "timedOut": false, + "duration": 1707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4acbdc93-32bd-4e3a-823f-a73e3ca3e3a8", + "parentUUID": "088f22a7-a39c-488f-abcc-68dceb523c18", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4647, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ef4af9f-33cf-491f-b094-05c6e698e0e3", + "parentUUID": "088f22a7-a39c-488f-abcc-68dceb523c18", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of image types in BO", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO should reset all filters and get number of image types in BO", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypes = _a.sent();\n (0, chai_1.expect)(numberOfImageTypes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3c95669-2795-44c7-8924-95156be427fa", + "parentUUID": "088f22a7-a39c-488f-abcc-68dceb523c18", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "ed74d134-d4e6-4b4c-954d-57b93b159c20", + "title": "Create image type in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/02_CRUDImageType.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/02_CRUDImageType.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO Create image type in BO should go to add new image type page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_goToAddImageTypePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddImageTypePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b39bf1ab-ac98-4791-b837-99638d6b0d04", + "parentUUID": "ed74d134-d4e6-4b4c-954d-57b93b159c20", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type and check result", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO Create image type in BO should create image type and check result", + "timedOut": false, + "duration": 1253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_createImageType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createImageType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22d8e38f-8103-4340-902b-16529fe36c24", + "parentUUID": "ed74d134-d4e6-4b4c-954d-57b93b159c20", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b39bf1ab-ac98-4791-b837-99638d6b0d04", + "22d8e38f-8103-4340-902b-16529fe36c24" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2051, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b22989a3-58a3-4d16-bb99-d411eb65cb15", + "title": "Update image type", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/02_CRUDImageType.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/02_CRUDImageType.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO Update image type should filter list by name", + "timedOut": false, + "duration": 929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, 'input', 'name', createImageTypeData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createImageTypeData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e923c5a0-2e6f-4fa8-abb5-5c19f01ea509", + "parentUUID": "b22989a3-58a3-4d16-bb99-d411eb65cb15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit image type page", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO Update image type should go to edit image type page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_goToEditImageTypePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditImageTypePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.gotoEditImageTypePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cee7dab-3535-4713-9d49-1b38dbf8e2cf", + "parentUUID": "b22989a3-58a3-4d16-bb99-d411eb65cb15", + "isHook": false, + "skipped": false + }, + { + "title": "should update image type", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO Update image type should update image type", + "timedOut": false, + "duration": 3910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_updateImageType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateImageType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, editImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulUpdateMessage);\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfImageTypesAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterUpdate).to.be.equal(numberOfImageTypes + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "073257ea-95f6-48a3-937c-139eac047871", + "parentUUID": "b22989a3-58a3-4d16-bb99-d411eb65cb15", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e923c5a0-2e6f-4fa8-abb5-5c19f01ea509", + "8cee7dab-3535-4713-9d49-1b38dbf8e2cf", + "073257ea-95f6-48a3-937c-139eac047871" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5655, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ad675562-b877-4bf0-8f75-458d5552bfad", + "title": "Delete image type", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/02_CRUDImageType.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/02_CRUDImageType.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO Delete image type should filter list by name", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, 'input', 'name', editImageTypeData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editImageTypeData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac8d30fa-167b-4515-b3a7-e0cbce927988", + "parentUUID": "ad675562-b877-4bf0-8f75-458d5552bfad", + "isHook": false, + "skipped": false + }, + { + "title": "should delete image type", + "fullTitle": "BO - Design - Image Settings : CRUD image type in BO Delete image type should delete image type", + "timedOut": false, + "duration": 4328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_CRUDImageType_deleteImageType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteImageType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.deleteImageType(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulDeleteMessage);\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfImageTypesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterDelete).to.be.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea13775e-8a3e-422b-9d26-7125db5a2351", + "parentUUID": "ad675562-b877-4bf0-8f75-458d5552bfad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ac8d30fa-167b-4515-b3a7-e0cbce927988", + "ea13775e-8a3e-422b-9d26-7125db5a2351" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5289, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "4acbdc93-32bd-4e3a-823f-a73e3ca3e3a8", + "9ef4af9f-33cf-491f-b094-05c6e698e0e3", + "a3c95669-2795-44c7-8924-95156be427fa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6367, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cf78c9b3-71ba-4897-90d8-f844669d6959", + "title": "BO - Design - Image Settings : Bulk delete image types", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/03_bulkDeleteImageTypes.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/03_bulkDeleteImageTypes.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings : Bulk delete image types\"", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types \"before all\" hook in \"BO - Design - Image Settings : Bulk delete image types\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57ea2675-b3a8-4714-b135-11982cb3c3c4", + "parentUUID": "cf78c9b3-71ba-4897-90d8-f844669d6959", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings : Bulk delete image types\"", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types \"after all\" hook in \"BO - Design - Image Settings : Bulk delete image types\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "21b98069-171b-4784-aaf6-a714eb901222", + "parentUUID": "cf78c9b3-71ba-4897-90d8-f844669d6959", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07e96e8e-d6e2-46d2-ab1e-e3b4b0b37574", + "parentUUID": "cf78c9b3-71ba-4897-90d8-f844669d6959", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Image Settings' page", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types should go to 'Catalog > Image Settings' page", + "timedOut": false, + "duration": 4638, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2daca6b-ce53-4f0f-b26c-a7835074a86c", + "parentUUID": "cf78c9b3-71ba-4897-90d8-f844669d6959", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of image types in BO", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types should reset all filters and get number of image types in BO", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypes = _a.sent();\n (0, chai_1.expect)(numberOfImageTypes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cad3cbe-beac-46e2-a714-18a03ff7394b", + "parentUUID": "cf78c9b3-71ba-4897-90d8-f844669d6959", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e144b31b-acb3-4952-a22e-33d430ddbed7", + "title": "Create 2 image types in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/03_bulkDeleteImageTypes.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/03_bulkDeleteImageTypes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types Create 2 image types in BO should go to add new image type page", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_goToNewImageTypePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewImageTypePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd28d39c-f472-45c0-922b-4acb3bb22229", + "parentUUID": "e144b31b-acb3-4952-a22e-33d430ddbed7", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n° 1 and check result", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types Create 2 image types in BO should create image type n° 1 and check result", + "timedOut": false, + "duration": 1264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_createImageType1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, ImageTypeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3dd4f4c-d278-4dbd-92ea-47ede140c953", + "parentUUID": "e144b31b-acb3-4952-a22e-33d430ddbed7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types Create 2 image types in BO should go to add new image type page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_goToNewImageTypePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewImageTypePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e0bf2d9-cf1e-44e4-964b-4f3225e1163f", + "parentUUID": "e144b31b-acb3-4952-a22e-33d430ddbed7", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n° 2 and check result", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types Create 2 image types in BO should create image type n° 2 and check result", + "timedOut": false, + "duration": 1261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_createImageType2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, ImageTypeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e187f4e5-2d89-4707-ad50-74a4ca63fb43", + "parentUUID": "e144b31b-acb3-4952-a22e-33d430ddbed7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cd28d39c-f472-45c0-922b-4acb3bb22229", + "c3dd4f4c-d278-4dbd-92ea-47ede140c953", + "0e0bf2d9-cf1e-44e4-964b-4f3225e1163f", + "e187f4e5-2d89-4707-ad50-74a4ca63fb43" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4110, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1b4b5e37-ec6f-45ee-82d3-8997a9e900ec", + "title": "Bulk delete image types", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/03_bulkDeleteImageTypes.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/03_bulkDeleteImageTypes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types Bulk delete image types should filter list by name", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.at.most(numberOfImageTypes);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d52e0d5e-600c-4bef-8033-5f6293962f04", + "parentUUID": "1b4b5e37-ec6f-45ee-82d3-8997a9e900ec", + "isHook": false, + "skipped": false + }, + { + "title": "should delete image types with Bulk Actions and check result", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types Bulk delete image types should delete image types with Bulk Actions and check result", + "timedOut": false, + "duration": 570, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_bulkDeleteImageTypes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteImageTypes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.bulkDeleteImageTypes(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(imageSettings_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39da7bef-4576-4dda-a0f0-c634952e7155", + "parentUUID": "1b4b5e37-ec6f-45ee-82d3-8997a9e900ec", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings : Bulk delete image types Bulk delete image types should reset all filters", + "timedOut": false, + "duration": 2876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_bulkDeleteImageTypes_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.be.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8569989-9b26-428d-a362-bb19c85ad97e", + "parentUUID": "1b4b5e37-ec6f-45ee-82d3-8997a9e900ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d52e0d5e-600c-4bef-8033-5f6293962f04", + "39da7bef-4576-4dda-a0f0-c634952e7155", + "f8569989-9b26-428d-a362-bb19c85ad97e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4372, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "07e96e8e-d6e2-46d2-ab1e-e3b4b0b37574", + "d2daca6b-ce53-4f0f-b26c-a7835074a86c", + "5cad3cbe-beac-46e2-a714-18a03ff7394b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6381, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "11ec462a-273d-4cfb-98b4-8ca37982a496", + "title": "BO - Design - Image Settings : Pagination and sort image settings", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings : Pagination and sort image settings\"", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings \"before all\" hook in \"BO - Design - Image Settings : Pagination and sort image settings\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11597901-6e40-4f25-9a8e-6f70ab490a98", + "parentUUID": "11ec462a-273d-4cfb-98b4-8ca37982a496", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings : Pagination and sort image settings\"", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings \"after all\" hook in \"BO - Design - Image Settings : Pagination and sort image settings\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "411b9881-e8ea-4edc-8b0a-e515669b6f95", + "parentUUID": "11ec462a-273d-4cfb-98b4-8ca37982a496", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings should login in BO", + "timedOut": false, + "duration": 1714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1aaffc62-6a5e-474e-9c0e-12e66c69bf5f", + "parentUUID": "11ec462a-273d-4cfb-98b4-8ca37982a496", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4646, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2f3bc05-03f0-4077-ba40-6d345e973a0f", + "parentUUID": "11ec462a-273d-4cfb-98b4-8ca37982a496", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of image types in BO", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings should reset all filters and get number of image types in BO", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypes = _a.sent();\n (0, chai_1.expect)(numberOfImageTypes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae81d092-f745-4fc3-8407-a9d0150aa607", + "parentUUID": "11ec462a-273d-4cfb-98b4-8ca37982a496", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "title": "Create 15 image types", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "addaa828-b5e6-4ce6-9a1c-4403a6166d1f", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°1", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°1", + "timedOut": false, + "duration": 1252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad8fadef-89e1-4557-9f84-2fa83ea79e8a", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf2eaa65-c374-44e0-ba4e-9e420f32915d", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°2", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°2", + "timedOut": false, + "duration": 1258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3cb69d0-8021-441f-a431-dee179ef564c", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c597d758-c2f0-44f1-9bb6-9e165b3bab8c", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°3", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°3", + "timedOut": false, + "duration": 1253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a1d5c76-276f-497a-b667-8f4b33133000", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "064b8022-4f34-4409-a5ca-0b2f9bb644bf", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°4", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°4", + "timedOut": false, + "duration": 1265, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03f4af23-f4ef-426a-a994-70fd43af00e2", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94290e70-294f-42cf-a9a6-fecacba190a2", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°5", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°5", + "timedOut": false, + "duration": 1271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "871443ba-8bc2-4db1-972b-827dcbdf99ba", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6db07559-1026-4d6d-9ba4-11b14d972042", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°6", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°6", + "timedOut": false, + "duration": 1267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90701aec-a32b-4d38-ac26-94dba90ce218", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4abce34c-ae68-42ce-aeec-939b3c4faf3d", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°7", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°7", + "timedOut": false, + "duration": 1257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69209728-6222-4b68-b1b5-5ba4cd2b092a", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c7bae0a-a1e0-4fed-a52f-6b1f5d9967dc", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°8", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°8", + "timedOut": false, + "duration": 1266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac8c3bdc-75b8-4107-9168-b1437b56d261", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb02abef-1401-4f76-a597-5444103d3e18", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°9", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°9", + "timedOut": false, + "duration": 1271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9799fc1b-8f6b-476c-a510-bd3aca03f3ec", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a185adf-fd0e-47dc-9521-d4584d525bc2", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°10", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°10", + "timedOut": false, + "duration": 1256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c85adf5-02b1-401a-a5bf-0ebd161edac9", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38962540-d0f0-4bae-befc-7f2555c3777e", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°11", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°11", + "timedOut": false, + "duration": 1280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac1e4b69-8db4-4bb9-93c0-1458ef44cf80", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a58e44d7-5ab3-4374-9009-83d144c63868", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°12", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°12", + "timedOut": false, + "duration": 1302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1cf8fda-68c9-487b-b87a-040238dd4b8a", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "299c8f7d-6ed0-4cdb-a098-f6b630ef776f", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°13", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°13", + "timedOut": false, + "duration": 1292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06d17c54-86d9-42c6-832f-67cf2f6cf24e", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0d7790b-dcdb-4d45-9ce5-c79e32c1f407", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°14", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°14", + "timedOut": false, + "duration": 1294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc4c067a-84f0-4eaa-bf43-ac3bba3606a2", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should go to add new image type page", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_goToAddImageTypePage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d29a0ff-3e44-40ee-bb6e-90e585e14186", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°15", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Create 15 image types should create image type n°15", + "timedOut": false, + "duration": 1289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_createImageType14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ddf4b30-b5d2-4a99-8399-43986dee00d4", + "parentUUID": "60f3d5ee-6177-40a9-9418-ae44159dc337", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "addaa828-b5e6-4ce6-9a1c-4403a6166d1f", + "ad8fadef-89e1-4557-9f84-2fa83ea79e8a", + "cf2eaa65-c374-44e0-ba4e-9e420f32915d", + "c3cb69d0-8021-441f-a431-dee179ef564c", + "c597d758-c2f0-44f1-9bb6-9e165b3bab8c", + "8a1d5c76-276f-497a-b667-8f4b33133000", + "064b8022-4f34-4409-a5ca-0b2f9bb644bf", + "03f4af23-f4ef-426a-a994-70fd43af00e2", + "94290e70-294f-42cf-a9a6-fecacba190a2", + "871443ba-8bc2-4db1-972b-827dcbdf99ba", + "6db07559-1026-4d6d-9ba4-11b14d972042", + "90701aec-a32b-4d38-ac26-94dba90ce218", + "4abce34c-ae68-42ce-aeec-939b3c4faf3d", + "69209728-6222-4b68-b1b5-5ba4cd2b092a", + "9c7bae0a-a1e0-4fed-a52f-6b1f5d9967dc", + "ac8c3bdc-75b8-4107-9168-b1437b56d261", + "cb02abef-1401-4f76-a597-5444103d3e18", + "9799fc1b-8f6b-476c-a510-bd3aca03f3ec", + "5a185adf-fd0e-47dc-9521-d4584d525bc2", + "1c85adf5-02b1-401a-a5bf-0ebd161edac9", + "38962540-d0f0-4bae-befc-7f2555c3777e", + "ac1e4b69-8db4-4bb9-93c0-1458ef44cf80", + "a58e44d7-5ab3-4374-9009-83d144c63868", + "c1cf8fda-68c9-487b-b87a-040238dd4b8a", + "299c8f7d-6ed0-4cdb-a098-f6b630ef776f", + "06d17c54-86d9-42c6-832f-67cf2f6cf24e", + "b0d7790b-dcdb-4d45-9ce5-c79e32c1f407", + "bc4c067a-84f0-4eaa-bf43-ac3bba3606a2", + "2d29a0ff-3e44-40ee-bb6e-90e585e14186", + "0ddf4b30-b5d2-4a99-8399-43986dee00d4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 31196, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "05ae1364-8314-43a6-bbc1-07f4edacca54", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "550bcb59-a6a6-4528-b279-6ea8012ad801", + "parentUUID": "05ae1364-8314-43a6-bbc1-07f4edacca54", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Pagination next and previous should click on next", + "timedOut": false, + "duration": 892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdecc97e-5814-4cbd-98a2-1efdbaf4f764", + "parentUUID": "05ae1364-8314-43a6-bbc1-07f4edacca54", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Pagination next and previous should click on previous", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a3cef2f-0838-4c7b-a359-3f508b78cd21", + "parentUUID": "05ae1364-8314-43a6-bbc1-07f4edacca54", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 1282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9229b44b-032e-4048-b10d-dc54c61d24c2", + "parentUUID": "05ae1364-8314-43a6-bbc1-07f4edacca54", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "550bcb59-a6a6-4528-b279-6ea8012ad801", + "fdecc97e-5814-4cbd-98a2-1efdbaf4f764", + "1a3cef2f-0838-4c7b-a359-3f508b78cd21", + "9229b44b-032e-4048-b10d-dc54c61d24c2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3997, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "title": "Sort image settings table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_image_type' 'down' and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Sort image settings table should sort by 'id_image_type' 'down' and check result", + "timedOut": false, + "duration": 1283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, imageSettings_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7aaf14e7-b0cf-4075-8145-bc2377d15e8d", + "parentUUID": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'up' and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Sort image settings table should sort by 'name' 'up' and check result", + "timedOut": false, + "duration": 1163, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, imageSettings_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7460624b-0a85-4164-8050-33167c8c325a", + "parentUUID": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'down' and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Sort image settings table should sort by 'name' 'down' and check result", + "timedOut": false, + "duration": 1249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, imageSettings_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c3b8ec7-db77-473e-9971-317003bb957e", + "parentUUID": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'width' 'up' and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Sort image settings table should sort by 'width' 'up' and check result", + "timedOut": false, + "duration": 1288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_sortByWidthAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, imageSettings_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57595ed8-bc2c-43c2-95a4-c5033c1c09fe", + "parentUUID": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'width' 'down' and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Sort image settings table should sort by 'width' 'down' and check result", + "timedOut": false, + "duration": 1191, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_sortByWidthDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, imageSettings_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da1c2260-1cca-4966-b83a-378d44413914", + "parentUUID": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'height' 'up' and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Sort image settings table should sort by 'height' 'up' and check result", + "timedOut": false, + "duration": 1241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_sortByHeightAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, imageSettings_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4bcc395-cd31-41d6-986a-d76870a8c524", + "parentUUID": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'height' 'down' and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Sort image settings table should sort by 'height' 'down' and check result", + "timedOut": false, + "duration": 1208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_sortByHeightDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, imageSettings_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec5f0781-f25b-4425-a5ca-0e4c2d26dab8", + "parentUUID": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_image_type' 'up' and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Sort image settings table should sort by 'id_image_type' 'up' and check result", + "timedOut": false, + "duration": 1242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, imageSettings_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b4a5bdb-8e98-4a11-986b-2b958eebaa3d", + "parentUUID": "f728cc02-5798-49e8-a6cb-ccad33e33fac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7aaf14e7-b0cf-4075-8145-bc2377d15e8d", + "7460624b-0a85-4164-8050-33167c8c325a", + "1c3b8ec7-db77-473e-9971-317003bb957e", + "57595ed8-bc2c-43c2-95a4-c5033c1c09fe", + "da1c2260-1cca-4966-b83a-378d44413914", + "f4bcc395-cd31-41d6-986a-d76870a8c524", + "ec5f0781-f25b-4425-a5ca-0e4c2d26dab8", + "7b4a5bdb-8e98-4a11-986b-2b958eebaa3d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9865, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f5e5fb58-4993-41d1-8ed8-0ab23bf42e2c", + "title": "Delete image types with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Delete image types with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 1052, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfImageTypesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09af062a-1e69-44f0-ad20-31e5cad5cc46", + "parentUUID": "f5e5fb58-4993-41d1-8ed8-0ab23bf42e2c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete image types with Bulk Actions and check result", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Delete image types with Bulk Actions should delete image types with Bulk Actions and check result", + "timedOut": false, + "duration": 622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_bulkDeleteImageTypes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteImageTypes', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.bulkDeleteImageTypes(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(imageSettings_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a7334ff-12c8-4e17-8766-dd3b399ffa18", + "parentUUID": "f5e5fb58-4993-41d1-8ed8-0ab23bf42e2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings : Pagination and sort image settings Delete image types with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 2878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_sortAndPagination_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterReset).to.be.equal(numberOfImageTypes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bd5fd77-0c05-4257-be8d-62e09f76f16a", + "parentUUID": "f5e5fb58-4993-41d1-8ed8-0ab23bf42e2c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "09af062a-1e69-44f0-ad20-31e5cad5cc46", + "3a7334ff-12c8-4e17-8766-dd3b399ffa18", + "2bd5fd77-0c05-4257-be8d-62e09f76f16a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4552, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "1aaffc62-6a5e-474e-9c0e-12e66c69bf5f", + "a2f3bc05-03f0-4077-ba40-6d345e973a0f", + "ae81d092-f745-4fc3-8407-a9d0150aa607" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6373, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a72f9bed-0165-4875-968f-dc039d950941", + "title": "BO - Design - Image Settings : Delete Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/06_deleteActions.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/06_deleteActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings : Delete Actions\"", + "fullTitle": "BO - Design - Image Settings : Delete Actions \"before all\" hook in \"BO - Design - Image Settings : Delete Actions\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d29b2e8-c3ca-48cb-97a5-a7ba2cbbe80a", + "parentUUID": "a72f9bed-0165-4875-968f-dc039d950941", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings : Delete Actions\"", + "fullTitle": "BO - Design - Image Settings : Delete Actions \"after all\" hook in \"BO - Design - Image Settings : Delete Actions\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "77ef7d42-dd45-4fa8-8868-f18ccfdea49d", + "parentUUID": "a72f9bed-0165-4875-968f-dc039d950941", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings : Delete Actions should login in BO", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58fd0ed2-5045-4be6-a8a3-039f6b18d4dd", + "parentUUID": "a72f9bed-0165-4875-968f-dc039d950941", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings : Delete Actions should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4647, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e29eff7d-030c-4136-9a78-55dad4806686", + "parentUUID": "a72f9bed-0165-4875-968f-dc039d950941", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of image types in BO", + "fullTitle": "BO - Design - Image Settings : Delete Actions should reset all filters and get number of image types in BO", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfImageTypes = _a.sent();\n (0, chai_1.expect)(numberOfImageTypes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d25bea8-645d-4e3e-b6cc-e539b7ce2916", + "parentUUID": "a72f9bed-0165-4875-968f-dc039d950941", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "0b183990-3b0b-4490-affa-98e021a32e67", + "title": "Create 2 image types", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/06_deleteActions.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/06_deleteActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Delete Actions Create 2 image types should go to add new image type page", + "timedOut": false, + "duration": 779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_goToAddImageTypePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "346e09ce-aef5-4542-9cb6-b6d41ad0c428", + "parentUUID": "0b183990-3b0b-4490-affa-98e021a32e67", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°1", + "fullTitle": "BO - Design - Image Settings : Delete Actions Create 2 image types should create image type n°1", + "timedOut": false, + "duration": 1250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_createImageType0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e6dab31-82a9-4e17-860e-f11eb617fc9c", + "parentUUID": "0b183990-3b0b-4490-affa-98e021a32e67", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new image type page", + "fullTitle": "BO - Design - Image Settings : Delete Actions Create 2 image types should go to add new image type page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_goToAddImageTypePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddImageTypePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.goToNewImageTypePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08aceedc-ec67-4500-9be8-cce0f7ef7419", + "parentUUID": "0b183990-3b0b-4490-affa-98e021a32e67", + "isHook": false, + "skipped": false + }, + { + "title": "should create image type n°2", + "fullTitle": "BO - Design - Image Settings : Delete Actions Create 2 image types should create image type n°2", + "timedOut": false, + "duration": 1273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_createImageType1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditImageType(page, createImageTypeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulCreationMessage);\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterCreation).to.be.equal(numberOfImageTypes + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4944f65e-e140-4d98-a94e-a4fed1c94da7", + "parentUUID": "0b183990-3b0b-4490-affa-98e021a32e67", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings : Delete Actions Create 2 image types should regenerate thumbnails", + "timedOut": false, + "duration": 2141, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_regenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'regenerateThumbnails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb792b7c-2631-4fb6-bedf-bfa06952bfc4", + "parentUUID": "0b183990-3b0b-4490-affa-98e021a32e67", + "isHook": false, + "skipped": false + }, + { + "title": "should check thumbnails for the image type n°0 are regenerated", + "fullTitle": "BO - Design - Image Settings : Delete Actions Create 2 image types should check thumbnails for the image type n°0 are regenerated", + "timedOut": false, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_checkProductsThumbnails0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imagePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsThumbnails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilePathAutomaticallyGenerated(\"img/p/\".concat(products_1.default.demo_1.id, \"/\"), \"\".concat(products_1.default.demo_1.id, \"-todelete\").concat(index, \".jpg\"))];\n case 2:\n imagePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(imagePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'File doesn\\'t exist!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07c791e1-78ca-4f2e-9c36-c1e20d98fb8e", + "parentUUID": "0b183990-3b0b-4490-affa-98e021a32e67", + "isHook": false, + "skipped": false + }, + { + "title": "should check thumbnails for the image type n°1 are regenerated", + "fullTitle": "BO - Design - Image Settings : Delete Actions Create 2 image types should check thumbnails for the image type n°1 are regenerated", + "timedOut": false, + "duration": 100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_checkProductsThumbnails1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imagePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsThumbnails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilePathAutomaticallyGenerated(\"img/p/\".concat(products_1.default.demo_1.id, \"/\"), \"\".concat(products_1.default.demo_1.id, \"-todelete\").concat(index, \".jpg\"))];\n case 2:\n imagePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(imagePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'File doesn\\'t exist!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "638df8bd-2dfa-440a-8d2f-6503e3e17b8d", + "parentUUID": "0b183990-3b0b-4490-affa-98e021a32e67", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "346e09ce-aef5-4542-9cb6-b6d41ad0c428", + "2e6dab31-82a9-4e17-860e-f11eb617fc9c", + "08aceedc-ec67-4500-9be8-cce0f7ef7419", + "4944f65e-e140-4d98-a94e-a4fed1c94da7", + "cb792b7c-2631-4fb6-bedf-bfa06952bfc4", + "07c791e1-78ca-4f2e-9c36-c1e20d98fb8e", + "638df8bd-2dfa-440a-8d2f-6503e3e17b8d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6442, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "18a57ee5-56cf-4254-8a7e-2915348e02e0", + "title": "Remove image type with deletion of linked images", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/06_deleteActions.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/06_deleteActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Image Settings : Delete Actions Remove image type with deletion of linked images should filter list by name", + "timedOut": false, + "duration": 964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_filterForBulkDelete0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterForBulkDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, 'input', 'name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.eq(1);\n return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(\"todelete\".concat(index));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fcd1840-e536-44ae-9f3a-936370040a30", + "parentUUID": "18a57ee5-56cf-4254-8a7e-2915348e02e0", + "isHook": false, + "skipped": false + }, + { + "title": "should delete image type", + "fullTitle": "BO - Design - Image Settings : Delete Actions Remove image type with deletion of linked images should delete image type", + "timedOut": false, + "duration": 4489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_deleteImageType0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.deleteImageType(page, 1, value)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulDeleteMessage);\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfImageTypesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterDelete).to.be.equal(numberOfImageTypes + (1 - index));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16a2abc4-8c79-4950-a93a-dbc39a016bc1", + "parentUUID": "18a57ee5-56cf-4254-8a7e-2915348e02e0", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images relative to image type are not removed", + "fullTitle": "BO - Design - Image Settings : Delete Actions Remove image type with deletion of linked images should check that images relative to image type are not removed", + "timedOut": false, + "duration": 5105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_checkImagesRelativeImageType0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imagePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkImagesRelativeImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilePathAutomaticallyGenerated(\"img/p/\".concat(products_1.default.demo_1.id, \"/\"), \"\".concat(products_1.default.demo_1.id, \"-todelete\").concat(index, \".jpg\"))];\n case 2:\n imagePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(imagePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'File doesn\\'t exist!').to.be.eq(!value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bb44067-cf18-46b8-a33d-421b75bc1189", + "parentUUID": "18a57ee5-56cf-4254-8a7e-2915348e02e0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2fcd1840-e536-44ae-9f3a-936370040a30", + "16a2abc4-8c79-4950-a93a-dbc39a016bc1", + "8bb44067-cf18-46b8-a33d-421b75bc1189" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10558, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2635af04-03f2-4544-8514-3be1353e00a3", + "title": "Remove image type without deletion of linked images", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/06_deleteActions.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/06_deleteActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Image Settings : Delete Actions Remove image type without deletion of linked images should filter list by name", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_filterForBulkDelete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfImageTypesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterForBulkDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.filterTable(page, 'input', 'name', \"todelete\".concat(index))];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfImageTypesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterFilter).to.be.eq(1);\n return [4 /*yield*/, imageSettings_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(\"todelete\".concat(index));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bd40755-91f7-4bb8-9e98-de90cb7d71d2", + "parentUUID": "2635af04-03f2-4544-8514-3be1353e00a3", + "isHook": false, + "skipped": false + }, + { + "title": "should delete image type", + "fullTitle": "BO - Design - Image Settings : Delete Actions Remove image type without deletion of linked images should delete image type", + "timedOut": false, + "duration": 4311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_deleteImageType1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfImageTypesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.deleteImageType(page, 1, value)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.successfulDeleteMessage);\n return [4 /*yield*/, imageSettings_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfImageTypesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfImageTypesAfterDelete).to.be.equal(numberOfImageTypes + (1 - index));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d40eacfa-303f-43eb-ad28-ce23460d6e6a", + "parentUUID": "2635af04-03f2-4544-8514-3be1353e00a3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images relative to image type are not removed", + "fullTitle": "BO - Design - Image Settings : Delete Actions Remove image type without deletion of linked images should check that images relative to image type are not removed", + "timedOut": false, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_deleteActions_checkImagesRelativeImageType1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imagePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkImagesRelativeImageType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilePathAutomaticallyGenerated(\"img/p/\".concat(products_1.default.demo_1.id, \"/\"), \"\".concat(products_1.default.demo_1.id, \"-todelete\").concat(index, \".jpg\"))];\n case 2:\n imagePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(imagePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'File doesn\\'t exist!').to.be.eq(!value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b438caa-27eb-42ff-8815-05a2e48b7d58", + "parentUUID": "2635af04-03f2-4544-8514-3be1353e00a3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3bd40755-91f7-4bb8-9e98-de90cb7d71d2", + "d40eacfa-303f-43eb-ad28-ce23460d6e6a", + "4b438caa-27eb-42ff-8815-05a2e48b7d58" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5344, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "58fd0ed2-5045-4be6-a8a3-039f6b18d4dd", + "e29eff7d-030c-4136-9a78-55dad4806686", + "5d25bea8-645d-4e3e-b6cc-e539b7ce2916" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6363, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52b34872-3302-43ea-af17-842309eabb3f", + "title": "BO - Design - Image Settings : Image Generation options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/09_imageGenerationOptions.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/09_imageGenerationOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "dc4425c1-6059-4f33-b748-8952c5e8219e", + "title": "Image Generation options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/09_imageGenerationOptions.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/09_imageGenerationOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Image Generation options\"", + "fullTitle": "BO - Design - Image Settings : Image Generation options Image Generation options \"before all\" hook in \"Image Generation options\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b44b7a5-c5b3-4b36-a080-ef3dbd45e2bd", + "parentUUID": "dc4425c1-6059-4f33-b748-8952c5e8219e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Image Generation options\"", + "fullTitle": "BO - Design - Image Settings : Image Generation options Image Generation options \"after all\" hook in \"Image Generation options\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "aea4b291-6a1d-4e6c-9f92-14c063b330fa", + "parentUUID": "dc4425c1-6059-4f33-b748-8952c5e8219e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings : Image Generation options Image Generation options should login in BO", + "timedOut": false, + "duration": 1724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3be3cc7-5475-4822-a757-9a0402c6d00d", + "parentUUID": "dc4425c1-6059-4f33-b748-8952c5e8219e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings : Image Generation options Image Generation options should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4641, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOptions_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d371b9c-7a9f-4168-b63b-f2257b09474a", + "parentUUID": "dc4425c1-6059-4f33-b748-8952c5e8219e", + "isHook": false, + "skipped": false + }, + { + "title": "should check image generation options", + "fullTitle": "BO - Design - Image Settings : Image Generation options Image Generation options should check image generation options", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOptions_checkImageGenerationOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpegChecked, jpegDisabled, avifDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImageGenerationOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'jpg')];\n case 2:\n jpegChecked = _a.sent();\n (0, chai_1.expect)(jpegChecked).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateDisabled(page, 'jpg')];\n case 3:\n jpegDisabled = _a.sent();\n (0, chai_1.expect)(jpegDisabled).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateDisabled(page, 'avif')];\n case 4:\n avifDisabled = _a.sent();\n (0, chai_1.expect)(avifDisabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb228cd6-a3cf-4665-a655-67e57a9d162b", + "parentUUID": "dc4425c1-6059-4f33-b748-8952c5e8219e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d3be3cc7-5475-4822-a757-9a0402c6d00d", + "7d371b9c-7a9f-4168-b63b-f2257b09474a", + "cb228cd6-a3cf-4665-a655-67e57a9d162b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6375, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "576ff874-b09c-4b23-8f96-60ce2898cd01", + "title": "BO - Design - Image Settings - Regenerate thumbnail", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings - Regenerate thumbnail\"", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail \"before all\" hook in \"BO - Design - Image Settings - Regenerate thumbnail\"", + "timedOut": false, + "duration": 81, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create image\n return [4 /*yield*/, files_1.default.generateImage(supplierImage)];\n case 3:\n // Create image\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "894eecb7-ea89-4021-8ce0-e575a85ac788", + "parentUUID": "576ff874-b09c-4b23-8f96-60ce2898cd01", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings - Regenerate thumbnail\"", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail \"after all\" hook in \"BO - Design - Image Settings - Regenerate thumbnail\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete image\n return [4 /*yield*/, files_1.default.deleteFile(supplierImage)];\n case 2:\n // Delete image\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0f590fdf-2c5e-40e2-8884-b1b79af8415e", + "parentUUID": "576ff874-b09c-4b23-8f96-60ce2898cd01", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c272a722-29fe-4309-ac13-f7e7cd10c2fe", + "title": "Regenerate thumbnail - BackOffice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - BackOffice should login in BO", + "timedOut": false, + "duration": 1704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02278c02-41f5-499b-b39f-1f6c08ddc4e3", + "parentUUID": "c272a722-29fe-4309-ac13-f7e7cd10c2fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - BackOffice should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "babcaf42-b3e5-497a-92e9-afa4b57e141e", + "parentUUID": "c272a722-29fe-4309-ac13-f7e7cd10c2fe", + "isHook": false, + "skipped": false + }, + { + "title": "should enable WebP image format", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - BackOffice should enable WebP image format", + "timedOut": false, + "duration": 313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_enableWebP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableWebP', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.setImageFormatToGenerateChecked(page, 'webp', true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(imageSettings_1.default.messageSettingsUpdated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c30c94e-1161-430f-a656-eed313cbfa56", + "parentUUID": "c272a722-29fe-4309-ac13-f7e7cd10c2fe", + "isHook": false, + "skipped": false + }, + { + "title": "should check image generation options", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - BackOffice should check image generation options", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_checkImageGenerationOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpegChecked, webpChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImageGenerationOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'jpg')];\n case 2:\n jpegChecked = _a.sent();\n (0, chai_1.expect)(jpegChecked).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'webp')];\n case 3:\n webpChecked = _a.sent();\n (0, chai_1.expect)(webpChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1453daa0-32c3-4800-9558-a91255cc0018", + "parentUUID": "c272a722-29fe-4309-ac13-f7e7cd10c2fe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "02278c02-41f5-499b-b39f-1f6c08ddc4e3", + "babcaf42-b3e5-497a-92e9-afa4b57e141e", + "6c30c94e-1161-430f-a656-eed313cbfa56", + "1453daa0-32c3-4800-9558-a91255cc0018" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6678, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2a6c039d-4926-4b62-830a-b9f40a61616f", + "title": "Regenerate thumbnail - Categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should fetch image name", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories should fetch image name", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_categoriesFetchImageName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"FetchImageName\"), baseContext)];\n case 1:\n _c.sent();\n _a = formats;\n _b = arg.type;\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsFormats(page, arg.type)];\n case 2:\n _a[_b] = _c.sent();\n (0, chai_1.expect)(formats[arg.type].length).to.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef262fb7-e139-4fa9-a5fc-da4908489830", + "parentUUID": "2a6c039d-4926-4b62-830a-b9f40a61616f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete all images excepted original", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories should delete all images excepted original", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_categoriesDeleteAllImages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchedFilesJpeg, searchedFilesWebp;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"DeleteAllImages\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 4:\n searchedFilesJpeg = _a.sent();\n (0, chai_1.expect)(searchedFilesJpeg.length).to.eq(0);\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 5:\n searchedFilesWebp = _a.sent();\n (0, chai_1.expect)(searchedFilesWebp.length).to.eq(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(0, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(0, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02e6ce36-42df-4247-a433-e8d3680c6386", + "parentUUID": "2a6c039d-4926-4b62-830a-b9f40a61616f", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories should regenerate thumbnails", + "timedOut": false, + "duration": 975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_categoriesRegenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"RegenerateThumbnails\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page, arg.type)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbafcde8-de2f-44e0-b74f-985143d59e8a", + "parentUUID": "2a6c039d-4926-4b62-830a-b9f40a61616f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form is reset", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories should check that the form is reset", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_categoriesCheckFormReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var image;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckFormReset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsImage(page)];\n case 2:\n image = _a.sent();\n (0, chai_1.expect)(image).to.contains('all');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3731d34c-b09d-462e-a34a-2762728c17d9", + "parentUUID": "2a6c039d-4926-4b62-830a-b9f40a61616f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images have been regenerated", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories should check that images have been regenerated", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_categoriesCheckImagesRegenerated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpgOriginalFiles;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckImagesRegenerated\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /^[0-9]+\\.jpg$/)];\n case 2:\n jpgOriginalFiles = _a.sent();\n (0, chai_1.expect)(jpgOriginalFiles.length).to.gt(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "009b2c85-5ab4-4c32-8932-cde927ed29d4", + "parentUUID": "2a6c039d-4926-4b62-830a-b9f40a61616f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ef262fb7-e139-4fa9-a5fc-da4908489830", + "02e6ce36-42df-4247-a433-e8d3680c6386", + "bbafcde8-de2f-44e0-b74f-985143d59e8a", + "3731d34c-b09d-462e-a34a-2762728c17d9", + "009b2c85-5ab4-4c32-8932-cde927ed29d4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1001, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a502782e-a796-4623-a623-906bd2f94173", + "title": "Regenerate thumbnail - Brands", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should fetch image name", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Brands should fetch image name", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_manufacturersFetchImageName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"FetchImageName\"), baseContext)];\n case 1:\n _c.sent();\n _a = formats;\n _b = arg.type;\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsFormats(page, arg.type)];\n case 2:\n _a[_b] = _c.sent();\n (0, chai_1.expect)(formats[arg.type].length).to.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f6aab6b-3c31-4e2d-b29f-6914f506ee21", + "parentUUID": "a502782e-a796-4623-a623-906bd2f94173", + "isHook": false, + "skipped": false + }, + { + "title": "should delete all images excepted original", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Brands should delete all images excepted original", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_manufacturersDeleteAllImages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchedFilesJpeg, searchedFilesWebp;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"DeleteAllImages\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 4:\n searchedFilesJpeg = _a.sent();\n (0, chai_1.expect)(searchedFilesJpeg.length).to.eq(0);\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 5:\n searchedFilesWebp = _a.sent();\n (0, chai_1.expect)(searchedFilesWebp.length).to.eq(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(0, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(0, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59eada96-e58c-42d7-a48c-80d38bcf7ef4", + "parentUUID": "a502782e-a796-4623-a623-906bd2f94173", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Brands should regenerate thumbnails", + "timedOut": false, + "duration": 1129, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_manufacturersRegenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"RegenerateThumbnails\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page, arg.type)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba807058-be14-4dbc-b829-68988af2941c", + "parentUUID": "a502782e-a796-4623-a623-906bd2f94173", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form is reset", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Brands should check that the form is reset", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_manufacturersCheckFormReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var image;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckFormReset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsImage(page)];\n case 2:\n image = _a.sent();\n (0, chai_1.expect)(image).to.contains('all');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a71485a1-f350-4109-aaf5-0762a8fb6299", + "parentUUID": "a502782e-a796-4623-a623-906bd2f94173", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images have been regenerated", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Brands should check that images have been regenerated", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_manufacturersCheckImagesRegenerated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpgOriginalFiles;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckImagesRegenerated\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /^[0-9]+\\.jpg$/)];\n case 2:\n jpgOriginalFiles = _a.sent();\n (0, chai_1.expect)(jpgOriginalFiles.length).to.gt(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc4b9c4d-e923-4785-a747-00f0a771a6d8", + "parentUUID": "a502782e-a796-4623-a623-906bd2f94173", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f6aab6b-3c31-4e2d-b29f-6914f506ee21", + "59eada96-e58c-42d7-a48c-80d38bcf7ef4", + "ba807058-be14-4dbc-b829-68988af2941c", + "a71485a1-f350-4109-aaf5-0762a8fb6299", + "fc4b9c4d-e923-4785-a747-00f0a771a6d8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1156, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "924754c6-ed5e-40e2-b9fb-61364072c44a", + "title": "Regenerate thumbnail - Suppliers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should fetch image name", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Suppliers should fetch image name", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_suppliersFetchImageName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"FetchImageName\"), baseContext)];\n case 1:\n _c.sent();\n _a = formats;\n _b = arg.type;\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsFormats(page, arg.type)];\n case 2:\n _a[_b] = _c.sent();\n (0, chai_1.expect)(formats[arg.type].length).to.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6d52ff4-1b41-46ac-b0a3-8ab42543100d", + "parentUUID": "924754c6-ed5e-40e2-b9fb-61364072c44a", + "isHook": false, + "skipped": false + }, + { + "title": "should delete all images excepted original", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Suppliers should delete all images excepted original", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_suppliersDeleteAllImages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchedFilesJpeg, searchedFilesWebp;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"DeleteAllImages\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 4:\n searchedFilesJpeg = _a.sent();\n (0, chai_1.expect)(searchedFilesJpeg.length).to.eq(0);\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 5:\n searchedFilesWebp = _a.sent();\n (0, chai_1.expect)(searchedFilesWebp.length).to.eq(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(0, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(0, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcf38d7c-0e39-4cae-a445-3f68c4e03303", + "parentUUID": "924754c6-ed5e-40e2-b9fb-61364072c44a", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Suppliers should regenerate thumbnails", + "timedOut": false, + "duration": 1081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_suppliersRegenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"RegenerateThumbnails\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page, arg.type)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "634844c9-e00b-411f-acf1-7141b66d81c9", + "parentUUID": "924754c6-ed5e-40e2-b9fb-61364072c44a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form is reset", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Suppliers should check that the form is reset", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_suppliersCheckFormReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var image;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckFormReset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsImage(page)];\n case 2:\n image = _a.sent();\n (0, chai_1.expect)(image).to.contains('all');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89fa29ab-fbe1-4a2c-ad4d-711b3fe54b5c", + "parentUUID": "924754c6-ed5e-40e2-b9fb-61364072c44a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images have been regenerated", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Suppliers should check that images have been regenerated", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_suppliersCheckImagesRegenerated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpgOriginalFiles;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckImagesRegenerated\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /^[0-9]+\\.jpg$/)];\n case 2:\n jpgOriginalFiles = _a.sent();\n (0, chai_1.expect)(jpgOriginalFiles.length).to.gt(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5d6fac1-81b8-43f8-b372-995d5e7079e0", + "parentUUID": "924754c6-ed5e-40e2-b9fb-61364072c44a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f6d52ff4-1b41-46ac-b0a3-8ab42543100d", + "fcf38d7c-0e39-4cae-a445-3f68c4e03303", + "634844c9-e00b-411f-acf1-7141b66d81c9", + "89fa29ab-fbe1-4a2c-ad4d-711b3fe54b5c", + "d5d6fac1-81b8-43f8-b372-995d5e7079e0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1101, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1969002e-2f7e-4e89-8fe9-c217798195b5", + "title": "Regenerate thumbnail - Products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should fetch image name", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Products should fetch image name", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_productsFetchImageName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"FetchImageName\"), baseContext)];\n case 1:\n _c.sent();\n _a = formats;\n _b = arg.type;\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsFormats(page, arg.type)];\n case 2:\n _a[_b] = _c.sent();\n (0, chai_1.expect)(formats[arg.type].length).to.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2e5a402-10f4-44c4-a7a4-ec8e5b40843d", + "parentUUID": "1969002e-2f7e-4e89-8fe9-c217798195b5", + "isHook": false, + "skipped": false + }, + { + "title": "should delete all images excepted original", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Products should delete all images excepted original", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_productsDeleteAllImages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchedFilesJpeg, searchedFilesWebp;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"DeleteAllImages\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 4:\n searchedFilesJpeg = _a.sent();\n (0, chai_1.expect)(searchedFilesJpeg.length).to.eq(0);\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 5:\n searchedFilesWebp = _a.sent();\n (0, chai_1.expect)(searchedFilesWebp.length).to.eq(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(0, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(0, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51d0808d-188a-4d16-9ba8-769282c7505a", + "parentUUID": "1969002e-2f7e-4e89-8fe9-c217798195b5", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Products should regenerate thumbnails", + "timedOut": false, + "duration": 6215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_productsRegenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"RegenerateThumbnails\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page, arg.type)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "906a9e5d-0d70-4b7e-a391-5e1d71cc43e0", + "parentUUID": "1969002e-2f7e-4e89-8fe9-c217798195b5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form is reset", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Products should check that the form is reset", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_productsCheckFormReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var image;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckFormReset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsImage(page)];\n case 2:\n image = _a.sent();\n (0, chai_1.expect)(image).to.contains('all');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29d89d24-59c7-496e-9b4c-bf857c575c7f", + "parentUUID": "1969002e-2f7e-4e89-8fe9-c217798195b5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images have been regenerated", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Products should check that images have been regenerated", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_productsCheckImagesRegenerated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpgOriginalFiles;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckImagesRegenerated\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /^[0-9]+\\.jpg$/)];\n case 2:\n jpgOriginalFiles = _a.sent();\n (0, chai_1.expect)(jpgOriginalFiles.length).to.gt(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c8adac5-6c5b-48c6-bf9c-b2ded737901c", + "parentUUID": "1969002e-2f7e-4e89-8fe9-c217798195b5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c2e5a402-10f4-44c4-a7a4-ec8e5b40843d", + "51d0808d-188a-4d16-9ba8-769282c7505a", + "906a9e5d-0d70-4b7e-a391-5e1d71cc43e0", + "29d89d24-59c7-496e-9b4c-bf857c575c7f", + "3c8adac5-6c5b-48c6-bf9c-b2ded737901c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6236, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "67cbe6b5-b4f9-44ae-9f7b-6e07e505c47d", + "title": "Regenerate thumbnail - Stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should fetch image name", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Stores should fetch image name", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_storesFetchImageName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"FetchImageName\"), baseContext)];\n case 1:\n _c.sent();\n _a = formats;\n _b = arg.type;\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsFormats(page, arg.type)];\n case 2:\n _a[_b] = _c.sent();\n (0, chai_1.expect)(formats[arg.type].length).to.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "422371a6-d537-49a9-b75e-63aa54804aa1", + "parentUUID": "67cbe6b5-b4f9-44ae-9f7b-6e07e505c47d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete all images excepted original", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Stores should delete all images excepted original", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_storesDeleteAllImages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchedFilesJpeg, searchedFilesWebp;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"DeleteAllImages\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 4:\n searchedFilesJpeg = _a.sent();\n (0, chai_1.expect)(searchedFilesJpeg.length).to.eq(0);\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 5:\n searchedFilesWebp = _a.sent();\n (0, chai_1.expect)(searchedFilesWebp.length).to.eq(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(0, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(0, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63780698-1101-4e58-b125-1839ab93d56f", + "parentUUID": "67cbe6b5-b4f9-44ae-9f7b-6e07e505c47d", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Stores should regenerate thumbnails", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_storesRegenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"RegenerateThumbnails\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page, arg.type)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6df0522-0854-4c2d-9fe1-dbc3001ca9ec", + "parentUUID": "67cbe6b5-b4f9-44ae-9f7b-6e07e505c47d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form is reset", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Stores should check that the form is reset", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_storesCheckFormReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var image;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckFormReset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsImage(page)];\n case 2:\n image = _a.sent();\n (0, chai_1.expect)(image).to.contains('all');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dedbfbaa-fcc5-4a8e-b9c9-d36ac0bc39bf", + "parentUUID": "67cbe6b5-b4f9-44ae-9f7b-6e07e505c47d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images have been regenerated", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Stores should check that images have been regenerated", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_storesCheckImagesRegenerated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpgOriginalFiles;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(arg.type, \"CheckImagesRegenerated\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), /^[0-9]+\\.jpg$/)];\n case 2:\n jpgOriginalFiles = _a.sent();\n (0, chai_1.expect)(jpgOriginalFiles.length).to.gt(0);\n return [4 /*yield*/, Promise.all(formats[arg.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(arg.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77a887c2-41c5-4487-8317-6950af97a2a3", + "parentUUID": "67cbe6b5-b4f9-44ae-9f7b-6e07e505c47d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "422371a6-d537-49a9-b75e-63aa54804aa1", + "63780698-1101-4e58-b125-1839ab93d56f", + "a6df0522-0854-4c2d-9fe1-dbc3001ca9ec", + "dedbfbaa-fcc5-4a8e-b9c9-d36ac0bc39bf", + "77a887c2-41c5-4487-8317-6950af97a2a3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 932, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8d7e55d0-e32a-4f5f-b948-ea8fd9036c72", + "title": "Regenerate thumbnail - All", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete all images excepted original", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - All should delete all images excepted original", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_allDeleteAllImages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'allDeleteAllImages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all(imageTypes.map(function (imageType) { return __awaiter(_this, void 0, void 0, function () {\n var searchedFilesJpeg, searchedFilesWebp;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 3:\n searchedFilesJpeg = _a.sent();\n (0, chai_1.expect)(searchedFilesJpeg.length).to.eq(0);\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 4:\n searchedFilesWebp = _a.sent();\n (0, chai_1.expect)(searchedFilesWebp.length).to.eq(0);\n return [4 /*yield*/, Promise.all(formats[imageType.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(0, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(0, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ad7e80d-7347-483e-9f54-e472fdbb87f8", + "parentUUID": "8d7e55d0-e32a-4f5f-b948-ea8fd9036c72", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - All should regenerate thumbnails", + "timedOut": false, + "duration": 1517, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_allRegenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'allRegenerateThumbnails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page, 'all')];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8d39225-5f1b-4cd5-8483-a7dbaebd3e79", + "parentUUID": "8d7e55d0-e32a-4f5f-b948-ea8fd9036c72", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form is reset", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - All should check that the form is reset", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_allCheckFormReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var image;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'allCheckFormReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsImage(page)];\n case 2:\n image = _a.sent();\n (0, chai_1.expect)(image).to.contains('all');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6270a9e2-7fb7-48ac-9945-5a58754ad63a", + "parentUUID": "8d7e55d0-e32a-4f5f-b948-ea8fd9036c72", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images have been regenerated", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - All should check that images have been regenerated", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_allCheckImagesRegenerated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'allCheckImagesRegenerated', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all(imageTypes.map(function (imageType) { return __awaiter(_this, void 0, void 0, function () {\n var jpgOriginalFiles;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), /^[0-9]+\\.jpg$/)];\n case 1:\n jpgOriginalFiles = _a.sent();\n (0, chai_1.expect)(jpgOriginalFiles.length).to.gt(0);\n return [4 /*yield*/, Promise.all(formats[imageType.type].map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/\").concat(imageType.directory, \"/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f19e0c3-bd00-4887-add0-40e962f976ab", + "parentUUID": "8d7e55d0-e32a-4f5f-b948-ea8fd9036c72", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2ad7e80d-7347-483e-9f54-e472fdbb87f8", + "d8d39225-5f1b-4cd5-8483-a7dbaebd3e79", + "6270a9e2-7fb7-48ac-9945-5a58754ad63a", + "8f19e0c3-bd00-4887-add0-40e962f976ab" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1543, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d3abb391-545f-41aa-9096-b5fafee94368", + "title": "Regenerate thumbnail - Categories - Specific category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete all images excepted original", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories - Specific category should delete all images excepted original", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_specificCategoryDeleteAllImages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchedFilesJpeg, searchedFilesWebp;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'specificCategoryDeleteAllImages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFilePattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), /[0-9]+-[A-Za-z0-9_]+.jpg/)];\n case 4:\n searchedFilesJpeg = _a.sent();\n (0, chai_1.expect)(searchedFilesJpeg.length).to.eq(0);\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), /[0-9]+-[A-Za-z0-9_]+.webp/)];\n case 5:\n searchedFilesWebp = _a.sent();\n (0, chai_1.expect)(searchedFilesWebp.length).to.eq(0);\n return [4 /*yield*/, Promise.all(formats.categories.map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(0, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(0, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to 0\"));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1fb07a0-f5c4-4b35-9c0e-35f44c1fd893", + "parentUUID": "d3abb391-545f-41aa-9096-b5fafee94368", + "isHook": false, + "skipped": false + }, + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories - Specific category should regenerate thumbnails", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_specificCategoryRegenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'specificCategoryRegenerateThumbnails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page, 'categories', formats.categories[0])];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44122375-2f2b-45a3-8b2f-802767efc17f", + "parentUUID": "d3abb391-545f-41aa-9096-b5fafee94368", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form is reset", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories - Specific category should check that the form is reset", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_specificCategoryCheckFormReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var image;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'specificCategoryCheckFormReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsImage(page)];\n case 2:\n image = _a.sent();\n (0, chai_1.expect)(image).to.contains('all');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae12c539-fcb7-40cb-b4d2-ced70aa21f2b", + "parentUUID": "d3abb391-545f-41aa-9096-b5fafee94368", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images have been regenerated", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories - Specific category should check that images have been regenerated", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_specificCategoryCheckImagesRegenerated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpgOriginalFiles;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'specificCategoryCheckImagesRegenerated', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c\"), /^[0-9]+\\.jpg$/)];\n case 2:\n jpgOriginalFiles = _a.sent();\n (0, chai_1.expect)(jpgOriginalFiles.length).to.gt(0);\n return [4 /*yield*/, Promise.all(formats.categories.map(function (format, index) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(index === 0 ? jpgOriginalFiles.length : 0, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(index === 0 ? jpgOriginalFiles.length : 0, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f4bb138-6b9b-4517-8fad-55cce801b8fe", + "parentUUID": "d3abb391-545f-41aa-9096-b5fafee94368", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c1fb07a0-f5c4-4b35-9c0e-35f44c1fd893", + "44122375-2f2b-45a3-8b2f-802767efc17f", + "ae12c539-fcb7-40cb-b4d2-ced70aa21f2b", + "9f4bb138-6b9b-4517-8fad-55cce801b8fe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 939, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7f8f2de0-946f-4a8a-a058-39f745b1461d", + "title": "Regenerate thumbnail - Categories - Erase previous images", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/10_regenerateThumbnails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should regenerate thumbnails", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories - Erase previous images should regenerate thumbnails", + "timedOut": false, + "duration": 1113, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_categoryWithEraseRegenerateThumbnails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'categoryWithEraseRegenerateThumbnails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.regenerateThumbnails(page, 'categories', 'All', true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(imageSettings_1.default.messageThumbnailsRegenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f128a0a7-d5ed-49c9-a3f5-17c47e342e8b", + "parentUUID": "7f8f2de0-946f-4a8a-a058-39f745b1461d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form is reset", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories - Erase previous images should check that the form is reset", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_categoryWithEraseCheckFormReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var image;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'categoryWithEraseCheckFormReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsImage(page)];\n case 2:\n image = _a.sent();\n (0, chai_1.expect)(image).to.contains('all');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d63d301-2a73-45aa-8f51-a495783ebba7", + "parentUUID": "7f8f2de0-946f-4a8a-a058-39f745b1461d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images have been regenerated", + "fullTitle": "BO - Design - Image Settings - Regenerate thumbnail Regenerate thumbnail - Categories - Erase previous images should check that images have been regenerated", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_regenerateThumbnails_categoryWithEraseCheckImagesRegenerated\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpgOriginalFiles;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'categoryWithEraseCheckImagesRegenerated', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c\"), /^[0-9]+\\.jpg$/)];\n case 2:\n jpgOriginalFiles = _a.sent();\n (0, chai_1.expect)(jpgOriginalFiles.length).to.gt(0);\n return [4 /*yield*/, Promise.all(formats.categories.map(function (format) { return __awaiter(_this, void 0, void 0, function () {\n var formatFilesJpeg, formatFilesWebp;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.jpg$\")))];\n case 1:\n formatFilesJpeg = _a.sent();\n (0, chai_1.expect)(formatFilesJpeg.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesJpeg.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [4 /*yield*/, files_1.default.getFilesPattern(\"\".concat(files_1.default.getRootPath(), \"/img/c/\"), new RegExp(\"^[0-9]+-\".concat(format, \"\\\\.webp$\")))];\n case 2:\n formatFilesWebp = _a.sent();\n (0, chai_1.expect)(formatFilesWebp.length).to.eq(jpgOriginalFiles.length, \"The number of files (\".concat(formatFilesWebp.length, \") for format \").concat(format, \" is not equals to \").concat(jpgOriginalFiles.length));\n return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1db0c44e-d256-4872-a958-d4956aad1765", + "parentUUID": "7f8f2de0-946f-4a8a-a058-39f745b1461d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f128a0a7-d5ed-49c9-a3f5-17c47e342e8b", + "6d63d301-2a73-45aa-8f51-a495783ebba7", + "1db0c44e-d256-4872-a958-d4956aad1765" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1123, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eae4b22a-d712-4e67-9875-33e8b04fccbf", + "title": "BO - Design - Image Settings - Image Generation on creation", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/11_imageGenerationOnCreation.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/11_imageGenerationOnCreation.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings - Image Generation on creation\"", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation \"before all\" hook in \"BO - Design - Image Settings - Image Generation on creation\"", + "timedOut": false, + "duration": 235, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, Promise.all([\n productData.coverImage,\n productData.thumbImage,\n categoryData.coverImage,\n categoryData.thumbnailImage,\n ].map(function (image) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.generateImage(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0befa591-7be7-43b4-9eaf-2872502fcb4c", + "parentUUID": "eae4b22a-d712-4e67-9875-33e8b04fccbf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings - Image Generation on creation\"", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation \"after all\" hook in \"BO - Design - Image Settings - Image Generation on creation\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n productData.coverImage,\n productData.thumbImage,\n categoryData.coverImage,\n categoryData.thumbnailImage,\n ].map(function (image) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.deleteFile(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e1374c5a-dd10-459d-ac69-fb17b6809dc9", + "parentUUID": "eae4b22a-d712-4e67-9875-33e8b04fccbf", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a605ff11-d966-4a43-8a77-facd4c0dda3f", + "title": "Enable WebP for image generation", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/11_imageGenerationOnCreation.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/11_imageGenerationOnCreation.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Enable WebP for image generation should login in BO", + "timedOut": false, + "duration": 1701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e74e1aa-6fc3-4331-a605-2654890b9656", + "parentUUID": "a605ff11-d966-4a43-8a77-facd4c0dda3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Enable WebP for image generation should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7e9aed5-1ae4-4130-adb2-8fc9d267451a", + "parentUUID": "a605ff11-d966-4a43-8a77-facd4c0dda3f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable WebP image format", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Enable WebP for image generation should enable WebP image format", + "timedOut": false, + "duration": 271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_enableWebP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableWebP', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.setImageFormatToGenerateChecked(page, 'webp', true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(imageSettings_1.default.messageSettingsUpdated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "541cc27d-3868-4211-9467-93df913764b6", + "parentUUID": "a605ff11-d966-4a43-8a77-facd4c0dda3f", + "isHook": false, + "skipped": false + }, + { + "title": "should check image generation options", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Enable WebP for image generation should check image generation options", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_checkImageGenerationOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpegChecked, jpegDisabled, webpChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImageGenerationOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'jpg')];\n case 2:\n jpegChecked = _a.sent();\n (0, chai_1.expect)(jpegChecked).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateDisabled(page, 'jpg')];\n case 3:\n jpegDisabled = _a.sent();\n (0, chai_1.expect)(jpegDisabled).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'webp')];\n case 4:\n webpChecked = _a.sent();\n (0, chai_1.expect)(webpChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8317afd-13b9-4784-aa9a-100629a34f85", + "parentUUID": "a605ff11-d966-4a43-8a77-facd4c0dda3f", + "isHook": false, + "skipped": false + }, + { + "title": "should fetch image name", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Enable WebP for image generation should fetch image name", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_fetchImageName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fetchImageName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsFormats(page, 'products')];\n case 2:\n imageTypeProducts = _a.sent();\n (0, chai_1.expect)(imageTypeProducts.length).to.gt(0);\n return [4 /*yield*/, imageSettings_1.default.getRegenerateThumbnailsFormats(page, 'categories')];\n case 3:\n imageTypeCategories = _a.sent();\n (0, chai_1.expect)(imageTypeCategories.length).to.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3dbcf08-e97b-4a1c-8bf4-fff55d527449", + "parentUUID": "a605ff11-d966-4a43-8a77-facd4c0dda3f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e74e1aa-6fc3-4331-a605-2654890b9656", + "b7e9aed5-1ae4-4130-adb2-8fc9d267451a", + "541cc27d-3868-4211-9467-93df913764b6", + "b8317afd-13b9-4784-aa9a-100629a34f85", + "d3dbcf08-e97b-4a1c-8bf4-fff55d527449" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6649, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "title": "Image Generation - Product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/11_imageGenerationOnCreation.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/11_imageGenerationOnCreation.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4e65659-fca4-41b6-a322-0b0608c0b1e7", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9578467-4384-453e-bd6f-bf98d8731f62", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should check the standard product description", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_checkStandardProductDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStandardProductDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "236a8a6f-1875-4b68-a5d7-1f6f70f0631f", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should choose 'Standard product'", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36888a15-b555-41a8-b8e5-27d850bedc8a", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should go to new product page", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4fa5284-d164-4a11-a8da-b861040c9a40", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should create standard product", + "timedOut": false, + "duration": 6249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74ca75e0-96d6-45b4-a0f9-10d7f0bbe750", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product header details", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should check the product header details", + "timedOut": false, + "duration": 43, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_checkProductHeaderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, productHeaderSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductHeaderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(productData.priceTaxExcluded, productData.tax)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, add_2.default.getProductHeaderSummary(page)];\n case 3:\n productHeaderSummary = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productHeaderSummary.priceTaxExc).to.equal(\"\\u20AC\".concat((productData.priceTaxExcluded.toFixed(2)), \" tax excl.\")),\n (0, chai_1.expect)(productHeaderSummary.priceTaxIncl).to.equal(\"\\u20AC\".concat((productData.priceTaxExcluded + taxValue).toFixed(2), \" tax incl. (tax rule: \").concat(productData.tax, \"%)\")),\n (0, chai_1.expect)(productHeaderSummary.quantity).to.equal(\"\".concat(productData.quantity, \" in stock\")),\n (0, chai_1.expect)(productHeaderSummary.reference).to.contains(productData.reference),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63237325-e503-4704-8bbf-af66bdd79412", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_checkSaveButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSaveButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [4 /*yield*/, add_2.default.getProductID(page)];\n case 3:\n idProduct = _a.sent();\n (0, chai_1.expect)(idProduct).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ee4c772-9f93-4b95-8bfc-0ebadf0b733c", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Product should check that images are generated", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_checkProductImages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathProductIdSplitted, pathProductId, fileJpegExists;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductImages', baseContext)];\n case 1:\n _a.sent();\n pathProductIdSplitted = idProduct.toString().match(/./g);\n if (!pathProductIdSplitted) {\n return [2 /*return*/];\n }\n pathProductId = pathProductIdSplitted.join('/');\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProduct, \".jpg\"))];\n case 2:\n fileJpegExists = _a.sent();\n (0, chai_1.expect)(fileJpegExists, 'File doesn\\'t exist!').to.eq(true);\n return [4 /*yield*/, Promise.all(imageTypeProducts.map(function (imageTypeName) { return __awaiter(_this, void 0, void 0, function () {\n var fileJpegExists, fileWebpExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProduct, \"-\").concat(imageTypeName, \".jpg\"))];\n case 1:\n fileJpegExists = _a.sent();\n (0, chai_1.expect)(fileJpegExists, 'File doesn\\'t exist!').to.eq(true);\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProduct, \"-\").concat(imageTypeName, \".webp\"))];\n case 2:\n fileWebpExists = _a.sent();\n (0, chai_1.expect)(fileWebpExists, 'File doesn\\'t exist!').to.eq(true);\n return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "026f1cea-18ed-4053-b1cb-9dd97c92591d", + "parentUUID": "bd77d706-5bf3-41d0-8f28-b8f5610b7a05", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c4e65659-fca4-41b6-a322-0b0608c0b1e7", + "e9578467-4384-453e-bd6f-bf98d8731f62", + "236a8a6f-1875-4b68-a5d7-1f6f70f0631f", + "36888a15-b555-41a8-b8e5-27d850bedc8a", + "f4fa5284-d164-4a11-a8da-b861040c9a40", + "74ca75e0-96d6-45b4-a0f9-10d7f0bbe750", + "63237325-e503-4704-8bbf-af66bdd79412", + "2ee4c772-9f93-4b95-8bfc-0ebadf0b733c", + "026f1cea-18ed-4053-b1cb-9dd97c92591d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12828, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7a0d5bef-0b53-4bae-90a9-e96e89986bd6", + "title": "Image Generation - Category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/11_imageGenerationOnCreation.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/11_imageGenerationOnCreation.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Category should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_goToCategoriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d2a596e-4be8-4da5-aef2-b199155460d0", + "parentUUID": "7a0d5bef-0b53-4bae-90a9-e96e89986bd6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new category page", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Category should go to add new category page", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_goToNewCategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d8cff54-c2c1-4b9f-bcba-c844ba6183b0", + "parentUUID": "7a0d5bef-0b53-4bae-90a9-e96e89986bd6", + "isHook": false, + "skipped": false + }, + { + "title": "should create category", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Category should create category", + "timedOut": false, + "duration": 1410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_createCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, categoryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88a12e78-9702-411f-bb0c-b7609029564a", + "parentUUID": "7a0d5bef-0b53-4bae-90a9-e96e89986bd6", + "isHook": false, + "skipped": false + }, + { + "title": "should filter category by Name and fetch the ID", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Category should filter category by Name and fetch the ID", + "timedOut": false, + "duration": 1084, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_filterCategoryByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterFilter, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCategoryByName', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', categoryData.name)];\n case 2:\n _b.sent();\n return [4 /*yield*/, categories_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCategoriesAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterFilter).to.be.eq(1);\n _a = parseInt;\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'id_category')];\n case 4:\n idCategory = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(idCategory).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88854deb-99f5-4f22-a2d8-38019c47692e", + "parentUUID": "7a0d5bef-0b53-4bae-90a9-e96e89986bd6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Image Generation on creation Image Generation - Category should check that images are generated", + "timedOut": false, + "duration": 1, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_imageGenerationOnCreation_checkProductImagesFinal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var categoryImageExists, thumbnailImageExists;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductImagesFinal', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \".jpg\"))];\n case 2:\n categoryImageExists = _a.sent();\n (0, chai_1.expect)(categoryImageExists, \"File \".concat(idCategory, \".jpg doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"_thumb.jpg\"))];\n case 3:\n thumbnailImageExists = _a.sent();\n (0, chai_1.expect)(thumbnailImageExists, \"File \".concat(idCategory, \".jpg doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, Promise.all(imageTypeCategories.map(function (imageTypeName) { return __awaiter(_this, void 0, void 0, function () {\n var fileJpegExists, fileWebpExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"-\").concat(imageTypeName, \".jpg\"))];\n case 1:\n fileJpegExists = _a.sent();\n (0, chai_1.expect)(fileJpegExists, \"File \".concat(idCategory, \"-\").concat(imageTypeName, \".jpg doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"-\").concat(imageTypeName, \".webp\"))];\n case 2:\n fileWebpExists = _a.sent();\n (0, chai_1.expect)(fileWebpExists, \"File \".concat(idCategory, \"-\").concat(imageTypeName, \".webp doesn't exist!\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n }); }))];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25e4eba5-5330-426d-88db-dc9eb91d5d82", + "parentUUID": "7a0d5bef-0b53-4bae-90a9-e96e89986bd6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5d2a596e-4be8-4da5-aef2-b199155460d0", + "2d8cff54-c2c1-4b9f-bcba-c844ba6183b0", + "88a12e78-9702-411f-bb0c-b7609029564a", + "88854deb-99f5-4f22-a2d8-38019c47692e" + ], + "failures": [], + "pending": [ + "25e4eba5-5330-426d-88db-dc9eb91d5d82" + ], + "skipped": [], + "duration": 8403, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ff0e2700-2837-4a04-ab6c-1c63acfe2465", + "title": "BO - Design - Image Settings - Check product image format", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings - Check product image format\"", + "fullTitle": "BO - Design - Image Settings - Check product image format \"before all\" hook in \"BO - Design - Image Settings - Check product image format\"", + "timedOut": false, + "duration": 83, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, Promise.all([\n productDataJPG.coverImage,\n productDataPNG.coverImage,\n productDataWEBP.coverImage,\n ].map(function (image) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.generateImage(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "316e9e2f-eece-410d-a4c3-33e9b342a4d2", + "parentUUID": "ff0e2700-2837-4a04-ab6c-1c63acfe2465", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings - Check product image format\"", + "fullTitle": "BO - Design - Image Settings - Check product image format \"after all\" hook in \"BO - Design - Image Settings - Check product image format\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n productDataJPG.coverImage,\n productDataPNG.coverImage,\n productDataWEBP.coverImage,\n ].map(function (image) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.deleteFile(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fff7ee83-7df4-4197-b9c9-c45cec31c8e1", + "parentUUID": "ff0e2700-2837-4a04-ab6c-1c63acfe2465", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "8aecd46c-526d-4fe9-a019-bcf581e1aab3", + "title": "Enable WebP for image generation", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check product image format Enable WebP for image generation should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dea931b9-a9e4-4d1f-9d68-68fa43b0ad17", + "parentUUID": "8aecd46c-526d-4fe9-a019-bcf581e1aab3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings - Check product image format Enable WebP for image generation should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4643, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07aaefcc-4cbb-4a35-9a9a-72001854cfcb", + "parentUUID": "8aecd46c-526d-4fe9-a019-bcf581e1aab3", + "isHook": false, + "skipped": false + }, + { + "title": "should enable WebP image format", + "fullTitle": "BO - Design - Image Settings - Check product image format Enable WebP for image generation should enable WebP image format", + "timedOut": false, + "duration": 278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_enableWebP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableWebP', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.setImageFormatToGenerateChecked(page, 'webp', true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(imageSettings_1.default.messageSettingsUpdated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0e0758b-9165-40ca-ac77-6b997a1e656b", + "parentUUID": "8aecd46c-526d-4fe9-a019-bcf581e1aab3", + "isHook": false, + "skipped": false + }, + { + "title": "should check image generation options", + "fullTitle": "BO - Design - Image Settings - Check product image format Enable WebP for image generation should check image generation options", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkImageGenerationOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpegChecked, jpegDisabled, webpChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImageGenerationOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'jpg')];\n case 2:\n jpegChecked = _a.sent();\n (0, chai_1.expect)(jpegChecked).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateDisabled(page, 'jpg')];\n case 3:\n jpegDisabled = _a.sent();\n (0, chai_1.expect)(jpegDisabled).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'webp')];\n case 4:\n webpChecked = _a.sent();\n (0, chai_1.expect)(webpChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76ca3fb3-eaaf-4831-a860-c15b5c789a2f", + "parentUUID": "8aecd46c-526d-4fe9-a019-bcf581e1aab3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dea931b9-a9e4-4d1f-9d68-68fa43b0ad17", + "07aaefcc-4cbb-4a35-9a9a-72001854cfcb", + "b0e0758b-9165-40ca-ac77-6b997a1e656b", + "76ca3fb3-eaaf-4831-a860-c15b5c789a2f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6660, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "title": "Image Generation - Product - Image Format : PNG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToProductsPagepng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca6ab35c-fcfc-4136-a621-e1e7088eb221", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_clickOnNewProductButtonpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6c3f061-647f-411e-a101-074ede8e6a59", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should check the standard product description", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkStandardProductDescriptionpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStandardProductDescription\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "993209c6-852e-4cac-b11a-b566bbf830e3", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should choose 'Standard product'", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_chooseStandardProductpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, arg.product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fac5df0-360c-4edd-b57d-15b53f80f65c", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should go to new product page", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToNewProductPagepng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "924a1c6d-79e1-4523-8e61-976ae0bc0ec5", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should create standard product", + "timedOut": false, + "duration": 6174, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_createStandardProductpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStandardProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, arg.product)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a82ac671-37a1-482e-8c82-933315ca0388", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkSaveButtonpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSaveButton\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [4 /*yield*/, add_1.default.getProductID(page)];\n case 3:\n idProduct = _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getProductIDImageCover(page)];\n case 4:\n idProductImage = _a.sent();\n (0, chai_1.expect)(idProduct).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26c4f247-3ffc-44ba-adb3-749ed55d113d", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should check that images are generated", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkProductImagespng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathProductIdSplitted, pathProductId, pathImageOriginal, fileExistsOriginal, imageTypeOriginal, pathImageJPG, fileExistsJPG, imageTypeJPG, pathImageWEBP, fileExistsWEBP, imageTypeWEBP;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n pathProductIdSplitted = idProductImage.toString().match(/./g);\n if (!pathProductIdSplitted) {\n return [2 /*return*/];\n }\n pathProductId = pathProductIdSplitted.join('/');\n pathImageOriginal = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \".jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageOriginal)];\n case 2:\n fileExistsOriginal = _a.sent();\n (0, chai_1.expect)(fileExistsOriginal, \"The file \".concat(pathImageOriginal, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageOriginal)];\n case 3:\n imageTypeOriginal = _a.sent();\n (0, chai_1.expect)(imageTypeOriginal).to.be.eq(arg.extImageType);\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 4:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 5:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extImageType);\n pathImageWEBP = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.webp\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageWEBP)];\n case 6:\n fileExistsWEBP = _a.sent();\n (0, chai_1.expect)(fileExistsWEBP, \"The file \".concat(pathImageWEBP, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageWEBP)];\n case 7:\n imageTypeWEBP = _a.sent();\n (0, chai_1.expect)(imageTypeWEBP).to.be.eq('webp');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1274650e-1233-4841-a5cb-b657ac5f955a", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should go to FO page", + "timedOut": false, + "duration": 1837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToFopng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecd14ba0-9270-47e3-9edc-e22c5955d6fa", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should go to all products page", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToAllProductspng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProducts\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb7b1710-a480-4ca5-b4f0-d13a39532223", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the second page and quick view the product 'Sleek Steel Bike'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should go to the second page and quick view the product 'Sleek Steel Bike'", + "timedOut": false, + "duration": 714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_quickViewCustomizedProductpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nthProduct, isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickViewCustomizedProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToNextPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNThChildFromIDProduct(page, idProduct)];\n case 3:\n nthProduct = _a.sent();\n (0, chai_1.expect)(nthProduct).to.not.eq(null);\n return [4 /*yield*/, category_1.default.quickViewProduct(page, nthProduct)];\n case 4:\n _a.sent();\n return [4 /*yield*/, category_1.default.isQuickViewProductModalVisible(page)];\n case 5:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cad91d7a-9eb8-4ea9-ba9a-b6b9ef4dec6a", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the main image of the quick view is a WebP", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : PNG should check that the main image of the quick view is a WebP", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkMainImageQuickViewpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quickViewImageMain, quickViewImageMainType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMainImageQuickView\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getQuickViewImageMain(page)];\n case 2:\n quickViewImageMain = _a.sent();\n (0, chai_1.expect)(quickViewImageMain).to.not.eq(null);\n return [4 /*yield*/, files_1.default.downloadFile(quickViewImageMain, 'image.img')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFileType('image.img')];\n case 4:\n quickViewImageMainType = _a.sent();\n (0, chai_1.expect)(quickViewImageMainType).to.be.eq('webp');\n return [4 /*yield*/, files_1.default.deleteFile('image.img')];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7973da4-ce9a-4fd8-9e22-e643f49b8e89", + "parentUUID": "a7ef73dd-7bb7-4102-9d86-5df7008aaa75", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca6ab35c-fcfc-4136-a621-e1e7088eb221", + "b6c3f061-647f-411e-a101-074ede8e6a59", + "993209c6-852e-4cac-b11a-b566bbf830e3", + "5fac5df0-360c-4edd-b57d-15b53f80f65c", + "924a1c6d-79e1-4523-8e61-976ae0bc0ec5", + "a82ac671-37a1-482e-8c82-933315ca0388", + "26c4f247-3ffc-44ba-adb3-749ed55d113d", + "1274650e-1233-4841-a5cb-b657ac5f955a", + "ecd14ba0-9270-47e3-9edc-e22c5955d6fa", + "bb7b1710-a480-4ca5-b4f0-d13a39532223", + "cad91d7a-9eb8-4ea9-ba9a-b6b9ef4dec6a", + "c7973da4-ce9a-4fd8-9e22-e643f49b8e89" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16136, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "title": "Image Generation - Product - Image Format : JPG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should go to BO", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToBoProductsjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBoProducts\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, category_1.default.goToBO(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64dbb8bd-c693-49e0-8d2a-a8de97bae52c", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToProductsPagejpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f50515d-a47b-4233-8c1c-16f5fec73ed5", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_clickOnNewProductButtonjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d82acc78-24a7-463c-99dc-5d7acccb84fd", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should check the standard product description", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkStandardProductDescriptionjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStandardProductDescription\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b052f7f7-bb75-4218-8ec6-fb56b107f84b", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should choose 'Standard product'", + "timedOut": false, + "duration": 43, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_chooseStandardProductjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, arg.product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a5b4416-438f-414c-afc7-f62b39a01b64", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should go to new product page", + "timedOut": false, + "duration": 52, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToNewProductPagejpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d641590a-3e2c-48b7-a488-c0ca3c6ff081", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should create standard product", + "timedOut": false, + "duration": 5400, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_createStandardProductjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStandardProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, arg.product)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77ec078e-494f-47a8-96e4-a7c276bede8e", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkSaveButtonjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSaveButton\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [4 /*yield*/, add_1.default.getProductID(page)];\n case 3:\n idProduct = _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getProductIDImageCover(page)];\n case 4:\n idProductImage = _a.sent();\n (0, chai_1.expect)(idProduct).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d43fdd4d-976b-4dd6-af7c-8768276bdd5f", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should check that images are generated", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkProductImagesjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathProductIdSplitted, pathProductId, pathImageOriginal, fileExistsOriginal, imageTypeOriginal, pathImageJPG, fileExistsJPG, imageTypeJPG, pathImageWEBP, fileExistsWEBP, imageTypeWEBP;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n pathProductIdSplitted = idProductImage.toString().match(/./g);\n if (!pathProductIdSplitted) {\n return [2 /*return*/];\n }\n pathProductId = pathProductIdSplitted.join('/');\n pathImageOriginal = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \".jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageOriginal)];\n case 2:\n fileExistsOriginal = _a.sent();\n (0, chai_1.expect)(fileExistsOriginal, \"The file \".concat(pathImageOriginal, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageOriginal)];\n case 3:\n imageTypeOriginal = _a.sent();\n (0, chai_1.expect)(imageTypeOriginal).to.be.eq(arg.extImageType);\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 4:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 5:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extImageType);\n pathImageWEBP = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.webp\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageWEBP)];\n case 6:\n fileExistsWEBP = _a.sent();\n (0, chai_1.expect)(fileExistsWEBP, \"The file \".concat(pathImageWEBP, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageWEBP)];\n case 7:\n imageTypeWEBP = _a.sent();\n (0, chai_1.expect)(imageTypeWEBP).to.be.eq('webp');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce8cc767-0564-458a-8beb-4b0c3544f2c0", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should go to FO page", + "timedOut": false, + "duration": 1793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToFojpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17af4cba-9bb4-4407-afc9-88edb711c915", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should go to all products page", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToAllProductsjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProducts\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f78049d4-9c9f-4354-ba09-c03bc2c872ad", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the second page and quick view the product 'Modern Steel Salad'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should go to the second page and quick view the product 'Modern Steel Salad'", + "timedOut": false, + "duration": 710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_quickViewCustomizedProductjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nthProduct, isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickViewCustomizedProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToNextPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNThChildFromIDProduct(page, idProduct)];\n case 3:\n nthProduct = _a.sent();\n (0, chai_1.expect)(nthProduct).to.not.eq(null);\n return [4 /*yield*/, category_1.default.quickViewProduct(page, nthProduct)];\n case 4:\n _a.sent();\n return [4 /*yield*/, category_1.default.isQuickViewProductModalVisible(page)];\n case 5:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dca6c8a5-3ecc-4f8a-bddc-0397daa2bb26", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the main image of the quick view is a WebP", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : JPG should check that the main image of the quick view is a WebP", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkMainImageQuickViewjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quickViewImageMain, quickViewImageMainType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMainImageQuickView\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getQuickViewImageMain(page)];\n case 2:\n quickViewImageMain = _a.sent();\n (0, chai_1.expect)(quickViewImageMain).to.not.eq(null);\n return [4 /*yield*/, files_1.default.downloadFile(quickViewImageMain, 'image.img')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFileType('image.img')];\n case 4:\n quickViewImageMainType = _a.sent();\n (0, chai_1.expect)(quickViewImageMainType).to.be.eq('webp');\n return [4 /*yield*/, files_1.default.deleteFile('image.img')];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83294655-0311-4265-84ed-8fed23611a8e", + "parentUUID": "fb9efa6c-16a9-44bd-9a43-c658f975d830", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "64dbb8bd-c693-49e0-8d2a-a8de97bae52c", + "3f50515d-a47b-4233-8c1c-16f5fec73ed5", + "d82acc78-24a7-463c-99dc-5d7acccb84fd", + "b052f7f7-bb75-4218-8ec6-fb56b107f84b", + "9a5b4416-438f-414c-afc7-f62b39a01b64", + "d641590a-3e2c-48b7-a488-c0ca3c6ff081", + "77ec078e-494f-47a8-96e4-a7c276bede8e", + "d43fdd4d-976b-4dd6-af7c-8768276bdd5f", + "ce8cc767-0564-458a-8beb-4b0c3544f2c0", + "17af4cba-9bb4-4407-afc9-88edb711c915", + "f78049d4-9c9f-4354-ba09-c03bc2c872ad", + "dca6c8a5-3ecc-4f8a-bddc-0397daa2bb26", + "83294655-0311-4265-84ed-8fed23611a8e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15250, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "title": "Image Generation - Product - Image Format : WEBP", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should go to BO", + "timedOut": false, + "duration": 266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToBoProductswebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBoProducts\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, category_1.default.goToBO(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01fab1b9-e76d-46d0-808a-7d54a523eb20", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToProductsPagewebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24afcedb-b5a1-496e-bfd1-9e8ca534615f", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_clickOnNewProductButtonwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcd1c791-2b25-461a-9601-e8792c4c0c9d", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should check the standard product description", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkStandardProductDescriptionwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStandardProductDescription\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1e1a57e-51a3-4a48-af3d-74c42960fd8d", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should choose 'Standard product'", + "timedOut": false, + "duration": 45, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_chooseStandardProductwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, arg.product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72e7506c-e044-49e6-bbaf-4b06580712f6", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToNewProductPagewebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "432a420e-567c-40ec-8804-b5b7ccd069be", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should create standard product", + "timedOut": false, + "duration": 6284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_createStandardProductwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStandardProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, arg.product)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f63d4584-d8d8-495e-a9a3-d8e1f68eb156", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkSaveButtonwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSaveButton\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [4 /*yield*/, add_1.default.getProductID(page)];\n case 3:\n idProduct = _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getProductIDImageCover(page)];\n case 4:\n idProductImage = _a.sent();\n (0, chai_1.expect)(idProduct).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "465f4cd4-21ce-4d7b-a842-9011c5dbfd65", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should check that images are generated", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkProductImageswebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathProductIdSplitted, pathProductId, pathImageOriginal, fileExistsOriginal, imageTypeOriginal, pathImageJPG, fileExistsJPG, imageTypeJPG, pathImageWEBP, fileExistsWEBP, imageTypeWEBP;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n pathProductIdSplitted = idProductImage.toString().match(/./g);\n if (!pathProductIdSplitted) {\n return [2 /*return*/];\n }\n pathProductId = pathProductIdSplitted.join('/');\n pathImageOriginal = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \".jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageOriginal)];\n case 2:\n fileExistsOriginal = _a.sent();\n (0, chai_1.expect)(fileExistsOriginal, \"The file \".concat(pathImageOriginal, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageOriginal)];\n case 3:\n imageTypeOriginal = _a.sent();\n (0, chai_1.expect)(imageTypeOriginal).to.be.eq(arg.extImageType);\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 4:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 5:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extImageType);\n pathImageWEBP = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.webp\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageWEBP)];\n case 6:\n fileExistsWEBP = _a.sent();\n (0, chai_1.expect)(fileExistsWEBP, \"The file \".concat(pathImageWEBP, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageWEBP)];\n case 7:\n imageTypeWEBP = _a.sent();\n (0, chai_1.expect)(imageTypeWEBP).to.be.eq('webp');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3538e05-7879-4284-84e2-2d41d5e60ad3", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should go to FO page", + "timedOut": false, + "duration": 1828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToFowebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1aa030de-4ff0-4b64-ae83-6224df78face", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should go to all products page", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_goToAllProductswebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProducts\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae675248-898b-4d90-8725-a9c6e354a5c8", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the second page and quick view the product 'Bespoke Fresh Shoes'", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should go to the second page and quick view the product 'Bespoke Fresh Shoes'", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_quickViewCustomizedProductwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nthProduct, isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"quickViewCustomizedProduct\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToNextPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNThChildFromIDProduct(page, idProduct)];\n case 3:\n nthProduct = _a.sent();\n (0, chai_1.expect)(nthProduct).to.not.eq(null);\n return [4 /*yield*/, category_1.default.quickViewProduct(page, nthProduct)];\n case 4:\n _a.sent();\n return [4 /*yield*/, category_1.default.isQuickViewProductModalVisible(page)];\n case 5:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd2a2212-4711-4702-ab3e-bfb9e438dd08", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the main image of the quick view is a WebP", + "fullTitle": "BO - Design - Image Settings - Check product image format Image Generation - Product - Image Format : WEBP should check that the main image of the quick view is a WebP", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_checkMainImageQuickViewwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quickViewImageMain, quickViewImageMainType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMainImageQuickView\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getQuickViewImageMain(page)];\n case 2:\n quickViewImageMain = _a.sent();\n (0, chai_1.expect)(quickViewImageMain).to.not.eq(null);\n return [4 /*yield*/, files_1.default.downloadFile(quickViewImageMain, 'image.img')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFileType('image.img')];\n case 4:\n quickViewImageMainType = _a.sent();\n (0, chai_1.expect)(quickViewImageMainType).to.be.eq('webp');\n return [4 /*yield*/, files_1.default.deleteFile('image.img')];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5116a1b3-f00f-4f12-9b9a-c4067ded0094", + "parentUUID": "ff81892a-3e97-4c3d-a4b0-c6da168d1b53", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "01fab1b9-e76d-46d0-808a-7d54a523eb20", + "24afcedb-b5a1-496e-bfd1-9e8ca534615f", + "fcd1c791-2b25-461a-9601-e8792c4c0c9d", + "f1e1a57e-51a3-4a48-af3d-74c42960fd8d", + "72e7506c-e044-49e6-bbaf-4b06580712f6", + "432a420e-567c-40ec-8804-b5b7ccd069be", + "f63d4584-d8d8-495e-a9a3-d8e1f68eb156", + "465f4cd4-21ce-4d7b-a842-9011c5dbfd65", + "a3538e05-7879-4284-84e2-2d41d5e60ad3", + "1aa030de-4ff0-4b64-ae83-6224df78face", + "ae675248-898b-4d90-8725-a9c6e354a5c8", + "bd2a2212-4711-4702-ab3e-bfb9e438dd08", + "5116a1b3-f00f-4f12-9b9a-c4067ded0094" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16152, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "title": "POST-TEST: Delete product 'Sleek Steel Bike'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Sleek Steel Bike'\"", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Sleek Steel Bike' \"before all\" hook in \"POST-TEST: Delete product 'Sleek Steel Bike'\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5c66d58-6d8c-490e-9e4e-5461ee8f816e", + "parentUUID": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Sleek Steel Bike'\"", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Sleek Steel Bike' \"after all\" hook in \"POST-TEST: Delete product 'Sleek Steel Bike'\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8891627e-bd9f-43f8-a3bc-57a8a69c8b3b", + "parentUUID": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Sleek Steel Bike' should login in BO", + "timedOut": false, + "duration": 1751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76f2bb85-657b-49ee-b96c-9ecee45ec0d5", + "parentUUID": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Sleek Steel Bike' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductpng_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d6633de-17b9-4dc0-b48e-f5b495527173", + "parentUUID": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Sleek Steel Bike' should reset all filters", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductpng_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47b05d92-6a1a-4399-8801-d6b0827674b6", + "parentUUID": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Sleek Steel Bike' should click on delete product button", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductpng_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a98b5787-3340-4443-8c7a-6f27d1988409", + "parentUUID": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Sleek Steel Bike' should delete product", + "timedOut": false, + "duration": 708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductpng_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "279c1183-829d-4072-b62d-467624538303", + "parentUUID": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Sleek Steel Bike' should reset filter", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductpng_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab50e372-8dc0-4099-a263-f1fb2220214c", + "parentUUID": "329bc740-5234-4023-8d6c-e72c6ed83c8c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76f2bb85-657b-49ee-b96c-9ecee45ec0d5", + "2d6633de-17b9-4dc0-b48e-f5b495527173", + "47b05d92-6a1a-4399-8801-d6b0827674b6", + "a98b5787-3340-4443-8c7a-6f27d1988409", + "279c1183-829d-4072-b62d-467624538303", + "ab50e372-8dc0-4099-a263-f1fb2220214c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6733, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "title": "POST-TEST: Delete product 'Modern Steel Salad'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Modern Steel Salad'\"", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Modern Steel Salad' \"before all\" hook in \"POST-TEST: Delete product 'Modern Steel Salad'\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e22e2943-9ef0-4872-8c4d-a27ef08ae64f", + "parentUUID": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Modern Steel Salad'\"", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Modern Steel Salad' \"after all\" hook in \"POST-TEST: Delete product 'Modern Steel Salad'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b778a47e-a763-4983-b118-b4c9062a12f2", + "parentUUID": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Modern Steel Salad' should login in BO", + "timedOut": false, + "duration": 1838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c3d9f62-f413-4565-836c-f5a7b25e5e88", + "parentUUID": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Modern Steel Salad' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductjpg_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1348d60-7fd1-4dfd-bf78-14e63e55ba69", + "parentUUID": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Modern Steel Salad' should reset all filters", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductjpg_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d862f683-8faf-443b-a309-14cf32b35f17", + "parentUUID": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Modern Steel Salad' should click on delete product button", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductjpg_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "644ba08b-cd08-46e8-bef4-f38e388c40ef", + "parentUUID": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Modern Steel Salad' should delete product", + "timedOut": false, + "duration": 708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductjpg_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f34e059d-afcb-44e3-bddb-f77e9a3224ac", + "parentUUID": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Modern Steel Salad' should reset filter", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductjpg_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbd9e6b6-eb27-461d-ace6-90aa4a8555d2", + "parentUUID": "f58f15d8-ef81-4a9d-9ef7-9fc00ab57648", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c3d9f62-f413-4565-836c-f5a7b25e5e88", + "a1348d60-7fd1-4dfd-bf78-14e63e55ba69", + "d862f683-8faf-443b-a309-14cf32b35f17", + "644ba08b-cd08-46e8-bef4-f38e388c40ef", + "f34e059d-afcb-44e3-bddb-f77e9a3224ac", + "dbd9e6b6-eb27-461d-ace6-90aa4a8555d2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6840, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "title": "POST-TEST: Delete product 'Bespoke Fresh Shoes'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/13_checkProductImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Bespoke Fresh Shoes'\"", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Bespoke Fresh Shoes' \"before all\" hook in \"POST-TEST: Delete product 'Bespoke Fresh Shoes'\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97f33cfd-2211-4c97-b5f9-b1701d00ec92", + "parentUUID": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Bespoke Fresh Shoes'\"", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Bespoke Fresh Shoes' \"after all\" hook in \"POST-TEST: Delete product 'Bespoke Fresh Shoes'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5831617f-6da8-4f00-a1c9-ddfc86f5690b", + "parentUUID": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Bespoke Fresh Shoes' should login in BO", + "timedOut": false, + "duration": 1721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afd0325e-7200-49d5-9160-9b0a4bab2519", + "parentUUID": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Bespoke Fresh Shoes' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductwebp_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fe5c45f-7961-4278-8979-b94e08cbe2e6", + "parentUUID": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Bespoke Fresh Shoes' should reset all filters", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductwebp_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcd99ecc-662c-47bd-8e10-03fcb850e599", + "parentUUID": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Bespoke Fresh Shoes' should click on delete product button", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductwebp_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bd6934e-9d02-4810-8b3a-a081997e761b", + "parentUUID": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Bespoke Fresh Shoes' should delete product", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductwebp_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb0c390a-9337-42d9-9ad3-6fccec1d94d9", + "parentUUID": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Design - Image Settings - Check product image format POST-TEST: Delete product 'Bespoke Fresh Shoes' should reset filter", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkProductImageFormat_removeProductwebp_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e148074-df2c-4eea-b25c-ecbb29b3b709", + "parentUUID": "08aa7179-5bd1-4671-80c6-6cea2aaf4e3e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "afd0325e-7200-49d5-9160-9b0a4bab2519", + "4fe5c45f-7961-4278-8979-b94e08cbe2e6", + "bcd99ecc-662c-47bd-8e10-03fcb850e599", + "8bd6934e-9d02-4810-8b3a-a081997e761b", + "fb0c390a-9337-42d9-9ad3-6fccec1d94d9", + "8e148074-df2c-4eea-b25c-ecbb29b3b709" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6687, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "de0c4778-7f87-43ac-b71d-355729060c8c", + "title": "BO - Design - Image Settings - Check category image format", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings - Check category image format\"", + "fullTitle": "BO - Design - Image Settings - Check category image format \"before all\" hook in \"BO - Design - Image Settings - Check category image format\"", + "timedOut": false, + "duration": 122, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, Promise.all([\n categoryDataJPG.coverImage,\n categoryDataJPG.thumbnailImage,\n categoryDataPNG.coverImage,\n categoryDataPNG.thumbnailImage,\n categoryDataWEBP.coverImage,\n categoryDataWEBP.thumbnailImage,\n ].map(function (image) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.generateImage(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec97c828-933c-4df3-920c-ec4031a4ef2c", + "parentUUID": "de0c4778-7f87-43ac-b71d-355729060c8c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings - Check category image format\"", + "fullTitle": "BO - Design - Image Settings - Check category image format \"after all\" hook in \"BO - Design - Image Settings - Check category image format\"", + "timedOut": false, + "duration": 22, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n categoryDataJPG.coverImage,\n categoryDataJPG.thumbnailImage,\n categoryDataPNG.coverImage,\n categoryDataPNG.thumbnailImage,\n categoryDataWEBP.coverImage,\n categoryDataWEBP.thumbnailImage,\n ].map(function (image) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.deleteFile(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2695e5cd-58a4-42d0-8b0e-647b4783a55a", + "parentUUID": "de0c4778-7f87-43ac-b71d-355729060c8c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "590057fd-6208-4aed-8c34-45866cea8948", + "title": "Enable WebP for image generation", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check category image format Enable WebP for image generation should login in BO", + "timedOut": false, + "duration": 1714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "232b2d14-b123-4981-afa8-fd8a9d2891cd", + "parentUUID": "590057fd-6208-4aed-8c34-45866cea8948", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings - Check category image format Enable WebP for image generation should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "029c0b1a-5b69-4bc9-96dd-41ce32f40296", + "parentUUID": "590057fd-6208-4aed-8c34-45866cea8948", + "isHook": false, + "skipped": false + }, + { + "title": "should enable WebP image format", + "fullTitle": "BO - Design - Image Settings - Check category image format Enable WebP for image generation should enable WebP image format", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_enableWebP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableWebP', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.setImageFormatToGenerateChecked(page, 'webp', true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(imageSettings_1.default.messageSettingsUpdated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55ee2fcf-3ac2-463a-9f96-b5e22610a503", + "parentUUID": "590057fd-6208-4aed-8c34-45866cea8948", + "isHook": false, + "skipped": false + }, + { + "title": "should check image generation options", + "fullTitle": "BO - Design - Image Settings - Check category image format Enable WebP for image generation should check image generation options", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_checkImageGenerationOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpegChecked, jpegDisabled, webpChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImageGenerationOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'jpg')];\n case 2:\n jpegChecked = _a.sent();\n (0, chai_1.expect)(jpegChecked).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateDisabled(page, 'jpg')];\n case 3:\n jpegDisabled = _a.sent();\n (0, chai_1.expect)(jpegDisabled).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'webp')];\n case 4:\n webpChecked = _a.sent();\n (0, chai_1.expect)(webpChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4984bedd-d552-49de-aed9-9bfe678b7dcb", + "parentUUID": "590057fd-6208-4aed-8c34-45866cea8948", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "232b2d14-b123-4981-afa8-fd8a9d2891cd", + "029c0b1a-5b69-4bc9-96dd-41ce32f40296", + "55ee2fcf-3ac2-463a-9f96-b5e22610a503", + "4984bedd-d552-49de-aed9-9bfe678b7dcb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6671, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "title": "Image Generation - Category - Image Format : PNG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : PNG should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToCategoriesPagepng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCategoriesPage\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fc2af76-f985-43cc-aff9-0ef6874277e6", + "parentUUID": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Add new category' button", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : PNG should click on 'Add new category' button", + "timedOut": false, + "duration": 972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_clickOnNewCategoryButtonpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewCategoryButton\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ba3eb60-533f-490e-a32f-fae901606ead", + "parentUUID": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "isHook": false, + "skipped": false + }, + { + "title": "should create category", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : PNG should create category", + "timedOut": false, + "duration": 2629, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_createCategorypng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, arg.category)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ce75e93-3ed3-4653-9cf0-b9132ca39b8b", + "parentUUID": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new category and fetch the ID", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : PNG should search for the new category and fetch the ID", + "timedOut": false, + "duration": 1492, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_searchCreatedCategorypng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchCreatedCategory\".concat(argExtension), baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', arg.category.name)];\n case 3:\n _b.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(arg.category.name);\n _a = parseInt;\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'id_category')];\n case 5:\n idCategory = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62064736-266a-4a1b-a770-3e27e12b254f", + "parentUUID": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : PNG should check that images are generated", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_checkCategoryImagespng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathImageJPG, fileExistsJPG, imageTypeJPG, pathImageCoverJPG, fileExistsCoverJPG, imageTypeCoverJPG, pathImageMetaJPG, fileExistsMetaJPG, imageTypeMetaJPG;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoryImages\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \".jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 2:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 3:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extImageType);\n pathImageCoverJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"-category_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageCoverJPG)];\n case 4:\n fileExistsCoverJPG = _a.sent();\n (0, chai_1.expect)(fileExistsCoverJPG, \"The file \".concat(pathImageCoverJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageCoverJPG)];\n case 5:\n imageTypeCoverJPG = _a.sent();\n (0, chai_1.expect)(imageTypeCoverJPG).to.be.eq(arg.extImageType);\n pathImageMetaJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"-small_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageMetaJPG)];\n case 6:\n fileExistsMetaJPG = _a.sent();\n (0, chai_1.expect)(fileExistsMetaJPG, \"The file \".concat(pathImageMetaJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageMetaJPG)];\n case 7:\n imageTypeMetaJPG = _a.sent();\n (0, chai_1.expect)(imageTypeMetaJPG).to.be.eq(arg.extImageType);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "410db0c0-2fba-45de-b81f-c578325e5f9a", + "parentUUID": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : PNG should go to FO page", + "timedOut": false, + "duration": 1818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToFopng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3f73f6b-a589-4507-a47a-de96003047f6", + "parentUUID": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : PNG should go to all products page", + "timedOut": false, + "duration": 982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToFoAllProductspng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoAllProducts\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_2.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79601c43-c32e-44c5-86c7-5394d8ca0302", + "parentUUID": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the main image of the quick view is a WebP", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : PNG should check that the main image of the quick view is a WebP", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_checkMainImageQuickViewpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var categoryImage, categoryImageType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMainImageQuickView\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_2.default.getCategoryImageMain(page, arg.category.name)];\n case 2:\n categoryImage = _a.sent();\n (0, chai_1.expect)(categoryImage).to.not.eq(null);\n return [4 /*yield*/, files_1.default.downloadFile(categoryImage, 'image.img')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFileType('image.img')];\n case 4:\n categoryImageType = _a.sent();\n (0, chai_1.expect)(categoryImageType).to.be.eq('webp');\n return [4 /*yield*/, files_1.default.deleteFile('image.img')];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efd313c3-5785-4425-9fad-eb530c22d74a", + "parentUUID": "76fd48ab-d06b-4d57-8549-ac22a6b41fbe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7fc2af76-f985-43cc-aff9-0ef6874277e6", + "9ba3eb60-533f-490e-a32f-fae901606ead", + "5ce75e93-3ed3-4653-9cf0-b9132ca39b8b", + "62064736-266a-4a1b-a770-3e27e12b254f", + "410db0c0-2fba-45de-b81f-c578325e5f9a", + "e3f73f6b-a589-4507-a47a-de96003047f6", + "79601c43-c32e-44c5-86c7-5394d8ca0302", + "efd313c3-5785-4425-9fad-eb530c22d74a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13218, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "title": "Image Generation - Category - Image Format : JPG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should go to BO", + "timedOut": false, + "duration": 297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToBoProductsjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBoProducts\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, category_2.default.goToBO(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c27fd9a-97c0-4866-b36d-b3d12e595393", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 4744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToCategoriesPagejpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCategoriesPage\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32a6eb95-94bb-4599-8850-ae5424ccadf8", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Add new category' button", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should click on 'Add new category' button", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_clickOnNewCategoryButtonjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewCategoryButton\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab40696a-e1bc-457c-b2b7-5a1ef962f3fc", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + }, + { + "title": "should create category", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should create category", + "timedOut": false, + "duration": 2356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_createCategoryjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, arg.category)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a913e94-943e-40c2-a211-49a7421575c1", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new category and fetch the ID", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should search for the new category and fetch the ID", + "timedOut": false, + "duration": 1499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_searchCreatedCategoryjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchCreatedCategory\".concat(argExtension), baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', arg.category.name)];\n case 3:\n _b.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(arg.category.name);\n _a = parseInt;\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'id_category')];\n case 5:\n idCategory = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f91af44-ce0b-4a52-8559-986af77d5a57", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should check that images are generated", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_checkCategoryImagesjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathImageJPG, fileExistsJPG, imageTypeJPG, pathImageCoverJPG, fileExistsCoverJPG, imageTypeCoverJPG, pathImageMetaJPG, fileExistsMetaJPG, imageTypeMetaJPG;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoryImages\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \".jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 2:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 3:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extImageType);\n pathImageCoverJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"-category_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageCoverJPG)];\n case 4:\n fileExistsCoverJPG = _a.sent();\n (0, chai_1.expect)(fileExistsCoverJPG, \"The file \".concat(pathImageCoverJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageCoverJPG)];\n case 5:\n imageTypeCoverJPG = _a.sent();\n (0, chai_1.expect)(imageTypeCoverJPG).to.be.eq(arg.extImageType);\n pathImageMetaJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"-small_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageMetaJPG)];\n case 6:\n fileExistsMetaJPG = _a.sent();\n (0, chai_1.expect)(fileExistsMetaJPG, \"The file \".concat(pathImageMetaJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageMetaJPG)];\n case 7:\n imageTypeMetaJPG = _a.sent();\n (0, chai_1.expect)(imageTypeMetaJPG).to.be.eq(arg.extImageType);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa154495-dd30-42e5-b15c-2a79239a79b2", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should go to FO page", + "timedOut": false, + "duration": 1687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToFojpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd107e14-b902-47a2-8956-96f3a8e102da", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should go to all products page", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToFoAllProductsjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoAllProducts\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_2.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f3d7ad7-5f49-4d06-ab79-9478a11d4c0c", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the main image of the quick view is a WebP", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : JPG should check that the main image of the quick view is a WebP", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_checkMainImageQuickViewjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var categoryImage, categoryImageType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMainImageQuickView\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_2.default.getCategoryImageMain(page, arg.category.name)];\n case 2:\n categoryImage = _a.sent();\n (0, chai_1.expect)(categoryImage).to.not.eq(null);\n return [4 /*yield*/, files_1.default.downloadFile(categoryImage, 'image.img')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFileType('image.img')];\n case 4:\n categoryImageType = _a.sent();\n (0, chai_1.expect)(categoryImageType).to.be.eq('webp');\n return [4 /*yield*/, files_1.default.deleteFile('image.img')];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cf162dc-5ccc-4f8d-b61c-8dbeac9e93ef", + "parentUUID": "48f1c86d-63da-4516-b8cc-6279e1431a89", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7c27fd9a-97c0-4866-b36d-b3d12e595393", + "32a6eb95-94bb-4599-8850-ae5424ccadf8", + "ab40696a-e1bc-457c-b2b7-5a1ef962f3fc", + "4a913e94-943e-40c2-a211-49a7421575c1", + "6f91af44-ce0b-4a52-8559-986af77d5a57", + "aa154495-dd30-42e5-b15c-2a79239a79b2", + "fd107e14-b902-47a2-8956-96f3a8e102da", + "9f3d7ad7-5f49-4d06-ab79-9478a11d4c0c", + "4cf162dc-5ccc-4f8d-b61c-8dbeac9e93ef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12675, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "97509cfb-07a3-4899-be28-1574315c2392", + "title": "Image Generation - Category - Image Format : WEBP", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should go to BO", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToBoProductswebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBoProducts\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, category_2.default.goToBO(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33d9dea0-fcd4-4c26-bb48-5302b3dfdb78", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 4746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToCategoriesPagewebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCategoriesPage\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e9e7226-6933-48a6-bbc7-9b48d4179ec3", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Add new category' button", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should click on 'Add new category' button", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_clickOnNewCategoryButtonwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewCategoryButton\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.goToAddNewCategoryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13c286cd-6004-4ab7-982f-6a46c96f6866", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + }, + { + "title": "should create category", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should create category", + "timedOut": false, + "duration": 2692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_createCategorywebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCategory\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCategory(page, arg.category)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(categories_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7a413f7-d12d-44ec-b6e1-84b21aaac5ef", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new category and fetch the ID", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should search for the new category and fetch the ID", + "timedOut": false, + "duration": 1534, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_searchCreatedCategorywebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchCreatedCategory\".concat(argExtension), baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, categories_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', 'name', arg.category.name)];\n case 3:\n _b.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'name')];\n case 4:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(arg.category.name);\n _a = parseInt;\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, 'id_category')];\n case 5:\n idCategory = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a24f8555-93dd-4b34-83e1-650305c7fb43", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should check that images are generated", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_checkCategoryImageswebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathImageJPG, fileExistsJPG, imageTypeJPG, pathImageCoverJPG, fileExistsCoverJPG, imageTypeCoverJPG, pathImageMetaJPG, fileExistsMetaJPG, imageTypeMetaJPG;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategoryImages\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \".jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 2:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 3:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extImageType);\n pathImageCoverJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"-category_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageCoverJPG)];\n case 4:\n fileExistsCoverJPG = _a.sent();\n (0, chai_1.expect)(fileExistsCoverJPG, \"The file \".concat(pathImageCoverJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageCoverJPG)];\n case 5:\n imageTypeCoverJPG = _a.sent();\n (0, chai_1.expect)(imageTypeCoverJPG).to.be.eq(arg.extImageType);\n pathImageMetaJPG = \"\".concat(files_1.default.getRootPath(), \"/img/c/\").concat(idCategory, \"-small_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageMetaJPG)];\n case 6:\n fileExistsMetaJPG = _a.sent();\n (0, chai_1.expect)(fileExistsMetaJPG, \"The file \".concat(pathImageMetaJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageMetaJPG)];\n case 7:\n imageTypeMetaJPG = _a.sent();\n (0, chai_1.expect)(imageTypeMetaJPG).to.be.eq(arg.extImageType);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c97cc9e9-a425-4b9f-9702-659541429c0a", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should go to FO page", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToFowebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c5942d4-004a-4e11-84bb-94798d4be121", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should go to all products page", + "timedOut": false, + "duration": 963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_goToFoAllProductswebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoAllProducts\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_2.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "613145fe-aab1-46ce-8b47-b046fad19206", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the main image of the quick view is a WebP", + "fullTitle": "BO - Design - Image Settings - Check category image format Image Generation - Category - Image Format : WEBP should check that the main image of the quick view is a WebP", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_checkMainImageQuickViewwebp\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var categoryImage, categoryImageType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMainImageQuickView\".concat(argExtension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_2.default.getCategoryImageMain(page, arg.category.name)];\n case 2:\n categoryImage = _a.sent();\n (0, chai_1.expect)(categoryImage).to.not.eq(null);\n return [4 /*yield*/, files_1.default.downloadFile(categoryImage, 'image.img')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFileType('image.img')];\n case 4:\n categoryImageType = _a.sent();\n (0, chai_1.expect)(categoryImageType).to.be.eq('webp');\n return [4 /*yield*/, files_1.default.deleteFile('image.img')];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5499f5e-49c6-4b8e-beb5-e20ebbe01ffa", + "parentUUID": "97509cfb-07a3-4899-be28-1574315c2392", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "33d9dea0-fcd4-4c26-bb48-5302b3dfdb78", + "1e9e7226-6933-48a6-bbc7-9b48d4179ec3", + "13c286cd-6004-4ab7-982f-6a46c96f6866", + "f7a413f7-d12d-44ec-b6e1-84b21aaac5ef", + "a24f8555-93dd-4b34-83e1-650305c7fb43", + "c97cc9e9-a425-4b9f-9702-659541429c0a", + "1c5942d4-004a-4e11-84bb-94798d4be121", + "613145fe-aab1-46ce-8b47-b046fad19206", + "c5499f5e-49c6-4b8e-beb5-e20ebbe01ffa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13048, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a6d58924-9804-4819-8fc8-e211ea812e35", + "title": "POST-TEST: Bulk delete categories (filtered by name \"green Shoes\")", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"green Shoes\")\"", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"green Shoes\") \"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"green Shoes\")\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d3c83df-38ab-4e38-b540-0efa0645bf70", + "parentUUID": "a6d58924-9804-4819-8fc8-e211ea812e35", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"green Shoes\")\"", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"green Shoes\") \"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"green Shoes\")\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b64e4f27-8fb2-447e-83b2-cdbdb420a04e", + "parentUUID": "a6d58924-9804-4819-8fc8-e211ea812e35", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"green Shoes\") should login in BO", + "timedOut": false, + "duration": 1799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8860a28f-2a73-45ab-88fc-7eab4fe97de3", + "parentUUID": "a6d58924-9804-4819-8fc8-e211ea812e35", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"green Shoes\") should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductpng_goToCategoriesPageToCheckImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPageToCheckImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e39eaff-4327-4ae6-97aa-fc778b248bed", + "parentUUID": "a6d58924-9804-4819-8fc8-e211ea812e35", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of categories", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"green Shoes\") should reset filter and get number of categories", + "timedOut": false, + "duration": 373, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductpng_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5768c0a3-65ea-4da6-9313-0b1d5a6163dc", + "parentUUID": "a6d58924-9804-4819-8fc8-e211ea812e35", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by Name 'category'", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"green Shoes\") should filter list by Name 'category'", + "timedOut": false, + "duration": 1130, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductpng_filterCategoriesTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCategoriesTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', categoryData.filterBy, categoryData.value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, categoryData.filterBy)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(categoryData.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a8f5592-3d6c-4f19-977f-37de33fca1ca", + "parentUUID": "a6d58924-9804-4819-8fc8-e211ea812e35", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"green Shoes\") should delete categories", + "timedOut": false, + "duration": 1651, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductpng_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.deleteCategoriesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(categories_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b64589d0-4af0-49b1-b0db-56e8984048bf", + "parentUUID": "a6d58924-9804-4819-8fc8-e211ea812e35", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"green Shoes\") should reset all filters", + "timedOut": false, + "duration": 487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductpng_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.be.below(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c515211e-4dd6-450a-9e7e-e8487bf50c6c", + "parentUUID": "a6d58924-9804-4819-8fc8-e211ea812e35", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8860a28f-2a73-45ab-88fc-7eab4fe97de3", + "1e39eaff-4327-4ae6-97aa-fc778b248bed", + "5768c0a3-65ea-4da6-9313-0b1d5a6163dc", + "2a8f5592-3d6c-4f19-977f-37de33fca1ca", + "b64589d0-4af0-49b1-b0db-56e8984048bf", + "c515211e-4dd6-450a-9e7e-e8487bf50c6c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10457, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "title": "POST-TEST: Bulk delete categories (filtered by name \"purple Home\")", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"purple Home\")\"", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"purple Home\") \"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"purple Home\")\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7079ff5-c147-4403-aeec-b1bbaa009689", + "parentUUID": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"purple Home\")\"", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"purple Home\") \"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"purple Home\")\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7a9456c0-3a03-49c6-b640-8f3b668d0916", + "parentUUID": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"purple Home\") should login in BO", + "timedOut": false, + "duration": 1757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f8b7e97-606b-4bef-93de-8dda2e025784", + "parentUUID": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"purple Home\") should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductjpg_goToCategoriesPageToCheckImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPageToCheckImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6951a56d-e198-4b42-8bff-0ab785adb3f2", + "parentUUID": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of categories", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"purple Home\") should reset filter and get number of categories", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductjpg_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "254239df-faa1-4232-9596-7f7a952fd926", + "parentUUID": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by Name 'category'", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"purple Home\") should filter list by Name 'category'", + "timedOut": false, + "duration": 1073, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductjpg_filterCategoriesTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCategoriesTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', categoryData.filterBy, categoryData.value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, categoryData.filterBy)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(categoryData.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26bf11b2-ab12-4b72-9df4-74654d63f3de", + "parentUUID": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"purple Home\") should delete categories", + "timedOut": false, + "duration": 1675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductjpg_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.deleteCategoriesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(categories_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c3e7805-7edf-46be-adc5-dc824bc36fe9", + "parentUUID": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"purple Home\") should reset all filters", + "timedOut": false, + "duration": 341, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductjpg_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.be.below(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69a8d872-8f2d-4ae2-a6fd-44d01adbcc65", + "parentUUID": "0ec08971-fcec-49c5-80fc-e4364443fc69", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1f8b7e97-606b-4bef-93de-8dda2e025784", + "6951a56d-e198-4b42-8bff-0ab785adb3f2", + "254239df-faa1-4232-9596-7f7a952fd926", + "26bf11b2-ab12-4b72-9df4-74654d63f3de", + "1c3e7805-7edf-46be-adc5-dc824bc36fe9", + "69a8d872-8f2d-4ae2-a6fd-44d01adbcc65" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11872, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "title": "POST-TEST: Bulk delete categories (filtered by name \"black Music\")", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/14_checkCategoryImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"black Music\")\"", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"black Music\") \"before all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"black Music\")\"", + "timedOut": false, + "duration": 61, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f42cf4c1-0828-4722-a979-43cd84cf374c", + "parentUUID": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"black Music\")\"", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"black Music\") \"after all\" hook in \"POST-TEST: Bulk delete categories (filtered by name \"black Music\")\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c5623ca0-839f-43d6-94d8-468df87c5bf9", + "parentUUID": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"black Music\") should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "744df9cd-1a69-420a-9aec-089f713ce3b6", + "parentUUID": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Categories' page", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"black Music\") should go to 'Catalog > Categories' page", + "timedOut": false, + "duration": 5065, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductwebp_goToCategoriesPageToCheckImport\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoriesPageToCheckImport', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.categoriesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(categories_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "952db2cb-5a93-4266-a5ff-a779defddc37", + "parentUUID": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of categories", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"black Music\") should reset filter and get number of categories", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductwebp_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategories = _a.sent();\n (0, chai_1.expect)(numberOfCategories).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eeb5dc01-05d6-4db5-a1e2-f332a861b146", + "parentUUID": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by Name 'category'", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"black Music\") should filter list by Name 'category'", + "timedOut": false, + "duration": 1095, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductwebp_filterCategoriesTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCategoriesTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.filterCategories(page, 'input', categoryData.filterBy, categoryData.value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, categories_1.default.getTextColumnFromTableCategories(page, 1, categoryData.filterBy)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(categoryData.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03099fd5-e254-4fd3-baf9-69d23d2c3838", + "parentUUID": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete categories", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"black Music\") should delete categories", + "timedOut": false, + "duration": 1655, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductwebp_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.deleteCategoriesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(categories_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1816072e-e9dd-47ed-8e30-01e601b809c0", + "parentUUID": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check category image format POST-TEST: Bulk delete categories (filtered by name \"black Music\") should reset all filters", + "timedOut": false, + "duration": 380, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkCategoryImageFormat_removeProductwebp_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCategoriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, categories_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCategoriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCategoriesAfterReset).to.be.below(numberOfCategories);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a776aa49-9f78-4b4a-a8e6-b7540c3bd92f", + "parentUUID": "db338ebb-1b48-4da4-8b7b-ead46aaee4e9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "744df9cd-1a69-420a-9aec-089f713ce3b6", + "952db2cb-5a93-4266-a5ff-a779defddc37", + "eeb5dc01-05d6-4db5-a1e2-f332a861b146", + "03099fd5-e254-4fd3-baf9-69d23d2c3838", + "1816072e-e9dd-47ed-8e30-01e601b809c0", + "a776aa49-9f78-4b4a-a8e6-b7540c3bd92f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11930, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "91b80f6d-b628-45b4-ad7c-cfd7aea70578", + "title": "BO - Design - Image Settings - Check store image format", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings - Check store image format\"", + "fullTitle": "BO - Design - Image Settings - Check store image format \"before all\" hook in \"BO - Design - Image Settings - Check store image format\"", + "timedOut": false, + "duration": 102, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, Promise.all([\n storeDataJPG.picture,\n storeDataPNG.picture,\n ].map(function (image) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.generateImage(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d73dff1-0e26-4e96-8859-444c0cb48828", + "parentUUID": "91b80f6d-b628-45b4-ad7c-cfd7aea70578", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings - Check store image format\"", + "fullTitle": "BO - Design - Image Settings - Check store image format \"after all\" hook in \"BO - Design - Image Settings - Check store image format\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n storeDataJPG.picture,\n storeDataPNG.picture,\n ].map(function (image) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.deleteFile(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0f8c8f90-f021-448d-96d4-1c516e521cb8", + "parentUUID": "91b80f6d-b628-45b4-ad7c-cfd7aea70578", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4797e93b-0740-4a53-b5fc-346a5ce54ff3", + "title": "Enable WebP for image generation", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check store image format Enable WebP for image generation should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b4ffba2-e7eb-4de3-a6f4-4b77796c24ea", + "parentUUID": "4797e93b-0740-4a53-b5fc-346a5ce54ff3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings - Check store image format Enable WebP for image generation should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4651, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "238ecf1b-9f6a-440d-bef1-083534d32e11", + "parentUUID": "4797e93b-0740-4a53-b5fc-346a5ce54ff3", + "isHook": false, + "skipped": false + }, + { + "title": "should enable WebP image format", + "fullTitle": "BO - Design - Image Settings - Check store image format Enable WebP for image generation should enable WebP image format", + "timedOut": false, + "duration": 269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_enableWebP\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableWebP', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.setImageFormatToGenerateChecked(page, 'webp', true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.eq(imageSettings_1.default.messageSettingsUpdated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "379593da-0d57-4b22-b17b-72b30da281e3", + "parentUUID": "4797e93b-0740-4a53-b5fc-346a5ce54ff3", + "isHook": false, + "skipped": false + }, + { + "title": "should check image generation options", + "fullTitle": "BO - Design - Image Settings - Check store image format Enable WebP for image generation should check image generation options", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_checkImageGenerationOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpegChecked, jpegDisabled, webpChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImageGenerationOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'jpg')];\n case 2:\n jpegChecked = _a.sent();\n (0, chai_1.expect)(jpegChecked).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateDisabled(page, 'jpg')];\n case 3:\n jpegDisabled = _a.sent();\n (0, chai_1.expect)(jpegDisabled).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'webp')];\n case 4:\n webpChecked = _a.sent();\n (0, chai_1.expect)(webpChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8467b51-6a20-43c9-9bc9-16d05668453e", + "parentUUID": "4797e93b-0740-4a53-b5fc-346a5ce54ff3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1b4ffba2-e7eb-4de3-a6f4-4b77796c24ea", + "238ecf1b-9f6a-440d-bef1-083534d32e11", + "379593da-0d57-4b22-b17b-72b30da281e3", + "b8467b51-6a20-43c9-9bc9-16d05668453e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6671, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a50b8641-da5b-4181-a21f-45c242357f9d", + "title": "Image Generation - Store - Image Format : PNG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Contact' page", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should go to 'Shop Parameters > Contact' page", + "timedOut": false, + "duration": 4842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToContactPagepng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToContactPage\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00707cd0-5d50-4d43-b904-7ca03a55d968", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' tab", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should go to 'Stores' tab", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToStoresTabpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToStoresTab\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5939f769-6d7a-4ed0-ac3b-e0160330ca2c", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Add new store' button", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should click on 'Add new store' button", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_clickOnNewStoreButtonpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewStoreButton\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebab3e37-e5df-4bfd-8c7a-56febf7263be", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + }, + { + "title": "should create a store", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should create a store", + "timedOut": false, + "duration": 1917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_createStorepng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, arg.store)];\n case 2:\n createMessage = _a.sent();\n (0, chai_1.expect)(createMessage).to.contains(stores_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0c5ae26-c84a-46d7-a990-441e0c396863", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new store and fetch the ID", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should search for the new store and fetch the ID", + "timedOut": false, + "duration": 970, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_searchCreatedCategorypng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchCreatedCategory\".concat(arg.extOriginal), baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', arg.store.name)];\n case 3:\n _b.sent();\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'sl!name')];\n case 4:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(arg.store.name);\n _a = parseInt;\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'id_store')];\n case 5:\n idStore = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b324bcc-69e7-4a5c-85cb-e2a3311913cc", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should check that images are generated", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_checkProductImagespng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathImageOrigJPG, fileExistsOrigJPG, imageTypeOrigJPG, pathImageJPG, fileExistsJPG, imageTypeJPG, pathImageWEBP, fileExistsWEBP, imageTypeWEBP;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n pathImageOrigJPG = \"\".concat(files_1.default.getRootPath(), \"/img/st/\").concat(idStore, \".jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageOrigJPG)];\n case 2:\n fileExistsOrigJPG = _a.sent();\n (0, chai_1.expect)(fileExistsOrigJPG, \"The file \".concat(pathImageOrigJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageOrigJPG)];\n case 3:\n imageTypeOrigJPG = _a.sent();\n (0, chai_1.expect)(imageTypeOrigJPG).to.be.eq(arg.extImageType);\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/st/\").concat(idStore, \"-stores_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 4:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 5:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extOriginal);\n pathImageWEBP = \"\".concat(files_1.default.getRootPath(), \"/img/st/\").concat(idStore, \"-stores_default.webp\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageWEBP)];\n case 6:\n fileExistsWEBP = _a.sent();\n (0, chai_1.expect)(fileExistsWEBP, \"The file \".concat(pathImageWEBP, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageWEBP)];\n case 7:\n imageTypeWEBP = _a.sent();\n (0, chai_1.expect)(imageTypeWEBP).to.be.eq('webp');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0ab51fe-6370-42e4-b25e-fd2756001c29", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO page", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should go to FO page", + "timedOut": false, + "duration": 1701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToFopng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08b82a60-f4dd-406c-8457-efc3fd7bfa8d", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Stores page", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should go to Stores page", + "timedOut": false, + "duration": 718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToAllProductspng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProducts\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Stores')];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_2.storesPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.be.eq(stores_2.storesPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc3d9585-8840-49be-ad09-61d369f6666b", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the main image of the store is a WebP", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : PNG should check that the main image of the store is a WebP", + "timedOut": false, + "duration": 118, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_checkStoreImageMainpng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quickViewImageMain, quickViewImageMainType, pathImageWEBP, fileExistsWEBP, imageTypeWEBP;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreImageMain\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_2.storesPage.getStoreImageMain(page, idStore)];\n case 2:\n quickViewImageMain = _a.sent();\n (0, chai_1.expect)(quickViewImageMain).to.not.eq(null);\n return [4 /*yield*/, files_1.default.downloadFile(quickViewImageMain, 'image.img')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFileType('image.img')];\n case 4:\n quickViewImageMainType = _a.sent();\n (0, chai_1.expect)(quickViewImageMainType).to.be.eq('webp');\n return [4 /*yield*/, files_1.default.deleteFile('image.img')];\n case 5:\n _a.sent();\n pathImageWEBP = \"\".concat(files_1.default.getRootPath(), \"/img/st/\").concat(idStore, \"-stores_default.webp\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageWEBP)];\n case 6:\n fileExistsWEBP = _a.sent();\n (0, chai_1.expect)(fileExistsWEBP, \"The file \".concat(pathImageWEBP, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageWEBP)];\n case 7:\n imageTypeWEBP = _a.sent();\n (0, chai_1.expect)(imageTypeWEBP).to.be.eq('webp');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5433602-675e-49e0-8783-53df8db198ba", + "parentUUID": "a50b8641-da5b-4181-a21f-45c242357f9d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "00707cd0-5d50-4d43-b904-7ca03a55d968", + "5939f769-6d7a-4ed0-ac3b-e0160330ca2c", + "ebab3e37-e5df-4bfd-8c7a-56febf7263be", + "b0c5ae26-c84a-46d7-a990-441e0c396863", + "1b324bcc-69e7-4a5c-85cb-e2a3311913cc", + "b0ab51fe-6370-42e4-b25e-fd2756001c29", + "08b82a60-f4dd-406c-8457-efc3fd7bfa8d", + "cc3d9585-8840-49be-ad09-61d369f6666b", + "b5433602-675e-49e0-8783-53df8db198ba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12321, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "13e2fafe-05d5-4019-8441-2941cbc15252", + "title": "Image Generation - Store - Image Format : JPG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should go to BO", + "timedOut": false, + "duration": 542, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToBoStoresjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBoStores\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_2.storesPage.goToBO(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bb66b2f-d919-4d91-925b-a29c4e349f88", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Contact' page", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should go to 'Shop Parameters > Contact' page", + "timedOut": false, + "duration": 4821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToContactPagejpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToContactPage\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73b8a697-598d-4df3-b5d5-fc074a2bfc9d", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' tab", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should go to 'Stores' tab", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToStoresTabjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToStoresTab\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58afcd6b-efbe-4348-8a25-b81821c38c03", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Add new store' button", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should click on 'Add new store' button", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_clickOnNewStoreButtonjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewStoreButton\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6007d577-cf46-4ff0-967f-1fbe2a95be81", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should create a store", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should create a store", + "timedOut": false, + "duration": 1898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_createStorejpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, arg.store)];\n case 2:\n createMessage = _a.sent();\n (0, chai_1.expect)(createMessage).to.contains(stores_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "600ba075-c28a-4a96-a891-114945c23a80", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new store and fetch the ID", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should search for the new store and fetch the ID", + "timedOut": false, + "duration": 3940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_searchCreatedCategoryjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchCreatedCategory\".concat(arg.extOriginal), baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', arg.store.name)];\n case 3:\n _b.sent();\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'sl!name')];\n case 4:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains(arg.store.name);\n _a = parseInt;\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'id_store')];\n case 5:\n idStore = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2eeeb6f2-9a91-4d10-a68b-9eddfc506401", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should check that images are generated", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should check that images are generated", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_checkProductImagesjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathImageOrigJPG, fileExistsOrigJPG, imageTypeOrigJPG, pathImageJPG, fileExistsJPG, imageTypeJPG, pathImageWEBP, fileExistsWEBP, imageTypeWEBP;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n pathImageOrigJPG = \"\".concat(files_1.default.getRootPath(), \"/img/st/\").concat(idStore, \".jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageOrigJPG)];\n case 2:\n fileExistsOrigJPG = _a.sent();\n (0, chai_1.expect)(fileExistsOrigJPG, \"The file \".concat(pathImageOrigJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageOrigJPG)];\n case 3:\n imageTypeOrigJPG = _a.sent();\n (0, chai_1.expect)(imageTypeOrigJPG).to.be.eq(arg.extImageType);\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/st/\").concat(idStore, \"-stores_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 4:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 5:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extOriginal);\n pathImageWEBP = \"\".concat(files_1.default.getRootPath(), \"/img/st/\").concat(idStore, \"-stores_default.webp\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageWEBP)];\n case 6:\n fileExistsWEBP = _a.sent();\n (0, chai_1.expect)(fileExistsWEBP, \"The file \".concat(pathImageWEBP, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageWEBP)];\n case 7:\n imageTypeWEBP = _a.sent();\n (0, chai_1.expect)(imageTypeWEBP).to.be.eq('webp');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61f102db-0fd8-4cb8-9743-41d585736b60", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO page", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should go to FO page", + "timedOut": false, + "duration": 1663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToFojpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30037427-6b3c-4c0e-bd29-c20a03691a11", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Stores page", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should go to Stores page", + "timedOut": false, + "duration": 714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToAllProductsjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProducts\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Stores')];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_2.storesPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.be.eq(stores_2.storesPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "717fe38e-eb39-4a70-9d6b-422fd01da38e", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the main image of the store is a WebP", + "fullTitle": "BO - Design - Image Settings - Check store image format Image Generation - Store - Image Format : JPG should check that the main image of the store is a WebP", + "timedOut": false, + "duration": 117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_checkStoreImageMainjpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quickViewImageMain, quickViewImageMainType, pathImageWEBP, fileExistsWEBP, imageTypeWEBP;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreImageMain\".concat(arg.extOriginal), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_2.storesPage.getStoreImageMain(page, idStore)];\n case 2:\n quickViewImageMain = _a.sent();\n (0, chai_1.expect)(quickViewImageMain).to.not.eq(null);\n return [4 /*yield*/, files_1.default.downloadFile(quickViewImageMain, 'image.img')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.getFileType('image.img')];\n case 4:\n quickViewImageMainType = _a.sent();\n (0, chai_1.expect)(quickViewImageMainType).to.be.eq('webp');\n return [4 /*yield*/, files_1.default.deleteFile('image.img')];\n case 5:\n _a.sent();\n pathImageWEBP = \"\".concat(files_1.default.getRootPath(), \"/img/st/\").concat(idStore, \"-stores_default.webp\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageWEBP)];\n case 6:\n fileExistsWEBP = _a.sent();\n (0, chai_1.expect)(fileExistsWEBP, \"The file \".concat(pathImageWEBP, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageWEBP)];\n case 7:\n imageTypeWEBP = _a.sent();\n (0, chai_1.expect)(imageTypeWEBP).to.be.eq('webp');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d1d5825-fd58-4648-9ebb-e03e5edd3453", + "parentUUID": "13e2fafe-05d5-4019-8441-2941cbc15252", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0bb66b2f-d919-4d91-925b-a29c4e349f88", + "73b8a697-598d-4df3-b5d5-fc074a2bfc9d", + "58afcd6b-efbe-4348-8a25-b81821c38c03", + "6007d577-cf46-4ff0-967f-1fbe2a95be81", + "600ba075-c28a-4a96-a891-114945c23a80", + "2eeeb6f2-9a91-4d10-a68b-9eddfc506401", + "61f102db-0fd8-4cb8-9743-41d585736b60", + "30037427-6b3c-4c0e-bd29-c20a03691a11", + "717fe38e-eb39-4a70-9d6b-422fd01da38e", + "4d1d5825-fd58-4648-9ebb-e03e5edd3453" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15725, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2135e619-956e-4da1-b6f4-9cdb267ef241", + "title": "POST-CONDITION : Remove store : PNG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "BO - Design - Image Settings - Check store image format POST-CONDITION : Remove store : PNG should go to BO", + "timedOut": false, + "duration": 625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToBoStorespng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBoStores\".concat(arg.extension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_2.storesPage.goToBO(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fe64e2b-2c16-4110-ab28-dfd2c7820e52", + "parentUUID": "2135e619-956e-4da1-b6f4-9cdb267ef241", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Contact' page", + "fullTitle": "BO - Design - Image Settings - Check store image format POST-CONDITION : Remove store : PNG should go to 'Shop Parameters > Contact' page", + "timedOut": false, + "duration": 4825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToContactPagepngForRemoval\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToContactPage\".concat(arg.extension, \"ForRemoval\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2d924b4-a097-43fa-8c8b-505aa784f230", + "parentUUID": "2135e619-956e-4da1-b6f4-9cdb267ef241", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' tab", + "fullTitle": "BO - Design - Image Settings - Check store image format POST-CONDITION : Remove store : PNG should go to 'Stores' tab", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_goToStoresTabpngForRemoval\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToStoresTab\".concat(arg.extension, \"ForRemoval\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42b3c288-7afe-4bac-8f53-f834087a4076", + "parentUUID": "2135e619-956e-4da1-b6f4-9cdb267ef241", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Image Settings - Check store image format POST-CONDITION : Remove store : PNG should filter list by name", + "timedOut": false, + "duration": 3899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_filterForDeletepng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var storeName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterForDelete\".concat(arg.extension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', arg.store.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'sl!name')];\n case 4:\n storeName = _a.sent();\n (0, chai_1.expect)(storeName).to.contains(arg.store.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a901ca8-b930-4bdf-86c8-f0ea3d2d9c08", + "parentUUID": "2135e619-956e-4da1-b6f4-9cdb267ef241", + "isHook": false, + "skipped": false + }, + { + "title": "should delete store", + "fullTitle": "BO - Design - Image Settings - Check store image format POST-CONDITION : Remove store : PNG should delete store", + "timedOut": false, + "duration": 1070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_deleteStorepng\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteStore\".concat(arg.extension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.deleteStore(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e921e08-cdb3-4e68-98bb-0e8b93b3dfcf", + "parentUUID": "2135e619-956e-4da1-b6f4-9cdb267ef241", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1fe64e2b-2c16-4110-ab28-dfd2c7820e52", + "c2d924b4-a097-43fa-8c8b-505aa784f230", + "42b3c288-7afe-4bac-8f53-f834087a4076", + "0a901ca8-b930-4bdf-86c8-f0ea3d2d9c08", + "6e921e08-cdb3-4e68-98bb-0e8b93b3dfcf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11267, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "22b2db65-a1dc-4d8e-bc18-f9a42fd298df", + "title": "POST-CONDITION : Remove store : JPG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/15_checkStoreImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Design - Image Settings - Check store image format POST-CONDITION : Remove store : JPG should filter list by name", + "timedOut": false, + "duration": 3892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_filterForDeletejpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var storeName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterForDelete\".concat(arg.extension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', arg.store.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'sl!name')];\n case 4:\n storeName = _a.sent();\n (0, chai_1.expect)(storeName).to.contains(arg.store.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb194a16-5ae8-462d-9278-9530bfafd23e", + "parentUUID": "22b2db65-a1dc-4d8e-bc18-f9a42fd298df", + "isHook": false, + "skipped": false + }, + { + "title": "should delete store", + "fullTitle": "BO - Design - Image Settings - Check store image format POST-CONDITION : Remove store : JPG should delete store", + "timedOut": false, + "duration": 1073, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkStoreImageFormat_deleteStorejpg\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteStore\".concat(arg.extension), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.deleteStore(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f93c935-14d0-4cd9-ad61-dc898f95575f", + "parentUUID": "22b2db65-a1dc-4d8e-bc18-f9a42fd298df", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fb194a16-5ae8-462d-9278-9530bfafd23e", + "4f93c935-14d0-4cd9-ad61-dc898f95575f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4965, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "86b57250-2070-47ab-b2a7-d2a1de498caa", + "title": "BO - Design - Image Settings - Check base image format", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Image Settings - Check base image format\"", + "fullTitle": "BO - Design - Image Settings - Check base image format \"before all\" hook in \"BO - Design - Image Settings - Check base image format\"", + "timedOut": false, + "duration": 79, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, Promise.all([\n productDataPNGBaseFormatJPEG.coverImage,\n productDataJPEGBaseFormatJPEG.coverImage,\n productDataPNGBaseFormatPNG.coverImage,\n ].map(function (image) { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.generateImage(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9accba3-d94f-446d-8f1d-8dc3fd340a6b", + "parentUUID": "86b57250-2070-47ab-b2a7-d2a1de498caa", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Image Settings - Check base image format\"", + "fullTitle": "BO - Design - Image Settings - Check base image format \"after all\" hook in \"BO - Design - Image Settings - Check base image format\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n productDataPNGBaseFormatJPEG.coverImage,\n productDataJPEGBaseFormatJPEG.coverImage,\n productDataPNGBaseFormatPNG.coverImage,\n ].map(function (image) { return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!image) return [3 /*break*/, 2];\n return [4 /*yield*/, files_1.default.deleteFile(image)];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n }); }))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cfa2fd93-7bd3-4319-9de5-f2e4531be82c", + "parentUUID": "86b57250-2070-47ab-b2a7-d2a1de498caa", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "bb8b9d2a-c731-4ac4-8243-d10d6276298c", + "title": "Check base image format", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format should login in BO", + "timedOut": false, + "duration": 1747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbc2824c-d07c-40ed-8db9-e5b9b0133c08", + "parentUUID": "bb8b9d2a-c731-4ac4-8243-d10d6276298c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToImageSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToImageSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0da38ef1-b27d-4c90-ba60-ce83130e000f", + "parentUUID": "bb8b9d2a-c731-4ac4-8243-d10d6276298c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Image Generation Options", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format should check Image Generation Options", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkImageGenerationOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var jpegChecked, jpegDisabled, pngChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkImageGenerationOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateChecked(page, 'jpg')];\n case 2:\n jpegChecked = _a.sent();\n (0, chai_1.expect)(jpegChecked).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isImageFormatToGenerateDisabled(page, 'jpg')];\n case 3:\n jpegDisabled = _a.sent();\n (0, chai_1.expect)(jpegDisabled).to.eq(true);\n return [4 /*yield*/, imageSettings_1.default.isBaseFormatToGenerateChecked(page, 'png')];\n case 4:\n pngChecked = _a.sent();\n (0, chai_1.expect)(pngChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df8a714e-1451-49b3-9f9b-c1a25d0ca7ad", + "parentUUID": "bb8b9d2a-c731-4ac4-8243-d10d6276298c", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "title": "Base Format : JPG - Image Extension : PNG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should enable JPG as Base Format in Image Generation Options", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should enable JPG as Base Format in Image Generation Options", + "timedOut": false, + "duration": 316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_setBaseFormatImageGenerationOptions0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, baseFormatChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setBaseFormatImageGenerationOptions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.setBaseFormatChecked(page, arg.baseFormat, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(imageSettings_1.default.messageSettingsUpdated);\n return [4 /*yield*/, imageSettings_1.default.isBaseFormatToGenerateChecked(page, arg.baseFormat)];\n case 3:\n baseFormatChecked = _a.sent();\n (0, chai_1.expect)(baseFormatChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c6bc171-af4c-4d6d-a611-af9eff646e0c", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToProductsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e037bef4-a5bf-4c8f-8843-0d39ad2c68ba", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_clickOnNewProductButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "368fb70b-b83a-4042-96da-99d2564db28b", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should check the standard product description", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkStandardProductDescription0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStandardProductDescription\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f14f4870-5c4b-475b-985b-4b867ea51dfc", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should choose 'Standard product'", + "timedOut": false, + "duration": 44, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_chooseStandardProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, arg.product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e43163c9-dfae-4a22-ba6e-98b4c87ccd51", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should go to new product page", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToNewProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13988eb7-99ff-47d0-af6f-6da1d3a88d09", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should create standard product", + "timedOut": false, + "duration": 6108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_createStandardProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, arg.product)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ca11072-503d-47c6-9508-2879c9701547", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkSaveButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSaveButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [4 /*yield*/, add_1.default.getProductID(page)];\n case 3:\n idProduct = _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getProductIDImageCover(page)];\n case 4:\n idProductImage = _a.sent();\n (0, chai_1.expect)(idProduct).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11f3c0ed-fae5-45db-a449-1ce239592a5f", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that image is generated in format JPG", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : PNG should check that image is generated in format JPG", + "timedOut": false, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkProductImages0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathProductIdSplitted, pathProductId, pathImageJPG, fileExistsJPG, imageTypeJPG;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(index), baseContext)];\n case 1:\n _a.sent();\n pathProductIdSplitted = idProductImage.toString().match(/./g);\n (0, chai_1.expect)(pathProductIdSplitted).to.not.eq(null);\n if (!pathProductIdSplitted) {\n return [2 /*return*/];\n }\n pathProductId = pathProductIdSplitted.join('/');\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 2:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 3:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extGenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "245e6d2a-bc23-4704-a079-b84425fd506b", + "parentUUID": "7273073b-a0f4-4d42-b6a5-a19c7e2635f7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0c6bc171-af4c-4d6d-a611-af9eff646e0c", + "e037bef4-a5bf-4c8f-8843-0d39ad2c68ba", + "368fb70b-b83a-4042-96da-99d2564db28b", + "f14f4870-5c4b-475b-985b-4b867ea51dfc", + "e43163c9-dfae-4a22-ba6e-98b4c87ccd51", + "13988eb7-99ff-47d0-af6f-6da1d3a88d09", + "8ca11072-503d-47c6-9508-2879c9701547", + "11f3c0ed-fae5-45db-a449-1ce239592a5f", + "245e6d2a-bc23-4704-a079-b84425fd506b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12600, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "title": "Base Format : JPG - Image Extension : JPG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4598, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToImageSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToImageSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cf27728-021e-4a84-9826-bb4d1abe6bd6", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should enable JPG as Base Format in Image Generation Options", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should enable JPG as Base Format in Image Generation Options", + "timedOut": false, + "duration": 281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_setBaseFormatImageGenerationOptions1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, baseFormatChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setBaseFormatImageGenerationOptions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.setBaseFormatChecked(page, arg.baseFormat, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(imageSettings_1.default.messageSettingsUpdated);\n return [4 /*yield*/, imageSettings_1.default.isBaseFormatToGenerateChecked(page, arg.baseFormat)];\n case 3:\n baseFormatChecked = _a.sent();\n (0, chai_1.expect)(baseFormatChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afbb5ab3-e452-4261-b107-667c0bccfcb4", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4658, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5251e2d5-7b94-4508-81c3-5e3b78f1868b", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_clickOnNewProductButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9066c0eb-0161-4f1a-9b8d-03da69d8df33", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should check the standard product description", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkStandardProductDescription1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStandardProductDescription\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0db3237-2b8b-4cbf-89bd-c901cb0b85de", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should choose 'Standard product'", + "timedOut": false, + "duration": 47, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_chooseStandardProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, arg.product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbc29558-5f4d-49a0-8ed8-d2bc547a8bfc", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should go to new product page", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToNewProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6681d77b-9d50-452c-a025-57689083552f", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should create standard product", + "timedOut": false, + "duration": 5381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_createStandardProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, arg.product)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cafa78a-9f5b-4118-8f5e-190e35f10025", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkSaveButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSaveButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [4 /*yield*/, add_1.default.getProductID(page)];\n case 3:\n idProduct = _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getProductIDImageCover(page)];\n case 4:\n idProductImage = _a.sent();\n (0, chai_1.expect)(idProduct).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d381401-303b-44be-8714-6fcd5cac261c", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + }, + { + "title": "should check that image is generated in format JPG", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : JPG - Image Extension : JPG should check that image is generated in format JPG", + "timedOut": false, + "duration": 100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkProductImages1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathProductIdSplitted, pathProductId, pathImageJPG, fileExistsJPG, imageTypeJPG;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(index), baseContext)];\n case 1:\n _a.sent();\n pathProductIdSplitted = idProductImage.toString().match(/./g);\n (0, chai_1.expect)(pathProductIdSplitted).to.not.eq(null);\n if (!pathProductIdSplitted) {\n return [2 /*return*/];\n }\n pathProductId = pathProductIdSplitted.join('/');\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 2:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 3:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extGenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "882cfdc0-632d-491c-94da-845ebdded44a", + "parentUUID": "6b4b6236-e4c4-4eda-91fc-4e5b6027f854", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2cf27728-021e-4a84-9826-bb4d1abe6bd6", + "afbb5ab3-e452-4261-b107-667c0bccfcb4", + "5251e2d5-7b94-4508-81c3-5e3b78f1868b", + "9066c0eb-0161-4f1a-9b8d-03da69d8df33", + "a0db3237-2b8b-4cbf-89bd-c901cb0b85de", + "dbc29558-5f4d-49a0-8ed8-d2bc547a8bfc", + "6681d77b-9d50-452c-a025-57689083552f", + "5cafa78a-9f5b-4118-8f5e-190e35f10025", + "2d381401-303b-44be-8714-6fcd5cac261c", + "882cfdc0-632d-491c-94da-845ebdded44a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16188, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "title": "Base Format : PNG - Image Extension : PNG", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Design > Image Settings' page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should go to 'Design > Image Settings' page", + "timedOut": false, + "duration": 4624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToImageSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToImageSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.imageSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(imageSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68c07746-093b-443b-9417-c35ea3d28ae9", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should enable PNG as Base Format in Image Generation Options", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should enable PNG as Base Format in Image Generation Options", + "timedOut": false, + "duration": 311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_setBaseFormatImageGenerationOptions2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, baseFormatChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setBaseFormatImageGenerationOptions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, imageSettings_1.default.setBaseFormatChecked(page, arg.baseFormat, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(imageSettings_1.default.messageSettingsUpdated);\n return [4 /*yield*/, imageSettings_1.default.isBaseFormatToGenerateChecked(page, arg.baseFormat)];\n case 3:\n baseFormatChecked = _a.sent();\n (0, chai_1.expect)(baseFormatChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53353c87-fa71-426c-aeed-6c519306209d", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToProductsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "434d9641-2ed0-4d54-861f-7dac0df6e45d", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_clickOnNewProductButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2a86c5f-7ea2-4ade-b088-78ac397149c9", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should check the standard product description", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkStandardProductDescription2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStandardProductDescription\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cc19d30-51c4-414a-aa6a-7ba4226e2f7f", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should choose 'Standard product'", + "timedOut": false, + "duration": 46, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_chooseStandardProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, arg.product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "608f502e-1546-4db9-9bfb-398266ccd184", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should go to new product page", + "timedOut": false, + "duration": 52, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_goToNewProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5bbcf82-ce0f-4c3b-8c36-2e1e95767f79", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should create standard product", + "timedOut": false, + "duration": 6106, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_createStandardProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, arg.product)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3fb798e-ae99-4763-a8e1-336120d961e8", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkSaveButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSaveButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [4 /*yield*/, add_1.default.getProductID(page)];\n case 3:\n idProduct = _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.getProductIDImageCover(page)];\n case 4:\n idProductImage = _a.sent();\n (0, chai_1.expect)(idProduct).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e07dc78a-8be1-4cda-824e-a333342728e9", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + }, + { + "title": "should check that image is generated in format PNG", + "fullTitle": "BO - Design - Image Settings - Check base image format Check base image format Base Format : PNG - Image Extension : PNG should check that image is generated in format PNG", + "timedOut": false, + "duration": 100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_checkProductImages2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pathProductIdSplitted, pathProductId, pathImageJPG, fileExistsJPG, imageTypeJPG;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(index), baseContext)];\n case 1:\n _a.sent();\n pathProductIdSplitted = idProductImage.toString().match(/./g);\n (0, chai_1.expect)(pathProductIdSplitted).to.not.eq(null);\n if (!pathProductIdSplitted) {\n return [2 /*return*/];\n }\n pathProductId = pathProductIdSplitted.join('/');\n pathImageJPG = \"\".concat(files_1.default.getRootPath(), \"/img/p/\").concat(pathProductId, \"/\").concat(idProductImage, \"-large_default.jpg\");\n return [4 /*yield*/, files_1.default.doesFileExist(pathImageJPG)];\n case 2:\n fileExistsJPG = _a.sent();\n (0, chai_1.expect)(fileExistsJPG, \"The file \".concat(pathImageJPG, \" doesn't exist!\")).to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(pathImageJPG)];\n case 3:\n imageTypeJPG = _a.sent();\n (0, chai_1.expect)(imageTypeJPG).to.be.eq(arg.extGenerated);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd64628b-f148-4024-8bb8-df8350556be7", + "parentUUID": "4b814747-33ba-4f7c-8f2b-a1a4a6d27109", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "68c07746-093b-443b-9417-c35ea3d28ae9", + "53353c87-fa71-426c-aeed-6c519306209d", + "434d9641-2ed0-4d54-861f-7dac0df6e45d", + "a2a86c5f-7ea2-4ade-b088-78ac397149c9", + "2cc19d30-51c4-414a-aa6a-7ba4226e2f7f", + "608f502e-1546-4db9-9bfb-398266ccd184", + "f5bbcf82-ce0f-4c3b-8c36-2e1e95767f79", + "b3fb798e-ae99-4763-a8e1-336120d961e8", + "e07dc78a-8be1-4cda-824e-a333342728e9", + "cd64628b-f148-4024-8bb8-df8350556be7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16950, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bbc2824c-d07c-40ed-8db9-e5b9b0133c08", + "0da38ef1-b27d-4c90-ba60-ce83130e000f", + "df8a714e-1451-49b3-9f9b-c1a25d0ca7ad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6406, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "title": "POST-TEST: Delete product 'Elegant Bronze Towels'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Elegant Bronze Towels'\"", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Elegant Bronze Towels' \"before all\" hook in \"POST-TEST: Delete product 'Elegant Bronze Towels'\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "713930f5-a21c-4af8-88c6-e2101f0ea2c2", + "parentUUID": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Elegant Bronze Towels'\"", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Elegant Bronze Towels' \"after all\" hook in \"POST-TEST: Delete product 'Elegant Bronze Towels'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "816c6101-a707-442e-ac51-5f9a0ac721e9", + "parentUUID": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Elegant Bronze Towels' should login in BO", + "timedOut": false, + "duration": 1705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db097e66-0c42-425d-8437-bf84bf77643c", + "parentUUID": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Elegant Bronze Towels' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct0_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d5674b0-5c72-4e3d-adda-795aee0e23b9", + "parentUUID": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Elegant Bronze Towels' should reset all filters", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct0_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd15f37e-2c25-4d6b-b2b3-e4f5d8f8d525", + "parentUUID": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Elegant Bronze Towels' should click on delete product button", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct0_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4917cd6d-043a-43f1-9e4a-349df4810b37", + "parentUUID": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Elegant Bronze Towels' should delete product", + "timedOut": false, + "duration": 706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct0_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18d682f3-d1d5-451e-9e32-e118e098afad", + "parentUUID": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Elegant Bronze Towels' should reset filter", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct0_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed11e577-430a-4d4a-877c-ffb809458cc0", + "parentUUID": "fa53ed91-387c-43c8-bd71-bf3818cc5e0e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db097e66-0c42-425d-8437-bf84bf77643c", + "7d5674b0-5c72-4e3d-adda-795aee0e23b9", + "cd15f37e-2c25-4d6b-b2b3-e4f5d8f8d525", + "4917cd6d-043a-43f1-9e4a-349df4810b37", + "18d682f3-d1d5-451e-9e32-e118e098afad", + "ed11e577-430a-4d4a-877c-ffb809458cc0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6663, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "title": "POST-TEST: Delete product 'Recycled Plastic Pizza'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Recycled Plastic Pizza'\"", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Recycled Plastic Pizza' \"before all\" hook in \"POST-TEST: Delete product 'Recycled Plastic Pizza'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90b40ebb-c97f-41c7-9d9a-a417b6a86c8f", + "parentUUID": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Recycled Plastic Pizza'\"", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Recycled Plastic Pizza' \"after all\" hook in \"POST-TEST: Delete product 'Recycled Plastic Pizza'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8150ebce-ac15-4683-a03e-9b8d736fec47", + "parentUUID": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Recycled Plastic Pizza' should login in BO", + "timedOut": false, + "duration": 1782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12ad7b14-cd08-4be3-b53c-263f5682ee7f", + "parentUUID": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Recycled Plastic Pizza' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct1_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33ecbbf1-9cf2-4f9a-852e-ac18ba1c26fd", + "parentUUID": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Recycled Plastic Pizza' should reset all filters", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct1_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48d68655-c2dc-4345-930e-64089aa3b0de", + "parentUUID": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Recycled Plastic Pizza' should click on delete product button", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct1_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ae0f4a3-97af-4dd2-8752-d3d81a4ddd20", + "parentUUID": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Recycled Plastic Pizza' should delete product", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct1_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f49e992-04fc-4e46-bd2f-b2596c0f8229", + "parentUUID": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Recycled Plastic Pizza' should reset filter", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct1_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb0af4f0-423c-4daf-be9c-03353c74ff7c", + "parentUUID": "ab0bef76-26d3-40af-b3ee-9df27465d794", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "12ad7b14-cd08-4be3-b53c-263f5682ee7f", + "33ecbbf1-9cf2-4f9a-852e-ac18ba1c26fd", + "48d68655-c2dc-4345-930e-64089aa3b0de", + "7ae0f4a3-97af-4dd2-8752-d3d81a4ddd20", + "1f49e992-04fc-4e46-bd2f-b2596c0f8229", + "cb0af4f0-423c-4daf-be9c-03353c74ff7c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6769, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "title": "POST-TEST: Delete product 'Luxurious Rubber Shirt'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "file": "/campaigns/functional/BO/08_design/06_imageSettings/16_checkBaseImageFormat.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Luxurious Rubber Shirt'\"", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Luxurious Rubber Shirt' \"before all\" hook in \"POST-TEST: Delete product 'Luxurious Rubber Shirt'\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "716a2a97-96b9-4335-b1ff-7530541eaff8", + "parentUUID": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Luxurious Rubber Shirt'\"", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Luxurious Rubber Shirt' \"after all\" hook in \"POST-TEST: Delete product 'Luxurious Rubber Shirt'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e1ed8fea-f23a-46d1-86e0-acd62d0e95f5", + "parentUUID": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Luxurious Rubber Shirt' should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd25878f-889e-4df9-bfae-a4d0d76c3d2b", + "parentUUID": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Luxurious Rubber Shirt' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct2_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6025ec9-8b6f-46d2-9eec-905bbe0f772c", + "parentUUID": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Luxurious Rubber Shirt' should reset all filters", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct2_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "333ab0df-31ce-4b97-bac8-5cab2517e8a6", + "parentUUID": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Luxurious Rubber Shirt' should click on delete product button", + "timedOut": false, + "duration": 298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct2_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8312dc42-fc26-441b-a2c9-3914645368b8", + "parentUUID": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Luxurious Rubber Shirt' should delete product", + "timedOut": false, + "duration": 702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct2_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00e5592e-d603-4661-bb54-5ae13a385617", + "parentUUID": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Design - Image Settings - Check base image format POST-TEST: Delete product 'Luxurious Rubber Shirt' should reset filter", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_imageSettings_checkBaseImageFormat_removeProduct2_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28553bae-dfdf-434c-ac45-c45fb5b32c85", + "parentUUID": "a658069b-51c0-4f3b-b80b-bb24d413a323", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd25878f-889e-4df9-bfae-a4d0d76c3d2b", + "c6025ec9-8b6f-46d2-9eec-905bbe0f772c", + "333ab0df-31ce-4b97-bac8-5cab2517e8a6", + "8312dc42-fc26-441b-a2c9-3914645368b8", + "00e5592e-d603-4661-bb54-5ae13a385617", + "28553bae-dfdf-434c-ac45-c45fb5b32c85" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6720, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2472da7d-108e-4e43-912e-92a94909a488", + "title": "BO - Design - Link Widget : Create footer link widget and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/07_linkWidget/01_createAndCheckFooterLinkWidget.ts", + "file": "/campaigns/functional/BO/08_design/07_linkWidget/01_createAndCheckFooterLinkWidget.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Design - Link Widget : Create footer link widget and check it in FO\"", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO \"before all\" hook in \"BO - Design - Link Widget : Create footer link widget and check it in FO\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "258bcfed-c99f-418b-947d-7e74583e66d3", + "parentUUID": "2472da7d-108e-4e43-912e-92a94909a488", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Design - Link Widget : Create footer link widget and check it in FO\"", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO \"after all\" hook in \"BO - Design - Link Widget : Create footer link widget and check it in FO\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7349fe35-24b6-40de-9bdc-32702d562625", + "parentUUID": "2472da7d-108e-4e43-912e-92a94909a488", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO should login in BO", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcbabd1f-21b3-4880-8663-8ba1b30c6ac7", + "parentUUID": "2472da7d-108e-4e43-912e-92a94909a488", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Link Widget' page", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO should go to 'Design > Link Widget' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_linkWidget_createAndCheckFooterLinkWidget_goToLinkWidgetPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLinkWidgetPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.linkWidgetLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, linkWidgets_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, linkWidgets_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(linkWidgets_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "909fd771-ceb7-40f7-a5bd-7b4451fae21f", + "parentUUID": "2472da7d-108e-4e43-912e-92a94909a488", + "isHook": false, + "skipped": false + }, + { + "title": "should get link widget number", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO should get link widget number", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_linkWidget_createAndCheckFooterLinkWidget_getLinkWidgetNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getLinkWidgetNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, linkWidgets_1.default.getNumberOfElementInGrid(page, hooks_1.default.displayFooter.name)];\n case 2:\n numberOfLinkWidgetInFooter = _a.sent();\n (0, chai_1.expect)(numberOfLinkWidgetInFooter).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42b9d509-ff33-42a5-96d4-b2118f0f2cac", + "parentUUID": "2472da7d-108e-4e43-912e-92a94909a488", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "4abe53b9-cff4-4814-8224-8616dad300c4", + "title": "Create link widget", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/07_linkWidget/01_createAndCheckFooterLinkWidget.ts", + "file": "/campaigns/functional/BO/08_design/07_linkWidget/01_createAndCheckFooterLinkWidget.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new link widget page", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO Create link widget should go to add new link widget page", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_linkWidget_createAndCheckFooterLinkWidget_goToNewLinkWidgetPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewLinkWidgetPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, linkWidgets_1.default.goToNewLinkWidgetPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25792045-29de-4361-bf11-342394612607", + "parentUUID": "4abe53b9-cff4-4814-8224-8616dad300c4", + "isHook": false, + "skipped": false + }, + { + "title": "should create link widget", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO Create link widget should create link widget", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_linkWidget_createAndCheckFooterLinkWidget_createFooterLInkWidget\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinkWidget;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createFooterLInkWidget', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addLinkWidget(page, linkWidgets_2.default.demo_1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(linkWidgets_1.default.successfulCreationMessage);\n return [4 /*yield*/, linkWidgets_1.default.getNumberOfElementInGrid(page, hooks_1.default.displayFooter.name)];\n case 3:\n numberOfLinkWidget = _a.sent();\n (0, chai_1.expect)(numberOfLinkWidget).to.equal(numberOfLinkWidgetInFooter + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b63fc058-3a12-4ddb-a22f-567580b4a685", + "parentUUID": "4abe53b9-cff4-4814-8224-8616dad300c4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "25792045-29de-4361-bf11-342394612607", + "b63fc058-3a12-4ddb-a22f-567580b4a685" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2522, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2be76126-6b4c-4a41-b63b-a530ca332645", + "title": "Go to FO and check existence of new link Widget", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/07_linkWidget/01_createAndCheckFooterLinkWidget.ts", + "file": "/campaigns/functional/BO/08_design/07_linkWidget/01_createAndCheckFooterLinkWidget.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO Go to FO and check existence of new link Widget should view my shop", + "timedOut": false, + "duration": 1787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_linkWidget_createAndCheckFooterLinkWidget_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, linkWidgets_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfe7d96d-4f9e-45e8-890a-b1f516b47254", + "parentUUID": "2be76126-6b4c-4a41-b63b-a530ca332645", + "isHook": false, + "skipped": false + }, + { + "title": "should check link widget in the footer of home page", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO Go to FO and check existence of new link Widget should check link widget in the footer of home page", + "timedOut": false, + "duration": 99, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_linkWidget_createAndCheckFooterLinkWidget_checkLinkWidgetInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var title, linksTextContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLinkWidgetInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getFooterLinksBlockTitle(page, numberOfLinkWidgetInFooter + 1)];\n case 2:\n title = _a.sent();\n (0, chai_1.expect)(title).to.contains(linkWidgets_2.default.demo_1.name);\n return [4 /*yield*/, home_1.homePage.getFooterLinksTextContent(page, numberOfLinkWidgetInFooter + 1)];\n case 3:\n linksTextContent = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(linksTextContent).to.include.members(linkWidgets_2.default.demo_1.contentPages),\n (0, chai_1.expect)(linksTextContent).to.include.members(linkWidgets_2.default.demo_1.productsPages),\n (0, chai_1.expect)(linksTextContent).to.include.members(linkWidgets_2.default.demo_1.staticPages),\n (0, chai_1.expect)(linksTextContent).to.include.members(linkWidgets_2.default.demo_1.customPages.map(function (el) { return el.name; })),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7bfc007-d357-42c1-a4a2-a956c99b3ce5", + "parentUUID": "2be76126-6b4c-4a41-b63b-a530ca332645", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO Go to FO and check existence of new link Widget should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_linkWidget_createAndCheckFooterLinkWidget_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, linkWidgets_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(linkWidgets_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67f249bb-6e17-4da9-b49b-1de8cc7912c2", + "parentUUID": "2be76126-6b4c-4a41-b63b-a530ca332645", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bfe7d96d-4f9e-45e8-890a-b1f516b47254", + "d7bfc007-d357-42c1-a4a2-a956c99b3ce5", + "67f249bb-6e17-4da9-b49b-1de8cc7912c2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1892, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5e026a37-ac11-4074-8bda-f88241b8a050", + "title": "Delete link widget", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/08_design/07_linkWidget/01_createAndCheckFooterLinkWidget.ts", + "file": "/campaigns/functional/BO/08_design/07_linkWidget/01_createAndCheckFooterLinkWidget.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete link widget", + "fullTitle": "BO - Design - Link Widget : Create footer link widget and check it in FO Delete link widget should delete link widget", + "timedOut": false, + "duration": 349, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_design_linkWidget_createAndCheckFooterLinkWidget_deleteLinkWidget\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinkWidgetAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLinkWidget', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, linkWidgets_1.default.deleteLinkWidget(page, hooks_1.default.displayFooter.name, numberOfLinkWidgetInFooter + 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(linkWidgets_1.default.successfulDeleteMessage);\n return [4 /*yield*/, linkWidgets_1.default.getNumberOfElementInGrid(page, hooks_1.default.displayFooter.name)];\n case 3:\n numberOfLinkWidgetAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfLinkWidgetAfterDelete).to.equal(numberOfLinkWidgetInFooter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24b572b5-4cb5-4c06-8eb1-0c7cb795415f", + "parentUUID": "5e026a37-ac11-4074-8bda-f88241b8a050", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "24b572b5-4cb5-4c06-8eb1-0c7cb795415f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 349, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bcbabd1f-21b3-4880-8663-8ba1b30c6ac7", + "909fd771-ceb7-40f7-a5bd-7b4451fae21f", + "42b9d509-ff33-42a5-96d4-b2118f0f2cac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6575, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "3f597a1d-5715-4699-8ab8-a3ce0012abd5", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1347, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f399ff8-eff9-4f70-9436-d5eab31f84c4", + "parentUUID": "3f597a1d-5715-4699-8ab8-a3ce0012abd5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b24d308-fce3-45a8-876a-31966d11321a", + "parentUUID": "3f597a1d-5715-4699-8ab8-a3ce0012abd5", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c09d0259-a0e2-41bf-a1fc-adeccd5a7d8d", + "parentUUID": "3f597a1d-5715-4699-8ab8-a3ce0012abd5", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5f0d9410-b594-407c-a5cb-4792f5714965", + "title": "BO - Header : Left menu", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/01_leftMenu.ts", + "file": "/campaigns/functional/BO/15_header/01_leftMenu.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Header : Left menu\"", + "fullTitle": "BO - Header : Left menu \"before all\" hook in \"BO - Header : Left menu\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6be4cb11-8607-4e41-a2de-04a0a5885a78", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Header : Left menu\"", + "fullTitle": "BO - Header : Left menu \"after all\" hook in \"BO - Header : Left menu\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c56c1bd9-d9d2-4e07-bc9f-93a7d6f3401f", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Header : Left menu should login in BO", + "timedOut": false, + "duration": 6484, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67ec1f71-652e-4851-a044-9ab062f464e9", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminOrders' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminOrders' is displayed and works", + "timedOut": false, + "duration": 8465, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick0_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e434a82-a069-494c-968d-a462b45b743e", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminInvoices' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminInvoices' is displayed and works", + "timedOut": false, + "duration": 8156, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick0_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62159323-aac0-491f-87ea-e59ac04531fc", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminSlip' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminSlip' is displayed and works", + "timedOut": false, + "duration": 7866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick0_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfc1cb7c-ccf7-4bda-98f1-e5de99492cd7", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminDeliverySlip' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminDeliverySlip' is displayed and works", + "timedOut": false, + "duration": 7883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick0_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6634273-4571-4359-aaea-d2c5958f5125", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCarts' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCarts' is displayed and works", + "timedOut": false, + "duration": 8070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick0_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63bf8afc-6f7b-4ad8-afe2-036ef5443d21", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCustomers' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCustomers' is displayed and works", + "timedOut": false, + "duration": 7891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick1_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94e025e9-7b54-4a66-819d-9ffd048e46d6", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminAddresses' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminAddresses' is displayed and works", + "timedOut": false, + "duration": 7871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick1_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6640e09-dfc5-4172-bb15-3fb973035331", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCustomerThreads' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCustomerThreads' is displayed and works", + "timedOut": false, + "duration": 7867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick2_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "514baf4d-b78c-444c-a412-ebf085682717", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminOrderMessage' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminOrderMessage' is displayed and works", + "timedOut": false, + "duration": 7880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick2_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cb95f91-af35-4a3f-8472-f207f2e5a2b3", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminReturn' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminReturn' is displayed and works", + "timedOut": false, + "duration": 7869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick2_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ff24c50-f79e-4fe8-91a8-fb6d2ff0c64e", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminModulesSf' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminModulesSf' is displayed and works", + "timedOut": false, + "duration": 9244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick3_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8d0475c-5245-4cb2-b00c-989327b6cf1d", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminThemesParent' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminThemesParent' is displayed and works", + "timedOut": false, + "duration": 7702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick4_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "318dd687-4b9f-4b28-bc9a-83f7b546cdaf", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentMailTheme' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentMailTheme' is displayed and works", + "timedOut": false, + "duration": 7932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick4_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "baa47db9-3c81-4955-b39f-152323a80065", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCmsContent' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCmsContent' is displayed and works", + "timedOut": false, + "duration": 7934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick4_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1be7531-7f7d-4b92-88d9-2a61041e59e3", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminModulesPositions' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminModulesPositions' is displayed and works", + "timedOut": false, + "duration": 8376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick4_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09c0c1fd-3079-4a6a-b943-2395fbd7c66b", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminImages' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminImages' is displayed and works", + "timedOut": false, + "duration": 8053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick4_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88818436-4999-480a-9ffe-70c1d17fec5a", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminLinkWidget' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminLinkWidget' is displayed and works", + "timedOut": false, + "duration": 7901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick4_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c38413e-7855-4408-ad00-0bf20e63256b", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCarriers' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCarriers' is displayed and works", + "timedOut": false, + "duration": 7664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick5_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aaded291-a1f0-4603-bf71-92d77e5b6e5e", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminShipping' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminShipping' is displayed and works", + "timedOut": false, + "duration": 7852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick5_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "793b1ccb-aa5b-4635-bff3-431ddfa74565", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminPayment' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminPayment' is displayed and works", + "timedOut": false, + "duration": 7681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick6_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a0e28b3-7098-4611-a9cb-7e822a45d575", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminPaymentPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminPaymentPreferences' is displayed and works", + "timedOut": false, + "duration": 8079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick6_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce93f44d-dcb8-4223-a45b-e70f7d17da0e", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentLocalization' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentLocalization' is displayed and works", + "timedOut": false, + "duration": 7746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick7_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29c7d187-5bcc-4a9a-8c71-1e1c2f3a0a99", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentCountries' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentCountries' is displayed and works", + "timedOut": false, + "duration": 7887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick7_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "175cb5de-2a70-47b2-9a6c-6cc1016f2866", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentTaxes' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentTaxes' is displayed and works", + "timedOut": false, + "duration": 7901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick7_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6f00222-5da7-4765-b230-a5ddf3ec7ba6", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminTranslations' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminTranslations' is displayed and works", + "timedOut": false, + "duration": 8020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick7_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d83dc02-fe32-4497-89ba-69e309b3e3f3", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentPreferences' is displayed and works", + "timedOut": false, + "duration": 7707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick8_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ce75096-6d27-4772-908a-3a71828816ed", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentOrderPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentOrderPreferences' is displayed and works", + "timedOut": false, + "duration": 7938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick8_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bef75299-422d-476b-912a-c61b557ed904", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminPPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminPPreferences' is displayed and works", + "timedOut": false, + "duration": 7881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick8_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d703af2-3f5f-4727-b143-80c488c89240", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentCustomerPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentCustomerPreferences' is displayed and works", + "timedOut": false, + "duration": 7824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick8_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c746982-9b44-4a31-a211-62b0bacd79c2", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentStores' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentStores' is displayed and works", + "timedOut": false, + "duration": 7835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick8_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00e91aa1-21bd-4909-9d71-f47067618077", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentMeta' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentMeta' is displayed and works", + "timedOut": false, + "duration": 8090, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick8_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd1c5587-786d-4f0d-9f54-12c8d6e12c7a", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentSearchConf' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentSearchConf' is displayed and works", + "timedOut": false, + "duration": 7990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick8_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f65b3e24-7969-41c9-8877-c0ee6a2cef37", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminInformation' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminInformation' is displayed and works", + "timedOut": false, + "duration": 8277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4aba1365-c4a8-44d1-b0c4-d3adaecf1eb2", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminPerformance' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminPerformance' is displayed and works", + "timedOut": false, + "duration": 7869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3fffae2-5402-4949-b141-615f5b9942df", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminAdminPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminAdminPreferences' is displayed and works", + "timedOut": false, + "duration": 7825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f69b019-d6d7-4583-a5af-3e9b07455b80", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminEmails' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminEmails' is displayed and works", + "timedOut": false, + "duration": 7935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05106b0f-1968-49d1-8c1d-050e016b1a02", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminImport' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminImport' is displayed and works", + "timedOut": false, + "duration": 7927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00dea96f-5e79-4580-8331-26329f60313f", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentEmployees' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentEmployees' is displayed and works", + "timedOut": false, + "duration": 7911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d4651af-7969-4f71-a619-ec327f3fe987", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentRequestSql' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentRequestSql' is displayed and works", + "timedOut": false, + "duration": 7854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d96bfd4-8156-48c8-aead-f8ca91f9d75e", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminLogs' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminLogs' is displayed and works", + "timedOut": false, + "duration": 7919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d991ae1a-7d38-48ad-8c1b-ac66209fddaf", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminWebservice' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminWebservice' is displayed and works", + "timedOut": false, + "duration": 7926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e4985e2-bb9e-4441-84e8-46f93c5bdd36", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminFeatureFlag' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminFeatureFlag' is displayed and works", + "timedOut": false, + "duration": 7870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "398b2a5f-2157-4425-9974-4a7aa56bdeba", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentSecurity' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentSecurity' is displayed and works", + "timedOut": false, + "duration": 7849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkChildrenClick9_10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d190e45-75b2-4f76-a6e8-394933d0e227", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should close the menu", + "fullTitle": "BO - Header : Left menu should close the menu", + "timedOut": false, + "duration": 1055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_closeMenu\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSidebarCollapsed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeMenu', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.setSidebarCollapsed(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSidebarCollapsed(page)];\n case 3:\n isSidebarCollapsed = _a.sent();\n (0, chai_1.expect)(isSidebarCollapsed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42811a51-d197-4c96-8437-c9dbbf5a5509", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminOrders' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminOrders' is displayed and works", + "timedOut": false, + "duration": 3665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick0_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03a8ce21-6c39-4790-bf3c-ed7f0c415e09", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminInvoices' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminInvoices' is displayed and works", + "timedOut": false, + "duration": 2900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick0_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22e6eb8d-845f-422c-be6e-e484262c5d2a", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminSlip' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminSlip' is displayed and works", + "timedOut": false, + "duration": 2926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick0_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fc0a004-529d-4ed5-839f-b678acf94737", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminDeliverySlip' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminDeliverySlip' is displayed and works", + "timedOut": false, + "duration": 2878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick0_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e81e28c1-75e6-4123-8769-819c67ac2b3e", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCarts' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCarts' is displayed and works", + "timedOut": false, + "duration": 3063, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick0_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f42d3a9-a01a-49be-b30b-31df3fefb8ac", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCustomers' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCustomers' is displayed and works", + "timedOut": false, + "duration": 3057, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick1_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "241b6a29-351b-400a-b4b6-114a1e6ebf69", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminAddresses' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminAddresses' is displayed and works", + "timedOut": false, + "duration": 2957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick1_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2e1a248-c79e-4f97-a21f-3f1806aa130b", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCustomerThreads' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCustomerThreads' is displayed and works", + "timedOut": false, + "duration": 2987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick2_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eec34479-fa9a-4015-8593-c756e2a9d310", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminOrderMessage' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminOrderMessage' is displayed and works", + "timedOut": false, + "duration": 2966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick2_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9eaa760d-4679-474b-b471-84b775400dbb", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminReturn' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminReturn' is displayed and works", + "timedOut": false, + "duration": 2855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick2_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b49534b8-0945-41b6-8051-a5d9e1317f51", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminModulesSf' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminModulesSf' is displayed and works", + "timedOut": false, + "duration": 3626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick3_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9abc0b8a-c80c-4c8b-8e79-baaf1c7b04ba", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminThemesParent' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminThemesParent' is displayed and works", + "timedOut": false, + "duration": 2882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick4_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4889b895-eda0-4143-949c-b89a10feae75", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentMailTheme' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentMailTheme' is displayed and works", + "timedOut": false, + "duration": 2835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick4_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "484091a6-609e-49d3-888e-88cd7f58d8fb", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCmsContent' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCmsContent' is displayed and works", + "timedOut": false, + "duration": 2867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick4_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d91fad5d-3ffe-4db2-b8dc-519b297a2a2a", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminModulesPositions' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminModulesPositions' is displayed and works", + "timedOut": false, + "duration": 3404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick4_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e685de0-7d2a-4f71-8db2-abda7d4a1b73", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminImages' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminImages' is displayed and works", + "timedOut": false, + "duration": 2930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick4_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea189e81-3ae4-4ab3-8604-8f6c9c1a5174", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminLinkWidget' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminLinkWidget' is displayed and works", + "timedOut": false, + "duration": 2899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick4_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8bc700b-f689-4429-a1d2-a490c0e91e78", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminCarriers' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminCarriers' is displayed and works", + "timedOut": false, + "duration": 2867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick5_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4530e15-fef4-44c1-88f0-695126510c25", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminShipping' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminShipping' is displayed and works", + "timedOut": false, + "duration": 2903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick5_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6f6f36c-437e-4101-bfc9-3590e388191a", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminPayment' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminPayment' is displayed and works", + "timedOut": false, + "duration": 2840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick6_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f11756e6-8fd3-4d4c-8da3-08dd773614c3", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminPaymentPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminPaymentPreferences' is displayed and works", + "timedOut": false, + "duration": 3079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick6_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "723a68e8-3382-4a3c-ac98-94a33a264852", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentLocalization' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentLocalization' is displayed and works", + "timedOut": false, + "duration": 3005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick7_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3951dfda-e150-4cb3-9dfc-257ba21caaf5", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentCountries' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentCountries' is displayed and works", + "timedOut": false, + "duration": 2896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick7_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe525009-b91d-4738-b2ec-b475c7f8f4df", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentTaxes' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentTaxes' is displayed and works", + "timedOut": false, + "duration": 3000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick7_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d754711e-b52f-4083-93aa-9907eb239b42", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminTranslations' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminTranslations' is displayed and works", + "timedOut": false, + "duration": 3066, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick7_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d1bac61-f3a1-4948-8b95-eb10e6d5f2a7", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentPreferences' is displayed and works", + "timedOut": false, + "duration": 2855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick8_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aec2a614-e5b9-4378-86b5-7af632a4cec8", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentOrderPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentOrderPreferences' is displayed and works", + "timedOut": false, + "duration": 2851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick8_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de81c568-2995-42a5-a494-170dff28d066", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminPPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminPPreferences' is displayed and works", + "timedOut": false, + "duration": 2856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick8_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ca80f0e-fcfe-4d6b-b041-e16eaef8a280", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentCustomerPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentCustomerPreferences' is displayed and works", + "timedOut": false, + "duration": 2846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick8_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7333e7f6-0536-4ca1-9a64-812c4c6d033f", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentStores' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentStores' is displayed and works", + "timedOut": false, + "duration": 2891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick8_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "479d62b6-51cc-422b-80f2-01fd2e4055ea", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentMeta' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentMeta' is displayed and works", + "timedOut": false, + "duration": 2946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick8_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4cf354a-d117-40b9-b604-2f17c075448c", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentSearchConf' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentSearchConf' is displayed and works", + "timedOut": false, + "duration": 3026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick8_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0667572d-0407-47cc-aa3d-4ed3a78187ff", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminInformation' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminInformation' is displayed and works", + "timedOut": false, + "duration": 3507, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3fbb662-39a3-46e8-a6d6-0bf499e237fa", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminPerformance' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminPerformance' is displayed and works", + "timedOut": false, + "duration": 2848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "457c8946-ec64-4d0d-b084-7f50640634be", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminAdminPreferences' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminAdminPreferences' is displayed and works", + "timedOut": false, + "duration": 2838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d60fd71c-c7e2-4121-a605-b7fbbb0ca463", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminEmails' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminEmails' is displayed and works", + "timedOut": false, + "duration": 2867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a657ebdc-f38c-4a30-8bb1-e35baa44e94d", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminImport' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminImport' is displayed and works", + "timedOut": false, + "duration": 2913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b088b9d9-cdfc-436c-a280-58dc8d4e8235", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentEmployees' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentEmployees' is displayed and works", + "timedOut": false, + "duration": 2858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a34f8446-be77-495d-af50-b11a2bcd1e30", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentRequestSql' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentRequestSql' is displayed and works", + "timedOut": false, + "duration": 2891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57b68b51-b540-4e43-9714-0b8b3a8c6a41", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminLogs' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminLogs' is displayed and works", + "timedOut": false, + "duration": 2842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d32505f5-0598-4a17-931f-5bb1873c1926", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminWebservice' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminWebservice' is displayed and works", + "timedOut": false, + "duration": 2924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe262b95-879a-46bd-8fcf-7ad2746af436", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminFeatureFlag' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminFeatureFlag' is displayed and works", + "timedOut": false, + "duration": 2889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3990948f-6bc7-40ce-8b14-cc02737a8aff", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the child menu '#subtab-AdminParentSecurity' is displayed and works", + "fullTitle": "BO - Header : Left menu should check that the child menu '#subtab-AdminParentSecurity' is displayed and works", + "timedOut": false, + "duration": 2822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuCollapsedChildrenClick9_10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, isMenuActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMenuCollapsedChildrenClick\".concat(index, \"_\").concat(subIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickSubMenu(page, test.parent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, test.parent, subTest)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, test.parent, subTest)];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubMenuActive(page, subTest)];\n case 5:\n isMenuActive = _a.sent();\n (0, chai_1.expect)(isMenuActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "398ebc4b-b2bf-46ab-b988-e6849a0f0a1f", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should open the menu", + "fullTitle": "BO - Header : Left menu should open the menu", + "timedOut": false, + "duration": 1092, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_openMenu\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSidebarCollapsed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openMenu', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.setSidebarCollapsed(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSidebarCollapsed(page)];\n case 3:\n isSidebarCollapsed = _a.sent();\n (0, chai_1.expect)(isSidebarCollapsed).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5fde35e-521e-4833-9fbe-acbeaa4ff277", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check the menu in mobile context", + "fullTitle": "BO - Header : Left menu should check the menu in mobile context", + "timedOut": false, + "duration": 1035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuMobileContext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isMobileMenuVisible, isNavbarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMenuMobileContext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.resize(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isMobileMenuVisible(page)];\n case 3:\n isMobileMenuVisible = _a.sent();\n (0, chai_1.expect)(isMobileMenuVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.isNavbarVisible(page)];\n case 4:\n isNavbarVisible = _a.sent();\n (0, chai_1.expect)(isNavbarVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4df654b9-4525-4948-994e-1ca2ca1879af", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + }, + { + "title": "should check the menu in desktop context", + "fullTitle": "BO - Header : Left menu should check the menu in desktop context", + "timedOut": false, + "duration": 1038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_leftMenu_checkMenuDesktopContext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isMobileMenuVisible, isNavbarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMenuDesktopContext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.resize(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isMobileMenuVisible(page)];\n case 3:\n isMobileMenuVisible = _a.sent();\n (0, chai_1.expect)(isMobileMenuVisible).to.eq(false);\n return [4 /*yield*/, dashboard_1.default.isNavbarVisible(page)];\n case 4:\n isNavbarVisible = _a.sent();\n (0, chai_1.expect)(isNavbarVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcd3d607-5885-4688-a04a-051ac5f661cc", + "parentUUID": "5f0d9410-b594-407c-a5cb-4792f5714965", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "67ec1f71-652e-4851-a044-9ab062f464e9", + "8e434a82-a069-494c-968d-a462b45b743e", + "62159323-aac0-491f-87ea-e59ac04531fc", + "bfc1cb7c-ccf7-4bda-98f1-e5de99492cd7", + "b6634273-4571-4359-aaea-d2c5958f5125", + "63bf8afc-6f7b-4ad8-afe2-036ef5443d21", + "94e025e9-7b54-4a66-819d-9ffd048e46d6", + "f6640e09-dfc5-4172-bb15-3fb973035331", + "514baf4d-b78c-444c-a412-ebf085682717", + "7cb95f91-af35-4a3f-8472-f207f2e5a2b3", + "7ff24c50-f79e-4fe8-91a8-fb6d2ff0c64e", + "a8d0475c-5245-4cb2-b00c-989327b6cf1d", + "318dd687-4b9f-4b28-bc9a-83f7b546cdaf", + "baa47db9-3c81-4955-b39f-152323a80065", + "e1be7531-7f7d-4b92-88d9-2a61041e59e3", + "09c0c1fd-3079-4a6a-b943-2395fbd7c66b", + "88818436-4999-480a-9ffe-70c1d17fec5a", + "6c38413e-7855-4408-ad00-0bf20e63256b", + "aaded291-a1f0-4603-bf71-92d77e5b6e5e", + "793b1ccb-aa5b-4635-bff3-431ddfa74565", + "0a0e28b3-7098-4611-a9cb-7e822a45d575", + "ce93f44d-dcb8-4223-a45b-e70f7d17da0e", + "29c7d187-5bcc-4a9a-8c71-1e1c2f3a0a99", + "175cb5de-2a70-47b2-9a6c-6cc1016f2866", + "b6f00222-5da7-4765-b230-a5ddf3ec7ba6", + "5d83dc02-fe32-4497-89ba-69e309b3e3f3", + "3ce75096-6d27-4772-908a-3a71828816ed", + "bef75299-422d-476b-912a-c61b557ed904", + "1d703af2-3f5f-4727-b143-80c488c89240", + "8c746982-9b44-4a31-a211-62b0bacd79c2", + "00e91aa1-21bd-4909-9d71-f47067618077", + "fd1c5587-786d-4f0d-9f54-12c8d6e12c7a", + "f65b3e24-7969-41c9-8877-c0ee6a2cef37", + "4aba1365-c4a8-44d1-b0c4-d3adaecf1eb2", + "c3fffae2-5402-4949-b141-615f5b9942df", + "2f69b019-d6d7-4583-a5af-3e9b07455b80", + "05106b0f-1968-49d1-8c1d-050e016b1a02", + "00dea96f-5e79-4580-8331-26329f60313f", + "9d4651af-7969-4f71-a619-ec327f3fe987", + "0d96bfd4-8156-48c8-aead-f8ca91f9d75e", + "d991ae1a-7d38-48ad-8c1b-ac66209fddaf", + "8e4985e2-bb9e-4441-84e8-46f93c5bdd36", + "398b2a5f-2157-4425-9974-4a7aa56bdeba", + "8d190e45-75b2-4f76-a6e8-394933d0e227", + "42811a51-d197-4c96-8437-c9dbbf5a5509", + "03a8ce21-6c39-4790-bf3c-ed7f0c415e09", + "22e6eb8d-845f-422c-be6e-e484262c5d2a", + "0fc0a004-529d-4ed5-839f-b678acf94737", + "e81e28c1-75e6-4123-8769-819c67ac2b3e", + "1f42d3a9-a01a-49be-b30b-31df3fefb8ac", + "241b6a29-351b-400a-b4b6-114a1e6ebf69", + "b2e1a248-c79e-4f97-a21f-3f1806aa130b", + "eec34479-fa9a-4015-8593-c756e2a9d310", + "9eaa760d-4679-474b-b471-84b775400dbb", + "b49534b8-0945-41b6-8051-a5d9e1317f51", + "9abc0b8a-c80c-4c8b-8e79-baaf1c7b04ba", + "4889b895-eda0-4143-949c-b89a10feae75", + "484091a6-609e-49d3-888e-88cd7f58d8fb", + "d91fad5d-3ffe-4db2-b8dc-519b297a2a2a", + "2e685de0-7d2a-4f71-8db2-abda7d4a1b73", + "ea189e81-3ae4-4ab3-8604-8f6c9c1a5174", + "f8bc700b-f689-4429-a1d2-a490c0e91e78", + "a4530e15-fef4-44c1-88f0-695126510c25", + "c6f6f36c-437e-4101-bfc9-3590e388191a", + "f11756e6-8fd3-4d4c-8da3-08dd773614c3", + "723a68e8-3382-4a3c-ac98-94a33a264852", + "3951dfda-e150-4cb3-9dfc-257ba21caaf5", + "fe525009-b91d-4738-b2ec-b475c7f8f4df", + "d754711e-b52f-4083-93aa-9907eb239b42", + "5d1bac61-f3a1-4948-8b95-eb10e6d5f2a7", + "aec2a614-e5b9-4378-86b5-7af632a4cec8", + "de81c568-2995-42a5-a494-170dff28d066", + "9ca80f0e-fcfe-4d6b-b041-e16eaef8a280", + "7333e7f6-0536-4ca1-9a64-812c4c6d033f", + "479d62b6-51cc-422b-80f2-01fd2e4055ea", + "e4cf354a-d117-40b9-b604-2f17c075448c", + "0667572d-0407-47cc-aa3d-4ed3a78187ff", + "e3fbb662-39a3-46e8-a6d6-0bf499e237fa", + "457c8946-ec64-4d0d-b084-7f50640634be", + "d60fd71c-c7e2-4121-a605-b7fbbb0ca463", + "a657ebdc-f38c-4a30-8bb1-e35baa44e94d", + "b088b9d9-cdfc-436c-a280-58dc8d4e8235", + "a34f8446-be77-495d-af50-b11a2bcd1e30", + "57b68b51-b540-4e43-9714-0b8b3a8c6a41", + "d32505f5-0598-4a17-931f-5bb1873c1926", + "fe262b95-879a-46bd-8fcf-7ad2746af436", + "3990948f-6bc7-40ce-8b14-cc02737a8aff", + "398ebc4b-b2bf-46ab-b988-e6849a0f0a1f", + "c5fde35e-521e-4833-9fbe-acbeaa4ff277", + "4df654b9-4525-4948-994e-1ca2ca1879af", + "fcd3d607-5885-4688-a04a-051ac5f661cc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 480744, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f0909b78-e5fe-4dc7-897f-b6cfb864d152", + "title": "BO - Header : Quick access links", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/02_quickAccess.ts", + "file": "/campaigns/functional/BO/15_header/02_quickAccess.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Header : Quick access links\"", + "fullTitle": "BO - Header : Quick access links \"before all\" hook in \"BO - Header : Quick access links\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eac2aabe-d04a-4f6f-952c-fe28750d3cfd", + "parentUUID": "f0909b78-e5fe-4dc7-897f-b6cfb864d152", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Header : Quick access links\"", + "fullTitle": "BO - Header : Quick access links \"after all\" hook in \"BO - Header : Quick access links\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5ca2a75f-96e5-43d6-a970-ae5e39b3184f", + "parentUUID": "f0909b78-e5fe-4dc7-897f-b6cfb864d152", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "title": "Check quick access links", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/02_quickAccess.ts", + "file": "/campaigns/functional/BO/15_header/02_quickAccess.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Header : Quick access links Check quick access links should login in BO", + "timedOut": false, + "duration": 1765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fee0ba19-591a-4e2a-bd55-ae99424c3944", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Catalog evaluation' link from Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should check 'Catalog evaluation' link from Quick access", + "timedOut": false, + "duration": 1034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_checkLink0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, isModalNotVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.pageName === 'New product')) return [3 /*break*/, 5];\n return [4 /*yield*/, dashboard_1.default.quickAccessToPageWithFrame(page, test.args.pageName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.isNewProductModalVisibleInFrame(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.closeNewProductModal(page)];\n case 4:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.be.equal(true);\n return [3 /*break*/, 8];\n case 5: return [4 /*yield*/, dashboard_1.default.quickAccessToPage(page, test.args.pageName)];\n case 6:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 7:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(test.args.pageTitle);\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d30fcea5-4f00-40a9-8816-8412e5919d37", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Installed modules' link from Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should check 'Installed modules' link from Quick access", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_checkLink1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, isModalNotVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.pageName === 'New product')) return [3 /*break*/, 5];\n return [4 /*yield*/, dashboard_1.default.quickAccessToPageWithFrame(page, test.args.pageName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.isNewProductModalVisibleInFrame(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.closeNewProductModal(page)];\n case 4:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.be.equal(true);\n return [3 /*break*/, 8];\n case 5: return [4 /*yield*/, dashboard_1.default.quickAccessToPage(page, test.args.pageName)];\n case 6:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 7:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(test.args.pageTitle);\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c6faf09-63b8-41ca-86bb-ace66633af1e", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'New category' link from Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should check 'New category' link from Quick access", + "timedOut": false, + "duration": 1233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_checkLink2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, isModalNotVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.pageName === 'New product')) return [3 /*break*/, 5];\n return [4 /*yield*/, dashboard_1.default.quickAccessToPageWithFrame(page, test.args.pageName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.isNewProductModalVisibleInFrame(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.closeNewProductModal(page)];\n case 4:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.be.equal(true);\n return [3 /*break*/, 8];\n case 5: return [4 /*yield*/, dashboard_1.default.quickAccessToPage(page, test.args.pageName)];\n case 6:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 7:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(test.args.pageTitle);\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31fbe5b0-3949-4ade-aeb0-a8c8914b21c4", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'New product' link from Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should check 'New product' link from Quick access", + "timedOut": false, + "duration": 1362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_checkLink3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, isModalNotVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.pageName === 'New product')) return [3 /*break*/, 5];\n return [4 /*yield*/, dashboard_1.default.quickAccessToPageWithFrame(page, test.args.pageName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.isNewProductModalVisibleInFrame(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.closeNewProductModal(page)];\n case 4:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.be.equal(true);\n return [3 /*break*/, 8];\n case 5: return [4 /*yield*/, dashboard_1.default.quickAccessToPage(page, test.args.pageName)];\n case 6:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 7:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(test.args.pageTitle);\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecd62fcc-349c-49a7-8c78-fed2bc268e19", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Orders' link from Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should check 'Orders' link from Quick access", + "timedOut": false, + "duration": 1096, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_checkLink4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, isModalNotVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.pageName === 'New product')) return [3 /*break*/, 5];\n return [4 /*yield*/, dashboard_1.default.quickAccessToPageWithFrame(page, test.args.pageName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.isNewProductModalVisibleInFrame(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.closeNewProductModal(page)];\n case 4:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.be.equal(true);\n return [3 /*break*/, 8];\n case 5: return [4 /*yield*/, dashboard_1.default.quickAccessToPage(page, test.args.pageName)];\n case 6:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 7:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(test.args.pageTitle);\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa9dfab4-03d6-4234-b99b-97818a512202", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'New voucher' link from Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should check 'New voucher' link from Quick access", + "timedOut": false, + "duration": 1052, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_checkLink5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, isModalNotVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.pageName === 'New product')) return [3 /*break*/, 5];\n return [4 /*yield*/, dashboard_1.default.quickAccessToPageWithFrame(page, test.args.pageName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.isNewProductModalVisibleInFrame(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.closeNewProductModal(page)];\n case 4:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.be.equal(true);\n return [3 /*break*/, 8];\n case 5: return [4 /*yield*/, dashboard_1.default.quickAccessToPage(page, test.args.pageName)];\n case 6:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 7:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(test.args.pageTitle);\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "073f8412-88ab-4592-8d76-f0997cb0026a", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the last link 'New voucher' from Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should remove the last link 'New voucher' from Quick access", + "timedOut": false, + "duration": 185, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_removeLinkFromQuickAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeLinkFromQuickAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.removeLinkFromQuickAccess(page)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad4aebc4-7a71-45e0-bbb0-f8ee4d53560c", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should refresh the page and add current page to Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should refresh the page and add current page to Quick access", + "timedOut": false, + "duration": 421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_addCurrentPageToQuickAccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCurrentPageToQuickAccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.addCurrentPageToQuickAccess(page, 'New voucher')];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7830bae-8baa-4727-a2e9-378cc65dcb8f", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Manage quick access' page", + "fullTitle": "BO - Header : Quick access links Check quick access links should go to 'Manage quick access' page", + "timedOut": false, + "duration": 1076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_goToManageQuickAccessPageToCreateLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToManageQuickAccessPageToCreateLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.goToManageQuickAccessPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, quickAccess_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(quickAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f73f5c6-b9e6-423d-b44f-a628501d1d79", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new quick access' page", + "fullTitle": "BO - Header : Quick access links Check quick access links should go to 'Add new quick access' page", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_goToAddQuickAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddQuickAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, quickAccess_1.default.goToAddNewQuickAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57995e12-66cd-40ee-8684-6dce8f45feec", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should create new quick access link", + "fullTitle": "BO - Header : Quick access links Check quick access links should create new quick access link", + "timedOut": false, + "duration": 1060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_createQuickAccessLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createQuickAccessLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_3.default.setQuickAccessLink(page, quickAccessLinkData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_3.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "182b81fa-9486-4c0c-b3fc-36ed9936795a", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should check the new link from Quick access", + "fullTitle": "BO - Header : Quick access links Check quick access links should check the new link from Quick access", + "timedOut": false, + "duration": 1264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_checkNewLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.quickAccessToPageNewWindow(page, quickAccessLinkData.name)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_4.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_4.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fee71b65-eb9f-4344-b6d3-cf1fe900cc69", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Manage quick access' page", + "fullTitle": "BO - Header : Quick access links Check quick access links should go to 'Manage quick access' page", + "timedOut": false, + "duration": 945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_goToManageQuickAccessPageToDeleteLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToManageQuickAccessPageToDeleteLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_4.default.goToManageQuickAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, quickAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(quickAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "789743ff-1637-40ac-b167-84bfc4d688e4", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should filter quick access table by link name", + "fullTitle": "BO - Header : Quick access links Check quick access links should filter quick access table by link name", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_searchByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchByName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, quickAccess_1.default.filterTable(page, 'input', 'name', quickAccessLinkData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, quickAccess_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(quickAccessLinkData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1612aa7-33b4-466e-90b0-e6bf50b05874", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created quick access link by bulk actions", + "fullTitle": "BO - Header : Quick access links Check quick access links should delete the created quick access link by bulk actions", + "timedOut": false, + "duration": 560, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_quickAccess_deleteByBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteByBulkActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, quickAccess_1.default.bulkDeleteQuickAccessLink(page)];\n case 2:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.be.contains(quickAccess_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce14474f-0024-41c4-b9c2-70e32daeef67", + "parentUUID": "0dbd59cd-8b7a-43e6-81f5-873e15f80d96", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fee0ba19-591a-4e2a-bd55-ae99424c3944", + "d30fcea5-4f00-40a9-8816-8412e5919d37", + "1c6faf09-63b8-41ca-86bb-ace66633af1e", + "31fbe5b0-3949-4ade-aeb0-a8c8914b21c4", + "ecd62fcc-349c-49a7-8c78-fed2bc268e19", + "fa9dfab4-03d6-4234-b99b-97818a512202", + "073f8412-88ab-4592-8d76-f0997cb0026a", + "ad4aebc4-7a71-45e0-bbb0-f8ee4d53560c", + "c7830bae-8baa-4727-a2e9-378cc65dcb8f", + "5f73f5c6-b9e6-423d-b44f-a628501d1d79", + "57995e12-66cd-40ee-8684-6dce8f45feec", + "182b81fa-9486-4c0c-b3fc-36ed9936795a", + "fee71b65-eb9f-4344-b6d3-cf1fe900cc69", + "789743ff-1637-40ac-b167-84bfc4d688e4", + "b1612aa7-33b4-466e-90b0-e6bf50b05874", + "ce14474f-0024-41c4-b9c2-70e32daeef67" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16820, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d1c555fd-62d5-49a4-9379-d1eb1da11d27", + "title": "BO - Header : Search bar", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/03_searchBar.ts", + "file": "/campaigns/functional/BO/15_header/03_searchBar.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Header : Search bar\"", + "fullTitle": "BO - Header : Search bar \"before all\" hook in \"BO - Header : Search bar\"", + "timedOut": false, + "duration": 54, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aea28bfc-b2db-4b0f-a15c-f2d42683597c", + "parentUUID": "d1c555fd-62d5-49a4-9379-d1eb1da11d27", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Header : Search bar\"", + "fullTitle": "BO - Header : Search bar \"after all\" hook in \"BO - Header : Search bar\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b8edc610-3fb8-4018-adb0-a65cc2f492e9", + "parentUUID": "d1c555fd-62d5-49a4-9379-d1eb1da11d27", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Header : Search bar should login in BO", + "timedOut": false, + "duration": 1762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05636802-e464-4c4b-b94f-5fa01fab252b", + "parentUUID": "d1c555fd-62d5-49a4-9379-d1eb1da11d27", + "isHook": false, + "skipped": false + }, + { + "title": "should search for \"orders\"", + "fullTitle": "BO - Header : Search bar should search for \"orders\"", + "timedOut": false, + "duration": 401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_searchBar_searchForOrders\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForOrders', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.search(page, 'orders')];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(searchResults_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a83656d7-ba88-4a23-9a83-54d39a650125", + "parentUUID": "d1c555fd-62d5-49a4-9379-d1eb1da11d27", + "isHook": false, + "skipped": false + }, + { + "title": "should check results for \"orders\"", + "fullTitle": "BO - Header : Search bar should check results for \"orders\"", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_searchBar_checkResultsForOrders\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberResults, numberFeatures, numberModules, numberLinks, linkHref, linkText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResultsForOrders', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.default.getNumberResults(page)];\n case 2:\n numberResults = _a.sent();\n (0, chai_1.expect)(numberResults).to.be.eq(3);\n return [4 /*yield*/, searchResults_1.default.getNumberResults(page, 'features')];\n case 3:\n numberFeatures = _a.sent();\n (0, chai_1.expect)(numberFeatures).to.be.eq(1);\n return [4 /*yield*/, searchResults_1.default.getNumberResults(page, 'modules')];\n case 4:\n numberModules = _a.sent();\n (0, chai_1.expect)(numberModules).to.be.eq(2);\n return [4 /*yield*/, searchResults_1.default.getSearchPanelsLinksNumber(page)];\n case 5:\n numberLinks = _a.sent();\n (0, chai_1.expect)(numberLinks).to.be.eq(1);\n return [4 /*yield*/, searchResults_1.default.getSearchPanelsLinkURL(page, 1)];\n case 6:\n linkHref = _a.sent();\n (0, chai_1.expect)(linkHref).to.contains('https://docs.prestashop-project.org/welcome/?q=');\n return [4 /*yield*/, searchResults_1.default.getSearchPanelsLinkText(page, 1)];\n case 7:\n linkText = _a.sent();\n (0, chai_1.expect)(linkText).to.contains('Go to the documentation');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "259fb449-295d-4faa-8014-ea638a7e323b", + "parentUUID": "d1c555fd-62d5-49a4-9379-d1eb1da11d27", + "isHook": false, + "skipped": false + }, + { + "title": "should search for \"John Doe\"", + "fullTitle": "BO - Header : Search bar should search for \"John Doe\"", + "timedOut": false, + "duration": 327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_searchBar_searchForJohnDoe\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForJohnDoe', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.default.search(page, 'John Doe')];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(searchResults_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f1ff3b7-b8ec-48d3-ba6c-7f3255e427ed", + "parentUUID": "d1c555fd-62d5-49a4-9379-d1eb1da11d27", + "isHook": false, + "skipped": false + }, + { + "title": "should check results for \"John Doe\"", + "fullTitle": "BO - Header : Search bar should check results for \"John Doe\"", + "timedOut": false, + "duration": 61, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_searchBar_checkResultsForJohnDoe\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberResults, numberCustomers, customerFirstName, customerName, numberLinks, linkHref, linkText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResultsForJohnDoe', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.default.getNumberResults(page)];\n case 2:\n numberResults = _a.sent();\n (0, chai_1.expect)(numberResults).to.be.eq(1);\n return [4 /*yield*/, searchResults_1.default.getNumberResults(page, 'customers')];\n case 3:\n numberCustomers = _a.sent();\n (0, chai_1.expect)(numberCustomers).to.be.eq(1);\n return [4 /*yield*/, searchResults_1.default.getTextColumn(page, 'customers', 1, 'firstname')];\n case 4:\n customerFirstName = _a.sent();\n (0, chai_1.expect)(customerFirstName).to.be.eq('John');\n return [4 /*yield*/, searchResults_1.default.getTextColumn(page, 'customers', 1, 'name')];\n case 5:\n customerName = _a.sent();\n (0, chai_1.expect)(customerName).to.be.eq('DOE');\n return [4 /*yield*/, searchResults_1.default.getSearchPanelsLinksNumber(page)];\n case 6:\n numberLinks = _a.sent();\n (0, chai_1.expect)(numberLinks).to.be.eq(1);\n return [4 /*yield*/, searchResults_1.default.getSearchPanelsLinkURL(page, 1)];\n case 7:\n linkHref = _a.sent();\n (0, chai_1.expect)(linkHref).to.contains('https://docs.prestashop-project.org/welcome/?q=');\n return [4 /*yield*/, searchResults_1.default.getSearchPanelsLinkText(page, 1)];\n case 8:\n linkText = _a.sent();\n (0, chai_1.expect)(linkText).to.contains('Go to the documentation');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab57be0f-f348-4f89-b782-4480fb2e426c", + "parentUUID": "d1c555fd-62d5-49a4-9379-d1eb1da11d27", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "05636802-e464-4c4b-b94f-5fa01fab252b", + "a83656d7-ba88-4a23-9a83-54d39a650125", + "259fb449-295d-4faa-8014-ea638a7e323b", + "4f1ff3b7-b8ec-48d3-ba6c-7f3255e427ed", + "ab57be0f-f348-4f89-b782-4480fb2e426c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2607, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c90b7a93-9436-41d0-bca2-40f0383cfc0b", + "title": "BO - Header : View My Shop", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/05_viewMyShop.ts", + "file": "/campaigns/functional/BO/15_header/05_viewMyShop.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Header : View My Shop\"", + "fullTitle": "BO - Header : View My Shop \"before all\" hook in \"BO - Header : View My Shop\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "812eb36a-c723-479b-9d9f-4038de0371cf", + "parentUUID": "c90b7a93-9436-41d0-bca2-40f0383cfc0b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Header : View My Shop\"", + "fullTitle": "BO - Header : View My Shop \"after all\" hook in \"BO - Header : View My Shop\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "34c29f93-e7fe-414a-b004-99759661d94d", + "parentUUID": "c90b7a93-9436-41d0-bca2-40f0383cfc0b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Header : View My Shop should login in BO", + "timedOut": false, + "duration": 1720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numPages, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n numPages = helpers_1.default.getNumberTabs(browserContext);\n (0, chai_1.expect)(numPages).to.be.eq(1);\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 2:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c792f31-d37b-4cb8-ab5c-07e2d2b89864", + "parentUUID": "c90b7a93-9436-41d0-bca2-40f0383cfc0b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on View my shop", + "fullTitle": "BO - Header : View My Shop should click on View my shop", + "timedOut": false, + "duration": 1133, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_viewMyShop_clickViewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numPages, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickViewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n numPages = helpers_1.default.getNumberTabs(browserContext);\n (0, chai_1.expect)(numPages).to.be.eq(2);\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33d06ee2-9550-4ba6-8e17-f4cf401fc0a9", + "parentUUID": "c90b7a93-9436-41d0-bca2-40f0383cfc0b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2c792f31-d37b-4cb8-ab5c-07e2d2b89864", + "33d06ee2-9550-4ba6-8e17-f4cf401fc0a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2853, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0a3a799a-02ed-4e3c-9546-d6dcd377398f", + "title": "BO - Header : My profile", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/07_myProfile.ts", + "file": "/campaigns/functional/BO/15_header/07_myProfile.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Header : My profile\"", + "fullTitle": "BO - Header : My profile \"before all\" hook in \"BO - Header : My profile\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56eca88f-1c08-495f-928d-00c1083be2ae", + "parentUUID": "0a3a799a-02ed-4e3c-9546-d6dcd377398f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Header : My profile\"", + "fullTitle": "BO - Header : My profile \"after all\" hook in \"BO - Header : My profile\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cbc1979f-4054-46ac-b395-170ee88b5a07", + "parentUUID": "0a3a799a-02ed-4e3c-9546-d6dcd377398f", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "ede80d9f-24a7-4fc0-9f95-232753d9484f", + "title": "PRE-TEST: Create employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/07_myProfile.ts", + "file": "/campaigns/functional/BO/15_header/07_myProfile.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create employee\"", + "fullTitle": "BO - Header : My profile PRE-TEST: Create employee \"before all\" hook in \"PRE-TEST: Create employee\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "626ef306-0bef-4353-82fc-6ce83c51acc8", + "parentUUID": "ede80d9f-24a7-4fc0-9f95-232753d9484f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create employee\"", + "fullTitle": "BO - Header : My profile PRE-TEST: Create employee \"after all\" hook in \"PRE-TEST: Create employee\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ccc9face-9329-4aaf-a7aa-15c6385441d6", + "parentUUID": "ede80d9f-24a7-4fc0-9f95-232753d9484f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Header : My profile PRE-TEST: Create employee should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dc85609-8dfd-460d-83b7-fd57b0389648", + "parentUUID": "ede80d9f-24a7-4fc0-9f95-232753d9484f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Header : My profile PRE-TEST: Create employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_1_goToTeamPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTeamPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eab3a4e7-ee2f-4836-b477-33a0e6b69836", + "parentUUID": "ede80d9f-24a7-4fc0-9f95-232753d9484f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Header : My profile PRE-TEST: Create employee should reset all filters and get number of employees", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_1_resetFilterEmployeeTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterEmployeeTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a50c2d4-9ee0-4991-b17d-7831e1aa1a22", + "parentUUID": "ede80d9f-24a7-4fc0-9f95-232753d9484f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Header : My profile PRE-TEST: Create employee should go to add new employee page", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_1_goToNewEmployeePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewEmployeePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7c5d2e2-ee66-4df5-a7cc-d79ee8fa8756", + "parentUUID": "ede80d9f-24a7-4fc0-9f95-232753d9484f", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee and check result", + "fullTitle": "BO - Header : My profile PRE-TEST: Create employee should create employee and check result", + "timedOut": false, + "duration": 957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_1_createEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1583e32d-a5fc-4f73-91ab-b4ffaef4c648", + "parentUUID": "ede80d9f-24a7-4fc0-9f95-232753d9484f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3dc85609-8dfd-460d-83b7-fd57b0389648", + "eab3a4e7-ee2f-4836-b477-33a0e6b69836", + "6a50c2d4-9ee0-4991-b17d-7831e1aa1a22", + "b7c5d2e2-ee66-4df5-a7cc-d79ee8fa8756", + "1583e32d-a5fc-4f73-91ab-b4ffaef4c648" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9442, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "title": "PRE-TEST: Set permissions to a profile", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/07_myProfile.ts", + "file": "/campaigns/functional/BO/15_header/07_myProfile.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Set permissions to a profile\"", + "fullTitle": "BO - Header : My profile PRE-TEST: Set permissions to a profile \"before all\" hook in \"PRE-TEST: Set permissions to a profile\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e861b678-e51f-43bb-9ef4-68b64ed89b02", + "parentUUID": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Set permissions to a profile\"", + "fullTitle": "BO - Header : My profile PRE-TEST: Set permissions to a profile \"after all\" hook in \"PRE-TEST: Set permissions to a profile\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f03cebd9-8c1b-47cc-a3b6-1b7743cbd115", + "parentUUID": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Header : My profile PRE-TEST: Set permissions to a profile should login in BO", + "timedOut": false, + "duration": 1767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b90bb977-7b0f-41aa-b807-643f39f43890", + "parentUUID": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Header : My profile PRE-TEST: Set permissions to a profile should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_2_goToTeamPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTeamPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22f90ada-4aff-49fe-8e15-7771df4f1862", + "parentUUID": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Permissions' tab", + "fullTitle": "BO - Header : My profile PRE-TEST: Set permissions to a profile should go to 'Permissions' tab", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_2_goToPermissionsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPermissionsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToPermissionsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Permissions tab is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c64fc235-3232-41b8-b1b6-a63bcf2f1ab0", + "parentUUID": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the defined profile", + "fullTitle": "BO - Header : My profile PRE-TEST: Set permissions to a profile should click on the defined profile", + "timedOut": false, + "duration": 126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_2_goToProfileSubTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSubTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProfileSubTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.goToProfileSubTab(page, profileName)];\n case 2:\n isSubTabOpened = _a.sent();\n (0, chai_1.expect)(isSubTabOpened, 'Profile sub-tab is not opened!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70cb1cd0-5049-4410-949c-8016f5cf3017", + "parentUUID": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "isHook": false, + "skipped": false + }, + { + "title": "should set the permission all on the AdminEmployees", + "fullTitle": "BO - Header : My profile PRE-TEST: Set permissions to a profile should set the permission all on the AdminEmployees", + "timedOut": false, + "duration": 4487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_2_setPermission_AdminEmployees_all\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setPermission_\".concat(permission.className, \"_\").concat(access), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermission(page, permission.className, access)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "092d9be7-8c2d-4a35-9810-1bafbc4a11be", + "parentUUID": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "isHook": false, + "skipped": false + }, + { + "title": "should set the permission all on the AdminParentEmployees", + "fullTitle": "BO - Header : My profile PRE-TEST: Set permissions to a profile should set the permission all on the AdminParentEmployees", + "timedOut": false, + "duration": 4464, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_preTest_2_setPermission_AdminParentEmployees_all\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPermissionDefined;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setPermission_\".concat(permission.className, \"_\").concat(access), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, permissions_1.default.setPermission(page, permission.className, access)];\n case 2:\n isPermissionDefined = _a.sent();\n (0, chai_1.expect)(isPermissionDefined, 'Permission is not updated').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "344be96f-82db-401a-83c1-23780682ce76", + "parentUUID": "f5ac276d-493b-4c2b-a2a0-2b30fcfcefc8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b90bb977-7b0f-41aa-b807-643f39f43890", + "22f90ada-4aff-49fe-8e15-7771df4f1862", + "c64fc235-3232-41b8-b1b6-a63bcf2f1ab0", + "70cb1cd0-5049-4410-949c-8016f5cf3017", + "092d9be7-8c2d-4a35-9810-1bafbc4a11be", + "344be96f-82db-401a-83c1-23780682ce76" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15615, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dc5f9cd5-7801-4de6-b8b9-ccf45796baef", + "title": "Go to employee page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/07_myProfile.ts", + "file": "/campaigns/functional/BO/15_header/07_myProfile.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login by new employee account", + "fullTitle": "BO - Header : My profile Go to employee page should login by new employee account", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_loginWithNewEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginWithNewEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.successLogin(page, employeeData.email, employeeData.password)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "452f77f1-e501-47c1-8926-483d501304fa", + "parentUUID": "dc5f9cd5-7801-4de6-b8b9-ccf45796baef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Your profile' page", + "fullTitle": "BO - Header : My profile Go to employee page should go to 'Your profile' page", + "timedOut": false, + "duration": 1951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_goToMyProfilePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMyProfilePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToMyProfile(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myProfile_1.default.pageTitleEdit(employeeData.lastName, employeeData.firstName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6345144-548b-4bda-93e0-623b0e7b2963", + "parentUUID": "dc5f9cd5-7801-4de6-b8b9-ccf45796baef", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "452f77f1-e501-47c1-8926-483d501304fa", + "a6345144-548b-4bda-93e0-623b0e7b2963" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3667, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "title": "Edit the profile", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/07_myProfile.ts", + "file": "/campaigns/functional/BO/15_header/07_myProfile.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should update firstname and lastname with invalid values and check error message", + "fullTitle": "BO - Header : My profile Edit the profile should update firstname and lastname with invalid values and check error message", + "timedOut": false, + "duration": 857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_checkInvalidFirstNameAndLastName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, lastNameResult, firstNameResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvalidFirstNameAndLastName', baseContext)];\n case 1:\n _a.sent();\n employeeData.firstName = 'Hello222';\n employeeData.lastName = 'World333';\n return [4 /*yield*/, myProfile_1.default.updateEditEmployee(page, employeeData.password, employeeData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getAlertError(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(myProfile_1.default.errorInvalidFirstNameMessage);\n return [4 /*yield*/, myProfile_1.default.getInputValue(page, 'lastname')];\n case 4:\n lastNameResult = _a.sent();\n (0, chai_1.expect)(lastNameResult).to.equal(employeeData.lastName);\n return [4 /*yield*/, myProfile_1.default.getInputValue(page, 'firstname')];\n case 5:\n firstNameResult = _a.sent();\n (0, chai_1.expect)(firstNameResult).to.equal(employeeData.firstName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d47c555c-2b0e-408e-8ddc-3fecf883236d", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should update with valid firstname and invalid lastname and check error message", + "fullTitle": "BO - Header : My profile Edit the profile should update with valid firstname and invalid lastname and check error message", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_checkValidFirstNameAndInvalidLastName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, lastNameResult, firstNameResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkValidFirstNameAndInvalidLastName', baseContext)];\n case 1:\n _a.sent();\n employeeData.firstName = 'Hello man';\n return [4 /*yield*/, myProfile_1.default.updateEditEmployee(page, employeeData.password, employeeData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getAlertError(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(myProfile_1.default.errorInvalidLastNameMessage);\n return [4 /*yield*/, myProfile_1.default.getInputValue(page, 'lastname')];\n case 4:\n lastNameResult = _a.sent();\n (0, chai_1.expect)(lastNameResult).to.equal(employeeData.lastName);\n return [4 /*yield*/, myProfile_1.default.getInputValue(page, 'firstname')];\n case 5:\n firstNameResult = _a.sent();\n (0, chai_1.expect)(firstNameResult).to.equal(employeeData.firstName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0a6b0dc-63a7-4cf8-bef8-607ad596b5a5", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should update firstname and lastname with valid values", + "fullTitle": "BO - Header : My profile Edit the profile should update firstname and lastname with valid values", + "timedOut": false, + "duration": 1004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_checkValidFirstNameAndLastName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, lastNameResult, firstNameResult, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkValidFirstNameAndLastName', baseContext)];\n case 1:\n _a.sent();\n employeeData.firstName = 'Hello';\n employeeData.lastName = 'World';\n return [4 /*yield*/, myProfile_1.default.updateEditEmployee(page, employeeData.password, employeeData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getAlertSuccess(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(myProfile_1.default.successfulUpdateMessage);\n return [4 /*yield*/, myProfile_1.default.getInputValue(page, 'lastname')];\n case 4:\n lastNameResult = _a.sent();\n (0, chai_1.expect)(lastNameResult).to.equal(employeeData.lastName);\n return [4 /*yield*/, myProfile_1.default.getInputValue(page, 'firstname')];\n case 5:\n firstNameResult = _a.sent();\n (0, chai_1.expect)(firstNameResult).to.equal(employeeData.firstName);\n return [4 /*yield*/, myProfile_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myProfile_1.default.pageTitleEdit(employeeData.lastName, employeeData.firstName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f40fdaf-2a2e-4784-a2e2-1b73011df358", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should upload an invalid format image and check error message", + "fullTitle": "BO - Header : My profile Edit the profile should upload an invalid format image and check error message", + "timedOut": false, + "duration": 1068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_checkInvalidFormatImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvalidFormatImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.createSVGFile('.', 'image.svg')];\n case 2:\n _a.sent();\n employeeData.avatarFile = 'image.svg';\n return [4 /*yield*/, myProfile_1.default.updateEditEmployee(page, employeeData.password, employeeData)];\n case 3:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getAlertError(page)];\n case 4:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(myProfile_1.default.errorInvalidFormatImageMessage);\n // Delete created file\n return [4 /*yield*/, files_1.default.deleteFile('image.svg')];\n case 5:\n // Delete created file\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ee521e0-5039-4d93-9dee-076aafb06165", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should upload a valid format image", + "fullTitle": "BO - Header : My profile Edit the profile should upload a valid format image", + "timedOut": false, + "duration": 1186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_checkValidFormatImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkValidFormatImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.generateImage('image.jpg')];\n case 2:\n _a.sent();\n employeeData.avatarFile = 'image.jpg';\n return [4 /*yield*/, myProfile_1.default.updateEditEmployee(page, employeeData.password, employeeData)];\n case 3:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getAlertSuccess(page)];\n case 4:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(myProfile_1.default.successfulUpdateMessage);\n // Delete created file\n return [4 /*yield*/, files_1.default.deleteFile('image.jpg')];\n case 5:\n // Delete created file\n _a.sent();\n // Reset value\n employeeData.avatarFile = null;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6829467-90be-484b-a033-e6267e27d423", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Gravatar", + "fullTitle": "BO - Header : My profile Edit the profile should enable Gravatar", + "timedOut": false, + "duration": 1127, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_checkGravatar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isChecked, avatarURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGravatar', baseContext)];\n case 1:\n _a.sent();\n employeeData.enableGravatar = true;\n return [4 /*yield*/, myProfile_1.default.updateEditEmployee(page, employeeData.password, employeeData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getAlertSuccess(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(myProfile_1.default.successfulUpdateMessage);\n return [4 /*yield*/, myProfile_1.default.isGravatarEnabled(page)];\n case 4:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n return [4 /*yield*/, myProfile_1.default.getCurrentEmployeeAvatar(page)];\n case 5:\n avatarURL = _a.sent();\n (0, chai_1.expect)(avatarURL).to.contains('https://www.gravatar.com/avatar/');\n // Reset value\n employeeData.enableGravatar = false;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30c9bb0a-ba41-4d43-a71e-10beb0c3078c", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should update all others fields", + "fullTitle": "BO - Header : My profile Edit the profile should update all others fields", + "timedOut": false, + "duration": 1070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_updateAllOthersFields\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateAllOthersFields', baseContext)];\n case 1:\n _a.sent();\n employeeData.email = 'demo1@prestashop.com';\n employeeData.password = 'prestashop_demo';\n employeeData.language = 'English (English)';\n employeeData.defaultPage = 'Credit Slips';\n return [4 /*yield*/, myProfile_1.default.updateEditEmployee(page, employeeData.password, employeeData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getAlertSuccess(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(myProfile_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "854217e2-25df-43da-b52d-35531cdd5e66", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Header : My profile Edit the profile should logout from BO", + "timedOut": false, + "duration": 711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74b45c77-2515-44a2-927f-e844328c6d07", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should check the password and the default page", + "fullTitle": "BO - Header : My profile Edit the profile should check the password and the default page", + "timedOut": false, + "duration": 1154, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_checkPasswordAndDefaultPageAndLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPasswordAndDefaultPageAndLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.successLogin(page, employeeData.email, employeeData.password)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(creditSlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9dd59c8-a151-49eb-9829-4b380fb1c861", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the language", + "fullTitle": "BO - Header : My profile Edit the profile should reset the language", + "timedOut": false, + "duration": 1890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_resetLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToMyProfile(page)];\n case 2:\n _a.sent();\n employeeData.language = 'English (English)';\n return [4 /*yield*/, myProfile_1.default.updateEditEmployee(page, employeeData.password, employeeData)];\n case 3:\n _a.sent();\n return [4 /*yield*/, myProfile_1.default.getAlertSuccess(page)];\n case 4:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(myProfile_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "806780ba-472c-4823-bf4a-fcb39b2621e1", + "parentUUID": "9ae57f20-b4aa-4f04-8a77-2b3b876d64c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d47c555c-2b0e-408e-8ddc-3fecf883236d", + "f0a6b0dc-63a7-4cf8-bef8-607ad596b5a5", + "4f40fdaf-2a2e-4784-a2e2-1b73011df358", + "0ee521e0-5039-4d93-9dee-076aafb06165", + "d6829467-90be-484b-a033-e6267e27d423", + "30c9bb0a-ba41-4d43-a71e-10beb0c3078c", + "854217e2-25df-43da-b52d-35531cdd5e66", + "74b45c77-2515-44a2-927f-e844328c6d07", + "f9dd59c8-a151-49eb-9829-4b380fb1c861", + "806780ba-472c-4823-bf4a-fcb39b2621e1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10912, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0ff21c56-c1e6-4304-857e-99e0bb384eb5", + "title": "Delete the account and check error", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/07_myProfile.ts", + "file": "/campaigns/functional/BO/15_header/07_myProfile.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Header : My profile Delete the account and check error should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_goToTeamPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTeamPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb794275-124a-4056-b7fd-ac81c366df09", + "parentUUID": "0ff21c56-c1e6-4304-857e-99e0bb384eb5", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Header : My profile Delete the account and check error should filter list by email", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_filterEmployeesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmployeesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', employeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(employeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e53c2917-481f-44e9-bb76-555947163e44", + "parentUUID": "0ff21c56-c1e6-4304-857e-99e0bb384eb5", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employee and check error message", + "fullTitle": "BO - Header : My profile Delete the account and check error should delete employee and check error message", + "timedOut": false, + "duration": 901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_deleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteEmployeeAndFail(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.errorDeleteOwnAccountMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e75fc5a1-1fd4-4250-8232-7420a1db2247", + "parentUUID": "0ff21c56-c1e6-4304-857e-99e0bb384eb5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bb794275-124a-4056-b7fd-ac81c366df09", + "e53c2917-481f-44e9-bb76-555947163e44", + "e75fc5a1-1fd4-4250-8232-7420a1db2247" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5578, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "21691b66-ae27-40bc-9ddd-6f99dd32ddb9", + "title": "POST-TEST: Delete employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/07_myProfile.ts", + "file": "/campaigns/functional/BO/15_header/07_myProfile.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete employee\"", + "fullTitle": "BO - Header : My profile POST-TEST: Delete employee \"before all\" hook in \"POST-TEST: Delete employee\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12fe3734-7890-463e-bbf2-5d46d792fd56", + "parentUUID": "21691b66-ae27-40bc-9ddd-6f99dd32ddb9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete employee\"", + "fullTitle": "BO - Header : My profile POST-TEST: Delete employee \"after all\" hook in \"POST-TEST: Delete employee\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7dd8d7a0-6283-4325-be29-0ce017b998ae", + "parentUUID": "21691b66-ae27-40bc-9ddd-6f99dd32ddb9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Header : My profile POST-TEST: Delete employee should login in BO", + "timedOut": false, + "duration": 1777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "097cafb0-b845-451c-a0d2-0a4a02083652", + "parentUUID": "21691b66-ae27-40bc-9ddd-6f99dd32ddb9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Header : My profile POST-TEST: Delete employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_postTest_1_goToEmployeesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c62557fe-de78-4cb5-87c5-0298bc92b348", + "parentUUID": "21691b66-ae27-40bc-9ddd-6f99dd32ddb9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of employees by email", + "fullTitle": "BO - Header : My profile POST-TEST: Delete employee should filter list of employees by email", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_postTest_1_filterEmployeesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmployeesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', employeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(employeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4f6e5bc-2067-4a5d-a128-0d08b22465a4", + "parentUUID": "21691b66-ae27-40bc-9ddd-6f99dd32ddb9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employee", + "fullTitle": "BO - Header : My profile POST-TEST: Delete employee should delete employee", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_postTest_1_deleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteEmployee(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5aeb798c-e639-444d-95ff-63859b1b256f", + "parentUUID": "21691b66-ae27-40bc-9ddd-6f99dd32ddb9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of employees", + "fullTitle": "BO - Header : My profile POST-TEST: Delete employee should reset filter and check the number of employees", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_myProfile_postTest_1_resetAfterDeleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f4e764f-386f-4f17-9b09-260555ebe260", + "parentUUID": "21691b66-ae27-40bc-9ddd-6f99dd32ddb9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "097cafb0-b845-451c-a0d2-0a4a02083652", + "c62557fe-de78-4cb5-87c5-0298bc92b348", + "b4f6e5bc-2067-4a5d-a128-0d08b22465a4", + "5aeb798c-e639-444d-95ff-63859b1b256f", + "3f4e764f-386f-4f17-9b09-260555ebe260" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8320, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "800149c7-7720-49b1-a669-0847764e3311", + "title": "BO - Header : Check notifications", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "file": "/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Header : Check notifications\"", + "fullTitle": "BO - Header : Check notifications \"before all\" hook in \"BO - Header : Check notifications\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bca81a6-e490-46d5-9871-6d263b69e490", + "parentUUID": "800149c7-7720-49b1-a669-0847764e3311", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Header : Check notifications\"", + "fullTitle": "BO - Header : Check notifications \"after all\" hook in \"BO - Header : Check notifications\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ca72e256-685b-493b-b307-c7939f9c63c3", + "parentUUID": "800149c7-7720-49b1-a669-0847764e3311", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "file": "/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e59ce0b9-dff4-45c3-bec7-049ba6dbbd71", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "48939ba0-672a-43bb-af1b-08e396504177", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_preTest_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d072ce2-274d-474b-a7e5-21466947cd85", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_preTest_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c719265-f9ea-4460-bead-7a69470062b7", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_preTest_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd6611ba-bd2b-427e-a383-84770e53fd75", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7357, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_preTest_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b109b45e-b031-426d-8490-ec03c4fed170", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_preTest_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15ce1a25-8f43-4537-a6cb-66b26eac7815", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_preTest_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f9b9834-8821-4fc8-ad9d-d5a53df31116", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_preTest_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d7a5bab-b540-4e04-81f0-90ccaaac247b", + "parentUUID": "d14b1995-d0da-45e0-a0a6-56b60353a25e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7d072ce2-274d-474b-a7e5-21466947cd85", + "5c719265-f9ea-4460-bead-7a69470062b7", + "fd6611ba-bd2b-427e-a383-84770e53fd75", + "b109b45e-b031-426d-8490-ec03c4fed170", + "15ce1a25-8f43-4537-a6cb-66b26eac7815", + "2f9b9834-8821-4fc8-ad9d-d5a53df31116", + "4d7a5bab-b540-4e04-81f0-90ccaaac247b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13362, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "title": "Send message from FO then check the notification in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "file": "/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should login in BO", + "timedOut": false, + "duration": 1747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "219ffe3f-cdc5-4e61-8ba3-dfc668fd1240", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should check notifications number", + "timedOut": false, + "duration": 2018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_checkNotificationsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getAllNotificationsNumber(page)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e58ad8b-19e5-4741-8358-d5c8782152e2", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on notifications icon", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should click on notifications icon", + "timedOut": false, + "duration": 184, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_clickOnNotificationsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotificationsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNotificationsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsLink(page)];\n case 2:\n isNotificationsVisible = _a.sent();\n (0, chai_1.expect)(isNotificationsVisible).to.eq(true);\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsTab(page, 'customers')];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsTab(page, 'messages')];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe052028-9008-46cc-8048-08e95187454e", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should refresh the page and check the notifications number", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should refresh the page and check the notifications number", + "timedOut": false, + "duration": 2198, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_refreshPageAndCheckNotifNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'refreshPageAndCheckNotifNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getAllNotificationsNumber(page)];\n case 3:\n number = _a.sent();\n (0, chai_1.expect)(number).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "444ef94a-3044-412a-84d7-7c9d16fcd617", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should view my shop", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_viewMySHop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMySHop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2072d01-f824-4ae8-8918-734c07d3bb48", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should go to login page", + "timedOut": false, + "duration": 711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_goToLoginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20c2fa79-48eb-4634-ae9f-cda65ace6a28", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should sign in with default customer", + "timedOut": false, + "duration": 488, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "024b9775-c957-454f-809e-183d11076c0f", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should go to order history page", + "timedOut": false, + "duration": 1431, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46cc716d-8d6a-4767-9cb4-a9560cdc7093", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "Go to order details and send message", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO Go to order details and send message", + "timedOut": false, + "duration": 1871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.addAMessage(page, messageOption, messageSend)];\n case 3:\n successMessageText = _a.sent();\n (0, chai_1.expect)(successMessageText).to.equal(orderDetails_1.default.successMessageText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5601cdd1-6bd2-48b2-beee-9cfc73ab2426", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should go back to BO", + "timedOut": false, + "duration": 256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, dashboard_1.default.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05506dcf-cdc5-41c1-9fe8-f35c5f2c0ed6", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should check notifications number", + "timedOut": false, + "duration": 2020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_checkNotificationsNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getAllNotificationsNumber(page)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "943a8a01-818d-424f-9de1-23da4cc56eb3", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on notifications icon", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should click on notifications icon", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_clickOnNotificationsLink2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotificationsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNotificationsLink2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsLink(page)];\n case 2:\n isNotificationsVisible = _a.sent();\n (0, chai_1.expect)(isNotificationsVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e66b18b9-340b-43fa-9784-ab5c1cea5d2e", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Messages tab", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should click on Messages tab", + "timedOut": false, + "duration": 2064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_clickMessagesTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickMessagesTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsTab(page, 'messages')];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNotificationsNumberInTab(page, 'customer_messages')];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4719e743-72ef-4a66-af0c-370a0ae6137a", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the first notification and check that the messages table is opened", + "fullTitle": "BO - Header : Check notifications Send message from FO then check the notification in BO should click on the first notification and check that the messages table is opened", + "timedOut": false, + "duration": 767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_clickOnFirstMessageNotification\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnFirstMessageNotification', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotification(page, 'messages')];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6e7d9c0-2884-4b12-90bf-938fc75a3f0f", + "parentUUID": "8c5ccf42-e5d5-4092-bc4b-621f9949cbeb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "219ffe3f-cdc5-4e61-8ba3-dfc668fd1240", + "7e58ad8b-19e5-4741-8358-d5c8782152e2", + "fe052028-9008-46cc-8048-08e95187454e", + "444ef94a-3044-412a-84d7-7c9d16fcd617", + "f2072d01-f824-4ae8-8918-734c07d3bb48", + "20c2fa79-48eb-4634-ae9f-cda65ace6a28", + "024b9775-c957-454f-809e-183d11076c0f", + "46cc716d-8d6a-4767-9cb4-a9560cdc7093", + "5601cdd1-6bd2-48b2-beee-9cfc73ab2426", + "05506dcf-cdc5-41c1-9fe8-f35c5f2c0ed6", + "943a8a01-818d-424f-9de1-23da4cc56eb3", + "e66b18b9-340b-43fa-9784-ab5c1cea5d2e", + "4719e743-72ef-4a66-af0c-370a0ae6137a", + "c6e7d9c0-2884-4b12-90bf-938fc75a3f0f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17536, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "532a068f-231d-47a8-ad3f-51a5cf60331b", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "file": "/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9c05f90-5962-4f02-b506-49d02db8ea08", + "parentUUID": "532a068f-231d-47a8-ad3f-51a5cf60331b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "579a0d00-e41c-4794-b961-599d9f148c01", + "parentUUID": "532a068f-231d-47a8-ad3f-51a5cf60331b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "982b72b0-5257-4d16-a9ff-470cee3345b2", + "parentUUID": "532a068f-231d-47a8-ad3f-51a5cf60331b", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "640aa870-1f37-4f2b-a649-6ec40e89317f", + "parentUUID": "532a068f-231d-47a8-ad3f-51a5cf60331b", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1fb64db-2b40-4f50-a999-de304b64fc72", + "parentUUID": "532a068f-231d-47a8-ad3f-51a5cf60331b", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1561, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bacb066-f083-4096-a751-a66ed3d4c79a", + "parentUUID": "532a068f-231d-47a8-ad3f-51a5cf60331b", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Header : Check notifications PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9de71845-63e7-4935-9269-701176754464", + "parentUUID": "532a068f-231d-47a8-ad3f-51a5cf60331b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "982b72b0-5257-4d16-a9ff-470cee3345b2", + "640aa870-1f37-4f2b-a649-6ec40e89317f", + "b1fb64db-2b40-4f50-a999-de304b64fc72", + "8bacb066-f083-4096-a751-a66ed3d4c79a", + "9de71845-63e7-4935-9269-701176754464" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11145, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "45217208-368b-477a-862f-b2f2da0b9403", + "title": "Check customers and orders notifications in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "file": "/campaigns/functional/BO/15_header/08_checkNotifications.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on notifications icon", + "fullTitle": "BO - Header : Check notifications Check customers and orders notifications in BO should click on notifications icon", + "timedOut": false, + "duration": 1143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_clickOnNotificationsLink3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotificationsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNotificationsLink3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsLink(page)];\n case 3:\n isNotificationsVisible = _a.sent();\n (0, chai_1.expect)(isNotificationsVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2685f162-7e40-436f-bd83-2172a2779235", + "parentUUID": "45217208-368b-477a-862f-b2f2da0b9403", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number", + "fullTitle": "BO - Header : Check notifications Check customers and orders notifications in BO should check notifications number", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_checkNotificationsNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsNumber3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getAllNotificationsNumber(page)];\n case 2:\n number = _a.sent();\n (0, chai_1.expect)(number).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95dd92ab-f74a-42c6-b293-4b54c4ec8aa3", + "parentUUID": "45217208-368b-477a-862f-b2f2da0b9403", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the first notification in orders tab", + "fullTitle": "BO - Header : Check notifications Check customers and orders notifications in BO should click on the first notification in orders tab", + "timedOut": false, + "duration": 1286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_checkOrdersNotification\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrdersNotification', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotification(page, 'orders')];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35fb57d2-c873-4d21-b087-15936cfb316f", + "parentUUID": "45217208-368b-477a-862f-b2f2da0b9403", + "isHook": false, + "skipped": false + }, + { + "title": "should click on customers tab", + "fullTitle": "BO - Header : Check notifications Check customers and orders notifications in BO should click on customers tab", + "timedOut": false, + "duration": 3188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_clickOnCustomersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnCustomersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToDashboardPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsLink(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotificationsTab(page, 'customers')];\n case 4:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getNotificationsNumberInTab(page, 'customers')];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa2c4993-d362-4350-a621-370a8af7753c", + "parentUUID": "45217208-368b-477a-862f-b2f2da0b9403", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the first notification and check that the customers table is opened", + "fullTitle": "BO - Header : Check notifications Check customers and orders notifications in BO should click on the first notification and check that the customers table is opened", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_header_checkNotifications_clickOnFirstNotificationCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerName, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnFirstNotificationCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.clickOnNotification(page, 'customers')];\n case 2:\n _a.sent();\n customerName = \"\".concat(customerData.firstName[0], \". \").concat(customerData.lastName);\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(customerName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3566cfff-cdb9-4371-9a23-ac2d248636c0", + "parentUUID": "45217208-368b-477a-862f-b2f2da0b9403", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2685f162-7e40-436f-bd83-2172a2779235", + "95dd92ab-f74a-42c6-b293-4b54c4ec8aa3", + "35fb57d2-c873-4d21-b087-15936cfb316f", + "aa2c4993-d362-4350-a621-370a8af7753c", + "3566cfff-cdb9-4371-9a23-ac2d248636c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8549, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "cc41d690-a8b7-439a-878b-f7fafe88cce2", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 438, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8477e28-3901-40d3-be8e-df64c3196d67", + "parentUUID": "cc41d690-a8b7-439a-878b-f7fafe88cce2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64ada742-fefa-4846-bc73-576c1ecc1b13", + "parentUUID": "cc41d690-a8b7-439a-878b-f7fafe88cce2", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d52055f-cb65-4287-bfad-bd3467fcf287", + "parentUUID": "cc41d690-a8b7-439a-878b-f7fafe88cce2", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "e50968ad-2afc-483e-91cf-8043a5cfdc05", + "title": "BO - International - Localization : Import a localization pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/01_importLocalizationPack.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/01_importLocalizationPack.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Localization : Import a localization pack\"", + "fullTitle": "BO - International - Localization : Import a localization pack \"before all\" hook in \"BO - International - Localization : Import a localization pack\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "021f53e9-fba0-40ba-9d3b-9a9f73c713d6", + "parentUUID": "e50968ad-2afc-483e-91cf-8043a5cfdc05", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Localization : Import a localization pack\"", + "fullTitle": "BO - International - Localization : Import a localization pack \"after all\" hook in \"BO - International - Localization : Import a localization pack\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "32b9efee-4e28-4ee9-bdc2-3c4c39472054", + "parentUUID": "e50968ad-2afc-483e-91cf-8043a5cfdc05", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Import a localization pack should login in BO", + "timedOut": false, + "duration": 6776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97352084-f563-4a01-81d1-a2419cca72a6", + "parentUUID": "e50968ad-2afc-483e-91cf-8043a5cfdc05", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Localization : Import a localization pack should go to 'International > Localization' page", + "timedOut": false, + "duration": 5407, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc6c5e1f-36f4-4138-93bc-41dfc049f56a", + "parentUUID": "e50968ad-2afc-483e-91cf-8043a5cfdc05", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7c5129f6-6588-4bb7-8d23-a7415f85fc35", + "title": "Import localization pack and check existence of language and currency in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/01_importLocalizationPack.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/01_importLocalizationPack.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should import localization pack", + "fullTitle": "BO - International - Localization : Import a localization pack Import localization pack and check existence of language and currency in FO should import localization pack", + "timedOut": false, + "duration": 5166, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_importLocalizationPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importLocalizationPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.importLocalizationPack(page, 'Chile', contentToImport)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(localization_1.default.importLocalizationPackSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bddc2a8c-2336-4f3a-8591-8e790e783ab9", + "parentUUID": "7c5129f6-6588-4bb7-8d23-a7415f85fc35", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Localization : Import a localization pack Import localization pack and check existence of language and currency in FO should go to FO", + "timedOut": false, + "duration": 1236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.viewMyShop(page)];\n case 2:\n // View my shop and int pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df119db2-c4ee-4394-a68e-1fe94d6474a5", + "parentUUID": "7c5129f6-6588-4bb7-8d23-a7415f85fc35", + "isHook": false, + "skipped": false + }, + { + "title": "should change FO currency", + "fullTitle": "BO - International - Localization : Import a localization pack Import localization pack and check existence of language and currency in FO should change FO currency", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_changeFoCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeFoCurrency', baseContext)];\n case 1:\n _a.sent();\n // Check currency\n return [4 /*yield*/, home_1.homePage.changeCurrency(page, currencies_2.default.chileanPeso.isoCode, currencies_2.default.chileanPeso.symbol)];\n case 2:\n // Check currency\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getDefaultCurrency(page)];\n case 3:\n shopCurrency = _a.sent();\n (0, chai_1.expect)(shopCurrency).to.contain(currencies_2.default.chileanPeso.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2027f9bd-a7f4-482b-936c-2fba914aa9b5", + "parentUUID": "7c5129f6-6588-4bb7-8d23-a7415f85fc35", + "isHook": false, + "skipped": false + }, + { + "title": "should change FO language", + "fullTitle": "BO - International - Localization : Import a localization pack Import localization pack and check existence of language and currency in FO should change FO language", + "timedOut": false, + "duration": 1513, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_changeFoLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopLanguage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeFoLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, languages_2.default.spanish.isoCode)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getDefaultShopLanguage(page)];\n case 3:\n shopLanguage = _a.sent();\n (0, chai_1.expect)(languages_2.default.spanish.name).to.contain(shopLanguage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c7a886c-3dff-4e71-b142-454bdb80e40c", + "parentUUID": "7c5129f6-6588-4bb7-8d23-a7415f85fc35", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Localization : Import a localization pack Import localization pack and check existence of language and currency in FO should go back to BO", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fff9ef0-595e-4f35-9e51-437a4cb185c1", + "parentUUID": "7c5129f6-6588-4bb7-8d23-a7415f85fc35", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bddc2a8c-2336-4f3a-8591-8e790e783ab9", + "df119db2-c4ee-4394-a68e-1fe94d6474a5", + "2027f9bd-a7f4-482b-936c-2fba914aa9b5", + "6c7a886c-3dff-4e71-b142-454bdb80e40c", + "5fff9ef0-595e-4f35-9e51-437a4cb185c1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8848, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8d86199b-a819-4f17-bb9e-4d469fe51b8b", + "title": "Delete language added by importing localization pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/01_importLocalizationPack.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/01_importLocalizationPack.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to languages page", + "fullTitle": "BO - International - Localization : Import a localization pack Delete language added by importing localization pack should go to languages page", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_goToLanguagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb82d518-6b3a-4abd-9631-a66e32b6b7b1", + "parentUUID": "8d86199b-a819-4f17-bb9e-4d469fe51b8b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name 'Español (Spanish)'", + "fullTitle": "BO - International - Localization : Import a localization pack Delete language added by importing localization pack should filter language by name 'Español (Spanish)'", + "timedOut": false, + "duration": 985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_filterLanguages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterLanguages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', languages_2.default.spanish.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(languages_2.default.spanish.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6aa7335-97a7-48ab-9d88-72986179c094", + "parentUUID": "8d86199b-a819-4f17-bb9e-4d469fe51b8b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Localization : Import a localization pack Delete language added by importing localization pack should delete language", + "timedOut": false, + "duration": 934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_deleteLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13b48af2-4f2c-4372-b8f2-da32657ae95e", + "parentUUID": "8d86199b-a819-4f17-bb9e-4d469fe51b8b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Localization : Import a localization pack Delete language added by importing localization pack should reset all filters", + "timedOut": false, + "duration": 2381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_resetLanguages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetLanguages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ec89035-e3d4-43e8-8714-bb11b4bb7665", + "parentUUID": "8d86199b-a819-4f17-bb9e-4d469fe51b8b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fb82d518-6b3a-4abd-9631-a66e32b6b7b1", + "f6aa7335-97a7-48ab-9d88-72986179c094", + "13b48af2-4f2c-4372-b8f2-da32657ae95e", + "7ec89035-e3d4-43e8-8714-bb11b4bb7665" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5228, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1909b645-c32f-496d-a80c-2cb17fed801b", + "title": "Delete currency added by importing localization pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/01_importLocalizationPack.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/01_importLocalizationPack.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to currencies page", + "fullTitle": "BO - International - Localization : Import a localization pack Delete currency added by importing localization pack should go to currencies page", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d1a391a-5bbe-4eca-8702-91574130ee97", + "parentUUID": "1909b645-c32f-496d-a80c-2cb17fed801b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'CLP'", + "fullTitle": "BO - International - Localization : Import a localization pack Delete currency added by importing localization pack should filter by iso code of currency 'CLP'", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_filterCurrencies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCurrencies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.chileanPeso.isoCode)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.chileanPeso.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10b8a359-d402-4ede-87b0-4384408968a6", + "parentUUID": "1909b645-c32f-496d-a80c-2cb17fed801b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Localization : Import a localization pack Delete currency added by importing localization pack should delete currency", + "timedOut": false, + "duration": 1461, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d71acd5-3930-437f-b073-cc189e15db83", + "parentUUID": "1909b645-c32f-496d-a80c-2cb17fed801b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Localization : Import a localization pack Delete currency added by importing localization pack should reset filters", + "timedOut": false, + "duration": 325, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_importLocalizationPack_resetCurrencies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCurrencies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "013aa7a7-8e7b-48f5-b098-47e567cb6f0c", + "parentUUID": "1909b645-c32f-496d-a80c-2cb17fed801b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5d1a391a-5bbe-4eca-8702-91574130ee97", + "10b8a359-d402-4ede-87b0-4384408968a6", + "2d71acd5-3930-437f-b073-cc189e15db83", + "013aa7a7-8e7b-48f5-b098-47e567cb6f0c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3013, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "97352084-f563-4a01-81d1-a2419cca72a6", + "bc6c5e1f-36f4-4138-93bc-41dfc049f56a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12183, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "04175489-d387-40ca-9e6c-c526dd189dbb", + "title": "BO - International - Localization : Update default language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "4f8e4a0c-8ff1-4be6-a0f7-c8db3f9d6a00", + "title": "Set default language to 'Français (French)' and default language from browser to 'false'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Set default language to 'Français (French)' and default language from browser to 'false'\"", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'Français (French)' and default language from browser to 'false' \"before all\" hook in \"Set default language to 'Français (French)' and default language from browser to 'false'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "862145f1-1a9f-42f9-9e1a-25f044da3a25", + "parentUUID": "4f8e4a0c-8ff1-4be6-a0f7-c8db3f9d6a00", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Set default language to 'Français (French)' and default language from browser to 'false'\"", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'Français (French)' and default language from browser to 'false' \"after all\" hook in \"Set default language to 'Français (French)' and default language from browser to 'false'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "66022155-c296-4b91-85f1-3693e2d7c88f", + "parentUUID": "4f8e4a0c-8ff1-4be6-a0f7-c8db3f9d6a00", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'Français (French)' and default language from browser to 'false' should login in BO", + "timedOut": false, + "duration": 1830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a547bed4-4305-4056-aa98-186ac986d33e", + "parentUUID": "4f8e4a0c-8ff1-4be6-a0f7-c8db3f9d6a00", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > localization' page", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'Français (French)' and default language from browser to 'false' should go to 'International > localization' page", + "timedOut": false, + "duration": 4896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_goToLocalizationPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLocalizationPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0395b058-aebb-46a5-b9e3-4816964a8f8b", + "parentUUID": "4f8e4a0c-8ff1-4be6-a0f7-c8db3f9d6a00", + "isHook": false, + "skipped": false + }, + { + "title": "should set 'Default language' and 'Set language from browser'", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'Français (French)' and default language from browser to 'false' should set 'Default language' and 'Set language from browser'", + "timedOut": false, + "duration": 487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_setDEfaultLanguage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDEfaultLanguage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultLanguage(page, test.args.language, test.args.defaultBrowserLanguage)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d5395a8-6bee-4292-bf6e-19264b3a1e9b", + "parentUUID": "4f8e4a0c-8ff1-4be6-a0f7-c8db3f9d6a00", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a547bed4-4305-4056-aa98-186ac986d33e", + "0395b058-aebb-46a5-b9e3-4816964a8f8b", + "1d5395a8-6bee-4292-bf6e-19264b3a1e9b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7213, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d3c46289-0170-4159-bde0-a6c030d5a01b", + "title": "Check if the FO language is 'Français'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Check if the FO language is 'Français'\"", + "fullTitle": "BO - International - Localization : Update default language Check if the FO language is 'Français' \"before all\" hook in \"Check if the FO language is 'Français'\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcacd676-d205-40d5-8288-2f3ac287bd61", + "parentUUID": "d3c46289-0170-4159-bde0-a6c030d5a01b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Check if the FO language is 'Français'\"", + "fullTitle": "BO - International - Localization : Update default language Check if the FO language is 'Français' \"after all\" hook in \"Check if the FO language is 'Français'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "00b57629-5826-4749-ae3e-944e4ca47c35", + "parentUUID": "d3c46289-0170-4159-bde0-a6c030d5a01b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - International - Localization : Update default language Check if the FO language is 'Français' should open the shop page", + "timedOut": false, + "duration": 1201, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_openShop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"openShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "364fc53a-be75-451d-b9a2-dfe0b6519814", + "parentUUID": "d3c46289-0170-4159-bde0-a6c030d5a01b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check the language", + "fullTitle": "BO - International - Localization : Update default language Check if the FO language is 'Français' should go to FO and check the language", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_checkLanguageInFO_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultLanguage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLanguageInFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getDefaultShopLanguage(page)];\n case 2:\n defaultLanguage = _a.sent();\n (0, chai_1.expect)(defaultLanguage).to.equal(test.args.languageToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdfd131b-aa1d-4d4c-b024-63b016cc6eed", + "parentUUID": "d3c46289-0170-4159-bde0-a6c030d5a01b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "364fc53a-be75-451d-b9a2-dfe0b6519814", + "fdfd131b-aa1d-4d4c-b024-63b016cc6eed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1218, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d34ded79-3c91-4431-9289-1646840c4efc", + "title": "Set default language to 'English (English)' and default language from browser to 'false'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Set default language to 'English (English)' and default language from browser to 'false'\"", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'false' \"before all\" hook in \"Set default language to 'English (English)' and default language from browser to 'false'\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31be947c-5aef-4518-861a-67a50a7265b0", + "parentUUID": "d34ded79-3c91-4431-9289-1646840c4efc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Set default language to 'English (English)' and default language from browser to 'false'\"", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'false' \"after all\" hook in \"Set default language to 'English (English)' and default language from browser to 'false'\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e470905b-8439-407b-8d99-db7eb7c0a00e", + "parentUUID": "d34ded79-3c91-4431-9289-1646840c4efc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'false' should login in BO", + "timedOut": false, + "duration": 2378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a159bc62-6f89-42e7-81f6-2776e0350b11", + "parentUUID": "d34ded79-3c91-4431-9289-1646840c4efc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > localization' page", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'false' should go to 'International > localization' page", + "timedOut": false, + "duration": 4920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_goToLocalizationPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLocalizationPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48c44846-6901-4de6-a012-0bc936830fbf", + "parentUUID": "d34ded79-3c91-4431-9289-1646840c4efc", + "isHook": false, + "skipped": false + }, + { + "title": "should set 'Default language' and 'Set language from browser'", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'false' should set 'Default language' and 'Set language from browser'", + "timedOut": false, + "duration": 439, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_setDEfaultLanguage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDEfaultLanguage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultLanguage(page, test.args.language, test.args.defaultBrowserLanguage)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9978d931-5d2a-495b-99db-c5d1bfd68426", + "parentUUID": "d34ded79-3c91-4431-9289-1646840c4efc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a159bc62-6f89-42e7-81f6-2776e0350b11", + "48c44846-6901-4de6-a012-0bc936830fbf", + "9978d931-5d2a-495b-99db-c5d1bfd68426" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7737, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1a7fe462-bfe6-45be-8b37-f7db4acf1aca", + "title": "Check if the FO language is 'English'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Check if the FO language is 'English'\"", + "fullTitle": "BO - International - Localization : Update default language Check if the FO language is 'English' \"before all\" hook in \"Check if the FO language is 'English'\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f994b75-0104-441f-9c95-d4eff3f70a39", + "parentUUID": "1a7fe462-bfe6-45be-8b37-f7db4acf1aca", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Check if the FO language is 'English'\"", + "fullTitle": "BO - International - Localization : Update default language Check if the FO language is 'English' \"after all\" hook in \"Check if the FO language is 'English'\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "44e336ed-cff7-4621-8340-582e58772bfb", + "parentUUID": "1a7fe462-bfe6-45be-8b37-f7db4acf1aca", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - International - Localization : Update default language Check if the FO language is 'English' should open the shop page", + "timedOut": false, + "duration": 577, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_openShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"openShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ceb9797-557b-4eb5-a170-16602cea8a9a", + "parentUUID": "1a7fe462-bfe6-45be-8b37-f7db4acf1aca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check the language", + "fullTitle": "BO - International - Localization : Update default language Check if the FO language is 'English' should go to FO and check the language", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_checkLanguageInFO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultLanguage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLanguageInFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getDefaultShopLanguage(page)];\n case 2:\n defaultLanguage = _a.sent();\n (0, chai_1.expect)(defaultLanguage).to.equal(test.args.languageToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e8f05f3-0a7f-489e-9efc-3090ec431c77", + "parentUUID": "1a7fe462-bfe6-45be-8b37-f7db4acf1aca", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9ceb9797-557b-4eb5-a170-16602cea8a9a", + "0e8f05f3-0a7f-489e-9efc-3090ec431c77" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 597, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7bd6a5ae-cc16-4777-bc45-cfa9180e80cf", + "title": "Set default language to 'English (English)' and default language from browser to 'true'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/02_defaultLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Set default language to 'English (English)' and default language from browser to 'true'\"", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'true' \"before all\" hook in \"Set default language to 'English (English)' and default language from browser to 'true'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3863c98e-c11f-4536-8c5c-cfa519eb30d1", + "parentUUID": "7bd6a5ae-cc16-4777-bc45-cfa9180e80cf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Set default language to 'English (English)' and default language from browser to 'true'\"", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'true' \"after all\" hook in \"Set default language to 'English (English)' and default language from browser to 'true'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "776a51f1-94a8-4055-9eb8-c23ac35789c3", + "parentUUID": "7bd6a5ae-cc16-4777-bc45-cfa9180e80cf", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'true' should login in BO", + "timedOut": false, + "duration": 1707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d23d514-1d4c-4338-b5f5-be6f8284ecc2", + "parentUUID": "7bd6a5ae-cc16-4777-bc45-cfa9180e80cf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > localization' page", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'true' should go to 'International > localization' page", + "timedOut": false, + "duration": 4900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_goToLocalizationPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLocalizationPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7913958a-57f3-4291-adc7-8beee93a6d9e", + "parentUUID": "7bd6a5ae-cc16-4777-bc45-cfa9180e80cf", + "isHook": false, + "skipped": false + }, + { + "title": "should set 'Default language' and 'Set language from browser'", + "fullTitle": "BO - International - Localization : Update default language Set default language to 'English (English)' and default language from browser to 'true' should set 'Default language' and 'Set language from browser'", + "timedOut": false, + "duration": 480, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultLanguage_setDEfaultLanguage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDEfaultLanguage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultLanguage(page, test.args.language, test.args.defaultBrowserLanguage)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b910f21c-4cdb-4209-aad2-db8689d52a05", + "parentUUID": "7bd6a5ae-cc16-4777-bc45-cfa9180e80cf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8d23d514-1d4c-4338-b5f5-be6f8284ecc2", + "7913958a-57f3-4291-adc7-8beee93a6d9e", + "b910f21c-4cdb-4209-aad2-db8689d52a05" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7087, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7e601372-59ab-4a0e-a055-f217f6643806", + "title": "BO - International - Localization : Help Button", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/03_helpButton.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/03_helpButton.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Localization : Help Button\"", + "fullTitle": "BO - International - Localization : Help Button \"before all\" hook in \"BO - International - Localization : Help Button\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fa657ea-9e2a-49b2-bd69-8963cf619544", + "parentUUID": "7e601372-59ab-4a0e-a055-f217f6643806", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Localization : Help Button\"", + "fullTitle": "BO - International - Localization : Help Button \"after all\" hook in \"BO - International - Localization : Help Button\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7bf31f8f-ab81-47f7-b699-8afa5d5a9c28", + "parentUUID": "7e601372-59ab-4a0e-a055-f217f6643806", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Help Button should login in BO", + "timedOut": false, + "duration": 1768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bbb71d1-2e47-4856-b31c-4022e64f7c05", + "parentUUID": "7e601372-59ab-4a0e-a055-f217f6643806", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Localization : Help Button should go to 'International > Localization' page", + "timedOut": false, + "duration": 3898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_helpButton_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db68be16-c142-4714-9d4f-432c52f46f2a", + "parentUUID": "7e601372-59ab-4a0e-a055-f217f6643806", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - International - Localization : Help Button should open the help side bar and check the document language", + "timedOut": false, + "duration": 126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_helpButton_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, localization_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8778755-912f-4010-926f-0d81ef2cee57", + "parentUUID": "7e601372-59ab-4a0e-a055-f217f6643806", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - International - Localization : Help Button should close the help side bar", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_helpButton_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80ee2daa-0695-4b6b-9c0e-13d59a19ef5a", + "parentUUID": "7e601372-59ab-4a0e-a055-f217f6643806", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9bbb71d1-2e47-4856-b31c-4022e64f7c05", + "db68be16-c142-4714-9d4f-432c52f46f2a", + "f8778755-912f-4010-926f-0d81ef2cee57", + "80ee2daa-0695-4b6b-9c0e-13d59a19ef5a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5842, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3de2b6e4-f3b4-4da0-9cd4-b5c8f7c5b058", + "title": "BO - International - Localization : Update default currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "d1a75bf6-fc06-439a-8128-6021e7dd00eb", + "title": "Import a localization pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Import a localization pack\"", + "fullTitle": "BO - International - Localization : Update default currency Import a localization pack \"before all\" hook in \"Import a localization pack\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8e82b17-c619-4d37-aa89-c8c33331a929", + "parentUUID": "d1a75bf6-fc06-439a-8128-6021e7dd00eb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Import a localization pack\"", + "fullTitle": "BO - International - Localization : Update default currency Import a localization pack \"after all\" hook in \"Import a localization pack\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3433edf4-30e3-46bd-a79a-ed380f61b0d4", + "parentUUID": "d1a75bf6-fc06-439a-8128-6021e7dd00eb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Update default currency Import a localization pack should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6b27dd6-8831-4855-9563-be6e931718e2", + "parentUUID": "d1a75bf6-fc06-439a-8128-6021e7dd00eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Localization : Update default currency Import a localization pack should go to 'International > Localization' page", + "timedOut": false, + "duration": 4913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_goToLocalizationPageToImportPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPageToImportPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5840658-3cf1-4c72-873e-75f4e03e95c2", + "parentUUID": "d1a75bf6-fc06-439a-8128-6021e7dd00eb", + "isHook": false, + "skipped": false + }, + { + "title": "should import localization pack", + "fullTitle": "BO - International - Localization : Update default currency Import a localization pack should import localization pack", + "timedOut": false, + "duration": 2591, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_importLocalizationPack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importLocalizationPack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.importLocalizationPack(page, 'Chile', contentToImport)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(localization_1.default.importLocalizationPackSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cf8c459-3aa5-4d96-a886-9a4bdc03e346", + "parentUUID": "d1a75bf6-fc06-439a-8128-6021e7dd00eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e6b27dd6-8831-4855-9563-be6e931718e2", + "f5840658-3cf1-4c72-873e-75f4e03e95c2", + "1cf8c459-3aa5-4d96-a886-9a4bdc03e346" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9230, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "07bd3595-27ad-46d9-8ba1-5d521933d2b7", + "title": "Choose default currency 'Chilean Peso (CLP)' and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Choose default currency 'Chilean Peso (CLP)' and check it in FO\"", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Chilean Peso (CLP)' and check it in FO \"before all\" hook in \"Choose default currency 'Chilean Peso (CLP)' and check it in FO\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffd74983-2ace-4330-b21a-88d43617e594", + "parentUUID": "07bd3595-27ad-46d9-8ba1-5d521933d2b7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Choose default currency 'Chilean Peso (CLP)' and check it in FO\"", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Chilean Peso (CLP)' and check it in FO \"after all\" hook in \"Choose default currency 'Chilean Peso (CLP)' and check it in FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ee49950b-51ba-484c-afd3-efe6db99ab36", + "parentUUID": "07bd3595-27ad-46d9-8ba1-5d521933d2b7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Chilean Peso (CLP)' and check it in FO should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eba5ed02-b474-4934-a10a-d84e7b22eee0", + "parentUUID": "07bd3595-27ad-46d9-8ba1-5d521933d2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Chilean Peso (CLP)' and check it in FO should go to 'International > Localization' page", + "timedOut": false, + "duration": 4910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_goToLocalizationPageToChooseDefaultCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLocalizationPageToChooseDefaultCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2143bb9b-dc8a-4067-8bc3-208d9088ac79", + "parentUUID": "07bd3595-27ad-46d9-8ba1-5d521933d2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose default currency", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Chilean Peso (CLP)' and check it in FO should choose default currency", + "timedOut": false, + "duration": 496, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_setDefaultCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultCurrency(page, test.args.defaultCurrency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(localization_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3ac3a68-7139-408c-a136-27430e9d8226", + "parentUUID": "07bd3595-27ad-46d9-8ba1-5d521933d2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check the existence of currency", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Chilean Peso (CLP)' and check it in FO should go to FO and check the existence of currency", + "timedOut": false, + "duration": 1182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_checkCurrencyInFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCurrencyInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getDefaultCurrency(page)];\n case 3:\n defaultCurrency = _a.sent();\n (0, chai_1.expect)(defaultCurrency).to.equal(test.args.currency);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6527c480-f1ca-45fe-bb55-bb41266c971e", + "parentUUID": "07bd3595-27ad-46d9-8ba1-5d521933d2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Chilean Peso (CLP)' and check it in FO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3aa2a0b-d143-4d16-9194-6d361fef4ef5", + "parentUUID": "07bd3595-27ad-46d9-8ba1-5d521933d2b7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eba5ed02-b474-4934-a10a-d84e7b22eee0", + "2143bb9b-dc8a-4067-8bc3-208d9088ac79", + "d3ac3a68-7139-408c-a136-27430e9d8226", + "6527c480-f1ca-45fe-bb55-bb41266c971e", + "c3aa2a0b-d143-4d16-9194-6d361fef4ef5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8331, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fcd83435-74f0-45d9-b0e1-412bd9b77c45", + "title": "Choose default currency 'Euro (EUR)' and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Choose default currency 'Euro (EUR)' and check it in FO\"", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO \"before all\" hook in \"Choose default currency 'Euro (EUR)' and check it in FO\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3969b0b4-b00f-403c-8df8-d51e606305d6", + "parentUUID": "fcd83435-74f0-45d9-b0e1-412bd9b77c45", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Choose default currency 'Euro (EUR)' and check it in FO\"", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO \"after all\" hook in \"Choose default currency 'Euro (EUR)' and check it in FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "85dd7e5b-a5ce-4f70-802a-ee189f369f11", + "parentUUID": "fcd83435-74f0-45d9-b0e1-412bd9b77c45", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2a57e04-58c3-4ddb-a74a-894f61af7329", + "parentUUID": "fcd83435-74f0-45d9-b0e1-412bd9b77c45", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO should go to 'International > Localization' page", + "timedOut": false, + "duration": 4911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_goToLocalizationPageToChooseDefaultCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLocalizationPageToChooseDefaultCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0460e715-87e0-4d60-9743-fa05dec331a3", + "parentUUID": "fcd83435-74f0-45d9-b0e1-412bd9b77c45", + "isHook": false, + "skipped": false + }, + { + "title": "should choose default currency", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO should choose default currency", + "timedOut": false, + "duration": 482, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_setDefaultCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultCurrency(page, test.args.defaultCurrency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(localization_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "964266ea-bf89-4721-815f-d915685cf767", + "parentUUID": "fcd83435-74f0-45d9-b0e1-412bd9b77c45", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check the existence of currency", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO should go to FO and check the existence of currency", + "timedOut": false, + "duration": 1173, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_checkCurrencyInFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCurrencyInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getDefaultCurrency(page)];\n case 3:\n defaultCurrency = _a.sent();\n (0, chai_1.expect)(defaultCurrency).to.equal(test.args.currency);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fdf1402-77e1-4ca6-9f80-a8d32cfeb838", + "parentUUID": "fcd83435-74f0-45d9-b0e1-412bd9b77c45", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81d899c4-5114-4785-b27d-4337630e48c8", + "parentUUID": "fcd83435-74f0-45d9-b0e1-412bd9b77c45", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b3c306ad-6a8e-4f1f-bafa-52e851097e83", + "title": "Delete currency added by importing localization pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to currencies page", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO Delete currency added by importing localization pack should go to currencies page", + "timedOut": false, + "duration": 757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b715b0b-9e32-43cc-a839-6d45e652e822", + "parentUUID": "b3c306ad-6a8e-4f1f-bafa-52e851097e83", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'CLP'", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO Delete currency added by importing localization pack should filter by iso code of currency 'CLP'", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_filterCurrencies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCurrencies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.chileanPeso.isoCode)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.chileanPeso.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6201a21c-63d9-440b-affe-7645df31b1ca", + "parentUUID": "b3c306ad-6a8e-4f1f-bafa-52e851097e83", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO Delete currency added by importing localization pack should delete currency", + "timedOut": false, + "duration": 1423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5080120-0b45-4184-bd8f-1855a8ef0d9b", + "parentUUID": "b3c306ad-6a8e-4f1f-bafa-52e851097e83", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO Delete currency added by importing localization pack should reset filters", + "timedOut": false, + "duration": 316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_resetCurrencies\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCurrencies', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efcb8670-7862-4e93-8c1d-de715c599ca6", + "parentUUID": "b3c306ad-6a8e-4f1f-bafa-52e851097e83", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b715b0b-9e32-43cc-a839-6d45e652e822", + "6201a21c-63d9-440b-affe-7645df31b1ca", + "c5080120-0b45-4184-bd8f-1855a8ef0d9b", + "efcb8670-7862-4e93-8c1d-de715c599ca6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2825, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "800627eb-1dcf-4322-afb3-460cf15d494e", + "title": "Delete language added by importing localization pack", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/04_defaultCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to languages page", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO Delete language added by importing localization pack should go to languages page", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_goToLanguagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42bb51e7-6f36-4993-814a-a783797514b6", + "parentUUID": "800627eb-1dcf-4322-afb3-460cf15d494e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name 'Español (Spanish)'", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO Delete language added by importing localization pack should filter language by name 'Español (Spanish)'", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_filterLanguages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterLanguages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', languages_2.default.spanish.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(languages_2.default.spanish.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d93f78dd-0231-45fc-8020-483ddd8c3ba8", + "parentUUID": "800627eb-1dcf-4322-afb3-460cf15d494e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO Delete language added by importing localization pack should delete language", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_deleteLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c428290-191c-4fda-be39-1ab71cc394ef", + "parentUUID": "800627eb-1dcf-4322-afb3-460cf15d494e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Localization : Update default currency Choose default currency 'Euro (EUR)' and check it in FO Delete language added by importing localization pack should reset all filters", + "timedOut": false, + "duration": 2301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCurrency_resetLanguages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetLanguages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2eb319c7-73e8-4756-9620-6cf602fee30b", + "parentUUID": "800627eb-1dcf-4322-afb3-460cf15d494e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "42bb51e7-6f36-4993-814a-a783797514b6", + "d93f78dd-0231-45fc-8020-483ddd8c3ba8", + "7c428290-191c-4fda-be39-1ab71cc394ef", + "2eb319c7-73e8-4756-9620-6cf602fee30b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4919, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e2a57e04-58c3-4ddb-a74a-894f61af7329", + "0460e715-87e0-4d60-9743-fa05dec331a3", + "964266ea-bf89-4721-815f-d915685cf767", + "1fdf1402-77e1-4ca6-9f80-a8d32cfeb838", + "81d899c4-5114-4785-b27d-4337630e48c8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8299, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "96efd535-bd2a-4f30-8a6a-05fa1df2f390", + "title": "BO - International - Localization : Update default country", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/05_defaultCountry.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/05_defaultCountry.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Localization : Update default country\"", + "fullTitle": "BO - International - Localization : Update default country \"before all\" hook in \"BO - International - Localization : Update default country\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7786bdb-df8e-49c6-806f-adf6246514ca", + "parentUUID": "96efd535-bd2a-4f30-8a6a-05fa1df2f390", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Localization : Update default country\"", + "fullTitle": "BO - International - Localization : Update default country \"after all\" hook in \"BO - International - Localization : Update default country\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e35d839e-52fb-40ed-ba8d-8ff5fd6dba0c", + "parentUUID": "96efd535-bd2a-4f30-8a6a-05fa1df2f390", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Localization : Update default country should login in BO", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfeb3a17-4e91-45d3-932f-e6139c9d8744", + "parentUUID": "96efd535-bd2a-4f30-8a6a-05fa1df2f390", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "8fd16e88-baa2-4fa4-b14c-5a399c1f325d", + "title": "Set default country to 'Netherlands' and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/05_defaultCountry.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/05_defaultCountry.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'Netherlands' and check result should go to 'International > Localization' page", + "timedOut": false, + "duration": 3928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_goToLocalizationPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLocalizationPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c6773b3-73fc-492d-a52d-374fc9166c4f", + "parentUUID": "8fd16e88-baa2-4fa4-b14c-5a399c1f325d", + "isHook": false, + "skipped": false + }, + { + "title": "should set default country to 'Netherlands'", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'Netherlands' and check result should set default country to 'Netherlands'", + "timedOut": false, + "duration": 428, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_setDefaultCountry0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCountry\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultCountry(page, country)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(localization_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b75bd00b-7165-41a0-86a0-59553b603ede", + "parentUUID": "8fd16e88-baa2-4fa4-b14c-5a399c1f325d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to addresses page", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'Netherlands' and check result should go to addresses page", + "timedOut": false, + "duration": 3628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_goToAddressesPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddressesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubMenu(page, localization_1.default.customersParentLink, localization_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d303f3d0-ab6a-45df-9393-3fcfa941dbcb", + "parentUUID": "8fd16e88-baa2-4fa4-b14c-5a399c1f325d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'Netherlands' and check result should go to add new address page", + "timedOut": false, + "duration": 771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_goToAddNewAddressPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7689174e-2b74-499d-a215-0a186cc29cee", + "parentUUID": "8fd16e88-baa2-4fa4-b14c-5a399c1f325d", + "isHook": false, + "skipped": false + }, + { + "title": "should check default country", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'Netherlands' and check result should check default country", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_checkSelectedCountry0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCountry;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSelectedCountry\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSelectedCountry(page)];\n case 2:\n selectedCountry = _a.sent();\n (0, chai_1.expect)(selectedCountry).to.equal(country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee460fad-5a0a-45bf-9d74-45610e33ff54", + "parentUUID": "8fd16e88-baa2-4fa4-b14c-5a399c1f325d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8c6773b3-73fc-492d-a52d-374fc9166c4f", + "b75bd00b-7165-41a0-86a0-59553b603ede", + "d303f3d0-ab6a-45df-9393-3fcfa941dbcb", + "7689174e-2b74-499d-a215-0a186cc29cee", + "ee460fad-5a0a-45bf-9d74-45610e33ff54" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8767, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0c8e7de3-d96c-4ab8-92cd-03f8a720a3d6", + "title": "Set default country to 'France' and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/01_localization/05_defaultCountry.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/01_localization/05_defaultCountry.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'France' and check result should go to 'International > Localization' page", + "timedOut": false, + "duration": 3668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_goToLocalizationPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLocalizationPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90d53e75-a6a1-47b5-904c-5da4680a7c31", + "parentUUID": "0c8e7de3-d96c-4ab8-92cd-03f8a720a3d6", + "isHook": false, + "skipped": false + }, + { + "title": "should set default country to 'France'", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'France' and check result should set default country to 'France'", + "timedOut": false, + "duration": 379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_setDefaultCountry1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCountry\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.setDefaultCountry(page, country)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(localization_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b12a44b5-177b-4a9b-b629-ac5746a135a2", + "parentUUID": "0c8e7de3-d96c-4ab8-92cd-03f8a720a3d6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to addresses page", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'France' and check result should go to addresses page", + "timedOut": false, + "duration": 3571, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_goToAddressesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddressesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubMenu(page, localization_1.default.customersParentLink, localization_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3b695ec-055d-481a-b227-08d61f6219ed", + "parentUUID": "0c8e7de3-d96c-4ab8-92cd-03f8a720a3d6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'France' and check result should go to add new address page", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_goToAddNewAddressPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewAddressPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4790b8c0-b1e4-46db-9fe7-a8f6e18eb792", + "parentUUID": "0c8e7de3-d96c-4ab8-92cd-03f8a720a3d6", + "isHook": false, + "skipped": false + }, + { + "title": "should check default country", + "fullTitle": "BO - International - Localization : Update default country Set default country to 'France' and check result should check default country", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_localization_defaultCountry_checkSelectedCountry1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedCountry;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSelectedCountry\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSelectedCountry(page)];\n case 2:\n selectedCountry = _a.sent();\n (0, chai_1.expect)(selectedCountry).to.equal(country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44444aca-6812-4d14-8fb4-163de367eb2f", + "parentUUID": "0c8e7de3-d96c-4ab8-92cd-03f8a720a3d6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "90d53e75-a6a1-47b5-904c-5da4680a7c31", + "b12a44b5-177b-4a9b-b629-ac5746a135a2", + "c3b695ec-055d-481a-b227-08d61f6219ed", + "4790b8c0-b1e4-46db-9fe7-a8f6e18eb792", + "44444aca-6812-4d14-8fb4-163de367eb2f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8380, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "dfeb3a17-4e91-45d3-932f-e6139c9d8744" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1717, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8bac429c-3bb0-4eaf-bc75-270ed9bd2377", + "title": "BO - International - Languages : Filter and quick edit languages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/01_filterAndQuickEditLanguages.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/01_filterAndQuickEditLanguages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Languages : Filter and quick edit languages\"", + "fullTitle": "BO - International - Languages : Filter and quick edit languages \"before all\" hook in \"BO - International - Languages : Filter and quick edit languages\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fd7bf29-da11-4537-a90d-c0f8c42362e1", + "parentUUID": "8bac429c-3bb0-4eaf-bc75-270ed9bd2377", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Languages : Filter and quick edit languages\"", + "fullTitle": "BO - International - Languages : Filter and quick edit languages \"after all\" hook in \"BO - International - Languages : Filter and quick edit languages\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "76496158-bbc6-4328-9c5f-1a72c11f50d4", + "parentUUID": "8bac429c-3bb0-4eaf-bc75-270ed9bd2377", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Languages : Filter and quick edit languages should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05712ab1-d9f3-4257-85f1-6117aca714fe", + "parentUUID": "8bac429c-3bb0-4eaf-bc75-270ed9bd2377", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Languages : Filter and quick edit languages should go to 'International > Localization' page", + "timedOut": false, + "duration": 4897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c43052d-16ea-4879-86c2-c60fc59f8952", + "parentUUID": "8bac429c-3bb0-4eaf-bc75-270ed9bd2377", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Languages' page", + "fullTitle": "BO - International - Languages : Filter and quick edit languages should go to 'Languages' page", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_goToLanguagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a232ebd-5bdb-4613-bd5f-224c9b5e4774", + "parentUUID": "8bac429c-3bb0-4eaf-bc75-270ed9bd2377", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of languages in BO", + "fullTitle": "BO - International - Languages : Filter and quick edit languages should reset all filters and get number of languages in BO", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguages = _a.sent();\n (0, chai_1.expect)(numberOfLanguages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "744ff53a-bb40-4b04-8427-80166617b6cc", + "parentUUID": "8bac429c-3bb0-4eaf-bc75-270ed9bd2377", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "9b27825e-a854-483d-9e4a-f200bd08f761", + "title": "Filter languages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/01_filterAndQuickEditLanguages.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/01_filterAndQuickEditLanguages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_lang '1'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should filter by id_lang '1'", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, i, languageStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.most(numberOfLanguages);\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2901e4a9-cc41-49a2-b4e2-133985849159", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should reset all filters", + "timedOut": false, + "duration": 2296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e1bda7b-be59-4a11-a424-d69dcb857960", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'English (English)'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should filter by name 'English (English)'", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, i, languageStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.most(numberOfLanguages);\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7ab1c05-5f28-4a1a-a96d-880c0515808e", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should reset all filters", + "timedOut": false, + "duration": 2303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a199c49-944d-4945-8db8-3fb62c05fff9", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso_code 'en'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should filter by iso_code 'en'", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterIsoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, i, languageStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.most(numberOfLanguages);\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19aa329b-8127-462e-ac77-f9b5f66eb01d", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should reset all filters", + "timedOut": false, + "duration": 2306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterIsoCodeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c36dde95-a549-4c67-9496-5174127a7795", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by language_code 'en-us'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should filter by language_code 'en-us'", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterLanguageCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, i, languageStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.most(numberOfLanguages);\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31fbc7e4-2d6c-472b-9241-f2a8168d8651", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should reset all filters", + "timedOut": false, + "duration": 2300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterLanguageCodeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "835ef22b-1c8f-4935-a529-a5db8447fac4", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by date_format_lite 'm/d/Y'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should filter by date_format_lite 'm/d/Y'", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterDateFormatLite\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, i, languageStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.most(numberOfLanguages);\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "652b0874-83ea-4c0d-a536-8cd0738ec14f", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should reset all filters", + "timedOut": false, + "duration": 2344, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterDateFormatLiteReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2d02408-16b4-450b-a738-e2122a1ae4cd", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by date_format_full 'm/d/Y H:i:s'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should filter by date_format_full 'm/d/Y H:i:s'", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterDateFormatFull\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, i, languageStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.most(numberOfLanguages);\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95f0b965-42ac-4267-a16b-500b1e9d7ac5", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should reset all filters", + "timedOut": false, + "duration": 2295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterDateFormatFullReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9498cddd-8d68-45bd-84c4-e85942068b29", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should filter by active '1'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, i, languageStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.most(numberOfLanguages);\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f498760-d506-4e06-a553-8083a9ae9856", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Filter languages should reset all filters", + "timedOut": false, + "duration": 2304, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterActiveReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb60b1dc-fbe7-401a-9071-53d87cbf28f2", + "parentUUID": "9b27825e-a854-483d-9e4a-f200bd08f761", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2901e4a9-cc41-49a2-b4e2-133985849159", + "0e1bda7b-be59-4a11-a424-d69dcb857960", + "a7ab1c05-5f28-4a1a-a96d-880c0515808e", + "3a199c49-944d-4945-8db8-3fb62c05fff9", + "19aa329b-8127-462e-ac77-f9b5f66eb01d", + "c36dde95-a549-4c67-9496-5174127a7795", + "31fbc7e4-2d6c-472b-9241-f2a8168d8651", + "835ef22b-1c8f-4935-a529-a5db8447fac4", + "652b0874-83ea-4c0d-a536-8cd0738ec14f", + "b2d02408-16b4-450b-a738-e2122a1ae4cd", + "95f0b965-42ac-4267-a16b-500b1e9d7ac5", + "9498cddd-8d68-45bd-84c4-e85942068b29", + "6f498760-d506-4e06-a553-8083a9ae9856", + "bb60b1dc-fbe7-401a-9071-53d87cbf28f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22356, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dbab9a1a-feae-42c7-8fe8-a504a8a873b0", + "title": "Disable default language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/01_filterAndQuickEditLanguages.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/01_filterAndQuickEditLanguages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by iso_code 'en'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Disable default language should filter by iso_code 'en'", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterToDisableDefaultLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDisableDefaultLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'iso_code', languages_2.default.english.isoCode)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(languages_2.default.english.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d85543c-6428-4bb7-95ff-c3eca1acecbc", + "parentUUID": "dbab9a1a-feae-42c7-8fe8-a504a8a873b0", + "isHook": false, + "skipped": false + }, + { + "title": "should disable 'en' language and check error message", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Disable default language should disable 'en' language and check error message", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_disableMainLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableMainLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.setStatus(page, 1, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAlertDangerBlockParagraphContent(page)];\n case 3:\n textError = _a.sent();\n (0, chai_1.expect)(textError).to.equal(languages_1.default.unSuccessfulUpdateDefaultLanguageStatusMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40c64f69-0680-41d8-85ae-7920baf9ebef", + "parentUUID": "dbab9a1a-feae-42c7-8fe8-a504a8a873b0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Disable default language should reset all filters", + "timedOut": false, + "duration": 2303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_disableDefaultLanguageReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableDefaultLanguageReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa9cecc0-4c58-4219-82da-4ea7eaf40bfd", + "parentUUID": "dbab9a1a-feae-42c7-8fe8-a504a8a873b0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1d85543c-6428-4bb7-95ff-c3eca1acecbc", + "40c64f69-0680-41d8-85ae-7920baf9ebef", + "fa9cecc0-4c58-4219-82da-4ea7eaf40bfd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3490, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d86581ff-a01c-4e84-8cc9-d5e083cead5a", + "title": "Quick edit language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/01_filterAndQuickEditLanguages.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/01_filterAndQuickEditLanguages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by iso_code 'fr'", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Quick edit language should filter by iso_code 'fr'", + "timedOut": false, + "duration": 873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n // Filter table\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'iso_code', languages_2.default.french.isoCode)];\n case 2:\n // Filter table\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(languages_2.default.french.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a434ef7-88f5-4fc1-a772-fc889b80bcf8", + "parentUUID": "d86581ff-a01c-4e84-8cc9-d5e083cead5a", + "isHook": false, + "skipped": false + }, + { + "title": "should disable first language", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Quick edit language should disable first language", + "timedOut": false, + "duration": 282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_disableLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, languageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Language\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, languages_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(languages_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, languages_1.default.getStatus(page, 1)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b89d743-618b-4fee-9732-db7d6a4de18d", + "parentUUID": "d86581ff-a01c-4e84-8cc9-d5e083cead5a", + "isHook": false, + "skipped": false + }, + { + "title": "should enable first language", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Quick edit language should enable first language", + "timedOut": false, + "duration": 293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_enableLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, languageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Language\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, languages_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(languages_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, languages_1.default.getStatus(page, 1)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad2a53d5-e2a4-466c-aa29-393213bfc581", + "parentUUID": "d86581ff-a01c-4e84-8cc9-d5e083cead5a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Filter and quick edit languages Quick edit language should reset all filters", + "timedOut": false, + "duration": 2296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_filterAndQuickEditLanguages_quickEditReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickEditReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eabcd3c-9e71-4023-8061-82e00aaab6d9", + "parentUUID": "d86581ff-a01c-4e84-8cc9-d5e083cead5a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4a434ef7-88f5-4fc1-a772-fc889b80bcf8", + "3b89d743-618b-4fee-9732-db7d6a4de18d", + "ad2a53d5-e2a4-466c-aa29-393213bfc581", + "3eabcd3c-9e71-4023-8061-82e00aaab6d9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3744, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "05712ab1-d9f3-4257-85f1-6117aca714fe", + "1c43052d-16ea-4879-86c2-c60fc59f8952", + "1a232ebd-5bdb-4613-bd5f-224c9b5e4774", + "744ff53a-bb40-4b04-8427-80166617b6cc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7422, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6b33bcfa-13c5-4b94-b30c-f21119f28b4d", + "title": "BO - International - Languages : CRUD language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/02_CRUDLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/02_CRUDLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Languages : CRUD language\"", + "fullTitle": "BO - International - Languages : CRUD language \"before all\" hook in \"BO - International - Languages : CRUD language\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(createLanguageData.flag),\n files_1.default.generateImage(createLanguageData.noPicture),\n files_1.default.generateImage(editLanguageData.flag),\n files_1.default.generateImage(editLanguageData.noPicture),\n ])];\n case 3:\n // Create images\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "938b0e3e-4a4e-4a3d-beab-64f436426af7", + "parentUUID": "6b33bcfa-13c5-4b94-b30c-f21119f28b4d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Languages : CRUD language\"", + "fullTitle": "BO - International - Languages : CRUD language \"after all\" hook in \"BO - International - Languages : CRUD language\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(createLanguageData.flag),\n files_1.default.deleteFile(createLanguageData.noPicture),\n files_1.default.deleteFile(editLanguageData.flag),\n files_1.default.deleteFile(editLanguageData.noPicture),\n ])];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c27e7c6a-a8b5-4e60-949d-dc8ea408673b", + "parentUUID": "6b33bcfa-13c5-4b94-b30c-f21119f28b4d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Languages : CRUD language should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ca59d83-1bf0-4253-abca-81787dcdec08", + "parentUUID": "6b33bcfa-13c5-4b94-b30c-f21119f28b4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Languages : CRUD language should go to 'International > Localization' page", + "timedOut": false, + "duration": 4904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b43c02c-3b45-4e5e-a4b6-dbfc395bf9b6", + "parentUUID": "6b33bcfa-13c5-4b94-b30c-f21119f28b4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Languages' page", + "fullTitle": "BO - International - Languages : CRUD language should go to 'Languages' page", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_goToLanguagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce0b9f22-77f6-4fbc-b799-b9e5f4a4926c", + "parentUUID": "6b33bcfa-13c5-4b94-b30c-f21119f28b4d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of languages in BO", + "fullTitle": "BO - International - Languages : CRUD language should reset all filters and get number of languages in BO", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguages = _a.sent();\n (0, chai_1.expect)(numberOfLanguages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae39fc2d-6cfe-4482-a57e-3a69b127e50f", + "parentUUID": "6b33bcfa-13c5-4b94-b30c-f21119f28b4d", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "504fdd56-ef21-49b9-ab58-f5e545fdfd1f", + "title": "Create Language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/02_CRUDLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/02_CRUDLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : CRUD language Create Language should go to add new language page", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_goToAddNewLanguages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewLanguages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d70f8671-ed79-4dfb-9eba-7139619f8894", + "parentUUID": "504fdd56-ef21-49b9-ab58-f5e545fdfd1f", + "isHook": false, + "skipped": false + }, + { + "title": "should create new language", + "fullTitle": "BO - International - Languages : CRUD language Create Language should create new language", + "timedOut": false, + "duration": 2204, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_createNewLanguages\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewLanguages', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, createLanguageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59fe2ed6-c59e-41f9-9f8f-2c312736eba9", + "parentUUID": "504fdd56-ef21-49b9-ab58-f5e545fdfd1f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Languages : CRUD language Create Language should go to FO", + "timedOut": false, + "duration": 1145, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_goToFo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.viewMyShop(page)];\n case 2:\n // View my shop and get the new tab\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64a142f6-c643-4637-bc71-fa2369c98d02", + "parentUUID": "504fdd56-ef21-49b9-ab58-f5e545fdfd1f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'test_language_atrocitas' exist", + "fullTitle": "BO - International - Languages : CRUD language Create Language should check that 'test_language_atrocitas' exist", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_checkCreatedLanguageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isLanguageInFO;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreatedLanguageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.languageExists(page, createLanguageData.isoCode)];\n case 2:\n isLanguageInFO = _a.sent();\n (0, chai_1.expect)(isLanguageInFO, \"\".concat(createLanguageData.name, \" was not found as a language in FO\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "969b7bda-4e23-455c-bc88-03f46ee7a197", + "parentUUID": "504fdd56-ef21-49b9-ab58-f5e545fdfd1f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Languages : CRUD language Create Language should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "827d997d-490a-4d3e-bc52-92a7346b788a", + "parentUUID": "504fdd56-ef21-49b9-ab58-f5e545fdfd1f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d70f8671-ed79-4dfb-9eba-7139619f8894", + "59fe2ed6-c59e-41f9-9f8f-2c312736eba9", + "64a142f6-c643-4637-bc71-fa2369c98d02", + "969b7bda-4e23-455c-bc88-03f46ee7a197", + "827d997d-490a-4d3e-bc52-92a7346b788a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4172, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "33678d5d-4ec7-4686-9c81-b70d77cff538", + "title": "Update Language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/02_CRUDLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/02_CRUDLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter language by name 'test_language_atrocitas'", + "fullTitle": "BO - International - Languages : CRUD language Update Language should filter language by name 'test_language_atrocitas'", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', createLanguageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createLanguageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a142a13-23e7-4b4a-bd87-86885ed0e79b", + "parentUUID": "33678d5d-4ec7-4686-9c81-b70d77cff538", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit language page", + "fullTitle": "BO - International - Languages : CRUD language Update Language should go to edit language page", + "timedOut": false, + "duration": 773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_goToEditLanguagePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditLanguagePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToEditLanguage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageEditTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6495d49a-df6d-4496-b150-ac5603c2d41a", + "parentUUID": "33678d5d-4ec7-4686-9c81-b70d77cff538", + "isHook": false, + "skipped": false + }, + { + "title": "should edit language", + "fullTitle": "BO - International - Languages : CRUD language Update Language should edit language", + "timedOut": false, + "duration": 4383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_editLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, editLanguageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulUpdateMessage);\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3af8f063-f6da-45f5-b1c1-d38c7c206bf7", + "parentUUID": "33678d5d-4ec7-4686-9c81-b70d77cff538", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Languages : CRUD language Update Language should go to FO", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_goToFo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.viewMyShop(page)];\n case 2:\n // View my shop and get the new tab\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb7d4c4c-633c-4335-b1de-6c7d6d526e42", + "parentUUID": "33678d5d-4ec7-4686-9c81-b70d77cff538", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'test_language_consequatur' does not exist", + "fullTitle": "BO - International - Languages : CRUD language Update Language should check that 'test_language_consequatur' does not exist", + "timedOut": false, + "duration": 1038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_checkUpdatedLanguageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isLanguageInFO;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedLanguageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.languageExists(page, editLanguageData.isoCode)];\n case 2:\n isLanguageInFO = _a.sent();\n (0, chai_1.expect)(isLanguageInFO, \"\".concat(editLanguageData.name, \" was found as a language in FO\")).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "955e1d7a-1e81-4372-be99-faaf031c3a4b", + "parentUUID": "33678d5d-4ec7-4686-9c81-b70d77cff538", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Languages : CRUD language Update Language should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7980faec-d6fb-41e2-968b-880d3f3c2ced", + "parentUUID": "33678d5d-4ec7-4686-9c81-b70d77cff538", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3a142a13-23e7-4b4a-bd87-86885ed0e79b", + "6495d49a-df6d-4496-b150-ac5603c2d41a", + "3af8f063-f6da-45f5-b1c1-d38c7c206bf7", + "bb7d4c4c-633c-4335-b1de-6c7d6d526e42", + "955e1d7a-1e81-4372-be99-faaf031c3a4b", + "7980faec-d6fb-41e2-968b-880d3f3c2ced" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8128, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3b2c0cf4-0506-41f6-9fb1-b331a195173c", + "title": "Delete Language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/02_CRUDLanguage.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/02_CRUDLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter language by name 'test_language_consequatur'", + "fullTitle": "BO - International - Languages : CRUD language Delete Language should filter language by name 'test_language_consequatur'", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', editLanguageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editLanguageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2009c843-0f4b-40e3-8568-a73f4eeb4a91", + "parentUUID": "3b2c0cf4-0506-41f6-9fb1-b331a195173c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : CRUD language Delete Language should delete language", + "timedOut": false, + "duration": 951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_deleteLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f831ffdf-85a6-4bfa-ae77-1fc4c7a51074", + "parentUUID": "3b2c0cf4-0506-41f6-9fb1-b331a195173c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : CRUD language Delete Language should reset all filters", + "timedOut": false, + "duration": 2292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_CRUDLanguages_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b039b0be-b68f-45a9-80f4-ed7e23c6cbc7", + "parentUUID": "3b2c0cf4-0506-41f6-9fb1-b331a195173c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2009c843-0f4b-40e3-8568-a73f4eeb4a91", + "f831ffdf-85a6-4bfa-ae77-1fc4c7a51074", + "b039b0be-b68f-45a9-80f4-ed7e23c6cbc7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4171, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0ca59d83-1bf0-4253-abca-81787dcdec08", + "2b43c02c-3b45-4e5e-a4b6-dbfc395bf9b6", + "ce0b9f22-77f6-4fbc-b799-b9e5f4a4926c", + "ae39fc2d-6cfe-4482-a57e-3a69b127e50f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7417, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9af31410-36b4-4413-b07e-2d517840cad5", + "title": "BO - International - Languages : Bulk disable, enable and delete languages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/03_bulkActionsLanguages.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/03_bulkActionsLanguages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Languages : Bulk disable, enable and delete languages\"", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages \"before all\" hook in \"BO - International - Languages : Bulk disable, enable and delete languages\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(firstLanguageData.flag),\n files_1.default.generateImage(firstLanguageData.noPicture),\n files_1.default.generateImage(secondLanguageData.flag),\n files_1.default.generateImage(secondLanguageData.noPicture),\n ])];\n case 3:\n // Create images\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61e95c52-9994-43ef-95eb-64b6b0f31239", + "parentUUID": "9af31410-36b4-4413-b07e-2d517840cad5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Languages : Bulk disable, enable and delete languages\"", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages \"after all\" hook in \"BO - International - Languages : Bulk disable, enable and delete languages\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(firstLanguageData.flag),\n files_1.default.deleteFile(firstLanguageData.noPicture),\n files_1.default.deleteFile(secondLanguageData.flag),\n files_1.default.deleteFile(secondLanguageData.noPicture),\n ])];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d492e262-109c-4d6d-93bb-7477e78aeb24", + "parentUUID": "9af31410-36b4-4413-b07e-2d517840cad5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c0f38e9-6393-43f6-ac0d-1be02e9b33ae", + "parentUUID": "9af31410-36b4-4413-b07e-2d517840cad5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages should go to 'International > Localization' page", + "timedOut": false, + "duration": 4951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e34b8b49-81b5-439e-8957-271b7ed6d061", + "parentUUID": "9af31410-36b4-4413-b07e-2d517840cad5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Languages' page", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages should go to 'Languages' page", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_goToLanguagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5db00f9c-0962-481c-a956-3e0be085b2a3", + "parentUUID": "9af31410-36b4-4413-b07e-2d517840cad5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of languages in BO", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages should reset all filters and get number of languages in BO", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguages = _a.sent();\n (0, chai_1.expect)(numberOfLanguages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89db89a0-ebcc-4251-8c3f-76a87432b3fd", + "parentUUID": "9af31410-36b4-4413-b07e-2d517840cad5", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "99fa9070-152e-4d68-847c-db90b4d0a115", + "title": "Create 2 Languages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/03_bulkActionsLanguages.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/03_bulkActionsLanguages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Create 2 Languages should go to add new language page", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_goToAddNewLanguage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5799c07b-9d2a-44c5-8132-460688f6bf1c", + "parentUUID": "99fa9070-152e-4d68-847c-db90b4d0a115", + "isHook": false, + "skipped": false + }, + { + "title": "should create new language", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Create 2 Languages should create new language", + "timedOut": false, + "duration": 2147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_createLanguage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createLanguage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, languageToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3600d924-38de-4bcf-9343-4d16ca8d16c2", + "parentUUID": "99fa9070-152e-4d68-847c-db90b4d0a115", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Create 2 Languages should go to add new language page", + "timedOut": false, + "duration": 735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_goToAddNewLanguage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "687524cd-2d28-451b-a102-20ae1d7238e9", + "parentUUID": "99fa9070-152e-4d68-847c-db90b4d0a115", + "isHook": false, + "skipped": false + }, + { + "title": "should create new language", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Create 2 Languages should create new language", + "timedOut": false, + "duration": 2145, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_createLanguage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createLanguage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, languageToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3528c2ef-0e38-4cb5-b3de-594bb644c3f4", + "parentUUID": "99fa9070-152e-4d68-847c-db90b4d0a115", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5799c07b-9d2a-44c5-8132-460688f6bf1c", + "3600d924-38de-4bcf-9343-4d16ca8d16c2", + "687524cd-2d28-451b-a102-20ae1d7238e9", + "3528c2ef-0e38-4cb5-b3de-594bb644c3f4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5778, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eeceb02e-e0cd-446f-b929-cd17b93bb937", + "title": "Enable, disable and delete with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/03_bulkActionsLanguages.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/03_bulkActionsLanguages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter language by name 'languageToDelete'", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Enable, disable and delete with bulk actions should filter language by name 'languageToDelete'", + "timedOut": false, + "duration": 887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_filterLanguageToChangeStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterLanguageToChangeStatus', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', 'languageToDelete')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94c84932-0da9-47fb-a429-0a25782c9bee", + "parentUUID": "eeceb02e-e0cd-446f-b929-cd17b93bb937", + "isHook": false, + "skipped": false + }, + { + "title": "should disable with bulk actions", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Enable, disable and delete with bulk actions should disable with bulk actions", + "timedOut": false, + "duration": 431, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_bulkdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var disableTextResult, numberOfLanguagesInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.bulkSetStatus(page, test.args.toEnable)];\n case 2:\n disableTextResult = _a.sent();\n (0, chai_1.expect)(disableTextResult).to.be.equal(languages_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesInGrid).to.be.at.most(numberOfLanguages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.toEnable);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "400fd6fd-6cb4-4591-ab07-59d9c21e6dad", + "parentUUID": "eeceb02e-e0cd-446f-b929-cd17b93bb937", + "isHook": false, + "skipped": false + }, + { + "title": "should enable with bulk actions", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Enable, disable and delete with bulk actions should enable with bulk actions", + "timedOut": false, + "duration": 420, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_bulkenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var disableTextResult, numberOfLanguagesInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.bulkSetStatus(page, test.args.toEnable)];\n case 2:\n disableTextResult = _a.sent();\n (0, chai_1.expect)(disableTextResult).to.be.equal(languages_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesInGrid).to.be.at.most(numberOfLanguages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLanguagesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, languages_1.default.getStatus(page, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.toEnable);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df572111-cc80-468b-8633-ceb849c788df", + "parentUUID": "eeceb02e-e0cd-446f-b929-cd17b93bb937", + "isHook": false, + "skipped": false + }, + { + "title": "should delete with bulk actions", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Enable, disable and delete with bulk actions should delete with bulk actions", + "timedOut": false, + "duration": 1082, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteWithBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(languages_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e387081c-539a-423c-b6bb-b34c22b59753", + "parentUUID": "eeceb02e-e0cd-446f-b929-cd17b93bb937", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Bulk disable, enable and delete languages Enable, disable and delete with bulk actions should reset all filters", + "timedOut": false, + "duration": 2311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_bulkActionsLanguages_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterDelete).to.be.equal(numberOfLanguages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56994359-571b-40b6-81c9-064e87d73505", + "parentUUID": "eeceb02e-e0cd-446f-b929-cd17b93bb937", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "94c84932-0da9-47fb-a429-0a25782c9bee", + "400fd6fd-6cb4-4591-ab07-59d9c21e6dad", + "df572111-cc80-468b-8633-ceb849c788df", + "e387081c-539a-423c-b6bb-b34c22b59753", + "56994359-571b-40b6-81c9-064e87d73505" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5131, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "3c0f38e9-6393-43f6-ac0d-1be02e9b33ae", + "e34b8b49-81b5-439e-8957-271b7ed6d061", + "5db00f9c-0962-481c-a956-3e0be085b2a3", + "89db89a0-ebcc-4251-8c3f-76a87432b3fd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7465, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8064bf67-10bd-4239-b527-a911a8b0999b", + "title": "BO - International - Languages : Sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Languages : Sort and pagination\"", + "fullTitle": "BO - International - Languages : Sort and pagination \"before all\" hook in \"BO - International - Languages : Sort and pagination\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(languages_2.default.croatian.flag),\n files_1.default.generateImage(languages_2.default.croatian.noPicture),\n ])];\n case 3:\n // Create images\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "420c2c8d-76e7-4826-9180-9a0efe8bd46b", + "parentUUID": "8064bf67-10bd-4239-b527-a911a8b0999b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Languages : Sort and pagination\"", + "fullTitle": "BO - International - Languages : Sort and pagination \"after all\" hook in \"BO - International - Languages : Sort and pagination\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(languages_2.default.croatian.flag),\n files_1.default.deleteFile(languages_2.default.croatian.noPicture),\n ])];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2e9c3205-0195-45d4-9022-428759bc940b", + "parentUUID": "8064bf67-10bd-4239-b527-a911a8b0999b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Languages : Sort and pagination should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57c0bf0d-132a-433b-bb62-95a44cbc0468", + "parentUUID": "8064bf67-10bd-4239-b527-a911a8b0999b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Languages : Sort and pagination should go to 'International > Localization' page", + "timedOut": false, + "duration": 4921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab7fbf7f-7fab-411d-8ff0-e587baec8cf5", + "parentUUID": "8064bf67-10bd-4239-b527-a911a8b0999b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Languages' page", + "fullTitle": "BO - International - Languages : Sort and pagination should go to 'Languages' page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToLanguagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fa8fe65-6392-4c4e-ae59-06b3ae2a33bd", + "parentUUID": "8064bf67-10bd-4239-b527-a911a8b0999b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of languages in BO", + "fullTitle": "BO - International - Languages : Sort and pagination should reset all filters and get number of languages in BO", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguages = _a.sent();\n (0, chai_1.expect)(numberOfLanguages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9aa6cf7-2fd8-46b5-b509-3a4e36e263f5", + "parentUUID": "8064bf67-10bd-4239-b527-a911a8b0999b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "title": "Sort Languages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_lang' 'desc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'id_lang' 'desc' And check result", + "timedOut": false, + "duration": 2798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "161f8485-7787-4673-805d-4e4896ce96e5", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'name' 'asc' And check result", + "timedOut": false, + "duration": 2790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45c862d5-b276-4640-9d6e-bee96359a100", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'name' 'desc' And check result", + "timedOut": false, + "duration": 2799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89506a12-33a5-4daa-ba2a-3ef8c802780d", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'iso_code' 'asc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'iso_code' 'asc' And check result", + "timedOut": false, + "duration": 2796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByIsoCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98a1c015-4745-4f13-8135-293869b848ee", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'iso_code' 'desc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'iso_code' 'desc' And check result", + "timedOut": false, + "duration": 2794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByIsoCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0751fe3-64d7-428f-8194-50174dedf397", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'language_code' 'asc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'language_code' 'asc' And check result", + "timedOut": false, + "duration": 2793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByLanguageCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e0c7c3d-830a-4be8-8e58-b73019fe97cc", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'language_code' 'desc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'language_code' 'desc' And check result", + "timedOut": false, + "duration": 2791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByLanguageCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fce958ea-e200-4875-99aa-cd7cfd112550", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_format_lite' 'asc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'date_format_lite' 'asc' And check result", + "timedOut": false, + "duration": 2797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByDateFormatLiteAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56f4428c-4a2f-4804-bbea-ee3a307a4375", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_format_lite' 'desc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'date_format_lite' 'desc' And check result", + "timedOut": false, + "duration": 2869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByDateFormatLiteDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21e9cf42-4c5a-45af-9739-1373674a0701", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_format_full' 'asc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'date_format_full' 'asc' And check result", + "timedOut": false, + "duration": 2809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByDateFormatFullAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea7bbf13-f5b5-4e5b-82a3-bb07c1cbaa2a", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_format_full' 'desc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'date_format_full' 'desc' And check result", + "timedOut": false, + "duration": 2797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByDateFormatFullDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86f8245c-dff9-41b6-ae91-e4b956217b7f", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_lang' 'asc' And check result", + "fullTitle": "BO - International - Languages : Sort and pagination Sort Languages table should sort by 'id_lang' 'asc' And check result", + "timedOut": false, + "duration": 2797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, languages_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b7c7295-fe72-45ee-9957-f1c820d8d5bf", + "parentUUID": "7d54aa81-4274-4060-be17-aa10a6e54dcc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "161f8485-7787-4673-805d-4e4896ce96e5", + "45c862d5-b276-4640-9d6e-bee96359a100", + "89506a12-33a5-4daa-ba2a-3ef8c802780d", + "98a1c015-4745-4f13-8135-293869b848ee", + "c0751fe3-64d7-428f-8194-50174dedf397", + "5e0c7c3d-830a-4be8-8e58-b73019fe97cc", + "fce958ea-e200-4875-99aa-cd7cfd112550", + "56f4428c-4a2f-4804-bbea-ee3a307a4375", + "21e9cf42-4c5a-45af-9739-1373674a0701", + "ea7bbf13-f5b5-4e5b-82a3-bb07c1cbaa2a", + "86f8245c-dff9-41b6-ae91-e4b956217b7f", + "7b7c7295-fe72-45ee-9957-f1c820d8d5bf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 33630, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1130286e-7848-413c-88ec-67babda417d6", + "title": "Pagination of Languages table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "title": "Create 9 Languages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28c79cfc-a405-47e3-9f15-0066b313393b", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°1 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°1 in BO", + "timedOut": false, + "duration": 2159, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a689dbb8-9a4a-4cfc-bc01-187da44bcd8e", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 750, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25497660-4807-473c-9c78-828cd0b9852a", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°2 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°2 in BO", + "timedOut": false, + "duration": 2148, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de466b33-696d-4e73-825a-2fcd6fa16c85", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1abe54bc-7610-43af-8e76-2b868a116fd6", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°3 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°3 in BO", + "timedOut": false, + "duration": 2148, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34fc7571-d548-4296-b130-eb0ea275b141", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34628d03-f53d-4ecd-9ed3-9df8c1f69cd0", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°4 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°4 in BO", + "timedOut": false, + "duration": 2161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f172f5f-b66c-4316-8f59-694304c20d8d", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e02de7a3-034e-4145-809d-a5e975feffa0", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°5 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°5 in BO", + "timedOut": false, + "duration": 2157, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17bdb27d-3d18-4652-b97a-3e7694eaeeb9", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c5bf67f-e380-4e1a-8121-79bf9343cd8e", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°6 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°6 in BO", + "timedOut": false, + "duration": 2183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14c24094-36cd-4642-8b85-07e3bb1d4804", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "168e65a5-e48e-4ba5-8ac4-01ca289f3eb1", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°7 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°7 in BO", + "timedOut": false, + "duration": 2208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "153bd781-e1f6-496d-89da-dff2722a4c6c", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88279e34-3baa-4489-bddd-eeb71ced4e0c", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°8 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°8 in BO", + "timedOut": false, + "duration": 2224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "407b915d-1e27-4fb8-b8cd-de6066dfaf22", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new language page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages should go to add new language page", + "timedOut": false, + "duration": 736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_goToAddNewLanguagePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewLanguagePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.goToAddNewLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8544917-5db1-432b-8ec0-e8ae0812a910", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + }, + { + "title": "Create language n°9 in BO", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Create 9 Languages Create language n°9 in BO", + "timedOut": false, + "duration": 2220, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_createNewLanguage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLanguagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditLanguage(page, test.args.languageData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulCreationMessage);\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterCreation).to.be.equal(numberOfLanguages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0adbbdc3-506d-4429-8143-f53b3d7369bb", + "parentUUID": "52b1a90f-269a-4a3a-b41b-f6a268cf748b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "28c79cfc-a405-47e3-9f15-0066b313393b", + "a689dbb8-9a4a-4cfc-bc01-187da44bcd8e", + "25497660-4807-473c-9c78-828cd0b9852a", + "de466b33-696d-4e73-825a-2fcd6fa16c85", + "1abe54bc-7610-43af-8e76-2b868a116fd6", + "34fc7571-d548-4296-b130-eb0ea275b141", + "34628d03-f53d-4ecd-9ed3-9df8c1f69cd0", + "2f172f5f-b66c-4316-8f59-694304c20d8d", + "e02de7a3-034e-4145-809d-a5e975feffa0", + "17bdb27d-3d18-4652-b97a-3e7694eaeeb9", + "4c5bf67f-e380-4e1a-8121-79bf9343cd8e", + "14c24094-36cd-4642-8b85-07e3bb1d4804", + "168e65a5-e48e-4ba5-8ac4-01ca289f3eb1", + "153bd781-e1f6-496d-89da-dff2722a4c6c", + "88279e34-3baa-4489-bddd-eeb71ced4e0c", + "407b915d-1e27-4fb8-b8cd-de6066dfaf22", + "f8544917-5db1-432b-8ec0-e8ae0812a910", + "0adbbdc3-506d-4429-8143-f53b3d7369bb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 26357, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "abd9d75b-6ec4-4496-9264-822b0bdefa71", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the item number to 10 per page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Pagination next and previous should change the item number to 10 per page", + "timedOut": false, + "duration": 783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9be8fae-a19b-4c4e-91b8-af427db63fbf", + "parentUUID": "abd9d75b-6ec4-4496-9264-822b0bdefa71", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Pagination next and previous should click on next", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad3a126e-7ded-4d36-b69e-f2472b52cd0d", + "parentUUID": "abd9d75b-6ec4-4496-9264-822b0bdefa71", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20e5bf08-a969-41bd-99ff-25593af93762", + "parentUUID": "abd9d75b-6ec4-4496-9264-822b0bdefa71", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 50 per page", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Pagination next and previous should change the item number to 50 per page", + "timedOut": false, + "duration": 790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18d33693-c805-41fa-b0b6-4bb5553fbaad", + "parentUUID": "abd9d75b-6ec4-4496-9264-822b0bdefa71", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c9be8fae-a19b-4c4e-91b8-af427db63fbf", + "ad3a126e-7ded-4d36-b69e-f2472b52cd0d", + "20e5bf08-a969-41bd-99ff-25593af93762", + "18d33693-c805-41fa-b0b6-4bb5553fbaad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3181, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "title": "Delete created Languages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter language by name 'Español (Spanish)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name 'Español (Spanish)'", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ac35fdb-924f-443a-bcdf-9d0475c53957", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "186e71af-df55-4e25-b370-e2cc5c81fac1", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a0be80e-b7f0-4fd0-8510-556d09083d61", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name 'Deutsch (German)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name 'Deutsch (German)'", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c24052b6-84aa-4bc8-925e-40ed3ce7c5e9", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c72e9b07-85bf-4659-be0c-e072bdc6827d", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95ed9b63-08b8-45bf-974a-954b03642c70", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name 'Türkçe (Turkish)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name 'Türkçe (Turkish)'", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7b0d61d-d9a2-45b3-b669-f0cc361cce54", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe0e53e1-7f30-40fe-994d-23cf47071858", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3257ff34-bcdd-4d45-b901-827dbc386f5c", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name 'Español AR (Spanish)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name 'Español AR (Spanish)'", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cda3188e-d8ec-4c74-bd05-73f51b947b43", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed21b5ef-cfa2-4486-879e-d34bd7521281", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bebce943-0ee0-4622-9b37-af3dbbca16f1", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name 'Nederlands (Dutch)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name 'Nederlands (Dutch)'", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ea5a47b-7b3a-48b3-8f8e-ff27cce37f85", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4eb467e-5bf6-4a08-b990-0276433b60cf", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2358, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dc8260c-b774-49a0-8d17-b8447754b288", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name 'Português BR (Portuguese)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name 'Português BR (Portuguese)'", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f58c7989-421b-4c96-8fbb-5152ed5d19f9", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68b6fb19-e5f1-4e46-bf92-c1e4342bb5dc", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70f0dd16-348e-4e8a-a763-213d8865743f", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name 'Hrvatski (Croatian)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name 'Hrvatski (Croatian)'", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99c1f484-ca64-44dd-9273-f82bc9d41b16", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "773c88b4-957e-4e22-98db-fae36613c227", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca43e470-fd9c-47fb-8923-1ee0057a0bdd", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name '中文 (Simplified Chinese)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name '中文 (Simplified Chinese)'", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ea45c6a-c946-4770-8bd6-6795178dc5f0", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 1004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e32aed3e-0045-4f83-bcbf-b10e6c8829d3", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71aac95f-eb3f-479c-89e3-af2ccef52e34", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter language by name '繁體中文 (Traditional Chinese)'", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should filter language by name '繁體中文 (Traditional Chinese)'", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_filterToDelete8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'name', test.args.languageData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.languageData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21738473-302a-4293-98c9-02b4acc34e49", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete language", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should delete language", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_deleteLanguage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteLanguage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.deleteLanguage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(languages_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b6b6f4d-cd67-4a8a-b012-db232f7d0155", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Languages : Sort and pagination Pagination of Languages table Delete created Languages should reset all filters", + "timedOut": false, + "duration": 2405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_sortAndPagination_resetAfterDelete8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterReset).to.be.equal(numberOfLanguages + 8 - index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a28a887-c646-4e34-9759-d046114f8421", + "parentUUID": "ae0101f8-68b0-4990-a683-fd12f83278e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0ac35fdb-924f-443a-bcdf-9d0475c53957", + "186e71af-df55-4e25-b370-e2cc5c81fac1", + "9a0be80e-b7f0-4fd0-8510-556d09083d61", + "c24052b6-84aa-4bc8-925e-40ed3ce7c5e9", + "c72e9b07-85bf-4659-be0c-e072bdc6827d", + "95ed9b63-08b8-45bf-974a-954b03642c70", + "f7b0d61d-d9a2-45b3-b669-f0cc361cce54", + "fe0e53e1-7f30-40fe-994d-23cf47071858", + "3257ff34-bcdd-4d45-b901-827dbc386f5c", + "cda3188e-d8ec-4c74-bd05-73f51b947b43", + "ed21b5ef-cfa2-4486-879e-d34bd7521281", + "bebce943-0ee0-4622-9b37-af3dbbca16f1", + "6ea5a47b-7b3a-48b3-8f8e-ff27cce37f85", + "a4eb467e-5bf6-4a08-b990-0276433b60cf", + "9dc8260c-b774-49a0-8d17-b8447754b288", + "f58c7989-421b-4c96-8fbb-5152ed5d19f9", + "68b6fb19-e5f1-4e46-bf92-c1e4342bb5dc", + "70f0dd16-348e-4e8a-a763-213d8865743f", + "99c1f484-ca64-44dd-9273-f82bc9d41b16", + "773c88b4-957e-4e22-98db-fae36613c227", + "ca43e470-fd9c-47fb-8923-1ee0057a0bdd", + "1ea45c6a-c946-4770-8bd6-6795178dc5f0", + "e32aed3e-0045-4f83-bcbf-b10e6c8829d3", + "71aac95f-eb3f-479c-89e3-af2ccef52e34", + "21738473-302a-4293-98c9-02b4acc34e49", + "4b6b6f4d-cd67-4a8a-b012-db232f7d0155", + "2a28a887-c646-4e34-9759-d046114f8421" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 37828, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "57c0bf0d-132a-433b-bb62-95a44cbc0468", + "ab7fbf7f-7fab-411d-8ff0-e587baec8cf5", + "3fa8fe65-6392-4c4e-ae59-06b3ae2a33bd", + "d9aa6cf7-2fd8-46b5-b509-3a4e36e263f5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7444, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa632114-150f-4d94-abff-2c1d96afb210", + "title": "BO - International - Languages : Help Button", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/02_languages/05_helpButton.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/02_languages/05_helpButton.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Languages : Help Button\"", + "fullTitle": "BO - International - Languages : Help Button \"before all\" hook in \"BO - International - Languages : Help Button\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd041262-15db-4297-b447-e62c956cb6bb", + "parentUUID": "fa632114-150f-4d94-abff-2c1d96afb210", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Languages : Help Button\"", + "fullTitle": "BO - International - Languages : Help Button \"after all\" hook in \"BO - International - Languages : Help Button\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f2a4667f-5bba-43ef-8963-b71db47d1a87", + "parentUUID": "fa632114-150f-4d94-abff-2c1d96afb210", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Languages : Help Button should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dce1de0b-d6e9-4c9a-a00a-432083a90065", + "parentUUID": "fa632114-150f-4d94-abff-2c1d96afb210", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Languages : Help Button should go to 'International > Localization' page", + "timedOut": false, + "duration": 4918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_helpButton_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71c48dc3-017a-4812-bc14-653da509a78f", + "parentUUID": "fa632114-150f-4d94-abff-2c1d96afb210", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Languages' page", + "fullTitle": "BO - International - Languages : Help Button should go to 'Languages' page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_helpButton_goToLanguagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d8c5391-60cf-476a-b838-902941582903", + "parentUUID": "fa632114-150f-4d94-abff-2c1d96afb210", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - International - Languages : Help Button should open the help side bar and check the document language", + "timedOut": false, + "duration": 142, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_helpButton_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, languages_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1160e210-1858-4973-bb08-8cb15f59018c", + "parentUUID": "fa632114-150f-4d94-abff-2c1d96afb210", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - International - Languages : Help Button should close the help side bar", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_languages_helpButton_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94883609-31dc-43b7-a04c-6f350bb8f36b", + "parentUUID": "fa632114-150f-4d94-abff-2c1d96afb210", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dce1de0b-d6e9-4c9a-a00a-432083a90065", + "71c48dc3-017a-4812-bc14-653da509a78f", + "3d8c5391-60cf-476a-b838-902941582903", + "1160e210-1858-4973-bb08-8cb15f59018c", + "94883609-31dc-43b7-a04c-6f350bb8f36b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7648, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9d047954-36d3-46c7-87a0-23267cb231d5", + "title": "BO - International - Currencies : Create official currency and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/01_createOfficialCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/01_createOfficialCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Currencies : Create official currency and check it in FO\"", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO \"before all\" hook in \"BO - International - Currencies : Create official currency and check it in FO\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9afaf691-97ed-4dc5-bbaa-755a3017c0d5", + "parentUUID": "9d047954-36d3-46c7-87a0-23267cb231d5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Currencies : Create official currency and check it in FO\"", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO \"after all\" hook in \"BO - International - Currencies : Create official currency and check it in FO\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "18794711-122c-43fc-913f-10545faddb72", + "parentUUID": "9d047954-36d3-46c7-87a0-23267cb231d5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "152ccc44-5bf4-409d-b4f2-0ea7e32ad718", + "parentUUID": "9d047954-36d3-46c7-87a0-23267cb231d5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO should go to 'International > Localization' page", + "timedOut": false, + "duration": 4902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a6ce3e0-e74c-4af9-850f-037c99c85014", + "parentUUID": "9d047954-36d3-46c7-87a0-23267cb231d5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO should go to 'Currencies' page", + "timedOut": false, + "duration": 785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8111238-83ce-4a67-9b3b-d647b6cfa307", + "parentUUID": "9d047954-36d3-46c7-87a0-23267cb231d5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d309d7b-053a-426c-8bee-a3007bbc43f5", + "parentUUID": "9d047954-36d3-46c7-87a0-23267cb231d5", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "ea6cb9fe-db68-40a6-8b6f-ef299c9e37a4", + "title": "Create official currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/01_createOfficialCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/01_createOfficialCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Create official currency should go to create new currency page", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_goToAddNewCurrencyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15a2caf6-f68a-4993-baa7-f910cc2d2885", + "parentUUID": "ea6cb9fe-db68-40a6-8b6f-ef299c9e37a4", + "isHook": false, + "skipped": false + }, + { + "title": "should create official currency", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Create official currency should create official currency", + "timedOut": false, + "duration": 6315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_createOfficialCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOfficialCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currencies_2.default.mad)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebf3cd1c-15f0-435a-a69e-a6ada53eb2ef", + "parentUUID": "ea6cb9fe-db68-40a6-8b6f-ef299c9e37a4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'MAD' and check values created in table", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Create official currency should filter by iso code of currency 'MAD' and check values created in table", + "timedOut": false, + "duration": 517, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_checkCurrencyValues\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, createdCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCurrencyValues', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.mad.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.at.most(numberOfCurrencies + 1);\n return [4 /*yield*/, currencies_1.default.getCurrencyFromTable(page, 1)];\n case 4:\n createdCurrency = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(createdCurrency.name).to.contains(currencies_2.default.mad.name),\n (0, chai_1.expect)(createdCurrency.symbol).to.contains(currencies_2.default.mad.symbol),\n (0, chai_1.expect)(createdCurrency.isoCode).to.contains(currencies_2.default.mad.isoCode),\n (0, chai_1.expect)(createdCurrency.exchangeRate).to.be.above(0),\n (0, chai_1.expect)(createdCurrency.enabled).to.be.equal(currencies_2.default.mad.enabled),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48f7ad90-357b-47d6-b4e4-bfc85980a66d", + "parentUUID": "ea6cb9fe-db68-40a6-8b6f-ef299c9e37a4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Create official currency should go to FO", + "timedOut": false, + "duration": 1942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_goToFo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.viewMyShop(page)];\n case 2:\n // View my shop and int pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20731be5-ef8e-4497-bf75-6f4b46ae1ce8", + "parentUUID": "ea6cb9fe-db68-40a6-8b6f-ef299c9e37a4", + "isHook": false, + "skipped": false + }, + { + "title": "should change FO currency", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Create official currency should change FO currency", + "timedOut": false, + "duration": 917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_changeFoCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeFoCurrency1', baseContext)];\n case 1:\n _a.sent();\n // Check currency\n return [4 /*yield*/, home_1.homePage.changeCurrency(page, currencies_2.default.mad.isoCode, currencies_2.default.mad.symbol)];\n case 2:\n // Check currency\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getDefaultCurrency(page)];\n case 3:\n shopCurrency = _a.sent();\n (0, chai_1.expect)(shopCurrency).to.contain(currencies_2.default.mad.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "793afbe3-6043-4f26-88e9-30c105e78d23", + "parentUUID": "ea6cb9fe-db68-40a6-8b6f-ef299c9e37a4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Create official currency should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "139d641c-a114-4164-85ba-d447e963ddf6", + "parentUUID": "ea6cb9fe-db68-40a6-8b6f-ef299c9e37a4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Create official currency should reset filters", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_resetFilterAfterCreation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterCreation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f979a2aa-45cc-4961-919f-97987616ed89", + "parentUUID": "ea6cb9fe-db68-40a6-8b6f-ef299c9e37a4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "15a2caf6-f68a-4993-baa7-f910cc2d2885", + "ebf3cd1c-15f0-435a-a69e-a6ada53eb2ef", + "48f7ad90-357b-47d6-b4e4-bfc85980a66d", + "20731be5-ef8e-4497-bf75-6f4b46ae1ce8", + "793afbe3-6043-4f26-88e9-30c105e78d23", + "139d641c-a114-4164-85ba-d447e963ddf6", + "f979a2aa-45cc-4961-919f-97987616ed89" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11397, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0ac07241-2945-41c6-8909-75f0f7a38cd8", + "title": "Disable and check currency in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/01_createOfficialCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/01_createOfficialCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by iso code of currency 'MAD'", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Disable and check currency in FO should filter by iso code of currency 'MAD'", + "timedOut": false, + "duration": 332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_filterToDisableCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDisableCurrency', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.mad.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.at.most(numberOfCurrencies + 1);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.mad.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d88d388-556e-4339-b293-385677a5c5c7", + "parentUUID": "0ac07241-2945-41c6-8909-75f0f7a38cd8", + "isHook": false, + "skipped": false + }, + { + "title": "should disable currency", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Disable and check currency in FO should disable currency", + "timedOut": false, + "duration": 866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_disableCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currencyStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.setStatus(page, 1, false)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, currencies_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(currencies_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 5:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.be.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cb60a12-c8da-4810-abcb-1d33222223e1", + "parentUUID": "0ac07241-2945-41c6-8909-75f0f7a38cd8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Disable and check currency in FO should go to FO", + "timedOut": false, + "duration": 1118, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_goToFo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d778e03c-53ed-454d-a270-6a0ddbc811ee", + "parentUUID": "0ac07241-2945-41c6-8909-75f0f7a38cd8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the currencies list is not visible", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Disable and check currency in FO should check that the currencies list is not visible", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_checkCurrency2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCurrency2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCurrencyDropdownExist(page)];\n case 2:\n found = _a.sent();\n (0, chai_1.expect)(found, 'Currencies list is visible').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04cfc5ee-9d49-4119-80ce-af4f066f9c92", + "parentUUID": "0ac07241-2945-41c6-8909-75f0f7a38cd8", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Disable and check currency in FO should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6097203a-eb49-49c7-8f48-c5e0f8d04b88", + "parentUUID": "0ac07241-2945-41c6-8909-75f0f7a38cd8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Disable and check currency in FO should reset filters", + "timedOut": false, + "duration": 319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_resetFilterAfterDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc9e6bbc-a1e6-460b-b814-893dcd055260", + "parentUUID": "0ac07241-2945-41c6-8909-75f0f7a38cd8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8d88d388-556e-4339-b293-385677a5c5c7", + "2cb60a12-c8da-4810-abcb-1d33222223e1", + "d778e03c-53ed-454d-a270-6a0ddbc811ee", + "04cfc5ee-9d49-4119-80ce-af4f066f9c92", + "6097203a-eb49-49c7-8f48-c5e0f8d04b88", + "dc9e6bbc-a1e6-460b-b814-893dcd055260" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3641, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d4592c53-fef0-4f38-9f2a-363a7b579de5", + "title": "Delete currency created ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/01_createOfficialCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/01_createOfficialCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by iso code of currency 'MAD'", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Delete currency created should filter by iso code of currency 'MAD'", + "timedOut": false, + "duration": 326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.mad.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(numberOfCurrencies);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.mad.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c73eb2e4-ed79-41c6-918d-31dfdf41876b", + "parentUUID": "d4592c53-fef0-4f38-9f2a-363a7b579de5", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Delete currency created should delete currency", + "timedOut": false, + "duration": 1433, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7396dbb-cd4b-4e47-a805-0c730352d2c7", + "parentUUID": "d4592c53-fef0-4f38-9f2a-363a7b579de5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Currencies : Create official currency and check it in FO Delete currency created should reset filters", + "timedOut": false, + "duration": 310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createOfficialCurrency_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8ed52a3-2941-4580-a512-5b2e26bb6f5e", + "parentUUID": "d4592c53-fef0-4f38-9f2a-363a7b579de5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c73eb2e4-ed79-41c6-918d-31dfdf41876b", + "d7396dbb-cd4b-4e47-a805-0c730352d2c7", + "c8ed52a3-2941-4580-a512-5b2e26bb6f5e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2069, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "152ccc44-5bf4-409d-b4f2-0ea7e32ad718", + "2a6ce3e0-e74c-4af9-850f-037c99c85014", + "f8111238-83ce-4a67-9b3b-d647b6cfa307", + "2d309d7b-053a-426c-8bee-a3007bbc43f5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9430, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c251d021-4ccf-41fd-a195-6240136c224a", + "title": "BO - International - Currencies : Create unofficial currency and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/02_createUnofficialCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/02_createUnofficialCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Currencies : Create unofficial currency and check it in FO\"", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO \"before all\" hook in \"BO - International - Currencies : Create unofficial currency and check it in FO\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b98ad6e4-9c84-4b5d-895e-90a3299a7940", + "parentUUID": "c251d021-4ccf-41fd-a195-6240136c224a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Currencies : Create unofficial currency and check it in FO\"", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO \"after all\" hook in \"BO - International - Currencies : Create unofficial currency and check it in FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b27e8c59-62fe-44e8-802c-ed61ece0d6ab", + "parentUUID": "c251d021-4ccf-41fd-a195-6240136c224a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO should login in BO", + "timedOut": false, + "duration": 1956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f49a0d43-48c9-439a-ad97-2654191dfd6e", + "parentUUID": "c251d021-4ccf-41fd-a195-6240136c224a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO should go to 'International > Localization' page", + "timedOut": false, + "duration": 4930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d512e78-ebe0-476e-bed3-f018f1386b7d", + "parentUUID": "c251d021-4ccf-41fd-a195-6240136c224a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO should go to 'Currencies' page", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7a1415f-cf9d-472b-a437-e57de953b4a0", + "parentUUID": "c251d021-4ccf-41fd-a195-6240136c224a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fca44d56-d9b9-431d-86d9-4fca8d6f8e33", + "parentUUID": "c251d021-4ccf-41fd-a195-6240136c224a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6f4e4f4b-d0ba-4604-9959-bb9c339bea2d", + "title": "Create unofficial currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/02_createUnofficialCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/02_createUnofficialCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Create unofficial currency should go to create new currency page", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_goToAddNewCurrencyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cc9a3b4-5d74-4f97-840f-eb17f4713266", + "parentUUID": "6f4e4f4b-d0ba-4604-9959-bb9c339bea2d", + "isHook": false, + "skipped": false + }, + { + "title": "should create unofficial currency", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Create unofficial currency should create unofficial currency", + "timedOut": false, + "duration": 6030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_createUnofficialCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createUnofficialCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createUnOfficialCurrency(page, currencies_2.default.toman)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46b7b9f0-6742-4a50-9601-168ccdefc666", + "parentUUID": "6f4e4f4b-d0ba-4604-9959-bb9c339bea2d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'TMN' and check values created in table", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Create unofficial currency should filter by iso code of currency 'TMN' and check values created in table", + "timedOut": false, + "duration": 519, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_checkCurrencyValues\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, createdCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCurrencyValues', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.toman.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(numberOfCurrencies);\n return [4 /*yield*/, currencies_1.default.getCurrencyFromTable(page, 1)];\n case 4:\n createdCurrency = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(createdCurrency.name).to.contains(currencies_2.default.toman.name),\n (0, chai_1.expect)(createdCurrency.symbol).to.contains(currencies_2.default.toman.symbol),\n (0, chai_1.expect)(createdCurrency.isoCode).to.contains(currencies_2.default.toman.isoCode),\n (0, chai_1.expect)(createdCurrency.exchangeRate).to.be.above(0),\n (0, chai_1.expect)(createdCurrency.enabled).to.be.equal(currencies_2.default.toman.enabled),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85c4f441-da1f-41fe-9438-309ed0bd0b87", + "parentUUID": "6f4e4f4b-d0ba-4604-9959-bb9c339bea2d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Create unofficial currency should go to FO", + "timedOut": false, + "duration": 1925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_goToFo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e5847cc-d9b8-4e16-a49d-aadc1c9b119d", + "parentUUID": "6f4e4f4b-d0ba-4604-9959-bb9c339bea2d", + "isHook": false, + "skipped": false + }, + { + "title": "should change FO currency", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Create unofficial currency should change FO currency", + "timedOut": false, + "duration": 924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_changeFoCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeFoCurrency1', baseContext)];\n case 1:\n _a.sent();\n // Check currency\n return [4 /*yield*/, home_1.homePage.changeCurrency(page, currencies_2.default.toman.isoCode, currencies_2.default.toman.symbol)];\n case 2:\n // Check currency\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getDefaultCurrency(page)];\n case 3:\n shopCurrency = _a.sent();\n (0, chai_1.expect)(shopCurrency).to.contain(currencies_2.default.toman.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7dcc1c3a-ba52-4366-9d9b-b1d395710010", + "parentUUID": "6f4e4f4b-d0ba-4604-9959-bb9c339bea2d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Create unofficial currency should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eeccf37e-0fae-48c9-8c9c-d531037af284", + "parentUUID": "6f4e4f4b-d0ba-4604-9959-bb9c339bea2d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Create unofficial currency should reset filters", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_resetFilterAfterCreation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterCreation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "537c447a-0bd5-45f2-b3a3-f416153f5042", + "parentUUID": "6f4e4f4b-d0ba-4604-9959-bb9c339bea2d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5cc9a3b4-5d74-4f97-840f-eb17f4713266", + "46b7b9f0-6742-4a50-9601-168ccdefc666", + "85c4f441-da1f-41fe-9438-309ed0bd0b87", + "8e5847cc-d9b8-4e16-a49d-aadc1c9b119d", + "7dcc1c3a-ba52-4366-9d9b-b1d395710010", + "eeccf37e-0fae-48c9-8c9c-d531037af284", + "537c447a-0bd5-45f2-b3a3-f416153f5042" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11124, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5763f186-cf02-4df4-b916-eeb10bcc15e2", + "title": "Disable and check currency in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/02_createUnofficialCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/02_createUnofficialCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by iso code of currency 'TMN'", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Disable and check currency in FO should filter by iso code of currency 'TMN'", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_filterToDisableCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDisableCurrency', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.toman.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(numberOfCurrencies);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.toman.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e525c60-a59d-4f9e-aed7-0d65c1370e99", + "parentUUID": "5763f186-cf02-4df4-b916-eeb10bcc15e2", + "isHook": false, + "skipped": false + }, + { + "title": "should disable currency", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Disable and check currency in FO should disable currency", + "timedOut": false, + "duration": 862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_disableCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currencyStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.setStatus(page, 1, false)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, currencies_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(currencies_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 5:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.be.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5927612-b88b-42e7-a1c7-9a9353e8b0ca", + "parentUUID": "5763f186-cf02-4df4-b916-eeb10bcc15e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Disable and check currency in FO should go to FO", + "timedOut": false, + "duration": 1100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_goToFo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04dd152f-cad9-4d7d-8c2b-d23b8b1e730b", + "parentUUID": "5763f186-cf02-4df4-b916-eeb10bcc15e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the currencies list is not visible", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Disable and check currency in FO should check that the currencies list is not visible", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_checkCurrency2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCurrency2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCurrencyDropdownExist(page)];\n case 2:\n found = _a.sent();\n (0, chai_1.expect)(found, 'Currencies list is visible').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d7ee501-440a-4847-b20d-f5e983314115", + "parentUUID": "5763f186-cf02-4df4-b916-eeb10bcc15e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Disable and check currency in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7eb0d13-91ac-4e25-b100-3d317d7528f7", + "parentUUID": "5763f186-cf02-4df4-b916-eeb10bcc15e2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Disable and check currency in FO should reset filters", + "timedOut": false, + "duration": 313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_resetFilterAfterDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c54f049-0035-434d-a29f-06afe15d23c7", + "parentUUID": "5763f186-cf02-4df4-b916-eeb10bcc15e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3e525c60-a59d-4f9e-aed7-0d65c1370e99", + "a5927612-b88b-42e7-a1c7-9a9353e8b0ca", + "04dd152f-cad9-4d7d-8c2b-d23b8b1e730b", + "1d7ee501-440a-4847-b20d-f5e983314115", + "f7eb0d13-91ac-4e25-b100-3d317d7528f7", + "5c54f049-0035-434d-a29f-06afe15d23c7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3614, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "db5dfae8-f3a7-4f02-90fe-f7c379d43b6f", + "title": "Delete currency created ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/02_createUnofficialCurrency.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/02_createUnofficialCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by iso code of currency 'TMN'", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Delete currency created should filter by iso code of currency 'TMN'", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.toman.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(numberOfCurrencies);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.toman.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36b5351a-8218-446c-ad94-f2bda9d94f53", + "parentUUID": "db5dfae8-f3a7-4f02-90fe-f7c379d43b6f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Delete currency created should delete currency", + "timedOut": false, + "duration": 1433, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36cd1b2e-e54b-4a3b-abe6-c31926714d74", + "parentUUID": "db5dfae8-f3a7-4f02-90fe-f7c379d43b6f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Currencies : Create unofficial currency and check it in FO Delete currency created should reset filters", + "timedOut": false, + "duration": 309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_createUnofficialCurrency_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee7c5f74-b5bf-4eeb-83d7-7103d6bb26c0", + "parentUUID": "db5dfae8-f3a7-4f02-90fe-f7c379d43b6f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "36b5351a-8218-446c-ad94-f2bda9d94f53", + "36cd1b2e-e54b-4a3b-abe6-c31926714d74", + "ee7c5f74-b5bf-4eeb-83d7-7103d6bb26c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2062, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f49a0d43-48c9-439a-ad97-2654191dfd6e", + "9d512e78-ebe0-476e-bed3-f018f1386b7d", + "e7a1415f-cf9d-472b-a437-e57de953b4a0", + "fca44d56-d9b9-431d-86d9-4fca8d6f8e33" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9678, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "640d1b74-bd1d-4613-9f35-5c864ed1c58d", + "title": "BO - International - currencies : Help button", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/03_helpButton.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/03_helpButton.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - currencies : Help button\"", + "fullTitle": "BO - International - currencies : Help button \"before all\" hook in \"BO - International - currencies : Help button\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b21b88d3-bc48-4d97-8b65-244563225361", + "parentUUID": "640d1b74-bd1d-4613-9f35-5c864ed1c58d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - currencies : Help button\"", + "fullTitle": "BO - International - currencies : Help button \"after all\" hook in \"BO - International - currencies : Help button\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f64461f7-af4e-4c32-8836-9daf212a5696", + "parentUUID": "640d1b74-bd1d-4613-9f35-5c864ed1c58d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - currencies : Help button should login in BO", + "timedOut": false, + "duration": 1939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e2a6376-d030-49bb-810b-0342a03bab89", + "parentUUID": "640d1b74-bd1d-4613-9f35-5c864ed1c58d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - currencies : Help button should go to 'International > Localization' page", + "timedOut": false, + "duration": 3917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_helpButton_goToLocalisationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalisationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20817769-5afe-4371-9808-0544a2eb266e", + "parentUUID": "640d1b74-bd1d-4613-9f35-5c864ed1c58d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - International - currencies : Help button should go to 'Currencies' page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_helpButton_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c77f8846-9d4f-4b3b-8e2a-96567f5b5ac9", + "parentUUID": "640d1b74-bd1d-4613-9f35-5c864ed1c58d", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - International - currencies : Help button should open the help side bar and check the document language", + "timedOut": false, + "duration": 149, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_helpButton_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, currencies_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05d94cd1-d03f-43de-ab12-1d06c7bf508e", + "parentUUID": "640d1b74-bd1d-4613-9f35-5c864ed1c58d", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - International - currencies : Help button should close the help side bar", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_helpButton_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3ce0fbc-d2b1-43e2-95c6-e120e5f42011", + "parentUUID": "640d1b74-bd1d-4613-9f35-5c864ed1c58d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9e2a6376-d030-49bb-810b-0342a03bab89", + "20817769-5afe-4371-9808-0544a2eb266e", + "c77f8846-9d4f-4b3b-8e2a-96567f5b5ac9", + "05d94cd1-d03f-43de-ab12-1d06c7bf508e", + "b3ce0fbc-d2b1-43e2-95c6-e120e5f42011" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6847, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c40527db-cee5-447c-b093-e7439846957a", + "title": "BO - International - Currencies : Update exchange rate", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/04_updateExchangeRate.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/04_updateExchangeRate.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Currencies : Update exchange rate\"", + "fullTitle": "BO - International - Currencies : Update exchange rate \"before all\" hook in \"BO - International - Currencies : Update exchange rate\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "279ca0b6-83c7-43ee-85b9-9e528e977ea2", + "parentUUID": "c40527db-cee5-447c-b093-e7439846957a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Currencies : Update exchange rate\"", + "fullTitle": "BO - International - Currencies : Update exchange rate \"after all\" hook in \"BO - International - Currencies : Update exchange rate\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6ba3cec5-5c07-4724-8ac1-0152720825e2", + "parentUUID": "c40527db-cee5-447c-b093-e7439846957a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Currencies : Update exchange rate should login in BO", + "timedOut": false, + "duration": 1795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60d943b5-cbd8-4366-887d-e7339db79654", + "parentUUID": "c40527db-cee5-447c-b093-e7439846957a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "ba1ce6b3-07cc-4318-849f-a73ec91e2b3f", + "title": "Create new currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/04_updateExchangeRate.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/04_updateExchangeRate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Currencies : Update exchange rate Create new currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05a21598-aaf9-4e06-b800-708f21282afa", + "parentUUID": "ba1ce6b3-07cc-4318-849f-a73ec91e2b3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - International - Currencies : Update exchange rate Create new currency should go to 'Currencies' page", + "timedOut": false, + "duration": 782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b66cef8-994f-4f43-9d96-7695b9ea9797", + "parentUUID": "ba1ce6b3-07cc-4318-849f-a73ec91e2b3f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Currencies : Update exchange rate Create new currency should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7310928e-2b50-4cbe-b779-12ce7f294f1c", + "parentUUID": "ba1ce6b3-07cc-4318-849f-a73ec91e2b3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Update exchange rate Create new currency should go to create new currency page", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_goToAddNewCurrencyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fb78d9b-b01e-4319-8ab7-bc3d624499d2", + "parentUUID": "ba1ce6b3-07cc-4318-849f-a73ec91e2b3f", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Update exchange rate Create new currency should create currency", + "timedOut": false, + "duration": 6178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_createOfficialCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOfficialCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currencies_2.default.mad)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34265309-6f56-4159-a4e5-8d205d7293b7", + "parentUUID": "ba1ce6b3-07cc-4318-849f-a73ec91e2b3f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "05a21598-aaf9-4e06-b800-708f21282afa", + "1b66cef8-994f-4f43-9d96-7695b9ea9797", + "7310928e-2b50-4cbe-b779-12ce7f294f1c", + "6fb78d9b-b01e-4319-8ab7-bc3d624499d2", + "34265309-6f56-4159-a4e5-8d205d7293b7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14676, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2b9b4f8b-8a58-44cf-b5f3-546d6012106b", + "title": "Update exchange rates", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/04_updateExchangeRate.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/04_updateExchangeRate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by iso code of currency 'MAD'", + "fullTitle": "BO - International - Currencies : Update exchange rate Update exchange rates should filter by iso code of currency 'MAD'", + "timedOut": false, + "duration": 515, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.mad.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(numberOfCurrencies);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.mad.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "999668d0-c873-4331-941f-113d0348b962", + "parentUUID": "2b9b4f8b-8a58-44cf-b5f3-546d6012106b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created currency page", + "fullTitle": "BO - International - Currencies : Update exchange rate Update exchange rates should go to the created currency page", + "timedOut": false, + "duration": 1210, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_goToEditCurrencyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCurrencyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToEditCurrencyPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editCurrencyPage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c02e4561-3010-4b5f-b662-2fcf53a3a360", + "parentUUID": "2b9b4f8b-8a58-44cf-b5f3-546d6012106b", + "isHook": false, + "skipped": false + }, + { + "title": "should update the exchange rate of the created currency", + "fullTitle": "BO - International - Currencies : Update exchange rate Update exchange rates should update the exchange rate of the created currency", + "timedOut": false, + "duration": 5273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_updateExchangeRate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateExchangeRate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.updateExchangeRate(page, newExchangeRate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebc67da7-22b4-4381-8931-1ab69cfca6bd", + "parentUUID": "2b9b4f8b-8a58-44cf-b5f3-546d6012106b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Update exchange rate button", + "fullTitle": "BO - International - Currencies : Update exchange rate Update exchange rates should click on Update exchange rate button", + "timedOut": false, + "duration": 429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_clickUpdateExchangeRates\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickUpdateExchangeRates', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.updateExchangeRate(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e66c0c02-19d9-46d2-8c59-251edbdf1a7a", + "parentUUID": "2b9b4f8b-8a58-44cf-b5f3-546d6012106b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'MAD'", + "fullTitle": "BO - International - Currencies : Update exchange rate Update exchange rates should filter by iso code of currency 'MAD'", + "timedOut": false, + "duration": 425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_filterToCheckValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToCheckValue', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.mad.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.mad.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbdf09c3-690d-47d3-a44b-adcadddd42f1", + "parentUUID": "2b9b4f8b-8a58-44cf-b5f3-546d6012106b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the exchange rate of currency 'MAD' is updated", + "fullTitle": "BO - International - Currencies : Update exchange rate Update exchange rates should check that the exchange rate of currency 'MAD' is updated", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_checkExchangeRates\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkExchangeRates', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'conversion_rate')];\n case 2:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.not.equal(newExchangeRate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cefc5ab-8e33-4ddd-bbf2-69a7af196412", + "parentUUID": "2b9b4f8b-8a58-44cf-b5f3-546d6012106b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "999668d0-c873-4331-941f-113d0348b962", + "c02e4561-3010-4b5f-b662-2fcf53a3a360", + "ebc67da7-22b4-4381-8931-1ab69cfca6bd", + "e66c0c02-19d9-46d2-8c59-251edbdf1a7a", + "cbdf09c3-690d-47d3-a44b-adcadddd42f1", + "1cefc5ab-8e33-4ddd-bbf2-69a7af196412" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7871, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3a6bc7f1-da4c-409c-b915-d3a28d0df6cc", + "title": "Delete currency created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/04_updateExchangeRate.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/04_updateExchangeRate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by iso code of currency 'MAD'", + "fullTitle": "BO - International - Currencies : Update exchange rate Delete currency created should filter by iso code of currency 'MAD'", + "timedOut": false, + "duration": 368, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.mad.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.equal(numberOfCurrencies);\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencies_2.default.mad.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8ced2ee-0a7f-42ce-806f-859af823fdb9", + "parentUUID": "3a6bc7f1-da4c-409c-b915-d3a28d0df6cc", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Update exchange rate Delete currency created should delete currency", + "timedOut": false, + "duration": 1450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f768809-a8b1-4416-9f33-55e55922d299", + "parentUUID": "3a6bc7f1-da4c-409c-b915-d3a28d0df6cc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filters", + "fullTitle": "BO - International - Currencies : Update exchange rate Delete currency created should reset filters", + "timedOut": false, + "duration": 307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_updateExchangeRate_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04f3ca4d-9f80-4579-91be-b175e43bf3b3", + "parentUUID": "3a6bc7f1-da4c-409c-b915-d3a28d0df6cc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d8ced2ee-0a7f-42ce-806f-859af823fdb9", + "6f768809-a8b1-4416-9f33-55e55922d299", + "04f3ca4d-9f80-4579-91be-b175e43bf3b3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2125, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "60d943b5-cbd8-4366-887d-e7339db79654" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1795, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3ff629cd-43c7-4e25-a5e9-81f1dc3eda79", + "title": "BO - International - Currencies : Filter, sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Currencies : Filter, sort and pagination\"", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination \"before all\" hook in \"BO - International - Currencies : Filter, sort and pagination\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c78eb06f-50cd-488b-b5c5-99c6b049bc7b", + "parentUUID": "3ff629cd-43c7-4e25-a5e9-81f1dc3eda79", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Currencies : Filter, sort and pagination\"", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination \"after all\" hook in \"BO - International - Currencies : Filter, sort and pagination\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c2a9d118-39d3-41ce-84fb-d817ab23f84c", + "parentUUID": "3ff629cd-43c7-4e25-a5e9-81f1dc3eda79", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination should login in BO", + "timedOut": false, + "duration": 1915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9346950-b7a1-4015-8096-e54f49521695", + "parentUUID": "3ff629cd-43c7-4e25-a5e9-81f1dc3eda79", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination should go to 'International > Localization' page", + "timedOut": false, + "duration": 4903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78e82135-da9a-40cd-9832-39cc1407635d", + "parentUUID": "3ff629cd-43c7-4e25-a5e9-81f1dc3eda79", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination should go to 'Currencies' page", + "timedOut": false, + "duration": 785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b477937-5ee5-4df8-9728-428234519a94", + "parentUUID": "3ff629cd-43c7-4e25-a5e9-81f1dc3eda79", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrencies = _a.sent();\n (0, chai_1.expect)(numberOfCurrencies).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b05c70f-12c5-45dc-bb3f-965e06ba6826", + "parentUUID": "3ff629cd-43c7-4e25-a5e9-81f1dc3eda79", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b12e63a3-d3e7-4e73-a04d-0d9fa1948d38", + "title": "Create official currency 'Moroccan Dirham'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Moroccan Dirham' should go to create new currency page", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abda01b8-be4a-4a5e-b6b0-92586350553d", + "parentUUID": "b12e63a3-d3e7-4e73-a04d-0d9fa1948d38", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Moroccan Dirham' should create currency", + "timedOut": false, + "duration": 8233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d40dd31d-becd-40ed-86a2-bd33ef509616", + "parentUUID": "b12e63a3-d3e7-4e73-a04d-0d9fa1948d38", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "abda01b8-be4a-4a5e-b6b0-92586350553d", + "d40dd31d-becd-40ed-86a2-bd33ef509616" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9027, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "586be3cc-09e4-4ddb-9bc5-ddf57fa42500", + "title": "Create official currency 'Albanian Lek'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Albanian Lek' should go to create new currency page", + "timedOut": false, + "duration": 896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58915f87-756f-4321-9df5-cbc12c5afc0e", + "parentUUID": "586be3cc-09e4-4ddb-9bc5-ddf57fa42500", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Albanian Lek' should create currency", + "timedOut": false, + "duration": 8299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4f77ce3-64eb-46be-943c-3704ff9a8eba", + "parentUUID": "586be3cc-09e4-4ddb-9bc5-ddf57fa42500", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "58915f87-756f-4321-9df5-cbc12c5afc0e", + "a4f77ce3-64eb-46be-943c-3704ff9a8eba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9195, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "087e864b-f0b3-420c-a176-59ac20695671", + "title": "Create official currency 'Chilean Peso'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Chilean Peso' should go to create new currency page", + "timedOut": false, + "duration": 884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e199f38-2865-44aa-9695-a636fa16dfcb", + "parentUUID": "087e864b-f0b3-420c-a176-59ac20695671", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Chilean Peso' should create currency", + "timedOut": false, + "duration": 8328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fadb12a2-ff61-48bc-b13f-97db75f23761", + "parentUUID": "087e864b-f0b3-420c-a176-59ac20695671", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6e199f38-2865-44aa-9695-a636fa16dfcb", + "fadb12a2-ff61-48bc-b13f-97db75f23761" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9212, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "47a5934a-9970-4556-a499-4c38c5c3ca79", + "title": "Create official currency 'Algerian Dinar'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Algerian Dinar' should go to create new currency page", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "655e2870-606f-4554-8191-d0db05cada57", + "parentUUID": "47a5934a-9970-4556-a499-4c38c5c3ca79", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Algerian Dinar' should create currency", + "timedOut": false, + "duration": 8264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "788552c9-3718-401e-a894-c84591c2cdd1", + "parentUUID": "47a5934a-9970-4556-a499-4c38c5c3ca79", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "655e2870-606f-4554-8191-d0db05cada57", + "788552c9-3718-401e-a894-c84591c2cdd1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9150, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82eabf79-0b04-4344-954e-94eaf9265009", + "title": "Create official currency 'Tunisian Dinar'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Tunisian Dinar' should go to create new currency page", + "timedOut": false, + "duration": 896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ad72c87-3954-4c94-8a25-9ed1ed466cc0", + "parentUUID": "82eabf79-0b04-4344-954e-94eaf9265009", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Tunisian Dinar' should create currency", + "timedOut": false, + "duration": 8392, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4e02a03-eabd-455b-946c-fa6c47585361", + "parentUUID": "82eabf79-0b04-4344-954e-94eaf9265009", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4ad72c87-3954-4c94-8a25-9ed1ed466cc0", + "d4e02a03-eabd-455b-946c-fa6c47585361" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9288, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3d95dbd7-829c-449e-b2bf-540a428b26e0", + "title": "Create official currency 'Turkish Lira'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Turkish Lira' should go to create new currency page", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c364b0f-81f2-426f-b44d-0aa10ddebc97", + "parentUUID": "3d95dbd7-829c-449e-b2bf-540a428b26e0", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Turkish Lira' should create currency", + "timedOut": false, + "duration": 8179, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ecd82a2-072c-4d0c-bfe6-3d9360028549", + "parentUUID": "3d95dbd7-829c-449e-b2bf-540a428b26e0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2c364b0f-81f2-426f-b44d-0aa10ddebc97", + "5ecd82a2-072c-4d0c-bfe6-3d9360028549" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9128, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "967c4f46-a6ca-4f6a-92a3-5537e7609a0c", + "title": "Create official currency 'US Dollar'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'US Dollar' should go to create new currency page", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76bcd20f-7160-4c90-93b2-b109b5e86dc3", + "parentUUID": "967c4f46-a6ca-4f6a-92a3-5537e7609a0c", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'US Dollar' should create currency", + "timedOut": false, + "duration": 9356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "623b0931-62fa-4a0c-927b-f568356d90be", + "parentUUID": "967c4f46-a6ca-4f6a-92a3-5537e7609a0c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76bcd20f-7160-4c90-93b2-b109b5e86dc3", + "623b0931-62fa-4a0c-927b-f568356d90be" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10270, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f69f6b67-aa7e-47a4-8d2c-694551862fd6", + "title": "Create official currency 'United Arab Emirates Dirham'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'United Arab Emirates Dirham' should go to create new currency page", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e42fb3a1-57e5-43a5-94b8-29bc24ba1359", + "parentUUID": "f69f6b67-aa7e-47a4-8d2c-694551862fd6", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'United Arab Emirates Dirham' should create currency", + "timedOut": false, + "duration": 8300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "073d5754-f8ff-4f89-b7e7-40171bef7c4a", + "parentUUID": "f69f6b67-aa7e-47a4-8d2c-694551862fd6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e42fb3a1-57e5-43a5-94b8-29bc24ba1359", + "073d5754-f8ff-4f89-b7e7-40171bef7c4a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9262, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c5701131-4462-4cce-b1d3-4aa0be9959be", + "title": "Create official currency 'Libyan Dinar'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Libyan Dinar' should go to create new currency page", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be88ca1a-b758-4d07-8909-4004e100b11f", + "parentUUID": "c5701131-4462-4cce-b1d3-4aa0be9959be", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Libyan Dinar' should create currency", + "timedOut": false, + "duration": 8295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ba073e8-2b7c-4455-a95e-f0feabfb2bfe", + "parentUUID": "c5701131-4462-4cce-b1d3-4aa0be9959be", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "be88ca1a-b758-4d07-8909-4004e100b11f", + "3ba073e8-2b7c-4455-a95e-f0feabfb2bfe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9217, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3d2b2a00-0a86-4b9e-abba-2dc093160dc3", + "title": "Create official currency 'Lesotho Loti'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create new currency page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Lesotho Loti' should go to create new currency page", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_goToAddNewCurrencyPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCurrencyPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc96811e-f706-4e6b-9fb2-d5089fcbfef4", + "parentUUID": "3d2b2a00-0a86-4b9e-abba-2dc093160dc3", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Create official currency 'Lesotho Loti' should create currency", + "timedOut": false, + "duration": 8253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_createOfficialCurrency9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCurrenciesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOfficialCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currency)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCurrenciesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterCreation).to.be.equal(numberOfCurrencies + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6027c4c-3716-48e5-a3cd-72de295e7bac", + "parentUUID": "3d2b2a00-0a86-4b9e-abba-2dc093160dc3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cc96811e-f706-4e6b-9fb2-d5089fcbfef4", + "e6027c4c-3716-48e5-a3cd-72de295e7bac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9171, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "title": "Filter currencies", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_currency '1'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should filter by id_currency '1'", + "timedOut": false, + "duration": 637, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyStatus, currency, numberOfCurrenciesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 4];\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 3:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.be.equal(test.args.filterValue === '1');\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, test.args.filterBy)];\n case 5:\n currency = _a.sent();\n (0, chai_1.expect)(currency).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6: return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 7:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.most(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7882aa0a-d298-4bde-a04d-76a0568d6418", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should reset filter", + "timedOut": false, + "duration": 923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilter0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "656899c1-2021-4ca2-ace5-f5f71cd52d1c", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Albanian Lek'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should filter by name 'Albanian Lek'", + "timedOut": false, + "duration": 391, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyStatus, currency, numberOfCurrenciesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 4];\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 3:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.be.equal(test.args.filterValue === '1');\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, test.args.filterBy)];\n case 5:\n currency = _a.sent();\n (0, chai_1.expect)(currency).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6: return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 7:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.most(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43c5bb84-878b-4ec6-a3bb-2d82985420f2", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should reset filter", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilter1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e7464cf-6dfd-4318-bc81-b79b8bb9a486", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by symbol 'ALL'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should filter by symbol 'ALL'", + "timedOut": false, + "duration": 348, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterBySymbol\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyStatus, currency, numberOfCurrenciesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 4];\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 3:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.be.equal(test.args.filterValue === '1');\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, test.args.filterBy)];\n case 5:\n currency = _a.sent();\n (0, chai_1.expect)(currency).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6: return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 7:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.most(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "633fb179-78b8-4def-b3a4-4ad1aa461704", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should reset filter", + "timedOut": false, + "duration": 862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84d5b89d-52f6-4e31-b92b-bc237caf7cc6", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso_code 'ALL'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should filter by iso_code 'ALL'", + "timedOut": false, + "duration": 350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterByIsoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyStatus, currency, numberOfCurrenciesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 4];\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 3:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.be.equal(test.args.filterValue === '1');\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, test.args.filterBy)];\n case 5:\n currency = _a.sent();\n (0, chai_1.expect)(currency).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6: return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 7:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.most(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14a42830-3e27-4d94-931d-7c7dde576606", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should reset filter", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilter3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "273c0362-2ba4-4e6e-aa20-19b8ed9aa3dc", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should filter by active '1'", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterByEnabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyStatus, currency, numberOfCurrenciesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter\n _a.sent();\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 4];\n return [4 /*yield*/, currencies_1.default.getStatus(page, 1)];\n case 3:\n currencyStatus = _a.sent();\n (0, chai_1.expect)(currencyStatus).to.be.equal(test.args.filterValue === '1');\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, test.args.filterBy)];\n case 5:\n currency = _a.sent();\n (0, chai_1.expect)(currency).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6: return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 7:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.most(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "328d8164-3dda-46af-aa40-eaae332ce4f1", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Filter currencies should reset filter", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilter4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d095e39-f9ad-4e5b-bada-3aed0ecc424d", + "parentUUID": "e485c579-79ea-42d5-b6db-c7e75b45292b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7882aa0a-d298-4bde-a04d-76a0568d6418", + "656899c1-2021-4ca2-ace5-f5f71cd52d1c", + "43c5bb84-878b-4ec6-a3bb-2d82985420f2", + "5e7464cf-6dfd-4318-bc81-b79b8bb9a486", + "633fb179-78b8-4def-b3a4-4ad1aa461704", + "84d5b89d-52f6-4e31-b92b-bc237caf7cc6", + "14a42830-3e27-4d94-931d-7c7dde576606", + "273c0362-2ba4-4e6e-aa20-19b8ed9aa3dc", + "328d8164-3dda-46af-aa40-eaae332ce4f1", + "1d095e39-f9ad-4e5b-bada-3aed0ecc424d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6475, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b10865db-1991-487f-b05e-9ea87354e5ba", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the item number to 10 per page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Pagination next and previous should change the item number to 10 per page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43ad342b-26d8-49df-84a9-7077657bc737", + "parentUUID": "b10865db-1991-487f-b05e-9ea87354e5ba", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Pagination next and previous should click on next", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed833976-fc39-408d-91f6-73dc1fbcb211", + "parentUUID": "b10865db-1991-487f-b05e-9ea87354e5ba", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Pagination next and previous should click on previous", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5c5eee7-9ce1-4601-b511-77f82a0d61b4", + "parentUUID": "b10865db-1991-487f-b05e-9ea87354e5ba", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 50 per page", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Pagination next and previous should change the item number to 50 per page", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04382123-e712-40c2-a32c-a1dff1699e33", + "parentUUID": "b10865db-1991-487f-b05e-9ea87354e5ba", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "43ad342b-26d8-49df-84a9-7077657bc737", + "ed833976-fc39-408d-91f6-73dc1fbcb211", + "e5c5eee7-9ce1-4601-b511-77f82a0d61b4", + "04382123-e712-40c2-a32c-a1dff1699e33" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3203, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "title": "Sort currencies table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_currency' 'desc' and check result", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Sort currencies table should sort by 'id_currency' 'desc' and check result", + "timedOut": false, + "duration": 3019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea1d62c9-91a7-4caa-988b-5232e17519e2", + "parentUUID": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'iso_code' 'asc' and check result", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Sort currencies table should sort by 'iso_code' 'asc' and check result", + "timedOut": false, + "duration": 3028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_sortByIsoCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d253769-31cf-4659-ba9c-3ee7c327db40", + "parentUUID": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'iso_code' 'desc' and check result", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Sort currencies table should sort by 'iso_code' 'desc' and check result", + "timedOut": false, + "duration": 3043, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_sortByIsoCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3039bee-32a9-4a5e-96fa-ed9e6f44ceec", + "parentUUID": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'conversion_rate' 'asc' and check result", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Sort currencies table should sort by 'conversion_rate' 'asc' and check result", + "timedOut": false, + "duration": 3102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_sortByExchangeRateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4182b2c-4b12-465d-8d8a-f1ec29cb7595", + "parentUUID": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'conversion_rate' 'desc' and check result", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Sort currencies table should sort by 'conversion_rate' 'desc' and check result", + "timedOut": false, + "duration": 3038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_sortByExchangeRateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73a0875b-ed3b-4ab9-abfc-9c3f5c48ab07", + "parentUUID": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'asc' and check result", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Sort currencies table should sort by 'active' 'asc' and check result", + "timedOut": false, + "duration": 3025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_sortByEnabledAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4a37f1c-b1e1-46ce-b12e-e9bdc68ae1bf", + "parentUUID": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'active' 'desc' and check result", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Sort currencies table should sort by 'active' 'desc' and check result", + "timedOut": false, + "duration": 3030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_sortByEnabledDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c8342d6-1edd-4ecb-b873-8d232d7c7305", + "parentUUID": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_currency' 'asc' and check result", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Sort currencies table should sort by 'id_currency' 'asc' and check result", + "timedOut": false, + "duration": 3033, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, currencies_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41702a56-a7fb-4b07-b4f2-c3b372252467", + "parentUUID": "4bc851e2-5e11-406b-ab52-7d1554ddd2d8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ea1d62c9-91a7-4caa-988b-5232e17519e2", + "0d253769-31cf-4659-ba9c-3ee7c327db40", + "d3039bee-32a9-4a5e-96fa-ed9e6f44ceec", + "a4182b2c-4b12-465d-8d8a-f1ec29cb7595", + "73a0875b-ed3b-4ab9-abfc-9c3f5c48ab07", + "d4a37f1c-b1e1-46ce-b12e-e9bdc68ae1bf", + "5c8342d6-1edd-4ecb-b873-8d232d7c7305", + "41702a56-a7fb-4b07-b4f2-c3b372252467" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 24318, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "title": "Delete currencies", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/01_localization/03_currencies/05_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by currency name 'Moroccan Dirham'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'Moroccan Dirham'", + "timedOut": false, + "duration": 430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b003590-b689-4ac7-9236-f3939c83220f", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eff5d1e-ebdb-4746-9d53-c58400ae54c2", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e598db9b-4403-491b-810d-a47763d989a9", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'Albanian Lek'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'Albanian Lek'", + "timedOut": false, + "duration": 363, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "126d6dae-8423-4601-99f3-9c831749bc24", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1434, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb114ef6-2f11-47bb-b84c-829f3c998bff", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "635f7007-5a41-4b0e-b06b-024ecb8649d8", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'Chilean Peso'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'Chilean Peso'", + "timedOut": false, + "duration": 371, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "534b8426-aacd-4cc0-96d9-44369e1db7f7", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bc60d1a-ad68-498f-a368-b171f3d04df5", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6422241-42c6-4b4c-a76b-06a33c6f522c", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'Algerian Dinar'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'Algerian Dinar'", + "timedOut": false, + "duration": 386, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "964c2cf8-590e-4991-abf8-aeeaae0a3731", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1442, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c467057-86e6-4bbc-800d-41817c6ef231", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a44488a1-4d0a-4408-b547-5b49bdfce59e", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'Tunisian Dinar'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'Tunisian Dinar'", + "timedOut": false, + "duration": 370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f258d015-eb76-4319-9588-e4ff4f13a4ed", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fb1ffbe-f7de-475f-9316-a7d62ef7b8e1", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3762dbd-4a7b-49a0-9331-d330ee5249da", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'Turkish Lira'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'Turkish Lira'", + "timedOut": false, + "duration": 381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94d01144-4b7b-445e-914f-e91cc467d1f8", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1428, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ee4d018-349d-494d-8aef-cdf7daa294d8", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccb27577-4b64-4741-a5a3-384124bfb489", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'US Dollar'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'US Dollar'", + "timedOut": false, + "duration": 382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b548479-bf7b-41f6-b349-49d5d8e24989", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1462, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b01966c3-5346-4435-a5b9-668160599048", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c5d77a0-dcd3-4d24-b9b9-cf3cca69419f", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'United Arab Emirates Dirham'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'United Arab Emirates Dirham'", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86780a90-ced2-4c91-a815-dc81a9c33207", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1c3cb02-de53-4377-b49b-7cfa30b894a2", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5d3f75a-e849-47b9-9679-a687bd05f036", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'Libyan Dinar'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'Libyan Dinar'", + "timedOut": false, + "duration": 351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "379470b4-2fa0-4fab-9e38-0959c319a58c", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c55bb468-ddcb-4c0c-88ac-3a0cd98a3ad2", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8076073f-4971-42bd-b89d-c9c98a0ac89f", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by currency name 'Lesotho Loti'", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should filter list by currency name 'Lesotho Loti'", + "timedOut": false, + "duration": 373, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_filterToDelete9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currencyName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'name', currency.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'name')];\n case 3:\n currencyName = _a.sent();\n (0, chai_1.expect)(currencyName).to.contains(currency.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a9ebf61-a27d-49d2-b0a3-57b7fbb9a781", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should delete currency", + "timedOut": false, + "duration": 1457, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_deleteCurrency9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCurrency\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "faa2c801-3623-4b4b-ac02-f288d20ece49", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - International - Currencies : Filter, sort and pagination Delete currencies should reset filter", + "timedOut": false, + "duration": 317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_localization_currencies_filterSortAndPagination_resetFilterAfterDelete9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCurrenciesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterReset).to.be.equal(numberOfCurrencies + 10 - index - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43060d34-67fd-49e2-921a-af0d64a7ba21", + "parentUUID": "d28da3b5-7aa7-4d64-8e80-83c58db606b4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6b003590-b689-4ac7-9236-f3939c83220f", + "3eff5d1e-ebdb-4746-9d53-c58400ae54c2", + "e598db9b-4403-491b-810d-a47763d989a9", + "126d6dae-8423-4601-99f3-9c831749bc24", + "eb114ef6-2f11-47bb-b84c-829f3c998bff", + "635f7007-5a41-4b0e-b06b-024ecb8649d8", + "534b8426-aacd-4cc0-96d9-44369e1db7f7", + "7bc60d1a-ad68-498f-a368-b171f3d04df5", + "d6422241-42c6-4b4c-a76b-06a33c6f522c", + "964c2cf8-590e-4991-abf8-aeeaae0a3731", + "0c467057-86e6-4bbc-800d-41817c6ef231", + "a44488a1-4d0a-4408-b547-5b49bdfce59e", + "f258d015-eb76-4319-9588-e4ff4f13a4ed", + "4fb1ffbe-f7de-475f-9316-a7d62ef7b8e1", + "e3762dbd-4a7b-49a0-9331-d330ee5249da", + "94d01144-4b7b-445e-914f-e91cc467d1f8", + "9ee4d018-349d-494d-8aef-cdf7daa294d8", + "ccb27577-4b64-4741-a5a3-384124bfb489", + "0b548479-bf7b-41f6-b349-49d5d8e24989", + "b01966c3-5346-4435-a5b9-668160599048", + "6c5d77a0-dcd3-4d24-b9b9-cf3cca69419f", + "86780a90-ced2-4c91-a815-dc81a9c33207", + "b1c3cb02-de53-4377-b49b-7cfa30b894a2", + "e5d3f75a-e849-47b9-9679-a687bd05f036", + "379470b4-2fa0-4fab-9e38-0959c319a58c", + "c55bb468-ddcb-4c0c-88ac-3a0cd98a3ad2", + "8076073f-4971-42bd-b89d-c9c98a0ac89f", + "0a9ebf61-a27d-49d2-b0a3-57b7fbb9a781", + "faa2c801-3623-4b4b-ac02-f288d20ece49", + "43060d34-67fd-49e2-921a-af0d64a7ba21" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21371, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e9346950-b7a1-4015-8096-e54f49521695", + "78e82135-da9a-40cd-9832-39cc1407635d", + "3b477937-5ee5-4df8-9728-428234519a94", + "1b05c70f-12c5-45dc-bb3f-965e06ba6826" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9609, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "c48b8002-d1a9-4ff8-a216-311c1ef11221", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 908, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83a73adf-4677-4658-b107-bc8be22c7c8b", + "parentUUID": "c48b8002-d1a9-4ff8-a216-311c1ef11221", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "add90283-571e-44b9-839e-df779e84becb", + "parentUUID": "c48b8002-d1a9-4ff8-a216-311c1ef11221", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de1c534e-5e9e-420a-a5f4-fdda8785f10f", + "parentUUID": "c48b8002-d1a9-4ff8-a216-311c1ef11221", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "cb8af334-5b17-4c3d-8190-3d0edbe53d02", + "title": "BO - International - Zones : Filter and quick edit", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/01_filterAndQuickEditZones.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/01_filterAndQuickEditZones.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Zones : Filter and quick edit\"", + "fullTitle": "BO - International - Zones : Filter and quick edit \"before all\" hook in \"BO - International - Zones : Filter and quick edit\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96647c45-885f-4ca8-acbb-8f3d49407cf0", + "parentUUID": "cb8af334-5b17-4c3d-8190-3d0edbe53d02", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Zones : Filter and quick edit\"", + "fullTitle": "BO - International - Zones : Filter and quick edit \"after all\" hook in \"BO - International - Zones : Filter and quick edit\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "59aa5cf4-902e-4eda-b164-17707cebba7a", + "parentUUID": "cb8af334-5b17-4c3d-8190-3d0edbe53d02", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Zones : Filter and quick edit should login in BO", + "timedOut": false, + "duration": 6540, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ff514df-1b49-4612-a9ff-871d2e069a47", + "parentUUID": "cb8af334-5b17-4c3d-8190-3d0edbe53d02", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Zones : Filter and quick edit should go to 'International > Locations' page", + "timedOut": false, + "duration": 5203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_goToZonesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToZonesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a208ecb4-b223-406a-b9e2-a4eaa80620c3", + "parentUUID": "cb8af334-5b17-4c3d-8190-3d0edbe53d02", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of zones in BO", + "fullTitle": "BO - International - Zones : Filter and quick edit should reset all filters and get number of zones in BO", + "timedOut": false, + "duration": 2030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZones = _a.sent();\n (0, chai_1.expect)(numberOfZones).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "220937c7-bf01-44ba-86e6-7b651ecb0e3f", + "parentUUID": "cb8af334-5b17-4c3d-8190-3d0edbe53d02", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7e6f906a-a20a-4b31-a344-e06c661a5395", + "title": "Filter zones", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/01_filterAndQuickEditZones.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/01_filterAndQuickEditZones.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_zone '1'", + "fullTitle": "BO - International - Zones : Filter and quick edit Filter zones should filter by id_zone '1'", + "timedOut": false, + "duration": 1058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterFilter, row, zoneStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.filterZones(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterFilter).to.be.at.most(numberOfZones);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfZonesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, locations_1.default.getZoneStatus(page, row)];\n case 5:\n zoneStatus = _a.sent();\n (0, chai_1.expect)(zoneStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, locations_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e02142a9-b3b2-44ef-905e-4d244fb63d50", + "parentUUID": "7e6f906a-a20a-4b31-a344-e06c661a5395", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Zones : Filter and quick edit Filter zones should reset all filters", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZonesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterReset).to.equal(numberOfZones);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52df3f00-05b3-4d23-a0a7-a7c72e2f2549", + "parentUUID": "7e6f906a-a20a-4b31-a344-e06c661a5395", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Europe'", + "fullTitle": "BO - International - Zones : Filter and quick edit Filter zones should filter by name 'Europe'", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_filterZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterFilter, row, zoneStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.filterZones(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterFilter).to.be.at.most(numberOfZones);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfZonesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, locations_1.default.getZoneStatus(page, row)];\n case 5:\n zoneStatus = _a.sent();\n (0, chai_1.expect)(zoneStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, locations_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c88ab2df-c0b9-4ee2-8d9c-36dec5289e08", + "parentUUID": "7e6f906a-a20a-4b31-a344-e06c661a5395", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Zones : Filter and quick edit Filter zones should reset all filters", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_filterZoneReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZonesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterReset).to.equal(numberOfZones);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9367d41-5b52-4170-8a92-f257b2a322e2", + "parentUUID": "7e6f906a-a20a-4b31-a344-e06c661a5395", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - International - Zones : Filter and quick edit Filter zones should filter by active '1'", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_filterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterFilter, row, zoneStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.filterZones(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterFilter).to.be.at.most(numberOfZones);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfZonesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, locations_1.default.getZoneStatus(page, row)];\n case 5:\n zoneStatus = _a.sent();\n (0, chai_1.expect)(zoneStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, locations_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5afeaff4-bc25-42de-8bad-1b063c710879", + "parentUUID": "7e6f906a-a20a-4b31-a344-e06c661a5395", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Zones : Filter and quick edit Filter zones should reset all filters", + "timedOut": false, + "duration": 323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_filterStatusReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZonesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterReset).to.equal(numberOfZones);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a46de09a-8744-419a-9480-90a484178397", + "parentUUID": "7e6f906a-a20a-4b31-a344-e06c661a5395", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e02142a9-b3b2-44ef-905e-4d244fb63d50", + "52df3f00-05b3-4d23-a0a7-a7c72e2f2549", + "c88ab2df-c0b9-4ee2-8d9c-36dec5289e08", + "f9367d41-5b52-4170-8a92-f257b2a322e2", + "5afeaff4-bc25-42de-8bad-1b063c710879", + "a46de09a-8744-419a-9480-90a484178397" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3857, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e1aefcba-1e96-4f6f-bc0c-fd736dfe8c64", + "title": "Quick edit zone", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/01_filterAndQuickEditZones.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/01_filterAndQuickEditZones.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'North America'", + "fullTitle": "BO - International - Zones : Filter and quick edit Quick edit zone should filter by name 'North America'", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.filterZones(page, 'input', 'name', zones_1.default.northAmerica.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterFilter).to.be.below(numberOfZones);\n return [4 /*yield*/, locations_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(zones_1.default.northAmerica.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cba987d-ac7e-4963-9ecb-75383fc088fe", + "parentUUID": "e1aefcba-1e96-4f6f-bc0c-fd736dfe8c64", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the first zone", + "fullTitle": "BO - International - Zones : Filter and quick edit Quick edit zone should disable the first zone", + "timedOut": false, + "duration": 277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_disableZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"Zone\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.setZoneStatus(page, 1, status.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getZoneStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(status.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65622274-83ef-4917-b033-037220c03c1a", + "parentUUID": "e1aefcba-1e96-4f6f-bc0c-fd736dfe8c64", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the first zone", + "fullTitle": "BO - International - Zones : Filter and quick edit Quick edit zone should enable the first zone", + "timedOut": false, + "duration": 262, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_enableZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"Zone\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.setZoneStatus(page, 1, status.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getZoneStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(status.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c735ad9-228d-43e1-b52c-ff4a14c718b0", + "parentUUID": "e1aefcba-1e96-4f6f-bc0c-fd736dfe8c64", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Zones : Filter and quick edit Quick edit zone should reset all filters", + "timedOut": false, + "duration": 393, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_filterAndQuickEditZones_resetAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZonesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterReset).to.equal(numberOfZones);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "514cd1e1-a9e4-46ed-888a-b05562f17f55", + "parentUUID": "e1aefcba-1e96-4f6f-bc0c-fd736dfe8c64", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3cba987d-ac7e-4963-9ecb-75383fc088fe", + "65622274-83ef-4917-b033-037220c03c1a", + "7c735ad9-228d-43e1-b52c-ff4a14c718b0", + "514cd1e1-a9e4-46ed-888a-b05562f17f55" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1821, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0ff514df-1b49-4612-a9ff-871d2e069a47", + "a208ecb4-b223-406a-b9e2-a4eaa80620c3", + "220937c7-bf01-44ba-86e6-7b651ecb0e3f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13773, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4e6220eb-aedb-47f8-9884-1ba171538b4a", + "title": "BO - International - Zones : CRUD zone", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/02_CRUDZone.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/02_CRUDZone.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Zones : CRUD zone\"", + "fullTitle": "BO - International - Zones : CRUD zone \"before all\" hook in \"BO - International - Zones : CRUD zone\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7634819-8f99-47ba-af72-c47c954c6253", + "parentUUID": "4e6220eb-aedb-47f8-9884-1ba171538b4a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Zones : CRUD zone\"", + "fullTitle": "BO - International - Zones : CRUD zone \"after all\" hook in \"BO - International - Zones : CRUD zone\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5ef4bff7-dcc6-481b-8276-9f51536c03f4", + "parentUUID": "4e6220eb-aedb-47f8-9884-1ba171538b4a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Zones : CRUD zone should login in BO", + "timedOut": false, + "duration": 1773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d18b7da2-f09b-4bb2-a75e-de82d179dc94", + "parentUUID": "4e6220eb-aedb-47f8-9884-1ba171538b4a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Zones : CRUD zone should go to 'International > Locations' page", + "timedOut": false, + "duration": 4838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4c91c63-cf91-4c4a-84f2-a14e00e91d61", + "parentUUID": "4e6220eb-aedb-47f8-9884-1ba171538b4a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of zones in BO", + "fullTitle": "BO - International - Zones : CRUD zone should reset all filters and get number of zones in BO", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZones = _a.sent();\n (0, chai_1.expect)(numberOfZones).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82c75975-692a-404c-93f0-300fc0a7dc97", + "parentUUID": "4e6220eb-aedb-47f8-9884-1ba171538b4a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "265a8255-efd3-4c0a-829d-31218020513a", + "title": "Create zone", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/02_CRUDZone.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/02_CRUDZone.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : CRUD zone Create zone should go to add new zone page", + "timedOut": false, + "duration": 936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_goToAddNewZonePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewZonePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36c86570-98b8-4966-aa88-a57e54e6f1ac", + "parentUUID": "265a8255-efd3-4c0a-829d-31218020513a", + "isHook": false, + "skipped": false + }, + { + "title": "should create new zone", + "fullTitle": "BO - International - Zones : CRUD zone Create zone should create new zone", + "timedOut": false, + "duration": 930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_createNewZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewZone', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1665d46-07ff-4546-81b8-e1c9ea454e09", + "parentUUID": "265a8255-efd3-4c0a-829d-31218020513a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "36c86570-98b8-4966-aa88-a57e54e6f1ac", + "b1665d46-07ff-4546-81b8-e1c9ea454e09" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1866, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c14713f9-3d4b-40fe-8454-bd8b863b8f50", + "title": "Update zone", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/02_CRUDZone.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/02_CRUDZone.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter zone by name 'test corona'", + "fullTitle": "BO - International - Zones : CRUD zone Update zone should filter zone by name 'test corona'", + "timedOut": false, + "duration": 891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, locations_1.default.filterZones(page, 'input', 'name', createZoneData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, locations_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createZoneData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d22277a3-dc4c-4245-ac20-48ba07984217", + "parentUUID": "c14713f9-3d4b-40fe-8454-bd8b863b8f50", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit zone page", + "fullTitle": "BO - International - Zones : CRUD zone Update zone should go to edit zone page", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_goToEditZonePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditZonePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToEditZonePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23fddc7d-d4a8-48a7-a6ee-e61d5219a167", + "parentUUID": "c14713f9-3d4b-40fe-8454-bd8b863b8f50", + "isHook": false, + "skipped": false + }, + { + "title": "should edit zone", + "fullTitle": "BO - International - Zones : CRUD zone Update zone should edit zone", + "timedOut": false, + "duration": 1278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_ediZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ediZone', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, editZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(locations_1.default.successfulUpdateMessage);\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfZonesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterReset).to.be.equal(numberOfZones + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2788367-b03e-4794-a0d9-2522c8c5c7db", + "parentUUID": "c14713f9-3d4b-40fe-8454-bd8b863b8f50", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d22277a3-dc4c-4245-ac20-48ba07984217", + "23fddc7d-d4a8-48a7-a6ee-e61d5219a167", + "b2788367-b03e-4794-a0d9-2522c8c5c7db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2950, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "45200f50-5699-4a28-9364-6eb8296f28c9", + "title": "Delete zone", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/02_CRUDZone.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/02_CRUDZone.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter zone by name 'test coniuratio'", + "fullTitle": "BO - International - Zones : CRUD zone Delete zone should filter zone by name 'test coniuratio'", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, locations_1.default.filterZones(page, 'input', 'name', editZoneData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, locations_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editZoneData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a85b79ac-bdd7-43eb-8257-2a7312be0b31", + "parentUUID": "45200f50-5699-4a28-9364-6eb8296f28c9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete zone", + "fullTitle": "BO - International - Zones : CRUD zone Delete zone should delete zone", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_deleteZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteZone', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.deleteZone(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(locations_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6f60e5f-b901-4a29-be8a-b7a41286439b", + "parentUUID": "45200f50-5699-4a28-9364-6eb8296f28c9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Zones : CRUD zone Delete zone should reset all filters", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_CRUDZone_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZonesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterReset).to.be.equal(numberOfZones);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7eda5c36-2326-4943-94df-e6340b1015b6", + "parentUUID": "45200f50-5699-4a28-9364-6eb8296f28c9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a85b79ac-bdd7-43eb-8257-2a7312be0b31", + "b6f60e5f-b901-4a29-be8a-b7a41286439b", + "7eda5c36-2326-4943-94df-e6340b1015b6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2103, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "d18b7da2-f09b-4bb2-a75e-de82d179dc94", + "b4c91c63-cf91-4c4a-84f2-a14e00e91d61", + "82c75975-692a-404c-93f0-300fc0a7dc97" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8621, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "db8d28ce-3428-4551-86cd-c2c9903878cc", + "title": "BO - International - Zones : Bulk enable, disable and delete", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/03_bulkActionsZones.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/03_bulkActionsZones.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Zones : Bulk enable, disable and delete\"", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete \"before all\" hook in \"BO - International - Zones : Bulk enable, disable and delete\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac724182-775a-44f3-a46e-49f210acccb5", + "parentUUID": "db8d28ce-3428-4551-86cd-c2c9903878cc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Zones : Bulk enable, disable and delete\"", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete \"after all\" hook in \"BO - International - Zones : Bulk enable, disable and delete\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1b9a34f4-9587-4f7c-adcd-d551954b1a1a", + "parentUUID": "db8d28ce-3428-4551-86cd-c2c9903878cc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete should login in BO", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "869d91c4-b802-4917-8ddc-8dd7512b0705", + "parentUUID": "db8d28ce-3428-4551-86cd-c2c9903878cc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete should go to 'International > Locations' page", + "timedOut": false, + "duration": 4837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "150e95f9-96b8-4980-9336-facf7d46976d", + "parentUUID": "db8d28ce-3428-4551-86cd-c2c9903878cc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of zones in BO", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete should reset all filters and get number of zones in BO", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZones = _a.sent();\n (0, chai_1.expect)(numberOfZones).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "834bb36e-8904-41a3-8921-19e1e1b75ca5", + "parentUUID": "db8d28ce-3428-4551-86cd-c2c9903878cc", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7aaa026f-c9c1-4edf-a9c0-5ffaeb390d9b", + "title": "Create 2 zones in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/03_bulkActionsZones.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/03_bulkActionsZones.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new title page", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Create 2 zones in BO should go to add new title page", + "timedOut": false, + "duration": 763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_goToNewZonePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewZonePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0777055e-0d4a-476c-b585-0d3144ce1dec", + "parentUUID": "7aaa026f-c9c1-4edf-a9c0-5ffaeb390d9b", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Create 2 zones in BO should create zone and check result", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_createZone1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, zoneToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c35befa7-0cc2-44ee-873e-3c35f1173357", + "parentUUID": "7aaa026f-c9c1-4edf-a9c0-5ffaeb390d9b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Create 2 zones in BO should go to add new title page", + "timedOut": false, + "duration": 732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_goToNewZonePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewZonePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee974791-d5d2-4eef-8330-ab7048f8ca99", + "parentUUID": "7aaa026f-c9c1-4edf-a9c0-5ffaeb390d9b", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Create 2 zones in BO should create zone and check result", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_createZone2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, zoneToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a80af7eb-41ef-4feb-9ae7-2ccbc3c65efb", + "parentUUID": "7aaa026f-c9c1-4edf-a9c0-5ffaeb390d9b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0777055e-0d4a-476c-b585-0d3144ce1dec", + "c35befa7-0cc2-44ee-873e-3c35f1173357", + "ee974791-d5d2-4eef-8330-ab7048f8ca99", + "a80af7eb-41ef-4feb-9ae7-2ccbc3c65efb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3325, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "815bbe82-e9b6-41a6-b648-fd589dec4bff", + "title": "Bulk actions zones", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/03_bulkActionsZones.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/03_bulkActionsZones.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Bulk actions zones should filter list by name", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.filterZones(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterFilter).to.be.at.most(numberOfZones);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfZonesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, locations_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "494d78f0-18d4-41d9-b849-3064932a98ea", + "parentUUID": "815bbe82-e9b6-41a6-b648-fd589dec4bff", + "isHook": false, + "skipped": false + }, + { + "title": "should enable zones with bulk actions", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Bulk actions zones should enable zones with bulk actions", + "timedOut": false, + "duration": 429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_enableZones\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesBulkActions, row, rowStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"Zones\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.bulkSetStatus(page, test.wantedStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesBulkActions = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfZonesBulkActions)) return [3 /*break*/, 7];\n return [4 /*yield*/, locations_1.default.getZoneStatus(page, row)];\n case 5:\n rowStatus = _a.sent();\n (0, chai_1.expect)(rowStatus).to.equal(test.wantedStatus);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fae4788e-944f-410c-8b39-3ece83498bdd", + "parentUUID": "815bbe82-e9b6-41a6-b648-fd589dec4bff", + "isHook": false, + "skipped": false + }, + { + "title": "should disable zones with bulk actions", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Bulk actions zones should disable zones with bulk actions", + "timedOut": false, + "duration": 492, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_disableZones\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesBulkActions, row, rowStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"Zones\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.bulkSetStatus(page, test.wantedStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesBulkActions = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfZonesBulkActions)) return [3 /*break*/, 7];\n return [4 /*yield*/, locations_1.default.getZoneStatus(page, row)];\n case 5:\n rowStatus = _a.sent();\n (0, chai_1.expect)(rowStatus).to.equal(test.wantedStatus);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80bc82c7-b202-4186-99d1-1e9c3e145a3d", + "parentUUID": "815bbe82-e9b6-41a6-b648-fd589dec4bff", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete zones", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Bulk actions zones should bulk delete zones", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_bulkDeleteZones\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteZones', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.bulkDeleteZones(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(locations_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "617ee51e-606d-4850-8913-74285160290c", + "parentUUID": "815bbe82-e9b6-41a6-b648-fd589dec4bff", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Zones : Bulk enable, disable and delete Bulk actions zones should reset all filters", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_bulkActionsZones_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZonesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterReset).to.be.equal(numberOfZones);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef459a74-8e8b-45cd-b197-42275c3776b4", + "parentUUID": "815bbe82-e9b6-41a6-b648-fd589dec4bff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "494d78f0-18d4-41d9-b849-3064932a98ea", + "fae4788e-944f-410c-8b39-3ece83498bdd", + "80bc82c7-b202-4186-99d1-1e9c3e145a3d", + "617ee51e-606d-4850-8913-74285160290c", + "ef459a74-8e8b-45cd-b197-42275c3776b4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3100, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "869d91c4-b802-4917-8ddc-8dd7512b0705", + "150e95f9-96b8-4980-9336-facf7d46976d", + "834bb36e-8904-41a3-8921-19e1e1b75ca5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8580, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ff2f459f-9f79-4b51-bd61-211c44e5b113", + "title": "BO - International - Zones : Sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Zones : Sort and pagination\"", + "fullTitle": "BO - International - Zones : Sort and pagination \"before all\" hook in \"BO - International - Zones : Sort and pagination\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fbd561a7-badc-4f2a-aa5d-35235d5cd89e", + "parentUUID": "ff2f459f-9f79-4b51-bd61-211c44e5b113", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Zones : Sort and pagination\"", + "fullTitle": "BO - International - Zones : Sort and pagination \"after all\" hook in \"BO - International - Zones : Sort and pagination\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0473976e-4ce1-4dae-b223-cee41a8ba8c7", + "parentUUID": "ff2f459f-9f79-4b51-bd61-211c44e5b113", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Zones : Sort and pagination should login in BO", + "timedOut": false, + "duration": 1730, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23db2ed7-3dc7-4089-be34-cbd71d4541c2", + "parentUUID": "ff2f459f-9f79-4b51-bd61-211c44e5b113", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Zones : Sort and pagination should go to 'International > Locations' page", + "timedOut": false, + "duration": 3831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a692c93-f71b-4801-a5a2-a9fc92a7e510", + "parentUUID": "ff2f459f-9f79-4b51-bd61-211c44e5b113", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of zones in BO", + "fullTitle": "BO - International - Zones : Sort and pagination should reset all filters and get number of zones in BO", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZones = _a.sent();\n (0, chai_1.expect)(numberOfZones).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82cc0504-be0a-4e2d-b610-fa354423005f", + "parentUUID": "ff2f459f-9f79-4b51-bd61-211c44e5b113", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "f1d3c0f3-ff09-4852-b15f-a244c641aeea", + "title": "Sort zones table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_zone' 'desc' And check result", + "fullTitle": "BO - International - Zones : Sort and pagination Sort zones table should sort by 'id_zone' 'desc' And check result", + "timedOut": false, + "duration": 2922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, locations_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac9699fe-6a24-4eca-836e-4599c07a9ef5", + "parentUUID": "f1d3c0f3-ff09-4852-b15f-a244c641aeea", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' And check result", + "fullTitle": "BO - International - Zones : Sort and pagination Sort zones table should sort by 'name' 'asc' And check result", + "timedOut": false, + "duration": 2884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, locations_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26b1763f-6a1d-4ba5-b48f-f2fce1d9efff", + "parentUUID": "f1d3c0f3-ff09-4852-b15f-a244c641aeea", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' And check result", + "fullTitle": "BO - International - Zones : Sort and pagination Sort zones table should sort by 'name' 'desc' And check result", + "timedOut": false, + "duration": 2883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, locations_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83d34f54-c1d9-4234-959e-bc2245050868", + "parentUUID": "f1d3c0f3-ff09-4852-b15f-a244c641aeea", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_zone' 'asc' And check result", + "fullTitle": "BO - International - Zones : Sort and pagination Sort zones table should sort by 'id_zone' 'asc' And check result", + "timedOut": false, + "duration": 2962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, locations_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b431d80-d28d-43ed-9167-ac70066a4736", + "parentUUID": "f1d3c0f3-ff09-4852-b15f-a244c641aeea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ac9699fe-6a24-4eca-836e-4599c07a9ef5", + "26b1763f-6a1d-4ba5-b48f-f2fce1d9efff", + "83d34f54-c1d9-4234-959e-bc2245050868", + "5b431d80-d28d-43ed-9167-ac70066a4736" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11651, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c4a677ea-a60e-46e6-b8dd-24fc392a7991", + "title": "Create zone n°1 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°1 in BO should go to add new zone page", + "timedOut": false, + "duration": 752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d8927e1-4258-4b1c-9be6-23bfff0b22ff", + "parentUUID": "c4a677ea-a60e-46e6-b8dd-24fc392a7991", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°1 in BO should create zone and check result", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33441fc9-f711-443e-8f75-8b5063493fc8", + "parentUUID": "c4a677ea-a60e-46e6-b8dd-24fc392a7991", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3d8927e1-4258-4b1c-9be6-23bfff0b22ff", + "33441fc9-f711-443e-8f75-8b5063493fc8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1665, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "964a748a-309a-40ef-9f34-52f96bb92e54", + "title": "Create zone n°2 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°2 in BO should go to add new zone page", + "timedOut": false, + "duration": 729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "936b7712-32a2-4e78-9901-4ab7ec77c255", + "parentUUID": "964a748a-309a-40ef-9f34-52f96bb92e54", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°2 in BO should create zone and check result", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b46479db-6ed6-478f-b2d9-7400ada23fb0", + "parentUUID": "964a748a-309a-40ef-9f34-52f96bb92e54", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "936b7712-32a2-4e78-9901-4ab7ec77c255", + "b46479db-6ed6-478f-b2d9-7400ada23fb0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1643, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f03d97cc-f1ff-4288-a09e-1651878b37cd", + "title": "Create zone n°3 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°3 in BO should go to add new zone page", + "timedOut": false, + "duration": 725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "817d4f10-4b7e-4ebc-8708-48941ea9fc88", + "parentUUID": "f03d97cc-f1ff-4288-a09e-1651878b37cd", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°3 in BO should create zone and check result", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe01e1aa-9086-481e-bd93-0a8a46620435", + "parentUUID": "f03d97cc-f1ff-4288-a09e-1651878b37cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "817d4f10-4b7e-4ebc-8708-48941ea9fc88", + "fe01e1aa-9086-481e-bd93-0a8a46620435" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1656, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "637045e4-56e0-4ad9-a09a-c4feb8234a40", + "title": "Create zone n°4 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°4 in BO should go to add new zone page", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa6ba1df-df07-4fb8-9173-b011b3f0ba77", + "parentUUID": "637045e4-56e0-4ad9-a09a-c4feb8234a40", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°4 in BO should create zone and check result", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cb236e0-1b5f-401a-8207-3286f9c527d2", + "parentUUID": "637045e4-56e0-4ad9-a09a-c4feb8234a40", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aa6ba1df-df07-4fb8-9173-b011b3f0ba77", + "0cb236e0-1b5f-401a-8207-3286f9c527d2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1649, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1cdbd00e-cb8b-4ccd-b539-37d29a095a31", + "title": "Create zone n°5 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°5 in BO should go to add new zone page", + "timedOut": false, + "duration": 739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5be29786-4042-4855-b855-8f72f9943117", + "parentUUID": "1cdbd00e-cb8b-4ccd-b539-37d29a095a31", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°5 in BO should create zone and check result", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02dbbceb-c3b8-4981-8264-546953f6728f", + "parentUUID": "1cdbd00e-cb8b-4ccd-b539-37d29a095a31", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5be29786-4042-4855-b855-8f72f9943117", + "02dbbceb-c3b8-4981-8264-546953f6728f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1659, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "de89c80c-0e74-49ca-89c1-e1cd43930a31", + "title": "Create zone n°6 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°6 in BO should go to add new zone page", + "timedOut": false, + "duration": 745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a451b39b-221c-46c2-93d1-ca4bfa04469b", + "parentUUID": "de89c80c-0e74-49ca-89c1-e1cd43930a31", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°6 in BO should create zone and check result", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7c67061-10b1-4253-a973-6efaa4365775", + "parentUUID": "de89c80c-0e74-49ca-89c1-e1cd43930a31", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a451b39b-221c-46c2-93d1-ca4bfa04469b", + "e7c67061-10b1-4253-a973-6efaa4365775" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1694, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9a15205e-946f-4245-abd5-b8502707e68e", + "title": "Create zone n°7 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°7 in BO should go to add new zone page", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea219eeb-fcf3-4591-98d7-d6351a78124c", + "parentUUID": "9a15205e-946f-4245-abd5-b8502707e68e", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°7 in BO should create zone and check result", + "timedOut": false, + "duration": 974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a570b85e-cda6-4b3f-8725-84de24b8a178", + "parentUUID": "9a15205e-946f-4245-abd5-b8502707e68e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ea219eeb-fcf3-4591-98d7-d6351a78124c", + "a570b85e-cda6-4b3f-8725-84de24b8a178" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1795, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "08080e09-cff6-4e4f-b0b1-5f328679a5d7", + "title": "Create zone n°8 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°8 in BO should go to add new zone page", + "timedOut": false, + "duration": 734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c4af6ee-0392-42ef-87da-fe421e730e9d", + "parentUUID": "08080e09-cff6-4e4f-b0b1-5f328679a5d7", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°8 in BO should create zone and check result", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d6bab9c-4d91-4e85-b5d5-890428bd0099", + "parentUUID": "08080e09-cff6-4e4f-b0b1-5f328679a5d7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3c4af6ee-0392-42ef-87da-fe421e730e9d", + "7d6bab9c-4d91-4e85-b5d5-890428bd0099" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1678, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d86f9f7d-b4dc-408d-bff8-87277fe8f802", + "title": "Create zone n°9 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°9 in BO should go to add new zone page", + "timedOut": false, + "duration": 733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fd4521b-d677-4f2a-b380-33395737b7f5", + "parentUUID": "d86f9f7d-b4dc-408d-bff8-87277fe8f802", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°9 in BO should create zone and check result", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6da2d885-59cd-4141-b22a-594f5bde7cf9", + "parentUUID": "d86f9f7d-b4dc-408d-bff8-87277fe8f802", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4fd4521b-d677-4f2a-b380-33395737b7f5", + "6da2d885-59cd-4141-b22a-594f5bde7cf9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1665, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3c04e57a-ad25-4e2f-b66d-8cf9aeb8749e", + "title": "Create zone n°10 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°10 in BO should go to add new zone page", + "timedOut": false, + "duration": 731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ac76102-3d91-488f-b78f-59bcafbb2a1e", + "parentUUID": "3c04e57a-ad25-4e2f-b66d-8cf9aeb8749e", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°10 in BO should create zone and check result", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8ae5002-db55-4be9-b74e-aaf5176f4daa", + "parentUUID": "3c04e57a-ad25-4e2f-b66d-8cf9aeb8749e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3ac76102-3d91-488f-b78f-59bcafbb2a1e", + "f8ae5002-db55-4be9-b74e-aaf5176f4daa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1657, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bd4a3af4-fcdb-4560-964e-fc3a0dc0ce34", + "title": "Create zone n°11 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°11 in BO should go to add new zone page", + "timedOut": false, + "duration": 730, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf577714-9fbd-4372-b55a-991c1e29dd76", + "parentUUID": "bd4a3af4-fcdb-4560-964e-fc3a0dc0ce34", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°11 in BO should create zone and check result", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48f26a76-bc24-4183-8000-54c20ccc4c28", + "parentUUID": "bd4a3af4-fcdb-4560-964e-fc3a0dc0ce34", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cf577714-9fbd-4372-b55a-991c1e29dd76", + "48f26a76-bc24-4183-8000-54c20ccc4c28" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1658, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "291b933f-cd68-48b8-9eec-ef1155c0baf5", + "title": "Create zone n°12 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°12 in BO should go to add new zone page", + "timedOut": false, + "duration": 739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99c83a76-5519-4f7f-bf5c-9ea1b47d08ef", + "parentUUID": "291b933f-cd68-48b8-9eec-ef1155c0baf5", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°12 in BO should create zone and check result", + "timedOut": false, + "duration": 929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93dbfee2-172c-48bb-9d12-0fcd643a141a", + "parentUUID": "291b933f-cd68-48b8-9eec-ef1155c0baf5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99c83a76-5519-4f7f-bf5c-9ea1b47d08ef", + "93dbfee2-172c-48bb-9d12-0fcd643a141a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1668, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fefeb340-2d00-49e6-ab95-25c2c3b29fd7", + "title": "Create zone n°13 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new zone page", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°13 in BO should go to add new zone page", + "timedOut": false, + "duration": 731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_goToAddZonePage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddZonePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToAddNewZonePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3476d279-a977-4fac-9ed7-0ce067e0d183", + "parentUUID": "fefeb340-2d00-49e6-ab95-25c2c3b29fd7", + "isHook": false, + "skipped": false + }, + { + "title": "should create zone and check result", + "fullTitle": "BO - International - Zones : Sort and pagination Create zone n°13 in BO should create zone and check result", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_createZone12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfZonesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createZone\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditZone(page, createZoneData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(locations_1.default.successfulCreationMessage);\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterCreation).to.be.equal(numberOfZones + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15639912-a638-43f9-8491-a5376a2e92ec", + "parentUUID": "fefeb340-2d00-49e6-ab95-25c2c3b29fd7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3476d279-a977-4fac-9ed7-0ce067e0d183", + "15639912-a638-43f9-8491-a5376a2e92ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1662, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "12454d86-6af0-4e92-ae61-9d6741f8b568", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the item number to 20 per page", + "fullTitle": "BO - International - Zones : Sort and pagination Pagination next and previous should change the item number to 20 per page", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd8aafc1-3f34-466f-9343-75809d1fc7f6", + "parentUUID": "12454d86-6af0-4e92-ae61-9d6741f8b568", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - International - Zones : Sort and pagination Pagination next and previous should click on next", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dad03a8-6fe9-449c-ae79-90bd090c3b9e", + "parentUUID": "12454d86-6af0-4e92-ae61-9d6741f8b568", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - International - Zones : Sort and pagination Pagination next and previous should click on previous", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "276a25ac-73a4-4cdc-83b0-bd361a8604b1", + "parentUUID": "12454d86-6af0-4e92-ae61-9d6741f8b568", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 50 per page", + "fullTitle": "BO - International - Zones : Sort and pagination Pagination next and previous should change the item number to 50 per page", + "timedOut": false, + "duration": 225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eccd9832-cc2a-4955-af7e-c2280bd36a33", + "parentUUID": "12454d86-6af0-4e92-ae61-9d6741f8b568", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dd8aafc1-3f34-466f-9343-75809d1fc7f6", + "4dad03a8-6fe9-449c-ae79-90bd090c3b9e", + "276a25ac-73a4-4cdc-83b0-bd361a8604b1", + "eccd9832-cc2a-4955-af7e-c2280bd36a33" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2042, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dbf56413-55f5-4006-8d1a-e0978ca596bb", + "title": "Bulk delete zones", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/01_zones/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - Zones : Sort and pagination Bulk delete zones should filter list by name", + "timedOut": false, + "duration": 999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.filterZones(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfZonesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, locations_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "312bd333-14fb-482e-8b7f-9753aa51f297", + "parentUUID": "dbf56413-55f5-4006-8d1a-e0978ca596bb", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete zones", + "fullTitle": "BO - International - Zones : Sort and pagination Bulk delete zones should bulk delete zones", + "timedOut": false, + "duration": 1026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_bulkDeleteZones\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteZones', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.bulkDeleteZones(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(locations_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb0f0681-288f-45ef-9fa4-958317da489b", + "parentUUID": "dbf56413-55f5-4006-8d1a-e0978ca596bb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Zones : Sort and pagination Bulk delete zones should reset all filters", + "timedOut": false, + "duration": 340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_zones_sortAndPagination_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfZonesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfZonesAfterReset).to.be.equal(numberOfZones);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b93d012-3faf-4804-96c2-afc32db97acf", + "parentUUID": "dbf56413-55f5-4006-8d1a-e0978ca596bb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "312bd333-14fb-482e-8b7f-9753aa51f297", + "fb0f0681-288f-45ef-9fa4-958317da489b", + "8b93d012-3faf-4804-96c2-afc32db97acf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2365, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "23db2ed7-3dc7-4089-be34-cbd71d4541c2", + "7a692c93-f71b-4801-a5a2-a9fc92a7e510", + "82cc0504-be0a-4e2d-b610-fa354423005f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7572, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c373798c-1df6-43f0-9f3e-7fd97916ba91", + "title": "BO - International - Countries : Filter and quick edit", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/01_filterAndQuickEditCountries.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/01_filterAndQuickEditCountries.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Countries : Filter and quick edit\"", + "fullTitle": "BO - International - Countries : Filter and quick edit \"before all\" hook in \"BO - International - Countries : Filter and quick edit\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22a163e2-9e11-493d-900a-415f74527b75", + "parentUUID": "c373798c-1df6-43f0-9f3e-7fd97916ba91", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Countries : Filter and quick edit\"", + "fullTitle": "BO - International - Countries : Filter and quick edit \"after all\" hook in \"BO - International - Countries : Filter and quick edit\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9de09b0a-095c-4a7a-8999-f5a0e09b33e1", + "parentUUID": "c373798c-1df6-43f0-9f3e-7fd97916ba91", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Countries : Filter and quick edit should login in BO", + "timedOut": false, + "duration": 1745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "000f07c5-90eb-481f-a5ad-b9a579214569", + "parentUUID": "c373798c-1df6-43f0-9f3e-7fd97916ba91", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Countries : Filter and quick edit should go to 'International > Locations' page", + "timedOut": false, + "duration": 4824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "423ea7fd-1644-4469-8152-7b180d33b975", + "parentUUID": "c373798c-1df6-43f0-9f3e-7fd97916ba91", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "BO - International - Countries : Filter and quick edit should go to 'Countries' page", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_goToCountriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d96c742-3e32-4897-b856-e8d884869317", + "parentUUID": "c373798c-1df6-43f0-9f3e-7fd97916ba91", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of countries in BO", + "fullTitle": "BO - International - Countries : Filter and quick edit should reset all filters and get number of countries in BO", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f093017-c9d7-472c-8a44-2e0c57470479", + "parentUUID": "c373798c-1df6-43f0-9f3e-7fd97916ba91", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "title": "Filter countries", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/01_filterAndQuickEditCountries.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/01_filterAndQuickEditCountries.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_country '8'", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should filter by id_country '8'", + "timedOut": false, + "duration": 964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.most(numberOfCountries);\n if (!(test.args.filterBy === 'a!active')) return [3 /*break*/, 5];\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82cb7cfa-2670-4a41-883f-604ec723ccf1", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should reset all filters", + "timedOut": false, + "duration": 2923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "441b4d0c-3562-4e83-88d4-fa6076f269d4", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by b!name 'Netherlands'", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should filter by b!name 'Netherlands'", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.most(numberOfCountries);\n if (!(test.args.filterBy === 'a!active')) return [3 /*break*/, 5];\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6770f15e-389f-491e-a4e4-5d3191a917ce", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should reset all filters", + "timedOut": false, + "duration": 2914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fda7f213-e404-472e-8296-c927ffcfe2ef", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso_code 'NL'", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should filter by iso_code 'NL'", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterIsoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.most(numberOfCountries);\n if (!(test.args.filterBy === 'a!active')) return [3 /*break*/, 5];\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebbb28b2-3f34-48f5-90f1-593b501ba4fc", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should reset all filters", + "timedOut": false, + "duration": 2922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterIsoCodeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47538353-40e7-4d66-bfb8-a7f995f01b12", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by call_prefix '44'", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should filter by call_prefix '44'", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.most(numberOfCountries);\n if (!(test.args.filterBy === 'a!active')) return [3 /*break*/, 5];\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "950170ae-dd2e-4da2-9c05-3459c89421c9", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should reset all filters", + "timedOut": false, + "duration": 2978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterPrefixReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8077d038-3bcc-4086-8191-7fa166b3eda0", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by z!id_zone 'Europe'", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should filter by z!id_zone 'Europe'", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.most(numberOfCountries);\n if (!(test.args.filterBy === 'a!active')) return [3 /*break*/, 5];\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74ba3356-d4c1-4881-8f5d-a6eaf74f30fc", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should reset all filters", + "timedOut": false, + "duration": 2907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterZoneReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9f4b04d-264c-4690-86fe-6011cdc0701f", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by a!active '1'", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should filter by a!active '1'", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.most(numberOfCountries);\n if (!(test.args.filterBy === 'a!active')) return [3 /*break*/, 5];\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95b4488e-7c3a-4d36-8c87-5a82008cfba1", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Filter and quick edit Filter countries should reset all filters", + "timedOut": false, + "duration": 2900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterStatusReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e56117b5-7d60-4cd7-9a83-c86b1d9ece07", + "parentUUID": "eff2232e-d816-4806-a6fe-6b3d59879b39", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "82cb7cfa-2670-4a41-883f-604ec723ccf1", + "441b4d0c-3562-4e83-88d4-fa6076f269d4", + "6770f15e-389f-491e-a4e4-5d3191a917ce", + "fda7f213-e404-472e-8296-c927ffcfe2ef", + "ebbb28b2-3f34-48f5-90f1-593b501ba4fc", + "47538353-40e7-4d66-bfb8-a7f995f01b12", + "950170ae-dd2e-4da2-9c05-3459c89421c9", + "8077d038-3bcc-4086-8191-7fa166b3eda0", + "74ba3356-d4c1-4881-8f5d-a6eaf74f30fc", + "c9f4b04d-264c-4690-86fe-6011cdc0701f", + "95b4488e-7c3a-4d36-8c87-5a82008cfba1", + "e56117b5-7d60-4cd7-9a83-c86b1d9ece07" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22983, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "292f45cb-8738-4577-992f-3d6d5981963f", + "title": "Quick edit zone", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/01_filterAndQuickEditCountries.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/01_filterAndQuickEditCountries.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'Germany'", + "fullTitle": "BO - International - Countries : Filter and quick edit Quick edit zone should filter by name 'Germany'", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'b!name', countries_2.default.germany.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.below(numberOfCountries);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(countries_2.default.germany.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "192f2c9a-32fd-443e-9389-04d212d37031", + "parentUUID": "292f45cb-8738-4577-992f-3d6d5981963f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the first country", + "fullTitle": "BO - International - Countries : Filter and quick edit Quick edit zone should enable the first country", + "timedOut": false, + "duration": 1336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_enableZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"Zone\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.setCountryStatus(page, 1, status.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(status.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fb01243-4f56-40c0-b66c-22c8f059e6df", + "parentUUID": "292f45cb-8738-4577-992f-3d6d5981963f", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the first country", + "fullTitle": "BO - International - Countries : Filter and quick edit Quick edit zone should disable the first country", + "timedOut": false, + "duration": 1282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_disableZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"Zone\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.setCountryStatus(page, 1, status.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(status.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55538bdd-e1a4-47b5-92cf-5ea5161da427", + "parentUUID": "292f45cb-8738-4577-992f-3d6d5981963f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Filter and quick edit Quick edit zone should reset all filters", + "timedOut": false, + "duration": 2990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_filterAndQuickEditCountries_resetAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d62383a-b591-450e-8768-2bb1175ff78f", + "parentUUID": "292f45cb-8738-4577-992f-3d6d5981963f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "192f2c9a-32fd-443e-9389-04d212d37031", + "0fb01243-4f56-40c0-b66c-22c8f059e6df", + "55538bdd-e1a4-47b5-92cf-5ea5161da427", + "8d62383a-b591-450e-8768-2bb1175ff78f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6524, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "000f07c5-90eb-481f-a5ad-b9a579214569", + "423ea7fd-1644-4469-8152-7b180d33b975", + "3d96c742-3e32-4897-b856-e8d884869317", + "9f093017-c9d7-472c-8a44-2e0c57470479" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7541, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a96b8fb7-24ca-4b4e-8c21-de68af5cf018", + "title": "BO - International - Countries : CRUD country", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/02_CRUDCountry.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/02_CRUDCountry.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Countries : CRUD country\"", + "fullTitle": "BO - International - Countries : CRUD country \"before all\" hook in \"BO - International - Countries : CRUD country\"", + "timedOut": false, + "duration": 76, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "150eede2-0fa8-4381-8637-05617e02195b", + "parentUUID": "a96b8fb7-24ca-4b4e-8c21-de68af5cf018", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Countries : CRUD country\"", + "fullTitle": "BO - International - Countries : CRUD country \"after all\" hook in \"BO - International - Countries : CRUD country\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6e36ddaf-822b-433d-8ce3-89a441992f36", + "parentUUID": "a96b8fb7-24ca-4b4e-8c21-de68af5cf018", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Countries : CRUD country should login in BO", + "timedOut": false, + "duration": 1693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1415cc0-a412-4580-8878-c8f21e9a66dc", + "parentUUID": "a96b8fb7-24ca-4b4e-8c21-de68af5cf018", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Countries : CRUD country should go to 'International > Locations' page", + "timedOut": false, + "duration": 4827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d48d45e-1ba2-45fa-9380-68a30d398fb5", + "parentUUID": "a96b8fb7-24ca-4b4e-8c21-de68af5cf018", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "BO - International - Countries : CRUD country should go to 'Countries' page", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goToCountriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec17ba2e-9159-466e-831b-871bb61893d3", + "parentUUID": "a96b8fb7-24ca-4b4e-8c21-de68af5cf018", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of countries in BO", + "fullTitle": "BO - International - Countries : CRUD country should reset all filters and get number of countries in BO", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cd84b95-b40a-44f8-b23c-9d953aac4ca3", + "parentUUID": "a96b8fb7-24ca-4b4e-8c21-de68af5cf018", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "927d6142-8779-4288-9912-d8fb47fc8000", + "title": "Create country", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/02_CRUDCountry.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/02_CRUDCountry.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new country page", + "fullTitle": "BO - International - Countries : CRUD country Create country should go to add new country page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goToAddNewCountryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCountryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.goToAddNewCountryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1b57b53-8d99-4f51-9ba3-ea90c862d8de", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should try to create new country with a used ISO code and an invalid prefix", + "fullTitle": "BO - International - Countries : CRUD country Create country should try to create new country with a used ISO code and an invalid prefix", + "timedOut": false, + "duration": 1097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_checkCreateNewCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreateNewCountry', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCountry(page, countryDataIncorrectDate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(add_1.default.errorMessageIsoCode).and.contains(add_1.default.errorMessagePrefix);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "234ae8cd-7e62-469a-8529-664f0d7de03c", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should create new country", + "fullTitle": "BO - International - Countries : CRUD country Create country should create new country", + "timedOut": false, + "duration": 1136, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_createNewCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCountriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewCountry', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCountry(page, createCountryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(countries_1.default.successfulCreationMessage);\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterCreation).to.be.equal(numberOfCountries + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "636e0a9b-b7d2-472a-8140-c562c54eb210", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - International - Countries : CRUD country Create country should view my shop", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dde0439f-fd7b-46ae-a615-1b705fbe99b2", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - International - Countries : CRUD country Create country should go to login page", + "timedOut": false, + "duration": 718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goToLoginPageFO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e735d332-1665-4760-8ac7-d307ee3d1dac", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - International - Countries : CRUD country Create country should sign in with default customer", + "timedOut": false, + "duration": 635, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_sighInFO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4f86993-6d17-4286-83dc-197e00e7781c", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should go to addresses page", + "fullTitle": "BO - International - Countries : CRUD country Create country should go to addresses page", + "timedOut": false, + "duration": 3379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goToAddressesPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToAddressesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open addresses page').to.contains(addresses_1.addressesPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e0edad2-da98-4c26-a816-b537819088f5", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new country 'countryTest' exist", + "fullTitle": "BO - International - Countries : CRUD country Create country should check that the new country 'countryTest' exist", + "timedOut": false, + "duration": 732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_checkIsNewCountryExist\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var countryExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIsNewCountryExist', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.openNewAddressForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.countryExist(page, createCountryData.name)];\n case 3:\n countryExist = _a.sent();\n (0, chai_1.expect)(countryExist, 'Country does not exist').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ede40c2-4682-4ce7-ad00-256d40b5b064", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - International - Countries : CRUD country Create country should sign out from FO", + "timedOut": false, + "duration": 1183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_sighOutFO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighOutFO_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba2a54c1-3bae-4fed-bb1f-ca7f40ebc370", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Countries : CRUD country Create country should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goBackToBo_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11249372-2e2a-4758-8e8e-82774c444dd7", + "parentUUID": "927d6142-8779-4288-9912-d8fb47fc8000", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b1b57b53-8d99-4f51-9ba3-ea90c862d8de", + "234ae8cd-7e62-469a-8529-664f0d7de03c", + "636e0a9b-b7d2-472a-8140-c562c54eb210", + "dde0439f-fd7b-46ae-a615-1b705fbe99b2", + "e735d332-1665-4760-8ac7-d307ee3d1dac", + "e4f86993-6d17-4286-83dc-197e00e7781c", + "6e0edad2-da98-4c26-a816-b537819088f5", + "8ede40c2-4682-4ce7-ad00-256d40b5b064", + "ba2a54c1-3bae-4fed-bb1f-ca7f40ebc370", + "11249372-2e2a-4758-8e8e-82774c444dd7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11450, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "title": "Update country", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/02_CRUDCountry.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/02_CRUDCountry.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter country by name 'countryTest'", + "fullTitle": "BO - International - Countries : CRUD country Update country should filter country by name 'countryTest'", + "timedOut": false, + "duration": 954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'b!name', createCountryData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createCountryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fef80288-91f6-4d97-8a93-7e84062a168d", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit country page", + "fullTitle": "BO - International - Countries : CRUD country Update country should go to edit country page", + "timedOut": false, + "duration": 832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goToEditCountryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCountryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.goToEditCountryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cc9ad79-7911-4473-b736-eef9c2ef28a4", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + }, + { + "title": "should edit country", + "fullTitle": "BO - International - Countries : CRUD country Update country should edit country", + "timedOut": false, + "duration": 4052, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_editCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editCountry', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCountry(page, editCountryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(countries_1.default.successfulUpdateMessage);\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.be.equal(numberOfCountries + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c253658e-bc20-403f-ab85-2149c44d1824", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - International - Countries : CRUD country Update country should view my shop", + "timedOut": false, + "duration": 1683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_viewMyShop_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eaf0ec91-b02d-4ddb-8e28-425321ac59f7", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - International - Countries : CRUD country Update country should go to login page", + "timedOut": false, + "duration": 689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goToLoginPageFO_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c3bb285-40b1-416a-8b0c-b7fc9277454a", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - International - Countries : CRUD country Update country should sign in with default customer", + "timedOut": false, + "duration": 488, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_sighInFO_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6885016-48c3-4f15-aa19-47b55a6c4237", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to addresses page", + "fullTitle": "BO - International - Countries : CRUD country Update country should go to addresses page", + "timedOut": false, + "duration": 3383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goToAddressesPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToAddressesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open addresses page').to.contains(addresses_1.addressesPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e2bf2b2-09fe-4ef4-b2ef-c6a41d37ac75", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the edited country 'countryTestEdit' not exist", + "fullTitle": "BO - International - Countries : CRUD country Update country should check that the edited country 'countryTestEdit' not exist", + "timedOut": false, + "duration": 726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_checkIsCountryNotExist\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var countryExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIsCountryNotExist', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.openNewAddressForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.countryExist(page, editCountryData.name)];\n case 3:\n countryExist = _a.sent();\n (0, chai_1.expect)(countryExist, 'Country exist').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b59a8c35-fca3-4da0-a7c7-e4480bf25654", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - International - Countries : CRUD country Update country should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_goBackToBo_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecea1257-e464-4e10-be58-f5b4585764a9", + "parentUUID": "38bc5d21-4b01-474d-8d9b-a913cab13e4a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fef80288-91f6-4d97-8a93-7e84062a168d", + "5cc9ad79-7911-4473-b736-eef9c2ef28a4", + "c253658e-bc20-403f-ab85-2149c44d1824", + "eaf0ec91-b02d-4ddb-8e28-425321ac59f7", + "4c3bb285-40b1-416a-8b0c-b7fc9277454a", + "e6885016-48c3-4f15-aa19-47b55a6c4237", + "1e2bf2b2-09fe-4ef4-b2ef-c6a41d37ac75", + "b59a8c35-fca3-4da0-a7c7-e4480bf25654", + "ecea1257-e464-4e10-be58-f5b4585764a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12812, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f091db39-c33e-41df-a7eb-6a220e8fa9eb", + "title": "Delete country", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/02_CRUDCountry.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/02_CRUDCountry.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter country by name 'countryTestEdit'", + "fullTitle": "BO - International - Countries : CRUD country Delete country should filter country by name 'countryTestEdit'", + "timedOut": false, + "duration": 995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'b!name', editCountryData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editCountryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db7459ca-d01b-4261-8f82-9f99da339d26", + "parentUUID": "f091db39-c33e-41df-a7eb-6a220e8fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete country", + "fullTitle": "BO - International - Countries : CRUD country Delete country should delete country", + "timedOut": false, + "duration": 525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_deleteCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCountry', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.deleteCountriesByBulkActions(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(countries_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a5cd7ef-6765-408e-a5b0-ae3d5ee1c4ee", + "parentUUID": "f091db39-c33e-41df-a7eb-6a220e8fa9eb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : CRUD country Delete country should reset all filters", + "timedOut": false, + "duration": 2918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_CRUDCountry_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.be.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a8933ae-0006-4f34-8fec-e7551d0f61a5", + "parentUUID": "f091db39-c33e-41df-a7eb-6a220e8fa9eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db7459ca-d01b-4261-8f82-9f99da339d26", + "9a5cd7ef-6765-408e-a5b0-ae3d5ee1c4ee", + "2a8933ae-0006-4f34-8fec-e7551d0f61a5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4438, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a1415cc0-a412-4580-8878-c8f21e9a66dc", + "2d48d45e-1ba2-45fa-9380-68a30d398fb5", + "ec17ba2e-9159-466e-831b-871bb61893d3", + "1cd84b95-b40a-44f8-b23c-9d953aac4ca3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7394, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "698db23e-aa0e-4ec8-8e33-1e8fa9a6611a", + "title": "BO - International - Countries : Bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/03_bulkActionsCountries.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/03_bulkActionsCountries.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Countries : Bulk actions\"", + "fullTitle": "BO - International - Countries : Bulk actions \"before all\" hook in \"BO - International - Countries : Bulk actions\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "273acd72-d1dd-4f1c-bbde-55eec66ed26b", + "parentUUID": "698db23e-aa0e-4ec8-8e33-1e8fa9a6611a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Countries : Bulk actions\"", + "fullTitle": "BO - International - Countries : Bulk actions \"after all\" hook in \"BO - International - Countries : Bulk actions\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9a00c8e5-bb2e-44a8-9817-3765e57a6523", + "parentUUID": "698db23e-aa0e-4ec8-8e33-1e8fa9a6611a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Countries : Bulk actions should login in BO", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7febe32b-de00-48a0-9dfa-6965dd85c7d3", + "parentUUID": "698db23e-aa0e-4ec8-8e33-1e8fa9a6611a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Countries : Bulk actions should go to 'International > Locations' page", + "timedOut": false, + "duration": 4830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1aad81d8-2911-40d8-9b08-438321e7962c", + "parentUUID": "698db23e-aa0e-4ec8-8e33-1e8fa9a6611a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "BO - International - Countries : Bulk actions should go to 'Countries' page", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_goToCountriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2dbb7a0-c653-4a53-b985-536edc28a08c", + "parentUUID": "698db23e-aa0e-4ec8-8e33-1e8fa9a6611a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of countries in BO", + "fullTitle": "BO - International - Countries : Bulk actions should reset all filters and get number of countries in BO", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d7b5717-1a5b-44ed-831a-43c532733a13", + "parentUUID": "698db23e-aa0e-4ec8-8e33-1e8fa9a6611a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "bd965063-bb93-48f1-bb19-e3a91b2e29c8", + "title": "Create country", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/03_bulkActionsCountries.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/03_bulkActionsCountries.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new country page", + "fullTitle": "BO - International - Countries : Bulk actions Create country should go to add new country page", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_goToAddNewCountryPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCountryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.goToAddNewCountryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13b0334f-e37a-48b5-a4a6-85543fe7d740", + "parentUUID": "bd965063-bb93-48f1-bb19-e3a91b2e29c8", + "isHook": false, + "skipped": false + }, + { + "title": "should create new country", + "fullTitle": "BO - International - Countries : Bulk actions Create country should create new country", + "timedOut": false, + "duration": 1183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_createNewCountry0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCountriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewCountry\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCountry(page, countryToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(countries_1.default.successfulCreationMessage);\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterCreation).to.be.equal(numberOfCountries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "900c5c4d-de96-493d-a496-322b903a99e1", + "parentUUID": "bd965063-bb93-48f1-bb19-e3a91b2e29c8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new country page", + "fullTitle": "BO - International - Countries : Bulk actions Create country should go to add new country page", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_goToAddNewCountryPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCountryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.goToAddNewCountryPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e901d03-aa42-41ab-923d-7f2c790f98d9", + "parentUUID": "bd965063-bb93-48f1-bb19-e3a91b2e29c8", + "isHook": false, + "skipped": false + }, + { + "title": "should create new country", + "fullTitle": "BO - International - Countries : Bulk actions Create country should create new country", + "timedOut": false, + "duration": 1220, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_createNewCountry1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCountriesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createNewCountry\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCountry(page, countryToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(countries_1.default.successfulCreationMessage);\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterCreation).to.be.equal(numberOfCountries + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75f36015-4831-4fb6-9494-c36dbf8db1f3", + "parentUUID": "bd965063-bb93-48f1-bb19-e3a91b2e29c8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "13b0334f-e37a-48b5-a4a6-85543fe7d740", + "900c5c4d-de96-493d-a496-322b903a99e1", + "6e901d03-aa42-41ab-923d-7f2c790f98d9", + "75f36015-4831-4fb6-9494-c36dbf8db1f3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4044, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b17718b5-0061-4d40-8b9d-38aef5ce1896", + "title": "Delete country by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/03_bulkActionsCountries.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/03_bulkActionsCountries.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter country by name", + "fullTitle": "BO - International - Countries : Bulk actions Delete country by bulk actions should filter country by name", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'b!name', 'todelete')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93efbd25-27e4-4a41-9e4d-4d4ab75e7a38", + "parentUUID": "b17718b5-0061-4d40-8b9d-38aef5ce1896", + "isHook": false, + "skipped": false + }, + { + "title": "should enable countries with bulk actions", + "fullTitle": "BO - International - Countries : Bulk actions Delete country by bulk actions should enable countries with bulk actions", + "timedOut": false, + "duration": 585, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_enableCountries\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesBulkActions, row, rowStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"Countries\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.bulkSetStatus(page, test.wantedStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesBulkActions = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfZonesBulkActions)) return [3 /*break*/, 7];\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, row)];\n case 5:\n rowStatus = _a.sent();\n (0, chai_1.expect)(rowStatus).to.equal(test.wantedStatus);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9658ad3d-7e7e-48a2-b0b7-89f781736b7a", + "parentUUID": "b17718b5-0061-4d40-8b9d-38aef5ce1896", + "isHook": false, + "skipped": false + }, + { + "title": "should disable countries with bulk actions", + "fullTitle": "BO - International - Countries : Bulk actions Delete country by bulk actions should disable countries with bulk actions", + "timedOut": false, + "duration": 3091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_disableCountries\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfZonesBulkActions, row, rowStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"Countries\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.bulkSetStatus(page, test.wantedStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfZonesBulkActions = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfZonesBulkActions)) return [3 /*break*/, 7];\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, row)];\n case 5:\n rowStatus = _a.sent();\n (0, chai_1.expect)(rowStatus).to.equal(test.wantedStatus);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0e4ab4f-9734-4931-8de8-ea55a7a59999", + "parentUUID": "b17718b5-0061-4d40-8b9d-38aef5ce1896", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete countries", + "fullTitle": "BO - International - Countries : Bulk actions Delete country by bulk actions should bulk delete countries", + "timedOut": false, + "duration": 491, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_deleteCountries\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCountries', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.deleteCountriesByBulkActions(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(countries_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b33516d4-c321-49a8-a70b-156b04c90b9d", + "parentUUID": "b17718b5-0061-4d40-8b9d-38aef5ce1896", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Bulk actions Delete country by bulk actions should reset all filters", + "timedOut": false, + "duration": 2908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_bulkActionsCountries_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.be.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f380c19-f4e5-4efd-beed-bcf164624156", + "parentUUID": "b17718b5-0061-4d40-8b9d-38aef5ce1896", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "93efbd25-27e4-4a41-9e4d-4d4ab75e7a38", + "9658ad3d-7e7e-48a2-b0b7-89f781736b7a", + "a0e4ab4f-9734-4931-8de8-ea55a7a59999", + "b33516d4-c321-49a8-a70b-156b04c90b9d", + "1f380c19-f4e5-4efd-beed-bcf164624156" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7989, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "7febe32b-de00-48a0-9dfa-6965dd85c7d3", + "1aad81d8-2911-40d8-9b08-438321e7962c", + "c2dbb7a0-c653-4a53-b985-536edc28a08c", + "1d7b5717-1a5b-44ed-831a-43c532733a13" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7415, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "56dc6fe1-10b3-4f1e-aa84-23f00a7c1524", + "title": "BO - International - Countries : Sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/04_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Countries : Sort and pagination\"", + "fullTitle": "BO - International - Countries : Sort and pagination \"before all\" hook in \"BO - International - Countries : Sort and pagination\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe939a11-ffa4-4907-bbf8-2ed7b0a3dac5", + "parentUUID": "56dc6fe1-10b3-4f1e-aa84-23f00a7c1524", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Countries : Sort and pagination\"", + "fullTitle": "BO - International - Countries : Sort and pagination \"after all\" hook in \"BO - International - Countries : Sort and pagination\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "daaf5963-50b8-4011-86da-867a68347258", + "parentUUID": "56dc6fe1-10b3-4f1e-aa84-23f00a7c1524", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Countries : Sort and pagination should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e604385f-022b-4b76-98a7-7faebcd0866a", + "parentUUID": "56dc6fe1-10b3-4f1e-aa84-23f00a7c1524", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Countries : Sort and pagination should go to 'International > Locations' page", + "timedOut": false, + "duration": 3834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f411be27-2859-4690-ad47-4bc590aaa20b", + "parentUUID": "56dc6fe1-10b3-4f1e-aa84-23f00a7c1524", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "BO - International - Countries : Sort and pagination should go to 'Countries' page", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_goToCountriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c35806ce-613e-4c47-a167-6ed20ce0d1c1", + "parentUUID": "56dc6fe1-10b3-4f1e-aa84-23f00a7c1524", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "d104b4bb-5f2f-41dd-bc2c-843f47a4a3cb", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the item number to 20 per page", + "fullTitle": "BO - International - Countries : Sort and pagination Pagination next and previous should change the item number to 20 per page", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a87f03f8-549c-433e-ad35-0311bc4af3fe", + "parentUUID": "d104b4bb-5f2f-41dd-bc2c-843f47a4a3cb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - International - Countries : Sort and pagination Pagination next and previous should click on next", + "timedOut": false, + "duration": 891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de2d05b6-e53e-4705-b439-bd4680ff2f00", + "parentUUID": "d104b4bb-5f2f-41dd-bc2c-843f47a4a3cb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - International - Countries : Sort and pagination Pagination next and previous should click on previous", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "310f8c46-ae2f-4a8a-9802-ae96d809db7e", + "parentUUID": "d104b4bb-5f2f-41dd-bc2c-843f47a4a3cb", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 300 per page", + "fullTitle": "BO - International - Countries : Sort and pagination Pagination next and previous should change the item number to 300 per page", + "timedOut": false, + "duration": 1203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_changeItemNumberTo300\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo300', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.selectPaginationLimit(page, 300)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71931572-824c-447a-8c4a-1afc6451a3a8", + "parentUUID": "d104b4bb-5f2f-41dd-bc2c-843f47a4a3cb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a87f03f8-549c-433e-ad35-0311bc4af3fe", + "de2d05b6-e53e-4705-b439-bd4680ff2f00", + "310f8c46-ae2f-4a8a-9802-ae96d809db7e", + "71931572-824c-447a-8c4a-1afc6451a3a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3903, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "title": "Sort countries table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_country' 'down' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'id_country' 'down' And check result", + "timedOut": false, + "duration": 6721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2551c9d1-82c1-4176-8c79-13ba71c25951", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'b!name' 'up' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'b!name' 'up' And check result", + "timedOut": false, + "duration": 6619, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByCountryAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f53a0bd8-c19a-4336-8588-cba3c12020f1", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'b!name' 'down' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'b!name' 'down' And check result", + "timedOut": false, + "duration": 6928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByCountryDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08fb4e90-74e3-40f4-b12e-6a8192bf3bb2", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'iso_code' 'up' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'iso_code' 'up' And check result", + "timedOut": false, + "duration": 7411, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByIsoCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2c7e6b3-e005-4973-9b27-81e712d8e536", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'iso_code' 'down' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'iso_code' 'down' And check result", + "timedOut": false, + "duration": 6636, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByIsoCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0061a1bf-35b8-4e40-a34d-d3076b9f61de", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'call_prefix' 'up' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'call_prefix' 'up' And check result", + "timedOut": false, + "duration": 6720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByCallPrefixAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bc41335-5e37-4ea4-9817-5a262cc35455", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'call_prefix' 'down' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'call_prefix' 'down' And check result", + "timedOut": false, + "duration": 6704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByCallPrefixDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b07cdb69-a6a3-4957-a3ba-b5659e5529d3", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'z!id_zone' 'up' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'z!id_zone' 'up' And check result", + "timedOut": false, + "duration": 6752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByZoneAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba273d44-342d-404c-aa7a-7aac09bcce06", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'z!id_zone' 'down' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'z!id_zone' 'down' And check result", + "timedOut": false, + "duration": 6713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByZoneDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fbaf15f-4b90-437b-a473-44545b202879", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_country' 'up' And check result", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should sort by 'id_country' 'up' And check result", + "timedOut": false, + "duration": 6630, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, countries_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be2d0f86-4775-4e4c-bf16-9e41918da7cd", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 50 per page", + "fullTitle": "BO - International - Countries : Sort and pagination Sort countries table should change the item number to 50 per page", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_sortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d1c6fcb-81ee-4d1a-bdb1-93182b5f75d2", + "parentUUID": "aaa093ae-6654-4373-8bdd-37d0f2787395", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2551c9d1-82c1-4176-8c79-13ba71c25951", + "f53a0bd8-c19a-4336-8588-cba3c12020f1", + "08fb4e90-74e3-40f4-b12e-6a8192bf3bb2", + "a2c7e6b3-e005-4973-9b27-81e712d8e536", + "0061a1bf-35b8-4e40-a34d-d3076b9f61de", + "9bc41335-5e37-4ea4-9817-5a262cc35455", + "b07cdb69-a6a3-4957-a3ba-b5659e5529d3", + "ba273d44-342d-404c-aa7a-7aac09bcce06", + "5fbaf15f-4b90-437b-a473-44545b202879", + "be2d0f86-4775-4e4c-bf16-9e41918da7cd", + "7d1c6fcb-81ee-4d1a-bdb1-93182b5f75d2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 68752, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e604385f-022b-4b76-98a7-7faebcd0866a", + "f411be27-2859-4690-ad47-4bc590aaa20b", + "c35806ce-613e-4c47-a167-6ed20ce0d1c1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6397, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "title": "BO - International - Countries : Restrict country selections in front office", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/02_countries/05_countriesRestrictions.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/02_countries/05_countriesRestrictions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Countries : Restrict country selections in front office\"", + "fullTitle": "BO - International - Countries : Restrict country selections in front office \"before all\" hook in \"BO - International - Countries : Restrict country selections in front office\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67761a20-9cfa-4edc-a346-57b81ea99581", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Countries : Restrict country selections in front office\"", + "fullTitle": "BO - International - Countries : Restrict country selections in front office \"after all\" hook in \"BO - International - Countries : Restrict country selections in front office\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "da9a6783-5471-45c8-9a48-70feb48377e2", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should login in BO", + "timedOut": false, + "duration": 1707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fd40e8f-c7fc-41e0-863d-ff7200f453eb", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should go to 'International > Locations' page", + "timedOut": false, + "duration": 4831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46f0a61f-8d81-4e6c-922e-6db49556c388", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should go to 'Countries' page", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_goToCountriesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c86cc11-3f5e-4f6b-9b55-82b182501539", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of countries in BO", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should reset all filters and get number of countries in BO", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b196672b-24be-49f8-81e4-45754743574b", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the country 'Afghanistan'", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should search for the country 'Afghanistan'", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_filterByNameToEnable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByNameToEnable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'b!name', countries_2.default.afghanistan.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(countries_2.default.afghanistan.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dffc9e37-13f4-4cb7-9c40-101398122bbc", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the country 'Afghanistan'", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should enable the country 'Afghanistan'", + "timedOut": false, + "duration": 1327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_enableCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableCountry', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.setCountryStatus(page, 1, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9737aaf-48b7-42cd-98bb-eead338db04f", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should enable restrict country selections", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should enable restrict country selections", + "timedOut": false, + "duration": 319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_enableRestrictCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"RestrictCountry\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.setCountriesRestrictions(page, status.args.enable)];\n case 2:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.contains(countries_1.default.settingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc044d4c-ecf4-4e26-b2a1-30c83157ff4e", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should go to FO", + "timedOut": false, + "duration": 1689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_goToFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a05a363-e96c-4bf0-8140-cc35ac0239f1", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should login", + "timedOut": false, + "duration": 1891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_login0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"login\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 5:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b79aa01-e6b8-467b-b3f5-418502b00306", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to addresses page", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should go to addresses page", + "timedOut": false, + "duration": 2666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_goToAddressesPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddressesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToAddressesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open addresses page').to.contains(addresses_1.addressesPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f39cb3a-e223-4826-a23d-9b9c8ae0da0a", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the country 'Afghanistan' exist", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should check if the country 'Afghanistan' exist", + "timedOut": false, + "duration": 724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_checkIsNewCountryExist0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var countryExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIsNewCountryExist\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.openNewAddressForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.countryExist(page, countries_2.default.afghanistan.name)];\n case 3:\n countryExist = _a.sent();\n (0, chai_1.expect)(countryExist).to.equal(status.args.isCountryVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ca6f639-7dbf-4ddf-8073-dfe0bbbf3453", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should sign out from FO", + "timedOut": false, + "duration": 1177, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_sighOutFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ffffbb1-98cc-40ba-940b-11cf901f7a35", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should close the FO page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_closeFoAndGoBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeFoAndGoBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef7b8ea4-c39f-4c2c-bd5d-b477cec0532b", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should disable restrict country selections", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should disable restrict country selections", + "timedOut": false, + "duration": 306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_disableRestrictCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"RestrictCountry\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.setCountriesRestrictions(page, status.args.enable)];\n case 2:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.contains(countries_1.default.settingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e74b64b-1c53-43f4-b569-623c44a69a1a", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should go to FO", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5721b33-a5a6-47ab-8bb0-0119b9c6446c", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should login", + "timedOut": false, + "duration": 1869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_login1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"login\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 5:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "185d48eb-404f-48d5-ad1a-aafee9b06f06", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to addresses page", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should go to addresses page", + "timedOut": false, + "duration": 2678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_goToAddressesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddressesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToAddressesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open addresses page').to.contains(addresses_1.addressesPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b5774fe-40c0-47d0-911a-ad85b270e698", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the country 'Afghanistan' exist", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should check if the country 'Afghanistan' exist", + "timedOut": false, + "duration": 725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_checkIsNewCountryExist1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var countryExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIsNewCountryExist\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.openNewAddressForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.countryExist(page, countries_2.default.afghanistan.name)];\n case 3:\n countryExist = _a.sent();\n (0, chai_1.expect)(countryExist).to.equal(status.args.isCountryVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6877e269-f7c3-4c25-ae62-f1286df2aacf", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should sign out from FO", + "timedOut": false, + "duration": 1190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_sighOutFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8a58daf-4380-41ed-b1eb-c119eaf0e182", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should close the FO page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_closeFoAndGoBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeFoAndGoBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "422f92c9-3b37-468f-b43e-2801b6a23493", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the country 'Afghanistan'", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should search for the country 'Afghanistan'", + "timedOut": false, + "duration": 924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_filterByNameToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByNameToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'b!name', countries_2.default.afghanistan.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.equal(1);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'b!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(countries_2.default.afghanistan.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0724e9bd-6877-4e72-bc97-a02aae38967b", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the country", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should disable the country", + "timedOut": false, + "duration": 1296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_disableCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableCountry', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.setCountryStatus(page, 1, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getCountryStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd638785-3285-4dbf-b559-11a0cf922d37", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Countries : Restrict country selections in front office should reset all filters", + "timedOut": false, + "duration": 2922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_countries_countriesRestrictions_resetAfterDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountriesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterReset).to.equal(numberOfCountries);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da7a7869-b75d-4095-8f0c-b462e94357d3", + "parentUUID": "c65def08-f6d9-4105-bbef-a5dc9764420d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5fd40e8f-c7fc-41e0-863d-ff7200f453eb", + "46f0a61f-8d81-4e6c-922e-6db49556c388", + "1c86cc11-3f5e-4f6b-9b55-82b182501539", + "b196672b-24be-49f8-81e4-45754743574b", + "dffc9e37-13f4-4cb7-9c40-101398122bbc", + "a9737aaf-48b7-42cd-98bb-eead338db04f", + "cc044d4c-ecf4-4e26-b2a1-30c83157ff4e", + "3a05a363-e96c-4bf0-8140-cc35ac0239f1", + "9b79aa01-e6b8-467b-b3f5-418502b00306", + "8f39cb3a-e223-4826-a23d-9b9c8ae0da0a", + "7ca6f639-7dbf-4ddf-8073-dfe0bbbf3453", + "2ffffbb1-98cc-40ba-940b-11cf901f7a35", + "ef7b8ea4-c39f-4c2c-bd5d-b477cec0532b", + "5e74b64b-1c53-43f4-b569-623c44a69a1a", + "b5721b33-a5a6-47ab-8bb0-0119b9c6446c", + "185d48eb-404f-48d5-ad1a-aafee9b06f06", + "1b5774fe-40c0-47d0-911a-ad85b270e698", + "6877e269-f7c3-4c25-ae62-f1286df2aacf", + "f8a58daf-4380-41ed-b1eb-c119eaf0e182", + "422f92c9-3b37-468f-b43e-2801b6a23493", + "0724e9bd-6877-4e72-bc97-a02aae38967b", + "cd638785-3285-4dbf-b559-11a0cf922d37", + "da7a7869-b75d-4095-8f0c-b462e94357d3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 31742, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "be051183-b9a3-4008-94f5-7ea9fe022058", + "title": "BO - International - States : Filter and quick edit", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/01_filterAndQuickEditStates.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/01_filterAndQuickEditStates.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - States : Filter and quick edit\"", + "fullTitle": "BO - International - States : Filter and quick edit \"before all\" hook in \"BO - International - States : Filter and quick edit\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63520dce-2494-46ba-830c-4e251bfa372a", + "parentUUID": "be051183-b9a3-4008-94f5-7ea9fe022058", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - States : Filter and quick edit\"", + "fullTitle": "BO - International - States : Filter and quick edit \"after all\" hook in \"BO - International - States : Filter and quick edit\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d0ae0ecf-5730-4dfe-8200-1edbf26ff574", + "parentUUID": "be051183-b9a3-4008-94f5-7ea9fe022058", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - States : Filter and quick edit should login in BO", + "timedOut": false, + "duration": 1675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f93525bf-e830-42b8-a9a9-afa416348e6f", + "parentUUID": "be051183-b9a3-4008-94f5-7ea9fe022058", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - States : Filter and quick edit should go to 'International > Locations' page", + "timedOut": false, + "duration": 4830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c583f7f-028d-4622-b241-5eb242a1bc82", + "parentUUID": "be051183-b9a3-4008-94f5-7ea9fe022058", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'States' page", + "fullTitle": "BO - International - States : Filter and quick edit should go to 'States' page", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_goToStatesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabStates(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(states_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efaf64b0-d298-4e8e-ade7-5a22a8741425", + "parentUUID": "be051183-b9a3-4008-94f5-7ea9fe022058", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of states in BO", + "fullTitle": "BO - International - States : Filter and quick edit should reset all filters and get number of states in BO", + "timedOut": false, + "duration": 33, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStates = _a.sent();\n (0, chai_1.expect)(numberOfStates).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f897d48-f386-4265-b64e-ca1228cf3756", + "parentUUID": "be051183-b9a3-4008-94f5-7ea9fe022058", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "title": "Filter states", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/01_filterAndQuickEditStates.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/01_filterAndQuickEditStates.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_state '8'", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should filter by id_state '8'", + "timedOut": false, + "duration": 891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.most(numberOfStates);\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 5];\n return [4 /*yield*/, states_1.default.getStateStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, states_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2a1fa3a-8d0d-43c8-a466-b9eee99f52e2", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should reset all filters", + "timedOut": false, + "duration": 2890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "614e7b27-b3e4-482a-a01a-6375d7f203f1", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Bari'", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should filter by name 'Bari'", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.most(numberOfStates);\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 5];\n return [4 /*yield*/, states_1.default.getStateStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, states_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5aa87e18-2a03-4749-ac9c-04c76daa2ce2", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should reset all filters", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13319b8c-5c20-4c94-92e4-4738d4a99a23", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso_code 'CA'", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should filter by iso_code 'CA'", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterIsoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.most(numberOfStates);\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 5];\n return [4 /*yield*/, states_1.default.getStateStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, states_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2188bcf-62e6-41af-bb5f-ce24ed2b7866", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should reset all filters", + "timedOut": false, + "duration": 2886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterIsoCodeReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3b2d60f-7824-4214-bb2a-8403101f61ee", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by id_zone 'Asia'", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should filter by id_zone 'Asia'", + "timedOut": false, + "duration": 957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterZone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.most(numberOfStates);\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 5];\n return [4 /*yield*/, states_1.default.getStateStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, states_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e023379e-3a4a-47f3-9217-c2c67e399e4e", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should reset all filters", + "timedOut": false, + "duration": 2898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterZoneReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75462871-f3e3-4b58-b8c1-c36fb355f386", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by id_country 'United States'", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should filter by id_country 'United States'", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.most(numberOfStates);\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 5];\n return [4 /*yield*/, states_1.default.getStateStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, states_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b85f9c80-337a-4e59-a016-dcaf90e820c9", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should reset all filters", + "timedOut": false, + "duration": 2896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterCountryReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51d66606-cde2-4ce9-a06e-899b0c0d177b", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should filter by active '1'", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, countryStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.most(numberOfStates);\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 5];\n return [4 /*yield*/, states_1.default.getStateStatus(page, 1)];\n case 4:\n countryStatus = _a.sent();\n (0, chai_1.expect)(countryStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 7];\n case 5: return [4 /*yield*/, states_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 7;\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4912e691-c430-4f1a-a40b-4118565a8136", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Filter and quick edit Filter states should reset all filters", + "timedOut": false, + "duration": 2905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterStatusReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d242612-da10-4958-b89a-4df599bab9f5", + "parentUUID": "fb5d952e-adc7-44b9-a513-6f74befe961b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c2a1fa3a-8d0d-43c8-a466-b9eee99f52e2", + "614e7b27-b3e4-482a-a01a-6375d7f203f1", + "5aa87e18-2a03-4749-ac9c-04c76daa2ce2", + "13319b8c-5c20-4c94-92e4-4738d4a99a23", + "e2188bcf-62e6-41af-bb5f-ce24ed2b7866", + "d3b2d60f-7824-4214-bb2a-8403101f61ee", + "e023379e-3a4a-47f3-9217-c2c67e399e4e", + "75462871-f3e3-4b58-b8c1-c36fb355f386", + "b85f9c80-337a-4e59-a016-dcaf90e820c9", + "51d66606-cde2-4ce9-a06e-899b0c0d177b", + "4912e691-c430-4f1a-a40b-4118565a8136", + "3d242612-da10-4958-b89a-4df599bab9f5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22879, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0d633ec1-fb0c-4800-9d52-60cb8a955844", + "title": "Quick edit state", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/01_filterAndQuickEditStates.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/01_filterAndQuickEditStates.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'California'", + "fullTitle": "BO - International - States : Filter and quick edit Quick edit state should filter by name 'California'", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, 'input', 'name', states_2.default.california.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.below(numberOfStates);\n return [4 /*yield*/, states_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(states_2.default.california.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "827adbc4-d1f9-455c-86fa-37ca0d52432a", + "parentUUID": "0d633ec1-fb0c-4800-9d52-60cb8a955844", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the first state", + "fullTitle": "BO - International - States : Filter and quick edit Quick edit state should disable the first state", + "timedOut": false, + "duration": 4491, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_disableState\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"State\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.setStateStatus(page, 1, status.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getStateStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(status.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "405f546c-4efc-4b9e-88a3-a7bee27e767f", + "parentUUID": "0d633ec1-fb0c-4800-9d52-60cb8a955844", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the first state", + "fullTitle": "BO - International - States : Filter and quick edit Quick edit state should enable the first state", + "timedOut": false, + "duration": 4490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_enableState\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(status.args.status, \"State\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.setStateStatus(page, 1, status.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getStateStatus(page, 1)];\n case 3:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(status.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abc87663-52ab-46c0-bf62-3968b6e991b2", + "parentUUID": "0d633ec1-fb0c-4800-9d52-60cb8a955844", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Filter and quick edit Quick edit state should reset all filters", + "timedOut": false, + "duration": 3015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_filterAndQuickEditStates_resetAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecf005a8-2508-43b3-af11-7d15d0c6b8b0", + "parentUUID": "0d633ec1-fb0c-4800-9d52-60cb8a955844", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "827adbc4-d1f9-455c-86fa-37ca0d52432a", + "405f546c-4efc-4b9e-88a3-a7bee27e767f", + "abc87663-52ab-46c0-bf62-3968b6e991b2", + "ecf005a8-2508-43b3-af11-7d15d0c6b8b0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12915, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f93525bf-e830-42b8-a9a9-afa416348e6f", + "0c583f7f-028d-4622-b241-5eb242a1bc82", + "efaf64b0-d298-4e8e-ade7-5a22a8741425", + "0f897d48-f386-4265-b64e-ca1228cf3756" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7413, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dd3e4dd3-5a0f-4656-9f3b-bdd60611611e", + "title": "BO - International - States : CRUD state", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/02_CRUDState.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/02_CRUDState.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - States : CRUD state\"", + "fullTitle": "BO - International - States : CRUD state \"before all\" hook in \"BO - International - States : CRUD state\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91c3b19a-0e86-4f17-a0b1-bbd1024da484", + "parentUUID": "dd3e4dd3-5a0f-4656-9f3b-bdd60611611e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - States : CRUD state\"", + "fullTitle": "BO - International - States : CRUD state \"after all\" hook in \"BO - International - States : CRUD state\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c6c784ef-97cb-485b-925d-5903b69bd3e6", + "parentUUID": "dd3e4dd3-5a0f-4656-9f3b-bdd60611611e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - States : CRUD state should login in BO", + "timedOut": false, + "duration": 1674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b53da4ec-9713-4227-99cd-206fa1efc1fc", + "parentUUID": "dd3e4dd3-5a0f-4656-9f3b-bdd60611611e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - States : CRUD state should go to 'International > Locations' page", + "timedOut": false, + "duration": 4835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1261cef4-5107-433c-ad41-dfa5f1fe4adf", + "parentUUID": "dd3e4dd3-5a0f-4656-9f3b-bdd60611611e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'States' page", + "fullTitle": "BO - International - States : CRUD state should go to 'States' page", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_goToStatesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabStates(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(states_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fa749f2-4677-4c30-9ec2-c72ab514b417", + "parentUUID": "dd3e4dd3-5a0f-4656-9f3b-bdd60611611e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of states in BO", + "fullTitle": "BO - International - States : CRUD state should reset all filters and get number of states in BO", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStates = _a.sent();\n (0, chai_1.expect)(numberOfStates).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90e6dbb4-50c6-4a44-9dc2-4c4cec9ef08f", + "parentUUID": "dd3e4dd3-5a0f-4656-9f3b-bdd60611611e", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "dd4e2c7e-dff5-41b6-b34b-b34b3a174c1e", + "title": "Create state", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/02_CRUDState.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/02_CRUDState.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new state page", + "fullTitle": "BO - International - States : CRUD state Create state should go to add new state page", + "timedOut": false, + "duration": 760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_goToAddNewStatePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewStatePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.goToAddNewStatePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ef49f5c-5a24-4917-a6c0-c46e0b6bce9f", + "parentUUID": "dd4e2c7e-dff5-41b6-b34b-b34b3a174c1e", + "isHook": false, + "skipped": false + }, + { + "title": "should create new state", + "fullTitle": "BO - International - States : CRUD state Create state should create new state", + "timedOut": false, + "duration": 1112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_createNewState\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStatesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewState', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditState(page, createStateData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(states_1.default.successfulCreationMessage);\n return [4 /*yield*/, states_1.default.getNumberOfElement(page)];\n case 3:\n numberOfStatesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterCreation).to.be.equal(numberOfStates + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8874ed2b-d12f-4829-aefd-c5020655ea8d", + "parentUUID": "dd4e2c7e-dff5-41b6-b34b-b34b3a174c1e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9ef49f5c-5a24-4917-a6c0-c46e0b6bce9f", + "8874ed2b-d12f-4829-aefd-c5020655ea8d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1872, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4aba66b5-8fe5-43a7-a812-07f751739377", + "title": "Update state", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/02_CRUDState.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/02_CRUDState.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter state by name 'test North Dakota'", + "fullTitle": "BO - International - States : CRUD state Update state should filter state by name 'test North Dakota'", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, states_1.default.filterStates(page, 'input', 'name', createStateData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, states_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createStateData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72e77fe0-7bcc-442d-a738-3020d9f40dab", + "parentUUID": "4aba66b5-8fe5-43a7-a812-07f751739377", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit state page", + "fullTitle": "BO - International - States : CRUD state Update state should go to edit state page", + "timedOut": false, + "duration": 759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_goToEditStatePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditStatePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.goToEditStatePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f8cdffe-d2df-45e1-ae53-6dda088c3bc5", + "parentUUID": "4aba66b5-8fe5-43a7-a812-07f751739377", + "isHook": false, + "skipped": false + }, + { + "title": "should edit state", + "fullTitle": "BO - International - States : CRUD state Update state should edit state", + "timedOut": false, + "duration": 3874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_ediState\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ediState', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditState(page, editStateData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(states_1.default.successfulUpdateMessage);\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.be.equal(numberOfStates + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17afa79b-7339-424a-a8a6-4b73b204bf15", + "parentUUID": "4aba66b5-8fe5-43a7-a812-07f751739377", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "72e77fe0-7bcc-442d-a738-3020d9f40dab", + "2f8cdffe-d2df-45e1-ae53-6dda088c3bc5", + "17afa79b-7339-424a-a8a6-4b73b204bf15" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5582, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "71a056ee-a625-426f-a4ad-72ee8b9880f6", + "title": "Delete state", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/02_CRUDState.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/02_CRUDState.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter state by name 'test Hawaii'", + "fullTitle": "BO - International - States : CRUD state Delete state should filter state by name 'test Hawaii'", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, states_1.default.filterStates(page, 'input', 'name', editStateData.name)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, states_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editStateData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd698400-e467-4937-a44f-d3c70564548f", + "parentUUID": "71a056ee-a625-426f-a4ad-72ee8b9880f6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete state", + "fullTitle": "BO - International - States : CRUD state Delete state should delete state", + "timedOut": false, + "duration": 1411, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_deleteState\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteState', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.deleteState(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.to.contains(states_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "571f8630-c03f-4c6b-8279-5918be211fd7", + "parentUUID": "71a056ee-a625-426f-a4ad-72ee8b9880f6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : CRUD state Delete state should reset all filters", + "timedOut": false, + "duration": 2893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_CRUDState_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.be.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc4d8eb1-5059-4a92-ab98-7497198b48de", + "parentUUID": "71a056ee-a625-426f-a4ad-72ee8b9880f6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fd698400-e467-4937-a44f-d3c70564548f", + "571f8630-c03f-4c6b-8279-5918be211fd7", + "fc4d8eb1-5059-4a92-ab98-7497198b48de" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5226, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b53da4ec-9713-4227-99cd-206fa1efc1fc", + "1261cef4-5107-433c-ad41-dfa5f1fe4adf", + "6fa749f2-4677-4c30-9ec2-c72ab514b417", + "90e6dbb4-50c6-4a44-9dc2-4c4cec9ef08f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7399, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "57c8b777-eb08-410d-86e2-ad7c32785ca3", + "title": "BO - International - States : Bulk edit status and bulk delete", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/03_bulkActionsStates.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/03_bulkActionsStates.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - States : Bulk edit status and bulk delete\"", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete \"before all\" hook in \"BO - International - States : Bulk edit status and bulk delete\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01011785-a70f-45d1-891e-a1c815e0b423", + "parentUUID": "57c8b777-eb08-410d-86e2-ad7c32785ca3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - States : Bulk edit status and bulk delete\"", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete \"after all\" hook in \"BO - International - States : Bulk edit status and bulk delete\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "64eaba4c-a6ad-4185-ac9f-0ba8ad74454f", + "parentUUID": "57c8b777-eb08-410d-86e2-ad7c32785ca3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete should login in BO", + "timedOut": false, + "duration": 1704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65e7aeb2-a053-4197-990f-d919675ac7be", + "parentUUID": "57c8b777-eb08-410d-86e2-ad7c32785ca3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete should go to 'International > Locations' page", + "timedOut": false, + "duration": 4836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f044e9ee-a031-4ecc-8dfa-0b72ac30d516", + "parentUUID": "57c8b777-eb08-410d-86e2-ad7c32785ca3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'States' page", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete should go to 'States' page", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_goToStatesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabStates(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(states_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9b98c37-e5d8-465e-b8b5-f73c8d89cf17", + "parentUUID": "57c8b777-eb08-410d-86e2-ad7c32785ca3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of states in BO", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete should reset all filters and get number of states in BO", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElement(page)];\n case 3:\n numberOfStates = _a.sent();\n (0, chai_1.expect)(numberOfStates).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "368235a6-4422-47b6-aff6-00af77255dae", + "parentUUID": "57c8b777-eb08-410d-86e2-ad7c32785ca3", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6bd46633-b31e-4d0a-9cb3-453ba02f2de4", + "title": "Create 2 states in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/03_bulkActionsStates.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/03_bulkActionsStates.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new title page", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Create 2 states in BO should go to add new title page", + "timedOut": false, + "duration": 738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_goToNewStatePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewStatePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.goToAddNewStatePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f5f6786-1b2b-45cd-924f-fbebd3fafcb6", + "parentUUID": "6bd46633-b31e-4d0a-9cb3-453ba02f2de4", + "isHook": false, + "skipped": false + }, + { + "title": "should create state and check result", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Create 2 states in BO should create state and check result", + "timedOut": false, + "duration": 1087, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_createState1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStatesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createState\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditState(page, stateToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(states_1.default.successfulCreationMessage);\n return [4 /*yield*/, states_1.default.getNumberOfElement(page)];\n case 3:\n numberOfStatesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterCreation).to.be.equal(numberOfStates + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cace2b2f-e780-4d7b-9144-2172804cea42", + "parentUUID": "6bd46633-b31e-4d0a-9cb3-453ba02f2de4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Create 2 states in BO should go to add new title page", + "timedOut": false, + "duration": 732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_goToNewStatePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewStatePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.goToAddNewStatePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "362ca0fc-4947-4d88-b9bf-8b21968d7623", + "parentUUID": "6bd46633-b31e-4d0a-9cb3-453ba02f2de4", + "isHook": false, + "skipped": false + }, + { + "title": "should create state and check result", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Create 2 states in BO should create state and check result", + "timedOut": false, + "duration": 1077, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_createState2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStatesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createState\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditState(page, stateToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(states_1.default.successfulCreationMessage);\n return [4 /*yield*/, states_1.default.getNumberOfElement(page)];\n case 3:\n numberOfStatesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterCreation).to.be.equal(numberOfStates + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "899709ec-4f88-4566-812e-78c3f3a87127", + "parentUUID": "6bd46633-b31e-4d0a-9cb3-453ba02f2de4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f5f6786-1b2b-45cd-924f-fbebd3fafcb6", + "cace2b2f-e780-4d7b-9144-2172804cea42", + "362ca0fc-4947-4d88-b9bf-8b21968d7623", + "899709ec-4f88-4566-812e-78c3f3a87127" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3634, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3153c2bc-9212-4a26-9d31-9f0aa1d98964", + "title": "Bulk actions states", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/03_bulkActionsStates.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/03_bulkActionsStates.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Bulk actions states should filter list by name", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_filterForBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterFilter).to.be.at.most(numberOfStates);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfStatesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, states_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89b4d699-5c0b-48fe-8feb-02fa0ef031e1", + "parentUUID": "3153c2bc-9212-4a26-9d31-9f0aa1d98964", + "isHook": false, + "skipped": false + }, + { + "title": "should enable states with bulk actions", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Bulk actions states should enable states with bulk actions", + "timedOut": false, + "duration": 969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_enableStates\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesBulkActions, row, rowStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"States\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.bulkSetStatus(page, test.wantedStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesBulkActions = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStatesBulkActions)) return [3 /*break*/, 7];\n return [4 /*yield*/, states_1.default.getStateStatus(page, row)];\n case 5:\n rowStatus = _a.sent();\n (0, chai_1.expect)(rowStatus).to.equal(test.wantedStatus);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12c02719-2a89-4893-bfc1-e82c68542956", + "parentUUID": "3153c2bc-9212-4a26-9d31-9f0aa1d98964", + "isHook": false, + "skipped": false + }, + { + "title": "should disable states with bulk actions", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Bulk actions states should disable states with bulk actions", + "timedOut": false, + "duration": 981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_disableStates\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesBulkActions, row, rowStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"States\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.bulkSetStatus(page, test.wantedStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStatesBulkActions = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStatesBulkActions)) return [3 /*break*/, 7];\n return [4 /*yield*/, states_1.default.getStateStatus(page, row)];\n case 5:\n rowStatus = _a.sent();\n (0, chai_1.expect)(rowStatus).to.equal(test.wantedStatus);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3633c534-af27-4d79-a09a-b8f3b74256ec", + "parentUUID": "3153c2bc-9212-4a26-9d31-9f0aa1d98964", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete states", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Bulk actions states should bulk delete states", + "timedOut": false, + "duration": 1461, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_bulkDeleteStates\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteStates', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.bulkDeleteStates(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(states_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e122dfc-e76e-4375-8193-433d82f49922", + "parentUUID": "3153c2bc-9212-4a26-9d31-9f0aa1d98964", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Bulk edit status and bulk delete Bulk actions states should reset all filters", + "timedOut": false, + "duration": 2886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_bulkActionsStates_resetFilterAfterBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStatesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterBulkActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStatesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStatesAfterReset).to.be.equal(numberOfStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c17b22f9-105b-4b89-974c-7af9aaea764d", + "parentUUID": "3153c2bc-9212-4a26-9d31-9f0aa1d98964", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "89b4d699-5c0b-48fe-8feb-02fa0ef031e1", + "12c02719-2a89-4893-bfc1-e82c68542956", + "3633c534-af27-4d79-a09a-b8f3b74256ec", + "8e122dfc-e76e-4375-8193-433d82f49922", + "c17b22f9-105b-4b89-974c-7af9aaea764d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7208, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "65e7aeb2-a053-4197-990f-d919675ac7be", + "f044e9ee-a031-4ecc-8dfa-0b72ac30d516", + "a9b98c37-e5d8-465e-b8b5-f73c8d89cf17", + "368235a6-4422-47b6-aff6-00af77255dae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7432, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "96c2c46e-57dc-442a-8a56-463d5a4525b8", + "title": "BO - International - States : Sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/04_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - States : Sort and pagination\"", + "fullTitle": "BO - International - States : Sort and pagination \"before all\" hook in \"BO - International - States : Sort and pagination\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf8bf709-9f3f-42b0-8cf5-e9d9e899d7d1", + "parentUUID": "96c2c46e-57dc-442a-8a56-463d5a4525b8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - States : Sort and pagination\"", + "fullTitle": "BO - International - States : Sort and pagination \"after all\" hook in \"BO - International - States : Sort and pagination\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "426b6bf9-016a-4034-956f-251e450e5d93", + "parentUUID": "96c2c46e-57dc-442a-8a56-463d5a4525b8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - States : Sort and pagination should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ba28555-2bff-4abe-a773-27155ded01bc", + "parentUUID": "96c2c46e-57dc-442a-8a56-463d5a4525b8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Locations' page", + "fullTitle": "BO - International - States : Sort and pagination should go to 'International > Locations' page", + "timedOut": false, + "duration": 3839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9567717a-49cd-4014-9bb8-cc62d9d7033e", + "parentUUID": "96c2c46e-57dc-442a-8a56-463d5a4525b8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'States' page", + "fullTitle": "BO - International - States : Sort and pagination should go to 'States' page", + "timedOut": false, + "duration": 862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_goToStatesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabStates(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(states_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55f11f83-0b4f-4356-a706-a358f3197963", + "parentUUID": "96c2c46e-57dc-442a-8a56-463d5a4525b8", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "8ba91601-4cee-4e47-9b83-5f764b237892", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the item number to 20 per page", + "fullTitle": "BO - International - States : Sort and pagination Pagination next and previous should change the item number to 20 per page", + "timedOut": false, + "duration": 247, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 18)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0935273c-106c-4ac0-872e-eb548d940b13", + "parentUUID": "8ba91601-4cee-4e47-9b83-5f764b237892", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - International - States : Sort and pagination Pagination next and previous should click on next", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 18)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff07ccc5-fbe7-4096-8be9-4a0fc6aab234", + "parentUUID": "8ba91601-4cee-4e47-9b83-5f764b237892", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - International - States : Sort and pagination Pagination next and previous should click on previous", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 18)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d01e52a2-cc6c-452c-a8f6-33c62dd79df2", + "parentUUID": "8ba91601-4cee-4e47-9b83-5f764b237892", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 1000 per page", + "fullTitle": "BO - International - States : Sort and pagination Pagination next and previous should change the item number to 1000 per page", + "timedOut": false, + "duration": 378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_changeItemNumberTo1000\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo1000', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.selectPaginationLimit(page, 100)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 4)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0869d778-f27d-4660-ab1c-46f5fb12f955", + "parentUUID": "8ba91601-4cee-4e47-9b83-5f764b237892", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0935273c-106c-4ac0-872e-eb548d940b13", + "ff07ccc5-fbe7-4096-8be9-4a0fc6aab234", + "d01e52a2-cc6c-452c-a8f6-33c62dd79df2", + "0869d778-f27d-4660-ab1c-46f5fb12f955" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2235, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "title": "Sort states table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/02_locations/03_states/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/02_locations/03_states/04_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by country 'Canada'", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should filter by country 'Canada'", + "timedOut": false, + "duration": 1088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_filterBeforeSort\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeSort', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.filterStates(page, 'select', 'id_country', countries_1.default.canada.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, states_1.default.selectPaginationLimit(page, 100)];\n case 3:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c20229a-9e49-4ecd-a34f-4e74cc1816dd", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_state' 'desc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'id_state' 'desc' And check result", + "timedOut": false, + "duration": 2985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a79efd3f-f677-47e6-9e86-d99598604347", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'name' 'asc' And check result", + "timedOut": false, + "duration": 2997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByCountryAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dd75131-10ae-43cc-8071-9c9a9e4da681", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'name' 'desc' And check result", + "timedOut": false, + "duration": 3016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByCountryDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cafa1be9-884c-4b5a-a3d2-1d65a484eaaa", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'iso_code' 'asc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'iso_code' 'asc' And check result", + "timedOut": false, + "duration": 3000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByIsoCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45afad28-65cc-456b-a7e7-38960e47e4bc", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'iso_code' 'desc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'iso_code' 'desc' And check result", + "timedOut": false, + "duration": 2989, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByIsoCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cadb298-a577-4108-9daf-10450cfdf01d", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_zone' 'asc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'id_zone' 'asc' And check result", + "timedOut": false, + "duration": 2997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByCallPrefixAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cf18731-af30-4c1d-9df9-04da95dbe6d3", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_zone' 'desc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'id_zone' 'desc' And check result", + "timedOut": false, + "duration": 2991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByCallPrefixDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7428a17a-2842-4a66-bd3b-090409c842e1", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_country' 'asc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'id_country' 'asc' And check result", + "timedOut": false, + "duration": 3029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByZoneAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48029ea7-c8b2-4572-944b-e6622642ab7e", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_country' 'desc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'id_country' 'desc' And check result", + "timedOut": false, + "duration": 2990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByZoneDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd40140d-5450-4859-80b0-b8691642dc7f", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_state' 'asc' And check result", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should sort by 'id_state' 'asc' And check result", + "timedOut": false, + "duration": 2997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, states_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, states_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "463d2c1a-3870-4a93-93d6-c0398f71dd6d", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should reset all filters", + "timedOut": false, + "duration": 3011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_resetFilterAfterSort\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStates;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterSort', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStates = _a.sent();\n (0, chai_1.expect)(numberOfStates).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "240c030d-7b89-4470-8c0d-781b890ab664", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 50 per page", + "fullTitle": "BO - International - States : Sort and pagination Sort states table should change the item number to 50 per page", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_locations_states_sortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, states_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 8)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa8cc3aa-e474-43d5-876a-7b5e3eafa935", + "parentUUID": "7efaa6d6-940f-4402-8fcc-c08013c50e18", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9c20229a-9e49-4ecd-a34f-4e74cc1816dd", + "a79efd3f-f677-47e6-9e86-d99598604347", + "3dd75131-10ae-43cc-8071-9c9a9e4da681", + "cafa1be9-884c-4b5a-a3d2-1d65a484eaaa", + "45afad28-65cc-456b-a7e7-38960e47e4bc", + "0cadb298-a577-4108-9daf-10450cfdf01d", + "4cf18731-af30-4c1d-9df9-04da95dbe6d3", + "7428a17a-2842-4a66-bd3b-090409c842e1", + "48029ea7-c8b2-4572-944b-e6622642ab7e", + "dd40140d-5450-4859-80b0-b8691642dc7f", + "463d2c1a-3870-4a93-93d6-c0398f71dd6d", + "240c030d-7b89-4470-8c0d-781b890ab664", + "aa8cc3aa-e474-43d5-876a-7b5e3eafa935" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34374, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0ba28555-2bff-4abe-a773-27155ded01bc", + "9567717a-49cd-4014-9bb8-cc62d9d7033e", + "55f11f83-0b4f-4356-a706-a358f3197963" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6411, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "5fb56998-3096-47ca-9abc-466cb1459acc", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 389, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d578b0b9-5f7d-467d-8ab9-829df087d4a6", + "parentUUID": "5fb56998-3096-47ca-9abc-466cb1459acc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74f408aa-08e7-4753-a94e-c7816d835bd8", + "parentUUID": "5fb56998-3096-47ca-9abc-466cb1459acc", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35c1a688-b2c4-4647-be23-663efe830f1b", + "parentUUID": "5fb56998-3096-47ca-9abc-466cb1459acc", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b8cc5d41-1a71-4a83-88aa-db9dae40eb20", + "title": "BO - International - Taxes : Filter And Quick Edit", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/01_filterAndQuickEditTaxes.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/01_filterAndQuickEditTaxes.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Taxes : Filter And Quick Edit\"", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit \"before all\" hook in \"BO - International - Taxes : Filter And Quick Edit\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8db026f5-688f-43d1-ab9f-95771733c78d", + "parentUUID": "b8cc5d41-1a71-4a83-88aa-db9dae40eb20", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Taxes : Filter And Quick Edit\"", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit \"after all\" hook in \"BO - International - Taxes : Filter And Quick Edit\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "63569988-07d6-4887-bc5e-be4a21c45122", + "parentUUID": "b8cc5d41-1a71-4a83-88aa-db9dae40eb20", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit should login in BO", + "timedOut": false, + "duration": 6504, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15cf3b17-e43d-48d2-95be-e09500a59ff9", + "parentUUID": "b8cc5d41-1a71-4a83-88aa-db9dae40eb20", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ba7a40e-70b1-418b-b9f5-b620cfcb8a14", + "parentUUID": "b8cc5d41-1a71-4a83-88aa-db9dae40eb20", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get Number of Taxes in BO", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit should reset all filters and get Number of Taxes in BO", + "timedOut": false, + "duration": 2019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxes = _a.sent();\n (0, chai_1.expect)(numberOfTaxes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eec81653-1a57-45c0-8b20-78d0885b3cf6", + "parentUUID": "b8cc5d41-1a71-4a83-88aa-db9dae40eb20", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "title": "Filter Taxes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/01_filterAndQuickEditTaxes.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/01_filterAndQuickEditTaxes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_tax '1'", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Filter Taxes should filter by id_tax '1'", + "timedOut": false, + "duration": 1059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterFilter, i, taxStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter and check number of element\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter and check number of element\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterFilter).to.be.at.most(numberOfTaxes);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfTaxesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, taxes_1.default.getStatus(page, i)];\n case 5:\n taxStatus = _a.sent();\n (0, chai_1.expect)(taxStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d215b269-8353-44d4-a074-b58c9dae4b27", + "parentUUID": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Filter Taxes should reset all filters", + "timedOut": false, + "duration": 349, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.equal(numberOfTaxes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "384e24a4-a035-4e6e-857e-1fca13e2aaae", + "parentUUID": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'TVA FR 20%'", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Filter Taxes should filter by name 'TVA FR 20%'", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterFilter, i, taxStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter and check number of element\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter and check number of element\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterFilter).to.be.at.most(numberOfTaxes);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfTaxesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, taxes_1.default.getStatus(page, i)];\n case 5:\n taxStatus = _a.sent();\n (0, chai_1.expect)(taxStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4908772-579b-4d33-935e-0f2ca5f320de", + "parentUUID": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Filter Taxes should reset all filters", + "timedOut": false, + "duration": 330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.equal(numberOfTaxes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7055f4dc-0f96-4129-b0fa-eba4860ea5b0", + "parentUUID": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by rate '20'", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Filter Taxes should filter by rate '20'", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterRate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterFilter, i, taxStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter and check number of element\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter and check number of element\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterFilter).to.be.at.most(numberOfTaxes);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfTaxesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, taxes_1.default.getStatus(page, i)];\n case 5:\n taxStatus = _a.sent();\n (0, chai_1.expect)(taxStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cdb3826-cbf0-4997-a600-669a2518a829", + "parentUUID": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Filter Taxes should reset all filters", + "timedOut": false, + "duration": 399, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterRateReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.equal(numberOfTaxes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ac53a07-444b-4d5a-a32c-45096505017d", + "parentUUID": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Filter Taxes should filter by active '1'", + "timedOut": false, + "duration": 1053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterFilter, i, taxStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n // Filter and check number of element\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n // Filter and check number of element\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterFilter).to.be.at.most(numberOfTaxes);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfTaxesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterBy === 'active')) return [3 /*break*/, 6];\n return [4 /*yield*/, taxes_1.default.getStatus(page, i)];\n case 5:\n taxStatus = _a.sent();\n (0, chai_1.expect)(taxStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, i, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n i++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3521e943-7cd1-4995-85d0-8129a7e009b5", + "parentUUID": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Filter Taxes should reset all filters", + "timedOut": false, + "duration": 354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterActiveReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.equal(numberOfTaxes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1354f768-ef8a-4b25-9408-742bf4dcd280", + "parentUUID": "e3a512ae-650e-49b0-b026-327cca9fbb2c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d215b269-8353-44d4-a074-b58c9dae4b27", + "384e24a4-a035-4e6e-857e-1fca13e2aaae", + "a4908772-579b-4d33-935e-0f2ca5f320de", + "7055f4dc-0f96-4129-b0fa-eba4860ea5b0", + "9cdb3826-cbf0-4997-a600-669a2518a829", + "8ac53a07-444b-4d5a-a32c-45096505017d", + "3521e943-7cd1-4995-85d0-8129a7e009b5", + "1354f768-ef8a-4b25-9408-742bf4dcd280" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5424, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c96045ec-48a4-488a-abbe-dc371a1ad499", + "title": "Quick Edit Taxes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/01_filterAndQuickEditTaxes.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/01_filterAndQuickEditTaxes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Quick Edit Taxes should filter by name", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_filterForQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, 'input', 'name', tax_1.default.DefaultFrTax.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterFilter).to.be.at.most(numberOfTaxes);\n return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, 1, 'name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(tax_1.default.DefaultFrTax.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "147acd40-8cf4-43c9-b07e-bae0ca1a0106", + "parentUUID": "c96045ec-48a4-488a-abbe-dc371a1ad499", + "isHook": false, + "skipped": false + }, + { + "title": "should disable first tax", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Quick Edit Taxes should disable first tax", + "timedOut": false, + "duration": 312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_disableTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, taxStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Tax\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, taxes_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(taxes_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, taxes_1.default.getStatus(page, 1)];\n case 5:\n taxStatus = _a.sent();\n (0, chai_1.expect)(taxStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9907d5e-3eca-48d1-b792-566a9fee8412", + "parentUUID": "c96045ec-48a4-488a-abbe-dc371a1ad499", + "isHook": false, + "skipped": false + }, + { + "title": "should enable first tax", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Quick Edit Taxes should enable first tax", + "timedOut": false, + "duration": 306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_enableTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, taxStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Tax\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, taxes_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(taxes_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, taxes_1.default.getStatus(page, 1)];\n case 5:\n taxStatus = _a.sent();\n (0, chai_1.expect)(taxStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f52b0444-58d2-4489-9e85-3f6e038428c8", + "parentUUID": "c96045ec-48a4-488a-abbe-dc371a1ad499", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Filter And Quick Edit Quick Edit Taxes should reset all filters", + "timedOut": false, + "duration": 342, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_filterAndQuickEditTaxes_resetAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.equal(numberOfTaxes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d1e608c-92c8-4537-abac-aeac8e8af6d8", + "parentUUID": "c96045ec-48a4-488a-abbe-dc371a1ad499", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "147acd40-8cf4-43c9-b07e-bae0ca1a0106", + "a9907d5e-3eca-48d1-b792-566a9fee8412", + "f52b0444-58d2-4489-9e85-3f6e038428c8", + "1d1e608c-92c8-4537-abac-aeac8e8af6d8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1876, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "15cf3b17-e43d-48d2-95be-e09500a59ff9", + "0ba7a40e-70b1-418b-b9f5-b620cfcb8a14", + "eec81653-1a57-45c0-8b20-78d0885b3cf6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12944, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7a8588fe-6480-48bd-8b75-c387e2749de2", + "title": "BO - International - Taxes : Create, Update and Delete Tax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/02_CRUDTaxesInBO.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/02_CRUDTaxesInBO.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Taxes : Create, Update and Delete Tax\"", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax \"before all\" hook in \"BO - International - Taxes : Create, Update and Delete Tax\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b91eafc-6655-420e-8652-01d9702f1597", + "parentUUID": "7a8588fe-6480-48bd-8b75-c387e2749de2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Taxes : Create, Update and Delete Tax\"", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax \"after all\" hook in \"BO - International - Taxes : Create, Update and Delete Tax\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bff3195f-4dd3-4fb9-afcd-20945e7e0e00", + "parentUUID": "7a8588fe-6480-48bd-8b75-c387e2749de2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax should login in BO", + "timedOut": false, + "duration": 1782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af85e345-b836-4775-af5e-1fafa6cc0218", + "parentUUID": "7a8588fe-6480-48bd-8b75-c387e2749de2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d299c077-c25a-4ba7-98f5-664101160114", + "parentUUID": "7a8588fe-6480-48bd-8b75-c387e2749de2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxes = _a.sent();\n (0, chai_1.expect)(numberOfTaxes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bf7cecf-1fd9-47ce-88de-5d07871ae8de", + "parentUUID": "7a8588fe-6480-48bd-8b75-c387e2749de2", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "20972543-b478-4976-8edd-5e59cc97b40e", + "title": "Create tax in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/02_CRUDTaxesInBO.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/02_CRUDTaxesInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax page", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Create tax in BO should go to add new tax page", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_goToNewTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToAddNewTaxPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3165a4f3-234c-4f45-86df-ce945d6ad55f", + "parentUUID": "20972543-b478-4976-8edd-5e59cc97b40e", + "isHook": false, + "skipped": false + }, + { + "title": "should create Tax and check result", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Create tax in BO should create Tax and check result", + "timedOut": false, + "duration": 1416, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_createTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTaxesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTax(page, createTaxData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterCreation).to.be.equal(numberOfTaxes + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7758f6f8-1a3a-4dbe-9d2d-6f8e59804ae1", + "parentUUID": "20972543-b478-4976-8edd-5e59cc97b40e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3165a4f3-234c-4f45-86df-ce945d6ad55f", + "7758f6f8-1a3a-4dbe-9d2d-6f8e59804ae1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1e3ae6ce-f4fc-4a03-af8a-3ae4b7b3e0dd", + "title": "Update Tax Created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/02_CRUDTaxesInBO.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/02_CRUDTaxesInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by tax name", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Update Tax Created should filter list by tax name", + "timedOut": false, + "duration": 903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_filterByNameToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByNameToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, 'input', 'name', createTaxData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, 1, 'name')];\n case 3:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(createTaxData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16a4fb92-0af8-4344-9a44-ebfbc1fe2491", + "parentUUID": "1e3ae6ce-f4fc-4a03-af8a-3ae4b7b3e0dd", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by tax rate", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Update Tax Created should filter list by tax rate", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_filterByRateToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textRate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByRateToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, 'input', 'rate', createTaxData.rate)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, 1, 'rate')];\n case 3:\n textRate = _a.sent();\n (0, chai_1.expect)(textRate).to.contains(createTaxData.rate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d1c9d2d-9a46-4a37-9ea7-68837c356f42", + "parentUUID": "1e3ae6ce-f4fc-4a03-af8a-3ae4b7b3e0dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit tax page", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Update Tax Created should go to edit tax page", + "timedOut": false, + "duration": 775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_goToEditPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToEditTaxPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0055d7af-8e2e-4dae-9240-08ba71d4d833", + "parentUUID": "1e3ae6ce-f4fc-4a03-af8a-3ae4b7b3e0dd", + "isHook": false, + "skipped": false + }, + { + "title": "should update tax", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Update Tax Created should update tax", + "timedOut": false, + "duration": 1443, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_updateTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTax(page, editTaxData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(taxes_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e45d45c3-8edf-4f3b-9d7c-2dc33bc3af76", + "parentUUID": "1e3ae6ce-f4fc-4a03-af8a-3ae4b7b3e0dd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Update Tax Created should reset all filters", + "timedOut": false, + "duration": 368, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_resetAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.equal(numberOfTaxes + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c91a331-f65a-4bef-a63e-d9a1573cb407", + "parentUUID": "1e3ae6ce-f4fc-4a03-af8a-3ae4b7b3e0dd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "16a4fb92-0af8-4344-9a44-ebfbc1fe2491", + "7d1c9d2d-9a46-4a37-9ea7-68837c356f42", + "0055d7af-8e2e-4dae-9240-08ba71d4d833", + "e45d45c3-8edf-4f3b-9d7c-2dc33bc3af76", + "4c91a331-f65a-4bef-a63e-d9a1573cb407" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4340, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "947e04a8-4af8-459a-8ea6-3cacaba6b3fc", + "title": "Delete Tax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/02_CRUDTaxesInBO.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/02_CRUDTaxesInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by Tax name", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Delete Tax should filter list by Tax name", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_filterByNameToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByNameToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, 'input', 'name', editTaxData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, 1, 'name')];\n case 3:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(editTaxData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fd13b3a-ca9b-4a08-9802-c2a707190002", + "parentUUID": "947e04a8-4af8-459a-8ea6-3cacaba6b3fc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by tax rate", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Delete Tax should filter list by tax rate", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_filterByRateToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textRate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByRateToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, 'input', 'rate', editTaxData.rate)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, 1, 'rate')];\n case 3:\n textRate = _a.sent();\n (0, chai_1.expect)(textRate).to.contains(editTaxData.rate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "786a6197-482b-41b6-8338-9dc3abc4fb88", + "parentUUID": "947e04a8-4af8-459a-8ea6-3cacaba6b3fc", + "isHook": false, + "skipped": false + }, + { + "title": "should delete Tax", + "fullTitle": "BO - International - Taxes : Create, Update and Delete Tax Delete Tax should delete Tax", + "timedOut": false, + "duration": 1769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_CRUDTaxesInBO_deleteTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTaxesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.deleteTax(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(taxes_1.default.successfulDeleteMessage);\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfTaxesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterDelete).to.be.equal(numberOfTaxes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6aad8062-8e55-4674-b67b-3055678533b8", + "parentUUID": "947e04a8-4af8-459a-8ea6-3cacaba6b3fc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3fd13b3a-ca9b-4a08-9802-c2a707190002", + "786a6197-482b-41b6-8338-9dc3abc4fb88", + "6aad8062-8e55-4674-b67b-3055678533b8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3560, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "af85e345-b836-4775-af5e-1fafa6cc0218", + "d299c077-c25a-4ba7-98f5-664101160114", + "0bf7cecf-1fd9-47ce-88de-5d07871ae8de" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7811, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a9a881ba-c6f2-4f3e-a846-c01b627de348", + "title": "BO - International - Taxes : Bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/03_taxesBulkActionsInBO.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/03_taxesBulkActionsInBO.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Taxes : Bulk actions\"", + "fullTitle": "BO - International - Taxes : Bulk actions \"before all\" hook in \"BO - International - Taxes : Bulk actions\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "374a71aa-daf3-44da-9982-66f56f86759f", + "parentUUID": "a9a881ba-c6f2-4f3e-a846-c01b627de348", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Taxes : Bulk actions\"", + "fullTitle": "BO - International - Taxes : Bulk actions \"after all\" hook in \"BO - International - Taxes : Bulk actions\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0f7b39c7-3617-4066-bf3a-ee63d0ed41e2", + "parentUUID": "a9a881ba-c6f2-4f3e-a846-c01b627de348", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Taxes : Bulk actions should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35f2924c-ba46-4018-b80e-21ffd299389c", + "parentUUID": "a9a881ba-c6f2-4f3e-a846-c01b627de348", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - International - Taxes : Bulk actions should go to 'International > Taxes' page", + "timedOut": false, + "duration": 3890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13c2237e-a73e-4afc-b820-efae5d7cf0ac", + "parentUUID": "a9a881ba-c6f2-4f3e-a846-c01b627de348", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Bulk actions should reset all filters", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxes = _a.sent();\n (0, chai_1.expect)(numberOfTaxes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe53b71f-17b4-4fbe-9562-efe75b4b0669", + "parentUUID": "a9a881ba-c6f2-4f3e-a846-c01b627de348", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "52c77629-4d94-4648-8ee2-3af46e42a46e", + "title": "Create 2 Taxes in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/03_taxesBulkActionsInBO.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/03_taxesBulkActionsInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax page", + "fullTitle": "BO - International - Taxes : Bulk actions Create 2 Taxes in BO should go to add new tax page", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_goToNewTaxPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewTaxPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToAddNewTaxPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50a5ce1a-eb3b-44ee-8029-9efc6dedb8a8", + "parentUUID": "52c77629-4d94-4648-8ee2-3af46e42a46e", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax and check result", + "fullTitle": "BO - International - Taxes : Bulk actions Create 2 Taxes in BO should create tax and check result", + "timedOut": false, + "duration": 1406, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_CreateTax1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTaxesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateTax\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTax(page, test.args.taxToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(taxes_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterCreation).to.be.equal(numberOfTaxes + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f48ea90-19be-4bb1-9bd1-d667d1a9fa85", + "parentUUID": "52c77629-4d94-4648-8ee2-3af46e42a46e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tax page", + "fullTitle": "BO - International - Taxes : Bulk actions Create 2 Taxes in BO should go to add new tax page", + "timedOut": false, + "duration": 724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_goToNewTaxPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewTaxPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToAddNewTaxPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "231faafc-9f60-490f-9590-2dc6cc35cb18", + "parentUUID": "52c77629-4d94-4648-8ee2-3af46e42a46e", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax and check result", + "fullTitle": "BO - International - Taxes : Bulk actions Create 2 Taxes in BO should create tax and check result", + "timedOut": false, + "duration": 1417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_CreateTax2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTaxesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateTax\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTax(page, test.args.taxToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(taxes_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterCreation).to.be.equal(numberOfTaxes + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7928b3f0-d263-41ee-ac55-67c6d388aed1", + "parentUUID": "52c77629-4d94-4648-8ee2-3af46e42a46e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "50a5ce1a-eb3b-44ee-8029-9efc6dedb8a8", + "4f48ea90-19be-4bb1-9bd1-d667d1a9fa85", + "231faafc-9f60-490f-9590-2dc6cc35cb18", + "7928b3f0-d263-41ee-ac55-67c6d388aed1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4313, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d74865f2-6853-49b7-b7d3-a6927ebef949", + "title": "Enable and Disable Taxes with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/03_taxesBulkActionsInBO.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/03_taxesBulkActionsInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - Taxes : Bulk actions Enable and Disable Taxes with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_filterTaxesToChangeStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterTaxesToChangeStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, 'input', 'name', 'TVA to delete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('TVA to delete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51961352-2814-4c9c-9ed6-ded1f03f4b58", + "parentUUID": "d74865f2-6853-49b7-b7d3-a6927ebef949", + "isHook": false, + "skipped": false + }, + { + "title": "should disable taxes with bulk actions and check Result", + "fullTitle": "BO - International - Taxes : Bulk actions Enable and Disable Taxes with Bulk Actions should disable taxes with bulk actions and check Result", + "timedOut": false, + "duration": 455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_bulkdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTaxesInGrid, i, taxStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(taxes_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfTaxesInGrid).to.be.at.most(numberOfTaxes);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfTaxesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxes_1.default.getStatus(page, i)];\n case 5:\n taxStatus = _a.sent();\n (0, chai_1.expect)(taxStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7665ee9f-6a92-41db-8893-fde4299d71e2", + "parentUUID": "d74865f2-6853-49b7-b7d3-a6927ebef949", + "isHook": false, + "skipped": false + }, + { + "title": "should enable taxes with bulk actions and check Result", + "fullTitle": "BO - International - Taxes : Bulk actions Enable and Disable Taxes with Bulk Actions should enable taxes with bulk actions and check Result", + "timedOut": false, + "duration": 437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_bulkenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTaxesInGrid, i, taxStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(taxes_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, taxes_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTaxesInGrid = _a.sent();\n (0, chai_1.expect)(numberOfTaxesInGrid).to.be.at.most(numberOfTaxes);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfTaxesInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxes_1.default.getStatus(page, i)];\n case 5:\n taxStatus = _a.sent();\n (0, chai_1.expect)(taxStatus).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87692ee7-a9d1-41d0-baaa-848a530cdf87", + "parentUUID": "d74865f2-6853-49b7-b7d3-a6927ebef949", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Taxes : Bulk actions Enable and Disable Taxes with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 348, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_resetAfterBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.be.equal(numberOfTaxes + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2db50ca8-2b42-4450-bb6d-6caed805252e", + "parentUUID": "d74865f2-6853-49b7-b7d3-a6927ebef949", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "51961352-2814-4c9c-9ed6-ded1f03f4b58", + "7665ee9f-6a92-41db-8893-fde4299d71e2", + "87692ee7-a9d1-41d0-baaa-848a530cdf87", + "2db50ca8-2b42-4450-bb6d-6caed805252e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2140, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bda7047b-930d-43fe-96c7-afeb7d9c9f08", + "title": "Delete Taxes with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/03_taxesBulkActionsInBO.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/03_taxesBulkActionsInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - Taxes : Bulk actions Delete Taxes with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.filterTaxes(page, 'input', 'name', 'TVA to delete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getTextColumnFromTableTaxes(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('TVA to delete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bd24b97-8d44-49a9-8f10-94747076caf0", + "parentUUID": "bda7047b-930d-43fe-96c7-afeb7d9c9f08", + "isHook": false, + "skipped": false + }, + { + "title": "should delete Taxes with Bulk Actions and check Result", + "fullTitle": "BO - International - Taxes : Bulk actions Delete Taxes with Bulk Actions should delete Taxes with Bulk Actions and check Result", + "timedOut": false, + "duration": 1843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxesBulkActionsInBO_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult, numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.deleteTaxesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(taxes_1.default.successfulDeleteMessage);\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.be.equal(numberOfTaxes);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe146e7e-efea-4d37-a181-59ca921fed7a", + "parentUUID": "bda7047b-930d-43fe-96c7-afeb7d9c9f08", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0bd24b97-8d44-49a9-8f10-94747076caf0", + "fe146e7e-efea-4d37-a181-59ca921fed7a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2840, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "35f2924c-ba46-4018-b80e-21ffd299389c", + "13c2237e-a73e-4afc-b820-efae5d7cf0ac", + "fe53b71f-17b4-4fbe-9562-efe75b4b0669" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7617, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1f850e49-c38b-42f1-8e2d-a08b727617cd", + "title": "BO - International - Taxes : Edit Tax options with all EcoTax values", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/04_taxOptionsForm.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/04_taxOptionsForm.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Taxes : Edit Tax options with all EcoTax values\"", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values \"before all\" hook in \"BO - International - Taxes : Edit Tax options with all EcoTax values\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85c0ba1e-4bfb-47b5-8432-c7e57cbc3590", + "parentUUID": "1f850e49-c38b-42f1-8e2d-a08b727617cd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Taxes : Edit Tax options with all EcoTax values\"", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values \"after all\" hook in \"BO - International - Taxes : Edit Tax options with all EcoTax values\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d81babee-f1e2-4c82-b2ea-aa6de3b64963", + "parentUUID": "1f850e49-c38b-42f1-8e2d-a08b727617cd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bd0f517-4bd5-4990-920f-ef9577647c26", + "parentUUID": "1f850e49-c38b-42f1-8e2d-a08b727617cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38721daf-ae28-4371-bb96-cd9150803112", + "parentUUID": "1f850e49-c38b-42f1-8e2d-a08b727617cd", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "613072a5-4890-4570-ac8a-155c591afef4", + "title": "Edit tax options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/04_taxOptionsForm.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/04_taxOptionsForm.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'null'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'null'", + "timedOut": false, + "duration": 502, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10111dd2-98a9-4391-8ea0-add94a3b8e38", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'EU VAT For Virtual Products'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'EU VAT For Virtual Products'", + "timedOut": false, + "duration": 419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e2a6491-4302-4a82-9f32-3f59898ffd48", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux réduit (10%)'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux réduit (10%)'", + "timedOut": false, + "duration": 415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "543f8a4b-479e-474e-8411-fca86417714b", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux réduit (5.5%)'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux réduit (5.5%)'", + "timedOut": false, + "duration": 422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64f677c1-4efb-4bfb-8b79-f43bde8af5fe", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux standard (20%)'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux standard (20%)'", + "timedOut": false, + "duration": 401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f7ed3fe-2b44-4e79-ad0b-bcd5bf6cdab6", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux super réduit (2.1%)'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux super réduit (2.1%)'", + "timedOut": false, + "duration": 419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b7c7a4d-b69d-4da4-9ab1-721be27f7ce3", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'EU VAT For Virtual Products'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'EU VAT For Virtual Products'", + "timedOut": false, + "duration": 421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65d3a7a3-8d46-4456-b00f-bf0c9d898bea", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux réduit (10%)'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux réduit (10%)'", + "timedOut": false, + "duration": 417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e3b63cc-a9f2-411b-be10-285f16c38fa2", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux réduit (5.5%)'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux réduit (5.5%)'", + "timedOut": false, + "duration": 414, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "084f2f8d-2272-4b4d-83bd-082f5319ed2c", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux standard (20%)'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux standard (20%)'", + "timedOut": false, + "duration": 418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8a0c50e-39db-4a64-aef3-e8dc2018a30f", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux super réduit (2.1%)'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'FR Taux super réduit (2.1%)'", + "timedOut": false, + "duration": 413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d4623a2-3084-4867-8dd2-0bd8021152b9", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'No tax'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Invoice address',\n \tUse ecotax: 'true',\n \tEcotax: 'No tax'", + "timedOut": false, + "duration": 411, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7c86229-4bcf-4869-aa4e-7159cea0fca0", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + }, + { + "title": "should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'false',\n \tEcotax: 'null'", + "fullTitle": "BO - International - Taxes : Edit Tax options with all EcoTax values Edit tax options should edit Tax Option,\n \tEnable Tax:true,\n \tDisplay tax in the shopping cart: 'false',\n \tBased on: 'Delivery address',\n \tUse ecotax: 'false',\n \tEcotax: 'null'", + "timedOut": false, + "duration": 436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_taxOptionsForm_updateForm13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateForm\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.updateTaxOption(page, taxOption)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12cb6313-bb8b-4c79-979a-26c35545be0d", + "parentUUID": "613072a5-4890-4570-ac8a-155c591afef4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "10111dd2-98a9-4391-8ea0-add94a3b8e38", + "8e2a6491-4302-4a82-9f32-3f59898ffd48", + "543f8a4b-479e-474e-8411-fca86417714b", + "64f677c1-4efb-4bfb-8b79-f43bde8af5fe", + "5f7ed3fe-2b44-4e79-ad0b-bcd5bf6cdab6", + "0b7c7a4d-b69d-4da4-9ab1-721be27f7ce3", + "65d3a7a3-8d46-4456-b00f-bf0c9d898bea", + "2e3b63cc-a9f2-411b-be10-285f16c38fa2", + "084f2f8d-2272-4b4d-83bd-082f5319ed2c", + "a8a0c50e-39db-4a64-aef3-e8dc2018a30f", + "6d4623a2-3084-4867-8dd2-0bd8021152b9", + "f7c86229-4bcf-4869-aa4e-7159cea0fca0", + "12cb6313-bb8b-4c79-979a-26c35545be0d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5508, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "7bd0f517-4bd5-4990-920f-ef9577647c26", + "38721daf-ae28-4371-bb96-cd9150803112" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6604, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c879a3f4-e604-4bf5-bbb7-419313b33251", + "title": "BO - International - Taxes : Sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/05_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Taxes : Sort and pagination\"", + "fullTitle": "BO - International - Taxes : Sort and pagination \"before all\" hook in \"BO - International - Taxes : Sort and pagination\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f08850b-c2e1-4afa-a0d5-0339b9db114d", + "parentUUID": "c879a3f4-e604-4bf5-bbb7-419313b33251", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Taxes : Sort and pagination\"", + "fullTitle": "BO - International - Taxes : Sort and pagination \"after all\" hook in \"BO - International - Taxes : Sort and pagination\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9f4635df-a3f5-4ef0-9ab8-70f14b4bbb62", + "parentUUID": "c879a3f4-e604-4bf5-bbb7-419313b33251", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Taxes : Sort and pagination should login in BO", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a583eba-91ac-46c5-bb7c-5234d80293ac", + "parentUUID": "c879a3f4-e604-4bf5-bbb7-419313b33251", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - International - Taxes : Sort and pagination should go to 'International > Taxes' page", + "timedOut": false, + "duration": 3903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dcea68f-f1d2-49a6-8a1a-2e1bc16cc539", + "parentUUID": "c879a3f4-e604-4bf5-bbb7-419313b33251", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get Number of Taxes in BO", + "fullTitle": "BO - International - Taxes : Sort and pagination should reset all filters and get Number of Taxes in BO", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxes = _a.sent();\n (0, chai_1.expect)(numberOfTaxes).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5dcd0ca-6eb1-4209-a347-ed299033fbe5", + "parentUUID": "c879a3f4-e604-4bf5-bbb7-419313b33251", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "c0ef3a49-7638-4b5b-b3cc-e3689475e31d", + "title": "Sort taxes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_tax' 'desc' And check result", + "fullTitle": "BO - International - Taxes : Sort and pagination Sort taxes should sort by 'id_tax' 'desc' And check result", + "timedOut": false, + "duration": 3370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n // Get sorted table\n return [4 /*yield*/, taxes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n // Get sorted table\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76686960-a83d-4508-9218-f371af478700", + "parentUUID": "c0ef3a49-7638-4b5b-b3cc-e3689475e31d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' And check result", + "fullTitle": "BO - International - Taxes : Sort and pagination Sort taxes should sort by 'name' 'asc' And check result", + "timedOut": false, + "duration": 3356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n // Get sorted table\n return [4 /*yield*/, taxes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n // Get sorted table\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78fd8db9-6a94-4499-905a-a31b983290aa", + "parentUUID": "c0ef3a49-7638-4b5b-b3cc-e3689475e31d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' And check result", + "fullTitle": "BO - International - Taxes : Sort and pagination Sort taxes should sort by 'name' 'desc' And check result", + "timedOut": false, + "duration": 3319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n // Get sorted table\n return [4 /*yield*/, taxes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n // Get sorted table\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "baba2174-5586-416a-a6b8-26c128990389", + "parentUUID": "c0ef3a49-7638-4b5b-b3cc-e3689475e31d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'rate' 'asc' And check result", + "fullTitle": "BO - International - Taxes : Sort and pagination Sort taxes should sort by 'rate' 'asc' And check result", + "timedOut": false, + "duration": 3425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_sortByRateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n // Get sorted table\n return [4 /*yield*/, taxes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n // Get sorted table\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cf11f86-8702-45dd-9d61-a8ad6a9a48c3", + "parentUUID": "c0ef3a49-7638-4b5b-b3cc-e3689475e31d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'rate' 'desc' And check result", + "fullTitle": "BO - International - Taxes : Sort and pagination Sort taxes should sort by 'rate' 'desc' And check result", + "timedOut": false, + "duration": 3383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_sortByRateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n // Get sorted table\n return [4 /*yield*/, taxes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n // Get sorted table\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11993866-c2a0-4914-b121-0877034fcc91", + "parentUUID": "c0ef3a49-7638-4b5b-b3cc-e3689475e31d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_tax' 'asc' And check result", + "fullTitle": "BO - International - Taxes : Sort and pagination Sort taxes should sort by 'id_tax' 'asc' And check result", + "timedOut": false, + "duration": 3352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n // Get sorted table\n return [4 /*yield*/, taxes_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n // Get sorted table\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a53a017-0862-4211-80de-dbc234a7631a", + "parentUUID": "c0ef3a49-7638-4b5b-b3cc-e3689475e31d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76686960-a83d-4508-9218-f371af478700", + "78fd8db9-6a94-4499-905a-a31b983290aa", + "baba2174-5586-416a-a6b8-26c128990389", + "5cf11f86-8702-45dd-9d61-a8ad6a9a48c3", + "11993866-c2a0-4914-b121-0877034fcc91", + "7a53a017-0862-4211-80de-dbc234a7631a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20205, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "21681068-8ce9-48c3-82e2-94aa6235f327", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/01_taxes/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/01_taxes/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the item number to 10 per page", + "fullTitle": "BO - International - Taxes : Sort and pagination Pagination next and previous should change the item number to 10 per page", + "timedOut": false, + "duration": 223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 4)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e5e99ba-e21b-452a-8fe1-f95aa27b1507", + "parentUUID": "21681068-8ce9-48c3-82e2-94aa6235f327", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - International - Taxes : Sort and pagination Pagination next and previous should click on next", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 4)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf844203-1465-4b35-911d-55b4384d5b16", + "parentUUID": "21681068-8ce9-48c3-82e2-94aa6235f327", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - International - Taxes : Sort and pagination Pagination next and previous should click on previous", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 4)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dccafca-dec2-4d60-ba12-e1af66734086", + "parentUUID": "21681068-8ce9-48c3-82e2-94aa6235f327", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 50 per page", + "fullTitle": "BO - International - Taxes : Sort and pagination Pagination next and previous should change the item number to 50 per page", + "timedOut": false, + "duration": 256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxes_sortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b384c4aa-5e04-4c32-ad73-c0df3deb05c8", + "parentUUID": "21681068-8ce9-48c3-82e2-94aa6235f327", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e5e99ba-e21b-452a-8fe1-f95aa27b1507", + "cf844203-1465-4b35-911d-55b4384d5b16", + "1dccafca-dec2-4d60-ba12-e1af66734086", + "b384c4aa-5e04-4c32-ad73-c0df3deb05c8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2090, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "6a583eba-91ac-46c5-bb7c-5234d80293ac", + "4dcea68f-f1d2-49a6-8a1a-2e1bc16cc539", + "d5dcd0ca-6eb1-4209-a347-ed299033fbe5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7660, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0b977afa-ff6c-49a2-8327-48170bf0dcbe", + "title": "BO - International - Tax rules : Create, Update and Delete Tax rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/01_CRUDTaxRules.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/01_CRUDTaxRules.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Tax rules : Create, Update and Delete Tax rule\"", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule \"before all\" hook in \"BO - International - Tax rules : Create, Update and Delete Tax rule\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09a243ef-a127-4405-bca3-bc8762107069", + "parentUUID": "0b977afa-ff6c-49a2-8327-48170bf0dcbe", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Tax rules : Create, Update and Delete Tax rule\"", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule \"after all\" hook in \"BO - International - Tax rules : Create, Update and Delete Tax rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6708e906-e608-48d4-ba91-86981b61a691", + "parentUUID": "0b977afa-ff6c-49a2-8327-48170bf0dcbe", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22de7ca8-77d6-436e-94b0-e35c1252b0d0", + "parentUUID": "0b977afa-ff6c-49a2-8327-48170bf0dcbe", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "85105d1c-b438-4f4b-a6d5-103e78768b73", + "title": "Create Tax Rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/01_CRUDTaxRules.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/01_CRUDTaxRules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Create Tax Rule should go to 'International > Taxes' page", + "timedOut": false, + "duration": 3911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4af20948-abc2-4a07-aafb-2dc02ede24be", + "parentUUID": "85105d1c-b438-4f4b-a6d5-103e78768b73", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Tax Rules' page", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Create Tax Rule should go to 'Tax Rules' page", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_goToTaxRulesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxRulesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "050b559e-52b9-4634-aca8-e4a1d288545c", + "parentUUID": "85105d1c-b438-4f4b-a6d5-103e78768b73", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of Tax rules in BO", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Create Tax Rule should reset all filters and get number of Tax rules in BO", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxRules = _a.sent();\n (0, chai_1.expect)(numberOfTaxRules).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95e0396d-ba7e-46c6-8114-34c79e04062d", + "parentUUID": "85105d1c-b438-4f4b-a6d5-103e78768b73", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Add new tax rules group page", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Create Tax Rule should go to Add new tax rules group page", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_goToAddTaxRulePageToCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddTaxRulePageToCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "086e5c7a-baa2-4bdd-9b08-2cf278b53ff6", + "parentUUID": "85105d1c-b438-4f4b-a6d5-103e78768b73", + "isHook": false, + "skipped": false + }, + { + "title": "should create new tax rule group", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Create Tax Rule should create new tax rule group", + "timedOut": false, + "duration": 1171, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_createTaxRuleGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createTaxRuleGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleDataToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e778b37a-524a-4e65-bd01-b7d01c049c4f", + "parentUUID": "85105d1c-b438-4f4b-a6d5-103e78768b73", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4af20948-abc2-4a07-aafb-2dc02ede24be", + "050b559e-52b9-4634-aca8-e4a1d288545c", + "95e0396d-ba7e-46c6-8114-34c79e04062d", + "086e5c7a-baa2-4bdd-9b08-2cf278b53ff6", + "e778b37a-524a-4e65-bd01-b7d01c049c4f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6767, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "61d57bef-b688-48fa-8e68-9048dec0a3a4", + "title": "Update Tax Rule created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/01_CRUDTaxRules.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/01_CRUDTaxRules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Tax Rules' page", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Update Tax Rule created should go to 'Tax Rules' page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_goToTaxRulesPageToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxRulesPageToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6233f40e-8a44-4285-b305-dc71b4a0eeea", + "parentUUID": "61d57bef-b688-48fa-8e68-9048dec0a3a4", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by tax name", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Update Tax Rule created should filter list by tax name", + "timedOut": false, + "duration": 372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_filterByNameToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByNameToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, 'input', 'name', taxRuleDataToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(taxRuleDataToCreate.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "733139b9-6cab-46f6-8b0b-c28f2584fc2a", + "parentUUID": "61d57bef-b688-48fa-8e68-9048dec0a3a4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit tax Rule page", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Update Tax Rule created should go to edit tax Rule page", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_goToEditPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToEditTaxRulePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b63768a-5202-472d-9485-d4b7649928e2", + "parentUUID": "61d57bef-b688-48fa-8e68-9048dec0a3a4", + "isHook": false, + "skipped": false + }, + { + "title": "should update tax", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Update Tax Rule created should update tax", + "timedOut": false, + "duration": 1109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_updateTaxRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateTaxRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleDataToEdit)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adc9ddcb-9f72-4648-939d-d2d55564cb4c", + "parentUUID": "61d57bef-b688-48fa-8e68-9048dec0a3a4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Tax Rules' page", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Update Tax Rule created should go to 'Tax Rules' page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_goToTaxRulesPageToReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxRulesPageToReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0cb25c2-bb7a-489e-b9b8-f5b530e5b4ca", + "parentUUID": "61d57bef-b688-48fa-8e68-9048dec0a3a4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Update Tax Rule created should reset all filters", + "timedOut": false, + "duration": 2856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_resetAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTaxRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxRulesAfterReset).to.equal(numberOfTaxRules + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e4f4684-6554-4d09-9216-ccbf58e0c517", + "parentUUID": "61d57bef-b688-48fa-8e68-9048dec0a3a4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6233f40e-8a44-4285-b305-dc71b4a0eeea", + "733139b9-6cab-46f6-8b0b-c28f2584fc2a", + "7b63768a-5202-472d-9485-d4b7649928e2", + "adc9ddcb-9f72-4648-939d-d2d55564cb4c", + "d0cb25c2-bb7a-489e-b9b8-f5b530e5b4ca", + "5e4f4684-6554-4d09-9216-ccbf58e0c517" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6829, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19c2bd56-2653-4b18-a0fb-ca0edf26b725", + "title": "Delete Tax Rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/01_CRUDTaxRules.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/01_CRUDTaxRules.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by tax name", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Delete Tax Rule should filter list by tax name", + "timedOut": false, + "duration": 361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_filterByNameToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByNameToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, 'input', 'name', taxRuleDataToEdit.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textName = _a.sent();\n (0, chai_1.expect)(textName).to.contains(taxRuleDataToEdit.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6304d56-ab49-4979-a230-949249135ad1", + "parentUUID": "19c2bd56-2653-4b18-a0fb-ca0edf26b725", + "isHook": false, + "skipped": false + }, + { + "title": "should delete Tax", + "fullTitle": "BO - International - Tax rules : Create, Update and Delete Tax rule Delete Tax Rule should delete Tax", + "timedOut": false, + "duration": 4313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_CRUDTaxRules_deleteTaxRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTaxRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteTaxRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.deleteTaxRule(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(taxRules_1.default.successfulDeleteMessage);\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfTaxRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfTaxRulesAfterDelete).to.be.equal(numberOfTaxRules);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5d009ce-0d81-4e48-b30f-0490564abced", + "parentUUID": "19c2bd56-2653-4b18-a0fb-ca0edf26b725", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d6304d56-ab49-4979-a230-949249135ad1", + "b5d009ce-0d81-4e48-b30f-0490564abced" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4674, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "22de7ca8-77d6-436e-94b0-e35c1252b0d0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1711, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0ee8eca2-a15b-4b74-ae51-808cea54d703", + "title": "BO - International - Tax rules : Filter, sort and pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Tax rules : Filter, sort and pagination\"", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination \"before all\" hook in \"BO - International - Tax rules : Filter, sort and pagination\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06ad5837-546a-4b78-848f-0bbb6df83b23", + "parentUUID": "0ee8eca2-a15b-4b74-ae51-808cea54d703", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Tax rules : Filter, sort and pagination\"", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination \"after all\" hook in \"BO - International - Tax rules : Filter, sort and pagination\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b713433b-e658-45f8-af28-74788459c5f1", + "parentUUID": "0ee8eca2-a15b-4b74-ae51-808cea54d703", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination should login in BO", + "timedOut": false, + "duration": 1693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89f4d55b-9bd8-4345-807c-12ca65564336", + "parentUUID": "0ee8eca2-a15b-4b74-ae51-808cea54d703", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination should go to 'International > Taxes' page", + "timedOut": false, + "duration": 3876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "996e7e2a-d1c8-43d0-8895-1fa730131deb", + "parentUUID": "0ee8eca2-a15b-4b74-ae51-808cea54d703", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Tax Rules' page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination should go to 'Tax Rules' page", + "timedOut": false, + "duration": 783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToTaxRulesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxRulesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4446b762-6f6c-4833-976c-4065272fba74", + "parentUUID": "0ee8eca2-a15b-4b74-ae51-808cea54d703", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of Tax rules in BO", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination should reset all filters and get number of Tax rules in BO", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxRules = _a.sent();\n (0, chai_1.expect)(numberOfTaxRules).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1871c6f4-fa63-457c-b602-efe99a9f21b6", + "parentUUID": "0ee8eca2-a15b-4b74-ae51-808cea54d703", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "23387954-9ee9-48f0-8d7e-187e42e35e81", + "title": "Filter tax rules table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_tax_rules_group '4'", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Filter tax rules table should filter by id_tax_rules_group '4'", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfTaxRules);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78cb2902-99fe-4c79-86d7-bbc4c3c18560", + "parentUUID": "23387954-9ee9-48f0-8d7e-187e42e35e81", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Filter tax rules table should reset all filters", + "timedOut": false, + "duration": 2852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_filterByIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfTaxRules);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1eb95cec-774a-48da-ba13-837aed5f0b44", + "parentUUID": "23387954-9ee9-48f0-8d7e-187e42e35e81", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'FR Taux réduit (10%)'", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Filter tax rules table should filter by name 'FR Taux réduit (10%)'", + "timedOut": false, + "duration": 363, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_filterByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfTaxRules);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cc88e50-304d-43c3-8e9c-3bf2aefb89bb", + "parentUUID": "23387954-9ee9-48f0-8d7e-187e42e35e81", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Filter tax rules table should reset all filters", + "timedOut": false, + "duration": 2845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_filterByNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfTaxRules);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2906d709-3b32-4a16-9790-ff4ead85b394", + "parentUUID": "23387954-9ee9-48f0-8d7e-187e42e35e81", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Filter tax rules table should filter by active '1'", + "timedOut": false, + "duration": 584, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_filterByStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfTaxRules);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4068423-9ce9-4b29-9612-91bc8787337d", + "parentUUID": "23387954-9ee9-48f0-8d7e-187e42e35e81", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Filter tax rules table should reset all filters", + "timedOut": false, + "duration": 2835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_filterByStatusReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfTaxRules);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4954b5d4-e816-44d2-8c88-447192f0e275", + "parentUUID": "23387954-9ee9-48f0-8d7e-187e42e35e81", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "78cb2902-99fe-4c79-86d7-bbc4c3c18560", + "1eb95cec-774a-48da-ba13-837aed5f0b44", + "1cc88e50-304d-43c3-8e9c-3bf2aefb89bb", + "2906d709-3b32-4a16-9790-ff4ead85b394", + "e4068423-9ce9-4b29-9612-91bc8787337d", + "4954b5d4-e816-44d2-8c88-447192f0e275" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9816, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "275a5938-2b7a-4370-989f-1974bca9c2c9", + "title": "Sort tax rules table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_tax_rules_group' 'down' and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Sort tax rules table should sort by 'id_tax_rules_group' 'down' and check result", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, taxRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7796cd12-ccdb-4931-add9-ccfa68c2b815", + "parentUUID": "275a5938-2b7a-4370-989f-1974bca9c2c9", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'up' and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Sort tax rules table should sort by 'name' 'up' and check result", + "timedOut": false, + "duration": 868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, taxRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5c6dae0-1fb8-46cd-9bca-4c41413be74b", + "parentUUID": "275a5938-2b7a-4370-989f-1974bca9c2c9", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'down' and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Sort tax rules table should sort by 'name' 'down' and check result", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, taxRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "584f9c49-c390-4a29-baec-6f8b0a47a3ae", + "parentUUID": "275a5938-2b7a-4370-989f-1974bca9c2c9", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_tax_rules_group' 'up' and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Sort tax rules table should sort by 'id_tax_rules_group' 'up' and check result", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, taxRules_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4321eee6-54a7-4b9c-85b0-a2dc028d8a19", + "parentUUID": "275a5938-2b7a-4370-989f-1974bca9c2c9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7796cd12-ccdb-4931-add9-ccfa68c2b815", + "a5c6dae0-1fb8-46cd-9bca-4c41413be74b", + "584f9c49-c390-4a29-baec-6f8b0a47a3ae", + "4321eee6-54a7-4b9c-85b0-a2dc028d8a19" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3480, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e548d740-7202-4997-b94d-9c0c9f1aecd6", + "title": "Create tax rule n°1 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°1 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "773b2e4f-8118-4ee3-b0f9-b4c331dd0b51", + "parentUUID": "e548d740-7202-4997-b94d-9c0c9f1aecd6", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°1 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d8dc996-a1ed-4934-a08b-22395266be54", + "parentUUID": "e548d740-7202-4997-b94d-9c0c9f1aecd6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "773b2e4f-8118-4ee3-b0f9-b4c331dd0b51", + "1d8dc996-a1ed-4934-a08b-22395266be54" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2680, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a2de405e-3580-4c5c-939b-091c3255b61e", + "title": "Create tax rule n°2 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°2 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a31d424-6b81-4a35-a70b-93cd95cb5a79", + "parentUUID": "a2de405e-3580-4c5c-939b-091c3255b61e", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°2 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95dd01ca-54d7-4758-bcbc-fdc17b1aaf9f", + "parentUUID": "a2de405e-3580-4c5c-939b-091c3255b61e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5a31d424-6b81-4a35-a70b-93cd95cb5a79", + "95dd01ca-54d7-4758-bcbc-fdc17b1aaf9f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2742, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b3911728-0fb2-4259-ba0b-1579edd0a3ac", + "title": "Create tax rule n°3 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°3 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b21dd83e-e516-4524-b059-7f4c864ca52f", + "parentUUID": "b3911728-0fb2-4259-ba0b-1579edd0a3ac", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°3 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6962318c-3b97-4db8-ab5c-b830d641a7a4", + "parentUUID": "b3911728-0fb2-4259-ba0b-1579edd0a3ac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b21dd83e-e516-4524-b059-7f4c864ca52f", + "6962318c-3b97-4db8-ab5c-b830d641a7a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2689, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c674118c-ed40-4557-8454-5531b24c0a70", + "title": "Create tax rule n°4 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°4 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee1d2f45-b93d-47f6-9510-b0e3559cbad9", + "parentUUID": "c674118c-ed40-4557-8454-5531b24c0a70", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°4 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3251ce68-9464-451b-9f6e-b02544e5d82f", + "parentUUID": "c674118c-ed40-4557-8454-5531b24c0a70", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ee1d2f45-b93d-47f6-9510-b0e3559cbad9", + "3251ce68-9464-451b-9f6e-b02544e5d82f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2670, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "984870ee-2c32-4cd0-acfa-a410664970a4", + "title": "Create tax rule n°5 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°5 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14682535-6928-427b-b856-f248d386f2ac", + "parentUUID": "984870ee-2c32-4cd0-acfa-a410664970a4", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°5 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e246aa4f-1eab-45c8-8352-6c2d400de73c", + "parentUUID": "984870ee-2c32-4cd0-acfa-a410664970a4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "14682535-6928-427b-b856-f248d386f2ac", + "e246aa4f-1eab-45c8-8352-6c2d400de73c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2683, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eda19e39-bd9c-4708-ae3b-22718cde1fc2", + "title": "Create tax rule n°6 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°6 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db41c919-77db-4ebc-a61d-c30515ebeef0", + "parentUUID": "eda19e39-bd9c-4708-ae3b-22718cde1fc2", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°6 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "625a89ea-867f-42d5-a0ba-3e92036772ad", + "parentUUID": "eda19e39-bd9c-4708-ae3b-22718cde1fc2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db41c919-77db-4ebc-a61d-c30515ebeef0", + "625a89ea-867f-42d5-a0ba-3e92036772ad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2711, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "94a24a5b-3a0e-4055-b1ab-ffbb08ac66a6", + "title": "Create tax rule n°7 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°7 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95852881-e902-440e-a3f5-cd2511e05e76", + "parentUUID": "94a24a5b-3a0e-4055-b1ab-ffbb08ac66a6", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°7 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c2781cd-c5a1-4306-a6db-e29db80dd7f9", + "parentUUID": "94a24a5b-3a0e-4055-b1ab-ffbb08ac66a6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "95852881-e902-440e-a3f5-cd2511e05e76", + "0c2781cd-c5a1-4306-a6db-e29db80dd7f9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2740, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60ad4965-1082-4e70-819f-b1127061e2fc", + "title": "Create tax rule n°8 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°8 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e14f0a90-3cb4-434f-9270-30c879438f55", + "parentUUID": "60ad4965-1082-4e70-819f-b1127061e2fc", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°8 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38599646-e4e2-454f-ab89-901fadb7e660", + "parentUUID": "60ad4965-1082-4e70-819f-b1127061e2fc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e14f0a90-3cb4-434f-9270-30c879438f55", + "38599646-e4e2-454f-ab89-901fadb7e660" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2719, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f3e63f4c-b3d7-4c63-95a3-40f87dbfb4af", + "title": "Create tax rule n°9 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°9 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a587159b-6558-434f-81a5-5831b2429506", + "parentUUID": "f3e63f4c-b3d7-4c63-95a3-40f87dbfb4af", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°9 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa8d94a0-df02-4168-8531-ddc2ae4bb240", + "parentUUID": "f3e63f4c-b3d7-4c63-95a3-40f87dbfb4af", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a587159b-6558-434f-81a5-5831b2429506", + "aa8d94a0-df02-4168-8531-ddc2ae4bb240" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2727, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "765a8669-eb5d-471d-9c10-646f15d1fce1", + "title": "Create tax rule n°10 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°10 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5756556e-10d5-4eaa-ac3f-4c1e454ab62e", + "parentUUID": "765a8669-eb5d-471d-9c10-646f15d1fce1", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°10 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f2ff4de-f0e3-4c6d-96ba-5723d63c5a0b", + "parentUUID": "765a8669-eb5d-471d-9c10-646f15d1fce1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5756556e-10d5-4eaa-ac3f-4c1e454ab62e", + "9f2ff4de-f0e3-4c6d-96ba-5723d63c5a0b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2693, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e950f425-9d88-4393-8b39-b9a29c3ce95d", + "title": "Create tax rule n°11 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°11 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e465528a-076f-4dfe-b669-07c79c00cfe8", + "parentUUID": "e950f425-9d88-4393-8b39-b9a29c3ce95d", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°11 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c54d700a-2f6d-4d94-91e3-12feff3582e1", + "parentUUID": "e950f425-9d88-4393-8b39-b9a29c3ce95d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e465528a-076f-4dfe-b669-07c79c00cfe8", + "c54d700a-2f6d-4d94-91e3-12feff3582e1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2759, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "33e996f1-ea07-4787-9154-95d927b8f007", + "title": "Create tax rule n°12 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°12 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36921501-b93a-49b8-bcd9-a576fd98af9c", + "parentUUID": "33e996f1-ea07-4787-9154-95d927b8f007", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°12 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b6af820-7921-44c3-b3bd-442d39ce5d84", + "parentUUID": "33e996f1-ea07-4787-9154-95d927b8f007", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "36921501-b93a-49b8-bcd9-a576fd98af9c", + "3b6af820-7921-44c3-b3bd-442d39ce5d84" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2712, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "705db0a3-aadb-4d0a-8a1b-49899b9815df", + "title": "Create tax rule n°13 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°13 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6948f5a2-1d10-46d9-85b5-23838fdf1eea", + "parentUUID": "705db0a3-aadb-4d0a-8a1b-49899b9815df", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°13 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a82dd426-5c6c-43d2-99fb-9bb356660187", + "parentUUID": "705db0a3-aadb-4d0a-8a1b-49899b9815df", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6948f5a2-1d10-46d9-85b5-23838fdf1eea", + "a82dd426-5c6c-43d2-99fb-9bb356660187" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2701, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "14eff4df-9714-41ae-8d53-41c96ed5c241", + "title": "Create tax rule n°14 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°14 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6c04d9f-5168-4d3e-aa81-d454356aeb60", + "parentUUID": "14eff4df-9714-41ae-8d53-41c96ed5c241", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°14 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3d5e5bb-e118-4eac-a780-f06eba8cb1e1", + "parentUUID": "14eff4df-9714-41ae-8d53-41c96ed5c241", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a6c04d9f-5168-4d3e-aa81-d454356aeb60", + "e3d5e5bb-e118-4eac-a780-f06eba8cb1e1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2702, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cb6d5e1c-ccab-4e4d-a1d4-50fa780c1f21", + "title": "Create tax rule n°15 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°15 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53ca26c5-437d-450f-af0f-9b974cae9d46", + "parentUUID": "cb6d5e1c-ccab-4e4d-a1d4-50fa780c1f21", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°15 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46886548-e07c-44ed-8a60-eae5383a95fb", + "parentUUID": "cb6d5e1c-ccab-4e4d-a1d4-50fa780c1f21", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "53ca26c5-437d-450f-af0f-9b974cae9d46", + "46886548-e07c-44ed-8a60-eae5383a95fb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2704, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bbb918d8-111c-47e5-b091-c665c341218a", + "title": "Create tax rule n°16 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule group page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°16 in BO should go to add new tax rule group page", + "timedOut": false, + "duration": 807, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_goToAddTaxRuleGroupPage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTaxRuleGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0cc95e8-c931-4cfa-8ebb-73b0c295caa1", + "parentUUID": "bbb918d8-111c-47e5-b091-c665c341218a", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule group and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Create tax rule n°16 in BO should create tax rule group and check result", + "timedOut": false, + "duration": 1913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_createTaxRule15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTaxRule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, taxRuleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfTaxRules + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70312612-4312-405f-b497-793c2a883042", + "parentUUID": "bbb918d8-111c-47e5-b091-c665c341218a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d0cc95e8-c931-4cfa-8ebb-73b0c295caa1", + "70312612-4312-405f-b497-793c2a883042" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2720, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7b4e54f0-af81-48d8-a6f2-34cce4c26f42", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the item number to 20 per page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Pagination next and previous should change the item number to 20 per page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b63a4fd3-0d2f-401e-9aa8-7d9e066c8639", + "parentUUID": "7b4e54f0-af81-48d8-a6f2-34cce4c26f42", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Pagination next and previous should click on next", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ff12ca2-3080-4b55-baba-194c06e6a98c", + "parentUUID": "7b4e54f0-af81-48d8-a6f2-34cce4c26f42", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Pagination next and previous should click on previous", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71446dc8-6dd2-4966-8cb6-b786c648e0c2", + "parentUUID": "7b4e54f0-af81-48d8-a6f2-34cce4c26f42", + "isHook": false, + "skipped": false + }, + { + "title": "should change the item number to 50 per page", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Pagination next and previous should change the item number to 50 per page", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2976b550-d7b4-4c1d-89b9-c2787b0639c5", + "parentUUID": "7b4e54f0-af81-48d8-a6f2-34cce4c26f42", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b63a4fd3-0d2f-401e-9aa8-7d9e066c8639", + "5ff12ca2-3080-4b55-baba-194c06e6a98c", + "71446dc8-6dd2-4966-8cb6-b786c648e0c2", + "2976b550-d7b4-4c1d-89b9-c2787b0639c5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3539, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ad0aa339-4d43-4176-991f-7ddb05bfba21", + "title": "Delete tax rules with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Delete tax rules with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9892af8c-caae-432d-b7ef-4a21336cfd43", + "parentUUID": "ad0aa339-4d43-4176-991f-7ddb05bfba21", + "isHook": false, + "skipped": false + }, + { + "title": "should delete tax rules with Bulk Actions and check result", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Delete tax rules with Bulk Actions should delete tax rules with Bulk Actions and check result", + "timedOut": false, + "duration": 1102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_bulkDeleteCarriers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCarriers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.bulkDeleteTaxRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(taxRules_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4055646a-7dcf-4336-9433-f8088fa82a5c", + "parentUUID": "ad0aa339-4d43-4176-991f-7ddb05bfba21", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Tax rules : Filter, sort and pagination Delete tax rules with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 2886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_filterSortAndPagination_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.be.equal(numberOfTaxRules);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "514b774c-e63c-4274-abe1-b1719c10d5b3", + "parentUUID": "ad0aa339-4d43-4176-991f-7ddb05bfba21", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9892af8c-caae-432d-b7ef-4a21336cfd43", + "4055646a-7dcf-4336-9433-f8088fa82a5c", + "514b774c-e63c-4274-abe1-b1719c10d5b3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4583, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "89f4d55b-9bd8-4345-807c-12ca65564336", + "996e7e2a-d1c8-43d0-8895-1fa730131deb", + "4446b762-6f6c-4833-976c-4065272fba74", + "1871c6f4-fa63-457c-b602-efe99a9f21b6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6376, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5ae3488c-54bc-40d9-bf5e-1efa8a0692c6", + "title": "BO - International - Tax rules : Bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - International - Tax rules : Bulk actions\"", + "fullTitle": "BO - International - Tax rules : Bulk actions \"before all\" hook in \"BO - International - Tax rules : Bulk actions\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a36a0da4-1580-41ad-ba40-5f03b6b78f76", + "parentUUID": "5ae3488c-54bc-40d9-bf5e-1efa8a0692c6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - International - Tax rules : Bulk actions\"", + "fullTitle": "BO - International - Tax rules : Bulk actions \"after all\" hook in \"BO - International - Tax rules : Bulk actions\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9ebd0af3-5965-4eb9-a275-da70167fa440", + "parentUUID": "5ae3488c-54bc-40d9-bf5e-1efa8a0692c6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - International - Tax rules : Bulk actions should login in BO", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61754834-ad9b-4311-b9c1-f1590b1c8df4", + "parentUUID": "5ae3488c-54bc-40d9-bf5e-1efa8a0692c6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - International - Tax rules : Bulk actions should go to 'International > Taxes' page", + "timedOut": false, + "duration": 3895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c956fda8-68c9-45af-b69e-41128c1a55e6", + "parentUUID": "5ae3488c-54bc-40d9-bf5e-1efa8a0692c6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Tax Rules' page", + "fullTitle": "BO - International - Tax rules : Bulk actions should go to 'Tax Rules' page", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_goToTaxRulesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxRulesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91143e34-a61a-4be7-8cbb-c0e793b85f59", + "parentUUID": "5ae3488c-54bc-40d9-bf5e-1efa8a0692c6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of Tax rules in BO", + "fullTitle": "BO - International - Tax rules : Bulk actions should reset all filters and get number of Tax rules in BO", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTaxRules = _a.sent();\n (0, chai_1.expect)(numberOfTaxRules).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b5cb678-77f1-441e-b203-def74faac44e", + "parentUUID": "5ae3488c-54bc-40d9-bf5e-1efa8a0692c6", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "06da098b-cca2-40b8-98c0-f5b0c9fe0730", + "title": "Create 2 Tax rules in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tax rule page", + "fullTitle": "BO - International - Tax rules : Bulk actions Create 2 Tax rules in BO should go to add new tax rule page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_goToNewTaxRulePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewTaxRulePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84765e27-8315-4ff9-b8f2-cedd3f632439", + "parentUUID": "06da098b-cca2-40b8-98c0-f5b0c9fe0730", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule and check result", + "fullTitle": "BO - International - Tax rules : Bulk actions Create 2 Tax rules in BO should create tax rule and check result", + "timedOut": false, + "duration": 1089, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_CreateTax1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateTax\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, test.args.taxRuleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bdd7e05-dc4b-4f87-ad65-dd29205c5cb4", + "parentUUID": "06da098b-cca2-40b8-98c0-f5b0c9fe0730", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Tax Rules page", + "fullTitle": "BO - International - Tax rules : Bulk actions Create 2 Tax rules in BO should go to Tax Rules page", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_goToTaxRulesPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLineAfterCreation, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToTaxRulesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLineAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLineAfterCreation).to.be.equal(numberOfTaxRules + index + 1);\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "766e3ae4-8de7-4f47-8ef3-d801d4c182d8", + "parentUUID": "06da098b-cca2-40b8-98c0-f5b0c9fe0730", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tax rule page", + "fullTitle": "BO - International - Tax rules : Bulk actions Create 2 Tax rules in BO should go to add new tax rule page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_goToNewTaxRulePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewTaxRulePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88abea2a-7e88-489d-971a-bb42444b78f0", + "parentUUID": "06da098b-cca2-40b8-98c0-f5b0c9fe0730", + "isHook": false, + "skipped": false + }, + { + "title": "should create tax rule and check result", + "fullTitle": "BO - International - Tax rules : Bulk actions Create 2 Tax rules in BO should create tax rule and check result", + "timedOut": false, + "duration": 1048, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_CreateTax2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateTax\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTaxRulesGroup(page, test.args.taxRuleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afa2a9e8-965d-43ac-b7ca-035d4925c6d4", + "parentUUID": "06da098b-cca2-40b8-98c0-f5b0c9fe0730", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Tax Rules page", + "fullTitle": "BO - International - Tax rules : Bulk actions Create 2 Tax rules in BO should go to Tax Rules page", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_goToTaxRulesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLineAfterCreation, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToTaxRulesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLineAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLineAfterCreation).to.be.equal(numberOfTaxRules + index + 1);\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f96c1433-0a4e-4367-9ed9-887805cddcf1", + "parentUUID": "06da098b-cca2-40b8-98c0-f5b0c9fe0730", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "84765e27-8315-4ff9-b8f2-cedd3f632439", + "6bdd7e05-dc4b-4f87-ad65-dd29205c5cb4", + "766e3ae4-8de7-4f47-8ef3-d801d4c182d8", + "88abea2a-7e88-489d-971a-bb42444b78f0", + "afa2a9e8-965d-43ac-b7ca-035d4925c6d4", + "f96c1433-0a4e-4367-9ed9-887805cddcf1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5317, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3a1728ac-e26a-4000-b510-c5431f037c65", + "title": "Enable and Disable Tax rules by quick edit", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by quick edit should filter list by name", + "timedOut": false, + "duration": 349, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_filterTaxesToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterTaxesToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, 'input', 'name', firstTaxRuleData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(firstTaxRuleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7605d82e-b7bb-4c4f-ad98-6f79a4d0bd0c", + "parentUUID": "3a1728ac-e26a-4000-b510-c5431f037c65", + "isHook": false, + "skipped": false + }, + { + "title": "should disable tax rule", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by quick edit should disable tax rule", + "timedOut": false, + "duration": 422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_disableCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Category\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, taxRules_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(taxRules_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, taxRules_1.default.getStatus(page, 1)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "663b1a1e-f3f0-4d3e-9d9a-bb41f104c20f", + "parentUUID": "3a1728ac-e26a-4000-b510-c5431f037c65", + "isHook": false, + "skipped": false + }, + { + "title": "should enable tax rule", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by quick edit should enable tax rule", + "timedOut": false, + "duration": 422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_enableCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, status;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Category\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, taxRules_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(taxRules_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, taxRules_1.default.getStatus(page, 1)];\n case 5:\n status = _a.sent();\n (0, chai_1.expect)(status).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17036ac5-655e-42b3-ad34-92136921361d", + "parentUUID": "3a1728ac-e26a-4000-b510-c5431f037c65", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by quick edit should reset all filters", + "timedOut": false, + "duration": 2848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_resetAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.be.equal(numberOfTaxRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb9e38ab-93d8-4fe1-92f2-361390586bb7", + "parentUUID": "3a1728ac-e26a-4000-b510-c5431f037c65", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7605d82e-b7bb-4c4f-ad98-6f79a4d0bd0c", + "663b1a1e-f3f0-4d3e-9d9a-bb41f104c20f", + "17036ac5-655e-42b3-ad34-92136921361d", + "cb9e38ab-93d8-4fe1-92f2-361390586bb7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4041, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f5f66885-42a6-4088-805e-db31bbb6c0bd", + "title": "Enable and Disable Tax rules by Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by Bulk Actions should filter list by name", + "timedOut": false, + "duration": 344, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_filterTaxesToChangeStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterTaxesToChangeStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, 'input', 'name', test.args.taxRule)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(test.args.taxRule);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f8b88d1-d9bf-4fa3-ad0c-6de29f42ddd1", + "parentUUID": "f5f66885-42a6-4088-805e-db31bbb6c0bd", + "isHook": false, + "skipped": false + }, + { + "title": "should disable tax rules with bulk actions and check Result", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by Bulk Actions should disable tax rules with bulk actions and check Result", + "timedOut": false, + "duration": 1148, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_bulkdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(taxRules_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementInGrid = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxRules_1.default.getStatus(page, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64744b69-ff67-4faa-a410-51c64b8895e0", + "parentUUID": "f5f66885-42a6-4088-805e-db31bbb6c0bd", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by Bulk Actions should filter list by name", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_filterTaxesToChangeStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterTaxesToChangeStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, 'input', 'name', test.args.taxRule)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(test.args.taxRule);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64a3e21a-3428-4ee0-8f1f-6d4baf2e1c2b", + "parentUUID": "f5f66885-42a6-4088-805e-db31bbb6c0bd", + "isHook": false, + "skipped": false + }, + { + "title": "should enable tax rules with bulk actions and check Result", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by Bulk Actions should enable tax rules with bulk actions and check Result", + "timedOut": false, + "duration": 1063, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_bulkenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulk\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.bulkSetStatus(page, test.args.enabledValue)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(taxRules_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementInGrid = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxRules_1.default.getStatus(page, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.enabledValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e13714f5-e5bb-4459-add8-c0043bfa6040", + "parentUUID": "f5f66885-42a6-4088-805e-db31bbb6c0bd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - International - Tax rules : Bulk actions Enable and Disable Tax rules by Bulk Actions should reset all filters", + "timedOut": false, + "duration": 2851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_resetAfterBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.be.equal(numberOfTaxRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e5831dc-61df-4074-973e-6fb1f57d9325", + "parentUUID": "f5f66885-42a6-4088-805e-db31bbb6c0bd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f8b88d1-d9bf-4fa3-ad0c-6de29f42ddd1", + "64744b69-ff67-4faa-a410-51c64b8895e0", + "64a3e21a-3428-4ee0-8f1f-6d4baf2e1c2b", + "e13714f5-e5bb-4459-add8-c0043bfa6040", + "7e5831dc-61df-4074-973e-6fb1f57d9325" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5728, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5d703dc5-54be-4f4b-8038-27e52cc8327b", + "title": "Delete Tax rules with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/11_international/03_taxes/02_taxRules/03_quickEditAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - International - Tax rules : Bulk actions Delete Tax rules with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, 'input', 'name', 'toDelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains('toDelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20ce842a-67d8-4c09-b999-c61640abe0a2", + "parentUUID": "5d703dc5-54be-4f4b-8038-27e52cc8327b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete Taxes with Bulk Actions and check Result", + "fullTitle": "BO - International - Tax rules : Bulk actions Delete Tax rules with Bulk Actions should delete Taxes with Bulk Actions and check Result", + "timedOut": false, + "duration": 3898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_international_taxes_taxRules_quickEditAndBulkActions_bulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult, numberOfTaxesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.bulkDeleteTaxRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.contains(taxRules_1.default.successfulMultiDeleteMessage);\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfTaxesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTaxesAfterReset).to.be.equal(numberOfTaxRules);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ecb6199-236e-499a-9b6e-5eb33b83daf6", + "parentUUID": "5d703dc5-54be-4f4b-8038-27e52cc8327b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "20ce842a-67d8-4c09-b999-c61640abe0a2", + "7ecb6199-236e-499a-9b6e-5eb33b83daf6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4265, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "61754834-ad9b-4311-b9c1-f1590b1c8df4", + "c956fda8-68c9-45af-b69e-41128c1a55e6", + "91143e34-a61a-4be7-8cbb-c0e793b85f59", + "2b5cb678-77f1-441e-b203-def74faac44e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6430, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "60a169fa-8398-4682-b87b-f48dfb990aa9", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1103, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bef198b-0c22-418e-a643-0d6d358050d9", + "parentUUID": "60a169fa-8398-4682-b87b-f48dfb990aa9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4591b65b-3090-4830-b610-0ad446031759", + "parentUUID": "60a169fa-8398-4682-b87b-f48dfb990aa9", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "286c42f1-733b-4217-b9c2-fd876de5e51e", + "parentUUID": "60a169fa-8398-4682-b87b-f48dfb990aa9", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0d00c27a-d346-48d5-851a-e8f3af073382", + "title": "BO - Login : Password reminder", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "file": "/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Login : Password reminder\"", + "fullTitle": "BO - Login : Password reminder \"before all\" hook in \"BO - Login : Password reminder\"", + "timedOut": false, + "duration": 62, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b92783d7-f310-4f56-a495-4f1e333de331", + "parentUUID": "0d00c27a-d346-48d5-851a-e8f3af073382", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Login : Password reminder\"", + "fullTitle": "BO - Login : Password reminder \"after all\" hook in \"BO - Login : Password reminder\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "271b0dc3-72e8-4f58-902a-5d5e2d710076", + "parentUUID": "0d00c27a-d346-48d5-851a-e8f3af073382", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "516b50c7-0f71-41f6-bba8-74501134e104", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "file": "/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Login : Password reminder PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44711e92-a3a7-4449-a90c-4270e9ea88c3", + "parentUUID": "516b50c7-0f71-41f6-bba8-74501134e104", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Login : Password reminder PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "46d5b20e-f951-4e2e-8555-87b22f85b187", + "parentUUID": "516b50c7-0f71-41f6-bba8-74501134e104", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Login : Password reminder PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 6609, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10bd3838-be0c-436c-bcd2-c3e1a90bc1cb", + "parentUUID": "516b50c7-0f71-41f6-bba8-74501134e104", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Login : Password reminder PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 5358, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b637b7b-0b94-41a4-8fca-f8f594d7ff89", + "parentUUID": "516b50c7-0f71-41f6-bba8-74501134e104", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Login : Password reminder PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffe92350-70ca-42b2-88f6-0cc444165011", + "parentUUID": "516b50c7-0f71-41f6-bba8-74501134e104", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "10bd3838-be0c-436c-bcd2-c3e1a90bc1cb", + "1b637b7b-0b94-41a4-8fca-f8f594d7ff89", + "ffe92350-70ca-42b2-88f6-0cc444165011" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12673, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f92b08e9-b4cb-4c85-a633-cf489c28cfc2", + "title": "Go to BO and create a new employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "file": "/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Login : Password reminder Go to BO and create a new employee should login in BO", + "timedOut": false, + "duration": 1834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb7f9381-467c-4f37-a49a-8852fe133000", + "parentUUID": "f92b08e9-b4cb-4c85-a633-cf489c28cfc2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Login : Password reminder Go to BO and create a new employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_goToTeamPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTeamPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb7aeefc-786c-4ad0-89c3-ea984925feff", + "parentUUID": "f92b08e9-b4cb-4c85-a633-cf489c28cfc2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Login : Password reminder Go to BO and create a new employee should reset all filters and get number of employees", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7715abd-c93c-416c-8180-3cb53f58af1f", + "parentUUID": "f92b08e9-b4cb-4c85-a633-cf489c28cfc2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Login : Password reminder Go to BO and create a new employee should go to add new employee page", + "timedOut": false, + "duration": 873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_goToNewEmployeePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewEmployeePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc20a51a-310e-464c-99df-130d47df76fb", + "parentUUID": "f92b08e9-b4cb-4c85-a633-cf489c28cfc2", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee and check result", + "fullTitle": "BO - Login : Password reminder Go to BO and create a new employee should create employee and check result", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_createEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, createEmployeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3ba2809-0b9a-498f-bc7a-e7ade30a64fb", + "parentUUID": "f92b08e9-b4cb-4c85-a633-cf489c28cfc2", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Login : Password reminder Go to BO and create a new employee should logout from BO", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f07b15e-2d50-4cdd-8193-b462098c8c5d", + "parentUUID": "f92b08e9-b4cb-4c85-a633-cf489c28cfc2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bb7f9381-467c-4f37-a49a-8852fe133000", + "bb7aeefc-786c-4ad0-89c3-ea984925feff", + "b7715abd-c93c-416c-8180-3cb53f58af1f", + "fc20a51a-310e-464c-99df-130d47df76fb", + "e3ba2809-0b9a-498f-bc7a-e7ade30a64fb", + "9f07b15e-2d50-4cdd-8193-b462098c8c5d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c3251447-87ec-4603-80af-65ee51fb86c3", + "title": "Go to BO login page and use password reminder link", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "file": "/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO login page", + "fullTitle": "BO - Login : Password reminder Go to BO login page and use password reminder link should go to BO login page", + "timedOut": false, + "duration": 112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_goToBOLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBOLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6f949bf-9de5-41ff-857b-c66655f5d022", + "parentUUID": "c3251447-87ec-4603-80af-65ee51fb86c3", + "isHook": false, + "skipped": false + }, + { + "title": "should send reset password mail", + "fullTitle": "BO - Login : Password reminder Go to BO login page and use password reminder link should send reset password mail", + "timedOut": false, + "duration": 1500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_sendResetPasswordMailAndCheckSuccess\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successTextContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendResetPasswordMailAndCheckSuccess', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.sendResetPasswordLink(page, createEmployeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getResetPasswordSuccessMessage(page)];\n case 3:\n successTextContent = _a.sent();\n (0, chai_1.expect)(successTextContent).to.contains(login_1.default.resetPasswordSuccessText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c505d43-d675-4eb6-b41e-31f861eec2ff", + "parentUUID": "c3251447-87ec-4603-80af-65ee51fb86c3", + "isHook": false, + "skipped": false + }, + { + "title": "should check if reset password mail is in mailbox", + "fullTitle": "BO - Login : Password reminder Go to BO login page and use password reminder link should check if reset password mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_checkIfResetPasswordMailIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfResetPasswordMailIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains(resetPasswordMailSubject);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95317f76-11ab-4211-b1c1-49b814abbcee", + "parentUUID": "c3251447-87ec-4603-80af-65ee51fb86c3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e6f949bf-9de5-41ff-857b-c66655f5d022", + "9c505d43-d675-4eb6-b41e-31f861eec2ff", + "95317f76-11ab-4211-b1c1-49b814abbcee" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1612, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a5ad2377-ab2f-4b1a-8aa2-c08cfd0e25ae", + "title": "Go to BO and delete previously created employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "file": "/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Login : Password reminder Go to BO and delete previously created employee should login in BO", + "timedOut": false, + "duration": 1527, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e22dca52-0c94-4fd9-bf12-14a37e72948c", + "parentUUID": "a5ad2377-ab2f-4b1a-8aa2-c08cfd0e25ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Login : Password reminder Go to BO and delete previously created employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_goToEmployeesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37e78d89-0a72-4522-a6d2-ab2b94b292a5", + "parentUUID": "a5ad2377-ab2f-4b1a-8aa2-c08cfd0e25ae", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of employees by email", + "fullTitle": "BO - Login : Password reminder Go to BO and delete previously created employee should filter list of employees by email", + "timedOut": false, + "duration": 965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_filterEmployeesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmployeesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', createEmployeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createEmployeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec3029a9-921f-4417-88ee-8814b619dd7c", + "parentUUID": "a5ad2377-ab2f-4b1a-8aa2-c08cfd0e25ae", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employee", + "fullTitle": "BO - Login : Password reminder Go to BO and delete previously created employee should delete employee", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_deleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteEmployee(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9764395-6e99-4adc-bfe9-bdd6b0a78400", + "parentUUID": "a5ad2377-ab2f-4b1a-8aa2-c08cfd0e25ae", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of employees", + "fullTitle": "BO - Login : Password reminder Go to BO and delete previously created employee should reset filter and check the number of employees", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adf1258c-0cb6-4c03-a124-699a02856983", + "parentUUID": "a5ad2377-ab2f-4b1a-8aa2-c08cfd0e25ae", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e22dca52-0c94-4fd9-bf12-14a37e72948c", + "37e78d89-0a72-4522-a6d2-ab2b94b292a5", + "ec3029a9-921f-4417-88ee-8814b619dd7c", + "e9764395-6e99-4adc-bfe9-bdd6b0a78400", + "adf1258c-0cb6-4c03-a124-699a02856983" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7972, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2c870e9b-eed9-4237-8f34-80dd1f32ae12", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "file": "/campaigns/functional/BO/00_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Login : Password reminder POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d36ac8c-1058-41e4-8307-92265cdfe28a", + "parentUUID": "2c870e9b-eed9-4237-8f34-80dd1f32ae12", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Login : Password reminder POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7050a7d4-ba96-45b8-ae98-93a7e6ea1cd5", + "parentUUID": "2c870e9b-eed9-4237-8f34-80dd1f32ae12", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Login : Password reminder POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95e43c38-137d-4a2c-a55e-ae8598b67620", + "parentUUID": "2c870e9b-eed9-4237-8f34-80dd1f32ae12", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Login : Password reminder POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed39d8b8-284b-4b0e-ba74-d0a2c550bdaf", + "parentUUID": "2c870e9b-eed9-4237-8f34-80dd1f32ae12", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Login : Password reminder POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_passwordReminder_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e02dadd-cb97-4354-bb24-901a1e4bb24c", + "parentUUID": "2c870e9b-eed9-4237-8f34-80dd1f32ae12", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "95e43c38-137d-4a2c-a55e-ae8598b67620", + "ed39d8b8-284b-4b0e-ba74-d0a2c550bdaf", + "5e02dadd-cb97-4354-bb24-901a1e4bb24c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7019, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6e35c898-0127-4430-8642-8f3d067c4e48", + "title": "BO - Login : Login in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/00_login/02_login.ts", + "file": "/campaigns/functional/BO/00_login/02_login.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Login : Login in BO\"", + "fullTitle": "BO - Login : Login in BO \"before all\" hook in \"BO - Login : Login in BO\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bb1d585-6f04-417e-9700-ee577fc3b36f", + "parentUUID": "6e35c898-0127-4430-8642-8f3d067c4e48", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Login : Login in BO\"", + "fullTitle": "BO - Login : Login in BO \"after all\" hook in \"BO - Login : Login in BO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "338177a8-97fb-40ad-8a55-26980688239b", + "parentUUID": "6e35c898-0127-4430-8642-8f3d067c4e48", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the BO authentication page", + "fullTitle": "BO - Login : Login in BO should open the BO authentication page", + "timedOut": false, + "duration": 238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_login_openAuthenticationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openAuthenticationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba6206a6-c772-48e5-a113-58c1cddb81d9", + "parentUUID": "6e35c898-0127-4430-8642-8f3d067c4e48", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid credentials", + "fullTitle": "BO - Login : Login in BO should enter an invalid credentials", + "timedOut": false, + "duration": 274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_login_enterInvalidCredentials\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterInvalidCredentials', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.failedLogin(page, employeeData.email, employeeData.password)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getLoginError(page)];\n case 3:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.default.loginErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6e2d14c-70e3-4d2a-a0c8-67f9b048a5a2", + "parentUUID": "6e35c898-0127-4430-8642-8f3d067c4e48", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid email", + "fullTitle": "BO - Login : Login in BO should enter an invalid email", + "timedOut": false, + "duration": 978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_login_enterInvalidEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterInvalidEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.failedLogin(page, employeeData.email, employees_1.default.DefaultEmployee.password)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getLoginError(page)];\n case 3:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.default.loginErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f39fbf1d-ed1e-495b-bcba-3be4d60d25c6", + "parentUUID": "6e35c898-0127-4430-8642-8f3d067c4e48", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid password", + "fullTitle": "BO - Login : Login in BO should enter an invalid password", + "timedOut": false, + "duration": 327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_login_enterInvalidPassword\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterInvalidPassword', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.failedLogin(page, employees_1.default.DefaultEmployee.email, employeeData.password)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getLoginError(page)];\n case 3:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.default.loginErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66994e15-e8d3-4d62-a0a5-9e4c4ae4aee9", + "parentUUID": "6e35c898-0127-4430-8642-8f3d067c4e48", + "isHook": false, + "skipped": false + }, + { + "title": "should enter a valid credentials", + "fullTitle": "BO - Login : Login in BO should enter a valid credentials", + "timedOut": false, + "duration": 1531, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_login_enterValidCredentials\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterValidCredentials', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.successLogin(page, employees_1.default.DefaultEmployee.email, employees_1.default.DefaultEmployee.password)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc6af751-6681-41db-bd4c-366090e1ac2a", + "parentUUID": "6e35c898-0127-4430-8642-8f3d067c4e48", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ba6206a6-c772-48e5-a113-58c1cddb81d9", + "a6e2d14c-70e3-4d2a-a0c8-67f9b048a5a2", + "f39fbf1d-ed1e-495b-bcba-3be4d60d25c6", + "66994e15-e8d3-4d62-a0a5-9e4c4ae4aee9", + "bc6af751-6681-41db-bd4c-366090e1ac2a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3348, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d6376fb8-46f6-4711-918b-35104fa855a0", + "title": "BO - logout : log out from BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/00_login/03_logout.ts", + "file": "/campaigns/functional/BO/00_login/03_logout.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - logout : log out from BO\"", + "fullTitle": "BO - logout : log out from BO \"before all\" hook in \"BO - logout : log out from BO\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3e19693-ffab-4ee1-ac58-0b12cb951d64", + "parentUUID": "d6376fb8-46f6-4711-918b-35104fa855a0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - logout : log out from BO\"", + "fullTitle": "BO - logout : log out from BO \"after all\" hook in \"BO - logout : log out from BO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f161bc86-2175-461b-a619-6dda33dbcc68", + "parentUUID": "d6376fb8-46f6-4711-918b-35104fa855a0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - logout : log out from BO should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d61bdfe9-5961-449a-a638-432fe39051a4", + "parentUUID": "d6376fb8-46f6-4711-918b-35104fa855a0", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - logout : log out from BO should logout from BO", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "[\n {\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_login_logout_logoutFromBOPage\"\n },\n {\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n }\n]", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logoutFromBOPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea74215f-6b47-494f-8102-d0b3fe7bddcb", + "parentUUID": "d6376fb8-46f6-4711-918b-35104fa855a0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d61bdfe9-5961-449a-a638-432fe39051a4", + "ea74215f-6b47-494f-8102-d0b3fe7bddcb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3434, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "e0438c55-4ba0-4bfe-b63c-3101b2cb902c", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 329, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "352f4f4a-c835-44da-af39-bf1299301cb2", + "parentUUID": "e0438c55-4ba0-4bfe-b63c-3101b2cb902c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b7bd747-02f1-4fce-b741-bf656e4bb66c", + "parentUUID": "e0438c55-4ba0-4bfe-b63c-3101b2cb902c", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97bbd334-277f-4821-84bc-ee03e6db0c06", + "parentUUID": "e0438c55-4ba0-4bfe-b63c-3101b2cb902c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "60af9372-7261-44e3-9c8d-4cf057ff3cb8", + "title": "BO - Modules - Module Manager : Filter modules by status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/01_filterModulesByStatus.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/01_filterModulesByStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Filter modules by status\"", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status \"before all\" hook in \"BO - Modules - Module Manager : Filter modules by status\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73240ec6-011d-4743-9b04-8cc4417d1e57", + "parentUUID": "60af9372-7261-44e3-9c8d-4cf057ff3cb8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Filter modules by status\"", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status \"after all\" hook in \"BO - Modules - Module Manager : Filter modules by status\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2379ea3b-fb17-4261-a3c2-3ac6b68f3cc7", + "parentUUID": "60af9372-7261-44e3-9c8d-4cf057ff3cb8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status should login in BO", + "timedOut": false, + "duration": 6483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1df4a62b-ed16-44f6-907f-66f7b9bc5865", + "parentUUID": "60af9372-7261-44e3-9c8d-4cf057ff3cb8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6538, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByStatus_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "797fd8d3-9f52-4f72-bbf9-01e5b725ed47", + "parentUUID": "60af9372-7261-44e3-9c8d-4cf057ff3cb8", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6d1d4255-40d8-4342-ad2c-ee5dceeacfbf", + "title": "Filter modules by status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/01_filterModulesByStatus.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/01_filterModulesByStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should uninstall the module 'Contact form'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status Filter modules by status should uninstall the module 'Contact form'", + "timedOut": false, + "duration": 2505, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByStatus_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.contactForm, 'uninstall')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uninstallModuleSuccessMessage(modules_1.default.contactForm.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "830f2f0f-871a-439a-ba47-86277b99609a", + "parentUUID": "6d1d4255-40d8-4342-ad2c-ee5dceeacfbf", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by status : 'enabled'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status Filter modules by status should filter by status : 'enabled'", + "timedOut": false, + "duration": 621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByStatus_filterByStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modules;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByStatus(page, status)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getAllModulesStatus(page, status)];\n case 3:\n modules = _a.sent();\n modules.map(function (module) { return (0, chai_1.expect)(module.status, \"'\".concat(module.name, \"' is not \").concat(status)).to.eq(true); });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b8afda7-d18f-41ba-aa94-0b87460c4427", + "parentUUID": "6d1d4255-40d8-4342-ad2c-ee5dceeacfbf", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by status : 'disabled'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status Filter modules by status should filter by status : 'disabled'", + "timedOut": false, + "duration": 115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByStatus_filterByStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modules;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByStatus(page, status)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getAllModulesStatus(page, status)];\n case 3:\n modules = _a.sent();\n modules.map(function (module) { return (0, chai_1.expect)(module.status, \"'\".concat(module.name, \"' is not \").concat(status)).to.eq(true); });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14a19698-a4a5-483a-b4b4-4d69c64ffdc1", + "parentUUID": "6d1d4255-40d8-4342-ad2c-ee5dceeacfbf", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by status : 'installed'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status Filter modules by status should filter by status : 'installed'", + "timedOut": false, + "duration": 498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByStatus_filterByStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modules;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByStatus(page, status)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getAllModulesStatus(page, status)];\n case 3:\n modules = _a.sent();\n modules.map(function (module) { return (0, chai_1.expect)(module.status, \"'\".concat(module.name, \"' is not \").concat(status)).to.eq(true); });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d5509a8-802a-4fdb-be2c-ed5199f282a8", + "parentUUID": "6d1d4255-40d8-4342-ad2c-ee5dceeacfbf", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by status : 'uninstalled'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status Filter modules by status should filter by status : 'uninstalled'", + "timedOut": false, + "duration": 127, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByStatus_filterByStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modules;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByStatus(page, status)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getAllModulesStatus(page, status)];\n case 3:\n modules = _a.sent();\n modules.map(function (module) { return (0, chai_1.expect)(module.status, \"'\".concat(module.name, \"' is not \").concat(status)).to.eq(true); });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b09d6cdf-b114-4531-991a-eab643d01fb2", + "parentUUID": "6d1d4255-40d8-4342-ad2c-ee5dceeacfbf", + "isHook": false, + "skipped": false + }, + { + "title": "should install the module 'Contact form'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status Filter modules by status should install the module 'Contact form'", + "timedOut": false, + "duration": 10169, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByStatus_installModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'installModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.contactForm, 'install')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.installModuleSuccessMessage(modules_1.default.contactForm.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a87b8dd-320e-4f86-82fb-cfd3378765ad", + "parentUUID": "6d1d4255-40d8-4342-ad2c-ee5dceeacfbf", + "isHook": false, + "skipped": false + }, + { + "title": "should show all modules and check the different blocks", + "fullTitle": "BO - Modules - Module Manager : Filter modules by status Filter modules by status should show all modules and check the different blocks", + "timedOut": false, + "duration": 175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByStatus_showAllModules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var blocksNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'showAllModules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByStatus(page, 'all-Modules')];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getNumberOfBlocks(page)];\n case 3:\n blocksNumber = _a.sent();\n (0, chai_1.expect)(blocksNumber).greaterThan(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca18c060-42f6-45cd-b4f7-9e5c2551b1c9", + "parentUUID": "6d1d4255-40d8-4342-ad2c-ee5dceeacfbf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "830f2f0f-871a-439a-ba47-86277b99609a", + "5b8afda7-d18f-41ba-aa94-0b87460c4427", + "14a19698-a4a5-483a-b4b4-4d69c64ffdc1", + "5d5509a8-802a-4fdb-be2c-ed5199f282a8", + "b09d6cdf-b114-4531-991a-eab643d01fb2", + "7a87b8dd-320e-4f86-82fb-cfd3378765ad", + "ca18c060-42f6-45cd-b4f7-9e5c2551b1c9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "1df4a62b-ed16-44f6-907f-66f7b9bc5865", + "797fd8d3-9f52-4f72-bbf9-01e5b725ed47" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13021, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c87a374f-7ea0-49c9-b1d4-d87ef20b3d07", + "title": "BO - Modules - Module Manager : Filter modules by Categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/02_filterModulesByCategories.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/02_filterModulesByCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Filter modules by Categories\"", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories \"before all\" hook in \"BO - Modules - Module Manager : Filter modules by Categories\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6235962d-f151-48e1-b441-18259f3b0670", + "parentUUID": "c87a374f-7ea0-49c9-b1d4-d87ef20b3d07", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Filter modules by Categories\"", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories \"after all\" hook in \"BO - Modules - Module Manager : Filter modules by Categories\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "27104e59-19dd-4d29-81bb-8907421f719e", + "parentUUID": "c87a374f-7ea0-49c9-b1d4-d87ef20b3d07", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories should login in BO", + "timedOut": false, + "duration": 2358, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0adf1689-306f-415e-b36d-fbb75efacde1", + "parentUUID": "c87a374f-7ea0-49c9-b1d4-d87ef20b3d07", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByCategories_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f265f750-eebb-4c2d-8aea-d173278e7d4d", + "parentUUID": "c87a374f-7ea0-49c9-b1d4-d87ef20b3d07", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "42a69f18-005d-40ea-ad59-5c7bac1a859a", + "title": "Filter modules by categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/02_filterModulesByCategories.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/02_filterModulesByCategories.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by category : 'Administration'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories Filter modules by categories should filter by category : 'Administration'", + "timedOut": false, + "duration": 167, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByCategories_filterByCategoryAdministration\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstBlockTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByCategory\".concat(category), baseContext)];\n case 1:\n _a.sent();\n // Filter modules by categories\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByCategory(page, category)];\n case 2:\n // Filter modules by categories\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getBlockModuleTitle(page, 1)];\n case 3:\n firstBlockTitle = _a.sent();\n (0, chai_1.expect)(firstBlockTitle).to.equal(category);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "754b7c8b-63d9-4745-8b27-57606aac1162", + "parentUUID": "42a69f18-005d-40ea-ad59-5c7bac1a859a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by category : 'Design & Navigation'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories Filter modules by categories should filter by category : 'Design & Navigation'", + "timedOut": false, + "duration": 178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByCategories_filterByCategoryDesign & Navigation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstBlockTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByCategory\".concat(category), baseContext)];\n case 1:\n _a.sent();\n // Filter modules by categories\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByCategory(page, category)];\n case 2:\n // Filter modules by categories\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getBlockModuleTitle(page, 1)];\n case 3:\n firstBlockTitle = _a.sent();\n (0, chai_1.expect)(firstBlockTitle).to.equal(category);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71e26eaa-d62b-42db-89b4-d1313c30a87b", + "parentUUID": "42a69f18-005d-40ea-ad59-5c7bac1a859a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by category : 'Promotions & Marketing'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories Filter modules by categories should filter by category : 'Promotions & Marketing'", + "timedOut": false, + "duration": 173, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByCategories_filterByCategoryPromotions & Marketing\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstBlockTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByCategory\".concat(category), baseContext)];\n case 1:\n _a.sent();\n // Filter modules by categories\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByCategory(page, category)];\n case 2:\n // Filter modules by categories\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getBlockModuleTitle(page, 1)];\n case 3:\n firstBlockTitle = _a.sent();\n (0, chai_1.expect)(firstBlockTitle).to.equal(category);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c74ac8a5-7dbd-4cdd-9eeb-e7c365b83cab", + "parentUUID": "42a69f18-005d-40ea-ad59-5c7bac1a859a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by category : 'Payment'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories Filter modules by categories should filter by category : 'Payment'", + "timedOut": false, + "duration": 170, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByCategories_filterByCategoryPayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstBlockTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByCategory\".concat(category), baseContext)];\n case 1:\n _a.sent();\n // Filter modules by categories\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByCategory(page, category)];\n case 2:\n // Filter modules by categories\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getBlockModuleTitle(page, 1)];\n case 3:\n firstBlockTitle = _a.sent();\n (0, chai_1.expect)(firstBlockTitle).to.equal(category);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f19ba8df-c52a-4702-951b-be3f544b7b2f", + "parentUUID": "42a69f18-005d-40ea-ad59-5c7bac1a859a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by category : 'Traffic & Marketplaces'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories Filter modules by categories should filter by category : 'Traffic & Marketplaces'", + "timedOut": false, + "duration": 172, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByCategories_filterByCategoryTraffic & Marketplaces\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstBlockTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByCategory\".concat(category), baseContext)];\n case 1:\n _a.sent();\n // Filter modules by categories\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByCategory(page, category)];\n case 2:\n // Filter modules by categories\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getBlockModuleTitle(page, 1)];\n case 3:\n firstBlockTitle = _a.sent();\n (0, chai_1.expect)(firstBlockTitle).to.equal(category);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96e32811-72ed-4758-a6d7-ec9e22c69b28", + "parentUUID": "42a69f18-005d-40ea-ad59-5c7bac1a859a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by category : 'Theme modules'", + "fullTitle": "BO - Modules - Module Manager : Filter modules by Categories Filter modules by categories should filter by category : 'Theme modules'", + "timedOut": false, + "duration": 175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_filterModulesByCategories_filterByCategoryTheme modules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstBlockTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByCategory\".concat(category), baseContext)];\n case 1:\n _a.sent();\n // Filter modules by categories\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByCategory(page, category)];\n case 2:\n // Filter modules by categories\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getBlockModuleTitle(page, 1)];\n case 3:\n firstBlockTitle = _a.sent();\n (0, chai_1.expect)(firstBlockTitle).to.equal(category);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34107abb-ead9-4927-ac41-0a04825f93d1", + "parentUUID": "42a69f18-005d-40ea-ad59-5c7bac1a859a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "754b7c8b-63d9-4745-8b27-57606aac1162", + "71e26eaa-d62b-42db-89b4-d1313c30a87b", + "c74ac8a5-7dbd-4cdd-9eeb-e7c365b83cab", + "f19ba8df-c52a-4702-951b-be3f544b7b2f", + "96e32811-72ed-4758-a6d7-ec9e22c69b28", + "34107abb-ead9-4927-ac41-0a04825f93d1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1035, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0adf1689-306f-415e-b36d-fbb75efacde1", + "f265f750-eebb-4c2d-8aea-d173278e7d4d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8674, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb477303-bc3a-4573-b31f-ccc9ed8423c5", + "title": "BO - Modules - Module Manager : Search module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/03_searchModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/03_searchModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Search module\"", + "fullTitle": "BO - Modules - Module Manager : Search module \"before all\" hook in \"BO - Modules - Module Manager : Search module\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8832116e-fb37-4cdb-a07d-63f242fe6e6c", + "parentUUID": "bb477303-bc3a-4573-b31f-ccc9ed8423c5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Search module\"", + "fullTitle": "BO - Modules - Module Manager : Search module \"after all\" hook in \"BO - Modules - Module Manager : Search module\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "18eb8f6a-6919-4df1-960d-fed7436e707e", + "parentUUID": "bb477303-bc3a-4573-b31f-ccc9ed8423c5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Search module should login in BO", + "timedOut": false, + "duration": 1751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4393c441-1db5-4fd5-8145-1dd0c7b253d3", + "parentUUID": "bb477303-bc3a-4573-b31f-ccc9ed8423c5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Search module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_searchModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52a3c81a-f0a7-49e8-a3f2-b16042145cd2", + "parentUUID": "bb477303-bc3a-4573-b31f-ccc9ed8423c5", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Contact form", + "fullTitle": "BO - Modules - Module Manager : Search module should search the module Contact form", + "timedOut": false, + "duration": 628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_searchModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.contactForm)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, 'Module is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "694d248e-a6bd-4972-9b86-36c921dc49f4", + "parentUUID": "bb477303-bc3a-4573-b31f-ccc9ed8423c5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4393c441-1db5-4fd5-8145-1dd0c7b253d3", + "52a3c81a-f0a7-49e8-a3f2-b16042145cd2", + "694d248e-a6bd-4972-9b86-36c921dc49f4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7628, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "title": "BO - Modules - Module Manager : Enable/Disable module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/04_enableDisableModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/04_enableDisableModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Enable/Disable module\"", + "fullTitle": "BO - Modules - Module Manager : Enable/Disable module \"before all\" hook in \"BO - Modules - Module Manager : Enable/Disable module\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce4d8894-f029-4ff9-b42b-1f2837406e15", + "parentUUID": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Enable/Disable module\"", + "fullTitle": "BO - Modules - Module Manager : Enable/Disable module \"after all\" hook in \"BO - Modules - Module Manager : Enable/Disable module\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8b07cdca-100f-4f7c-8b42-b6d101c6eebd", + "parentUUID": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Enable/Disable module should login in BO", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fe82a88-67d7-455e-8596-0fbbe565c030", + "parentUUID": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Enable/Disable module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_enableDisableModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6baed67-25de-48fd-9003-2b6944c57082", + "parentUUID": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the module", + "fullTitle": "BO - Modules - Module Manager : Enable/Disable module should disable the module", + "timedOut": false, + "duration": 1370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_enableDisableModule_disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.availableQuantities, test.args.action)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(test.args.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ddbcaed-25c9-44af-bf24-fee3067b5384", + "parentUUID": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Available quantities", + "fullTitle": "BO - Modules - Module Manager : Enable/Disable module should search the module Available quantities", + "timedOut": false, + "duration": 5429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_enableDisableModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.availableQuantities)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4531f8a1-b895-4bae-a6be-e422420b43a4", + "parentUUID": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the module", + "fullTitle": "BO - Modules - Module Manager : Enable/Disable module should enable the module", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_enableDisableModule_enableModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.availableQuantities, 'enable')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.enableModuleSuccessMessage(modules_1.default.availableQuantities.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd91fa69-9221-4aee-ba88-56e66d82ce06", + "parentUUID": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "isHook": false, + "skipped": false + }, + { + "title": "should show all modules", + "fullTitle": "BO - Modules - Module Manager : Enable/Disable module should show all modules", + "timedOut": false, + "duration": 109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_enableDisableModule_showAllModules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var blocksNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'showAllModules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByStatus(page, 'all-Modules')];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getNumberOfBlocks(page)];\n case 3:\n blocksNumber = _a.sent();\n (0, chai_1.expect)(blocksNumber).greaterThan(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bba30ca-7a66-4692-a09d-dc8d1c40ce1b", + "parentUUID": "588da7f6-9700-4b0b-9ad2-14035d318a8a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9fe82a88-67d7-455e-8596-0fbbe565c030", + "a6baed67-25de-48fd-9003-2b6944c57082", + "1ddbcaed-25c9-44af-bf24-fee3067b5384", + "4531f8a1-b895-4bae-a6be-e422420b43a4", + "bd91fa69-9221-4aee-ba88-56e66d82ce06", + "0bba30ca-7a66-4692-a09d-dc8d1c40ce1b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14761, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4e7122d4-313d-437a-b92a-762e9b9bd063", + "title": "BO - Modules - Module Manager : Reset module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/05_resetModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/05_resetModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Reset module\"", + "fullTitle": "BO - Modules - Module Manager : Reset module \"before all\" hook in \"BO - Modules - Module Manager : Reset module\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22f585ee-009f-4835-be1c-3ef930eddf7f", + "parentUUID": "4e7122d4-313d-437a-b92a-762e9b9bd063", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Reset module\"", + "fullTitle": "BO - Modules - Module Manager : Reset module \"after all\" hook in \"BO - Modules - Module Manager : Reset module\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bc22e610-984c-41eb-9515-ca3bc823213b", + "parentUUID": "4e7122d4-313d-437a-b92a-762e9b9bd063", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Reset module should login in BO", + "timedOut": false, + "duration": 5647, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a8b275b-b86f-4024-b494-778268a39990", + "parentUUID": "4e7122d4-313d-437a-b92a-762e9b9bd063", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Reset module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_resetModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc19a190-03bb-4475-a428-7b70ede663d9", + "parentUUID": "4e7122d4-313d-437a-b92a-762e9b9bd063", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Contact form", + "fullTitle": "BO - Modules - Module Manager : Reset module should search the module Contact form", + "timedOut": false, + "duration": 649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_resetModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.contactForm)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a51b8f1e-3bc5-4dd0-b359-f34414e920a8", + "parentUUID": "4e7122d4-313d-437a-b92a-762e9b9bd063", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the module", + "fullTitle": "BO - Modules - Module Manager : Reset module should reset the module", + "timedOut": false, + "duration": 2382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_resetModule_resetModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.contactForm, 'reset')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.resetModuleSuccessMessage(modules_1.default.contactForm.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11975e7e-dfd2-4655-bf08-01eba18e1ae1", + "parentUUID": "4e7122d4-313d-437a-b92a-762e9b9bd063", + "isHook": false, + "skipped": false + }, + { + "title": "should show all modules", + "fullTitle": "BO - Modules - Module Manager : Reset module should show all modules", + "timedOut": false, + "duration": 103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_resetModule_showAllModules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var blocksNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'showAllModules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByStatus(page, 'all-Modules')];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getNumberOfBlocks(page)];\n case 3:\n blocksNumber = _a.sent();\n (0, chai_1.expect)(blocksNumber).greaterThan(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52eb4626-d69d-41c3-a3b7-095dd675b70b", + "parentUUID": "4e7122d4-313d-437a-b92a-762e9b9bd063", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4a8b275b-b86f-4024-b494-778268a39990", + "cc19a190-03bb-4475-a428-7b70ede663d9", + "a51b8f1e-3bc5-4dd0-b359-f34414e920a8", + "11975e7e-dfd2-4655-bf08-01eba18e1ae1", + "52eb4626-d69d-41c3-a3b7-095dd675b70b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15160, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "title": "BO - Modules - Module Manager : Install/Uninstall module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/06_installUninstallModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/06_installUninstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Install/Uninstall module\"", + "fullTitle": "BO - Modules - Module Manager : Install/Uninstall module \"before all\" hook in \"BO - Modules - Module Manager : Install/Uninstall module\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "133372b7-2751-4e1f-abba-d72208ca4329", + "parentUUID": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Install/Uninstall module\"", + "fullTitle": "BO - Modules - Module Manager : Install/Uninstall module \"after all\" hook in \"BO - Modules - Module Manager : Install/Uninstall module\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3baccbf9-d74b-4ed6-8401-b87b44de5f3c", + "parentUUID": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Install/Uninstall module should login in BO", + "timedOut": false, + "duration": 5688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6914aad-5da6-4353-b2bc-b4ce705c9d00", + "parentUUID": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Install/Uninstall module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_installUninstallModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "394a0c2b-e4aa-485c-9515-25b1f0eb5b68", + "parentUUID": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Newsletter subscription", + "fullTitle": "BO - Modules - Module Manager : Install/Uninstall module should search the module Newsletter subscription", + "timedOut": false, + "duration": 639, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_installUninstallModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailSubscription)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, 'Module is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ae78bbd-ea52-4fe3-a274-11a89a1a8d76", + "parentUUID": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "isHook": false, + "skipped": false + }, + { + "title": "should uninstall the module 'Newsletter subscription'", + "fullTitle": "BO - Modules - Module Manager : Install/Uninstall module should uninstall the module 'Newsletter subscription'", + "timedOut": false, + "duration": 2377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_installUninstallModule_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psEmailSubscription, 'uninstall')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uninstallModuleSuccessMessage(modules_1.default.psEmailSubscription.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3491d9d-e337-41e3-874c-0d478b5a5aa6", + "parentUUID": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "isHook": false, + "skipped": false + }, + { + "title": "should install the module 'Newsletter subscription'", + "fullTitle": "BO - Modules - Module Manager : Install/Uninstall module should install the module 'Newsletter subscription'", + "timedOut": false, + "duration": 11661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_installUninstallModule_installModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'installModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psEmailSubscription, 'install')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.installModuleSuccessMessage(modules_1.default.psEmailSubscription.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1e5f06c-a8bc-437d-90de-a855900edd59", + "parentUUID": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "isHook": false, + "skipped": false + }, + { + "title": "should show all modules", + "fullTitle": "BO - Modules - Module Manager : Install/Uninstall module should show all modules", + "timedOut": false, + "duration": 112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_installUninstallModule_showAllModules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var blocksNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'showAllModules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.filterByStatus(page, 'all-Modules')];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getNumberOfBlocks(page)];\n case 3:\n blocksNumber = _a.sent();\n (0, chai_1.expect)(blocksNumber).greaterThan(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3e7f754-159f-4318-9d3c-f330d0d34ba2", + "parentUUID": "269a1bdd-1d43-453b-a1fb-827fb317b8eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a6914aad-5da6-4353-b2bc-b4ce705c9d00", + "394a0c2b-e4aa-485c-9515-25b1f0eb5b68", + "5ae78bbd-ea52-4fe3-a274-11a89a1a8d76", + "c3491d9d-e337-41e3-874c-0d478b5a5aa6", + "f1e5f06c-a8bc-437d-90de-a855900edd59", + "b3e7f754-159f-4318-9d3c-f330d0d34ba2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 26844, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c38759d4-f06b-4182-8087-e8883e31f48e", + "title": "BO - Modules - Module Manager : Bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/07_bulkActions.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/07_bulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Bulk actions\"", + "fullTitle": "BO - Modules - Module Manager : Bulk actions \"before all\" hook in \"BO - Modules - Module Manager : Bulk actions\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96b1c3ea-33c2-4316-836f-c6067e6f8092", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Bulk actions\"", + "fullTitle": "BO - Modules - Module Manager : Bulk actions \"after all\" hook in \"BO - Modules - Module Manager : Bulk actions\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "279e5743-7044-4876-9f56-9e461016e0fb", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should login in BO", + "timedOut": false, + "duration": 2343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17814748-96fb-4cb6-8df9-abe14fe368e2", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_bulkActions_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3d83597-b264-4abf-b34f-72f8365207ec", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the bulk action button is disabled", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should check that the bulk action button is disabled", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_bulkActions_checkBulkActionButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkActionsDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBulkActionButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.isBulkActionsButtonDisabled(page)];\n case 2:\n isBulkActionsDisabled = _a.sent();\n (0, chai_1.expect)(isBulkActionsDisabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ea73527-37c6-4b2c-b5d9-40c6ca4be185", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + }, + { + "title": "should select the module 'Available quantities' and check the bulk actions button", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should select the module 'Available quantities' and check the bulk actions button", + "timedOut": false, + "duration": 1023, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_bulkActions_checkBulkActionButtonEnabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkActionsDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBulkActionButtonEnabled', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.selectModule(page, modules_1.default.availableQuantities.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.isBulkActionsButtonDisabled(page)];\n case 3:\n isBulkActionsDisabled = _a.sent();\n (0, chai_1.expect)(isBulkActionsDisabled).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edf4a877-be78-40db-b4eb-711963064b35", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + }, + { + "title": "should 'Disable' with bulk actions", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should 'Disable' with bulk actions", + "timedOut": false, + "duration": 1405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_bulkActions_bulkActions0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulkActions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.bulkActions(page, test.args.action)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(test.args.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83135a3d-2212-49df-8d4c-167781044f62", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + }, + { + "title": "should 'Enable' with bulk actions", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should 'Enable' with bulk actions", + "timedOut": false, + "duration": 11780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_bulkActions_bulkActions1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulkActions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.bulkActions(page, test.args.action)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(test.args.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3ebdff7-86a2-4a05-b021-27abcfa2fddb", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + }, + { + "title": "should 'Uninstall' with bulk actions", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should 'Uninstall' with bulk actions", + "timedOut": false, + "duration": 8248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_bulkActions_bulkActions2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulkActions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.bulkActions(page, test.args.action)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(test.args.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71f8026b-8a11-4729-8d63-b68335b27da8", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + }, + { + "title": "should 'Install' with bulk actions", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should 'Install' with bulk actions", + "timedOut": false, + "duration": 11820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_bulkActions_bulkActions3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulkActions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.bulkActions(page, test.args.action)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(test.args.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6567ab1-b34b-460e-b4ce-2ed928fb94ca", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + }, + { + "title": "should 'Reset' with bulk actions", + "fullTitle": "BO - Modules - Module Manager : Bulk actions should 'Reset' with bulk actions", + "timedOut": false, + "duration": 8266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_bulkActions_bulkActions4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"bulkActions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.bulkActions(page, test.args.action)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(test.args.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b937336c-6ecf-4c17-b015-32635d28d66c", + "parentUUID": "c38759d4-f06b-4182-8087-e8883e31f48e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "17814748-96fb-4cb6-8df9-abe14fe368e2", + "f3d83597-b264-4abf-b34f-72f8365207ec", + "8ea73527-37c6-4b2c-b5d9-40c6ca4be185", + "edf4a877-be78-40db-b4eb-711963064b35", + "83135a3d-2212-49df-8d4c-167781044f62", + "e3ebdff7-86a2-4a05-b021-27abcfa2fddb", + "71f8026b-8a11-4729-8d63-b68335b27da8", + "c6567ab1-b34b-460e-b4ce-2ed928fb94ca", + "b937336c-6ecf-4c17-b015-32635d28d66c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 50624, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "title": "BO - Modules - Module Manager : Upload module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/08_uploadModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/08_uploadModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Upload module\"", + "fullTitle": "BO - Modules - Module Manager : Upload module \"before all\" hook in \"BO - Modules - Module Manager : Upload module\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "494042aa-b148-4d5d-a681-e7be7b4be217", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Upload module\"", + "fullTitle": "BO - Modules - Module Manager : Upload module \"after all\" hook in \"BO - Modules - Module Manager : Upload module\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('module.zip')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "182bd80b-6688-41fd-9d23-7d29c0f2c2ba", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Upload module should login in BO", + "timedOut": false, + "duration": 5634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68b2e367-1b7f-4e4b-9b79-ab541a1cbeb3", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": false, + "skipped": false + }, + { + "title": "should download the zip of the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "BO - Modules - Module Manager : Upload module should download the zip of the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_uploadModule_downloadModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.downloadFile(modules_1.default.keycloak.releaseZip, 'module.zip')];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist('module.zip')];\n case 3:\n found = _a.sent();\n (0, chai_1.expect)(found).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c5a1475-14a8-4add-a762-c3b4a9743f31", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Upload module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_uploadModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ebf3a9e-bb54-42b3-a7c5-f4b354fff496", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": false, + "skipped": false + }, + { + "title": "should upload the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "BO - Modules - Module Manager : Upload module should upload the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 1876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_uploadModule_uploadModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uploadModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.uploadModule(page, 'module.zip')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uploadModuleSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f087e5c7-5577-4a6a-89e1-e7929c646429", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": false, + "skipped": false + }, + { + "title": "should close upload module modal", + "fullTitle": "BO - Modules - Module Manager : Upload module should close upload module modal", + "timedOut": false, + "duration": 248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_uploadModule_closeModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeUploadModuleModal(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c27a9d15-5e0b-419e-a211-b68445087e79", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "BO - Modules - Module Manager : Upload module should search the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 5396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_uploadModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.keycloak)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, 'Module is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca0b888b-b4fa-4e04-afec-7e00ec09385f", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": false, + "skipped": false + }, + { + "title": "should uninstall the module 'Keycloak OAuth2 connector demo'", + "fullTitle": "BO - Modules - Module Manager : Upload module should uninstall the module 'Keycloak OAuth2 connector demo'", + "timedOut": false, + "duration": 2375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_uploadModule_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.keycloak, 'uninstall')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uninstallModuleSuccessMessage(modules_1.default.keycloak.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13c14837-c3cb-4c83-86e7-19372bd30962", + "parentUUID": "a7e1e0a7-e8ea-44b5-8ace-51387dcb466e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "68b2e367-1b7f-4e4b-9b79-ab541a1cbeb3", + "8c5a1475-14a8-4add-a762-c3b4a9743f31", + "4ebf3a9e-bb54-42b3-a7c5-f4b354fff496", + "f087e5c7-5577-4a6a-89e1-e7929c646429", + "c27a9d15-5e0b-419e-a211-b68445087e79", + "ca0b888b-b4fa-4e04-afec-7e00ec09385f", + "13c14837-c3cb-4c83-86e7-19372bd30962" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22126, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c1fc12c4-316a-4d17-9a71-8ab95d42aa30", + "title": "BO - Modules - Module Manager : Configure module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/09_configureModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/01_modules/09_configureModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Module Manager : Configure module\"", + "fullTitle": "BO - Modules - Module Manager : Configure module \"before all\" hook in \"BO - Modules - Module Manager : Configure module\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea707ff8-1b46-44d5-b385-342b8bb80185", + "parentUUID": "c1fc12c4-316a-4d17-9a71-8ab95d42aa30", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Module Manager : Configure module\"", + "fullTitle": "BO - Modules - Module Manager : Configure module \"after all\" hook in \"BO - Modules - Module Manager : Configure module\"", + "timedOut": false, + "duration": 17, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "75e0c23d-4ddf-454b-bf69-f649337cab05", + "parentUUID": "c1fc12c4-316a-4d17-9a71-8ab95d42aa30", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Module Manager : Configure module should login in BO", + "timedOut": false, + "duration": 5741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17b3dc48-a765-44bf-8419-66722ea18b1b", + "parentUUID": "c1fc12c4-316a-4d17-9a71-8ab95d42aa30", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Module Manager : Configure module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_configureModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b618eb7-35a3-4c0e-b42f-18f200ce018d", + "parentUUID": "c1fc12c4-316a-4d17-9a71-8ab95d42aa30", + "isHook": false, + "skipped": false + }, + { + "title": "should search for module Contact form", + "fullTitle": "BO - Modules - Module Manager : Configure module should search for module Contact form", + "timedOut": false, + "duration": 628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_configureModule_searchForModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.contactForm)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, 'Module is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e08e5087-36cd-4c35-8209-4484bb59aaf4", + "parentUUID": "c1fc12c4-316a-4d17-9a71-8ab95d42aa30", + "isHook": false, + "skipped": false + }, + { + "title": "should go to module configuration page", + "fullTitle": "BO - Modules - Module Manager : Configure module should go to module configuration page", + "timedOut": false, + "duration": 1444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_modules_configureModule_configureModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageSubtitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'configureModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.contactForm.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleConfiguration_1.moduleConfigurationPage.getPageSubtitle(page)];\n case 3:\n pageSubtitle = _a.sent();\n (0, chai_1.expect)(pageSubtitle).to.contains(modules_1.default.contactForm.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52c9d727-04ae-472d-930b-8bd8fd82d281", + "parentUUID": "c1fc12c4-316a-4d17-9a71-8ab95d42aa30", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "17b3dc48-a765-44bf-8419-66722ea18b1b", + "3b618eb7-35a3-4c0e-b42f-18f200ce018d", + "e08e5087-36cd-4c35-8209-4484bb59aaf4", + "52c9d727-04ae-472d-930b-8bd8fd82d281" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14225, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9f2605aa-ea6f-4395-aa6b-ae95d00b90f0", + "title": "BO - Modules - Alerts tab : Reset module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/02_alerts/02_resetModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/02_alerts/02_resetModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Alerts tab : Reset module\"", + "fullTitle": "BO - Modules - Alerts tab : Reset module \"before all\" hook in \"BO - Modules - Alerts tab : Reset module\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d90f8657-a752-4b4f-871d-5d5a09648494", + "parentUUID": "9f2605aa-ea6f-4395-aa6b-ae95d00b90f0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Alerts tab : Reset module\"", + "fullTitle": "BO - Modules - Alerts tab : Reset module \"after all\" hook in \"BO - Modules - Alerts tab : Reset module\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bbad257c-3fb8-4e8a-a509-8ceb75a79ba0", + "parentUUID": "9f2605aa-ea6f-4395-aa6b-ae95d00b90f0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Alerts tab : Reset module should login in BO", + "timedOut": false, + "duration": 1759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e61e5988-a7a6-46c9-ac33-680269e4c695", + "parentUUID": "9f2605aa-ea6f-4395-aa6b-ae95d00b90f0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Alerts tab : Reset module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_resetModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b10e62a-ef0f-49b6-b69e-895dcddb6f38", + "parentUUID": "9f2605aa-ea6f-4395-aa6b-ae95d00b90f0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Alerts' tab", + "fullTitle": "BO - Modules - Alerts tab : Reset module should go to 'Alerts' tab", + "timedOut": false, + "duration": 267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_resetModule_goToAlertsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAlertsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToAlertsTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleAlerts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(moduleAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7c4a649-84e2-41c5-bfcc-bf52e6ece07f", + "parentUUID": "9f2605aa-ea6f-4395-aa6b-ae95d00b90f0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the module 'Payments by check'", + "fullTitle": "BO - Modules - Alerts tab : Reset module should reset the module 'Payments by check'", + "timedOut": false, + "duration": 2388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_resetModule_resetModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleAlerts_1.default.setActionInModule(page, modules_1.default.psCheckPayment, 'reset')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleAlerts_1.default.resetModuleSuccessMessage(modules_1.default.psCheckPayment.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8f0647d-54ca-41d7-9f0b-b9435e8569e5", + "parentUUID": "9f2605aa-ea6f-4395-aa6b-ae95d00b90f0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e61e5988-a7a6-46c9-ac33-680269e4c695", + "8b10e62a-ef0f-49b6-b69e-895dcddb6f38", + "f7c4a649-84e2-41c5-bfcc-bf52e6ece07f", + "c8f0647d-54ca-41d7-9f0b-b9435e8569e5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9638, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "14c86f26-7792-4846-951d-0f5737fa0d5f", + "title": "BO - Modules - Alerts : Install/Uninstall module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/02_alerts/03_installUninstallModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/02_alerts/03_installUninstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Alerts : Install/Uninstall module\"", + "fullTitle": "BO - Modules - Alerts : Install/Uninstall module \"before all\" hook in \"BO - Modules - Alerts : Install/Uninstall module\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e5aacbb-bb02-44a0-aed5-2f9d4ebb7d1b", + "parentUUID": "14c86f26-7792-4846-951d-0f5737fa0d5f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Alerts : Install/Uninstall module\"", + "fullTitle": "BO - Modules - Alerts : Install/Uninstall module \"after all\" hook in \"BO - Modules - Alerts : Install/Uninstall module\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "39a940aa-90fd-4527-812c-07a546ba48b7", + "parentUUID": "14c86f26-7792-4846-951d-0f5737fa0d5f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Alerts : Install/Uninstall module should login in BO", + "timedOut": false, + "duration": 5685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f137757e-0507-40a5-b019-5f909561afbd", + "parentUUID": "14c86f26-7792-4846-951d-0f5737fa0d5f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Alerts : Install/Uninstall module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_installUninstallModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "068b9bbd-8b75-40e6-bcfe-282924bb9db1", + "parentUUID": "14c86f26-7792-4846-951d-0f5737fa0d5f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Alerts' tab", + "fullTitle": "BO - Modules - Alerts : Install/Uninstall module should go to 'Alerts' tab", + "timedOut": false, + "duration": 281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_installUninstallModule_goToAlertsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAlertsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToAlertsTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleAlerts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(moduleAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aec535f1-5515-49a7-9e71-ebc3ec4716b6", + "parentUUID": "14c86f26-7792-4846-951d-0f5737fa0d5f", + "isHook": false, + "skipped": false + }, + { + "title": "should uninstall the module 'Payments by check'", + "fullTitle": "BO - Modules - Alerts : Install/Uninstall module should uninstall the module 'Payments by check'", + "timedOut": false, + "duration": 2383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_installUninstallModule_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleAlerts_1.default.setActionInModule(page, modules_1.default.psCheckPayment, 'uninstall')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleAlerts_1.default.uninstallModuleSuccessMessage(modules_1.default.psCheckPayment.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1090b2e-6c70-46a8-8957-7a8c10d6c094", + "parentUUID": "14c86f26-7792-4846-951d-0f5737fa0d5f", + "isHook": false, + "skipped": false + }, + { + "title": "should install the module 'Payments by check'", + "fullTitle": "BO - Modules - Alerts : Install/Uninstall module should install the module 'Payments by check'", + "timedOut": false, + "duration": 11161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_installUninstallModule_installModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'installModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleAlerts_1.default.setActionInModule(page, modules_1.default.psCheckPayment, 'install')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleAlerts_1.default.installModuleSuccessMessage(modules_1.default.psCheckPayment.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82827ab6-6b6b-4439-a5e5-84e02603dfa2", + "parentUUID": "14c86f26-7792-4846-951d-0f5737fa0d5f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f137757e-0507-40a5-b019-5f909561afbd", + "068b9bbd-8b75-40e6-bcfe-282924bb9db1", + "aec535f1-5515-49a7-9e71-ebc3ec4716b6", + "a1090b2e-6c70-46a8-8957-7a8c10d6c094", + "82827ab6-6b6b-4439-a5e5-84e02603dfa2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25911, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "10336ffd-2354-4387-9d53-e2b9c33bb6a1", + "title": "BO - Modules - Alerts : Configure module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/07_modules/01_moduleManager/02_alerts/05_configureModule.ts", + "file": "/campaigns/functional/BO/07_modules/01_moduleManager/02_alerts/05_configureModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Modules - Alerts : Configure module\"", + "fullTitle": "BO - Modules - Alerts : Configure module \"before all\" hook in \"BO - Modules - Alerts : Configure module\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01ba9587-75a3-48c5-be60-3e3cf036be4a", + "parentUUID": "10336ffd-2354-4387-9d53-e2b9c33bb6a1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Modules - Alerts : Configure module\"", + "fullTitle": "BO - Modules - Alerts : Configure module \"after all\" hook in \"BO - Modules - Alerts : Configure module\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b7c024bf-a1bb-4ada-9fe0-2ac6190eb8c0", + "parentUUID": "10336ffd-2354-4387-9d53-e2b9c33bb6a1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Modules - Alerts : Configure module should login in BO", + "timedOut": false, + "duration": 2318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99b2bc27-6834-4ea1-8fa9-76b3bcc48c4c", + "parentUUID": "10336ffd-2354-4387-9d53-e2b9c33bb6a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "BO - Modules - Alerts : Configure module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_configureModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d646f62a-4712-497b-9427-2adf7c57e52a", + "parentUUID": "10336ffd-2354-4387-9d53-e2b9c33bb6a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Alerts' tab", + "fullTitle": "BO - Modules - Alerts : Configure module should go to 'Alerts' tab", + "timedOut": false, + "duration": 283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_configureModule_goToAlertsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAlertsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToAlertsTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleAlerts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(moduleAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37b2b3d3-3f63-4ea3-bceb-ee3f2254a86a", + "parentUUID": "10336ffd-2354-4387-9d53-e2b9c33bb6a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to module configuration page", + "fullTitle": "BO - Modules - Alerts : Configure module should go to module configuration page", + "timedOut": false, + "duration": 1495, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_modules_moduleManager_alerts_configureModule_configureModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageSubtitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'configureModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleAlerts_1.default.goToConfigurationPage(page, modules_1.default.psCheckPayment.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleConfiguration_1.moduleConfigurationPage.getPageSubtitle(page)];\n case 3:\n pageSubtitle = _a.sent();\n (0, chai_1.expect)(pageSubtitle).to.contains(modules_1.default.psCheckPayment.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17f1fb78-bae3-43d1-9cc9-b5fc3359fecc", + "parentUUID": "10336ffd-2354-4387-9d53-e2b9c33bb6a1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99b2bc27-6834-4ea1-8fa9-76b3bcc48c4c", + "d646f62a-4712-497b-9427-2adf7c57e52a", + "37b2b3d3-3f63-4ea3-bceb-ee3f2254a86a", + "17f1fb78-bae3-43d1-9cc9-b5fc3359fecc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10429, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "51345eca-316b-4ad2-b030-efc57431578e", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 448, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fc779a2-2c52-4e37-9f8e-cd34fe1df933", + "parentUUID": "51345eca-316b-4ad2-b030-efc57431578e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98de300d-a509-47bf-a796-ff78a03bd7ba", + "parentUUID": "51345eca-316b-4ad2-b030-efc57431578e", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f15c1e6-ebfa-4753-bd66-7d196a3d1949", + "parentUUID": "51345eca-316b-4ad2-b030-efc57431578e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "bcb74944-54b2-4ecb-8263-3ac83a69ecc0", + "title": "BO - Orders : Help card in order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/01_helpCard.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/01_helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Help card in order page\"", + "fullTitle": "BO - Orders : Help card in order page \"before all\" hook in \"BO - Orders : Help card in order page\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d19f10c-fd03-451e-84b7-ad772f4773c5", + "parentUUID": "bcb74944-54b2-4ecb-8263-3ac83a69ecc0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Help card in order page\"", + "fullTitle": "BO - Orders : Help card in order page \"after all\" hook in \"BO - Orders : Help card in order page\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "418f29fa-7673-410f-919c-bc52a59279ea", + "parentUUID": "bcb74944-54b2-4ecb-8263-3ac83a69ecc0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Help card in order page should login in BO", + "timedOut": false, + "duration": 6562, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4221ca4-8cbb-4d44-81ed-2424ec9a77bd", + "parentUUID": "bcb74944-54b2-4ecb-8263-3ac83a69ecc0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders page", + "fullTitle": "BO - Orders : Help card in order page should go to orders page", + "timedOut": false, + "duration": 5407, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_helpCard_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "256ae2da-0ae5-4f00-9561-d41d8f02b09d", + "parentUUID": "bcb74944-54b2-4ecb-8263-3ac83a69ecc0", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Orders : Help card in order page should open the help side bar and check the document language", + "timedOut": false, + "duration": 847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, orders_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c0322e4-ce3e-47b8-a89e-912db1820b9a", + "parentUUID": "bcb74944-54b2-4ecb-8263-3ac83a69ecc0", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Orders : Help card in order page should close the help side bar", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bad18bb-29ef-4bc6-aac8-347c9ee7f8e0", + "parentUUID": "bcb74944-54b2-4ecb-8263-3ac83a69ecc0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c4221ca4-8cbb-4d44-81ed-2424ec9a77bd", + "256ae2da-0ae5-4f00-9561-d41d8f02b09d", + "3c0322e4-ce3e-47b8-a89e-912db1820b9a", + "2bad18bb-29ef-4bc6-aac8-347c9ee7f8e0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12855, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "68df345a-491d-4987-a805-931b9a2d5abc", + "title": "BO - Orders : Filter the Orders table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/02_filterOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/02_filterOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Filter the Orders table\"", + "fullTitle": "BO - Orders : Filter the Orders table \"before all\" hook in \"BO - Orders : Filter the Orders table\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5412be1-b006-4087-bd2d-1f0456f6b25e", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Filter the Orders table\"", + "fullTitle": "BO - Orders : Filter the Orders table \"after all\" hook in \"BO - Orders : Filter the Orders table\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c8491fc9-65ba-4000-81c1-284abdba1ef8", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Filter the Orders table should login in BO", + "timedOut": false, + "duration": 1862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94a91b14-4e30-4c80-ab88-886c121be958", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : Filter the Orders table should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04fd430b-1d6f-44fb-b402-fb85160fa5d9", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of orders", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters and get number of orders", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efddfca1-14a4-477f-ac59-c0d9c0d87073", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'id_order' and check the result", + "fullTitle": "BO - Orders : Filter the Orders table should filter the Orders table by 'id_order' and check the result", + "timedOut": false, + "duration": 2456, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb7d4e4f-9b9e-4fce-b9ff-00bc7ead02e4", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae0c48d2-6def-462f-bc48-058dc2576c82", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'reference' and check the result", + "fullTitle": "BO - Orders : Filter the Orders table should filter the Orders table by 'reference' and check the result", + "timedOut": false, + "duration": 2450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c6c304e-13b4-495d-a67e-2dd2e157adfe", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByReferenceReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea556882-798d-427a-bba0-8369fa8f5235", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'new' and check the result", + "fullTitle": "BO - Orders : Filter the Orders table should filter the Orders table by 'new' and check the result", + "timedOut": false, + "duration": 2341, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByNewClient\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb65f2b3-57d0-4b33-a58e-c742f8031948", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByNewClientReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30760e83-4fe2-48ec-9738-df35f3152233", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'country_name' and check the result", + "fullTitle": "BO - Orders : Filter the Orders table should filter the Orders table by 'country_name' and check the result", + "timedOut": false, + "duration": 2409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByDelivery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f8b4d74-989f-445c-af6d-9027ab989e53", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByDeliveryReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bb16856-b2af-41f6-b25f-c2a7c39ecec6", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'customer' and check the result", + "fullTitle": "BO - Orders : Filter the Orders table should filter the Orders table by 'customer' and check the result", + "timedOut": false, + "duration": 2508, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6f970ad-9495-4ee2-bd1d-d8fafbf8bc59", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByCustomerReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbbb776e-0bea-48da-b82e-da1144ff87fe", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'total_paid_tax_incl' and check the result", + "fullTitle": "BO - Orders : Filter the Orders table should filter the Orders table by 'total_paid_tax_incl' and check the result", + "timedOut": false, + "duration": 2340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByTotalPaid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b44f709-d7e1-4b6e-98e7-2e5b07d5c9e7", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByTotalPaidReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1325fc3c-571e-49b0-85de-f132b4dc4d61", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'payment' and check the result", + "fullTitle": "BO - Orders : Filter the Orders table should filter the Orders table by 'payment' and check the result", + "timedOut": false, + "duration": 2408, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByPayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5882e8aa-fa54-4e71-86dd-350abd2a10ff", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByPaymentReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6326448-ad4f-44f1-802a-8a09c2a896dd", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'osname' and check the result", + "fullTitle": "BO - Orders : Filter the Orders table should filter the Orders table by 'osname' and check the result", + "timedOut": false, + "duration": 2327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterOsName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.identifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, row)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed99997a-3537-46dc-b6b8-16fcc66ffc31", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterOsNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0239f9b7-7fd8-48a1-941d-cd49cdd7097f", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the orders table by 'Date from' and 'Date to'", + "fullTitle": "BO - Orders : Filter the Orders table should filter the orders table by 'Date from' and 'Date to'", + "timedOut": false, + "duration": 1045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_filterByDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByDate', baseContext)];\n case 1:\n _a.sent();\n // Filter orders\n return [4 /*yield*/, orders_1.default.filterOrdersByDate(page, today, today)];\n case 2:\n // Filter orders\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfOrdersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'date_add', i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(dateToCheck);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca70e9b7-9dc7-4976-bc9e-ed6b52547311", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Filter the Orders table should reset all filters", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_filterOrders_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbeebeef-539a-40f2-ae79-a8a3429618e8", + "parentUUID": "68df345a-491d-4987-a805-931b9a2d5abc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "94a91b14-4e30-4c80-ab88-886c121be958", + "04fd430b-1d6f-44fb-b402-fb85160fa5d9", + "efddfca1-14a4-477f-ac59-c0d9c0d87073", + "fb7d4e4f-9b9e-4fce-b9ff-00bc7ead02e4", + "ae0c48d2-6def-462f-bc48-058dc2576c82", + "2c6c304e-13b4-495d-a67e-2dd2e157adfe", + "ea556882-798d-427a-bba0-8369fa8f5235", + "cb65f2b3-57d0-4b33-a58e-c742f8031948", + "30760e83-4fe2-48ec-9738-df35f3152233", + "8f8b4d74-989f-445c-af6d-9027ab989e53", + "8bb16856-b2af-41f6-b25f-c2a7c39ecec6", + "c6f970ad-9495-4ee2-bd1d-d8fafbf8bc59", + "bbbb776e-0bea-48da-b82e-da1144ff87fe", + "4b44f709-d7e1-4b6e-98e7-2e5b07d5c9e7", + "1325fc3c-571e-49b0-85de-f132b4dc4d61", + "5882e8aa-fa54-4e71-86dd-350abd2a10ff", + "d6326448-ad4f-44f1-802a-8a09c2a896dd", + "ed99997a-3537-46dc-b6b8-16fcc66ffc31", + "0239f9b7-7fd8-48a1-941d-cd49cdd7097f", + "ca70e9b7-9dc7-4976-bc9e-ed6b52547311", + "dbeebeef-539a-40f2-ae79-a8a3429618e8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 35949, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d81e86aa-a092-4f98-8a38-efabe873a62a", + "title": "BO - Orders : Export orders", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/03_exportOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/03_exportOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Export orders\"", + "fullTitle": "BO - Orders : Export orders \"before all\" hook in \"BO - Orders : Export orders\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6231950-9075-40c7-9ac1-c99e5daaf804", + "parentUUID": "d81e86aa-a092-4f98-8a38-efabe873a62a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Export orders\"", + "fullTitle": "BO - Orders : Export orders \"after all\" hook in \"BO - Orders : Export orders\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8c6b4d48-2b65-48ee-a1cd-b7070bdf1339", + "parentUUID": "d81e86aa-a092-4f98-8a38-efabe873a62a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Export orders should login in BO", + "timedOut": false, + "duration": 1724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e7200e3-f46f-446a-aefe-82090d82a847", + "parentUUID": "d81e86aa-a092-4f98-8a38-efabe873a62a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : Export orders should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_exportOrders_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfe43021-8026-4d41-b4f2-91d98b775979", + "parentUUID": "d81e86aa-a092-4f98-8a38-efabe873a62a", + "isHook": false, + "skipped": false + }, + { + "title": "should export orders to a csv file", + "fullTitle": "BO - Orders : Export orders should export orders to a csv file", + "timedOut": false, + "duration": 256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_exportOrders_exportOrders\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'exportOrders', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.exportDataToCsv(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'Export of data has failed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae096c2b-d91e-4981-a47a-a890505e443a", + "parentUUID": "d81e86aa-a092-4f98-8a38-efabe873a62a", + "isHook": false, + "skipped": false + }, + { + "title": "should check existence of orders data in csv file", + "fullTitle": "BO - Orders : Export orders should check existence of orders data in csv file", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_exportOrders_checkAllOrdersInCsvFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders, row, orderInCsvFormat, textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllOrdersInCsvFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrders = _a.sent();\n row = 1;\n _a.label = 3;\n case 3:\n if (!(row <= numberOfOrders)) return [3 /*break*/, 7];\n return [4 /*yield*/, orders_1.default.getOrderInCsvFormat(page, row)];\n case 4:\n orderInCsvFormat = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, orderInCsvFormat, true, true)];\n case 5:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"\".concat(orderInCsvFormat, \" was not found in the file\")).to.eq(true);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 3];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ec84810-0c73-406d-b1af-b09b0ab9707f", + "parentUUID": "d81e86aa-a092-4f98-8a38-efabe873a62a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5e7200e3-f46f-446a-aefe-82090d82a847", + "cfe43021-8026-4d41-b4f2-91d98b775979", + "ae096c2b-d91e-4981-a47a-a890505e443a", + "7ec84810-0c73-406d-b1af-b09b0ab9707f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7126, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "79983c0f-784a-4344-a877-6c821a0b3f73", + "title": "BO - orders : Update order status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - orders : Update order status\"", + "fullTitle": "BO - orders : Update order status \"before all\" hook in \"BO - orders : Update order status\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05018c02-13be-4bd9-b7fb-19b2f153d1fd", + "parentUUID": "79983c0f-784a-4344-a877-6c821a0b3f73", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - orders : Update order status\"", + "fullTitle": "BO - orders : Update order status \"after all\" hook in \"BO - orders : Update order status\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3e5f42e0-10e0-4075-946a-f8c651e801ed", + "parentUUID": "79983c0f-784a-4344-a877-6c821a0b3f73", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d898bb44-b4d1-4e8a-851f-b6ec8b9c4abe", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d1cd234-2d0c-4598-9008-2745498d483b", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ce32943-8648-47ae-831d-b5a1802b8d16", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dafbed38-807a-4cfb-b25e-a5ba61aaded9", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf634450-4f4c-4e88-82d8-9490d8b5716b", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7342, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4d227dc-522d-4cc8-84f0-292e173561d2", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1066, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5247d3ca-6a73-418e-81dd-0a30ee5e02ca", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d284f35-5c19-450e-a19b-177f30caa6a7", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - orders : Update order status PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1590, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bb808ea-642d-4a93-851e-e315075f36c6", + "parentUUID": "13653b25-31bb-4f2c-86e6-110d9b1945f3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ce32943-8648-47ae-831d-b5a1802b8d16", + "dafbed38-807a-4cfb-b25e-a5ba61aaded9", + "bf634450-4f4c-4e88-82d8-9490d8b5716b", + "a4d227dc-522d-4cc8-84f0-292e173561d2", + "5247d3ca-6a73-418e-81dd-0a30ee5e02ca", + "3d284f35-5c19-450e-a19b-177f30caa6a7", + "0bb808ea-642d-4a93-851e-e315075f36c6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13423, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c347b634-4038-4e3b-a08d-2358f8f4617c", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - orders : Update order status PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe5e3ff8-d596-4968-b00c-7d99de262cca", + "parentUUID": "c347b634-4038-4e3b-a08d-2358f8f4617c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - orders : Update order status PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "204a2066-31a1-439d-8169-bf1c797ddf49", + "parentUUID": "c347b634-4038-4e3b-a08d-2358f8f4617c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - orders : Update order status PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1742, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04313f0b-e6cf-46cf-8521-545722fd23f3", + "parentUUID": "c347b634-4038-4e3b-a08d-2358f8f4617c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - orders : Update order status PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 5047, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_2_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a38af471-941f-48e1-88e0-c4d2f13e7a32", + "parentUUID": "c347b634-4038-4e3b-a08d-2358f8f4617c", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - orders : Update order status PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_preTest_2_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f15f9c1-26de-4043-beca-3a9c827ad730", + "parentUUID": "c347b634-4038-4e3b-a08d-2358f8f4617c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "04313f0b-e6cf-46cf-8521-545722fd23f3", + "a38af471-941f-48e1-88e0-c4d2f13e7a32", + "7f15f9c1-26de-4043-beca-3a9c827ad730" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7410, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ddca3996-ae69-4c54-9989-e217b37621d0", + "title": "Go to 'Orders > Orders' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - orders : Update order status Go to 'Orders > Orders' page should login in BO", + "timedOut": false, + "duration": 1753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d52c0b95-8927-4e8a-bda4-f279713f943b", + "parentUUID": "ddca3996-ae69-4c54-9989-e217b37621d0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - orders : Update order status Go to 'Orders > Orders' page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "859039f1-93c1-4d41-b8d9-2924721a98dc", + "parentUUID": "ddca3996-ae69-4c54-9989-e217b37621d0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get the last order ID", + "fullTitle": "BO - orders : Update order status Go to 'Orders > Orders' page should reset filter and get the last order ID", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'id_order', 1)];\n case 3:\n result = _a.sent();\n orderId = parseInt(result, 10);\n (0, chai_1.expect)(orderId).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e99849a-f7c3-4f5c-8109-fa67b3606067", + "parentUUID": "ddca3996-ae69-4c54-9989-e217b37621d0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d52c0b95-8927-4e8a-bda4-f279713f943b", + "859039f1-93c1-4d41-b8d9-2924721a98dc", + "2e99849a-f7c3-4f5c-8109-fa67b3606067" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7653, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6cb702e8-8a6b-43c1-ad41-ac29ca4db275", + "title": "Change orders status in BO then check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "1139860a-b27b-4b2e-a7b0-c78b0e4d0d46", + "title": "Change orders status to 'Canceled' in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should update order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Canceled' in BO should update order status", + "timedOut": false, + "duration": 1146, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_updateOrderStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, test.args.orderStatus)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d730d03-ce62-415e-9f54-244dd123cd40", + "parentUUID": "1139860a-b27b-4b2e-a7b0-c78b0e4d0d46", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Canceled' in BO should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkStatusBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "491a213d-1759-4a0c-9f6b-d5478b8fa67d", + "parentUUID": "1139860a-b27b-4b2e-a7b0-c78b0e4d0d46", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Canceled' in BO should check received email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkEmail0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] \").concat(test.args.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3279bd6e-4be9-491b-aa84-853a8345d205", + "parentUUID": "1139860a-b27b-4b2e-a7b0-c78b0e4d0d46", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6d730d03-ce62-415e-9f54-244dd123cd40", + "491a213d-1759-4a0c-9f6b-d5478b8fa67d", + "3279bd6e-4be9-491b-aa84-853a8345d205" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1155, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8a51a6aa-08df-4441-9693-377419fc7610", + "title": "Check the order status in FO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to FO page", + "timedOut": false, + "duration": 1693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToFoToCheckStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoToCheckStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4d2d4ac-b3c1-4a97-84fd-472a7f6aef80", + "parentUUID": "8a51a6aa-08df-4441-9693-377419fc7610", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to login page", + "timedOut": false, + "duration": 704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToLoginPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03ddaff1-dec4-4213-adf8-41fd878326ae", + "parentUUID": "8a51a6aa-08df-4441-9693-377419fc7610", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should sign in with default customer", + "timedOut": false, + "duration": 511, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_sighInFoToCheckStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFoToCheckStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8857ff39-1a41-4fad-9737-c7aa26b3006b", + "parentUUID": "8a51a6aa-08df-4441-9693-377419fc7610", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders history page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to orders history page", + "timedOut": false, + "duration": 1432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToOrderHistoryPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderHistoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open order history page').to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7010c4a-1b7b-4127-91d9-a603ccb4643b", + "parentUUID": "8a51a6aa-08df-4441-9693-377419fc7610", + "isHook": false, + "skipped": false + }, + { + "title": "should check the last order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should check the last order status", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkLastOrderStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatusFO;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLastOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getOrderStatus(page, 1)];\n case 2:\n orderStatusFO = _a.sent();\n (0, chai_1.expect)(orderStatusFO, 'Order status is not correct').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad38b457-e163-4ffe-bb8c-d830e0a257f8", + "parentUUID": "8a51a6aa-08df-4441-9693-377419fc7610", + "isHook": false, + "skipped": false + }, + { + "title": "should close the shop page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should close the shop page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_closeShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "096cc3d7-cb9f-4ca0-aaee-a32aea497437", + "parentUUID": "8a51a6aa-08df-4441-9693-377419fc7610", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4d2d4ac-b3c1-4a97-84fd-472a7f6aef80", + "03ddaff1-dec4-4213-adf8-41fd878326ae", + "8857ff39-1a41-4fad-9737-c7aa26b3006b", + "e7010c4a-1b7b-4127-91d9-a603ccb4643b", + "ad38b457-e163-4ffe-bb8c-d830e0a257f8", + "096cc3d7-cb9f-4ca0-aaee-a32aea497437" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4368, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cadc319b-c9ab-4d00-a7ec-21012be6ed73", + "title": "Change orders status to 'Refunded' in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should update order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Refunded' in BO should update order status", + "timedOut": false, + "duration": 1115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_updateOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, test.args.orderStatus)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e41bd8df-6ae4-4f46-a9f5-42b588201683", + "parentUUID": "cadc319b-c9ab-4d00-a7ec-21012be6ed73", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Refunded' in BO should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkStatusBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90aeb2e4-33a6-4e12-b565-dabaab5aeeb4", + "parentUUID": "cadc319b-c9ab-4d00-a7ec-21012be6ed73", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Refunded' in BO should check received email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkEmail1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] \").concat(test.args.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f9e2dff-efc3-49e1-b1ab-75c4c52a7f1d", + "parentUUID": "cadc319b-c9ab-4d00-a7ec-21012be6ed73", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e41bd8df-6ae4-4f46-a9f5-42b588201683", + "90aeb2e4-33a6-4e12-b565-dabaab5aeeb4", + "0f9e2dff-efc3-49e1-b1ab-75c4c52a7f1d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1124, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9524c981-f904-478f-b05e-d7de9cafb438", + "title": "Check the order status in FO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to FO page", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToFoToCheckStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoToCheckStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3135bc16-77d4-4165-b9d8-a47525787784", + "parentUUID": "9524c981-f904-478f-b05e-d7de9cafb438", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders history page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to orders history page", + "timedOut": false, + "duration": 1405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToOrderHistoryPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderHistoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open order history page').to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54fcfc5e-0e1a-4b37-b2b5-06151299d6d5", + "parentUUID": "9524c981-f904-478f-b05e-d7de9cafb438", + "isHook": false, + "skipped": false + }, + { + "title": "should check the last order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should check the last order status", + "timedOut": false, + "duration": 27, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkLastOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatusFO;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLastOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getOrderStatus(page, 1)];\n case 2:\n orderStatusFO = _a.sent();\n (0, chai_1.expect)(orderStatusFO, 'Order status is not correct').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d37fbca9-ccd7-45a8-85d6-dcaaeb4e99fd", + "parentUUID": "9524c981-f904-478f-b05e-d7de9cafb438", + "isHook": false, + "skipped": false + }, + { + "title": "should close the shop page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should close the shop page", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_closeShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad655286-6e6a-46b2-86af-4a68b2f72b7b", + "parentUUID": "9524c981-f904-478f-b05e-d7de9cafb438", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3135bc16-77d4-4165-b9d8-a47525787784", + "54fcfc5e-0e1a-4b37-b2b5-06151299d6d5", + "d37fbca9-ccd7-45a8-85d6-dcaaeb4e99fd", + "ad655286-6e6a-46b2-86af-4a68b2f72b7b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3134, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a28f235e-014f-4505-9f5e-535d92da32c4", + "title": "Change orders status to 'On backorder (not paid)' in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should update order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'On backorder (not paid)' in BO should update order status", + "timedOut": false, + "duration": 1125, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_updateOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, test.args.orderStatus)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf858071-afdc-4f9b-b693-7cd2ac992b05", + "parentUUID": "a28f235e-014f-4505-9f5e-535d92da32c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'On backorder (not paid)' in BO should check that the status is updated successfully", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkStatusBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f8c85e7-bc45-4e38-a660-72f3c8b90fe7", + "parentUUID": "a28f235e-014f-4505-9f5e-535d92da32c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'On backorder (not paid)' in BO should check received email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkEmail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] \").concat(test.args.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0562b9d6-e9d3-4190-9ef0-63f754db6f39", + "parentUUID": "a28f235e-014f-4505-9f5e-535d92da32c4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cf858071-afdc-4f9b-b693-7cd2ac992b05", + "9f8c85e7-bc45-4e38-a660-72f3c8b90fe7", + "0562b9d6-e9d3-4190-9ef0-63f754db6f39" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1133, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "23251425-2e38-4de3-b1fb-8279473e44a9", + "title": "Check the order status in FO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to FO page", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToFoToCheckStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoToCheckStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5a2eca1-91a3-4b7e-819c-ad4fd8da09ee", + "parentUUID": "23251425-2e38-4de3-b1fb-8279473e44a9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders history page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to orders history page", + "timedOut": false, + "duration": 1414, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToOrderHistoryPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderHistoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open order history page').to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fcc841c-90c1-4251-9933-c7a5858b2bf8", + "parentUUID": "23251425-2e38-4de3-b1fb-8279473e44a9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the last order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should check the last order status", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkLastOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatusFO;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLastOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getOrderStatus(page, 1)];\n case 2:\n orderStatusFO = _a.sent();\n (0, chai_1.expect)(orderStatusFO, 'Order status is not correct').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "471e0cbc-1027-45c7-9f33-79074a6ba7e5", + "parentUUID": "23251425-2e38-4de3-b1fb-8279473e44a9", + "isHook": false, + "skipped": false + }, + { + "title": "should close the shop page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should close the shop page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_closeShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a02c61b-ee64-4270-aafd-22449a7a04f1", + "parentUUID": "23251425-2e38-4de3-b1fb-8279473e44a9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b5a2eca1-91a3-4b7e-819c-ad4fd8da09ee", + "8fcc841c-90c1-4251-9933-c7a5858b2bf8", + "471e0cbc-1027-45c7-9f33-79074a6ba7e5", + "1a02c61b-ee64-4270-aafd-22449a7a04f1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3142, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1aa91f41-c10a-4bbb-9a81-d8aa5e214d0a", + "title": "Change orders status to 'On backorder (paid)' in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should update order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'On backorder (paid)' in BO should update order status", + "timedOut": false, + "duration": 1148, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_updateOrderStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, test.args.orderStatus)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ceff5160-d5a2-4930-a0d8-9595bc48597d", + "parentUUID": "1aa91f41-c10a-4bbb-9a81-d8aa5e214d0a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'On backorder (paid)' in BO should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkStatusBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03e43eb7-9956-4f47-833b-6737bbf71073", + "parentUUID": "1aa91f41-c10a-4bbb-9a81-d8aa5e214d0a", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'On backorder (paid)' in BO should check received email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkEmail3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] \").concat(test.args.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95e9a963-d325-4815-bd0e-bb4e11bc0f65", + "parentUUID": "1aa91f41-c10a-4bbb-9a81-d8aa5e214d0a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ceff5160-d5a2-4930-a0d8-9595bc48597d", + "03e43eb7-9956-4f47-833b-6737bbf71073", + "95e9a963-d325-4815-bd0e-bb4e11bc0f65" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1157, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "85b07643-ba41-491d-bbac-479ec688ffcb", + "title": "Check the order status in FO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to FO page", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToFoToCheckStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoToCheckStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b67fbfc6-f190-4883-b6d6-4a5870e8467b", + "parentUUID": "85b07643-ba41-491d-bbac-479ec688ffcb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders history page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to orders history page", + "timedOut": false, + "duration": 1421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToOrderHistoryPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderHistoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open order history page').to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1b74330-0297-4719-ab1d-cf2a19282fcf", + "parentUUID": "85b07643-ba41-491d-bbac-479ec688ffcb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the last order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should check the last order status", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkLastOrderStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatusFO;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLastOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getOrderStatus(page, 1)];\n case 2:\n orderStatusFO = _a.sent();\n (0, chai_1.expect)(orderStatusFO, 'Order status is not correct').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3faa5f50-ac46-4c2a-a492-4962c8010167", + "parentUUID": "85b07643-ba41-491d-bbac-479ec688ffcb", + "isHook": false, + "skipped": false + }, + { + "title": "should close the shop page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should close the shop page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_closeShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "067941e8-d1ff-4240-8e38-427202b692ca", + "parentUUID": "85b07643-ba41-491d-bbac-479ec688ffcb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b67fbfc6-f190-4883-b6d6-4a5870e8467b", + "b1b74330-0297-4719-ab1d-cf2a19282fcf", + "3faa5f50-ac46-4c2a-a492-4962c8010167", + "067941e8-d1ff-4240-8e38-427202b692ca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3154, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d2e54fdb-ca71-43b6-9b54-854a5c044bb0", + "title": "Change orders status to 'Payment accepted' in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should update order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Payment accepted' in BO should update order status", + "timedOut": false, + "duration": 1345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_updateOrderStatus4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, test.args.orderStatus)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c5ef573-81cb-4b89-8520-17c8a8b78309", + "parentUUID": "d2e54fdb-ca71-43b6-9b54-854a5c044bb0", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Payment accepted' in BO should check that the status is updated successfully", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkStatusBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f746f6e-eb83-462f-979b-fd4803fae622", + "parentUUID": "d2e54fdb-ca71-43b6-9b54-854a5c044bb0", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Payment accepted' in BO should check received email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkEmail4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] \").concat(test.args.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d089877d-6094-4d3f-ad18-5d6208b7aa1e", + "parentUUID": "d2e54fdb-ca71-43b6-9b54-854a5c044bb0", + "isHook": false, + "skipped": false + }, + { + "title": "should download invoice", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Payment accepted' in BO should download invoice", + "timedOut": false, + "duration": 271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_downloadInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.downloadInvoice(page, 1)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'The file is not existing!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2d7e2a9-b24b-4011-88d5-6154dceb4624", + "parentUUID": "d2e54fdb-ca71-43b6-9b54-854a5c044bb0", + "isHook": false, + "skipped": false + }, + { + "title": "should check invoice pdf file", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Payment accepted' in BO should check invoice pdf file", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkInvoiceText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderInformation, referenceExist, deliveryExist, customerExist, totalPaidExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getOrderFromTable(page, 1)];\n case 2:\n orderInformation = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, orderInformation.reference)];\n case 3:\n referenceExist = _a.sent();\n (0, chai_1.expect)(referenceExist, \"Reference '\".concat(orderInformation.reference, \"' does not exist in invoice\"))\n .to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, orderInformation.delivery)];\n case 4:\n deliveryExist = _a.sent();\n (0, chai_1.expect)(deliveryExist, \"Country name '\".concat(orderInformation.delivery, \"' does not exist in invoice\"))\n .to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, orderInformation.customer.slice(3))];\n case 5:\n customerExist = _a.sent();\n (0, chai_1.expect)(customerExist, \"Customer name '\".concat(orderInformation.customer, \"' does not exist in invoice\"))\n .to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, orderInformation.totalPaid)];\n case 6:\n totalPaidExist = _a.sent();\n (0, chai_1.expect)(totalPaidExist, \"Total paid '\".concat(orderInformation.totalPaid, \"' does not exist in invoice\"))\n .to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3823d7c7-e77f-4719-b86c-b6abb7230d1a", + "parentUUID": "d2e54fdb-ca71-43b6-9b54-854a5c044bb0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0c5ef573-81cb-4b89-8520-17c8a8b78309", + "7f746f6e-eb83-462f-979b-fd4803fae622", + "d089877d-6094-4d3f-ad18-5d6208b7aa1e", + "b2d7e2a9-b24b-4011-88d5-6154dceb4624", + "3823d7c7-e77f-4719-b86c-b6abb7230d1a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3328, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d17ca3fd-6565-493e-bd80-744a4cf6b737", + "title": "Check the order status in FO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to FO page", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToFoToCheckStatus4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoToCheckStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5433422c-5930-482e-9a90-69be159b680c", + "parentUUID": "d17ca3fd-6565-493e-bd80-744a4cf6b737", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders history page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to orders history page", + "timedOut": false, + "duration": 1406, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToOrderHistoryPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderHistoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open order history page').to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fcd680d-f8e3-4cbe-84ab-da8287f93d29", + "parentUUID": "d17ca3fd-6565-493e-bd80-744a4cf6b737", + "isHook": false, + "skipped": false + }, + { + "title": "should check the last order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should check the last order status", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkLastOrderStatus4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatusFO;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLastOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getOrderStatus(page, 1)];\n case 2:\n orderStatusFO = _a.sent();\n (0, chai_1.expect)(orderStatusFO, 'Order status is not correct').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b8b6b1e-3b60-486e-814d-95d16936b5cc", + "parentUUID": "d17ca3fd-6565-493e-bd80-744a4cf6b737", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the last invoice is visible", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should check if the last invoice is visible", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkLastInvoice4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLastInvoice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.isInvoiceVisible(page, 1)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'The invoice file is not existing!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60abb516-395b-46d1-8d44-24dfe5846b28", + "parentUUID": "d17ca3fd-6565-493e-bd80-744a4cf6b737", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order ID of the invoice", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should check the order ID of the invoice", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkOrderID4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderID;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderID\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getOrderIdFromInvoiceHref(page, 1)];\n case 2:\n orderID = _a.sent();\n (0, chai_1.expect)(orderID, 'The invoice file attached is not correct!').to.contains(\"id_order=\".concat(orderId));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d10d0a04-c6a4-4974-8b69-a7fa14e38338", + "parentUUID": "d17ca3fd-6565-493e-bd80-744a4cf6b737", + "isHook": false, + "skipped": false + }, + { + "title": "should close the shop page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should close the shop page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_closeShop4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35f36a93-c3e2-459d-93be-e63078efb318", + "parentUUID": "d17ca3fd-6565-493e-bd80-744a4cf6b737", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5433422c-5930-482e-9a90-69be159b680c", + "2fcd680d-f8e3-4cbe-84ab-da8287f93d29", + "3b8b6b1e-3b60-486e-814d-95d16936b5cc", + "60abb516-395b-46d1-8d44-24dfe5846b28", + "d10d0a04-c6a4-4974-8b69-a7fa14e38338", + "35f36a93-c3e2-459d-93be-e63078efb318" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3172, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "69a05708-9309-4633-bb5d-259857a11f89", + "title": "Change orders status to 'Shipped' in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should update order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Shipped' in BO should update order status", + "timedOut": false, + "duration": 1088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_updateOrderStatus5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, test.args.orderStatus)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69bf0690-a84f-4361-b61b-ee783fef417b", + "parentUUID": "69a05708-9309-4633-bb5d-259857a11f89", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status is updated successfully", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Shipped' in BO should check that the status is updated successfully", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkStatusBO5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStatusBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2191bc04-3125-424a-a76b-23523a40366b", + "parentUUID": "69a05708-9309-4633-bb5d-259857a11f89", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Change orders status to 'Shipped' in BO should check received email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkEmail5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] \").concat(test.args.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dc2b87b-8dd9-41ad-9de6-9b39e71d4508", + "parentUUID": "69a05708-9309-4633-bb5d-259857a11f89", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "69bf0690-a84f-4361-b61b-ee783fef417b", + "2191bc04-3125-424a-a76b-23523a40366b", + "4dc2b87b-8dd9-41ad-9de6-9b39e71d4508" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1096, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c3f9a1be-07e9-40b7-8039-d567dad32abf", + "title": "Check the order status in FO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to FO page", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToFoToCheckStatus5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFoToCheckStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c0a0990-5b23-4fd5-b44b-dd2f7c6cf9e4", + "parentUUID": "c3f9a1be-07e9-40b7-8039-d567dad32abf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders history page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should go to orders history page", + "timedOut": false, + "duration": 1430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_goToOrderHistoryPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderHistoryPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open order history page').to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "652a9767-4a66-44aa-a812-d51d80eff4d4", + "parentUUID": "c3f9a1be-07e9-40b7-8039-d567dad32abf", + "isHook": false, + "skipped": false + }, + { + "title": "should check the last order status", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should check the last order status", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_checkLastOrderStatus5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatusFO;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLastOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getOrderStatus(page, 1)];\n case 2:\n orderStatusFO = _a.sent();\n (0, chai_1.expect)(orderStatusFO, 'Order status is not correct').to.equal(test.args.orderStatus.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f2fabbc-10d1-46c6-a5b1-a5c051383c17", + "parentUUID": "c3f9a1be-07e9-40b7-8039-d567dad32abf", + "isHook": false, + "skipped": false + }, + { + "title": "should close the shop page", + "fullTitle": "BO - orders : Update order status Change orders status in BO then check it in FO Check the order status in FO should close the shop page", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_closeShop5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ace58970-2cdc-482c-a6f3-f8dd1487a058", + "parentUUID": "c3f9a1be-07e9-40b7-8039-d567dad32abf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8c0a0990-5b23-4fd5-b44b-dd2f7c6cf9e4", + "652a9767-4a66-44aa-a812-d51d80eff4d4", + "6f2fabbc-10d1-46c6-a5b1-a5c051383c17", + "ace58970-2cdc-482c-a6f3-f8dd1487a058" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3218, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d21d7bd5-7e19-4ebc-8096-365ae26a8204", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/04_updateStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - orders : Update order status POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2b79271-859a-4970-bd59-3039d935e9f3", + "parentUUID": "d21d7bd5-7e19-4ebc-8096-365ae26a8204", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - orders : Update order status POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e48b86a9-54d8-4f96-8129-41ce2478e368", + "parentUUID": "d21d7bd5-7e19-4ebc-8096-365ae26a8204", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - orders : Update order status POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "805a9065-08ed-4164-afdc-5cd25891d2a3", + "parentUUID": "d21d7bd5-7e19-4ebc-8096-365ae26a8204", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - orders : Update order status POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_postTest_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89ea3964-177b-4c4c-a896-fc41cdf67ee9", + "parentUUID": "d21d7bd5-7e19-4ebc-8096-365ae26a8204", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - orders : Update order status POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_updateStatus_postTest_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0c0c163-1f32-4489-8821-c00d896a0b22", + "parentUUID": "d21d7bd5-7e19-4ebc-8096-365ae26a8204", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "805a9065-08ed-4164-afdc-5cd25891d2a3", + "89ea3964-177b-4c4c-a896-fc41cdf67ee9", + "c0c0c163-1f32-4489-8821-c00d896a0b22" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7054, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d099e777-823f-4bb0-8d0f-d9d2c80b32f8", + "title": "BO - Orders : Bulk update orders status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/05_bulkUpdateOrdersStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/05_bulkUpdateOrdersStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Bulk update orders status\"", + "fullTitle": "BO - Orders : Bulk update orders status \"before all\" hook in \"BO - Orders : Bulk update orders status\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc91a660-c398-4663-ab6b-622f5fc89276", + "parentUUID": "d099e777-823f-4bb0-8d0f-d9d2c80b32f8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Bulk update orders status\"", + "fullTitle": "BO - Orders : Bulk update orders status \"after all\" hook in \"BO - Orders : Bulk update orders status\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dac4963b-26d6-4b68-a917-e49f63519319", + "parentUUID": "d099e777-823f-4bb0-8d0f-d9d2c80b32f8", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "63d3c359-4abe-47ad-a747-de86969195ce", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/05_bulkUpdateOrdersStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/05_bulkUpdateOrdersStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d500267d-a036-444a-ace1-9e99eb5e1e45", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "38882b4e-1a0f-4b38-bdbd-cbc66a3085c8", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47d855e5-ae7f-45cf-91da-ac0a82161e2d", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c60c4f73-fd48-42f3-a0dc-7bcfef4ebf8f", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb293acf-a557-4eef-964d-bf300c619755", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6d053f3-06db-47ee-a0d7-0623ad4f538b", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "120a35d1-7ca9-4b96-9581-5020296e55db", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4bf20c9-f2bb-4d02-9470-ea0e3db1610b", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1578, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ac265e9-8ebc-4ed8-bbef-394e3e580558", + "parentUUID": "63d3c359-4abe-47ad-a747-de86969195ce", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "47d855e5-ae7f-45cf-91da-ac0a82161e2d", + "c60c4f73-fd48-42f3-a0dc-7bcfef4ebf8f", + "eb293acf-a557-4eef-964d-bf300c619755", + "a6d053f3-06db-47ee-a0d7-0623ad4f538b", + "120a35d1-7ca9-4b96-9581-5020296e55db", + "f4bf20c9-f2bb-4d02-9470-ea0e3db1610b", + "2ac265e9-8ebc-4ed8-bbef-394e3e580558" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13072, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/05_bulkUpdateOrdersStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/05_bulkUpdateOrdersStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7dd8fa2-9b8a-4125-9fef-b999c319aae5", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "98b0e276-5c25-4564-a587-724a9c84ca2a", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c80e5b4a-854d-4dc7-8ac4-4a52c84fdf06", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05c8a02f-152e-45ef-a10e-007fe2f457ec", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04685f8b-9abf-4c7a-9644-438a0d81fc3f", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48092523-1451-408f-831c-29ca7108178d", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf383713-96a7-4478-900b-b8895c352d95", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63732f58-90ee-4b7c-839b-b90d46f3678d", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders : Bulk update orders status PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4831b11d-6643-4d03-99ef-21a6991c3f5c", + "parentUUID": "e58c4838-fe2f-46e2-b204-cb4b45996163", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c80e5b4a-854d-4dc7-8ac4-4a52c84fdf06", + "05c8a02f-152e-45ef-a10e-007fe2f457ec", + "04685f8b-9abf-4c7a-9644-438a0d81fc3f", + "48092523-1451-408f-831c-29ca7108178d", + "cf383713-96a7-4478-900b-b8895c352d95", + "63732f58-90ee-4b7c-839b-b90d46f3678d", + "4831b11d-6643-4d03-99ef-21a6991c3f5c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12967, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9f08ab2a-4300-47d0-b5e6-2e3b7867c4ba", + "title": "Update orders status in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/05_bulkUpdateOrdersStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/05_bulkUpdateOrdersStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Bulk update orders status Update orders status in BO should login in BO", + "timedOut": false, + "duration": 1767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41aeddf2-6353-4cb2-b4a7-6212d057be6e", + "parentUUID": "9f08ab2a-4300-47d0-b5e6-2e3b7867c4ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : Bulk update orders status Update orders status in BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02cef487-2cca-400f-a7a1-06bff368b274", + "parentUUID": "9f08ab2a-4300-47d0-b5e6-2e3b7867c4ba", + "isHook": false, + "skipped": false + }, + { + "title": "should update orders status with bulk action", + "fullTitle": "BO - Orders : Bulk update orders status Update orders status in BO should update orders status with bulk action", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_bulkUpdateOrdersStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkUpdateOrdersStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.bulkUpdateOrdersStatus(page, orderStatuses_1.default.paymentAccepted.name, false, [1, 2])];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37dc1919-f71c-46f1-a1ec-8dc746d6731a", + "parentUUID": "9f08ab2a-4300-47d0-b5e6-2e3b7867c4ba", + "isHook": false, + "skipped": false + }, + { + "title": "should check the first order status", + "fullTitle": "BO - Orders : Bulk update orders status Update orders status in BO should check the first order status", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_checkOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderStatus\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', index + 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status is not correct').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83c71157-c1fa-4d6e-992d-11e516f75716", + "parentUUID": "9f08ab2a-4300-47d0-b5e6-2e3b7867c4ba", + "isHook": false, + "skipped": false + }, + { + "title": "should check the second order status", + "fullTitle": "BO - Orders : Bulk update orders status Update orders status in BO should check the second order status", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkUpdateOrdersStatus_checkOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderStatus\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', index + 1)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status is not correct').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac5f1aab-b5b0-4806-8ce8-b2ec6276214c", + "parentUUID": "9f08ab2a-4300-47d0-b5e6-2e3b7867c4ba", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "41aeddf2-6353-4cb2-b4a7-6212d057be6e", + "02cef487-2cca-400f-a7a1-06bff368b274", + "37dc1919-f71c-46f1-a1ec-8dc746d6731a", + "83c71157-c1fa-4d6e-992d-11e516f75716", + "ac5f1aab-b5b0-4806-8ce8-b2ec6276214c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7389, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "30271997-5a0a-4060-bf21-306641da05c1", + "title": "BO - Orders : Bulk open on new tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Bulk open on new tab\"", + "fullTitle": "BO - Orders : Bulk open on new tab \"before all\" hook in \"BO - Orders : Bulk open on new tab\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41532068-c004-43e5-a66e-8234807136fc", + "parentUUID": "30271997-5a0a-4060-bf21-306641da05c1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Bulk open on new tab\"", + "fullTitle": "BO - Orders : Bulk open on new tab \"after all\" hook in \"BO - Orders : Bulk open on new tab\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ae6f756a-ea88-4620-bf9c-1e1252e0c140", + "parentUUID": "30271997-5a0a-4060-bf21-306641da05c1", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c8e5e9ac-757e-4ced-8abd-e4e3e1d13303", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "baf2cf97-eae9-4682-a6e4-7e9d58231909", + "parentUUID": "c8e5e9ac-757e-4ced-8abd-e4e3e1d13303", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "576d5718-1d6c-4947-a427-183b6b8cd888", + "parentUUID": "c8e5e9ac-757e-4ced-8abd-e4e3e1d13303", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8707493-e53e-4e50-af4c-ac086d7a6d5f", + "parentUUID": "c8e5e9ac-757e-4ced-8abd-e4e3e1d13303", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1aacb9c2-25b9-4c5d-9dd0-d55ee6dfc2ad", + "parentUUID": "c8e5e9ac-757e-4ced-8abd-e4e3e1d13303", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 1128, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_1_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb240b5e-97b2-41cb-ae68-3be94ae4fca0", + "parentUUID": "c8e5e9ac-757e-4ced-8abd-e4e3e1d13303", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_1_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0bc253e-c5ed-49dd-a990-d5a1a493b0b5", + "parentUUID": "c8e5e9ac-757e-4ced-8abd-e4e3e1d13303", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_1_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd5fd3b8-43c4-4448-a4a5-3898190a8f97", + "parentUUID": "c8e5e9ac-757e-4ced-8abd-e4e3e1d13303", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e8707493-e53e-4e50-af4c-ac086d7a6d5f", + "1aacb9c2-25b9-4c5d-9dd0-d55ee6dfc2ad", + "fb240b5e-97b2-41cb-ae68-3be94ae4fca0", + "b0bc253e-c5ed-49dd-a990-d5a1a493b0b5", + "fd5fd3b8-43c4-4448-a4a5-3898190a8f97" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11667, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6770a8c7-dbfb-479e-a168-19155bff1bd4", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bac6c59c-58bb-4fd6-a0e3-6c63147635ab", + "parentUUID": "6770a8c7-dbfb-479e-a168-19155bff1bd4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e779a82a-54be-4a52-adc3-0736c8a8a8e4", + "parentUUID": "6770a8c7-dbfb-479e-a168-19155bff1bd4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f67fdbac-f076-438b-8779-8e0ff9940881", + "parentUUID": "6770a8c7-dbfb-479e-a168-19155bff1bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4d500fd-ff52-4c12-83e4-4b5e3dd7a730", + "parentUUID": "6770a8c7-dbfb-479e-a168-19155bff1bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 1093, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_2_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62175c19-f4e0-4ee4-9f50-273f0ecaa30b", + "parentUUID": "6770a8c7-dbfb-479e-a168-19155bff1bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1597, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_2_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ae0fea5-20c0-446e-afa5-e84ab722f49e", + "parentUUID": "6770a8c7-dbfb-479e-a168-19155bff1bd4", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders : Bulk open on new tab PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2389, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_preTest_2_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1d58757-2c77-4383-a014-0286c5d02af6", + "parentUUID": "6770a8c7-dbfb-479e-a168-19155bff1bd4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f67fdbac-f076-438b-8779-8e0ff9940881", + "b4d500fd-ff52-4c12-83e4-4b5e3dd7a730", + "62175c19-f4e0-4ee4-9f50-273f0ecaa30b", + "8ae0fea5-20c0-446e-afa5-e84ab722f49e", + "c1d58757-2c77-4383-a014-0286c5d02af6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11650, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6d343857-9baf-4b50-a50f-a19868476e5d", + "title": "Open on new tab by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Bulk open on new tab Open on new tab by bulk actions should login in BO", + "timedOut": false, + "duration": 1753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "befc1e18-5d62-44f8-9487-ef55ff649ef5", + "parentUUID": "6d343857-9baf-4b50-a50f-a19868476e5d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : Bulk open on new tab Open on new tab by bulk actions should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c930bd6-0395-4e01-940f-d85f41db35b1", + "parentUUID": "6d343857-9baf-4b50-a50f-a19868476e5d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Bulk open on new tab Open on new tab by bulk actions should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7633a5ba-f170-4c72-86f1-a514c85ef293", + "parentUUID": "6d343857-9baf-4b50-a50f-a19868476e5d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Open in new tabs' with bulk actions", + "fullTitle": "BO - Orders : Bulk open on new tab Open on new tab by bulk actions should click on 'Open in new tabs' with bulk actions", + "timedOut": false, + "duration": 1525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_bulkOpenInNewTabs\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkOpenInNewTabs', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.bulkOpenInNewTabs(page, false, [1, 2])];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0521e706-7434-4237-a582-3352371890cb", + "parentUUID": "6d343857-9baf-4b50-a50f-a19868476e5d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the first opened order page", + "fullTitle": "BO - Orders : Bulk open on new tab Open on new tab by bulk actions should check the first opened order page", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_checkFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getCustomerInfoBlock(page)];\n case 2:\n customerInfo = _a.sent();\n (0, chai_1.expect)(customerInfo).to.contains(secondCustomerData.socialTitle);\n (0, chai_1.expect)(customerInfo).to.contains(secondCustomerData.firstName);\n (0, chai_1.expect)(customerInfo).to.contains(secondCustomerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22cb7d5c-4a27-4189-b319-e0ea52fb4912", + "parentUUID": "6d343857-9baf-4b50-a50f-a19868476e5d", + "isHook": false, + "skipped": false + }, + { + "title": "should close the tab and check that the second order page is opened", + "fullTitle": "BO - Orders : Bulk open on new tab Open on new tab by bulk actions should close the tab and check that the second order page is opened", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_closeFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.closePage(browserContext, page, 1)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a767e888-5cb5-41f6-b3ce-5c588c7fee30", + "parentUUID": "6d343857-9baf-4b50-a50f-a19868476e5d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the second order page", + "fullTitle": "BO - Orders : Bulk open on new tab Open on new tab by bulk actions should check the second order page", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_checkSecondOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSecondOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getCustomerInfoBlock(page)];\n case 2:\n customerInfo = _a.sent();\n (0, chai_1.expect)(customerInfo).to.contains(firstCustomerData.socialTitle);\n (0, chai_1.expect)(customerInfo).to.contains(firstCustomerData.firstName);\n (0, chai_1.expect)(customerInfo).to.contains(firstCustomerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fdecd91-f2c3-4816-a749-490150754343", + "parentUUID": "6d343857-9baf-4b50-a50f-a19868476e5d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "befc1e18-5d62-44f8-9487-ef55ff649ef5", + "6c930bd6-0395-4e01-940f-d85f41db35b1", + "7633a5ba-f170-4c72-86f1-a514c85ef293", + "0521e706-7434-4237-a582-3352371890cb", + "22cb7d5c-4a27-4189-b319-e0ea52fb4912", + "a767e888-5cb5-41f6-b3ce-5c588c7fee30", + "3fdecd91-f2c3-4816-a749-490150754343" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9239, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "206571fa-c561-4c7b-829f-e518acf0ad65", + "parentUUID": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a9fc6c77-5b51-4b36-af9e-8493451c8dd4", + "parentUUID": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfb4dc8b-790a-401d-8abf-863fe408a470", + "parentUUID": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b6c625e-ef6b-4f02-be32-0fa1d891e89e", + "parentUUID": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b750d79-e98f-43af-980c-1f539fc2b15b", + "parentUUID": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffb45510-825c-417f-b14c-611344c04c3c", + "parentUUID": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1597, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54401bb5-4494-4027-9e0d-5face0d2a3b6", + "parentUUID": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8e1d961-2428-4bc7-89db-6587a2dd7587", + "parentUUID": "3e2622f1-7a28-45eb-b5ca-7f69977fb267", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cfb4dc8b-790a-401d-8abf-863fe408a470", + "3b6c625e-ef6b-4f02-be32-0fa1d891e89e", + "7b750d79-e98f-43af-980c-1f539fc2b15b", + "ffb45510-825c-417f-b14c-611344c04c3c", + "54401bb5-4494-4027-9e0d-5face0d2a3b6", + "c8e1d961-2428-4bc7-89db-6587a2dd7587" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11936, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "560631c0-9ddf-4514-af0b-e1275523ea80", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/06_bulkOpenInNewTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef041cbb-d356-460c-bc08-997868caf912", + "parentUUID": "560631c0-9ddf-4514-af0b-e1275523ea80", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "012b8e1e-021e-4dd1-920b-5ee716fb4f56", + "parentUUID": "560631c0-9ddf-4514-af0b-e1275523ea80", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a6572f5-4aa7-4607-aaf0-4b84f7a89fa6", + "parentUUID": "560631c0-9ddf-4514-af0b-e1275523ea80", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_2_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22ef2987-7595-4529-8652-cf86cb4575c3", + "parentUUID": "560631c0-9ddf-4514-af0b-e1275523ea80", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_2_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3526e2c3-9711-4666-9426-4e0e48b57926", + "parentUUID": "560631c0-9ddf-4514-af0b-e1275523ea80", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1149, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_2_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8a2ef6a-dc03-4e46-b067-ea3ca6ee7c84", + "parentUUID": "560631c0-9ddf-4514-af0b-e1275523ea80", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_2_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72c93df5-e901-4a7b-9d7b-6fa02fba3691", + "parentUUID": "560631c0-9ddf-4514-af0b-e1275523ea80", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders : Bulk open on new tab POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 364, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_bulkOpenInNewTab_postTest_2_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "105a0ba3-afbb-4169-86a1-bbdae07bc19d", + "parentUUID": "560631c0-9ddf-4514-af0b-e1275523ea80", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9a6572f5-4aa7-4607-aaf0-4b84f7a89fa6", + "22ef2987-7595-4529-8652-cf86cb4575c3", + "3526e2c3-9711-4666-9426-4e0e48b57926", + "d8a2ef6a-dc03-4e46-b067-ea3ca6ee7c84", + "72c93df5-e901-4a7b-9d7b-6fa02fba3691", + "105a0ba3-afbb-4169-86a1-bbdae07bc19d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11950, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa615b21-98a3-479b-84cf-84e181d966c1", + "title": "BO - Orders : Sort orders", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/07_sortOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/07_sortOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Sort orders\"", + "fullTitle": "BO - Orders : Sort orders \"before all\" hook in \"BO - Orders : Sort orders\"", + "timedOut": false, + "duration": 57, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e2cef6c-4d41-4036-9cdd-cb8f4886ff06", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Sort orders\"", + "fullTitle": "BO - Orders : Sort orders \"after all\" hook in \"BO - Orders : Sort orders\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2374babf-37cb-453e-8d05-ba0acd9613b0", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Sort orders should login in BO", + "timedOut": false, + "duration": 1787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0695c21-51f0-4bac-b024-0cfc37b7110d", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : Sort orders should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f6838c0-007c-4bc0-bc55-e10aa3acfd42", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by reference asc", + "fullTitle": "BO - Orders : Sort orders should sort by reference asc", + "timedOut": false, + "duration": 3005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByReferenceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97596f27-75f4-45b4-ab54-55d02ac3889e", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by reference desc", + "fullTitle": "BO - Orders : Sort orders should sort by reference desc", + "timedOut": false, + "duration": 2973, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByReferenceDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac572f1d-31c2-4658-ab77-b68b7eec2115", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by country_name asc", + "fullTitle": "BO - Orders : Sort orders should sort by country_name asc", + "timedOut": false, + "duration": 2970, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByCountryNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffcdc232-3407-435d-81d1-33dca03fade1", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by country_name desc", + "fullTitle": "BO - Orders : Sort orders should sort by country_name desc", + "timedOut": false, + "duration": 2966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByCountryNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20385037-55c8-45f4-930e-a45d49d73ad4", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by customer asc", + "fullTitle": "BO - Orders : Sort orders should sort by customer asc", + "timedOut": false, + "duration": 2953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByCustomerAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "413b3d1e-f2c9-491b-aa5d-05d87f842675", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by customer desc", + "fullTitle": "BO - Orders : Sort orders should sort by customer desc", + "timedOut": false, + "duration": 2942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByCustomerDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47b1d02c-0eda-4018-95ff-0cf9c6775fce", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by total_paid_tax_incl asc", + "fullTitle": "BO - Orders : Sort orders should sort by total_paid_tax_incl asc", + "timedOut": false, + "duration": 2958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByTotalPaidAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b17aa5b9-8fe8-42d9-aa06-9b31b984c63e", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by total_paid_tax_incl desc", + "fullTitle": "BO - Orders : Sort orders should sort by total_paid_tax_incl desc", + "timedOut": false, + "duration": 2952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByTotalPaidDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c1ec322-5f95-449b-9a2a-e6f4238beff9", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by payment asc", + "fullTitle": "BO - Orders : Sort orders should sort by payment asc", + "timedOut": false, + "duration": 2945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByPaymentAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d01fd7ca-64fb-462b-8ba6-9af53327e4fb", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by payment desc", + "fullTitle": "BO - Orders : Sort orders should sort by payment desc", + "timedOut": false, + "duration": 3095, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByPaymentDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1512ee05-d96e-4ff8-b470-e2933859d4b8", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by osname asc", + "fullTitle": "BO - Orders : Sort orders should sort by osname asc", + "timedOut": false, + "duration": 2974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByOsnameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de2ce30c-59aa-4aad-967f-36510232d4ea", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by osname desc", + "fullTitle": "BO - Orders : Sort orders should sort by osname desc", + "timedOut": false, + "duration": 2956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByOsnameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c99c0622-c4f6-4a68-95aa-f3c495c4161d", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by date_add desc", + "fullTitle": "BO - Orders : Sort orders should sort by date_add desc", + "timedOut": false, + "duration": 3755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByDateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a0a44cf-8f54-4e24-b994-47df2fa70774", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by date_add asc", + "fullTitle": "BO - Orders : Sort orders should sort by date_add asc", + "timedOut": false, + "duration": 2950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByDateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "088b2523-5a73-4b80-965a-c5fbbe9f317c", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by id_order asc", + "fullTitle": "BO - Orders : Sort orders should sort by id_order asc", + "timedOut": false, + "duration": 2905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b338fe3-dd76-4aea-9960-25aa5036fe69", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by id_order desc", + "fullTitle": "BO - Orders : Sort orders should sort by id_order desc", + "timedOut": false, + "duration": 2903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_sortOrders_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, orders_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96190932-ecde-4b38-b815-9ce5657cc638", + "parentUUID": "fa615b21-98a3-479b-84cf-84e181d966c1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a0695c21-51f0-4bac-b024-0cfc37b7110d", + "7f6838c0-007c-4bc0-bc55-e10aa3acfd42", + "97596f27-75f4-45b4-ab54-55d02ac3889e", + "ac572f1d-31c2-4658-ab77-b68b7eec2115", + "ffcdc232-3407-435d-81d1-33dca03fade1", + "20385037-55c8-45f4-930e-a45d49d73ad4", + "413b3d1e-f2c9-491b-aa5d-05d87f842675", + "47b1d02c-0eda-4018-95ff-0cf9c6775fce", + "b17aa5b9-8fe8-42d9-aa06-9b31b984c63e", + "4c1ec322-5f95-449b-9a2a-e6f4238beff9", + "d01fd7ca-64fb-462b-8ba6-9af53327e4fb", + "1512ee05-d96e-4ff8-b470-e2933859d4b8", + "de2ce30c-59aa-4aad-967f-36510232d4ea", + "c99c0622-c4f6-4a68-95aa-f3c495c4161d", + "9a0a44cf-8f54-4e24-b994-47df2fa70774", + "088b2523-5a73-4b80-965a-c5fbbe9f317c", + "4b338fe3-dd76-4aea-9960-25aa5036fe69", + "96190932-ecde-4b38-b815-9ce5657cc638" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 54890, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a3305bd2-5b94-4821-8558-7d4d44494969", + "title": "BO - Orders : View customer from orders page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/08_viewCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/08_viewCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : View customer from orders page\"", + "fullTitle": "BO - Orders : View customer from orders page \"before all\" hook in \"BO - Orders : View customer from orders page\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e3c9b72-683a-4fa2-b4f3-4388caf3facf", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : View customer from orders page\"", + "fullTitle": "BO - Orders : View customer from orders page \"after all\" hook in \"BO - Orders : View customer from orders page\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2ec5e653-b741-4d70-8bd8-a79d2f5d2a1d", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : View customer from orders page should login in BO", + "timedOut": false, + "duration": 1783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3204ed7d-8f6f-44a6-bb17-8e2414167af0", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : View customer from orders page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewCustomer_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94382acd-43cd-4569-bf81-3ea810a95058", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : View customer from orders page should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewCustomer_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3894361-646e-4b60-b217-39fa26283d36", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": false, + "skipped": false + }, + { + "title": "should filter order by customer name", + "fullTitle": "BO - Orders : View customer from orders page should filter order by customer name", + "timedOut": false, + "duration": 2407, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewCustomer_filterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96ee9116-cb15-4871-aa87-24383a51b0be", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer link", + "fullTitle": "BO - Orders : View customer from orders page should check customer link", + "timedOut": false, + "duration": 1520, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewCustomer_viewCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewCustomer(page, 1)];\n case 2:\n // Click on customer link first row\n page = _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to\n .eq(view_1.default.pageTitle(\"\".concat(customers_1.default.johnDoe.firstName[0], \". \").concat(customers_1.default.johnDoe.lastName)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8a6b730-11fa-4d65-be5d-b418b7262226", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to 'Orders > Orders' page", + "fullTitle": "BO - Orders : View customer from orders page should go back to 'Orders > Orders' page", + "timedOut": false, + "duration": 3632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewCustomer_goBackToOrdersPageToResetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToOrdersPageToResetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8428e09-b5a6-47b9-be09-6cf1f43fc94c", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : View customer from orders page should reset all filters", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewCustomer_resetFiltersAfterCheck\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersAfterCheck', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3968def1-9d7a-4d80-b825-b6f8c92f9c44", + "parentUUID": "a3305bd2-5b94-4821-8558-7d4d44494969", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3204ed7d-8f6f-44a6-bb17-8e2414167af0", + "94382acd-43cd-4569-bf81-3ea810a95058", + "d3894361-646e-4b60-b217-39fa26283d36", + "96ee9116-cb15-4871-aa87-24383a51b0be", + "a8a6b730-11fa-4d65-be5d-b418b7262226", + "f8428e09-b5a6-47b9-be09-6cf1f43fc94c", + "3968def1-9d7a-4d80-b825-b6f8c92f9c44" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17092, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "43b14dda-d979-495b-85e9-b34734a82c89", + "title": "BO - Orders : View guest from orders page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/09_viewGuest.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/09_viewGuest.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : View guest from orders page\"", + "fullTitle": "BO - Orders : View guest from orders page \"before all\" hook in \"BO - Orders : View guest from orders page\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fb83da9-24fe-4ae2-be0c-e6082e5e229e", + "parentUUID": "43b14dda-d979-495b-85e9-b34734a82c89", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : View guest from orders page\"", + "fullTitle": "BO - Orders : View guest from orders page \"after all\" hook in \"BO - Orders : View guest from orders page\"", + "timedOut": false, + "duration": 22, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c1fbc592-ccba-4e2c-995e-6066c2d97478", + "parentUUID": "43b14dda-d979-495b-85e9-b34734a82c89", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "3f75711b-26f4-4950-b60f-8ac526b32ea4", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/09_viewGuest.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/09_viewGuest.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders : View guest from orders page PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb391464-d386-43d7-858d-75eeb4b98a2d", + "parentUUID": "3f75711b-26f4-4950-b60f-8ac526b32ea4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders : View guest from orders page PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8306934d-dc1e-4cb2-8108-392b48ff8536", + "parentUUID": "3f75711b-26f4-4950-b60f-8ac526b32ea4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : View guest from orders page PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31c2553a-06cf-4226-b62e-32eacff49815", + "parentUUID": "3f75711b-26f4-4950-b60f-8ac526b32ea4", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders : View guest from orders page PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "170987a9-bebe-41d7-8276-aae2f902222e", + "parentUUID": "3f75711b-26f4-4950-b60f-8ac526b32ea4", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders : View guest from orders page PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fdce9cd-e317-4cc5-8181-120150a1a45c", + "parentUUID": "3f75711b-26f4-4950-b60f-8ac526b32ea4", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders : View guest from orders page PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1546, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fce1fac-dee2-499e-a48b-61b096a91e0e", + "parentUUID": "3f75711b-26f4-4950-b60f-8ac526b32ea4", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders : View guest from orders page PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9abc9023-2200-418c-b71b-9a86bd37607d", + "parentUUID": "3f75711b-26f4-4950-b60f-8ac526b32ea4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "31c2553a-06cf-4226-b62e-32eacff49815", + "170987a9-bebe-41d7-8276-aae2f902222e", + "1fdce9cd-e317-4cc5-8181-120150a1a45c", + "5fce1fac-dee2-499e-a48b-61b096a91e0e", + "9abc9023-2200-418c-b71b-9a86bd37607d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11231, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8644ec90-6308-4526-890c-a18dc6d7d21b", + "title": "View guest from orders page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/09_viewGuest.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/09_viewGuest.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : View guest from orders page View guest from orders page should login in BO", + "timedOut": false, + "duration": 1803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3d117a3-a9e8-41bd-a819-a30d205c946b", + "parentUUID": "8644ec90-6308-4526-890c-a18dc6d7d21b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : View guest from orders page View guest from orders page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79dc5c25-790d-4bfa-a9c8-0a5c61b05c50", + "parentUUID": "8644ec90-6308-4526-890c-a18dc6d7d21b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : View guest from orders page View guest from orders page should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a63df610-9ef8-4223-88ba-30e03babb852", + "parentUUID": "8644ec90-6308-4526-890c-a18dc6d7d21b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter order by customer name", + "fullTitle": "BO - Orders : View guest from orders page View guest from orders page should filter order by customer name", + "timedOut": false, + "duration": 2383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_filterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99a2e365-33e3-4018-a398-b3e41fd7fc11", + "parentUUID": "8644ec90-6308-4526-890c-a18dc6d7d21b", + "isHook": false, + "skipped": false + }, + { + "title": "should check guest link", + "fullTitle": "BO - Orders : View guest from orders page View guest from orders page should check guest link", + "timedOut": false, + "duration": 1168, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_viewCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.viewCustomer(page, 1)];\n case 2:\n // Click on customer link first row\n page = _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to\n .contains(view_1.default.pageTitle(\"\".concat(customerData.firstName[0], \". \").concat(customerData.lastName)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06cb4d29-095e-42a5-bd3d-1692a8a9e580", + "parentUUID": "8644ec90-6308-4526-890c-a18dc6d7d21b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a3d117a3-a9e8-41bd-a819-a30d205c946b", + "79dc5c25-790d-4bfa-a9c8-0a5c61b05c50", + "a63df610-9ef8-4223-88ba-30e03babb852", + "99a2e365-33e3-4018-a398-b3e41fd7fc11", + "06cb4d29-095e-42a5-bd3d-1692a8a9e580" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12251, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/09_viewGuest.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/09_viewGuest.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders : View guest from orders page POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2561406f-7bfc-409c-b53e-fe44dba2e60a", + "parentUUID": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders : View guest from orders page POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7e4f5de8-7d28-4f21-b410-fab9ee117038", + "parentUUID": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : View guest from orders page POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf810362-7544-49a4-b096-90f6f1cc4360", + "parentUUID": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders : View guest from orders page POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c3727cf-c714-4d32-abbe-3a437899f266", + "parentUUID": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : View guest from orders page POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c60b719-64b0-42e2-9233-c9563f8349e5", + "parentUUID": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders : View guest from orders page POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1116, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68a6b0f4-1034-46e9-b2de-9f88b941c09a", + "parentUUID": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders : View guest from orders page POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1f94a29-dcf4-4d38-ba81-c84577796b56", + "parentUUID": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders : View guest from orders page POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewGuest_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d11cceb1-c832-4022-9059-971adea09e13", + "parentUUID": "623f3a59-db51-4174-8ee0-3c17d84d5b39", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bf810362-7544-49a4-b096-90f6f1cc4360", + "1c3727cf-c714-4d32-abbe-3a437899f266", + "3c60b719-64b0-42e2-9233-c9563f8349e5", + "68a6b0f4-1034-46e9-b2de-9f88b941c09a", + "c1f94a29-dcf4-4d38-ba81-c84577796b56", + "d11cceb1-c832-4022-9059-971adea09e13" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11910, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6c34f5e6-2715-48e1-93c2-da544759c01b", + "title": "BO - Orders : Pagination of orders table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Pagination of orders table\"", + "fullTitle": "BO - Orders : Pagination of orders table \"before all\" hook in \"BO - Orders : Pagination of orders table\"", + "timedOut": false, + "duration": 66, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa4d59a2-c95d-4c02-828f-8cb580987292", + "parentUUID": "6c34f5e6-2715-48e1-93c2-da544759c01b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Pagination of orders table\"", + "fullTitle": "BO - Orders : Pagination of orders table \"after all\" hook in \"BO - Orders : Pagination of orders table\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "61eed091-470f-48d5-8e7a-3b81b5105130", + "parentUUID": "6c34f5e6-2715-48e1-93c2-da544759c01b", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bce7a4a-8a20-4dc9-8d0e-b7c4438802d6", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "80abbe8e-911f-4cbd-a759-bd234c7796a6", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d29f6d7-bf3b-49b2-ae0b-1de8da9945b1", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c67e435-fa1c-4fac-8755-89298b10b383", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 522, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "224b9d4d-be14-4170-8f3a-da57cbf0c409", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7262, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbea3b8e-21af-4df7-a346-ec5cbe6623c8", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cad59cd8-636c-4479-820b-4c1b9f0a9404", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7346429-e29f-4877-9c02-f943d569b124", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1530, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34abadc0-aaa5-4449-a0bf-2a5554ae2129", + "parentUUID": "96ee9e25-999b-4ad4-a9cb-40ced59043c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0d29f6d7-bf3b-49b2-ae0b-1de8da9945b1", + "6c67e435-fa1c-4fac-8755-89298b10b383", + "224b9d4d-be14-4170-8f3a-da57cbf0c409", + "dbea3b8e-21af-4df7-a346-ec5cbe6623c8", + "cad59cd8-636c-4479-820b-4c1b9f0a9404", + "a7346429-e29f-4877-9c02-f943d569b124", + "34abadc0-aaa5-4449-a0bf-2a5554ae2129" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13072, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3afcef68-22aa-4980-9d16-924a3570ced5", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ac59fcf-c709-45ca-8734-ce31ca96c8e7", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "37d520b1-40f4-4b3e-a2cd-4f9cfcbe402f", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21874148-fdc9-487e-84ba-cb2e55de5bb3", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5061f40-77d9-4612-b56d-48635e1cea0c", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 544, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3e5088d-e151-44e8-be27-068c6929b322", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d37d830-268b-4137-ab80-244d50cd83d5", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff8fc4a7-50d7-4591-b88f-c43b8883f22d", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ce62a53-5dfe-4636-b7c3-05f8fe51f762", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1537, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54ad5868-192d-43b5-8783-2da14c66859c", + "parentUUID": "3afcef68-22aa-4980-9d16-924a3570ced5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "21874148-fdc9-487e-84ba-cb2e55de5bb3", + "c5061f40-77d9-4612-b56d-48635e1cea0c", + "d3e5088d-e151-44e8-be27-068c6929b322", + "5d37d830-268b-4137-ab80-244d50cd83d5", + "ff8fc4a7-50d7-4591-b88f-c43b8883f22d", + "6ce62a53-5dfe-4636-b7c3-05f8fe51f762", + "54ad5868-192d-43b5-8783-2da14c66859c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13044, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0683d251-4895-4065-b38a-a9f55fee8e26", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e4eba48a-a706-402b-9372-d85c06e6bdf8", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e400b16-4081-4a44-8fb8-88529c9637d9", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5256d8f6-5a1a-46e5-8555-3127052953fc", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 534, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e65d352b-0738-482a-9a5b-3c30be88b043", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b21c8da-6045-4fce-afde-d30e22f1b872", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_3_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b188067-0e92-4036-8432-51e3326163a8", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_3_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fd6d182-4a3e-4651-97cd-f213e3f89bba", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1520, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_3_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99f08a61-d4a7-4991-ab2b-d1ff9ca1f817", + "parentUUID": "4ede4ce7-6573-4ff1-b3ab-0ca61675014d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e400b16-4081-4a44-8fb8-88529c9637d9", + "5256d8f6-5a1a-46e5-8555-3127052953fc", + "e65d352b-0738-482a-9a5b-3c30be88b043", + "6b21c8da-6045-4fce-afde-d30e22f1b872", + "6b188067-0e92-4036-8432-51e3326163a8", + "5fd6d182-4a3e-4651-97cd-f213e3f89bba", + "99f08a61-d4a7-4991-ab2b-d1ff9ca1f817" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13037, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "968bc146-8db9-46cc-a47a-93a9ed9f55ac", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7c406cac-9221-42f7-89dc-2eb08fdc737f", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_4_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "249f4ab6-b65b-484e-b8c2-11c985cfe5be", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_4_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ce490b4-b952-4bf2-bfae-400690b5c70b", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 527, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_4_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d45c2494-f53d-4bb7-a73e-963a6494ce31", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_4_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c91f9883-d1e2-418e-826f-d540fbc488ff", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_4_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b947a1ac-cc25-4121-9138-e6aa16da91df", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_4_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60f38cb0-3f7d-4db7-8737-54852af30ed0", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1538, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_4_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42061c66-5a41-4f40-91bf-1fa12eb32c9c", + "parentUUID": "cac3efb4-2ccc-41e5-b1c6-f95790faf292", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "249f4ab6-b65b-484e-b8c2-11c985cfe5be", + "1ce490b4-b952-4bf2-bfae-400690b5c70b", + "d45c2494-f53d-4bb7-a73e-963a6494ce31", + "c91f9883-d1e2-418e-826f-d540fbc488ff", + "b947a1ac-cc25-4121-9138-e6aa16da91df", + "60f38cb0-3f7d-4db7-8737-54852af30ed0", + "42061c66-5a41-4f40-91bf-1fa12eb32c9c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13043, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9160602a-6567-46df-aff8-fa64c1fd3834", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a108c53-4ef7-4011-91de-b810b1886c92", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "785f21ed-bf94-42d6-8f70-46944c42dd8a", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_5_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6095ddc8-fdb5-409a-9fcc-fe28932c26ac", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_5_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab573265-f006-436b-b552-a602772e6659", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 521, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_5_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed010c53-dbb8-47d2-b1c4-4e96f2031917", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_5_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afa2cf10-813b-4deb-9878-b937ae7ac5c9", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_5_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72c07f8b-c084-418a-a7f4-110664a5e839", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_5_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abd30a3e-9105-4bd7-9bab-f657b051121b", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1539, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_5_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6cf8851-3021-4e09-be2e-dfc9a7a8526f", + "parentUUID": "9160602a-6567-46df-aff8-fa64c1fd3834", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6095ddc8-fdb5-409a-9fcc-fe28932c26ac", + "ab573265-f006-436b-b552-a602772e6659", + "ed010c53-dbb8-47d2-b1c4-4e96f2031917", + "afa2cf10-813b-4deb-9878-b937ae7ac5c9", + "72c07f8b-c084-418a-a7f4-110664a5e839", + "abd30a3e-9105-4bd7-9bab-f657b051121b", + "d6cf8851-3021-4e09-be2e-dfc9a7a8526f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12975, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "598ea3b8-93e3-4322-b440-241524f877df", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3c08530-83e3-48d9-b87b-69015eb6c569", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6808c850-2c0d-4cb7-8c23-3fc4b3dba528", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_6_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f612a55e-ea48-4310-a155-a601738eb23f", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_6_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "baaf2ce4-0651-4ec9-81b8-898c2f7d7617", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 518, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_6_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0f05a54-4d06-41b0-9d66-f4ede62112c7", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_6_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9926143c-406d-43ae-986f-72bea28864f0", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_6_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5732fbd5-a421-4d82-bec5-638d032674bf", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_6_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "caeb3ce8-296e-4195-9a6b-7422d5a5f278", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders : Pagination of orders table PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1537, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_preTest_6_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a2b4109-1ba3-4ce4-8d52-31e96774e268", + "parentUUID": "598ea3b8-93e3-4322-b440-241524f877df", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f612a55e-ea48-4310-a155-a601738eb23f", + "baaf2ce4-0651-4ec9-81b8-898c2f7d7617", + "b0f05a54-4d06-41b0-9d66-f4ede62112c7", + "9926143c-406d-43ae-986f-72bea28864f0", + "5732fbd5-a421-4d82-bec5-638d032674bf", + "caeb3ce8-296e-4195-9a6b-7422d5a5f278", + "7a2b4109-1ba3-4ce4-8d52-31e96774e268" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13000, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/10_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should login in BO", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3616c035-f1a8-4178-840f-80b6dae8c0f2", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1eae534-473e-4fbf-aed2-ab609bac6ed9", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of orders", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should reset all filters and get number of orders", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "288ebd8d-6dd8-490f-bb7a-3c1b8c69f7d6", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_changeItemssNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemssNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not correct (page 1 / \".concat(Math.ceil(numberOfOrders / 10), \")\"))\n .to.contains(\"(page 1 / \".concat(Math.ceil(numberOfOrders / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5d5e078-f285-46ee-8d63-79710cc009fb", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should click on next", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not (page 2 / \".concat(Math.ceil(numberOfOrders / 10), \")\"))\n .to.contains(\"(page 2 / \".concat(Math.ceil(numberOfOrders / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c6b2093-7623-4586-9443-379fa49d7f96", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should click on previous", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not (page 1 / \".concat(Math.ceil(numberOfOrders / 10), \")\"))\n .to.contains(\"(page 1 / \".concat(Math.ceil(numberOfOrders / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d7c163b-e606-4176-9389-9508823ad10d", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, 'Number of pages is not correct').to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f2ed4b4-258a-4226-82a3-234a4f24f685", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should sort orders by total desc", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should sort orders by total desc", + "timedOut": false, + "duration": 3973, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_sortOrdersDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sortOrdersDesc', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, 'total_paid_tax_incl')];\n case 2:\n nonSortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, orders_1.default.sortTable(page, 'total_paid_tax_incl', 'desc')];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, 'total_paid_tax_incl')];\n case 4:\n sortedTable = _a.sent();\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e76a1aba-0294-4527-b36f-0b14a57999cf", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the orders table is sorted by total desc", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should check that the orders table is sorted by total desc", + "timedOut": false, + "duration": 128, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_CheckSortDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var allOrdersTable;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'CheckSortDesc', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, 'total_paid_tax_incl')];\n case 2:\n allOrdersTable = _a.sent();\n (0, chai_1.expect)(allOrdersTable).to.deep.equal(sortedTable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "050029a7-d1a8-4065-b94e-5b933f1cc9b0", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_changeItemsNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not correct (page 1 / \".concat(Math.ceil(numberOfOrders / 10), \")\"))\n .to.contains(\"(page 1 / \".concat(Math.ceil(numberOfOrders / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "293ea9cd-b34b-4bec-b26b-7ebc9591ff92", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the first page is sorted by total desc", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should check that the first page is sorted by total desc", + "timedOut": false, + "duration": 78, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_checkFirstPageSortDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstTable;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstPageSortDesc', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, 'total_paid_tax_incl')];\n case 2:\n firstTable = _a.sent();\n (0, chai_1.expect)(firstTable).to.deep.equal(sortedTable.slice(0, 10));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa83d2a3-f829-4d5e-9bd5-65d5cf88a08f", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should click on next", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_clickOnNext2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not (page 2 / \".concat(Math.ceil(numberOfOrders / 10), \")\"))\n .to.contains(\"(page 2 / \".concat(Math.ceil(numberOfOrders / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d4d3685-08d3-4025-88cb-bce4dc3b3ad2", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the second page is sorted by total desc", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should check that the second page is sorted by total desc", + "timedOut": false, + "duration": 55, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_checkSecondPageSortDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var secondTable, numberOfOrdersInPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSecondPageSortDesc', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, 'total_paid_tax_incl')];\n case 2:\n secondTable = _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfOrdersInPage(page)];\n case 3:\n numberOfOrdersInPage = _a.sent();\n (0, chai_1.expect)(secondTable).to.deep.equal(sortedTable.slice(10, 10 + numberOfOrdersInPage));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dac27a36-5fb3-4887-a6b6-0f9725eacf63", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_changeItemsNumberTo50_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, 'Number of pages is not correct').to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "511987d4-8826-49e5-a7e0-f56911406529", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to default sort", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should go back to default sort", + "timedOut": false, + "duration": 3831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_goBackDefaultSort\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackDefaultSort', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, 'id_order')];\n case 2:\n nonSortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, orders_1.default.sortTable(page, 'id_order', 'desc')];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getAllRowsColumnContent(page, 'id_order')];\n case 4:\n sortedTable = _a.sent();\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c835dec3-778d-43ed-bf61-e832c4195093", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by customer 'J.DOE'", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should filter by customer 'J.DOE'", + "timedOut": false, + "duration": 2412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_filterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', 'J. DOE')];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.at.most(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f2b4427-38c0-42ad-9f22-660c784c9a5c", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the orders table is filtered by customer", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should check that the orders table is filtered by customer", + "timedOut": false, + "duration": 130, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_CheckFilterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'CheckFilterByCustomer', baseContext)];\n case 1:\n _a.sent();\n row = 1;\n _a.label = 2;\n case 2:\n if (!(row <= numberOfOrdersAfterFilter)) return [3 /*break*/, 5];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', row)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal('J. DOE');\n _a.label = 4;\n case 4:\n row++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af6582c3-cf20-4775-b7cb-c2ac214d3f5f", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_changeItemsNumberTo10AfterFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo10AfterFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not correct (page 1 / \".concat(Math.ceil(numberOfOrders / 10), \")\"))\n .to.contains(\"(page 1 / \".concat(Math.ceil(numberOfOrders / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1741586e-2196-4cff-a2d6-1b9a80ae5c36", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the first page is filtered by Customer 'J.DOE'", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should check that the first page is filtered by Customer 'J.DOE'", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_checkFilterInFirstPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFilterInFirstPage', baseContext)];\n case 1:\n _a.sent();\n row = 1;\n _a.label = 2;\n case 2:\n if (!(row <= 10)) return [3 /*break*/, 5];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', row)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal('J. DOE');\n _a.label = 4;\n case 4:\n row++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54d56fdb-1f06-474b-9ca8-2d3ee2a2a455", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should click on next", + "timedOut": false, + "duration": 780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_clickOnNext3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not (page 2 / \".concat(Math.ceil(numberOfOrders / 10), \")\"))\n .to.contains(\"(page 2 / \".concat(Math.ceil(numberOfOrders / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6ab140b-44a4-4367-b270-b1ebf4329b13", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the second page is filtered by Customer 'J.DOE'", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should check that the second page is filtered by Customer 'J.DOE'", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_checkFilterInSecondPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersInPage, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFilterInSecondPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfOrdersInPage(page)];\n case 2:\n numberOfOrdersInPage = _a.sent();\n row = 1;\n _a.label = 3;\n case 3:\n if (!(row <= numberOfOrdersInPage)) return [3 /*break*/, 6];\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', row)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal('J. DOE');\n _a.label = 5;\n case 5:\n row++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab0c8fee-809b-412f-a5e6-ca7e1d10e2b6", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Pagination of orders table Pagination next and previous should reset all filters", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_pagination_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75ca2c0b-34c1-4229-ad32-5758a09967b5", + "parentUUID": "a5eeb7ba-58ad-4f11-b847-7891c4fe27c5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3616c035-f1a8-4178-840f-80b6dae8c0f2", + "a1eae534-473e-4fbf-aed2-ab609bac6ed9", + "288ebd8d-6dd8-490f-bb7a-3c1b8c69f7d6", + "b5d5e078-f285-46ee-8d63-79710cc009fb", + "1c6b2093-7623-4586-9443-379fa49d7f96", + "3d7c163b-e606-4176-9389-9508823ad10d", + "0f2ed4b4-258a-4226-82a3-234a4f24f685", + "e76a1aba-0294-4527-b36f-0b14a57999cf", + "050029a7-d1a8-4065-b94e-5b933f1cc9b0", + "293ea9cd-b34b-4bec-b26b-7ebc9591ff92", + "fa83d2a3-f829-4d5e-9bd5-65d5cf88a08f", + "5d4d3685-08d3-4025-88cb-bce4dc3b3ad2", + "dac27a36-5fb3-4887-a6b6-0f9725eacf63", + "511987d4-8826-49e5-a7e0-f56911406529", + "c835dec3-778d-43ed-bf61-e832c4195093", + "2f2b4427-38c0-42ad-9f22-660c784c9a5c", + "af6582c3-cf20-4775-b7cb-c2ac214d3f5f", + "1741586e-2196-4cff-a2d6-1b9a80ae5c36", + "54d56fdb-1f06-474b-9ca8-2d3ee2a2a455", + "e6ab140b-44a4-4367-b270-b1ebf4329b13", + "ab0c8fee-809b-412f-a5e6-ca7e1d10e2b6", + "75ca2c0b-34c1-4229-ad32-5758a09967b5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25305, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "757ecedf-0ba5-48b3-9ede-f275145c7b21", + "title": "BO - Orders : Preview order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Preview order\"", + "fullTitle": "BO - Orders : Preview order \"before all\" hook in \"BO - Orders : Preview order\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c406428e-c195-4559-a674-7617d5d1cccc", + "parentUUID": "757ecedf-0ba5-48b3-9ede-f275145c7b21", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Preview order\"", + "fullTitle": "BO - Orders : Preview order \"after all\" hook in \"BO - Orders : Preview order\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b144e0f1-1e2b-4b71-9f0f-99d661d35434", + "parentUUID": "757ecedf-0ba5-48b3-9ede-f275145c7b21", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "title": "PRE-TEST: Create order contains 11 products by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should open FO page", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51774d3b-4678-4f9d-be43-bd70ef6bc574", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Hummingbird printed t-shirt'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Hummingbird printed t-shirt'", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cf4291b-9a59-4f8f-93a3-2dc08cc055e0", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 5848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a854028-2696-4080-b3df-cde62cc9e14b", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Hummingbird printed sweater'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Hummingbird printed sweater'", + "timedOut": false, + "duration": 829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b9bf784-2a4d-4021-b054-acefe4c3d748", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 5902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a08c642-6f2f-4049-a541-9ae71eb57e62", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'The adventure begins Framed poster'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'The adventure begins Framed poster'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d6181ee-747c-4e25-a369-a7b99b88eaf9", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 5945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7df70fbe-63eb-4767-be58-2bb8ef31e021", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'The best is yet to come' Framed poster'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'The best is yet to come' Framed poster'", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1776d83-393a-45a0-9495-31b6b99b02ee", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 5997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4a06cc6-7052-4baf-9d5f-90a2e5457e47", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Today is a good day Framed poster'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Today is a good day Framed poster'", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1ad0a05-a3d6-4487-9448-fc28e4d5f964", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 6025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f516f264-fc6c-4853-989c-73eac2d702f9", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Mountain fox notebook'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Mountain fox notebook'", + "timedOut": false, + "duration": 896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17f9574b-15dc-4bc4-9fb2-9048c4a364e8", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 6069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52c47f36-4f2f-4157-8937-8debc9dc6f19", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Mug The adventure begins'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Mug The adventure begins'", + "timedOut": false, + "duration": 906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "053b2264-aa4e-445e-b7e7-af86b01310ca", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 6078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "577bccf6-c992-46b6-8485-87d9a7b52b18", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Mug The best is yet to come'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Mug The best is yet to come'", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e96ceb1-6ef3-4b79-b558-fca47547af7f", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 6124, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3f459e5-13eb-4608-b7b6-75c61ec8e10b", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Mug Today is a good day'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Mug Today is a good day'", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07a1fffe-2b05-4b85-9f2c-ccdce884787f", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 6108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbbcd154-442b-422b-9ff2-3ce2ba204b90", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Customizable mug'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Customizable mug'", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b48e0ed-8dea-4a8a-9515-2e95ea6422d3", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 4586, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e877bc9b-642b-4123-892c-38673cacb542", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Mountain fox - Vector graphics'", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should search for the product 'Mountain fox - Vector graphics'", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_searchForProduct_10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchForProduct_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, test.args.productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57de9a32-c2f5-4a80-8120-ffd3a6537867", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to cart", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should add the product to cart", + "timedOut": false, + "duration": 6135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, [], false)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, product_1.default.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ec5d890-e07a-4f73-832b-d02681b32903", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to shopping cart page", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should go to shopping cart page", + "timedOut": false, + "duration": 862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_goToShoppingCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.goToCartPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbff2d12-f595-4384-a91e-1c57d73d0c74", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should proceed to checkout", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6441868-aecf-41a9-9e11-0737151c939e", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, customerData)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fe6102f-c70c-4122-94ab-22333d7fafc6", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, addressData)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26cc8d73-26f1-42a5-9348-95a24e6a66fe", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders : Preview order PRE-TEST: Create order contains 11 products by guest in FO should validate the order", + "timedOut": false, + "duration": 2899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80342d66-09bb-4d76-a44d-c9116ea0005c", + "parentUUID": "5a432add-fbff-48b4-901e-d7c11a2ab3d0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "51774d3b-4678-4f9d-be43-bd70ef6bc574", + "2cf4291b-9a59-4f8f-93a3-2dc08cc055e0", + "9a854028-2696-4080-b3df-cde62cc9e14b", + "6b9bf784-2a4d-4021-b054-acefe4c3d748", + "0a08c642-6f2f-4049-a541-9ae71eb57e62", + "4d6181ee-747c-4e25-a369-a7b99b88eaf9", + "7df70fbe-63eb-4767-be58-2bb8ef31e021", + "d1776d83-393a-45a0-9495-31b6b99b02ee", + "e4a06cc6-7052-4baf-9d5f-90a2e5457e47", + "d1ad0a05-a3d6-4487-9448-fc28e4d5f964", + "f516f264-fc6c-4853-989c-73eac2d702f9", + "17f9574b-15dc-4bc4-9fb2-9048c4a364e8", + "52c47f36-4f2f-4157-8937-8debc9dc6f19", + "053b2264-aa4e-445e-b7e7-af86b01310ca", + "577bccf6-c992-46b6-8485-87d9a7b52b18", + "8e96ceb1-6ef3-4b79-b558-fca47547af7f", + "c3f459e5-13eb-4608-b7b6-75c61ec8e10b", + "07a1fffe-2b05-4b85-9f2c-ccdce884787f", + "bbbcd154-442b-422b-9ff2-3ce2ba204b90", + "4b48e0ed-8dea-4a8a-9515-2e95ea6422d3", + "e877bc9b-642b-4123-892c-38673cacb542", + "57de9a32-c2f5-4a80-8120-ffd3a6537867", + "6ec5d890-e07a-4f73-832b-d02681b32903", + "bbff2d12-f595-4384-a91e-1c57d73d0c74", + "c6441868-aecf-41a9-9e11-0737151c939e", + "2fe6102f-c70c-4122-94ab-22333d7fafc6", + "26cc8d73-26f1-42a5-9348-95a24e6a66fe", + "80342d66-09bb-4d76-a44d-c9116ea0005c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 83187, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "58a54a17-6126-430a-bda0-3626399126d6", + "title": "Preview the created order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Preview order Preview the created order should login in BO", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e23d475a-b032-4a8a-825d-20d7b7b19d49", + "parentUUID": "58a54a17-6126-430a-bda0-3626399126d6", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "05e7f787-f82f-485d-a569-42a4eebc5233", + "title": "Check the created order details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba130505-3dee-4d2d-b578-b5ac98ed95ad", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fa82636-f6c8-431f-958c-1100a03ee626", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should filter order by customer last name Schaefer", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should filter order by customer last name Schaefer", + "timedOut": false, + "duration": 2420, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_filterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef486ea5-f21c-4578-90d9-5c6642079db3", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should click on expand button to preview the order", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should click on expand button to preview the order", + "timedOut": false, + "duration": 207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_previewOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPreviewBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.previewOrder(page)];\n case 2:\n isPreviewBlockVisible = _a.sent();\n (0, chai_1.expect)(isPreviewBlockVisible, 'Preview block is not visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a454fafc-2b1a-4bec-8d41-cd104997e39c", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shipping details", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the shipping details", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkShippingDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingDetails;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getShippingDetails(page)];\n case 2:\n shippingDetails = _a.sent();\n (0, chai_1.expect)(shippingDetails, 'Shipping details are not correct!')\n .to.equal(\"Carrier: \".concat(carriers_1.default.default.name, \" Tracking number: - Shipping details: \")\n + \"\".concat(customerData.firstName, \" \").concat(customerData.lastName, \" \").concat(addressData.company, \" \").concat(addressData.address, \" \")\n + \"\".concat(addressData.postalCode, \" \").concat(addressData.city, \" \").concat(addressData.country, \" \").concat(addressData.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0adb2768-94c8-4fcd-a35f-f398946b5577", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the guest email address", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the guest email address", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkEmailAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var emailAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmailAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getCustomerEmail(page)];\n case 2:\n emailAddress = _a.sent();\n (0, chai_1.expect)(emailAddress, 'Email address is not correct!').to.equal(\"Email: \".concat(customerData.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a613a95-18fd-46ae-97bc-932c0ce74f34", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the invoice address details", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the invoice address details", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkInvoiceDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getCustomerInvoiceAddressDetails(page)];\n case 2:\n invoiceAddress = _a.sent();\n (0, chai_1.expect)(invoiceAddress, 'Invoice details are not correct!')\n .to.equal(\"Invoice details: \".concat(customerData.firstName, \" \").concat(customerData.lastName, \" \")\n + \"\".concat(addressData.company, \" \").concat(addressData.address, \" \").concat(addressData.postalCode, \" \").concat(addressData.city, \" \")\n + \"\".concat(addressData.country, \" \").concat(addressData.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1551d60a-3712-446b-b9af-c5555b80cdcf", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the products number", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the products number", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProductsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductsNumberFromTable(page)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber, 'Products number is not correct!').to.equal(11);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d7de3d9-4c48-4d3f-b502-58ff19f785e6", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Hummingbird printed t-shirt'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'Hummingbird printed t-shirt'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1e0c115-d1db-47be-b6f2-9af95007b1ef", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Hummingbird printed sweater'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'Hummingbird printed sweater'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fcedf02-63e8-41d8-b046-928a868bf12b", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'The adventure begins Framed poster'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'The adventure begins Framed poster'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "041db145-7a5d-4cd3-99c3-b35b7ef50674", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'The best is yet to come' Framed poster'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'The best is yet to come' Framed poster'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7c3a7d3-1650-47f8-a92c-5fc4c6847153", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Today is a good day Framed poster'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'Today is a good day Framed poster'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6107a5c-c7ef-40a5-ad7e-553e384db4a3", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mountain fox notebook'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'Mountain fox notebook'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e10bc4cb-82d3-4a79-a6cd-52b186c70538", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mug The best is yet to come'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'Mug The best is yet to come'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b34118f6-0581-42aa-8b64-64404cff5da2", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mug The adventure begins'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'Mug The adventure begins'", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af6a7d2e-e8d1-4f93-b247-b7dd35044ea2", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mug Today is a good day'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'Mug Today is a good day'", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00eb336c-e68e-4856-8629-b6380ac7ac16", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Customizable mug'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check the product 'Customizable mug'", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7e7434a-022b-47ed-af42-6068b16799d7", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the last line in product list contain '(1 more)'", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should check that the last line in product list contain '(1 more)'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_check1MoreText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastProductsTableLine;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'check1MoreText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, 12)];\n case 2:\n lastProductsTableLine = _a.sent();\n (0, chai_1.expect)(lastProductsTableLine).to.equal('more_horiz (1 more)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ce98a7b-e821-4b67-a252-6107d11f73c4", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + }, + { + "title": "should click on '(1 more)' link and check the last product in the list", + "fullTitle": "BO - Orders : Preview order Preview the created order Check the created order details should click on '(1 more)' link and check the last product in the list", + "timedOut": false, + "duration": 59, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_clickOnMoreLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnMoreLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.clickOnMoreLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, 11)];\n case 3:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(products_1.default.demo_18.name)\n .and.to.contains(products_1.default.demo_18.reference)\n .and.to.contains(1)\n .and.to.contains(products_1.default.demo_18.finalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76feaabb-6334-4196-9213-dc1a375e3c52", + "parentUUID": "05e7f787-f82f-485d-a569-42a4eebc5233", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ba130505-3dee-4d2d-b578-b5ac98ed95ad", + "4fa82636-f6c8-431f-958c-1100a03ee626", + "ef486ea5-f21c-4578-90d9-5c6642079db3", + "a454fafc-2b1a-4bec-8d41-cd104997e39c", + "0adb2768-94c8-4fcd-a35f-f398946b5577", + "7a613a95-18fd-46ae-97bc-932c0ce74f34", + "1551d60a-3712-446b-b9af-c5555b80cdcf", + "4d7de3d9-4c48-4d3f-b502-58ff19f785e6", + "a1e0c115-d1db-47be-b6f2-9af95007b1ef", + "7fcedf02-63e8-41d8-b046-928a868bf12b", + "041db145-7a5d-4cd3-99c3-b35b7ef50674", + "f7c3a7d3-1650-47f8-a92c-5fc4c6847153", + "d6107a5c-c7ef-40a5-ad7e-553e384db4a3", + "e10bc4cb-82d3-4a79-a6cd-52b186c70538", + "b34118f6-0581-42aa-8b64-64404cff5da2", + "af6a7d2e-e8d1-4f93-b247-b7dd35044ea2", + "00eb336c-e68e-4856-8629-b6380ac7ac16", + "d7e7434a-022b-47ed-af42-6068b16799d7", + "0ce98a7b-e821-4b67-a252-6107d11f73c4", + "76feaabb-6334-4196-9213-dc1a375e3c52" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9721, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9785674f-773f-4552-93db-09e602ff05bf", + "title": "Update the order from view order page then check the order details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Open details' button", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should click on 'Open details' button", + "timedOut": false, + "duration": 1275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_clickOnOpenDetailsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnOpenDetailsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.openOrderDetails(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3863202-61cb-4c27-a17b-264db34b5eb1", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should add another product to the list", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should add another product to the list", + "timedOut": false, + "duration": 2451, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_addAnotherProductToTheList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addAnotherProductToTheList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, products_1.default.demo_19.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d510405d-1575-4ddc-be54-20f3c048624a", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Carriers' tab", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should click on 'Carriers' tab", + "timedOut": false, + "duration": 84, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_displayCarriersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayCarriersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35c1c0bf-1156-47db-bccd-e7ab41fe28f0", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Edit' link and check the modal", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should click on 'Edit' link and check the modal", + "timedOut": false, + "duration": 429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_clickOnEditLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible, 'Edit shipping modal is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b715c54-f95c-4234-884c-9e012cd974b3", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the carrier", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should edit the carrier", + "timedOut": false, + "duration": 1198, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_editCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setShippingDetails(page, shippingDetailsData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67093022-509b-45ab-99c7-79264a79e106", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the shipping address", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should edit the shipping address", + "timedOut": false, + "duration": 5369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_editShippingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editShippingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.editExistingShippingAddress(page, editShippingAddressData)];\n case 2:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress, 'Shipping address is not correct!')\n .to.contain(editShippingAddressData.firstName)\n .and.to.contain(editShippingAddressData.lastName)\n .and.to.contain(editShippingAddressData.address)\n .and.to.contain(editShippingAddressData.postalCode)\n .and.to.contain(editShippingAddressData.city)\n .and.to.contain(editShippingAddressData.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30cdce33-81d9-43ff-9fdb-9692c3d93fda", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the delivery address", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should edit the delivery address", + "timedOut": false, + "duration": 4943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_editDeliveryAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editDeliveryAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.editExistingInvoiceAddress(page, editInvoiceAddressData)];\n case 2:\n invoiceAddress = _a.sent();\n (0, chai_1.expect)(invoiceAddress, 'Invoice address is not correct!')\n .to.contain(editInvoiceAddressData.firstName)\n .and.to.contain(editInvoiceAddressData.lastName)\n .and.to.contain(editInvoiceAddressData.address)\n .and.to.contain(editInvoiceAddressData.postalCode)\n .and.to.contain(editInvoiceAddressData.city)\n .and.to.contain(editInvoiceAddressData.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7d7be15-9b2a-455a-8a1e-81ec0a2aa5f7", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de1314dd-97d9-42a2-a660-67d6420d9205", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should click on expand button to preview the order", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should click on expand button to preview the order", + "timedOut": false, + "duration": 186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_previewOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPreviewBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewOrder2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.previewOrder(page)];\n case 2:\n isPreviewBlockVisible = _a.sent();\n (0, chai_1.expect)(isPreviewBlockVisible, 'Preview block is not visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "988e3cf0-654a-47f4-b326-e10cd18ad1a4", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shipping details", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should check the shipping details", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkEditedShippingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingDetails;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedShippingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getShippingDetails(page)];\n case 2:\n shippingDetails = _a.sent();\n (0, chai_1.expect)(shippingDetails, 'Shipping address is not correct!')\n .to.equal(\"Carrier: \".concat(shippingDetailsData.carrier, \" Tracking number: \").concat(shippingDetailsData.trackingNumber)\n + \" Shipping details: \".concat(editShippingAddressData.firstName, \" \").concat(editShippingAddressData.lastName)\n + \" \".concat(editShippingAddressData.company, \" \").concat(editShippingAddressData.address)\n + \" \".concat(editShippingAddressData.secondAddress, \" \").concat(editShippingAddressData.postalCode)\n + \" \".concat(editShippingAddressData.city, \" \").concat(editShippingAddressData.country)\n + \" \".concat(editShippingAddressData.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc63fd54-3455-4b57-8722-b9347bb3adfc", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should check the edited invoice address details", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should check the edited invoice address details", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkEditedInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getCustomerInvoiceAddressDetails(page)];\n case 2:\n invoiceAddress = _a.sent();\n (0, chai_1.expect)(invoiceAddress, 'Invoice address is not correct!')\n .to.equal(\"Invoice details: \".concat(editInvoiceAddressData.firstName, \" \").concat(editInvoiceAddressData.lastName, \" \")\n + \"\".concat(editInvoiceAddressData.company, \" \").concat(editInvoiceAddressData.address)\n + \" \".concat(editInvoiceAddressData.secondAddress, \" \").concat(editInvoiceAddressData.postalCode)\n + \" \".concat(editInvoiceAddressData.city, \" \").concat(editInvoiceAddressData.country, \" \").concat(editInvoiceAddressData.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "116eac89-92b3-42a2-b6df-dc6d6b5b30c8", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + }, + { + "title": "should check the products number", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details should check the products number", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProductsNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsNumber1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductsNumberFromTable(page)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber, 'Products number is not correct!').to.equal(12);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c13d615-eb2b-488a-9b5a-7766fe7d96d5", + "parentUUID": "9785674f-773f-4552-93db-09e602ff05bf", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "77967eef-66a1-418d-915e-d3b9181f7744", + "title": "Check the products list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the product 'Hummingbird printed t-shirt'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'Hummingbird printed t-shirt'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e633bc18-8f30-418c-b560-674716a44e7d", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Hummingbird printed sweater'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'Hummingbird printed sweater'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e8fafe8-73e3-4222-8168-60e2beb36c00", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'The adventure begins Framed poster'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'The adventure begins Framed poster'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9983cf2-b2e8-462e-8347-375a59bf996c", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'The best is yet to come' Framed poster'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'The best is yet to come' Framed poster'", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65088218-2a37-4fe6-b1cc-0748a7c2f60d", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Today is a good day Framed poster'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'Today is a good day Framed poster'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct41\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d2333ab-dd13-4489-a96b-5c62c5b4505b", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mountain fox notebook'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'Mountain fox notebook'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct51\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc70c038-1e89-4ad9-a7f3-114c6024310a", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mug The best is yet to come'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'Mug The best is yet to come'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct61\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "496e8094-701f-4e97-940e-59d00031b8c1", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mug The adventure begins'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'Mug The adventure begins'", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct71\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f910d921-7ecb-4f89-b91f-c82b09ea0f35", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Mug Today is a good day'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'Mug Today is a good day'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct81\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fecc99f-7b97-4516-8d0e-134977c25c24", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product 'Customizable mug'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check the product 'Customizable mug'", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_checkProduct91\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProduct\".concat(index, \"1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, index + 1)];\n case 2:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(test.args.product.name)\n .and.to.contains(test.args.product.reference)\n .and.to.contains(1)\n .and.to.contains(test.args.productPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5b87a00-b875-473f-8bab-30de52da0d98", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the last line in product list contain '(2 more)'", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should check that the last line in product list contain '(2 more)'", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_check2MoreText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastProductsTableLine;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'check2MoreText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, 13)];\n case 2:\n lastProductsTableLine = _a.sent();\n (0, chai_1.expect)(lastProductsTableLine).to.equal('more_horiz (2 more)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40b35115-5197-47e6-bef1-1b8af4e9b06e", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + }, + { + "title": "should click on '(2 more)' link and check the last product in the list", + "fullTitle": "BO - Orders : Preview order Preview the created order Update the order from view order page then check the order details Check the products list should click on '(2 more)' link and check the last product in the list", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_clickOnMoreLink1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnMoreLink1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.clickOnMoreLink(page, 13)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, 11)];\n case 3:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(products_1.default.demo_18.name)\n .and.to.contains(products_1.default.demo_18.reference)\n .and.to.contains(1)\n .and.to.contains(products_1.default.demo_18.finalPrice);\n return [4 /*yield*/, orders_1.default.getProductDetailsFromTable(page, 12)];\n case 4:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation).to.contains(products_1.default.demo_19.name)\n .and.to.contains(products_1.default.demo_19.reference)\n .and.to.contains(1)\n .and.to.contains(products_1.default.demo_19.finalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8903606b-2efe-49d0-a199-8dfcfa4f1ca1", + "parentUUID": "77967eef-66a1-418d-915e-d3b9181f7744", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e633bc18-8f30-418c-b560-674716a44e7d", + "4e8fafe8-73e3-4222-8168-60e2beb36c00", + "b9983cf2-b2e8-462e-8347-375a59bf996c", + "65088218-2a37-4fe6-b1cc-0748a7c2f60d", + "2d2333ab-dd13-4489-a96b-5c62c5b4505b", + "cc70c038-1e89-4ad9-a7f3-114c6024310a", + "496e8094-701f-4e97-940e-59d00031b8c1", + "f910d921-7ecb-4f89-b91f-c82b09ea0f35", + "6fecc99f-7b97-4516-8d0e-134977c25c24", + "e5b87a00-b875-473f-8bab-30de52da0d98", + "40b35115-5197-47e6-bef1-1b8af4e9b06e", + "8903606b-2efe-49d0-a199-8dfcfa4f1ca1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 145, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f3863202-61cb-4c27-a17b-264db34b5eb1", + "d510405d-1575-4ddc-be54-20f3c048624a", + "35c1c0bf-1156-47db-bccd-e7ab41fe28f0", + "2b715c54-f95c-4234-884c-9e012cd974b3", + "67093022-509b-45ab-99c7-79264a79e106", + "30cdce33-81d9-43ff-9fdb-9692c3d93fda", + "b7d7be15-9b2a-455a-8a1e-81ec0a2aa5f7", + "de1314dd-97d9-42a2-a660-67d6420d9205", + "988e3cf0-654a-47f4-b326-e10cd18ad1a4", + "dc63fd54-3455-4b57-8722-b9347bb3adfc", + "116eac89-92b3-42a2-b6df-dc6d6b5b30c8", + "6c13d615-eb2b-488a-9b5a-7766fe7d96d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19757, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e23d475a-b032-4a8a-825d-20d7b7b19d49" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1709, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/11_previewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders : Preview order POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3b75000-dc2e-4c25-89ed-0a2cb9e17b31", + "parentUUID": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders : Preview order POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 21, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8a16c322-5499-4749-9ab4-cc5dd4b9a481", + "parentUUID": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Preview order POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccfceeff-d334-456e-963a-9af9bc6fdac6", + "parentUUID": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders : Preview order POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afe42f8d-aa1f-46f8-b769-1d1264fbb1bc", + "parentUUID": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Preview order POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e3ab3b2-4adb-4d81-8c0f-55161073d388", + "parentUUID": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders : Preview order POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1130, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b3316bd-b07f-4fd6-8e9a-160e62a1ea31", + "parentUUID": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders : Preview order POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ea0e66f-4de4-401d-b281-0b119cfc3285", + "parentUUID": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders : Preview order POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_previewOrder_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "472e493a-68f1-47ed-83fc-48e53c97a036", + "parentUUID": "d298184c-8e9a-4652-a57c-16c9e3a0e86f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ccfceeff-d334-456e-963a-9af9bc6fdac6", + "afe42f8d-aa1f-46f8-b769-1d1264fbb1bc", + "1e3ab3b2-4adb-4d81-8c0f-55161073d388", + "2b3316bd-b07f-4fd6-8e9a-160e62a1ea31", + "3ea0e66f-4de4-401d-b281-0b119cfc3285", + "472e493a-68f1-47ed-83fc-48e53c97a036" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11896, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "3128547c-0da5-4d18-9c2c-c6a178eba04d", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 442, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d25c770-12e3-43e5-a3ae-08c233cefac7", + "parentUUID": "3128547c-0da5-4d18-9c2c-c6a178eba04d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 56, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15a63843-d05a-4593-a816-1d8f46e502d3", + "parentUUID": "3128547c-0da5-4d18-9c2c-c6a178eba04d", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12b68e6f-d895-4c73-8f54-dc475e1cb338", + "parentUUID": "3128547c-0da5-4d18-9c2c-c6a178eba04d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c47e4608-ec35-4d8e-9039-28c091486e0a", + "title": "BO - Orders - Create order : Search and view customer details from new order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Search and view customer details from new order page\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page \"before all\" hook in \"BO - Orders - Create order : Search and view customer details from new order page\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0afeacc-5310-44fd-a262-e5596cefe8f7", + "parentUUID": "c47e4608-ec35-4d8e-9039-28c091486e0a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Search and view customer details from new order page\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page \"after all\" hook in \"BO - Orders - Create order : Search and view customer details from new order page\"", + "timedOut": false, + "duration": 23, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a301811c-b2e8-4cd0-875b-b2fb031818af", + "parentUUID": "c47e4608-ec35-4d8e-9039-28c091486e0a", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "8be17f71-6c3b-4a75-9e93-f2b28b953fff", + "title": "PRE-TEST: Create customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create customer\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer \"before all\" hook in \"PRE-TEST: Create customer\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "335f7a09-b696-4eaf-917d-dd2e702c9f4d", + "parentUUID": "8be17f71-6c3b-4a75-9e93-f2b28b953fff", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create customer\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer \"after all\" hook in \"PRE-TEST: Create customer\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "eb505434-fd6a-4e94-a512-577c13aadfb1", + "parentUUID": "8be17f71-6c3b-4a75-9e93-f2b28b953fff", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer should login in BO", + "timedOut": false, + "duration": 6566, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9bddf06-69b3-4c45-b2b7-a4d07517ba6b", + "parentUUID": "8be17f71-6c3b-4a75-9e93-f2b28b953fff", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 6679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_preTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fdf696f-6d31-44c4-b856-b88dcd4368d8", + "parentUUID": "8be17f71-6c3b-4a75-9e93-f2b28b953fff", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer should go to add new customer page", + "timedOut": false, + "duration": 947, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_preTest_1_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d76259f-c955-49cb-9c16-be44327efb32", + "parentUUID": "8be17f71-6c3b-4a75-9e93-f2b28b953fff", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer and check result", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer should create customer and check result", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_preTest_1_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc021393-91f7-40c9-9db0-e3643e4c6034", + "parentUUID": "8be17f71-6c3b-4a75-9e93-f2b28b953fff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e9bddf06-69b3-4c45-b2b7-a4d07517ba6b", + "8fdf696f-6d31-44c4-b856-b88dcd4368d8", + "7d76259f-c955-49cb-9c16-be44327efb32", + "fc021393-91f7-40c9-9db0-e3643e4c6034" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15909, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "016a0c9e-7292-4805-875f-441579a456b9", + "title": "PRE-TEST: Create customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create customer\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer \"before all\" hook in \"PRE-TEST: Create customer\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a98d62e-ed77-4a2d-b852-8e83de026999", + "parentUUID": "016a0c9e-7292-4805-875f-441579a456b9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create customer\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer \"after all\" hook in \"PRE-TEST: Create customer\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "573d8820-5f9c-4fc7-ac43-214a22266e2e", + "parentUUID": "016a0c9e-7292-4805-875f-441579a456b9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer should login in BO", + "timedOut": false, + "duration": 1878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97c1ef19-6dd3-477e-b099-b30d1c17d73d", + "parentUUID": "016a0c9e-7292-4805-875f-441579a456b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_preTest_2_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a5382f8-ae19-41a9-a890-02216af440b1", + "parentUUID": "016a0c9e-7292-4805-875f-441579a456b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer should go to add new customer page", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_preTest_2_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e70540a-8e1e-43eb-9902-c82393bbd67f", + "parentUUID": "016a0c9e-7292-4805-875f-441579a456b9", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer and check result", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page PRE-TEST: Create customer should create customer and check result", + "timedOut": false, + "duration": 1549, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_preTest_2_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ccac1e5-aced-4f92-b5a7-c636a6771d96", + "parentUUID": "016a0c9e-7292-4805-875f-441579a456b9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97c1ef19-6dd3-477e-b099-b30d1c17d73d", + "1a5382f8-ae19-41a9-a890-02216af440b1", + "7e70540a-8e1e-43eb-9902-c82393bbd67f", + "0ccac1e5-aced-4f92-b5a7-c636a6771d96" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9326, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "title": "Search for customers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should login in BO", + "timedOut": false, + "duration": 1825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cf63adc-b810-4cc9-b4a8-2a0af7b85e5a", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4082, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb229982-aab6-47fa-bd75-43afe341875b", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should go to create order page", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2717220a-8b60-4b78-90f2-d984a314df1d", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + }, + { + "title": "should search for non existent customer and check error message", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should search for non existent customer and check error message", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkNonExistentCustomerError\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorDisplayed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', step.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, step.customer.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getNoCustomerFoundError(page)];\n case 3:\n errorDisplayed = _a.sent();\n (0, chai_1.expect)(errorDisplayed, 'Error is not correct').to.equal(add_1.default.noCustomerFoundText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44607617-58f1-4569-b502-ffeaceb4455c", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + }, + { + "title": "should search for disabled customer and check error message", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should search for disabled customer and check error message", + "timedOut": false, + "duration": 85, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkDisabledCustomerError\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorDisplayed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', step.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, step.customer.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getNoCustomerFoundError(page)];\n case 3:\n errorDisplayed = _a.sent();\n (0, chai_1.expect)(errorDisplayed, 'Error is not correct').to.equal(add_1.default.noCustomerFoundText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6f75fc6-30c9-41b1-bedb-ed490a32ae20", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the customer with lastName 'Doe' and check result number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should search for the customer with lastName 'Doe' and check result number", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkExistentCustomerCard\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchResultNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkExistentCustomerCard', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getCustomersSearchNumber(page)];\n case 3:\n searchResultNumber = _a.sent();\n (0, chai_1.expect)(searchResultNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6118867-37e3-4e98-a5f4-e0765e5b0131", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + }, + { + "title": "should check that first customer card contain 'Name, Email, birthdate and groups'", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should check that first customer card contain 'Name, Email, birthdate and groups'", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkFirstSearchResult\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultCustomerName, customerCardContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstSearchResult', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getCustomerNameFromResult(page, 1)];\n case 2:\n defaultCustomerName = _a.sent();\n (0, chai_1.expect)(defaultCustomerName).to.contains(\"\".concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName));\n return [4 /*yield*/, add_1.default.getCustomerCardBody(page, 1)];\n case 3:\n customerCardContent = _a.sent();\n (0, chai_1.expect)(customerCardContent)\n .to.contains(customers_1.default.johnDoe.email)\n .and.to.contains(customers_1.default.johnDoe.birthDate.toJSON().slice(0, 10))\n .and.to.contains(customers_1.default.johnDoe.defaultCustomerGroup);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4f4d40e-7402-4505-aa68-6384204aca11", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + }, + { + "title": "should check that second customer card contain 'Name, Email, birthdate and groups'", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should check that second customer card contain 'Name, Email, birthdate and groups'", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkSecondSearchResult\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newCustomerName, customerCardContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSecondSearchResult', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getCustomerNameFromResult(page, 2)];\n case 2:\n newCustomerName = _a.sent();\n (0, chai_1.expect)(newCustomerName).to.contains(\"\".concat(newCustomer.firstName, \" \").concat(newCustomer.lastName));\n return [4 /*yield*/, add_1.default.getCustomerCardBody(page, 2)];\n case 3:\n customerCardContent = _a.sent();\n (0, chai_1.expect)(customerCardContent)\n .to.contains(newCustomer.email)\n .and.to.contains(\"\".concat(newCustomer.yearOfBirth, \"-\").concat(newCustomer.monthOfBirth, \"-\").concat(newCustomer.dayOfBirth))\n .and.to.contains(newCustomer.defaultCustomerGroup);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51d238a1-6199-4a09-a723-fa55469590ea", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page Search for customers should choose customer John DOE", + "timedOut": false, + "duration": 118, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_chooseDefaultCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e593d91-76e3-4859-9996-201dcf68f641", + "parentUUID": "df618fe2-a4b7-4ff1-9772-05f4661ca172", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5cf63adc-b810-4cc9-b4a8-2a0af7b85e5a", + "eb229982-aab6-47fa-bd75-43afe341875b", + "2717220a-8b60-4b78-90f2-d984a314df1d", + "44607617-58f1-4569-b502-ffeaceb4455c", + "f6f75fc6-30c9-41b1-bedb-ed490a32ae20", + "b6118867-37e3-4e98-a5f4-e0765e5b0131", + "c4f4d40e-7402-4505-aa68-6384204aca11", + "51d238a1-6199-4a09-a723-fa55469590ea", + "6e593d91-76e3-4859-9996-201dcf68f641" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8706, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19f80986-388a-45e5-90bb-cf235c4095f2", + "title": "View customer details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Details' button from customer card", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should click on 'Details' button from customer card", + "timedOut": false, + "duration": 887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_clickOnDetailButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDetailButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnDetailsButton(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03f9e699-8b30-4a15-bff3-16acd5aebca0", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of personal information block in the iframe", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the existence of personal information block in the iframe", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getCustomerIframe(page, customers_1.default.johnDoe.id)];\n case 2:\n customerIframe = _a.sent();\n (0, chai_1.expect)(customerIframe).to.not.eq(null);\n return [4 /*yield*/, view_1.default.getPersonalInformationTitle(customerIframe)];\n case 3:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(cardHeaderText).to.contains(customers_1.default.johnDoe.firstName);\n (0, chai_1.expect)(cardHeaderText).to.contains(customers_1.default.johnDoe.lastName);\n (0, chai_1.expect)(cardHeaderText).to.contains(customers_1.default.johnDoe.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bd32d84-046f-45ff-bc94-b3f0535c9fa2", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Orders number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Orders number", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkOrdersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ff947fe-1e43-4481-8e74-b6a52f5a806d", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Carts number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Carts number", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkCartsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f001640-0103-4fd4-835f-035524b20f06", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Purchased products number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Purchased products number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkPurchased productsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17e46acc-fa97-4769-967f-7d26b5f44165", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Messages number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Messages number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkMessagesNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5572ccc-fdc5-4e8d-adec-2f711e1b9d52", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Vouchers number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Vouchers number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkVouchersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f5737bb-be77-48e1-9763-6c13cd7afcba", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Last emails number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Last emails number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkLast emailsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f168514-5390-4f1c-b4dc-c3d2a9c7be80", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Last connections number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Last connections number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkLast connectionsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "062e0c8c-8170-4313-a760-b14b79515042", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Groups number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Groups number", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkGroupsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a141ba3a-c824-44f8-9f8b-219946e72210", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Addresses number", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the Addresses number", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkAddressesNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardHeaderText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.blockName, \"Number\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getNumberOfElementFromTitle(customerIframe, test.args.blockName)];\n case 2:\n cardHeaderText = _a.sent();\n (0, chai_1.expect)(parseInt(cardHeaderText, 10)).to.be.at.least(test.args.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9000fdc8-8319-40ab-94b5-882980558e97", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of add private note block", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page View customer details should check the existence of add private note block", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_checkAddPrivateNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddPrivateNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.isPrivateNoteBlockVisible(customerIframe)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10b542aa-e040-44e0-ae94-32f51f91b84d", + "parentUUID": "19f80986-388a-45e5-90bb-cf235c4095f2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "03f9e699-8b30-4a15-bff3-16acd5aebca0", + "4bd32d84-046f-45ff-bc94-b3f0535c9fa2", + "4ff947fe-1e43-4481-8e74-b6a52f5a806d", + "6f001640-0103-4fd4-835f-035524b20f06", + "17e46acc-fa97-4769-967f-7d26b5f44165", + "b5572ccc-fdc5-4e8d-adec-2f711e1b9d52", + "7f5737bb-be77-48e1-9763-6c13cd7afcba", + "7f168514-5390-4f1c-b4dc-c3d2a9c7be80", + "062e0c8c-8170-4313-a760-b14b79515042", + "a141ba3a-c824-44f8-9f8b-219946e72210", + "9000fdc8-8319-40ab-94b5-882980558e97", + "10b542aa-e040-44e0-ae94-32f51f91b84d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1045, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8382f448-e34a-4b89-a585-666d86c81e14", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87301623-7659-4391-b63d-21d37edf1245", + "parentUUID": "8382f448-e34a-4b89-a585-666d86c81e14", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9b1c28f9-11ea-4e51-8034-283f02e1fe5c", + "parentUUID": "8382f448-e34a-4b89-a585-666d86c81e14", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6501fad3-a9df-4e50-8776-db0f9669921b", + "parentUUID": "8382f448-e34a-4b89-a585-666d86c81e14", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32a8030f-e278-4363-ad1a-7ada425583d8", + "parentUUID": "8382f448-e34a-4b89-a585-666d86c81e14", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5510e50e-3c8b-4041-a0c0-8086913c3ee8", + "parentUUID": "8382f448-e34a-4b89-a585-666d86c81e14", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "132bbc1e-9b1e-4744-a0d7-a511d0dfb3ce", + "parentUUID": "8382f448-e34a-4b89-a585-666d86c81e14", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d5a0e0a-ef72-4729-a303-f4a757377a0e", + "parentUUID": "8382f448-e34a-4b89-a585-666d86c81e14", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59640608-97a6-475b-a04b-15a88cdceb9c", + "parentUUID": "8382f448-e34a-4b89-a585-666d86c81e14", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6501fad3-a9df-4e50-8776-db0f9669921b", + "32a8030f-e278-4363-ad1a-7ada425583d8", + "5510e50e-3c8b-4041-a0c0-8086913c3ee8", + "132bbc1e-9b1e-4744-a0d7-a511d0dfb3ce", + "2d5a0e0a-ef72-4729-a303-f4a757377a0e", + "59640608-97a6-475b-a04b-15a88cdceb9c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11884, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d75251ec-6756-424c-9fd1-e806d9056c53", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/01_searchViewCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efefd09c-81dc-47d0-9596-848180d1312c", + "parentUUID": "d75251ec-6756-424c-9fd1-e806d9056c53", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6101da98-dfb5-401a-9448-f797cac86c8a", + "parentUUID": "d75251ec-6756-424c-9fd1-e806d9056c53", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa775ee9-8bb6-49b2-9d11-3196200879fe", + "parentUUID": "d75251ec-6756-424c-9fd1-e806d9056c53", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_2_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33404d5f-906a-4bef-bcea-2bb8befc59dc", + "parentUUID": "d75251ec-6756-424c-9fd1-e806d9056c53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_2_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "540fc6e2-510b-437f-a897-cb1e4d7f66b4", + "parentUUID": "d75251ec-6756-424c-9fd1-e806d9056c53", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1138, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_2_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b48651f1-1a1f-4d94-9ec2-dc4c5521e277", + "parentUUID": "d75251ec-6756-424c-9fd1-e806d9056c53", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1610, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_2_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cf4d97b-6f9f-48f0-9cfb-40267cb08ed1", + "parentUUID": "d75251ec-6756-424c-9fd1-e806d9056c53", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders - Create order : Search and view customer details from new order page POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchViewCustomer_postTest_2_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d02b097-b0e8-419e-9e9e-71903404dc4f", + "parentUUID": "d75251ec-6756-424c-9fd1-e806d9056c53", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aa775ee9-8bb6-49b2-9d11-3196200879fe", + "33404d5f-906a-4bef-bcea-2bb8befc59dc", + "540fc6e2-510b-437f-a897-cb1e4d7f66b4", + "b48651f1-1a1f-4d94-9ec2-dc4c5521e277", + "4cf4d97b-6f9f-48f0-9cfb-40267cb08ed1", + "9d02b097-b0e8-419e-9e9e-71903404dc4f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12009, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "338864f9-3e42-4f57-9f1b-7e142fbbc9ae", + "title": "BO - Orders - Create order : Create customer from new order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/02_createCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/02_createCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Create customer from new order page\"", + "fullTitle": "BO - Orders - Create order : Create customer from new order page \"before all\" hook in \"BO - Orders - Create order : Create customer from new order page\"", + "timedOut": false, + "duration": 56, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f13fd48-f468-47d3-b5b4-82b689cf6389", + "parentUUID": "338864f9-3e42-4f57-9f1b-7e142fbbc9ae", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Create customer from new order page\"", + "fullTitle": "BO - Orders - Create order : Create customer from new order page \"after all\" hook in \"BO - Orders - Create order : Create customer from new order page\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e5f127cd-5dda-4ad5-850c-3848e2063967", + "parentUUID": "338864f9-3e42-4f57-9f1b-7e142fbbc9ae", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Create customer from new order page should login in BO", + "timedOut": false, + "duration": 1789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e719487-50fa-4008-b7b2-1313da292028", + "parentUUID": "338864f9-3e42-4f57-9f1b-7e142fbbc9ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Create customer from new order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f127c46-1b7f-440d-945a-a576fcf9358e", + "parentUUID": "338864f9-3e42-4f57-9f1b-7e142fbbc9ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Create customer from new order page should go to create order page", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6a51f7a-caee-4a6d-ab5f-49ac5ab71fa3", + "parentUUID": "338864f9-3e42-4f57-9f1b-7e142fbbc9ae", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer and check result", + "fullTitle": "BO - Orders - Create order : Create customer from new order page should create customer and check result", + "timedOut": false, + "duration": 2725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addNewCustomer(page, customerData)];\n case 2:\n customerName = _a.sent();\n (0, chai_1.expect)(customerName).to.contains(\"\".concat(customerData.firstName, \" \").concat(customerData.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cffc528-a122-4936-884b-0900ff4a04bd", + "parentUUID": "338864f9-3e42-4f57-9f1b-7e142fbbc9ae", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the new customer and check result", + "fullTitle": "BO - Orders - Create order : Create customer from new order page should search for the new customer and check result", + "timedOut": false, + "duration": 98, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_searchCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getCustomerNameFromResult(page, 1)];\n case 3:\n customerName = _a.sent();\n (0, chai_1.expect)(customerName).to.contains(\"\".concat(customerData.firstName, \" \").concat(customerData.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b11400c0-3c73-4745-8a79-de58c64604f9", + "parentUUID": "338864f9-3e42-4f57-9f1b-7e142fbbc9ae", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/02_createCustomer.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/02_createCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Create order : Create customer from new order page POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce1185c2-7323-4282-ac46-4e8c7403fb75", + "parentUUID": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Create order : Create customer from new order page POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6e2bb497-dd2c-4a8d-9278-e25ddbd9f2bb", + "parentUUID": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Create customer from new order page POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f09550a-0d8d-4ee0-ad20-922760f2b373", + "parentUUID": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Create order : Create customer from new order page POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f7c3f5f-94a7-4957-b785-802ae9c57af1", + "parentUUID": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Create customer from new order page POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "030d6e0a-b952-4ed8-91b4-20c3697e8438", + "parentUUID": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders - Create order : Create customer from new order page POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1148, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f08ce5e0-b1e4-4caa-954f-3f6b803a9cba", + "parentUUID": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders - Create order : Create customer from new order page POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1593, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9349fef-6611-44b3-97e8-0a2a3cf4e8ae", + "parentUUID": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders - Create order : Create customer from new order page POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createCustomer_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5883da77-8215-4127-a92e-974c8f955de9", + "parentUUID": "9a42ed51-111f-42e2-87e0-a36a3f0096d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7f09550a-0d8d-4ee0-ad20-922760f2b373", + "3f7c3f5f-94a7-4957-b785-802ae9c57af1", + "030d6e0a-b952-4ed8-91b4-20c3697e8438", + "f08ce5e0-b1e4-4caa-954f-3f6b803a9cba", + "b9349fef-6611-44b3-97e8-0a2a3cf4e8ae", + "5883da77-8215-4127-a92e-974c8f955de9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11995, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "5e719487-50fa-4008-b7b2-1313da292028", + "4f127c46-1b7f-440d-945a-a576fcf9358e", + "e6a51f7a-caee-4a6d-ab5f-49ac5ab71fa3", + "6cffc528-a122-4936-884b-0900ff4a04bd", + "b11400c0-3c73-4745-8a79-de58c64604f9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9306, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fc3fed1a-f663-4abd-8629-266e023704b9", + "title": "BO - Orders - Create order : Create simple order in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/03_createSimpleOrderInBO.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/03_createSimpleOrderInBO.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Create simple order in BO\"", + "fullTitle": "BO - Orders - Create order : Create simple order in BO \"before all\" hook in \"BO - Orders - Create order : Create simple order in BO\"", + "timedOut": false, + "duration": 55, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94ba93cf-8a16-43b7-93ea-37ff119ae685", + "parentUUID": "fc3fed1a-f663-4abd-8629-266e023704b9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Create simple order in BO\"", + "fullTitle": "BO - Orders - Create order : Create simple order in BO \"after all\" hook in \"BO - Orders - Create order : Create simple order in BO\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "631fa03f-b896-4bb6-b6e4-37f7fc49cc0a", + "parentUUID": "fc3fed1a-f663-4abd-8629-266e023704b9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Create simple order in BO should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4215ef91-5b49-4a21-a634-64bf639bcbad", + "parentUUID": "fc3fed1a-f663-4abd-8629-266e023704b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Create simple order in BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfcbc8d1-d973-4141-a957-6ee7903f279a", + "parentUUID": "fc3fed1a-f663-4abd-8629-266e023704b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Create simple order in BO should go to create order page", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "732f20fa-dedb-47b4-8b3e-9456a35e9791", + "parentUUID": "fc3fed1a-f663-4abd-8629-266e023704b9", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b97a5406-1438-4b70-b428-d315857a39df", + "title": "Create order and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/03_createSimpleOrderInBO.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/03_createSimpleOrderInBO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should create the order", + "fullTitle": "BO - Orders - Create order : Create simple order in BO Create order and check result should create the order", + "timedOut": false, + "duration": 7864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_createOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createOrder(page, orderToMake)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "565cc60d-f260-4b3f-92c5-3a2df6c99d0e", + "parentUUID": "b97a5406-1438-4b70-b428-d315857a39df", + "isHook": false, + "skipped": false + }, + { + "title": "should check order status", + "fullTitle": "BO - Orders - Create order : Create simple order in BO Create order and check result should check order status", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_checkOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderStatus(page)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus).to.equal(orderToMake.status.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f8cb0a4-e0f6-4dbe-bb68-26baeb4c9159", + "parentUUID": "b97a5406-1438-4b70-b428-d315857a39df", + "isHook": false, + "skipped": false + }, + { + "title": "should check order total price", + "fullTitle": "BO - Orders - Create order : Create simple order in BO Create order and check result should check order total price", + "timedOut": false, + "duration": 1019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_checkOrderPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalPrice(page)];\n case 2:\n totalPrice = _a.sent();\n (0, chai_1.expect)(totalPrice).to.equal(orderToMake.totalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a758956-f35c-42e2-b64c-bbf02f493acf", + "parentUUID": "b97a5406-1438-4b70-b428-d315857a39df", + "isHook": false, + "skipped": false + }, + { + "title": "should check order shipping address", + "fullTitle": "BO - Orders - Create order : Create simple order in BO Create order and check result should check order shipping address", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_checkShippingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getShippingAddress(page)];\n case 2:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress)\n .to.contain(orderToMake.deliveryAddress.firstName)\n .and.to.contain(orderToMake.deliveryAddress.lastName)\n .and.to.contain(orderToMake.deliveryAddress.address)\n .and.to.contain(orderToMake.deliveryAddress.postalCode)\n .and.to.contain(orderToMake.deliveryAddress.city)\n .and.to.contain(orderToMake.deliveryAddress.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "360b9f26-1ca3-4c36-a171-0e7cb1a6cb05", + "parentUUID": "b97a5406-1438-4b70-b428-d315857a39df", + "isHook": false, + "skipped": false + }, + { + "title": "should check order invoice address", + "fullTitle": "BO - Orders - Create order : Create simple order in BO Create order and check result should check order invoice address", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_checkInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getInvoiceAddress(page)];\n case 2:\n invoiceAddress = _a.sent();\n (0, chai_1.expect)(invoiceAddress)\n .to.contain(orderToMake.deliveryAddress.firstName)\n .and.to.contain(orderToMake.deliveryAddress.lastName)\n .and.to.contain(orderToMake.deliveryAddress.address)\n .and.to.contain(orderToMake.deliveryAddress.postalCode)\n .and.to.contain(orderToMake.deliveryAddress.city)\n .and.to.contain(orderToMake.deliveryAddress.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3057d014-6741-4fcc-9550-52a74f143eb3", + "parentUUID": "b97a5406-1438-4b70-b428-d315857a39df", + "isHook": false, + "skipped": false + }, + { + "title": "should check products names in cart list", + "fullTitle": "BO - Orders - Create order : Create simple order in BO Create order and check result should check products names in cart list", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_checkProductsNames\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, productName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsNames', baseContext)];\n case 1:\n _a.sent();\n i = 1;\n _a.label = 2;\n case 2:\n if (!(i <= orderToMake.products.length)) return [3 /*break*/, 5];\n return [4 /*yield*/, productsBlock_1.default.getProductNameFromTable(page, i)];\n case 3:\n productName = _a.sent();\n (0, chai_1.expect)(productName).to.contain(orderToMake.products[i - 1].product.name);\n _a.label = 4;\n case 4:\n i++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "850e310e-b9f3-47aa-8024-3e785586e98c", + "parentUUID": "b97a5406-1438-4b70-b428-d315857a39df", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "565cc60d-f260-4b3f-92c5-3a2df6c99d0e", + "8f8cb0a4-e0f6-4dbe-bb68-26baeb4c9159", + "0a758956-f35c-42e2-b64c-bbf02f493acf", + "360b9f26-1ca3-4c36-a171-0e7cb1a6cb05", + "3057d014-6741-4fcc-9550-52a74f143eb3", + "850e310e-b9f3-47aa-8024-3e785586e98c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8920, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1a82983b-3cfe-4385-90d2-c3c986f12c30", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/03_createSimpleOrderInBO.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/03_createSimpleOrderInBO.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Create simple order in BO POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e608d7fc-8d94-48f8-9e31-ff826d2965a0", + "parentUUID": "1a82983b-3cfe-4385-90d2-c3c986f12c30", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Create simple order in BO POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dabdef54-a8e6-4e89-a9bb-8a39a7fc794b", + "parentUUID": "1a82983b-3cfe-4385-90d2-c3c986f12c30", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Create simple order in BO POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be480968-cee9-41b6-96e0-fdab638a57e8", + "parentUUID": "1a82983b-3cfe-4385-90d2-c3c986f12c30", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Create simple order in BO POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "043e5568-5e3a-4d8a-9104-9d2b9d86569a", + "parentUUID": "1a82983b-3cfe-4385-90d2-c3c986f12c30", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Create simple order in BO POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d70d1ed-1391-403b-90b3-2e7f7486a1f0", + "parentUUID": "1a82983b-3cfe-4385-90d2-c3c986f12c30", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Orders - Create order : Create simple order in BO POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1993, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff38bd77-5cce-45f9-9c02-74285ec9c951", + "parentUUID": "1a82983b-3cfe-4385-90d2-c3c986f12c30", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Create simple order in BO POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_createSimpleOrderInBO_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c02093bc-8d44-4459-bb86-17ff14b04295", + "parentUUID": "1a82983b-3cfe-4385-90d2-c3c986f12c30", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "be480968-cee9-41b6-96e0-fdab638a57e8", + "043e5568-5e3a-4d8a-9104-9d2b9d86569a", + "3d70d1ed-1391-403b-90b3-2e7f7486a1f0", + "ff38bd77-5cce-45f9-9c02-74285ec9c951", + "c02093bc-8d44-4459-bb86-17ff14b04295" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11467, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "4215ef91-5b49-4a21-a634-64bf639bcbad", + "cfcbc8d1-d973-4141-a957-6ee7903f279a", + "732f20fa-dedb-47b4-8b3e-9456a35e9791" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7413, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f4c9dd53-961f-413e-8551-310d59bb062f", + "title": "BO - Orders - Create Order : Select Previous Carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create Order : Select Previous Carts\"", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts \"before all\" hook in \"BO - Orders - Create Order : Select Previous Carts\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef166e94-5604-4d42-9633-a2b78dcc5687", + "parentUUID": "f4c9dd53-961f-413e-8551-310d59bb062f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create Order : Select Previous Carts\"", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts \"after all\" hook in \"BO - Orders - Create Order : Select Previous Carts\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7a60be59-845a-4e9f-ace7-d7e4179709b5", + "parentUUID": "f4c9dd53-961f-413e-8551-310d59bb062f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts should login in BO", + "timedOut": false, + "duration": 1758, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cdcad18-dcb2-475d-b3af-d1d97fbadc4b", + "parentUUID": "f4c9dd53-961f-413e-8551-310d59bb062f", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6d7182cd-d3d8-4145-ab3d-18bf7f8754b6", + "title": "PRE-TEST: Delete the Non ordered shopping carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts PRE-TEST: Delete the Non ordered shopping carts should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToShoppingCartsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "718fc4fa-7c93-4f0a-a67d-7ac5f2082f1d", + "parentUUID": "6d7182cd-d3d8-4145-ab3d-18bf7f8754b6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of shopping carts", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts PRE-TEST: Delete the Non ordered shopping carts should reset all filters and get number of shopping carts", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_resetFiltersFirst1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCarts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc4e5003-ea86-4046-b2b3-46d327ae3d50", + "parentUUID": "6d7182cd-d3d8-4145-ab3d-18bf7f8754b6", + "isHook": false, + "skipped": false + }, + { + "title": "should search the non ordered shopping carts", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts PRE-TEST: Delete the Non ordered shopping carts should search the non ordered shopping carts", + "timedOut": false, + "duration": 334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_searchNonOrderedShoppingCarts1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonOrderedShoppingCarts1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'status', 'Non ordered')];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfNonOrderedShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfNonOrderedShoppingCarts).to.be.at.most(numberOfShoppingCarts);\n numberOfShoppingCarts -= numberOfNonOrderedShoppingCarts;\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfNonOrderedShoppingCarts)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, 'status')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('Non ordered');\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e95b229-e4c7-437d-9b2e-724190b3210b", + "parentUUID": "6d7182cd-d3d8-4145-ab3d-18bf7f8754b6", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the non ordered shopping carts if exist", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts PRE-TEST: Delete the Non ordered shopping carts should delete the non ordered shopping carts if exist", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_deleteNonOrderedShoppingCartsIfExists1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteNonOrderedShoppingCartsIfExists1', baseContext)];\n case 1:\n _a.sent();\n if (!(numberOfNonOrderedShoppingCarts > 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, shoppingCarts_1.default.bulkDeleteShoppingCarts(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(shoppingCarts_1.default.successfulMultiDeleteMessage);\n _a.label = 3;\n case 3: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8320d9e9-3916-443b-ba61-260278a156ab", + "parentUUID": "6d7182cd-d3d8-4145-ab3d-18bf7f8754b6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts PRE-TEST: Delete the Non ordered shopping carts should reset all filters", + "timedOut": false, + "duration": 2938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_resetAfterDeleteNonOrderedCarts1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteNonOrderedCarts1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e8f84a1-0422-4fc2-b4d6-6a9216e1ca43", + "parentUUID": "6d7182cd-d3d8-4145-ab3d-18bf7f8754b6", + "isHook": false, + "skipped": false + }, + { + "title": "should get the last shopping cart ID", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts PRE-TEST: Delete the Non ordered shopping carts should get the last shopping cart ID", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_getIdOfLastShoppingCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getIdOfLastShoppingCart1', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'id_cart')];\n case 2:\n lastShoppingCartId = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(lastShoppingCartId).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "386e1e2e-0101-4d7e-88a0-67bfc50a3dcf", + "parentUUID": "6d7182cd-d3d8-4145-ab3d-18bf7f8754b6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "718fc4fa-7c93-4f0a-a67d-7ac5f2082f1d", + "dc4e5003-ea86-4046-b2b3-46d327ae3d50", + "1e95b229-e4c7-437d-9b2e-724190b3210b", + "8320d9e9-3916-443b-ba61-260278a156ab", + "3e8f84a1-0422-4fc2-b4d6-6a9216e1ca43", + "386e1e2e-0101-4d7e-88a0-67bfc50a3dcf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7016, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0a075ac5-ba1c-4b53-b95e-b1b5c0d428e2", + "title": "Go to add new order page and choose default customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Go to add new order page and choose default customer should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 5050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testidentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testidentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0158996-f1b2-490b-bf71-7c62206a814f", + "parentUUID": "0a075ac5-ba1c-4b53-b95e-b1b5c0d428e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Go to add new order page and choose default customer should go to create order page", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToCreateOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6da235b-6c62-49b3-a954-20781c9f209d", + "parentUUID": "0a075ac5-ba1c-4b53-b95e-b1b5c0d428e2", + "isHook": false, + "skipped": false + }, + { + "title": "should search for default customer", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Go to add new order page and choose default customer should search for default customer", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkExistentCustomerCard1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkExistentCustomerCard1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getCustomerNameFromResult(page, 1)];\n case 3:\n customerName = _a.sent();\n (0, chai_1.expect)(customerName).to.contains(\"\".concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5be3146-59cc-46bc-b92c-3c1f2d57dfd4", + "parentUUID": "0a075ac5-ba1c-4b53-b95e-b1b5c0d428e2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the choose button of the default customer", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Go to add new order page and choose default customer should click on the choose button of the default customer", + "timedOut": false, + "duration": 44, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_clickOnChooseButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBlockHistoryVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnChooseButton1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseCustomer(page)];\n case 2:\n isBlockHistoryVisible = _a.sent();\n (0, chai_1.expect)(isBlockHistoryVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f207ce39-104e-4328-bed6-249d1979dfe7", + "parentUUID": "0a075ac5-ba1c-4b53-b95e-b1b5c0d428e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b0158996-f1b2-490b-bf71-7c62206a814f", + "f6da235b-6c62-49b3-a954-20781c9f209d", + "d5be3146-59cc-46bc-b92c-3c1f2d57dfd4", + "f207ce39-104e-4328-bed6-249d1979dfe7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6753, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "26d6cf6b-941a-4f40-9804-1529ca843894", + "title": "Check that no records found on carts table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that no records found in the carts section", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check that no records found on carts table should check that no records found in the carts section", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkThatNoRecordFoundForCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFoundForCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextWhenCartsTableIsEmpty(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "324b40e5-c5b8-405d-9996-b9f230fa7559", + "parentUUID": "26d6cf6b-941a-4f40-9804-1529ca843894", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "324b40e5-c5b8-405d-9996-b9f230fa7559" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2010, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6ad2577d-8a30-4f16-9015-7db4cddb21bb", + "title": "Delete the Non ordered shopping carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Delete the Non ordered shopping carts should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToShoppingCartsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9f41a19-950e-4ae3-8b04-6fbfdb87b3d5", + "parentUUID": "6ad2577d-8a30-4f16-9015-7db4cddb21bb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of shopping carts", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Delete the Non ordered shopping carts should reset all filters and get number of shopping carts", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_resetFiltersFirst2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCarts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a9dc7f8-94e7-448b-9265-90564a678491", + "parentUUID": "6ad2577d-8a30-4f16-9015-7db4cddb21bb", + "isHook": false, + "skipped": false + }, + { + "title": "should search the non ordered shopping carts", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Delete the Non ordered shopping carts should search the non ordered shopping carts", + "timedOut": false, + "duration": 367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_searchNonOrderedShoppingCarts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonOrderedShoppingCarts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'status', 'Non ordered')];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfNonOrderedShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfNonOrderedShoppingCarts).to.be.at.most(numberOfShoppingCarts);\n numberOfShoppingCarts -= numberOfNonOrderedShoppingCarts;\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfNonOrderedShoppingCarts)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, 'status')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('Non ordered');\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5b00cfe-6a36-4115-9e72-21ec5f459a64", + "parentUUID": "6ad2577d-8a30-4f16-9015-7db4cddb21bb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the non ordered shopping carts if exist", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Delete the Non ordered shopping carts should delete the non ordered shopping carts if exist", + "timedOut": false, + "duration": 1223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_deleteNonOrderedShoppingCartsIfExists2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteNonOrderedShoppingCartsIfExists2', baseContext)];\n case 1:\n _a.sent();\n if (!(numberOfNonOrderedShoppingCarts > 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, shoppingCarts_1.default.bulkDeleteShoppingCarts(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(shoppingCarts_1.default.successfulMultiDeleteMessage);\n _a.label = 3;\n case 3: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9b3abe2-34e7-4b8e-8150-0499d4a9048e", + "parentUUID": "6ad2577d-8a30-4f16-9015-7db4cddb21bb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Delete the Non ordered shopping carts should reset all filters", + "timedOut": false, + "duration": 2954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_resetAfterDeleteNonOrderedCarts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteNonOrderedCarts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2858193-ead3-4208-83e2-b284045c7b36", + "parentUUID": "6ad2577d-8a30-4f16-9015-7db4cddb21bb", + "isHook": false, + "skipped": false + }, + { + "title": "should get the last shopping cart ID", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Delete the Non ordered shopping carts should get the last shopping cart ID", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_getIdOfLastShoppingCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getIdOfLastShoppingCart2', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'id_cart')];\n case 2:\n lastShoppingCartId = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(lastShoppingCartId).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ab710c0-7688-44f6-8c57-cb24d85aa0b6", + "parentUUID": "6ad2577d-8a30-4f16-9015-7db4cddb21bb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c9f41a19-950e-4ae3-8b04-6fbfdb87b3d5", + "8a9dc7f8-94e7-448b-9265-90564a678491", + "f5b00cfe-6a36-4115-9e72-21ec5f459a64", + "f9b3abe2-34e7-4b8e-8150-0499d4a9048e", + "e2858193-ead3-4208-83e2-b284045c7b36", + "3ab710c0-7688-44f6-8c57-cb24d85aa0b6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8442, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a80eca7f-f0bb-4ac5-863f-7a3ac749af64", + "title": "Create a Shopping cart from the FO by the default customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on view my shop", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Create a Shopping cart from the FO by the default customer should click on view my shop", + "timedOut": false, + "duration": 1792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_clickOnViewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17c39622-2fd2-4053-a032-f49acbd6a433", + "parentUUID": "a80eca7f-f0bb-4ac5-863f-7a3ac749af64", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Create a Shopping cart from the FO by the default customer should go to login page", + "timedOut": false, + "duration": 734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f383b1a-29b5-46d7-8f4a-2ee4f6c8a49f", + "parentUUID": "a80eca7f-f0bb-4ac5-863f-7a3ac749af64", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Create a Shopping cart from the FO by the default customer should sign in with customer credentials", + "timedOut": false, + "duration": 652, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "831f3768-811b-4387-8ac5-42e8391ee77e", + "parentUUID": "a80eca7f-f0bb-4ac5-863f-7a3ac749af64", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Create a Shopping cart from the FO by the default customer should add product to cart", + "timedOut": false, + "duration": 7356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d045e755-a84e-434a-b87f-975b27e49b4d", + "parentUUID": "a80eca7f-f0bb-4ac5-863f-7a3ac749af64", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Create a Shopping cart from the FO by the default customer should go to delivery step", + "timedOut": false, + "duration": 1076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af536efd-14ad-4213-8c9f-bc127dcc9649", + "parentUUID": "a80eca7f-f0bb-4ac5-863f-7a3ac749af64", + "isHook": false, + "skipped": false + }, + { + "title": "should select My carrier", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Create a Shopping cart from the FO by the default customer should select My carrier", + "timedOut": false, + "duration": 413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_selectMyCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPaymentStepDisplayed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectMyCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethodAndAddComment(page, carriers_1.default.myCarrier.id)];\n case 2:\n isPaymentStepDisplayed = _a.sent();\n (0, chai_1.expect)(isPaymentStepDisplayed, 'Payment Step is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "993bb93d-c36c-4e8c-bc33-25fca648f3c8", + "parentUUID": "a80eca7f-f0bb-4ac5-863f-7a3ac749af64", + "isHook": false, + "skipped": false + }, + { + "title": "should close the current page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Create a Shopping cart from the FO by the default customer should close the current page", + "timedOut": false, + "duration": 382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_closeCurrentPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeCurrentPage', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _b.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _b.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [4 /*yield*/, shoppingCarts_1.default.reloadPage(page)];\n case 4:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'id_cart')];\n case 5:\n lastShoppingCartId = _a.apply(void 0, [_b.sent(), 10]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e6c2e17-808e-4692-8432-d5c3c7a690ed", + "parentUUID": "a80eca7f-f0bb-4ac5-863f-7a3ac749af64", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "17c39622-2fd2-4053-a032-f49acbd6a433", + "6f383b1a-29b5-46d7-8f4a-2ee4f6c8a49f", + "831f3768-811b-4387-8ac5-42e8391ee77e", + "d045e755-a84e-434a-b87f-975b27e49b4d", + "af536efd-14ad-4213-8c9f-bc127dcc9649", + "993bb93d-c36c-4e8c-bc33-25fca648f3c8", + "8e6c2e17-808e-4692-8432-d5c3c7a690ed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12405, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8dafd3cd-44a8-485e-bb99-b5db691a456a", + "title": "Get the Available stock of the ordered product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Get the Available stock of the ordered product should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ad4c005-94ff-4344-b15c-33c78679a032", + "parentUUID": "8dafd3cd-44a8-485e-bb99-b5db691a456a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by product 'Hummingbird printed t-shirt'", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Get the Available stock of the ordered product should filter by product 'Hummingbird printed t-shirt'", + "timedOut": false, + "duration": 1200, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_filterByProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, products_1.default.demo_1.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2782655a-3a61-4990-abc1-69b66e5ed6bb", + "parentUUID": "8dafd3cd-44a8-485e-bb99-b5db691a456a", + "isHook": false, + "skipped": false + }, + { + "title": "should get the Available stock of the ordered product", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Get the Available stock of the ordered product should get the Available stock of the ordered product", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_getAvailableStockOfOrderedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getAvailableStockOfOrderedProduct', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 2:\n availableStockOfOrderedProduct = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(availableStockOfOrderedProduct).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e43093a-dcbf-4ae4-9f99-f113fc82a3d8", + "parentUUID": "8dafd3cd-44a8-485e-bb99-b5db691a456a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9ad4c005-94ff-4344-b15c-33c78679a032", + "2782655a-3a61-4990-abc1-69b66e5ed6bb", + "9e43093a-dcbf-4ae4-9f99-f113fc82a3d8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5475, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f7099e2a-6f5a-403a-ba30-a6839649c57a", + "title": "Check the Carts table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Carts table should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff703391-db38-4797-9b2a-5b50529fc717", + "parentUUID": "f7099e2a-6f5a-403a-ba30-a6839649c57a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Carts table should go to create order page", + "timedOut": false, + "duration": 771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_goToCreateOrderPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41fe4aee-9659-4003-934b-15dd832f1ae1", + "parentUUID": "f7099e2a-6f5a-403a-ba30-a6839649c57a", + "isHook": false, + "skipped": false + }, + { + "title": "should search for default customer", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Carts table should search for default customer", + "timedOut": false, + "duration": 859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkExistentCustomerCard2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkExistentCustomerCard2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getCustomerNameFromResult(page, 1)];\n case 3:\n customerName = _a.sent();\n (0, chai_1.expect)(customerName).to.contains(\"\".concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2582933f-eff8-4c44-8dd7-0b7e873f72ca", + "parentUUID": "f7099e2a-6f5a-403a-ba30-a6839649c57a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the choose button of the default customer", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Carts table should click on the choose button of the default customer", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_clickOnChooseButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBlockHistoryVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnChooseButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseCustomer(page)];\n case 2:\n isBlockHistoryVisible = _a.sent();\n (0, chai_1.expect)(isBlockHistoryVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f223f7e7-ddac-41ff-b29d-22827b95fdea", + "parentUUID": "f7099e2a-6f5a-403a-ba30-a6839649c57a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shopping cart ID", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Carts table should check the shopping cart ID", + "timedOut": false, + "duration": 205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkShoppingCartId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShoppingCartId', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextColumnFromCartsTable(page, 'id')];\n case 2:\n cartId = _a.sent();\n (0, chai_1.expect)(parseInt(cartId, 10)).to.be.equal(lastShoppingCartId);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33ef8e8d-1dd8-4610-b711-7bd75e73f190", + "parentUUID": "f7099e2a-6f5a-403a-ba30-a6839649c57a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shopping cart date", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Carts table should check the shopping cart date", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkShoppingCartdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkShoppingCart\".concat(test.args.columnName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextColumnFromCartsTable(page, test.args.columnName)];\n case 2:\n cartColumn = _a.sent();\n if (test.args.columnName === 'date') {\n (0, chai_1.expect)(cartColumn).to.contains(test.args.result);\n }\n else {\n (0, chai_1.expect)(cartColumn).to.be.equal(test.args.result);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3d61f02-11ca-44e4-b462-1f27e1a284fc", + "parentUUID": "f7099e2a-6f5a-403a-ba30-a6839649c57a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shopping cart total", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Carts table should check the shopping cart total", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkShoppingCarttotal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkShoppingCart\".concat(test.args.columnName), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextColumnFromCartsTable(page, test.args.columnName)];\n case 2:\n cartColumn = _a.sent();\n if (test.args.columnName === 'date') {\n (0, chai_1.expect)(cartColumn).to.contains(test.args.result);\n }\n else {\n (0, chai_1.expect)(cartColumn).to.be.equal(test.args.result);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1407e68e-2843-426b-9274-9b8a25d1ca3f", + "parentUUID": "f7099e2a-6f5a-403a-ba30-a6839649c57a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ff703391-db38-4797-9b2a-5b50529fc717", + "41fe4aee-9659-4003-934b-15dd832f1ae1", + "2582933f-eff8-4c44-8dd7-0b7e873f72ca", + "f223f7e7-ddac-41ff-b29d-22827b95fdea", + "33ef8e8d-1dd8-4610-b711-7bd75e73f190", + "a3d61f02-11ca-44e4-b462-1f27e1a284fc", + "1407e68e-2843-426b-9274-9b8a25d1ca3f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5542, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "39b9213a-b920-4629-9ef2-ff91a687f376", + "title": "Check the Cart details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on details button and check the Cart Iframe is well displayed", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should click on details button and check the Cart Iframe is well displayed", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_clickOnDetailsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDetailsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnCartDetailsButton(page, 1)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e30e94d4-a2a7-4f70-9c19-64024701433b", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart Id", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the cart Id", + "timedOut": false, + "duration": 46, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkCardId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCardId', baseContext)];\n case 1:\n _a.sent();\n shoppingCartPage = add_1.default.getShoppingCartIframe(page, lastShoppingCartId);\n (0, chai_1.expect)(shoppingCartPage).to.not.eq(null);\n return [4 /*yield*/, view_1.default.getCartId(shoppingCartPage)];\n case 2:\n cartId = _a.sent();\n (0, chai_1.expect)(cartId).to.be.equal(\"Cart #\".concat(lastShoppingCartId));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd1bcf95-e8df-4e98-a00e-3e7b3d2134cd", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart total", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the cart total", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkCardTotal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartTotal;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCardTotal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getCartTotal(shoppingCartPage)];\n case 2:\n cartTotal = _a.sent();\n (0, chai_1.expect)(cartTotal.toString())\n .to.be.equal((products_1.default.demo_1.finalPrice + myCarrierCost).toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e71a689-7a25-4e46-a157-d925dcc45534", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the customer Information Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the customer Information Block", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkCustomerInformationBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerInformationBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default\n .getCustomerInformation(shoppingCartPage)];\n case 2:\n customerInformation = _a.sent();\n (0, chai_1.expect)(customerInformation)\n .to.contains(\"\".concat(customers_1.default.johnDoe.socialTitle, \" \").concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName))\n .and.to.contains(customers_1.default.johnDoe.email)\n .and.to.contains(todayCartFormat);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ce2abe3-fa43-4beb-82e3-c594e9f08081", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order Information Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the order Information Block", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkOrderInformationBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderInformation, hasButtonCreateOrderFromCart;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderInformationBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getOrderInformation(shoppingCartPage)];\n case 2:\n orderInformation = _a.sent();\n (0, chai_1.expect)(orderInformation).to.contains('No order was created from this cart.');\n return [4 /*yield*/, view_1.default.hasButtonCreateOrderFromCart(shoppingCartPage)];\n case 3:\n hasButtonCreateOrderFromCart = _a.sent();\n (0, chai_1.expect)(hasButtonCreateOrderFromCart).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1cfd418-ba2d-443d-a78c-c54103642afb", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product stock_available in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product stock_available in cart Summary Block", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProductStockAvailableInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', 'checkProductStockAvailableInCartSummaryBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, 'stock_available')];\n case 2:\n cartSummary = _a.sent();\n (0, chai_1.expect)(cartSummary).to.contains(availableStockOfOrderedProduct.toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32fe6edd-1184-4b98-9ec2-6a4a96f18a78", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's image in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product's image in cart Summary Block", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProductimageInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, test.args.columnName)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb9aae9d-769f-481b-8f70-643751192688", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's title in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product's title in cart Summary Block", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProducttitleInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, test.args.columnName)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd1fdf29-75a9-48fe-9cc3-d208c1fbe42a", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's unit_price in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product's unit_price in cart Summary Block", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProductunit_priceInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, test.args.columnName)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd470288-61d9-450a-ae9f-1b8e66cfac65", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's quantity in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product's quantity in cart Summary Block", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProductquantityInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, test.args.columnName)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "683b0098-5848-4d4a-b7ff-9180f8593665", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product's total in cart Summary Block", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProducttotalInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, test.args.columnName)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d94311a3-20f3-4e98-8ad6-1b055b5490e6", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total_cost_products in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product's total_cost_products in cart Summary Block", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProducttotal_cost_productsInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, test.args.columnName)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d95fea9e-1b76-4257-a87c-66dd9a7d3232", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total_cost_shipping in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product's total_cost_shipping in cart Summary Block", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProducttotal_cost_shippingInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, test.args.columnName)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45e0f29c-bfa3-4560-9d48-c683e40116a1", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total_cart in cart Summary Block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Check the Cart details should check the product's total_cart in cart Summary Block", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkProducttotal_cartInCartSummaryBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(shoppingCartPage, test.args.columnName)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6ec89ae-550f-4655-a742-82b7ba2b5ffc", + "parentUUID": "39b9213a-b920-4629-9ef2-ff91a687f376", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e30e94d4-a2a7-4f70-9c19-64024701433b", + "dd1bcf95-e8df-4e98-a00e-3e7b3d2134cd", + "8e71a689-7a25-4e46-a157-d925dcc45534", + "4ce2abe3-fa43-4beb-82e3-c594e9f08081", + "e1cfd418-ba2d-443d-a78c-c54103642afb", + "32fe6edd-1184-4b98-9ec2-6a4a96f18a78", + "eb9aae9d-769f-481b-8f70-643751192688", + "cd1fdf29-75a9-48fe-9cc3-d208c1fbe42a", + "dd470288-61d9-450a-ae9f-1b8e66cfac65", + "683b0098-5848-4d4a-b7ff-9180f8593665", + "d94311a3-20f3-4e98-8ad6-1b055b5490e6", + "d95fea9e-1b76-4257-a87c-66dd9a7d3232", + "45e0f29c-bfa3-4560-9d48-c683e40116a1", + "b6ec89ae-550f-4655-a742-82b7ba2b5ffc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 504, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9812485a-25d4-4b8a-806b-fb7c9a266917", + "title": "Complete the order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/04_selectPreviousCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should close the Shopping cart Iframe", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Complete the order should close the Shopping cart Iframe", + "timedOut": false, + "duration": 422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_closeIframe\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeIframe', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeIframe(page)];\n case 2:\n isIframeNotVisible = _a.sent();\n (0, chai_1.expect)(isIframeNotVisible, 'iframe shopping cart is still visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6e429c5-bea4-4aaf-b288-064c51195c38", + "parentUUID": "9812485a-25d4-4b8a-806b-fb7c9a266917", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Use' button and check that product table is visible on 'Cart' block", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Complete the order should click on 'Use' button and check that product table is visible on 'Cart' block", + "timedOut": false, + "duration": 438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_clickOnUseButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isProductTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnUseButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnCartUseButton(page)];\n case 2:\n isProductTableVisible = _a.sent();\n (0, chai_1.expect)(isProductTableVisible, 'Product table is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24cd4b42-1b8c-429a-ba56-1fbf5972a9be", + "parentUUID": "9812485a-25d4-4b8a-806b-fb7c9a266917", + "isHook": false, + "skipped": false + }, + { + "title": "should check the delivery option selected", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Complete the order should check the delivery option selected", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkDeliverySelected\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryOption;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliverySelected', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getDeliveryOption(page)];\n case 2:\n deliveryOption = _a.sent();\n (0, chai_1.expect)(deliveryOption).to.contains(carriers_1.default.myCarrier.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73a3aa67-0a3c-49c8-8939-814f5685271d", + "parentUUID": "9812485a-25d4-4b8a-806b-fb7c9a266917", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shipping cost", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Complete the order should check the shipping cost", + "timedOut": false, + "duration": 1010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkShippingCost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingCost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingCost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getShippingCost(page)];\n case 2:\n shippingCost = _a.sent();\n (0, chai_1.expect)(shippingCost).to.be.equal(\"\\u20AC\".concat(myCarrierCost.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "363b9cc6-3cef-4d90-8cd8-32dcae4f9d6a", + "parentUUID": "9812485a-25d4-4b8a-806b-fb7c9a266917", + "isHook": false, + "skipped": false + }, + { + "title": "should check the total", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Complete the order should check the total", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_checkTotal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalOrder;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTotal(page)];\n case 2:\n totalOrder = _a.sent();\n (0, chai_1.expect)(totalOrder).to.be.equal(\"\\u20AC\".concat((products_1.default.demo_1.finalPrice + myCarrierCost).toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1195b773-773b-4047-a051-a3f04bf65553", + "parentUUID": "9812485a-25d4-4b8a-806b-fb7c9a266917", + "isHook": false, + "skipped": false + }, + { + "title": "should complete the order", + "fullTitle": "BO - Orders - Create Order : Select Previous Carts Complete the order should complete the order", + "timedOut": false, + "duration": 1841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousCarts_completeOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'completeOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setSummaryAndCreateOrder(page, paymentMethods_1.default.checkPayment.moduleName, orderStatuses_1.default.paymentAccepted)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b55a2a8d-96ae-4742-911a-9ac8461d6751", + "parentUUID": "9812485a-25d4-4b8a-806b-fb7c9a266917", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e6e429c5-bea4-4aaf-b288-064c51195c38", + "24cd4b42-1b8c-429a-ba56-1fbf5972a9be", + "73a3aa67-0a3c-49c8-8939-814f5685271d", + "363b9cc6-3cef-4d90-8cd8-32dcae4f9d6a", + "1195b773-773b-4047-a051-a3f04bf65553", + "b55a2a8d-96ae-4742-911a-9ac8461d6751" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3722, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "2cdcad18-dcb2-475d-b3af-d1d97fbadc4b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1758, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "277688dc-51ca-4056-9d01-2c43ddc81758", + "title": "BO - Orders - Create order : Select previous orders", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Select previous orders\"", + "fullTitle": "BO - Orders - Create order : Select previous orders \"before all\" hook in \"BO - Orders - Create order : Select previous orders\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4367a204-946e-4bf3-bb2b-8504ecfeb1a7", + "parentUUID": "277688dc-51ca-4056-9d01-2c43ddc81758", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Select previous orders\"", + "fullTitle": "BO - Orders - Create order : Select previous orders \"after all\" hook in \"BO - Orders - Create order : Select previous orders\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "34a59344-62cf-4c60-af56-81c8cd0404d6", + "parentUUID": "277688dc-51ca-4056-9d01-2c43ddc81758", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b5594760-6aae-4470-abee-3a873f72ebb1", + "title": "PRE-TEST: Create customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create customer\"", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create customer \"before all\" hook in \"PRE-TEST: Create customer\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70cb4c6a-12fd-48ca-a778-529c68c47504", + "parentUUID": "b5594760-6aae-4470-abee-3a873f72ebb1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create customer\"", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create customer \"after all\" hook in \"PRE-TEST: Create customer\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "94409dc1-0e21-448c-8933-a7424b0721fe", + "parentUUID": "b5594760-6aae-4470-abee-3a873f72ebb1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create customer should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a8bbd7d-5f50-44ad-8c8d-970ce1a03329", + "parentUUID": "b5594760-6aae-4470-abee-3a873f72ebb1", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a184269e-e5e9-4e62-ae65-cee18eb0b6b6", + "parentUUID": "b5594760-6aae-4470-abee-3a873f72ebb1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create customer should go to add new customer page", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_1_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15251939-3f9d-452c-8163-4ce9696d5b35", + "parentUUID": "b5594760-6aae-4470-abee-3a873f72ebb1", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer and check result", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create customer should create customer and check result", + "timedOut": false, + "duration": 1548, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_1_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef9b44ea-d406-4fd3-be24-8b656fb3d227", + "parentUUID": "b5594760-6aae-4470-abee-3a873f72ebb1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3a8bbd7d-5f50-44ad-8c8d-970ce1a03329", + "a184269e-e5e9-4e62-ae65-cee18eb0b6b6", + "15251939-3f9d-452c-8163-4ce9696d5b35", + "ef9b44ea-d406-4fd3-be24-8b656fb3d227" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9134, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1b0cc29e-66d7-4c45-b9c3-85325e0a912b", + "title": "PRE-TEST: Create address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create address \"before all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46ab251e-e4af-425a-b008-ae0629e6ff9d", + "parentUUID": "1b0cc29e-66d7-4c45-b9c3-85325e0a912b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create address \"after all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "98b50ce2-f651-4ab3-aa47-8c5a332767fd", + "parentUUID": "1b0cc29e-66d7-4c45-b9c3-85325e0a912b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create address should login in BO", + "timedOut": false, + "duration": 1734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d90334e2-76b9-468f-9e32-a008200806ca", + "parentUUID": "1b0cc29e-66d7-4c45-b9c3-85325e0a912b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create address should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_2_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56a5797a-c93a-454f-b8df-a1c247cd3b14", + "parentUUID": "1b0cc29e-66d7-4c45-b9c3-85325e0a912b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create address should reset all filters", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_2_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50d508d4-561a-434b-acce-b2a6a2aacc12", + "parentUUID": "1b0cc29e-66d7-4c45-b9c3-85325e0a912b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create address should go to add new address page", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_2_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "749d78ad-f728-4bb5-8114-2e1d27b8fa70", + "parentUUID": "1b0cc29e-66d7-4c45-b9c3-85325e0a912b", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create address should create address and check result", + "timedOut": false, + "duration": 2483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_2_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e38e8ad5-0ba7-4a72-9399-8abbb7c7c85a", + "parentUUID": "1b0cc29e-66d7-4c45-b9c3-85325e0a912b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d90334e2-76b9-468f-9e32-a008200806ca", + "56a5797a-c93a-454f-b8df-a1c247cd3b14", + "50d508d4-561a-434b-acce-b2a6a2aacc12", + "749d78ad-f728-4bb5-8114-2e1d27b8fa70", + "e38e8ad5-0ba7-4a72-9399-8abbb7c7c85a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11915, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fe4ebe2-138b-4f32-9ff7-c9dfd815085e", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fe7dbec0-be66-4e9e-929a-d6e3c27a5fd9", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66f2fd40-667c-45a3-b9bc-5c8e5c4dfcb5", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dee4fcb1-bb58-457a-9c52-d3d7852d5c57", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b6d537e-6041-45ec-8be7-b16d4f647f5e", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea0ae88a-e31e-46a9-9613-123a76b038d4", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_3_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe4f1ef8-ea3f-4a6d-8290-630db8f9f3e6", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_3_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d522ee16-8be2-45b5-9ce9-e9278d098e20", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1548, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_preTest_3_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b64bc11c-efc4-413d-b010-cb74fd384aba", + "parentUUID": "df5deef4-6c8a-4a2e-8bc0-ffbe1cc877a3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "66f2fd40-667c-45a3-b9bc-5c8e5c4dfcb5", + "dee4fcb1-bb58-457a-9c52-d3d7852d5c57", + "5b6d537e-6041-45ec-8be7-b16d4f647f5e", + "ea0ae88a-e31e-46a9-9613-123a76b038d4", + "fe4f1ef8-ea3f-4a6d-8290-630db8f9f3e6", + "d522ee16-8be2-45b5-9ce9-e9278d098e20", + "b64bc11c-efc4-413d-b010-cb74fd384aba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13249, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f579e89c-d078-4288-9ce7-d84a73c85c5b", + "title": "PRE-TEST: Get customer ID", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Get customer ID should login in BO", + "timedOut": false, + "duration": 1765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6283fffe-b830-4e2e-b53d-5b9656190970", + "parentUUID": "f579e89c-d078-4288-9ce7-d84a73c85c5b", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Get customer ID should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b4285ed-7028-495e-b174-d112f384445b", + "parentUUID": "f579e89c-d078-4288-9ce7-d84a73c85c5b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Get customer ID should filter list by email", + "timedOut": false, + "duration": 1131, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', newCustomer.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(newCustomer.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9945294-9526-41a9-af5c-1ddca04cf16a", + "parentUUID": "f579e89c-d078-4288-9ce7-d84a73c85c5b", + "isHook": false, + "skipped": false + }, + { + "title": "should get the customer ID", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Get customer ID should get the customer ID", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_getCustomerID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getCustomerID', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'id_customer')];\n case 2:\n customerID = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(customerID).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e5b27a6-de53-4ac0-b762-93ea79732843", + "parentUUID": "f579e89c-d078-4288-9ce7-d84a73c85c5b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6283fffe-b830-4e2e-b53d-5b9656190970", + "6b4285ed-7028-495e-b174-d112f384445b", + "c9945294-9526-41a9-af5c-1ddca04cf16a", + "2e5b27a6-de53-4ac0-b762-93ea79732843" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7945, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a02a6f51-d490-4497-9dc0-9455e61e5838", + "title": "PRE-TEST: Get the created order ID", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Get the created order ID should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4617, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a67d4ef8-2cf4-4939-a2e4-c4125cd00695", + "parentUUID": "a02a6f51-d490-4497-9dc0-9455e61e5838", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Get the created order ID should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b36c278-476a-40d7-aa82-2104819bf841", + "parentUUID": "a02a6f51-d490-4497-9dc0-9455e61e5838", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Stroman'", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Get the created order ID should filter the Orders table by 'Customer: Stroman'", + "timedOut": false, + "duration": 2362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_filterTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', newCustomer.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(newCustomer.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d330b6fc-9965-49c9-9716-447662616d4a", + "parentUUID": "a02a6f51-d490-4497-9dc0-9455e61e5838", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order ID", + "fullTitle": "BO - Orders - Create order : Select previous orders PRE-TEST: Get the created order ID should get the order ID", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_getOrderID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getOrderIDNumber(page)];\n case 2:\n orderID = _a.sent();\n (0, chai_1.expect)(orderID).to.be.at.least(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85a58f60-a905-4907-81d2-922781cb5a37", + "parentUUID": "a02a6f51-d490-4497-9dc0-9455e61e5838", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a67d4ef8-2cf4-4939-a2e4-c4125cd00695", + "9b36c278-476a-40d7-aa82-2104819bf841", + "d330b6fc-9965-49c9-9716-447662616d4a", + "85a58f60-a905-4907-81d2-922781cb5a37" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8991, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cb431df6-c3f3-40a7-ae3c-e28eab1148cc", + "title": "Go to create order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Select previous orders Go to create order page should go to create order page", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "288108a2-28d5-4ad5-b63c-3459e7b011fc", + "parentUUID": "cb431df6-c3f3-40a7-ae3c-e28eab1148cc", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer Gregorio Stroman", + "fullTitle": "BO - Orders - Create order : Select previous orders Go to create order page should choose customer Gregorio Stroman", + "timedOut": false, + "duration": 924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_chooseDefaultCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, newCustomer.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96e04451-6942-4cf3-9d41-f9e0f165a930", + "parentUUID": "cb431df6-c3f3-40a7-ae3c-e28eab1148cc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "288108a2-28d5-4ad5-b63c-3459e7b011fc", + "96e04451-6942-4cf3-9d41-f9e0f165a930" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1692, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "title": "Check orders table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders' tab", + "fullTitle": "BO - Orders - Create order : Select previous orders Check orders table should go to 'Orders' tab", + "timedOut": false, + "duration": 244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_selectOrdersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isOrdersTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectOrdersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnOrdersTab(page)];\n case 2:\n isOrdersTableVisible = _a.sent();\n (0, chai_1.expect)(isOrdersTableVisible, 'Orders table is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f19fc6e-6037-4dbd-abbe-8a7cace70be9", + "parentUUID": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is only one order", + "fullTitle": "BO - Orders - Create order : Select previous orders Check orders table should check that there is only one order", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkOrdersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var ordersNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrdersNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getOrdersNumber(page)];\n case 2:\n ordersNumber = _a.sent();\n (0, chai_1.expect)(ordersNumber, 'Orders number is not correct!').to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e522aab0-0e4c-4e12-ac87-ef0284947fc9", + "parentUUID": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order 'id'", + "fullTitle": "BO - Orders - Create order : Select previous orders Check orders table should check the order 'id'", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkIdOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIdOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextFromOrdersTable(page, 'id')];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'The \\'id\\' value is not correct!').to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd4a14a3-a320-4337-9aa4-2049565995bc", + "parentUUID": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order 'date'", + "fullTitle": "BO - Orders - Create order : Select previous orders Check orders table should check the order 'date'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkdateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.columnName, \"Order\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextFromOrdersTable(page, test.args.columnName)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, \"The '\".concat(test.args.columnName, \"' value is not correct!\")).to.contains(test.args.content);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98348508-b98d-47a8-a8e0-61baa2a7ea4a", + "parentUUID": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order 'products'", + "fullTitle": "BO - Orders - Create order : Select previous orders Check orders table should check the order 'products'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkproductsOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.columnName, \"Order\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextFromOrdersTable(page, test.args.columnName)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, \"The '\".concat(test.args.columnName, \"' value is not correct!\")).to.contains(test.args.content);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9edaed4-db4f-465a-a76e-40b182bba76c", + "parentUUID": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order 'total-paid'", + "fullTitle": "BO - Orders - Create order : Select previous orders Check orders table should check the order 'total-paid'", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checktotal-paidOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.columnName, \"Order\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextFromOrdersTable(page, test.args.columnName)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, \"The '\".concat(test.args.columnName, \"' value is not correct!\")).to.contains(test.args.content);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dba862c-7728-419f-9f68-097af08c34f1", + "parentUUID": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order 'payment-method'", + "fullTitle": "BO - Orders - Create order : Select previous orders Check orders table should check the order 'payment-method'", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkpayment-methodOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.columnName, \"Order\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextFromOrdersTable(page, test.args.columnName)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, \"The '\".concat(test.args.columnName, \"' value is not correct!\")).to.contains(test.args.content);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a7dd43e-f324-4fe0-b7f8-80962cfc2c29", + "parentUUID": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order 'status'", + "fullTitle": "BO - Orders - Create order : Select previous orders Check orders table should check the order 'status'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkstatusOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.columnName, \"Order\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getTextFromOrdersTable(page, test.args.columnName)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, \"The '\".concat(test.args.columnName, \"' value is not correct!\")).to.contains(test.args.content);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97b8aab7-7092-49e7-91fe-5edf13b6b499", + "parentUUID": "70ae0a2d-89d1-4c02-b0c1-2ace6ee2c3f9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f19fc6e-6037-4dbd-abbe-8a7cace70be9", + "e522aab0-0e4c-4e12-ac87-ef0284947fc9", + "bd4a14a3-a320-4337-9aa4-2049565995bc", + "98348508-b98d-47a8-a8e0-61baa2a7ea4a", + "b9edaed4-db4f-465a-a76e-40b182bba76c", + "1dba862c-7728-419f-9f68-097af08c34f1", + "2a7dd43e-f324-4fe0-b7f8-80962cfc2c29", + "97b8aab7-7092-49e7-91fe-5edf13b6b499" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 300, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "35018032-e118-44f8-88d4-62d1a741de07", + "title": "Check order details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Details' button", + "fullTitle": "BO - Orders - Create order : Select previous orders Check order details should click on 'Details' button", + "timedOut": false, + "duration": 414, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_clickOnDetailsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDetailsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnOrderDetailsButton(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible, 'View order Iframe is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0697a65-3f26-4eb7-ba88-b86ca8930735", + "parentUUID": "35018032-e118-44f8-88d4-62d1a741de07", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer title, name, lastname, reference", + "fullTitle": "BO - Orders - Create order : Select previous orders Check order details should check customer title, name, lastname, reference", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkCustomerInfo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerInfo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getOrderIframe(page, orderID)];\n case 2:\n orderIframe = _a.sent();\n (0, chai_1.expect)(orderIframe).to.not.eq(null);\n return [4 /*yield*/, customerBlock_1.default.getCustomerInfoBlock(orderIframe)];\n case 3:\n customerInfo = _a.sent();\n (0, chai_1.expect)(customerInfo).to.contains(newCustomer.socialTitle);\n (0, chai_1.expect)(customerInfo).to.contains(newCustomer.firstName);\n (0, chai_1.expect)(customerInfo).to.contains(newCustomer.lastName);\n (0, chai_1.expect)(customerInfo).to.contains(customerID.toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8d9655a-6bd8-4139-aa0f-a5bd06402092", + "parentUUID": "35018032-e118-44f8-88d4-62d1a741de07", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of ordered products", + "fullTitle": "BO - Orders - Create order : Select previous orders Check order details should check number of ordered products", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkNumberOfProducts0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productCount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductsNumber(orderIframe)];\n case 2:\n productCount = _a.sent();\n (0, chai_1.expect)(productCount).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffe0b940-6124-47ef-a08c-e4e3d054f36f", + "parentUUID": "35018032-e118-44f8-88d4-62d1a741de07", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - Create order : Select previous orders Check order details should check the ordered product details", + "timedOut": false, + "duration": 58, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkSimpleProductDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSimpleProductDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(orderIframe, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(\"\".concat(products_1.default.demo_1.name, \" (Size: S - Color: White)\")),\n (0, chai_1.expect)(result.reference).to.equal(\"Reference number: \".concat(products_1.default.demo_1.reference)),\n (0, chai_1.expect)(result.basePrice).to.equal(products_1.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.total).to.equal(products_1.default.demo_1.finalPrice),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3777e4d-b742-4227-923d-d66af6f5fa2f", + "parentUUID": "35018032-e118-44f8-88d4-62d1a741de07", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status number is equal to 1", + "fullTitle": "BO - Orders - Create order : Select previous orders Check order details should check that the status number is equal to 1", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkStatusNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusNumber(orderIframe)];\n case 2:\n statusNumber = _a.sent();\n (0, chai_1.expect)(statusNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af141db5-c1b5-47e4-a0d5-70a5c606ec9e", + "parentUUID": "35018032-e118-44f8-88d4-62d1a741de07", + "isHook": false, + "skipped": false + }, + { + "title": "should check the status name from the table", + "fullTitle": "BO - Orders - Create order : Select previous orders Check order details should check the status name from the table", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_checkStatusName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getTextColumnFromHistoryTable(orderIframe, 'status', 1)];\n case 2:\n statusName = _a.sent();\n (0, chai_1.expect)(statusName).to.be.equal('Awaiting bank wire payment');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa6c07b5-2faa-466c-8e68-0a43c3eacabf", + "parentUUID": "35018032-e118-44f8-88d4-62d1a741de07", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c0697a65-3f26-4eb7-ba88-b86ca8930735", + "a8d9655a-6bd8-4139-aa0f-a5bd06402092", + "ffe0b940-6124-47ef-a08c-e4e3d054f36f", + "b3777e4d-b742-4227-923d-d66af6f5fa2f", + "af141db5-c1b5-47e4-a0d5-70a5c606ec9e", + "fa6c07b5-2faa-466c-8e68-0a43c3eacabf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 527, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "37f7f151-5845-42f0-8b6e-ea27e3246f1b", + "title": "Complete the order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should close the order Iframe", + "fullTitle": "BO - Orders - Create order : Select previous orders Complete the order should close the order Iframe", + "timedOut": false, + "duration": 498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_closeOrderIframe\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeOrderIframe', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeIframe(page)];\n case 2:\n isIframeNotVisible = _a.sent();\n (0, chai_1.expect)(isIframeNotVisible, 'Order iframe still visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ebac3d6-8507-46a1-9bda-1808e10748ea", + "parentUUID": "37f7f151-5845-42f0-8b6e-ea27e3246f1b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Use' button and check that product table is visible on 'Cart' block", + "fullTitle": "BO - Orders - Create order : Select previous orders Complete the order should click on 'Use' button and check that product table is visible on 'Cart' block", + "timedOut": false, + "duration": 440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_clickOnUseButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isProductTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnUseButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnOrderUseButton(page)];\n case 2:\n isProductTableVisible = _a.sent();\n (0, chai_1.expect)(isProductTableVisible, 'Product table is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c797cc16-10b2-466c-8937-db673d0fa3ee", + "parentUUID": "37f7f151-5845-42f0-8b6e-ea27e3246f1b", + "isHook": false, + "skipped": false + }, + { + "title": "should complete the order", + "fullTitle": "BO - Orders - Create order : Select previous orders Complete the order should complete the order", + "timedOut": false, + "duration": 1776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_completeOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'completeOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setSummaryAndCreateOrder(page, paymentMethodModuleName, orderStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fbeb7513-a850-474d-babe-75f89cee47da", + "parentUUID": "37f7f151-5845-42f0-8b6e-ea27e3246f1b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6ebac3d6-8507-46a1-9bda-1808e10748ea", + "c797cc16-10b2-466c-8937-db673d0fa3ee", + "fbeb7513-a850-474d-babe-75f89cee47da" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2714, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/05_selectPreviousOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Create order : Select previous orders POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa1d2270-f3e7-492a-8bcc-a465e8647792", + "parentUUID": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Create order : Select previous orders POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "79037b60-0974-49bb-bb2b-404284ba5f51", + "parentUUID": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Select previous orders POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c75ea1bf-c742-4432-9682-ec5072d60210", + "parentUUID": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Create order : Select previous orders POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 4998, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2442e39c-5caf-4b58-8917-db4a75e28529", + "parentUUID": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Select previous orders POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e8eacd6-3590-4813-8b8e-bcfd05314925", + "parentUUID": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders - Create order : Select previous orders POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1157, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c265b4c8-bb70-40c8-b0b7-712151b80037", + "parentUUID": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders - Create order : Select previous orders POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "806e764d-6c92-4926-ade3-730805b1edfc", + "parentUUID": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders - Create order : Select previous orders POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_selectPreviousOrders_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da5748e5-db94-4bf1-bf09-24df8ba83961", + "parentUUID": "af1745bb-d560-4d62-bf4e-dbb3b31f9ab9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c75ea1bf-c742-4432-9682-ec5072d60210", + "2442e39c-5caf-4b58-8917-db4a75e28529", + "3e8eacd6-3590-4813-8b8e-bcfd05314925", + "c265b4c8-bb70-40c8-b0b7-712151b80037", + "806e764d-6c92-4926-ade3-730805b1edfc", + "da5748e5-db94-4bf1-bf09-24df8ba83961" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10270, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b6eb969e-68d3-4a6a-b43d-9b45ec7761af", + "title": "BO - Orders - Create order : Add a product to the cart", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Add a product to the cart\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart \"before all\" hook in \"BO - Orders - Create order : Add a product to the cart\"", + "timedOut": false, + "duration": 50, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f82a016-7a94-4530-a638-bd78c3444b99", + "parentUUID": "b6eb969e-68d3-4a6a-b43d-9b45ec7761af", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Add a product to the cart\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart \"after all\" hook in \"BO - Orders - Create order : Add a product to the cart\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ab8a9392-5c48-415c-9923-5c3f5c52dbb1", + "parentUUID": "b6eb969e-68d3-4a6a-b43d-9b45ec7761af", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "8dd6935b-1de9-4936-ac82-7a55c934a144", + "title": "PRE-TEST: Enable Ecotax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable Ecotax\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Enable Ecotax \"before all\" hook in \"PRE-TEST: Enable Ecotax\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfa41a45-7ea2-4185-83cf-4f123b095cdf", + "parentUUID": "8dd6935b-1de9-4936-ac82-7a55c934a144", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable Ecotax\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Enable Ecotax \"after all\" hook in \"PRE-TEST: Enable Ecotax\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "11fd819a-bd1c-4149-8032-27d082f3a8fd", + "parentUUID": "8dd6935b-1de9-4936-ac82-7a55c934a144", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Enable Ecotax should login in BO", + "timedOut": false, + "duration": 1825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61a11307-966a-4572-9150-456a410199a7", + "parentUUID": "8dd6935b-1de9-4936-ac82-7a55c934a144", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Enable Ecotax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_preTest_1_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef64884b-9118-4569-a33e-4a729b69edfa", + "parentUUID": "8dd6935b-1de9-4936-ac82-7a55c934a144", + "isHook": false, + "skipped": false + }, + { + "title": "should enable ecotax", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Enable Ecotax should enable ecotax", + "timedOut": false, + "duration": 461, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_preTest_1_enableEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.enableEcoTax(page, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6cef69a-ef4e-46df-8305-40befab873ba", + "parentUUID": "8dd6935b-1de9-4936-ac82-7a55c934a144", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "61a11307-966a-4572-9150-456a410199a7", + "ef64884b-9118-4569-a33e-4a729b69edfa", + "a6cef69a-ef4e-46df-8305-40befab873ba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7198, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "adbcab27-3f46-450e-8122-9850a6659e49", + "title": "PRE-TEST: Create currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create currency\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create currency \"before all\" hook in \"PRE-TEST: Create currency\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ca10342-42e2-48c7-b2a3-400bb42463b3", + "parentUUID": "adbcab27-3f46-450e-8122-9850a6659e49", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create currency\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create currency \"after all\" hook in \"PRE-TEST: Create currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f2109fae-511b-4a3e-9e4a-a8e61f787e29", + "parentUUID": "adbcab27-3f46-450e-8122-9850a6659e49", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create currency should login in BO", + "timedOut": false, + "duration": 1761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "654f983b-e83d-45bc-b421-4fbd839cd421", + "parentUUID": "adbcab27-3f46-450e-8122-9850a6659e49", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_preTest_2_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f03fa479-27d1-4fe2-a8cc-939a1530df92", + "parentUUID": "adbcab27-3f46-450e-8122-9850a6659e49", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create currency should go to 'Currencies' page", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_preTest_2_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44e7747f-ff3c-46e0-9d53-b5942d84e5d9", + "parentUUID": "adbcab27-3f46-450e-8122-9850a6659e49", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create currency should go to create new currency page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_preTest_2_goToAddNewCurrencyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c34d411e-9bae-4b99-b0fe-c6cb8646b8de", + "parentUUID": "adbcab27-3f46-450e-8122-9850a6659e49", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create currency should create currency", + "timedOut": false, + "duration": 6374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_preTest_2_createOfficialCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOfficialCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currencyData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "988b6b12-8ca5-4eaa-8a4e-07be52701f48", + "parentUUID": "adbcab27-3f46-450e-8122-9850a6659e49", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "654f983b-e83d-45bc-b421-4fbd839cd421", + "f03fa479-27d1-4fe2-a8cc-939a1530df92", + "44e7747f-ff3c-46e0-9d53-b5942d84e5d9", + "c34d411e-9bae-4b99-b0fe-c6cb8646b8de", + "988b6b12-8ca5-4eaa-8a4e-07be52701f48" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14748, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "title": "PRE-TEST: Create 6 products in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should login in BO", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "843dadcd-1270-4c48-a901-9c07f5da3b53", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4910052a-92d1-45c8-b452-bf87ae33ca01", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_clickOnNewProductButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd80f02c-5d24-45cc-a3a1-fb8bf7e6a8f7", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'pack product'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should choose 'pack product'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_chooseStandardProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67052edb-d6bb-451e-895b-915b5abe87a3", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should go to new product page", + "timedOut": false, + "duration": 52, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToNewProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1e34720-8bed-464d-802a-373e03a06b9f", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Pack of products TOTEST'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO create product 'Pack of products TOTEST'", + "timedOut": false, + "duration": 7915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_createProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "843efe01-cf6f-4871-9df8-431b963f1d1a", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should go to new product page", + "timedOut": false, + "duration": 275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToNewProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "842ab744-02eb-4cae-8296-0e5f241337fb", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should choose 'standard product'", + "timedOut": false, + "duration": 2404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_chooseStandardProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6bc4e6a-0823-4a1e-abab-23dcf13a48d8", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Out of stock allowed TOTEST'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO create product 'Out of stock allowed TOTEST'", + "timedOut": false, + "duration": 3941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_createProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6075ba42-38f3-4fa3-8364-8606ceba33c2", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should go to new product page", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToNewProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dca0ee7-fd22-40b7-9022-75f67905ba24", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should choose 'standard product'", + "timedOut": false, + "duration": 2525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_chooseStandardProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02219aba-4105-491e-b6cf-8fd9922739c6", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Out of stock not allowed TOTEST'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO create product 'Out of stock not allowed TOTEST'", + "timedOut": false, + "duration": 4016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_createProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23b9880d-85b4-4f16-9ea4-02ea49451c86", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should go to new product page", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToNewProductPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d352342d-9cd8-4045-b4e6-076a0e4ddbbe", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should choose 'standard product'", + "timedOut": false, + "duration": 2447, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_chooseStandardProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7eedee37-7d4b-465c-8905-d878e9e5ec65", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Product with specific price TOTEST'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO create product 'Product with specific price TOTEST'", + "timedOut": false, + "duration": 5678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_createProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "022df7f5-3d7b-4d25-9bec-9df366121003", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should go to new product page", + "timedOut": false, + "duration": 642, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToNewProductPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21ede923-17b8-4058-bb3e-1fd394369627", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should choose 'standard product'", + "timedOut": false, + "duration": 2416, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_chooseStandardProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19046a6d-083b-4884-b5e6-232cdc691fb0", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Product with ecotax TOTEST'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO create product 'Product with ecotax TOTEST'", + "timedOut": false, + "duration": 5239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_createProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c341ecd5-a31d-4c20-9c7d-e3cd1478f011", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should go to new product page", + "timedOut": false, + "duration": 379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToNewProductPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c76448c-7fc6-4759-8144-472949d8d987", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO should choose 'standard product'", + "timedOut": false, + "duration": 2467, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_chooseStandardProduct5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseStandardProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc2503a6-b9f6-4417-bb0f-4ef193119dfc", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Product with cart rule TOTEST'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create 6 products in BO create product 'Product with cart rule TOTEST'", + "timedOut": false, + "duration": 3616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_createProduct5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d7abe08-6d60-4e36-a75d-920834fedf3c", + "parentUUID": "0b11b477-e62c-43ec-929b-dbdd6bd93d0b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "843dadcd-1270-4c48-a901-9c07f5da3b53", + "4910052a-92d1-45c8-b452-bf87ae33ca01", + "bd80f02c-5d24-45cc-a3a1-fb8bf7e6a8f7", + "67052edb-d6bb-451e-895b-915b5abe87a3", + "c1e34720-8bed-464d-802a-373e03a06b9f", + "843efe01-cf6f-4871-9df8-431b963f1d1a", + "842ab744-02eb-4cae-8296-0e5f241337fb", + "b6bc4e6a-0823-4a1e-abab-23dcf13a48d8", + "6075ba42-38f3-4fa3-8364-8606ceba33c2", + "9dca0ee7-fd22-40b7-9022-75f67905ba24", + "02219aba-4105-491e-b6cf-8fd9922739c6", + "23b9880d-85b4-4f16-9ea4-02ea49451c86", + "d352342d-9cd8-4045-b4e6-076a0e4ddbbe", + "7eedee37-7d4b-465c-8905-d878e9e5ec65", + "022df7f5-3d7b-4d25-9bec-9df366121003", + "21ede923-17b8-4058-bb3e-1fd394369627", + "19046a6d-083b-4884-b5e6-232cdc691fb0", + "c341ecd5-a31d-4c20-9c7d-e3cd1478f011", + "5c76448c-7fc6-4759-8144-472949d8d987", + "cc2503a6-b9f6-4417-bb0f-4ef193119dfc", + "1d7abe08-6d60-4e36-a75d-920834fedf3c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 52801, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ce67b302-66a4-4b55-8fe5-8de8bb359973", + "title": "PRE-TEST: Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create cart rule \"before all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf44bd8c-c041-434e-9efd-b42b955d8f02", + "parentUUID": "ce67b302-66a4-4b55-8fe5-8de8bb359973", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create cart rule \"after all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bca44905-4efa-4d16-b63c-4976889796ee", + "parentUUID": "ce67b302-66a4-4b55-8fe5-8de8bb359973", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create cart rule should login in BO", + "timedOut": false, + "duration": 1855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40db57e7-d9ff-456e-a4eb-a35feb663570", + "parentUUID": "ce67b302-66a4-4b55-8fe5-8de8bb359973", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "841eb7b6-13c0-4fd3-9506-d7d73af0652d", + "parentUUID": "ce67b302-66a4-4b55-8fe5-8de8bb359973", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89546a30-1216-4d33-babe-20c981a8dc4b", + "parentUUID": "ce67b302-66a4-4b55-8fe5-8de8bb359973", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73500e61-1abc-4936-9c25-44a4d779ec1f", + "parentUUID": "ce67b302-66a4-4b55-8fe5-8de8bb359973", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Create cart rule should create new cart rule", + "timedOut": false, + "duration": 5375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40e4fed3-63e7-4fb1-9b4c-23a97f969e22", + "parentUUID": "ce67b302-66a4-4b55-8fe5-8de8bb359973", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "40db57e7-d9ff-456e-a4eb-a35feb663570", + "841eb7b6-13c0-4fd3-9506-d7d73af0652d", + "89546a30-1216-4d33-babe-20c981a8dc4b", + "73500e61-1abc-4936-9c25-44a4d779ec1f", + "40e4fed3-63e7-4fb1-9b4c-23a97f969e22" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13756, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "96be47d1-ec89-4a07-9054-22463e18578a", + "title": "PRE-TEST: Delete the non-ordered shopping carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Delete the non-ordered shopping carts\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Delete the non-ordered shopping carts \"before all\" hook in \"PRE-TEST: Delete the non-ordered shopping carts\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e978b95-a7e3-4c0f-ba34-8a076a3babde", + "parentUUID": "96be47d1-ec89-4a07-9054-22463e18578a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Delete the non-ordered shopping carts\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Delete the non-ordered shopping carts \"after all\" hook in \"PRE-TEST: Delete the non-ordered shopping carts\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cd1be2d2-3a2a-45de-85c1-6ca8d2a89312", + "parentUUID": "96be47d1-ec89-4a07-9054-22463e18578a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Delete the non-ordered shopping carts should login in BO", + "timedOut": false, + "duration": 1802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4403460d-1fcd-439b-aa7d-3b027d1d3945", + "parentUUID": "96be47d1-ec89-4a07-9054-22463e18578a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Delete the non-ordered shopping carts should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToShoppingCartsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "853d52ad-89c6-436a-88ee-25bfcf15323b", + "parentUUID": "96be47d1-ec89-4a07-9054-22463e18578a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of shopping carts", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Delete the non-ordered shopping carts should reset all filters and get number of shopping carts", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_resetFiltersFirst1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCarts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2adeb74-a31f-4dde-a3d1-655dab7f4e1c", + "parentUUID": "96be47d1-ec89-4a07-9054-22463e18578a", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the non ordered shopping carts", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Delete the non-ordered shopping carts should search for the non ordered shopping carts", + "timedOut": false, + "duration": 371, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_searchNonOrderedShoppingCarts1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonOrderedShoppingCarts1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'status', 'Non ordered')];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfNonOrderedShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfNonOrderedShoppingCarts).to.be.at.most(numberOfShoppingCarts);\n numberOfShoppingCarts -= numberOfNonOrderedShoppingCarts;\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfNonOrderedShoppingCarts)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, 'status')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('Non ordered');\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23a43e0f-1d0f-4d76-9770-943249f4d3aa", + "parentUUID": "96be47d1-ec89-4a07-9054-22463e18578a", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the non ordered shopping carts if exist", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Delete the non-ordered shopping carts should delete the non ordered shopping carts if exist", + "timedOut": false, + "duration": 1161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_deleteNonOrderedShoppingCartsIfExists1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteNonOrderedShoppingCartsIfExists1', baseContext)];\n case 1:\n _a.sent();\n if (!(numberOfNonOrderedShoppingCarts > 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, shoppingCarts_1.default.bulkDeleteShoppingCarts(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(shoppingCarts_1.default.successfulMultiDeleteMessage);\n _a.label = 3;\n case 3: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "329abfc5-dbc6-4775-bb0f-44310735bd74", + "parentUUID": "96be47d1-ec89-4a07-9054-22463e18578a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Delete the non-ordered shopping carts should reset all filters", + "timedOut": false, + "duration": 2952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_resetAfterDeleteNonOrderedCarts1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteNonOrderedCarts1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29af7d2f-a0dd-42e3-8585-1f47812ce376", + "parentUUID": "96be47d1-ec89-4a07-9054-22463e18578a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4403460d-1fcd-439b-aa7d-3b027d1d3945", + "853d52ad-89c6-436a-88ee-25bfcf15323b", + "c2adeb74-a31f-4dde-a3d1-655dab7f4e1c", + "23a43e0f-1d0f-4d76-9770-943249f4d3aa", + "329abfc5-dbc6-4775-bb0f-44310735bd74", + "29af7d2f-a0dd-42e3-8585-1f47812ce376" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10008, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "title": "PRE-TEST: Get the available stock of the ordered demo products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Get the available stock of the ordered demo products should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7098baa-d37f-47f1-b183-886b692c7af9", + "parentUUID": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the Available stock of the simple product 'demo_11'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Get the available stock of the ordered demo products should get the Available stock of the simple product 'demo_11'", + "timedOut": false, + "duration": 167, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_getAvailableStockOfDemo11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getAvailableStockOfDemo11', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, products_2.default.demo_11.name)];\n case 2:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 3:\n availableStockSimpleProduct = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(availableStockSimpleProduct).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cadd71f3-9940-4d00-8537-8d280bff8842", + "parentUUID": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Get the available stock of the ordered demo products should reset all filters", + "timedOut": false, + "duration": 652, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_resetFilter1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c88896a-a619-40ed-ab52-35bf5514261b", + "parentUUID": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the Available stock of the product with combinations 'demo_1'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Get the available stock of the ordered demo products should get the Available stock of the product with combinations 'demo_1'", + "timedOut": false, + "duration": 175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_getAvailableStockDemo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getAvailableStockDemo1', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, products_2.default.demo_1.name)];\n case 2:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 3:\n availableStockCombinationProduct = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(availableStockCombinationProduct).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8815c700-e9db-4b4e-90a1-2f634fcc140d", + "parentUUID": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Get the available stock of the ordered demo products should reset all filters", + "timedOut": false, + "duration": 582, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_resetFilter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29c076b2-d32e-4b1d-bada-dd0a904c67e2", + "parentUUID": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the Available stock of the virtual product 'demo_18'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Get the available stock of the ordered demo products should get the Available stock of the virtual product 'demo_18'", + "timedOut": false, + "duration": 171, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_getAvailableStockDemo18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getAvailableStockDemo18', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, products_2.default.demo_18.name)];\n case 2:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 3:\n availableStockVirtualProduct = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(availableStockVirtualProduct).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11b7118e-c27f-4296-8513-38dc79b5c3f8", + "parentUUID": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Get the available stock of the ordered demo products should reset all filters", + "timedOut": false, + "duration": 571, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_resetFilter3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.resetFilter(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6823ffb3-529b-4461-9d5e-95a0e84426df", + "parentUUID": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "isHook": false, + "skipped": false + }, + { + "title": "should get the Available stock of the customized product 'demo_14'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart PRE-TEST: Get the available stock of the ordered demo products should get the Available stock of the customized product 'demo_14'", + "timedOut": false, + "duration": 154, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_getAvailableStockDemo14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getAvailableStockDemo14', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, products_2.default.demo_14.name)];\n case 2:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, stocks_1.default.getTextColumnFromTableStocks(page, 1, 'available')];\n case 3:\n availableStockCustomizedProduct = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(availableStockCustomizedProduct).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "738c5b94-d8d6-4351-94bd-6a3d24ddc191", + "parentUUID": "3bd4004c-8592-41a6-a2c6-f1b108c2522f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f7098baa-d37f-47f1-b183-886b692c7af9", + "cadd71f3-9940-4d00-8537-8d280bff8842", + "1c88896a-a619-40ed-ab52-35bf5514261b", + "8815c700-e9db-4b4e-90a1-2f634fcc140d", + "29c076b2-d32e-4b1d-bada-dd0a904c67e2", + "11b7118e-c27f-4296-8513-38dc79b5c3f8", + "6823ffb3-529b-4461-9d5e-95a0e84426df", + "738c5b94-d8d6-4351-94bd-6a3d24ddc191" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6660, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5f434ce3-e0ee-4190-8e65-2274a2e01a20", + "title": "Go to create order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Go to create order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4662, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "784a9510-7035-4c39-a1f4-e4922ef46e28", + "parentUUID": "5f434ce3-e0ee-4190-8e65-2274a2e01a20", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Go to create order page should go to create order page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11fd90a0-f119-46fb-b54f-3a97aab4a631", + "parentUUID": "5f434ce3-e0ee-4190-8e65-2274a2e01a20", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Go to create order page should choose customer John DOE", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_chooseDefaultCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46e0e587-f022-477a-b67e-a79a13708bfd", + "parentUUID": "5f434ce3-e0ee-4190-8e65-2274a2e01a20", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "784a9510-7035-4c39-a1f4-e4922ef46e28", + "11fd90a0-f119-46fb-b54f-3a97aab4a631", + "46e0e587-f022-477a-b67e-a79a13708bfd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6367, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "title": "Add some products to cart and check details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for a non-existent product and check the error message", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should search for a non-existent product and check the error message", + "timedOut": false, + "duration": 1019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_searchNonExistentProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonExistentProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchProductAndGetAlert(page, 'non existent')];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.equal(add_2.default.noProductFoundText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbdc0807-b4fc-4ba3-a004-239c626a61ae", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart 'Standard simple product' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart 'Standard simple product' and check details", + "timedOut": false, + "duration": 2571, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addStandardSimpleProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addStandardSimpleProduct', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_2.default.demo_11.name, \" - \\u20AC\").concat(products_2.default.demo_11.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, products_2.default.demo_11, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_2.default.demo_11.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(products_2.default.demo_11.name),\n (0, chai_1.expect)(result.reference).to.equal(products_2.default.demo_11.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(availableStockSimpleProduct),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_11.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81dbbf31-ec69-4c1e-9a44-0fcb5b4b5498", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart the same 'Standard simple product' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart the same 'Standard simple product' and check details", + "timedOut": false, + "duration": 1696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addStandardSimpleProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addStandardSimpleProduct2', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_2.default.demo_11.name, \" - \\u20AC\").concat(products_2.default.demo_11.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, products_2.default.demo_11, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_2.default.demo_11.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(products_2.default.demo_11.name),\n (0, chai_1.expect)(result.reference).to.equal(products_2.default.demo_11.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(availableStockSimpleProduct),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_11.price * 2),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d30fe72-adb3-4820-a1c9-e4e5928f3b3b", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart 'Standard product with combinations' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart 'Standard product with combinations' and check details", + "timedOut": false, + "duration": 2067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addStandardCombinationsProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addStandardCombinationsProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.addProductToCart(page, products_2.default.demo_1, products_2.default.demo_1.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_2.default.demo_1.price, products_2.default.demo_1.specificPrice.discount)];\n case 3:\n discountValue = _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 2)];\n case 4:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_2.default.demo_1.coverImage),\n (0, chai_1.expect)(result.description).to.equal(\"\".concat(products_2.default.demo_1.name, \" S - White\")),\n (0, chai_1.expect)(result.reference).to.equal(products_2.default.demo_1.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(availableStockCombinationProduct),\n (0, chai_1.expect)(result.price).to.equal(parseFloat((products_2.default.demo_1.price - discountValue).toFixed(2))),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e72b7d6-e76f-4a35-ba29-6a26939da250", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart 'Virtual product' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart 'Virtual product' and check details", + "timedOut": false, + "duration": 2070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_2.default.demo_18.name, \" - \\u20AC\").concat(products_2.default.demo_18.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, products_2.default.demo_18, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 3)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_2.default.demo_18.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(products_2.default.demo_18.name),\n (0, chai_1.expect)(result.reference).to.equal(products_2.default.demo_18.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(availableStockVirtualProduct),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_18.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a72b827-3088-4c7b-bae1-b3ed60086a4d", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart 'Pack of products( min quantity = 2)' and check error message", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart 'Pack of products( min quantity = 2)' and check error message", + "timedOut": false, + "duration": 696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addPackOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPackOfProducts', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(packOfProducts.name, \" - \\u20AC\").concat(packOfProducts.price.toFixed(2));\n return [4 /*yield*/, add_2.default.AddProductToCartAndGetAlert(page, packOfProducts.name, productToSelect)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.equal('You must add a minimum quantity of 2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e7828dc-3214-460b-a1a2-eacde44c9dad", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should increase the quantity of 'Pack of products' and add it to the cart", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should increase the quantity of 'Pack of products' and add it to the cart", + "timedOut": false, + "duration": 1683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_increaseQuantityPackOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'increaseQuantityPackOfProducts', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(packOfProducts.name, \" - \\u20AC\").concat(packOfProducts.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, packOfProducts, productToSelect, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 4)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains('en-default-small_default.jpg'),\n (0, chai_1.expect)(result.description).to.equal(packOfProducts.name),\n (0, chai_1.expect)(result.reference).to.equal(packOfProducts.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(packOfProducts.quantity),\n (0, chai_1.expect)(result.price).to.equal(packOfProducts.price * 2),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b09a0db-4771-42a7-91f2-93d1896eba22", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart 'Customized product' and check error message", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart 'Customized product' and check error message", + "timedOut": false, + "duration": 597, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_searchCustomizedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCustomizedProduct', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_2.default.demo_14.name, \" - \\u20AC\").concat(products_2.default.demo_14.priceTaxExcluded.toFixed(2));\n return [4 /*yield*/, add_2.default.AddProductToCartAndGetAlert(page, products_2.default.demo_14.name, productToSelect)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.equal('Please fill in all the required fields.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb111d61-ccd5-4abd-aba6-62b9f41057d5", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add customized text to 'Customized product' and add it to the cart", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add customized text to 'Customized product' and add it to the cart", + "timedOut": false, + "duration": 720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addCustomizedValueAndAddToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCustomizedValueAndAddToCart', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(customizedProduct.name, \" - \\u20AC\").concat(customizedProduct.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, customizedProduct, productToSelect, 1, customizedValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 5)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(customizedProduct.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(\"\".concat(customizedProduct.name, \" Type your text here : \").concat(customizedValue)),\n (0, chai_1.expect)(result.reference).to.equal(customizedProduct.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(availableStockCustomizedProduct),\n (0, chai_1.expect)(result.price).to.equal(customizedProduct.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34ce2701-a836-41df-bbb7-d5ac0d10b10e", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart product 'Out of stock allowed' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart product 'Out of stock allowed' and check details", + "timedOut": false, + "duration": 2067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addToCartProductOutOfStockAllowed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addToCartProductOutOfStockAllowed', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(productOutOfStockAllowed.name, \" - \\u20AC\").concat(productOutOfStockAllowed.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, productOutOfStockAllowed, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 6)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains('en-default-small_default.jpg'),\n (0, chai_1.expect)(result.description).to.equal(productOutOfStockAllowed.name),\n (0, chai_1.expect)(result.reference).to.equal(productOutOfStockAllowed.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(productOutOfStockAllowed.quantity),\n (0, chai_1.expect)(result.price).to.equal(productOutOfStockAllowed.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76fc8234-e817-4488-a799-f933607192cd", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart product 'Out of stock not allowed' and check error message", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart product 'Out of stock not allowed' and check error message", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addToCartProductOutOfStockNotAllowed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addToCartProductOutOfStockNotAllowed', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(productOutOfStockNotAllowed.name, \" - \\u20AC\").concat(productOutOfStockNotAllowed.price.toFixed(2));\n return [4 /*yield*/, add_2.default.AddProductToCartAndGetAlert(page, productOutOfStockNotAllowed.name, productToSelect)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.equal('There are not enough products in stock.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "632c94b3-69a1-4fa5-b532-b297d327a071", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart product 'With specific price' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart product 'With specific price' and check details", + "timedOut": false, + "duration": 2079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addToCartProductWithSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addToCartProductWithSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(productWithSpecificPrice.name, \" - \\u20AC\").concat(productWithSpecificPrice.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, productWithSpecificPrice, productToSelect, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 7)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains('en-default-small_default.jpg'),\n (0, chai_1.expect)(result.description).to.equal(productWithSpecificPrice.name),\n (0, chai_1.expect)(result.reference).to.equal(productWithSpecificPrice.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(productWithSpecificPrice.quantity),\n (0, chai_1.expect)(result.price).to.equal(productWithSpecificPrice.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cdd636a-e882-4a8e-8a3e-20512cba2b0b", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart product 'With ecotax' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart product 'With ecotax' and check details", + "timedOut": false, + "duration": 2179, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addToCartProductWithEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addToCartProductWithEcoTax', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(productWithEcoTax.name, \" - \\u20AC\").concat(productWithEcoTax.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, productWithEcoTax, productToSelect, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 8)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains('en-default-small_default.jpg'),\n (0, chai_1.expect)(result.description).to.equal(productWithEcoTax.name),\n (0, chai_1.expect)(result.reference).to.equal(productWithEcoTax.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(productWithEcoTax.quantity),\n (0, chai_1.expect)(result.price).to.equal(productWithEcoTax.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6503b7d7-e831-49d3-883f-717803f0152f", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart product 'With cart rule' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should add to cart product 'With cart rule' and check details", + "timedOut": false, + "duration": 2123, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_addToCartProductWithCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addToCartProductWithCartRule', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(productWithCartRule.name, \" - \\u20AC\").concat(productWithCartRule.price.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, productWithCartRule, productToSelect, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 9)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains('en-default-small_default.jpg'),\n (0, chai_1.expect)(result.description).to.equal(productWithCartRule.name),\n (0, chai_1.expect)(result.reference).to.equal(productWithCartRule.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(productWithCartRule.quantity),\n (0, chai_1.expect)(result.price).to.equal(productWithCartRule.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "073f706c-9f76-433e-bdea-27a403883eb7", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift product", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should check the gift product", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_checkGiftProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGiftProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductGiftDetailsFromTable(page, 10)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_2.default.demo_13.coverImage),\n (0, chai_1.expect)(result.description).to.equal(products_2.default.demo_13.name),\n (0, chai_1.expect)(result.reference).to.equal(products_2.default.demo_13.reference),\n (0, chai_1.expect)(result.basePrice).to.equal('Gift'),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.price).to.equal('Gift'),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "408e74e5-b905-4dc3-b53b-321e5e1c8738", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should increase the quantity of the product 'With cart rule' and check details", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should increase the quantity of the product 'With cart rule' and check details", + "timedOut": false, + "duration": 2121, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_increaseQuantityOfProductWithCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'increaseQuantityOfProductWithCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.addProductQuantity(page, 2, 9)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 9)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains('en-default-small_default.jpg'),\n (0, chai_1.expect)(result.description).to.equal(productWithCartRule.name),\n (0, chai_1.expect)(result.reference).to.equal(productWithCartRule.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(productWithCartRule.quantity),\n (0, chai_1.expect)(result.price).to.equal(productWithCartRule.price * 2),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18c38ec9-700e-4964-866e-c2555ccabc3a", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the product 'With cart rule'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should remove the product 'With cart rule'", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_removeProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isProductNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.removeProduct(page, 9)];\n case 2:\n isProductNotVisible = _a.sent();\n (0, chai_1.expect)(isProductNotVisible, 'Product is still visible in the cart!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2607e107-2512-4a2d-8752-3ee93acc0b18", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the gift is removed from the cart", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should check that the gift is removed from the cart", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_checkThatTheGiftIsRemoved\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isGiftNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatTheGiftIsRemoved', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.isProductNotVisibleInCart(page, 10)];\n case 2:\n isGiftNotVisible = _a.sent();\n (0, chai_1.expect)(isGiftNotVisible, 'The gift is still visible in the cart!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d519589-4859-4e7e-ba30-96b122110a4b", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should select another currency and check that the price is changed", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should select another currency and check that the price is changed", + "timedOut": false, + "duration": 2060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_selectAnotherCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectAnotherCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.selectAnotherCurrency(page, 'Moroccan Dirham (MAD)')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 8)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains('en-default-small_default.jpg'),\n (0, chai_1.expect)(result.description).to.equal(productWithEcoTax.name),\n (0, chai_1.expect)(result.reference).to.equal(productWithEcoTax.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.quantityMax).to.equal(productWithEcoTax.quantity),\n (0, chai_1.expect)(result.price).to.not.equal(productWithEcoTax.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd07fb13-bc4e-4fbb-aedf-cf518947792c", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + }, + { + "title": "should select another language and check that the language is changed", + "fullTitle": "BO - Orders - Create order : Add a product to the cart Add some products to cart and check details should select another language and check that the language is changed", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_selectAnotherLanguage\"\n}", + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectAnotherLanguage', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, add_2.default.selectAnotherLanguage(page, 'Français (French)')];\n case 2:\n _b.sent();\n return [4 /*yield*/, add_2.default.waitForVisibleProductImage(page, 3, (_a = products_2.default.demo_18.thumbImageFR) !== null && _a !== void 0 ? _a : '')];\n case 3:\n _b.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page, 3)];\n case 4:\n result = _b.sent();\n (0, chai_1.expect)(result.description).to.contains(products_2.default.demo_18.nameFR);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94375f1d-ebe5-4579-ac98-3420fef99067", + "parentUUID": "07b07aa2-562e-4035-8f8c-8eb4662d31f2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cbdc0807-b4fc-4ba3-a004-239c626a61ae", + "81dbbf31-ec69-4c1e-9a44-0fcb5b4b5498", + "7d30fe72-adb3-4820-a1c9-e4e5928f3b3b", + "0e72b7d6-e76f-4a35-ba29-6a26939da250", + "3a72b827-3088-4c7b-bae1-b3ed60086a4d", + "1e7828dc-3214-460b-a1a2-eacde44c9dad", + "3b09a0db-4771-42a7-91f2-93d1896eba22", + "cb111d61-ccd5-4abd-aba6-62b9f41057d5", + "34ce2701-a836-41df-bbb7-d5ac0d10b10e", + "76fc8234-e817-4488-a799-f933607192cd", + "632c94b3-69a1-4fa5-b532-b297d327a071", + "7cdd636a-e882-4a8e-8a3e-20512cba2b0b", + "6503b7d7-e831-49d3-883f-717803f0152f", + "073f706c-9f76-433e-bdea-27a403883eb7", + "408e74e5-b905-4dc3-b53b-321e5e1c8738", + "18c38ec9-700e-4964-866e-c2555ccabc3a", + "2607e107-2512-4a2d-8752-3ee93acc0b18", + "6d519589-4859-4e7e-ba30-96b122110a4b", + "cd07fb13-bc4e-4fbb-aedf-cf518947792c", + "94375f1d-ebe5-4579-ac98-3420fef99067" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27672, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "title": "POST-TEST: Bulk delete created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products \"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b43cdf7-cb9b-4383-870d-e707dc321194", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products \"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bae1c9ac-a130-4a15-b887-a95cd54a20ab", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should login in BO", + "timedOut": false, + "duration": 1780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73d337fc-3c58-4955-a46b-ffbf7f206b15", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_1_goToProductsPageToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ca6b79d-68a3-4d2a-89f5-7d0b356a4b07", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_1_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30f8b456-d046-4b80-8d12-ce34a7f271a5", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Name' and check result", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should filter list by 'Name' and check result", + "timedOut": false, + "duration": 1309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_1_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productName, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fa199d3-71b0-40ce-b8e7-9d0e9a2c6466", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + }, + { + "title": "should select the products", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should select the products", + "timedOut": false, + "duration": 40, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_1_selectProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ca72c35-dbfe-4403-aef2-c2d18065aa1a", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should click on bulk actions button", + "timedOut": false, + "duration": 306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_1_clickOnBulkActionsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBulkActionsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed581639-9003-45be-92a6-13b0edb81c36", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete products", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should bulk delete products", + "timedOut": false, + "duration": 597, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_1_bulkDeleteProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" / \").concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54ab52ea-7f5d-4914-ba96-7283ff8fddd5", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should close progress modal", + "timedOut": false, + "duration": 372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_1_closeDeleteProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeDeleteProgressModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'delete')];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dc4f59d-d531-4281-a5e3-7ece0e6a8512", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 2929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_1_checkNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductAfterBulkActions;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductAfterBulkActions = _a.sent();\n (0, chai_1.expect)(numberOfProductAfterBulkActions).to.be.equal(numberOfProducts - numberOfProductsAfterFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4ce13f5-2e59-4ed2-866d-9b9429830856", + "parentUUID": "7a40d996-50f5-4cbe-920f-1d69e06e5f95", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "73d337fc-3c58-4955-a46b-ffbf7f206b15", + "6ca6b79d-68a3-4d2a-89f5-7d0b356a4b07", + "30f8b456-d046-4b80-8d12-ce34a7f271a5", + "3fa199d3-71b0-40ce-b8e7-9d0e9a2c6466", + "6ca72c35-dbfe-4403-aef2-c2d18065aa1a", + "ed581639-9003-45be-92a6-13b0edb81c36", + "54ab52ea-7f5d-4914-ba96-7283ff8fddd5", + "1dc4f59d-d531-4281-a5e3-7ece0e6a8512", + "e4ce13f5-2e59-4ed2-866d-9b9429830856" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11281, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "520e1fe1-6eca-4ccb-8701-7910f3298a7b", + "title": "POST-TEST: Disable Ecotax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable Ecotax\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Disable Ecotax \"before all\" hook in \"POST-TEST: Disable Ecotax\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53f1c1ba-db0f-416c-b838-3c86bdc42da2", + "parentUUID": "520e1fe1-6eca-4ccb-8701-7910f3298a7b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable Ecotax\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Disable Ecotax \"after all\" hook in \"POST-TEST: Disable Ecotax\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "75d20fe9-e38d-4f2c-85e3-3da77bda3b1f", + "parentUUID": "520e1fe1-6eca-4ccb-8701-7910f3298a7b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Disable Ecotax should login in BO", + "timedOut": false, + "duration": 1782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a04476f-c066-4432-87a8-5869fabb917d", + "parentUUID": "520e1fe1-6eca-4ccb-8701-7910f3298a7b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Disable Ecotax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_2_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cc81fde-006c-4c9a-af63-42e8b24fb9b4", + "parentUUID": "520e1fe1-6eca-4ccb-8701-7910f3298a7b", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Ecotax", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Disable Ecotax should disable Ecotax", + "timedOut": false, + "duration": 449, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_2_disableEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.enableEcoTax(page, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a46e47a-9c6d-45c1-a009-50970ce8f7ef", + "parentUUID": "520e1fe1-6eca-4ccb-8701-7910f3298a7b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0a04476f-c066-4432-87a8-5869fabb917d", + "4cc81fde-006c-4c9a-af63-42e8b24fb9b4", + "0a46e47a-9c6d-45c1-a009-50970ce8f7ef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7139, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "59d63f9e-fda4-4ccf-b702-0d2ec72d956b", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecd5ac70-7a89-4dff-9186-16204339361b", + "parentUUID": "59d63f9e-fda4-4ccf-b702-0d2ec72d956b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a4449b47-d1f2-428b-8ce6-eb59b76c4d72", + "parentUUID": "59d63f9e-fda4-4ccf-b702-0d2ec72d956b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91af674e-9287-4ada-82be-cce6c64cdded", + "parentUUID": "59d63f9e-fda4-4ccf-b702-0d2ec72d956b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_3_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "592273e0-a696-479f-bf43-9f078cc10cc0", + "parentUUID": "59d63f9e-fda4-4ccf-b702-0d2ec72d956b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_3_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e623ab76-09af-480d-8e47-9a41cd607f1d", + "parentUUID": "59d63f9e-fda4-4ccf-b702-0d2ec72d956b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'MAD'", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete currency should filter by iso code of currency 'MAD'", + "timedOut": false, + "duration": 352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_3_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fbf4ca9-886d-4bed-bb1c-4b176dfabe08", + "parentUUID": "59d63f9e-fda4-4ccf-b702-0d2ec72d956b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_3_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81dedaaa-f47c-4fda-933e-9370659b16cd", + "parentUUID": "59d63f9e-fda4-4ccf-b702-0d2ec72d956b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "91af674e-9287-4ada-82be-cce6c64cdded", + "592273e0-a696-479f-bf43-9f078cc10cc0", + "e623ab76-09af-480d-8e47-9a41cd607f1d", + "1fbf4ca9-886d-4bed-bb1c-4b176dfabe08", + "81dedaaa-f47c-4fda-933e-9370659b16cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9272, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1b6a8cca-3a0d-4bfe-8694-783d095da894", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/06_addProductToTheCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d89d65b5-19eb-4390-864f-8a7034f62498", + "parentUUID": "1b6a8cca-3a0d-4bfe-8694-783d095da894", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a4b8d071-6511-403e-bb26-2744b4621841", + "parentUUID": "1b6a8cca-3a0d-4bfe-8694-783d095da894", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9c59c5f-19a2-4810-9d4a-804960c82445", + "parentUUID": "1b6a8cca-3a0d-4bfe-8694-783d095da894", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3629, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_4_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bacb8d4-adab-49ba-b2ec-c9cbe84597b3", + "parentUUID": "1b6a8cca-3a0d-4bfe-8694-783d095da894", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_4_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2936850c-78fc-47f7-8170-47ce76f0a80d", + "parentUUID": "1b6a8cca-3a0d-4bfe-8694-783d095da894", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_4_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "557f96f3-73c9-4556-8919-5cffc8f880fd", + "parentUUID": "1b6a8cca-3a0d-4bfe-8694-783d095da894", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Add a product to the cart POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_addProductToTheCart_postTest_4_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d51216c-6edb-4699-8412-adc9dec60513", + "parentUUID": "1b6a8cca-3a0d-4bfe-8694-783d095da894", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d9c59c5f-19a2-4810-9d4a-804960c82445", + "2bacb8d4-adab-49ba-b2ec-c9cbe84597b3", + "2936850c-78fc-47f7-8170-47ce76f0a80d", + "557f96f3-73c9-4556-8919-5cffc8f880fd", + "7d51216c-6edb-4699-8412-adc9dec60513" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11361, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3169b2b3-0f48-4aa9-be20-7b1da0cdbb66", + "title": "BO - Orders - Create order : Search, add and remove voucher", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Search, add and remove voucher\"", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher \"before all\" hook in \"BO - Orders - Create order : Search, add and remove voucher\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61430682-b3b6-491c-aa67-abebafaacf96", + "parentUUID": "3169b2b3-0f48-4aa9-be20-7b1da0cdbb66", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Search, add and remove voucher\"", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher \"after all\" hook in \"BO - Orders - Create order : Search, add and remove voucher\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "49402c51-8c23-4569-941d-35f6cd71e575", + "parentUUID": "3169b2b3-0f48-4aa9-be20-7b1da0cdbb66", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4d37eb38-d1bf-459b-b479-d6832304073c", + "title": "PRE-TEST: Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule \"before all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1f75fdb-3cba-4832-bea2-701d44d2a23b", + "parentUUID": "4d37eb38-d1bf-459b-b479-d6832304073c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule \"after all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "edfd06ae-7c0d-42e1-b826-043f90a62b5c", + "parentUUID": "4d37eb38-d1bf-459b-b479-d6832304073c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should login in BO", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b352f32e-3532-44c9-a8d2-2c9d99d250d5", + "parentUUID": "4d37eb38-d1bf-459b-b479-d6832304073c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_preTest_1_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1965b661-3fe3-4ac0-9a2a-c8d2fff33e9c", + "parentUUID": "4d37eb38-d1bf-459b-b479-d6832304073c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_preTest_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbd85e62-8b16-4e34-877a-8f501e0459d7", + "parentUUID": "4d37eb38-d1bf-459b-b479-d6832304073c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_preTest_1_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "645b11f6-160d-4562-98e0-dec6a4ec30b8", + "parentUUID": "4d37eb38-d1bf-459b-b479-d6832304073c", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should create new cart rule", + "timedOut": false, + "duration": 3856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_preTest_1_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34a28385-84fb-47d9-ac1b-124770238547", + "parentUUID": "4d37eb38-d1bf-459b-b479-d6832304073c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b352f32e-3532-44c9-a8d2-2c9d99d250d5", + "1965b661-3fe3-4ac0-9a2a-c8d2fff33e9c", + "bbd85e62-8b16-4e34-877a-8f501e0459d7", + "645b11f6-160d-4562-98e0-dec6a4ec30b8", + "34a28385-84fb-47d9-ac1b-124770238547" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12025, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "39917e8a-03bc-48cd-a9ad-5ef48aa417d4", + "title": "PRE-TEST: Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule \"before all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f90df96a-576d-4fab-a30f-85c722a244fc", + "parentUUID": "39917e8a-03bc-48cd-a9ad-5ef48aa417d4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule \"after all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f4542647-79ea-4372-95ab-130e961c96e4", + "parentUUID": "39917e8a-03bc-48cd-a9ad-5ef48aa417d4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should login in BO", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62a66213-c516-43e7-a127-a0d126cc2df3", + "parentUUID": "39917e8a-03bc-48cd-a9ad-5ef48aa417d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3629, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_preTest_2_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1924f196-5048-43db-8577-7eb46da96a81", + "parentUUID": "39917e8a-03bc-48cd-a9ad-5ef48aa417d4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_preTest_2_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c498347-10f6-4776-92b2-b0e2a2ac0618", + "parentUUID": "39917e8a-03bc-48cd-a9ad-5ef48aa417d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_preTest_2_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c19df9f-134d-42cb-a4ad-75b0b368e931", + "parentUUID": "39917e8a-03bc-48cd-a9ad-5ef48aa417d4", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher PRE-TEST: Create cart rule should create new cart rule", + "timedOut": false, + "duration": 3821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_preTest_2_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3f3f3a0-ee11-42af-b986-87f80c817615", + "parentUUID": "39917e8a-03bc-48cd-a9ad-5ef48aa417d4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "62a66213-c516-43e7-a127-a0d126cc2df3", + "1924f196-5048-43db-8577-7eb46da96a81", + "3c498347-10f6-4776-92b2-b0e2a2ac0618", + "2c19df9f-134d-42cb-a4ad-75b0b368e931", + "a3f3f3a0-ee11-42af-b986-87f80c817615" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12057, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0d50bbdd-624b-47f8-b293-efb7b8d74d3a", + "title": "Go to create order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Go to create order page should login in BO", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a2b6c0a-3fd0-46a3-9f0f-4458fd8134e3", + "parentUUID": "0d50bbdd-624b-47f8-b293-efb7b8d74d3a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Go to create order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8462564-1cc0-4734-ac1b-0c2720e8790d", + "parentUUID": "0d50bbdd-624b-47f8-b293-efb7b8d74d3a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Go to create order page should go to create order page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbebddbe-3819-4dfa-adb8-aef0e5619a7d", + "parentUUID": "0d50bbdd-624b-47f8-b293-efb7b8d74d3a", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Go to create order page should choose customer John DOE", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_chooseDefaultCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62afd0a1-04e2-4671-8ccf-0751f9ab528a", + "parentUUID": "0d50bbdd-624b-47f8-b293-efb7b8d74d3a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6a2b6c0a-3fd0-46a3-9f0f-4458fd8134e3", + "f8462564-1cc0-4734-ac1b-0c2720e8790d", + "cbebddbe-3819-4dfa-adb8-aef0e5619a7d", + "62afd0a1-04e2-4671-8ccf-0751f9ab528a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8268, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8f0932a1-4314-488c-ad7a-be9bb9500e67", + "title": "Check cart rule without code", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add to cart the product 'demo_12' and check details", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule without code should add to cart the product 'demo_12' and check details", + "timedOut": false, + "duration": 2566, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart1', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_1.default.demo_12.name, \" - \\u20AC\").concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, products_1.default.demo_12, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_12.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(products_1.default.demo_12.name),\n (0, chai_1.expect)(result.reference).to.equal(products_1.default.demo_12.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_12.priceTaxExcluded),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12067eff-46d6-421b-bc0d-63cfc9b730ad", + "parentUUID": "8f0932a1-4314-488c-ad7a-be9bb9500e67", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher details", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule without code should check the voucher details", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkVouchersBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkVouchersBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getVoucherDetailsFromTable(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.contains(cartRuleWithoutCodeData.name),\n (0, chai_1.expect)(result.description).to.equal(cartRuleWithoutCodeData.description),\n (0, chai_1.expect)(result.value).to.equal(cartRuleWithoutCodeData.discountAmount.value),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5374b6f0-8914-420c-ae89-2d0c0b9255c2", + "parentUUID": "8f0932a1-4314-488c-ad7a-be9bb9500e67", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule without code should check summary block", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, totalTaxExcluded, totalTaxIncluded, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_12.priceTaxExcluded - cartRuleWithoutCodeData.discountAmount.value, 20)];\n case 2:\n totalTaxes = _a.sent();\n totalTaxExcluded = products_1.default.demo_12.priceTaxExcluded - cartRuleWithoutCodeData.discountAmount.value;\n totalTaxIncluded = totalTaxes + totalTaxExcluded;\n return [4 /*yield*/, add_2.default.getSummaryDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal(\"-\\u20AC\".concat(cartRuleWithoutCodeData.discountAmount.value.toFixed(2))),\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(totalTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(totalTaxIncluded.toFixed(2))),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33bae6e8-7e4c-44e6-82b5-482379c723ed", + "parentUUID": "8f0932a1-4314-488c-ad7a-be9bb9500e67", + "isHook": false, + "skipped": false + }, + { + "title": "should try to remove voucher and check that the voucher is not removed", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule without code should try to remove voucher and check that the voucher is not removed", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_removeVoucher1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeVoucher1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.removeVoucher(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getVoucherDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result.name).to.contains(cartRuleWithoutCodeData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d66a59bb-b101-4868-b5fb-305eb2dd3f73", + "parentUUID": "8f0932a1-4314-488c-ad7a-be9bb9500e67", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "12067eff-46d6-421b-bc0d-63cfc9b730ad", + "5374b6f0-8914-420c-ae89-2d0c0b9255c2", + "33bae6e8-7e4c-44e6-82b5-482379c723ed", + "d66a59bb-b101-4868-b5fb-305eb2dd3f73" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2690, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1af2da5c-209d-4002-b1e1-9bc447da691f", + "title": "Delete cart rule without code", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Delete cart rule without code should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1a01278-20f0-446a-9620-05380b9c5113", + "parentUUID": "1af2da5c-209d-4002-b1e1-9bc447da691f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Delete cart rule without code should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ceb5886d-a50a-4777-bacf-e578fcf8ac62", + "parentUUID": "1af2da5c-209d-4002-b1e1-9bc447da691f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Delete cart rule without code should delete cart rule", + "timedOut": false, + "duration": 3904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleWithoutCodeData.name)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31b2395f-c436-471a-8884-814f278d4970", + "parentUUID": "1af2da5c-209d-4002-b1e1-9bc447da691f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Delete cart rule without code should reset all filters", + "timedOut": false, + "duration": 312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94a990ef-b977-4e55-826d-53abcb6f2b82", + "parentUUID": "1af2da5c-209d-4002-b1e1-9bc447da691f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b1a01278-20f0-446a-9620-05380b9c5113", + "ceb5886d-a50a-4777-bacf-e578fcf8ac62", + "31b2395f-c436-471a-8884-814f278d4970", + "94a990ef-b977-4e55-826d-53abcb6f2b82" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9872, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "title": "Check cart rule with code", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4564, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3772bac-47ef-4aa6-ba82-01397fa78eec", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should go to create order page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_goToCreateOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a878ae8-4f05-40fc-9a7c-eedd18de2954", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should choose customer John DOE", + "timedOut": false, + "duration": 894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_chooseDefaultCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7852d392-b14e-4cec-816d-560ef7019853", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart the product 'demo_12' and check details", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should add to cart the product 'demo_12' and check details", + "timedOut": false, + "duration": 2571, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_1.default.demo_12.name, \" - \\u20AC\").concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, products_1.default.demo_12, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_12.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(products_1.default.demo_12.name),\n (0, chai_1.expect)(result.reference).to.equal(products_1.default.demo_12.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_12.priceTaxExcluded),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31d7930e-b7b9-4c1e-b742-716b1444c0a4", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the vouchers table is not visible", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should check that the vouchers table is not visible", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkThatVouchersBlockIsNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVoucherTableNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatVouchersBlockIsNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.isVouchersTableNotVisible(page)];\n case 2:\n isVoucherTableNotVisible = _a.sent();\n (0, chai_1.expect)(isVoucherTableNotVisible, 'Vouchers table is visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a39281e-abfc-4b35-91aa-4f7174b1f2e4", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created voucher with code and check details", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should search for the created voucher with code and check details", + "timedOut": false, + "duration": 1058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_searchVoucher1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchVoucher1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchVoucher(page, cartRuleWithCodeData.name)];\n case 2:\n voucherToSelect = _a.sent();\n (0, chai_1.expect)(voucherToSelect).to.equal(\"\".concat(cartRuleWithCodeData.name, \" - \").concat(cartRuleWithCodeData.code));\n return [4 /*yield*/, add_2.default.getVoucherDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.contains(cartRuleWithCodeData.name),\n (0, chai_1.expect)(result.description).to.equal(cartRuleWithCodeData.description),\n (0, chai_1.expect)(result.value).to.equal(cartRuleWithCodeData.discountAmount.value),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a882458c-3685-4d42-ba9d-d6f463317cdd", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should check summary block", + "timedOut": false, + "duration": 42, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, totalTaxExcluded, totalTaxIncluded, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_12.priceTaxExcluded - cartRuleWithCodeData.discountAmount.value, 20)];\n case 2:\n totalTaxes = _a.sent();\n totalTaxExcluded = products_1.default.demo_12.priceTaxExcluded - cartRuleWithCodeData.discountAmount.value;\n totalTaxIncluded = totalTaxes + totalTaxExcluded;\n return [4 /*yield*/, add_2.default.getSummaryDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal(\"-\\u20AC\".concat(cartRuleWithCodeData.discountAmount.value.toFixed(2))),\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(totalTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(totalTaxIncluded.toFixed(2))),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78039767-fcca-4073-8273-e1acea9f1719", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the same created voucher and check the error message", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should search for the same created voucher and check the error message", + "timedOut": false, + "duration": 1060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_searchExistingVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherErrorText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchExistingVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchVoucher(page, cartRuleWithCodeData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getCartRuleErrorText(page)];\n case 3:\n voucherErrorText = _a.sent();\n (0, chai_1.expect)(voucherErrorText).to.equal(add_2.default.cartRuleAlreadyExistErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c44519ca-23aa-4432-b6bb-0776c5376bad", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should remove voucher and check that vouchers table is not visible", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should remove voucher and check that vouchers table is not visible", + "timedOut": false, + "duration": 212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_removeVoucher2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVoucherTableNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeVoucher2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.removeVoucher(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.isVouchersTableNotVisible(page)];\n case 3:\n isVoucherTableNotVisible = _a.sent();\n (0, chai_1.expect)(isVoucherTableNotVisible, 'Vouchers table is visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89c2f773-4eb7-4c43-b8e7-65980ff517fc", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with code should check summary block", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkSummaryBlock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock3', baseContext)];\n case 1:\n _a.sent();\n totalTaxes = products_1.default.demo_12.price - products_1.default.demo_12.priceTaxExcluded;\n return [4 /*yield*/, add_2.default.getSummaryDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(products_1.default.demo_12.price.toFixed(2))),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26ff795f-63d9-49db-b072-dc5a101cae9d", + "parentUUID": "8b7041e2-fe6b-4481-95ed-e110875c80df", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b3772bac-47ef-4aa6-ba82-01397fa78eec", + "3a878ae8-4f05-40fc-9a7c-eedd18de2954", + "7852d392-b14e-4cec-816d-560ef7019853", + "31d7930e-b7b9-4c1e-b742-716b1444c0a4", + "3a39281e-abfc-4b35-91aa-4f7174b1f2e4", + "a882458c-3685-4d42-ba9d-d6f463317cdd", + "78039767-fcca-4073-8273-e1acea9f1719", + "c44519ca-23aa-4432-b6bb-0776c5376bad", + "89c2f773-4eb7-4c43-b8e7-65980ff517fc", + "26ff795f-63d9-49db-b072-dc5a101cae9d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11217, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0c7922b3-ce0a-4335-80eb-a2da89451fd9", + "title": "Check invalid cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for an invalid voucher and check the error message", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check invalid cart rule should search for an invalid voucher and check the error message", + "timedOut": false, + "duration": 1331, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_searchInvalidVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchInvalidVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchVoucher(page, 'testVoucher')];\n case 2:\n searchResult = _a.sent();\n (0, chai_1.expect)(searchResult).to.equal(add_2.default.noVoucherFoudErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d86ecadb-7e4a-488f-8bfd-88a4f08bc864", + "parentUUID": "0c7922b3-ce0a-4335-80eb-a2da89451fd9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d86ecadb-7e4a-488f-8bfd-88a4f08bc864" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1331, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "23f2f6dc-4203-4031-afee-046c7405428a", + "title": "Check disabled cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on add voucher button and check if the iframe is visible", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check disabled cart rule should click on add voucher button and check if the iframe is visible", + "timedOut": false, + "duration": 524, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_addVoucherAndGetIframe\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addVoucherAndGetIframe', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.clickOnAddVoucherButton(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible, 'Add cart rule frame is not visible!').to.eq(true);\n return [4 /*yield*/, add_2.default.getCreateVoucherIframe(page)];\n case 3:\n addVoucherPage = _a.sent();\n (0, chai_1.expect)(addVoucherPage).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd90b633-2405-4065-8b83-8f8cf6ff49e7", + "parentUUID": "23f2f6dc-4203-4031-afee-046c7405428a", + "isHook": false, + "skipped": false + }, + { + "title": "should create then search for the disabled voucher and check the error message", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check disabled cart rule should create then search for the disabled voucher and check the error message", + "timedOut": false, + "duration": 2222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_searchDisabledVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherErrorText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchDisabledVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(addVoucherPage, disabledCartRuleData, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchVoucher(page, disabledCartRuleData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_2.default.getCartRuleErrorText(page)];\n case 4:\n voucherErrorText = _a.sent();\n (0, chai_1.expect)(voucherErrorText).to.equal(add_2.default.voucherDisabledErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "863ba520-2b68-49fa-a795-cc9407c51cd6", + "parentUUID": "23f2f6dc-4203-4031-afee-046c7405428a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cd90b633-2405-4065-8b83-8f8cf6ff49e7", + "863ba520-2b68-49fa-a795-cc9407c51cd6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2746, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "title": "Check cart rule with gift product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on add voucher button and check if the iframe is visible", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with gift product should click on add voucher button and check if the iframe is visible", + "timedOut": false, + "duration": 418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_AddVoucherAndCheckIframe\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'AddVoucherAndCheckIframe', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.clickOnAddVoucherButton(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible, 'Add cart rule frame is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c870dc3-aa8d-48fc-88bf-aaea3ddb437d", + "parentUUID": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "isHook": false, + "skipped": false + }, + { + "title": "should create the cart rule", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with gift product should create the cart rule", + "timedOut": false, + "duration": 1123, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_CreateCArtRuleWithGift\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'CreateCArtRuleWithGift', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getCreateVoucherIframe(page)];\n case 2:\n addVoucherPage = _a.sent();\n (0, chai_1.expect)(addVoucherPage).to.not.eq(null);\n return [4 /*yield*/, add_1.default.createEditCartRules(addVoucherPage, cartRuleWithGiftData, false)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2f11a24-e77c-41ce-8f8d-489d07c224f2", + "parentUUID": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created voucher and check details", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with gift product should search for the created voucher and check details", + "timedOut": false, + "duration": 1163, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_searchVoucherWithGift\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchVoucherWithGift', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchVoucher(page, cartRuleWithGiftData.name)];\n case 2:\n voucherToSelect = _a.sent();\n (0, chai_1.expect)(voucherToSelect).to.equal(\"\".concat(cartRuleWithGiftData.name, \" - \").concat(cartRuleWithGiftData.code));\n return [4 /*yield*/, add_2.default.getVoucherDetailsFromTable(page, 1)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.contains(cartRuleWithGiftData.name),\n (0, chai_1.expect)(result.description).to.equal(cartRuleWithGiftData.description),\n (0, chai_1.expect)(result.value).to.equal(products_1.default.demo_12.priceTaxExcluded),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab89a236-20bc-4ad3-bac5-5a3b24e9a437", + "parentUUID": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the gift product is added successfully", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with gift product should check that the gift product is added successfully", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkGiftProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGiftProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductGiftDetailsFromTable(page, 2)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_13.coverImage),\n (0, chai_1.expect)(result.description).to.equal(products_1.default.demo_13.name),\n (0, chai_1.expect)(result.reference).to.equal(products_1.default.demo_13.reference),\n (0, chai_1.expect)(result.basePrice).to.equal('Gift'),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.price).to.equal('Gift'),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "151bdf7e-eb83-4984-b39f-99d5228193da", + "parentUUID": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with gift product should check summary block", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkSummaryBlock4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock4', baseContext)];\n case 1:\n _a.sent();\n totalTaxes = products_1.default.demo_12.price - products_1.default.demo_12.priceTaxExcluded;\n return [4 /*yield*/, add_2.default.getSummaryDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(products_1.default.demo_12.price.toFixed(2))),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35140662-89ad-4630-862a-a233ff8f4b63", + "parentUUID": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "isHook": false, + "skipped": false + }, + { + "title": "should remove voucher and check that the voucher is deleted successfully from the table", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with gift product should remove voucher and check that the voucher is deleted successfully from the table", + "timedOut": false, + "duration": 214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_removeVoucherWithGift\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVoucherTableNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeVoucherWithGift', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.removeVoucher(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.isVouchersTableNotVisible(page)];\n case 3:\n isVoucherTableNotVisible = _a.sent();\n (0, chai_1.expect)(isVoucherTableNotVisible, 'Vouchers table is visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49f2e7ae-8d0f-4f23-b08b-fa42b22eed9f", + "parentUUID": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the gift product is deleted", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with gift product should check that the gift product is deleted", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_CheckGiftDeleted\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isRowNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'CheckGiftDeleted', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.isProductTableRowNotVisible(page, 2)];\n case 2:\n isRowNotVisible = _a.sent();\n (0, chai_1.expect)(isRowNotVisible, 'Gift product still visible on products table!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6e4b7bd-44cb-4b9f-b066-a7c674334fe4", + "parentUUID": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule with gift product should check summary block", + "timedOut": false, + "duration": 40, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkSummaryBlock5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock5', baseContext)];\n case 1:\n _a.sent();\n totalTaxes = products_1.default.demo_12.price - products_1.default.demo_12.priceTaxExcluded;\n return [4 /*yield*/, add_2.default.getSummaryDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(products_1.default.demo_12.price.toFixed(2))),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e51251f-1e1f-4af1-8983-27036b1b8f3c", + "parentUUID": "27e5baa4-61ce-418f-87c1-89d05523ecf9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2c870dc3-aa8d-48fc-88bf-aaea3ddb437d", + "d2f11a24-e77c-41ce-8f8d-489d07c224f2", + "ab89a236-20bc-4ad3-bac5-5a3b24e9a437", + "151bdf7e-eb83-4984-b39f-99d5228193da", + "35140662-89ad-4630-862a-a233ff8f4b63", + "49f2e7ae-8d0f-4f23-b08b-fa42b22eed9f", + "c6e4b7bd-44cb-4b9f-b066-a7c674334fe4", + "8e51251f-1e1f-4af1-8983-27036b1b8f3c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3042, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d2bcb330-4cc8-4e1a-9fb1-78e1fd707fab", + "title": "Check cart rule Free shipping", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on add voucher button and check if the iframe is visible", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule Free shipping should click on add voucher button and check if the iframe is visible", + "timedOut": false, + "duration": 390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_clickToAddFreeShippingVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickToAddFreeShippingVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.clickOnAddVoucherButton(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible, 'Add cart rule frame is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7ddf555-6890-44a6-9d66-da865ec2200a", + "parentUUID": "d2bcb330-4cc8-4e1a-9fb1-78e1fd707fab", + "isHook": false, + "skipped": false + }, + { + "title": "should create the cart rule", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule Free shipping should create the cart rule", + "timedOut": false, + "duration": 753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_addFreeShippingVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFreeShippingVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getCreateVoucherIframe(page)];\n case 2:\n addVoucherPage = _a.sent();\n (0, chai_1.expect)(addVoucherPage).to.not.eq(null);\n return [4 /*yield*/, add_1.default.createEditCartRules(addVoucherPage, cartRuleFreeShippingData, false)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92fdddd9-2344-47fc-86b2-310110f87b32", + "parentUUID": "d2bcb330-4cc8-4e1a-9fb1-78e1fd707fab", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created voucher and check details", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule Free shipping should search for the created voucher and check details", + "timedOut": false, + "duration": 1147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_searchFreeShippingVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchFreeShippingVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchVoucher(page, cartRuleFreeShippingData.name)];\n case 2:\n voucherToSelect = _a.sent();\n (0, chai_1.expect)(voucherToSelect).to.equal(\"\".concat(cartRuleFreeShippingData.name, \" - \").concat(cartRuleFreeShippingData.code));\n return [4 /*yield*/, add_2.default.getVoucherDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.contains(cartRuleFreeShippingData.name),\n (0, chai_1.expect)(result.description).to.equal(cartRuleFreeShippingData.description),\n (0, chai_1.expect)(result.value).to.equal(0),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ce9c957-54c8-416a-8478-280bec41f453", + "parentUUID": "d2bcb330-4cc8-4e1a-9fb1-78e1fd707fab", + "isHook": false, + "skipped": false + }, + { + "title": "should select the carrier myCarrier", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule Free shipping should select the carrier myCarrier", + "timedOut": false, + "duration": 2036, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_selectMyCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingPriceTTC;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectMyCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setDeliveryOption(page, \"\".concat(carriers_1.default.myCarrier.name, \" - Delivery next day!\"))];\n case 2:\n shippingPriceTTC = _a.sent();\n (0, chai_1.expect)(shippingPriceTTC).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.priceTTC.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83da3be4-93ad-4ed9-8017-089674d64f36", + "parentUUID": "d2bcb330-4cc8-4e1a-9fb1-78e1fd707fab", + "isHook": false, + "skipped": false + }, + { + "title": "should re-check voucher details", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule Free shipping should re-check voucher details", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkVoucherDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkVoucherDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getVoucherDetailsFromTable(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.contains(cartRuleFreeShippingData.name),\n (0, chai_1.expect)(result.description).to.equal(cartRuleFreeShippingData.description),\n (0, chai_1.expect)(result.value).to.equal(7),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58fda33d-0acb-4d4a-9a1a-1d9e760c3e26", + "parentUUID": "d2bcb330-4cc8-4e1a-9fb1-78e1fd707fab", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher Check cart rule Free shipping should check summary block", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_checkSummaryBlock6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock6', baseContext)];\n case 1:\n _a.sent();\n totalTaxes = products_1.default.demo_12.price - products_1.default.demo_12.priceTaxExcluded;\n return [4 /*yield*/, add_2.default.getSummaryDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal('-€7.00'),\n (0, chai_1.expect)(result.totalShipping).to.equal('€7.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(products_1.default.demo_12.price.toFixed(2))),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86df03dc-a9dc-4006-95e4-314b294f3def", + "parentUUID": "d2bcb330-4cc8-4e1a-9fb1-78e1fd707fab", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c7ddf555-6890-44a6-9d66-da865ec2200a", + "92fdddd9-2344-47fc-86b2-310110f87b32", + "5ce9c957-54c8-416a-8478-280bec41f453", + "83da3be4-93ad-4ed9-8017-089674d64f36", + "58fda33d-0acb-4d4a-9a1a-1d9e760c3e26", + "86df03dc-a9dc-4006-95e4-314b294f3def" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4385, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a2745dd4-aedf-401d-9fe0-0fd91d49ab45", + "title": "POST-TEST: Bulk delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/07_searchAddRemoveVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher POST-TEST: Bulk delete cart rule \"before all\" hook in \"POST-TEST: Bulk delete cart rule\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74b4631c-8d65-4f48-a86f-fc3ac0372f74", + "parentUUID": "a2745dd4-aedf-401d-9fe0-0fd91d49ab45", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher POST-TEST: Bulk delete cart rule \"after all\" hook in \"POST-TEST: Bulk delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "be7ddb75-9dd4-4ab8-8241-df50d30769ec", + "parentUUID": "a2745dd4-aedf-401d-9fe0-0fd91d49ab45", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher POST-TEST: Bulk delete cart rule should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2df25aed-ab5c-40ba-93a7-ce4206da54c9", + "parentUUID": "a2745dd4-aedf-401d-9fe0-0fd91d49ab45", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher POST-TEST: Bulk delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3641, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_postTest_1_goToDiscountsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf4b126f-afff-42bc-b907-5f2fdbef800d", + "parentUUID": "a2745dd4-aedf-401d-9fe0-0fd91d49ab45", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher POST-TEST: Bulk delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_postTest_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ece3f1c8-d7d3-4ed8-bb27-df01d2368c2b", + "parentUUID": "a2745dd4-aedf-401d-9fe0-0fd91d49ab45", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete cart rules", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher POST-TEST: Bulk delete cart rule should bulk delete cart rules", + "timedOut": false, + "duration": 509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_postTest_1_bulkDeleteCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkDeleteCartRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b11a64e3-f5a2-491b-b4ce-0f0e2734056e", + "parentUUID": "a2745dd4-aedf-401d-9fe0-0fd91d49ab45", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Search, add and remove voucher POST-TEST: Bulk delete cart rule should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_searchAddRemoveVoucher_postTest_1_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3eca606-65e3-4ab3-8fec-1c59a98153b9", + "parentUUID": "a2745dd4-aedf-401d-9fe0-0fd91d49ab45", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2df25aed-ab5c-40ba-93a7-ce4206da54c9", + "cf4b126f-afff-42bc-b907-5f2fdbef800d", + "ece3f1c8-d7d3-4ed8-bb27-df01d2368c2b", + "b11a64e3-f5a2-491b-b4ce-0f0e2734056e", + "b3eca606-65e3-4ab3-8fec-1c59a98153b9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9912, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "92e7d170-8bc1-4697-b215-2e742aa98b55", + "title": "BO - Orders - Create order : Choose address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Choose address\"", + "fullTitle": "BO - Orders - Create order : Choose address \"before all\" hook in \"BO - Orders - Create order : Choose address\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a93c704-32fc-4747-b0c7-068de0b69369", + "parentUUID": "92e7d170-8bc1-4697-b215-2e742aa98b55", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Choose address\"", + "fullTitle": "BO - Orders - Create order : Choose address \"after all\" hook in \"BO - Orders - Create order : Choose address\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d22cd9a-ae92-4373-9852-50892088142c", + "parentUUID": "92e7d170-8bc1-4697-b215-2e742aa98b55", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "de525a5b-bb71-4ae4-b5c4-2d8dda2e6a10", + "title": "PRE-TEST: Create address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Orders - Create order : Choose address PRE-TEST: Create address \"before all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4aec1fc-cbb5-44e9-a595-2348eb85a8d3", + "parentUUID": "de525a5b-bb71-4ae4-b5c4-2d8dda2e6a10", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Orders - Create order : Choose address PRE-TEST: Create address \"after all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6a9d1ca7-efc0-4aa1-ac59-5387573983a4", + "parentUUID": "de525a5b-bb71-4ae4-b5c4-2d8dda2e6a10", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Choose address PRE-TEST: Create address should login in BO", + "timedOut": false, + "duration": 1764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14a807a0-8b8f-43c3-bede-639aa8128814", + "parentUUID": "de525a5b-bb71-4ae4-b5c4-2d8dda2e6a10", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Orders - Create order : Choose address PRE-TEST: Create address should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_preTest_1_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bc6a8c6-e94c-45d4-8728-7e7d41b743c3", + "parentUUID": "de525a5b-bb71-4ae4-b5c4-2d8dda2e6a10", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Choose address PRE-TEST: Create address should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_preTest_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37c76b21-c4c9-4b06-be8d-245127e2101c", + "parentUUID": "de525a5b-bb71-4ae4-b5c4-2d8dda2e6a10", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Orders - Create order : Choose address PRE-TEST: Create address should go to add new address page", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_preTest_1_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f304b495-acac-4bce-8e61-27c30ce95f31", + "parentUUID": "de525a5b-bb71-4ae4-b5c4-2d8dda2e6a10", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "BO - Orders - Create order : Choose address PRE-TEST: Create address should create address and check result", + "timedOut": false, + "duration": 2479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_preTest_1_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a06af27f-241d-4903-be8d-263a42eddc67", + "parentUUID": "de525a5b-bb71-4ae4-b5c4-2d8dda2e6a10", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "14a807a0-8b8f-43c3-bede-639aa8128814", + "7bc6a8c6-e94c-45d4-8728-7e7d41b743c3", + "37c76b21-c4c9-4b06-be8d-245127e2101c", + "f304b495-acac-4bce-8e61-27c30ce95f31", + "a06af27f-241d-4903-be8d-263a42eddc67" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11926, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "title": "Create first order and choose the created address in PRE-TEST", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should login in BO", + "timedOut": false, + "duration": 1750, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95147e47-45e3-4eb0-bb10-2e127fb253d6", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "770e3f47-7c23-4c1c-af00-2b9d4c559611", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should go to create order page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27bff178-d5b0-4385-bc43-e537aee2c77b", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should choose customer John DOE", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseDefaultCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79c401a7-4b33-465a-8b66-3c796ec4d1d9", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart the product 'demo_12' and check details", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should add to cart the product 'demo_12' and check details", + "timedOut": false, + "duration": 2575, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_1.default.demo_12.name, \" - \\u20AC\").concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2));\n return [4 /*yield*/, add_2.default.addProductToCart(page, products_1.default.demo_12, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getProductDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_12.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(products_1.default.demo_12.name),\n (0, chai_1.expect)(result.reference).to.equal(products_1.default.demo_12.reference),\n (0, chai_1.expect)(result.quantityMin).to.equal(1),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_12.priceTaxExcluded),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78137f98-cc0f-4e29-a385-f2abeb10191e", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the delivery address '2204 Place du Dahomey' and check details", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should choose the delivery address '2204 Place du Dahomey' and check details", + "timedOut": false, + "duration": 3026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseCreatedDeliveryAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseCreatedDeliveryAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseDeliveryAddress(page, newAddressToCreate.alias)];\n case 2:\n newAddress = _a.sent();\n (0, chai_1.expect)(newAddress).to.be.equal(\"\".concat(newAddressToCreate.firstName, \" \").concat(newAddressToCreate.lastName)\n + \"\".concat(newAddressToCreate.company).concat(newAddressToCreate.address).concat(newAddressToCreate.secondAddress)\n + \"\".concat(newAddressToCreate.postalCode, \" \").concat(newAddressToCreate.city).concat(newAddressToCreate.country)\n + \"\".concat(newAddressToCreate.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca1765d9-385d-4381-a222-88a820927c0c", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the invoice address '2204 Place du Dahomey' and check details", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should choose the invoice address '2204 Place du Dahomey' and check details", + "timedOut": false, + "duration": 2025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseCreatedInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseCreatedInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseInvoiceAddress(page, newAddressToCreate.alias)];\n case 2:\n newAddress = _a.sent();\n (0, chai_1.expect)(newAddress).to.be.equal(\"\".concat(newAddressToCreate.firstName, \" \").concat(newAddressToCreate.lastName)\n + \"\".concat(newAddressToCreate.company).concat(newAddressToCreate.address).concat(newAddressToCreate.secondAddress)\n + \"\".concat(newAddressToCreate.postalCode, \" \").concat(newAddressToCreate.city).concat(newAddressToCreate.country)\n + \"\".concat(newAddressToCreate.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "668ce4c6-cf3f-4f4d-a1da-b48decd2fbb2", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + }, + { + "title": "should complete the order", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should complete the order", + "timedOut": false, + "duration": 1956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_completeOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'completeOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setSummaryAndCreateOrder(page, paymentMethodModuleName, orderStatuses_1.default.paymentAccepted)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff0aa4a6-77a1-4fde-aae4-f6b0fd18a92c", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order ID", + "fullTitle": "BO - Orders - Create order : Choose address Create first order and choose the created address in PRE-TEST should get the order ID", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_getOrderID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getOrderID(page)];\n case 2:\n orderID = _a.sent();\n (0, chai_1.expect)(orderID).to.be.at.least(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fb6f81b-73b1-4f54-ac3c-b03a8a8b6ab6", + "parentUUID": "a8e0a3c9-ae05-44da-98e2-b52b1c92d903", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "95147e47-45e3-4eb0-bb10-2e127fb253d6", + "770e3f47-7c23-4c1c-af00-2b9d4c559611", + "27bff178-d5b0-4385-bc43-e537aee2c77b", + "79c401a7-4b33-465a-8b66-3c796ec4d1d9", + "78137f98-cc0f-4e29-a385-f2abeb10191e", + "ca1765d9-385d-4381-a222-88a820927c0c", + "668ce4c6-cf3f-4f4d-a1da-b48decd2fbb2", + "ff0aa4a6-77a1-4fde-aae4-f6b0fd18a92c", + "0fb6f81b-73b1-4f54-ac3c-b03a8a8b6ab6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17891, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4a1d66a7-4ac0-48ca-bd72-830afc601cd5", + "title": "Create second order and choose the created address in PRE-TEST", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Choose address Create second order and choose the created address in PRE-TEST should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fd33d13-195a-441d-8e14-a0de409a84a4", + "parentUUID": "4a1d66a7-4ac0-48ca-bd72-830afc601cd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Choose address Create second order and choose the created address in PRE-TEST should go to create order page", + "timedOut": false, + "duration": 746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToCreateOrderPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be7c2bc8-8283-4666-bbf1-0cef379fa71c", + "parentUUID": "4a1d66a7-4ac0-48ca-bd72-830afc601cd5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Choose address Create second order and choose the created address in PRE-TEST should choose customer John DOE", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseDefaultCustomer2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86e8cdcf-b01e-4022-aea5-f9e9b2474647", + "parentUUID": "4a1d66a7-4ac0-48ca-bd72-830afc601cd5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the delivery address '2204 Place du Dahomey' and check details", + "fullTitle": "BO - Orders - Create order : Choose address Create second order and choose the created address in PRE-TEST should choose the delivery address '2204 Place du Dahomey' and check details", + "timedOut": false, + "duration": 3104, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseCreatedDeliveryAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseCreatedDeliveryAddress2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseDeliveryAddress(page, newAddressToCreate.alias)];\n case 2:\n newAddress = _a.sent();\n (0, chai_1.expect)(newAddress).to.be.equal(\"\".concat(newAddressToCreate.firstName, \" \").concat(newAddressToCreate.lastName)\n + \"\".concat(newAddressToCreate.company).concat(newAddressToCreate.address).concat(newAddressToCreate.secondAddress)\n + \"\".concat(newAddressToCreate.postalCode, \" \").concat(newAddressToCreate.city).concat(newAddressToCreate.country)\n + \"\".concat(newAddressToCreate.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d521d7d-130b-49b4-8fba-4f4f647bfa9f", + "parentUUID": "4a1d66a7-4ac0-48ca-bd72-830afc601cd5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the invoice address '2204 Place du Dahomey' and check details", + "fullTitle": "BO - Orders - Create order : Choose address Create second order and choose the created address in PRE-TEST should choose the invoice address '2204 Place du Dahomey' and check details", + "timedOut": false, + "duration": 2025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseCreatedInvoiceAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseCreatedInvoiceAddress2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseInvoiceAddress(page, newAddressToCreate.alias)];\n case 2:\n newAddress = _a.sent();\n (0, chai_1.expect)(newAddress).to.be.equal(\"\".concat(newAddressToCreate.firstName, \" \").concat(newAddressToCreate.lastName)\n + \"\".concat(newAddressToCreate.company).concat(newAddressToCreate.address).concat(newAddressToCreate.secondAddress)\n + \"\".concat(newAddressToCreate.postalCode, \" \").concat(newAddressToCreate.city).concat(newAddressToCreate.country)\n + \"\".concat(newAddressToCreate.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4eebd918-d813-4e6e-9ae7-e72af745dd14", + "parentUUID": "4a1d66a7-4ac0-48ca-bd72-830afc601cd5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1fd33d13-195a-441d-8e14-a0de409a84a4", + "be7c2bc8-8283-4666-bbf1-0cef379fa71c", + "86e8cdcf-b01e-4022-aea5-f9e9b2474647", + "8d521d7d-130b-49b4-8fba-4f4f647bfa9f", + "4eebd918-d813-4e6e-9ae7-e72af745dd14" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10552, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ffea1ecc-2d93-4eab-9e81-0decc5e526dd", + "title": "Edit delivery and invoice addresses", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "69e109ea-bc69-4525-9d37-d61f6d3a47ae", + "title": "Edit delivery address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on edit address and check if edit address iframe is visible", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Edit delivery address should click on edit address and check if edit address iframe is visible", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_clickOnEditAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.clickOnEditDeliveryAddressButton(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible, 'Edit address iframe is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd8d1b8d-b3e3-41e3-95b0-e92c9bfe6d9a", + "parentUUID": "69e109ea-bc69-4525-9d37-d61f6d3a47ae", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the address and check it", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Edit delivery address should edit the address and check it", + "timedOut": false, + "duration": 6562, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_editAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var editedAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getEditAddressIframe(page)];\n case 2:\n editAddressIframe = _a.sent();\n (0, chai_1.expect)(editAddressIframe).to.not.eq(null);\n return [4 /*yield*/, add_1.default.createEditAddress(editAddressIframe, addressToEditData, true, false)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_2.default.getDeliveryAddressDetails(page)];\n case 4:\n editedAddress = _a.sent();\n (0, chai_1.expect)(editedAddress).to.be.equal(\"\".concat(addressToEditData.firstName, \" \").concat(addressToEditData.lastName)\n + \"\".concat(addressToEditData.company).concat(addressToEditData.address).concat(addressToEditData.secondAddress)\n + \"\".concat(addressToEditData.postalCode, \" \").concat(addressToEditData.city).concat(addressToEditData.country)\n + \"\".concat(addressToEditData.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "821a08b0-dc2f-40c1-bf79-d11387ca69cf", + "parentUUID": "69e109ea-bc69-4525-9d37-d61f6d3a47ae", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dd8d1b8d-b3e3-41e3-95b0-e92c9bfe6d9a", + "821a08b0-dc2f-40c1-bf79-d11387ca69cf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6851, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7646619d-c612-4457-a8b1-9c62321a2781", + "title": "Check that the edited address is not changed in the first created order in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first created order in BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToOrdersPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b54b4214-c720-4d40-9c36-4ca2cb325245", + "parentUUID": "7646619d-c612-4457-a8b1-9c62321a2781", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the list by order ID", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first created order in BO should filter the list by order ID", + "timedOut": false, + "duration": 1236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_filterOrdersTableByID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrdersTableByID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65eb661b-2cdd-4a20-9a69-fb37ab72534d", + "parentUUID": "7646619d-c612-4457-a8b1-9c62321a2781", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first created order in BO should view the order", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_orderPageCustomerBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageCustomerBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dccf57b6-1dea-4c67-b819-1b53a3d3c63f", + "parentUUID": "7646619d-c612-4457-a8b1-9c62321a2781", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shipping address", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first created order in BO should check the shipping address", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_checkShippingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getShippingAddress(page)];\n case 2:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress)\n .to.contain(newAddressToCreate.firstName)\n .and.to.contain(newAddressToCreate.lastName)\n .and.to.contain(newAddressToCreate.address)\n .and.to.contain(newAddressToCreate.postalCode)\n .and.to.contain(newAddressToCreate.city)\n .and.to.contain(newAddressToCreate.country)\n .and.to.contain(newAddressToCreate.phone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36097e35-5d9d-4ada-b9de-f43eb75c7767", + "parentUUID": "7646619d-c612-4457-a8b1-9c62321a2781", + "isHook": false, + "skipped": false + }, + { + "title": "should check the invoice address", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first created order in BO should check the invoice address", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_checkInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getInvoiceAddress(page)];\n case 2:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress)\n .to.contain(newAddressToCreate.firstName)\n .and.to.contain(newAddressToCreate.lastName)\n .and.to.contain(newAddressToCreate.address)\n .and.to.contain(newAddressToCreate.postalCode)\n .and.to.contain(newAddressToCreate.city)\n .and.to.contain(newAddressToCreate.country)\n .and.to.contain(newAddressToCreate.phone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b7c50f8-eef0-453f-ac77-5aedc9015470", + "parentUUID": "7646619d-c612-4457-a8b1-9c62321a2781", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b54b4214-c720-4d40-9c36-4ca2cb325245", + "65eb661b-2cdd-4a20-9a69-fb37ab72534d", + "dccf57b6-1dea-4c67-b819-1b53a3d3c63f", + "36097e35-5d9d-4ada-b9de-f43eb75c7767", + "8b7c50f8-eef0-453f-ac77-5aedc9015470" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5937, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "title": "Check that the edited address is not changed in the first order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first order in FO should go to FO", + "timedOut": false, + "duration": 2594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a61402b-8e4f-4217-b311-892635fb3728", + "parentUUID": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first order in FO should go to login page", + "timedOut": false, + "duration": 727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75ccd654-5444-4c9b-a642-5a8d9332b1a4", + "parentUUID": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first order in FO should sign in with customer credentials", + "timedOut": false, + "duration": 653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2691e76f-ac92-4e7b-8ac6-99fc9a5b6160", + "parentUUID": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first order in FO should go to account page", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa01c4a6-98b1-490e-a310-7c25d89a7324", + "parentUUID": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first order in FO should go to 'Order history and details' page", + "timedOut": false, + "duration": 733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81cab22b-7c07-43e9-94a5-ff7e8172c718", + "parentUUID": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "isHook": false, + "skipped": false + }, + { + "title": "should click on details link of the first created order and check the delivery address", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first order in FO should click on details link of the first created order and check the delivery address", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_checkDeliveryAddressFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryAddressFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToOrderDetailsPage(page, orderID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getDeliveryAddress(page)];\n case 3:\n deliveryAddress = _a.sent();\n (0, chai_1.expect)(deliveryAddress).to.contain(newAddressToCreate.firstName)\n .and.to.contain(newAddressToCreate.lastName)\n .and.to.contain(newAddressToCreate.address)\n .and.to.contain(newAddressToCreate.postalCode)\n .and.to.contain(newAddressToCreate.city)\n .and.to.contain(newAddressToCreate.country)\n .and.to.contain(newAddressToCreate.phone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cf0c6ad-da7b-49ee-99fc-7859125bfc97", + "parentUUID": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "isHook": false, + "skipped": false + }, + { + "title": "should check the invoice address", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first order in FO should check the invoice address", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_checkInvoiceAddressFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceAddressFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getInvoiceAddress(page)];\n case 2:\n deliveryAddress = _a.sent();\n (0, chai_1.expect)(deliveryAddress).to.contain(newAddressToCreate.firstName)\n .and.to.contain(newAddressToCreate.lastName)\n .and.to.contain(newAddressToCreate.address)\n .and.to.contain(newAddressToCreate.postalCode)\n .and.to.contain(newAddressToCreate.city)\n .and.to.contain(newAddressToCreate.country)\n .and.to.contain(newAddressToCreate.phone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b291ea2f-1aa9-4666-b7f7-51e8dcc5b5fd", + "parentUUID": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Check that the edited address is not changed in the first order in FO should close the FO page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_closeFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc1f4623-4a58-4102-9e7c-2b1d67905108", + "parentUUID": "2b82fc99-bd0e-4618-bc10-45c7b205d290", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2a61402b-8e4f-4217-b311-892635fb3728", + "75ccd654-5444-4c9b-a642-5a8d9332b1a4", + "2691e76f-ac92-4e7b-8ac6-99fc9a5b6160", + "fa01c4a6-98b1-490e-a310-7c25d89a7324", + "81cab22b-7c07-43e9-94a5-ff7e8172c718", + "8cf0c6ad-da7b-49ee-99fc-7859125bfc97", + "b291ea2f-1aa9-4666-b7f7-51e8dcc5b5fd", + "fc1f4623-4a58-4102-9e7c-2b1d67905108" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6197, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8ffffbda-ab2f-4523-bc24-1e1ba6986ba8", + "title": "Edit invoice address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Edit invoice address should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4384, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToOrdersPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99acc959-9cfd-449d-a7eb-5d5c059a7871", + "parentUUID": "8ffffbda-ab2f-4523-bc24-1e1ba6986ba8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Edit invoice address should go to create order page", + "timedOut": false, + "duration": 757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_goToCreateOrderPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e51465b0-8d87-4ca6-8c71-9df88ebf80c2", + "parentUUID": "8ffffbda-ab2f-4523-bc24-1e1ba6986ba8", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Edit invoice address should choose customer John DOE", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseDefaultCustomer3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6174f198-62ce-437e-8b39-9c46a2321b3c", + "parentUUID": "8ffffbda-ab2f-4523-bc24-1e1ba6986ba8", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the address '437 Place Saint-Honoré'", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Edit invoice address should choose the address '437 Place Saint-Honoré'", + "timedOut": false, + "duration": 2096, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseMyAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var editedAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseMyAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseInvoiceAddress(page, addressToEditData.alias)];\n case 2:\n editedAddress = _a.sent();\n (0, chai_1.expect)(editedAddress).to.be.equal(\"\".concat(addressToEditData.firstName, \" \").concat(addressToEditData.lastName)\n + \"\".concat(addressToEditData.company).concat(addressToEditData.address).concat(addressToEditData.secondAddress)\n + \"\".concat(addressToEditData.postalCode, \" \").concat(addressToEditData.city).concat(addressToEditData.country)\n + \"\".concat(addressToEditData.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb6da5c4-fe51-4797-b5ea-9b51d6eb3fb6", + "parentUUID": "8ffffbda-ab2f-4523-bc24-1e1ba6986ba8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit address and check if edit address iframe is visible", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Edit invoice address should click on edit address and check if edit address iframe is visible", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_clickOnEditAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditAddress2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.clickOnEditInvoiceAddressButton(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible, 'Edit address iframe is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a899d93e-6d61-408e-9eed-ad633b77ce7a", + "parentUUID": "8ffffbda-ab2f-4523-bc24-1e1ba6986ba8", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the address and check it", + "fullTitle": "BO - Orders - Create order : Choose address Edit delivery and invoice addresses Edit invoice address should edit the address and check it", + "timedOut": false, + "duration": 5493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_editAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var editedAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAddress2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getEditAddressIframe(page)];\n case 2:\n editAddressIframe = _a.sent();\n (0, chai_1.expect)(editAddressIframe).to.not.eq(null);\n return [4 /*yield*/, add_1.default.createEditAddress(editAddressIframe, newAddressToCreate, true, false)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_2.default.getInvoiceAddressDetails(page)];\n case 4:\n editedAddress = _a.sent();\n (0, chai_1.expect)(editedAddress).to.be.equal(\"\".concat(newAddressToCreate.firstName, \" \").concat(newAddressToCreate.lastName)\n + \"\".concat(newAddressToCreate.company).concat(newAddressToCreate.address).concat(newAddressToCreate.secondAddress)\n + \"\".concat(newAddressToCreate.postalCode, \" \").concat(newAddressToCreate.city).concat(newAddressToCreate.country)\n + \"\".concat(newAddressToCreate.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb1e0ca4-ccdf-4aa4-bb6b-4c739bbd7384", + "parentUUID": "8ffffbda-ab2f-4523-bc24-1e1ba6986ba8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99acc959-9cfd-449d-a7eb-5d5c059a7871", + "e51465b0-8d87-4ca6-8c71-9df88ebf80c2", + "6174f198-62ce-437e-8b39-9c46a2321b3c", + "bb6da5c4-fe51-4797-b5ea-9b51d6eb3fb6", + "a899d93e-6d61-408e-9eed-ad633b77ce7a", + "eb1e0ca4-ccdf-4aa4-bb6b-4c739bbd7384" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13922, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ff612f5a-8086-476b-9ed3-1ac6cd5f2a86", + "title": "Add new address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on add delivery address and check if add new address iframe is visible", + "fullTitle": "BO - Orders - Create order : Choose address Add new address should click on add delivery address and check if add new address iframe is visible", + "timedOut": false, + "duration": 374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_clickOnEditAddress3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditAddress3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.clickOnAddNewAddressButton(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible, 'Add address iframe is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4da52a4-2529-479f-bf81-a00b28b015ca", + "parentUUID": "ff612f5a-8086-476b-9ed3-1ac6cd5f2a86", + "isHook": false, + "skipped": false + }, + { + "title": "should add new address", + "fullTitle": "BO - Orders - Create order : Choose address Add new address should add new address", + "timedOut": false, + "duration": 4572, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_addNewAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addNewAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.getAddAddressIframe(page)];\n case 2:\n addAddressIframe = _a.sent();\n (0, chai_1.expect)(addAddressIframe).to.not.eq(null);\n return [4 /*yield*/, add_1.default.createEditAddress(addAddressIframe, newAddressData, true, false)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_2.default.getDeliveryAddressList(page)];\n case 4:\n deliveryAddress = _a.sent();\n (0, chai_1.expect)(deliveryAddress).to.contains(newAddressData.alias);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a61becb7-c74d-4b10-8739-f693cac726d8", + "parentUUID": "ff612f5a-8086-476b-9ed3-1ac6cd5f2a86", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the new delivery address", + "fullTitle": "BO - Orders - Create order : Choose address Add new address should choose the new delivery address", + "timedOut": false, + "duration": 3026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_chooseNewDeliveryAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseNewDeliveryAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseDeliveryAddress(page, newAddressData.alias)];\n case 2:\n newAddress = _a.sent();\n (0, chai_1.expect)(newAddress).to.be.equal(\"\".concat(newAddressData.firstName, \" \").concat(newAddressData.lastName)\n + \"\".concat(newAddressData.company).concat(newAddressData.address).concat(newAddressData.secondAddress)\n + \"\".concat(newAddressData.postalCode, \" \").concat(newAddressData.city).concat(newAddressData.country)\n + \"\".concat(newAddressData.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcfdeb1f-98a1-4db6-aca4-9df5b78e3a33", + "parentUUID": "ff612f5a-8086-476b-9ed3-1ac6cd5f2a86", + "isHook": false, + "skipped": false + }, + { + "title": "should select the created address as an invoice address", + "fullTitle": "BO - Orders - Create order : Choose address Add new address should select the created address as an invoice address", + "timedOut": false, + "duration": 2026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_selectNewInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectNewInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseInvoiceAddress(page, newAddressData.alias)];\n case 2:\n newAddress = _a.sent();\n (0, chai_1.expect)(newAddress).to.be.equal(\"\".concat(newAddressData.firstName, \" \").concat(newAddressData.lastName)\n + \"\".concat(newAddressData.company).concat(newAddressData.address).concat(newAddressData.secondAddress)\n + \"\".concat(newAddressData.postalCode, \" \").concat(newAddressData.city).concat(newAddressData.country)\n + \"\".concat(newAddressData.phone));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2550cd38-7b04-4a00-9dcf-d475a4c61841", + "parentUUID": "ff612f5a-8086-476b-9ed3-1ac6cd5f2a86", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a4da52a4-2529-479f-bf81-a00b28b015ca", + "a61becb7-c74d-4b10-8739-f693cac726d8", + "fcfdeb1f-98a1-4db6-aca4-9df5b78e3a33", + "2550cd38-7b04-4a00-9dcf-d475a4c61841" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9998, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "title": "POST-TEST: Delete addresses by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/08_chooseAddress.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete addresses by bulk actions\"", + "fullTitle": "BO - Orders - Create order : Choose address POST-TEST: Delete addresses by bulk actions \"before all\" hook in \"POST-TEST: Delete addresses by bulk actions\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb9c4cc8-495b-49f0-8b83-fd11134a52c4", + "parentUUID": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete addresses by bulk actions\"", + "fullTitle": "BO - Orders - Create order : Choose address POST-TEST: Delete addresses by bulk actions \"after all\" hook in \"POST-TEST: Delete addresses by bulk actions\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bd215b04-0a4e-499a-ac92-ecb70512c61d", + "parentUUID": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Choose address POST-TEST: Delete addresses by bulk actions should login in BO", + "timedOut": false, + "duration": 1743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "630c6f2e-918a-4e6e-8bea-79179315c82c", + "parentUUID": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Orders - Create order : Choose address POST-TEST: Delete addresses by bulk actions should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_postTest_1_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29c8f31c-3ab6-4cd5-abc7-38109b311b55", + "parentUUID": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Choose address POST-TEST: Delete addresses by bulk actions should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_postTest_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7afa1835-e25e-4286-93bd-261cbcfcecab", + "parentUUID": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'lastname'", + "fullTitle": "BO - Orders - Create order : Choose address POST-TEST: Delete addresses by bulk actions should filter list by 'lastname'", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_postTest_1_filterToBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var address;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, 'input', filterBy, value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, 1, filterBy)];\n case 3:\n address = _a.sent();\n (0, chai_1.expect)(address).to.contains(value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca5cfd42-8932-43b2-9038-8183eb41c56e", + "parentUUID": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete addresses with bulk actions and check result", + "fullTitle": "BO - Orders - Create order : Choose address POST-TEST: Delete addresses by bulk actions should delete addresses with bulk actions and check result", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_postTest_1_bulkDeleteAddresses\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteAddresses', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.deleteAddressesBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(addresses_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "866ce018-da7c-4078-a599-e9a2681bce22", + "parentUUID": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Choose address POST-TEST: Delete addresses by bulk actions should reset all filters", + "timedOut": false, + "duration": 319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseAddress_postTest_1_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddressesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5896eb95-10e8-4af8-b93a-1988589feaf1", + "parentUUID": "1989dc57-63d8-4acd-be4c-d49a0d47df7b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "630c6f2e-918a-4e6e-8bea-79179315c82c", + "29c8f31c-3ab6-4cd5-abc7-38109b311b55", + "7afa1835-e25e-4286-93bd-261cbcfcecab", + "ca5cfd42-8932-43b2-9038-8183eb41c56e", + "866ce018-da7c-4078-a599-e9a2681bce22", + "5896eb95-10e8-4af8-b93a-1988589feaf1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10750, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cc57d312-3a51-4693-8627-aae80eb26e7d", + "title": "BO - Orders - Create order : Choose shipping", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Choose shipping\"", + "fullTitle": "BO - Orders - Create order : Choose shipping \"before all\" hook in \"BO - Orders - Create order : Choose shipping\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08b694cb-ac5e-461d-afd3-eb81acc2d4a8", + "parentUUID": "cc57d312-3a51-4693-8627-aae80eb26e7d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Choose shipping\"", + "fullTitle": "BO - Orders - Create order : Choose shipping \"after all\" hook in \"BO - Orders - Create order : Choose shipping\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2317cc9b-bc2d-4bb0-bf27-1d620bb63aaa", + "parentUUID": "cc57d312-3a51-4693-8627-aae80eb26e7d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5934fbda-0d3c-48a6-84f2-0c72ca0808f3", + "title": "PRE-TEST: Enable and configure gift options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Choose shipping PRE-TEST: Enable and configure gift options should login in BO", + "timedOut": false, + "duration": 1787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e328fc98-edf2-4f25-9a9f-fa18e11c9481", + "parentUUID": "5934fbda-0d3c-48a6-84f2-0c72ca0808f3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Orders - Create order : Choose shipping PRE-TEST: Enable and configure gift options should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89f6216b-2080-4a59-8339-4f3ab15eb8ab", + "parentUUID": "5934fbda-0d3c-48a6-84f2-0c72ca0808f3", + "isHook": false, + "skipped": false + }, + { + "title": "should configure gift options: price '€10' and tax 'FR Taux réduit (10%)", + "fullTitle": "BO - Orders - Create order : Choose shipping PRE-TEST: Enable and configure gift options should configure gift options: price '€10' and tax 'FR Taux réduit (10%)", + "timedOut": false, + "duration": 472, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_configureGiftOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'configureGiftOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGiftOptions(page, giftOptions.wantedStatus, giftOptions.price, giftOptions.tax, giftOptions.isRecyclablePackage)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80ab7f51-1c80-4d78-9e5b-5b0f393bf5d1", + "parentUUID": "5934fbda-0d3c-48a6-84f2-0c72ca0808f3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e328fc98-edf2-4f25-9a9f-fa18e11c9481", + "89f6216b-2080-4a59-8339-4f3ab15eb8ab", + "80ab7f51-1c80-4d78-9e5b-5b0f393bf5d1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7125, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0e748f2c-ac81-48ae-83f1-bb6dafacf65f", + "title": "Go to create order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Choose shipping Go to create order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4600, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5a12f0b-3a35-4089-9e98-02815cb3ee47", + "parentUUID": "0e748f2c-ac81-48ae-83f1-bb6dafacf65f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Choose shipping Go to create order page should go to create order page", + "timedOut": false, + "duration": 749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "632ed84a-a2ac-4f36-98a5-eaf59ddd0bbf", + "parentUUID": "0e748f2c-ac81-48ae-83f1-bb6dafacf65f", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Choose shipping Go to create order page should choose customer John DOE", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_chooseDefaultCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6164b625-812c-4760-948c-655b8802fe79", + "parentUUID": "0e748f2c-ac81-48ae-83f1-bb6dafacf65f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f5a12f0b-3a35-4089-9e98-02815cb3ee47", + "632ed84a-a2ac-4f36-98a5-eaf59ddd0bbf", + "6164b625-812c-4760-948c-655b8802fe79" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6244, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "046744da-48d8-47ce-8a5a-72824e93e044", + "title": "Choose shipping method", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that shipping block is not visible", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should check that shipping block is not visible", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkThatShippingBlockNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatShippingBlockNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.isShippingBlockVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Shipping block is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55caa419-092c-4a25-9c95-90cafa7d40f0", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should add product to cart", + "timedOut": false, + "duration": 2490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_1.default.demo_11.name, \" - \\u20AC\").concat(products_1.default.demo_11.price.toFixed(2));\n return [4 /*yield*/, add_1.default.addProductToCart(page, products_1.default.demo_11, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_11.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(products_1.default.demo_11.name),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f570d81c-21c4-4df3-bdc9-2f43e184056d", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should check that shipping block is visible", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should check that shipping block is visible", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkThatShippingBlockVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatShippingBlockVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.isShippingBlockVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Shipping block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc6f6197-ec6b-41ab-8cf4-79a47949ced5", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the carrier 'My carrier' and check shipping price", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should choose the carrier 'My carrier' and check shipping price", + "timedOut": false, + "duration": 2034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkShippingBlockContent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingPriceTTC;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingBlockContent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setDeliveryOption(page, \"\".concat(carriers_1.default.myCarrier.name, \" - Delivery next day!\"))];\n case 2:\n shippingPriceTTC = _a.sent();\n (0, chai_1.expect)(shippingPriceTTC).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.priceTTC.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4afed203-cdf6-41c8-9c77-ae2bb567713c", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should check summary block", + "timedOut": false, + "duration": 40, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxExc, totalTaxInc, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock1', baseContext)];\n case 1:\n _a.sent();\n totalTaxExc = (products_1.default.demo_12.priceTaxExcluded + carriers_1.default.myCarrier.price).toFixed(2);\n totalTaxInc = (products_1.default.demo_12.price + carriers_1.default.myCarrier.priceTTC).toFixed(2);\n return [4 /*yield*/, add_1.default.getSummaryDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalShipping).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.price.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(totalTaxExc)),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(totalTaxInc)),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3db5bde-0209-4b88-a9b0-bf436f4ed186", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should enable free shipping", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should enable free shipping", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_enableFreeShipping\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableFreeShipping', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setFreeShipping(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getShippingCost(page)];\n case 3:\n shippingPrice = _a.sent();\n (0, chai_1.expect)(shippingPrice).to.be.equal('€0.00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44a6dd7f-c258-4ac2-a817-2732b298f3a8", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should re-check summary block", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should re-check summary block", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSummaryDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(products_1.default.demo_12.price.toFixed(2))),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36666559-5763-4809-aa46-21123b094d89", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should enable 'Recycled packaging' and 'Gift' and add a gift message", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should enable 'Recycled packaging' and 'Gift' and add a gift message", + "timedOut": false, + "duration": 8138, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkSummaryBlock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setRecycledPackaging(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setGiftMessage(page, giftMessage)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.setGift(page, true)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b45d67c1-bd20-4ba0-b05f-f4113307ce4d", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should enable gift and re-check summary block", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should enable gift and re-check summary block", + "timedOut": false, + "duration": 3068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkSummaryBlock4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var tax, totalTaxExc, totalTaxInc, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setGift(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(giftOptions.price, 10)];\n case 3:\n tax = _a.sent();\n totalTaxExc = (products_1.default.demo_12.priceTaxExcluded + giftOptions.price).toFixed(2);\n totalTaxInc = (products_1.default.demo_12.price + giftOptions.price + tax).toFixed(2);\n return [4 /*yield*/, add_1.default.getSummaryDetails(page)];\n case 4:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(totalTaxExc)),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(totalTaxInc)),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1a8d864-6ad4-44b6-93d7-8b74df1f00c1", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should complete the order", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should complete the order", + "timedOut": false, + "duration": 1839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_completeOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'completeOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setSummaryAndCreateOrder(page, paymentMethodModuleName, orderStatus)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82948655-eaba-4f17-84ab-e0cae35d75a7", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Recycled packaging' and 'gift wrapping' badges", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should check 'Recycled packaging' and 'gift wrapping' badges", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkBadges\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var recyclePackagingBadge;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBadges', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 2)];\n case 2:\n recyclePackagingBadge = _a.sent();\n (0, chai_1.expect)(recyclePackagingBadge).to.contain('Recycled packaging')\n .and.to.contain('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c9f58a8-616c-409c-b569-84ae2a9cdc78", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift message", + "fullTitle": "BO - Orders - Create order : Choose shipping Choose shipping method should check the gift message", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_checkGiftMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var giftMessageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGiftMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getGiftMessage(page)];\n case 2:\n giftMessageText = _a.sent();\n (0, chai_1.expect)(giftMessageText).to.be.equal(giftMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47bb0dda-c978-4ba7-a786-1ab7581c4254", + "parentUUID": "046744da-48d8-47ce-8a5a-72824e93e044", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "55caa419-092c-4a25-9c95-90cafa7d40f0", + "f570d81c-21c4-4df3-bdc9-2f43e184056d", + "fc6f6197-ec6b-41ab-8cf4-79a47949ced5", + "4afed203-cdf6-41c8-9c77-ae2bb567713c", + "a3db5bde-0209-4b88-a9b0-bf436f4ed186", + "44a6dd7f-c258-4ac2-a817-2732b298f3a8", + "36666559-5763-4809-aa46-21123b094d89", + "b45d67c1-bd20-4ba0-b05f-f4113307ce4d", + "a1a8d864-6ad4-44b6-93d7-8b74df1f00c1", + "82948655-eaba-4f17-84ab-e0cae35d75a7", + "1c9f58a8-616c-409c-b569-84ae2a9cdc78", + "47bb0dda-c978-4ba7-a786-1ab7581c4254" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19709, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "05a4e300-4e73-4e6a-9aa7-6a88a83b8e46", + "title": "POST-TEST: Go back to default configuration of gift options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Go back to default configuration of gift options should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4578, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_goToOrderSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b9f7723-02e7-4d97-ac48-7d64c73b383d", + "parentUUID": "05a4e300-4e73-4e6a-9aa7-6a88a83b8e46", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to default configuration", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Go back to default configuration of gift options should go back to default configuration", + "timedOut": false, + "duration": 385, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_goBackDefaultConfigureGiftOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackDefaultConfigureGiftOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGiftOptions(page, defaultGiftOptions.wantedStatus, defaultGiftOptions.price, defaultGiftOptions.tax, defaultGiftOptions.isRecyclablePackage)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d354d2b1-b204-45b4-9bdd-c4b6b8e07ab2", + "parentUUID": "05a4e300-4e73-4e6a-9aa7-6a88a83b8e46", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1b9f7723-02e7-4d97-ac48-7d64c73b383d", + "d354d2b1-b204-45b4-9bdd-c4b6b8e07ab2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4963, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d91052c9-40d0-4cc6-aea2-89f4e8f49067", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/09_chooseShipping.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f49f583-5fc6-49a3-82b6-4f5d9bf615a5", + "parentUUID": "d91052c9-40d0-4cc6-aea2-89f4e8f49067", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0f2e9ee2-33e9-432b-89a2-6ff00ad53759", + "parentUUID": "d91052c9-40d0-4cc6-aea2-89f4e8f49067", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c94a4c05-f96f-40a4-89fd-24b996494348", + "parentUUID": "d91052c9-40d0-4cc6-aea2-89f4e8f49067", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3630, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d257aa8a-48ac-458d-80af-4ccc386914e4", + "parentUUID": "d91052c9-40d0-4cc6-aea2-89f4e8f49067", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dfc4ff7-7241-4c48-a0e7-a1db509182c2", + "parentUUID": "d91052c9-40d0-4cc6-aea2-89f4e8f49067", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fbb501d-ea4f-4063-8eb9-3757906793c4", + "parentUUID": "d91052c9-40d0-4cc6-aea2-89f4e8f49067", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Choose shipping POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_chooseShipping_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64ffce19-67e6-4b10-9b80-2bb43820660f", + "parentUUID": "d91052c9-40d0-4cc6-aea2-89f4e8f49067", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c94a4c05-f96f-40a4-89fd-24b996494348", + "d257aa8a-48ac-458d-80af-4ccc386914e4", + "1dfc4ff7-7241-4c48-a0e7-a1db509182c2", + "6fbb501d-ea4f-4063-8eb9-3757906793c4", + "64ffce19-67e6-4b10-9b80-2bb43820660f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11342, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ccf363a7-8e8b-4ba2-a6ef-f0a2c0126c53", + "title": "BO - Orders - Create order : Check summary", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Create order : Check summary\"", + "fullTitle": "BO - Orders - Create order : Check summary \"before all\" hook in \"BO - Orders - Create order : Check summary\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff230803-44c3-418b-8dc6-56b799c17c84", + "parentUUID": "ccf363a7-8e8b-4ba2-a6ef-f0a2c0126c53", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Create order : Check summary\"", + "fullTitle": "BO - Orders - Create order : Check summary \"after all\" hook in \"BO - Orders - Create order : Check summary\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b347dce3-9234-4ce1-9cf0-a503ab980602", + "parentUUID": "ccf363a7-8e8b-4ba2-a6ef-f0a2c0126c53", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "6e9ff135-59ee-472d-a75c-1d70e9a8c1e3", + "title": "PRE-TEST: Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Create cart rule \"before all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4c7ee23-106a-47e6-9fa7-24e123768d5e", + "parentUUID": "6e9ff135-59ee-472d-a75c-1d70e9a8c1e3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Create cart rule \"after all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "64c7730c-2e45-4b5a-bc79-5f72d894e26d", + "parentUUID": "6e9ff135-59ee-472d-a75c-1d70e9a8c1e3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Create cart rule should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8621b46d-caad-48b5-8719-7f7102fff119", + "parentUUID": "6e9ff135-59ee-472d-a75c-1d70e9a8c1e3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3630, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_preTest_1_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69b9f315-c122-499b-bccc-dd4075cdb82e", + "parentUUID": "6e9ff135-59ee-472d-a75c-1d70e9a8c1e3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Create cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_preTest_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71a4ae2d-513c-4165-9afa-4869e0c14e47", + "parentUUID": "6e9ff135-59ee-472d-a75c-1d70e9a8c1e3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_preTest_1_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ae90942-4b39-4747-aeb0-eb3b4637a1d0", + "parentUUID": "6e9ff135-59ee-472d-a75c-1d70e9a8c1e3", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Create cart rule should create new cart rule", + "timedOut": false, + "duration": 3804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_preTest_1_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26b0794d-8ca9-429d-a10d-c6efbd37c1b2", + "parentUUID": "6e9ff135-59ee-472d-a75c-1d70e9a8c1e3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8621b46d-caad-48b5-8719-7f7102fff119", + "69b9f315-c122-499b-bccc-dd4075cdb82e", + "71a4ae2d-513c-4165-9afa-4869e0c14e47", + "8ae90942-4b39-4747-aeb0-eb3b4637a1d0", + "26b0794d-8ca9-429d-a10d-c6efbd37c1b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11980, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "15dd5b3e-7d4f-4a47-a6a0-9c1ab16c9171", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b47b7254-156a-47b4-865a-5fe5201ca017", + "parentUUID": "15dd5b3e-7d4f-4a47-a6a0-9c1ab16c9171", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "36cf3f0c-3a02-4c7e-ad02-37c97a7938df", + "parentUUID": "15dd5b3e-7d4f-4a47-a6a0-9c1ab16c9171", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd9f9d76-0b08-44a3-9af4-b14f7f03e8e8", + "parentUUID": "15dd5b3e-7d4f-4a47-a6a0-9c1ab16c9171", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_preTest_2_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "387a3b50-6da3-4af4-a82a-c42ec2d83bfb", + "parentUUID": "15dd5b3e-7d4f-4a47-a6a0-9c1ab16c9171", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Orders - Create order : Check summary PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 636, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_preTest_2_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa0c630c-493d-4ecd-a1d4-f48dc8e337f5", + "parentUUID": "15dd5b3e-7d4f-4a47-a6a0-9c1ab16c9171", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cd9f9d76-0b08-44a3-9af4-b14f7f03e8e8", + "387a3b50-6da3-4af4-a82a-c42ec2d83bfb", + "fa0c630c-493d-4ecd-a1d4-f48dc8e337f5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7285, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b760bc7e-f90a-43bd-a447-55ef33bfe021", + "title": "Go to create order page and add a product to the cart", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Check summary Go to create order page and add a product to the cart should login in BO", + "timedOut": false, + "duration": 1747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b8bc053-970f-4828-835e-5da68a2ec56c", + "parentUUID": "b760bc7e-f90a-43bd-a447-55ef33bfe021", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Create order : Check summary Go to create order page and add a product to the cart should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d61d2db0-8193-4631-805c-e41203f2b55d", + "parentUUID": "b760bc7e-f90a-43bd-a447-55ef33bfe021", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create order page", + "fullTitle": "BO - Orders - Create order : Check summary Go to create order page and add a product to the cart should go to create order page", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_goToCreateOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToCreateOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77f97e79-e431-4593-921e-1511500a5ff8", + "parentUUID": "b760bc7e-f90a-43bd-a447-55ef33bfe021", + "isHook": false, + "skipped": false + }, + { + "title": "should choose customer John DOE", + "fullTitle": "BO - Orders - Create order : Check summary Go to create order page and add a product to the cart should choose customer John DOE", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_chooseDefaultCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCartsTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseDefaultCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchCustomer(page, customers_1.default.johnDoe.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseCustomer(page)];\n case 3:\n isCartsTableVisible = _a.sent();\n (0, chai_1.expect)(isCartsTableVisible, 'History block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63a2bd48-cb59-4b33-92ff-5b8d72b991fc", + "parentUUID": "b760bc7e-f90a-43bd-a447-55ef33bfe021", + "isHook": false, + "skipped": false + }, + { + "title": "should check that summary block is not visible", + "fullTitle": "BO - Orders - Create order : Check summary Go to create order page and add a product to the cart should check that summary block is not visible", + "timedOut": false, + "duration": 2002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkSummaryNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSummaryBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.isSummaryBlockVisible(page)];\n case 2:\n isSummaryBlockVisible = _a.sent();\n (0, chai_1.expect)(isSummaryBlockVisible, 'Summary block is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a1c73bb-899a-49dc-9282-3b3800ef9875", + "parentUUID": "b760bc7e-f90a-43bd-a447-55ef33bfe021", + "isHook": false, + "skipped": false + }, + { + "title": "should add to cart 'Mug The adventure begins'", + "fullTitle": "BO - Orders - Create order : Check summary Go to create order page and add a product to the cart should add to cart 'Mug The adventure begins'", + "timedOut": false, + "duration": 2483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_addStandardSimpleProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addStandardSimpleProduct', baseContext)];\n case 1:\n _a.sent();\n productToSelect = \"\".concat(products_1.default.demo_12.name, \" - \\u20AC\").concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2));\n return [4 /*yield*/, add_1.default.addProductToCart(page, products_1.default.demo_12, productToSelect)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_12.thumbImage),\n (0, chai_1.expect)(result.description).to.equal(products_1.default.demo_12.name),\n (0, chai_1.expect)(result.reference).to.equal(products_1.default.demo_12.reference),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_12.priceTaxExcluded),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5fd332c-9578-498d-ab84-f8de95a4285f", + "parentUUID": "b760bc7e-f90a-43bd-a447-55ef33bfe021", + "isHook": false, + "skipped": false + }, + { + "title": "should check that summary block is visible", + "fullTitle": "BO - Orders - Create order : Check summary Go to create order page and add a product to the cart should check that summary block is visible", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkSummaryVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSummaryBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.isSummaryBlockVisible(page)];\n case 2:\n isSummaryBlockVisible = _a.sent();\n (0, chai_1.expect)(isSummaryBlockVisible, 'Summary block is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f58facc-2f39-409f-9298-a4e92620d673", + "parentUUID": "b760bc7e-f90a-43bd-a447-55ef33bfe021", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2b8bc053-970f-4828-835e-5da68a2ec56c", + "d61d2db0-8193-4631-805c-e41203f2b55d", + "77f97e79-e431-4593-921e-1511500a5ff8", + "63a2bd48-cb59-4b33-92ff-5b8d72b991fc", + "3a1c73bb-899a-49dc-9282-3b3800ef9875", + "a5fd332c-9578-498d-ab84-f8de95a4285f", + "6f58facc-2f39-409f-9298-a4e92620d673" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12805, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b6d0b43c-cf86-48c9-80b7-c6192b475bfc", + "title": "Check summary block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "57f48c16-64ea-48db-b418-4a11e14854ab", + "title": "Check summary information", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Check summary information should check summary block", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_12.priceTaxExcluded, products_1.default.demo_12.tax)];\n case 2:\n totalTaxes = _a.sent();\n return [4 /*yield*/, add_1.default.getSummaryDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(products_1.default.demo_12.price.toFixed(2))),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f8c6deb-881c-4293-bacb-1bc0bdf897da", + "parentUUID": "57f48c16-64ea-48db-b418-4a11e14854ab", + "isHook": false, + "skipped": false + }, + { + "title": "should add for the created voucher with code", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Check summary information should add for the created voucher with code", + "timedOut": false, + "duration": 1071, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_searchVoucher1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherToSelect, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchVoucher1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.searchVoucher(page, cartRuleWithCodeData.name)];\n case 2:\n voucherToSelect = _a.sent();\n (0, chai_1.expect)(voucherToSelect).to.equal(\"\".concat(cartRuleWithCodeData.name, \" - \").concat(cartRuleWithCodeData.code));\n return [4 /*yield*/, add_1.default.getVoucherDetailsFromTable(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.contains(cartRuleWithCodeData.name),\n (0, chai_1.expect)(result.value).to.equal(cartRuleWithCodeData.discountAmount.value),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9460066a-5d1e-49b0-ae48-65b6b152286a", + "parentUUID": "57f48c16-64ea-48db-b418-4a11e14854ab", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Check summary information should check summary block", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, totalTaxExcluded, totalTaxIncluded, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_12.priceTaxExcluded - cartRuleWithCodeData.discountAmount.value, 20)];\n case 2:\n totalTaxes = _a.sent();\n totalTaxExcluded = products_1.default.demo_12.priceTaxExcluded - cartRuleWithCodeData.discountAmount.value;\n totalTaxIncluded = totalTaxes + totalTaxExcluded;\n return [4 /*yield*/, add_1.default.getSummaryDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal(\"-\\u20AC\".concat(cartRuleWithCodeData.discountAmount.value.toFixed(2))),\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(totalTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(totalTaxIncluded.toFixed(2))),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e6f256e-3b0d-4230-8c2a-e1abc52d43c7", + "parentUUID": "57f48c16-64ea-48db-b418-4a11e14854ab", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the voucher", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Check summary information should delete the voucher", + "timedOut": false, + "duration": 219, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_deleteVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVoucherTableNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.removeVoucher(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isVouchersTableNotVisible(page)];\n case 3:\n isVoucherTableNotVisible = _a.sent();\n (0, chai_1.expect)(isVoucherTableNotVisible, 'Vouchers table is visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73dc23e4-d23d-4d28-ad2d-a67f44d3379a", + "parentUUID": "57f48c16-64ea-48db-b418-4a11e14854ab", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Check summary information should check summary block", + "timedOut": false, + "duration": 38, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkSummaryBlock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxes, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(products_1.default.demo_12.priceTaxExcluded, products_1.default.demo_12.tax)];\n case 2:\n totalTaxes = _a.sent();\n return [4 /*yield*/, add_1.default.getSummaryDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalProducts).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalVouchers).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalShipping).to.equal('€0.00'),\n (0, chai_1.expect)(result.totalTaxes).to.equal(\"\\u20AC\".concat(totalTaxes.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(products_1.default.demo_12.priceTaxExcluded.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(products_1.default.demo_12.price.toFixed(2))),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "571a962b-b354-48c0-88cd-d105405bf85e", + "parentUUID": "57f48c16-64ea-48db-b418-4a11e14854ab", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the carrier 'My carrier'", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Check summary information should choose the carrier 'My carrier'", + "timedOut": false, + "duration": 2039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_chooseCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingPriceTTC;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setDeliveryOption(page, \"\".concat(carriers_1.default.myCarrier.name, \" - Delivery next day!\"))];\n case 2:\n shippingPriceTTC = _a.sent();\n (0, chai_1.expect)(shippingPriceTTC).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.priceTTC.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5414a959-438e-4f34-870d-40378dc1e88f", + "parentUUID": "57f48c16-64ea-48db-b418-4a11e14854ab", + "isHook": false, + "skipped": false + }, + { + "title": "should check summary block", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Check summary information should check summary block", + "timedOut": false, + "duration": 46, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkSummaryBlock4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalTaxExc, totalTaxInc, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSummaryBlock4', baseContext)];\n case 1:\n _a.sent();\n totalTaxExc = (products_1.default.demo_12.priceTaxExcluded + carriers_1.default.myCarrier.price).toFixed(2);\n totalTaxInc = (products_1.default.demo_12.price + carriers_1.default.myCarrier.priceTTC).toFixed(2);\n return [4 /*yield*/, add_1.default.getSummaryDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.totalShipping).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.price.toFixed(2))),\n (0, chai_1.expect)(result.totalTaxExcluded).to.equal(\"\\u20AC\".concat(totalTaxExc)),\n (0, chai_1.expect)(result.totalTaxIncluded).to.equal(\"Total (Tax incl.) \\u20AC\".concat(totalTaxInc)),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8abce2ee-233b-41e2-9314-2fda0c586856", + "parentUUID": "57f48c16-64ea-48db-b418-4a11e14854ab", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6f8c6deb-881c-4293-bacb-1bc0bdf897da", + "9460066a-5d1e-49b0-ae48-65b6b152286a", + "9e6f256e-3b0d-4230-8c2a-e1abc52d43c7", + "73dc23e4-d23d-4d28-ad2d-a67f44d3379a", + "571a962b-b354-48c0-88cd-d105405bf85e", + "5414a959-438e-4f34-870d-40378dc1e88f", + "8abce2ee-233b-41e2-9314-2fda0c586856" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3493, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5b0098a7-9910-4b37-999f-12d09688e620", + "title": "Test 'More actions' button", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should choose 'Send pre-filled order to the customer by email' from more actions", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'More actions' button should choose 'Send pre-filled order to the customer by email' from more actions", + "timedOut": false, + "duration": 396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_setMoreActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setMoreActions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setMoreActionsPreFilledOrder(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage, 'Invalid success message!').to.be.equal(add_1.default.emailSendSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eca4cd71-1154-4a47-8b12-41725b009947", + "parentUUID": "5b0098a7-9910-4b37-999f-12d09688e620", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'More actions' button should check if the mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkIfMailIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfMailIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.eq(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Process the payment of your order\"));\n (0, chai_1.expect)(newMail.text).to.contains('A new order has been generated on your behalf.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b702173d-ff00-4b7a-8a81-78f80d65fade", + "parentUUID": "5b0098a7-9910-4b37-999f-12d09688e620", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Proceed to checkout in the front office' from more actions", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'More actions' button should choose 'Proceed to checkout in the front office' from more actions", + "timedOut": false, + "duration": 1014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setMoreActionsProceedToCheckout(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage, 'Not redirected to checkout page!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34157064-43c6-45d2-9fe8-f437c2ac802a", + "parentUUID": "5b0098a7-9910-4b37-999f-12d09688e620", + "isHook": false, + "skipped": false + }, + { + "title": "should close the checkout page and go back to BO", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'More actions' button should close the checkout page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fo page not closed!').to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "499ddeff-df87-4f94-b73a-3405e4bd7c8a", + "parentUUID": "5b0098a7-9910-4b37-999f-12d09688e620", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eca4cd71-1154-4a47-8b12-41725b009947", + "b702173d-ff00-4b7a-8a81-78f80d65fade", + "34157064-43c6-45d2-9fe8-f437c2ac802a", + "499ddeff-df87-4f94-b73a-3405e4bd7c8a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1415, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bc34ae61-34bf-40b2-93db-8f631bdb16fd", + "title": "Test 'Create order' button", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set order message, click on create order and check that the order is not created", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'Create order' button should set order message, click on create order and check that the order is not created", + "timedOut": false, + "duration": 2132, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_clickOnCreateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isOrderCreated;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnCreateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderMessage(page, orderMessage)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnCreateOrderButton(page, false)];\n case 3:\n isOrderCreated = _a.sent();\n (0, chai_1.expect)(isOrderCreated, 'The order is created!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e48f70f9-2631-4322-af28-2402dc316498", + "parentUUID": "bc34ae61-34bf-40b2-93db-8f631bdb16fd", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method, click on create button then check that the order is not created", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'Create order' button should choose payment method, click on create button then check that the order is not created", + "timedOut": false, + "duration": 2179, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_clickOnCreateOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isOrderCreated;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnCreateOrder2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setPaymentMethod(page, paymentMethodModuleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnCreateOrderButton(page, false)];\n case 3:\n isOrderCreated = _a.sent();\n (0, chai_1.expect)(isOrderCreated, 'The order is created!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2497c0ca-0300-41a6-89da-4f1acc135e73", + "parentUUID": "bc34ae61-34bf-40b2-93db-8f631bdb16fd", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method, order status then click on create order and check that the order is create", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'Create order' button should choose payment method, order status then click on create order and check that the order is create", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_clickOnCreateOrder3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isOrderCreated;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnCreateOrder3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setPaymentMethod(page, paymentMethodModuleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderStatus(page, orderStatuses_1.default.paymentAccepted)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnCreateOrderButton(page, true)];\n case 4:\n isOrderCreated = _a.sent();\n (0, chai_1.expect)(isOrderCreated, 'The order is created!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5f25ed1-d412-4dc4-a0cc-b341896f0da2", + "parentUUID": "bc34ae61-34bf-40b2-93db-8f631bdb16fd", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the page displayed is view order page", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'Create order' button should check that the page displayed is view order page", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkOrder message\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrder message', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getPageTitle(page)];\n case 2:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'View order page is not displayed!').to.contain(messagesBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00bc6862-429a-4fec-93de-4d9372e5537e", + "parentUUID": "bc34ae61-34bf-40b2-93db-8f631bdb16fd", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the order message is displayed on view order page", + "fullTitle": "BO - Orders - Create order : Check summary Check summary block Test 'Create order' button should check that the order message is displayed on view order page", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_checkOrderMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getTextMessage(page, 1, 'customer')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage, 'Message is not correct!').to.contains(orderMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5debb538-fb66-4dc2-89a1-4789f0fb1d44", + "parentUUID": "bc34ae61-34bf-40b2-93db-8f631bdb16fd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e48f70f9-2631-4322-af28-2402dc316498", + "2497c0ca-0300-41a6-89da-4f1acc135e73", + "c5f25ed1-d412-4dc4-a0cc-b341896f0da2", + "00bc6862-429a-4fec-93de-4d9372e5537e", + "5debb538-fb66-4dc2-89a1-4789f0fb1d44" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6040, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a11ab971-e93d-4e94-b05a-503c48656f94", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a02226eb-1014-449f-bbd3-986311f4ea53", + "parentUUID": "a11ab971-e93d-4e94-b05a-503c48656f94", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3c2cddf9-b05f-43a1-9245-bc642c86552c", + "parentUUID": "a11ab971-e93d-4e94-b05a-503c48656f94", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dda241ba-ecce-4d6b-a5c3-a4a2a2436cdd", + "parentUUID": "a11ab971-e93d-4e94-b05a-503c48656f94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_postTest_1_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12e6c538-4dd1-46f4-8e7e-270066458adc", + "parentUUID": "a11ab971-e93d-4e94-b05a-503c48656f94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_postTest_1_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4342514-985d-4de4-b58d-3406e4eddf11", + "parentUUID": "a11ab971-e93d-4e94-b05a-503c48656f94", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_postTest_1_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5679c1a-558c-45c8-9d39-f2f5ca70f446", + "parentUUID": "a11ab971-e93d-4e94-b05a-503c48656f94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_postTest_1_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62ce5518-4b1d-4c36-aab1-952db99b1a91", + "parentUUID": "a11ab971-e93d-4e94-b05a-503c48656f94", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dda241ba-ecce-4d6b-a5c3-a4a2a2436cdd", + "12e6c538-4dd1-46f4-8e7e-270066458adc", + "a4342514-985d-4de4-b58d-3406e4eddf11", + "b5679c1a-558c-45c8-9d39-f2f5ca70f446", + "62ce5518-4b1d-4c36-aab1-952db99b1a91" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11413, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cc6675d4-0f4d-48fa-9831-84ec6010fd61", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/createOrders/10_checkSummary.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db828233-ce5e-4dac-9edf-36e82eda9008", + "parentUUID": "cc6675d4-0f4d-48fa-9831-84ec6010fd61", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dd460dc3-9d52-4ac0-a8bb-46b1878be569", + "parentUUID": "cc6675d4-0f4d-48fa-9831-84ec6010fd61", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08170cc1-acde-4267-996a-84c54dd03a0f", + "parentUUID": "cc6675d4-0f4d-48fa-9831-84ec6010fd61", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "876f60db-953f-4775-b64e-bf8790170b2f", + "parentUUID": "cc6675d4-0f4d-48fa-9831-84ec6010fd61", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Orders - Create order : Check summary POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 420, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_createOrders_checkSummary_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b37aa6ab-65f1-4c0a-b7ae-68480b768b4e", + "parentUUID": "cc6675d4-0f4d-48fa-9831-84ec6010fd61", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "08170cc1-acde-4267-996a-84c54dd03a0f", + "876f60db-953f-4775-b64e-bf8790170b2f", + "b37aa6ab-65f1-4c0a-b7ae-68480b768b4e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7085, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "80e5dd79-c906-4200-8688-61d5a2e62e2f", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 473, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b51939f-fb2e-4fe1-9d87-b5da2c588daa", + "parentUUID": "80e5dd79-c906-4200-8688-61d5a2e62e2f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 63, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebef191b-c1eb-4d38-a0f1-eebc379ced19", + "parentUUID": "80e5dd79-c906-4200-8688-61d5a2e62e2f", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f73dcd95-7dbe-49ce-a0aa-1d25892a3c17", + "parentUUID": "80e5dd79-c906-4200-8688-61d5a2e62e2f", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b1e3b33e-8e51-4e29-8f1c-16f95f574b4b", + "title": "BO - Orders - View and edit order : Check and edit customer block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Check and edit customer block\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block \"before all\" hook in \"BO - Orders - View and edit order : Check and edit customer block\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a4cffea-241b-463e-b8e9-d312d58d4969", + "parentUUID": "b1e3b33e-8e51-4e29-8f1c-16f95f574b4b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Check and edit customer block\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block \"after all\" hook in \"BO - Orders - View and edit order : Check and edit customer block\"", + "timedOut": false, + "duration": 21, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "907ba8cc-ba63-48a2-b851-c7806c294632", + "parentUUID": "b1e3b33e-8e51-4e29-8f1c-16f95f574b4b", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "7bf42948-fa6d-454d-b12f-e3f0c81e00f0", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "408b52ed-831d-4caa-a0c1-1cbf755d3983", + "parentUUID": "7bf42948-fa6d-454d-b12f-e3f0c81e00f0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "485cfdb2-df7a-4412-934e-0fd663d13430", + "parentUUID": "7bf42948-fa6d-454d-b12f-e3f0c81e00f0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 1814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "281bcb35-e481-4d12-8e6a-f13047857be7", + "parentUUID": "7bf42948-fa6d-454d-b12f-e3f0c81e00f0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1471, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_1_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26e854f0-100a-4bfa-8cda-6c61dddc19ab", + "parentUUID": "7bf42948-fa6d-454d-b12f-e3f0c81e00f0", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_1_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a28a0e9e-5557-478d-90f8-21fffb463b46", + "parentUUID": "7bf42948-fa6d-454d-b12f-e3f0c81e00f0", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 1975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_1_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c82bfce-f1ad-42c1-8b4b-aa7ca1f79fe4", + "parentUUID": "7bf42948-fa6d-454d-b12f-e3f0c81e00f0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "281bcb35-e481-4d12-8e6a-f13047857be7", + "26e854f0-100a-4bfa-8cda-6c61dddc19ab", + "a28a0e9e-5557-478d-90f8-21fffb463b46", + "0c82bfce-f1ad-42c1-8b4b-aa7ca1f79fe4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6554, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "title": "PRE-TEST: Create address on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO \"before all\" hook in \"PRE-TEST: Create address on FO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fa6a6c9-41c7-401e-b1a2-951733dc8e45", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO \"after all\" hook in \"PRE-TEST: Create address on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "476a0935-5e47-4987-9f0d-2a24450e1217", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should open FO page", + "timedOut": false, + "duration": 2454, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78844c7d-7c42-4139-adc5-2ba566dcbcdc", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should go to login page", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "036d916a-cfb1-4fe3-9ab1-675db662d47f", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should sign in with default customer", + "timedOut": false, + "duration": 561, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customerLoginData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7b4ab99-126a-4fd8-8f67-6ae7aece4871", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'My account' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should go to 'My account' page", + "timedOut": false, + "duration": 706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_2_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e547ff62-d4b3-422e-9b37-3575ea9b143e", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Addresses' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should go to 'Addresses' page", + "timedOut": false, + "duration": 741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_2_goToaddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToaddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToAddressesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.include(addresses_1.addressesPage.addressPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af9b4c39-6170-4e30-8952-ca8e46dc1a8e", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create address page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should go to create address page", + "timedOut": false, + "duration": 2020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_2_goToNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.openNewAddressForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.getHeaderTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(addAddress_1.addAddressPage.creationFormTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a756a72b-a98a-45b9-92b1-3685ee73e6a5", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": false, + "skipped": false + }, + { + "title": "should create address", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should create address", + "timedOut": false, + "duration": 1184, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_2_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.setAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.addressesPage.addAddressSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "463b8005-b4f2-4f62-9c57-557c437a362d", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should sign out from FO", + "timedOut": false, + "duration": 2049, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_2_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad341951-8a43-426a-851c-1e1c32e12a85", + "parentUUID": "2c3d0ada-f4b6-454a-b97d-b847d82a18c3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "78844c7d-7c42-4139-adc5-2ba566dcbcdc", + "036d916a-cfb1-4fe3-9ab1-675db662d47f", + "a7b4ab99-126a-4fd8-8f67-6ae7aece4871", + "e547ff62-d4b3-422e-9b37-3575ea9b143e", + "af9b4c39-6170-4e30-8952-ca8e46dc1a8e", + "a756a72b-a98a-45b9-92b1-3685ee73e6a5", + "463b8005-b4f2-4f62-9c57-557c437a362d", + "ad341951-8a43-426a-851c-1e1c32e12a85" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10424, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "025dffb3-2218-48d6-92b3-ed5951071aac", + "title": "PRE-TEST: Create address on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO \"before all\" hook in \"PRE-TEST: Create address on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6021e25-12f8-4f75-b158-3e93fd16d76d", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO \"after all\" hook in \"PRE-TEST: Create address on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "642ae563-3e9e-4a51-b290-24512889f6e9", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should open FO page", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f415d71-f35b-4095-8f48-6e97329cca9e", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should go to login page", + "timedOut": false, + "duration": 717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0407a394-455a-4ab5-8be1-080606ee4720", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should sign in with default customer", + "timedOut": false, + "duration": 545, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customerLoginData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d71867b-0737-4957-a187-32b4343cc2cf", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'My account' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should go to 'My account' page", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_3_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "887b189e-e62a-4cb5-94f4-7026515ad8b9", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Addresses' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should go to 'Addresses' page", + "timedOut": false, + "duration": 2698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_3_goToaddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToaddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToAddressesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.include(addresses_1.addressesPage.addressPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e7bee55-4f61-4ac4-9bc5-580b0020e1c7", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create address page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should go to create address page", + "timedOut": false, + "duration": 734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_3_goToNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.addressesPage.openNewAddressForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.getHeaderTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(addAddress_1.addAddressPage.creationFormTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "147eaf9e-cc96-4ee0-9554-a0ed75438345", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": false, + "skipped": false + }, + { + "title": "should create address", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should create address", + "timedOut": false, + "duration": 1157, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_3_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.setAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.addressesPage.addAddressSuccessfulMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95ed1ba3-1e11-4f0d-ae98-b8a89bf56f17", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create address on FO should sign out from FO", + "timedOut": false, + "duration": 2035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_3_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addAddress_1.addAddressPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b393d3f2-d11a-4829-bc05-1751c91632b6", + "parentUUID": "025dffb3-2218-48d6-92b3-ed5951071aac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6f415d71-f35b-4095-8f48-6e97329cca9e", + "0407a394-455a-4ab5-8be1-080606ee4720", + "6d71867b-0737-4957-a187-32b4343cc2cf", + "887b189e-e62a-4cb5-94f4-7026515ad8b9", + "8e7bee55-4f61-4ac4-9bc5-580b0020e1c7", + "147eaf9e-cc96-4ee0-9554-a0ed75438345", + "95ed1ba3-1e11-4f0d-ae98-b8a89bf56f17", + "b393d3f2-d11a-4829-bc05-1751c91632b6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10319, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08d36d56-8f15-4d49-9050-d1e4cb536b60", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c563694f-4f48-4169-81a5-84ace07ecee8", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_4_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6660051d-2997-42a6-a95a-4d457a870801", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_4_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b472d483-e8f5-45ab-b534-198e640f4cb9", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 544, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_4_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c29aaab-b235-4907-8789-adf8f5436f5a", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_4_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e73572cf-14ea-4aa6-ba62-86c0bd3034e4", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1138, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_4_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b73d40c0-0197-423e-ab25-3bdd352188ca", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_4_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bda47779-d13e-41e6-9254-aaa0ac7ea7cc", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_preTest_4_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e561d07-5280-4cda-b4ed-22528ac51536", + "parentUUID": "ec65e3b5-bcc8-40b9-9f0c-7954a70c892e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6660051d-2997-42a6-a95a-4d457a870801", + "b472d483-e8f5-45ab-b534-198e640f4cb9", + "3c29aaab-b235-4907-8789-adf8f5436f5a", + "e73572cf-14ea-4aa6-ba62-86c0bd3034e4", + "b73d40c0-0197-423e-ab25-3bdd352188ca", + "bda47779-d13e-41e6-9254-aaa0ac7ea7cc", + "0e561d07-5280-4cda-b4ed-22528ac51536" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13438, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "43d7505f-7391-424c-aec7-a07bffa57298", + "title": "Get customer ID and second address ID", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block Get customer ID and second address ID should login in BO", + "timedOut": false, + "duration": 6927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c622926-0db8-4e67-81b6-f5a5b22ffc8c", + "parentUUID": "43d7505f-7391-424c-aec7-a07bffa57298", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block Get customer ID and second address ID should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37aa908a-3916-44e5-a95b-db1f5adb78ce", + "parentUUID": "43d7505f-7391-424c-aec7-a07bffa57298", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block Get customer ID and second address ID should filter list by email", + "timedOut": false, + "duration": 1298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_2.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_2.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9394ae4-6d81-4cf4-9bd9-b46d43874660", + "parentUUID": "43d7505f-7391-424c-aec7-a07bffa57298", + "isHook": false, + "skipped": false + }, + { + "title": "should get the customer ID", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block Get customer ID and second address ID should get the customer ID", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_getCustomerID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getCustomerID', baseContext)];\n case 1:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, customers_2.default.getTextColumnFromTableCustomers(page, 1, 'id_customer')];\n case 2:\n customerID = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(customerID).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddb208f6-0c30-4947-9949-1f31050bd749", + "parentUUID": "43d7505f-7391-424c-aec7-a07bffa57298", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block Get customer ID and second address ID should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 3822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f4c67f6-d78b-4de9-aea1-66763dd7149f", + "parentUUID": "43d7505f-7391-424c-aec7-a07bffa57298", + "isHook": false, + "skipped": false + }, + { + "title": "should get the customer address ID", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block Get customer ID and second address ID should get the customer address ID", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_getCustomerAddressID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfAddressesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getCustomerAddressID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.filterAddresses(page, 'input', 'firstname', secondAddressData.firstName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterFilter).to.be.at.most(1);\n return [4 /*yield*/, addresses_1.default.getTextColumnFromTableAddresses(page, 1, 'id_address')];\n case 4:\n addressID = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff3ada64-e30b-4a52-857e-bc89bb441528", + "parentUUID": "43d7505f-7391-424c-aec7-a07bffa57298", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8c622926-0db8-4e67-81b6-f5a5b22ffc8c", + "37aa908a-3916-44e5-a95b-db1f5adb78ce", + "c9394ae4-6d81-4cf4-9bd9-b46d43874660", + "ddb208f6-0c30-4947-9949-1f31050bd749", + "8f4c67f6-d78b-4de9-aea1-66763dd7149f", + "ff3ada64-e30b-4a52-857e-bc89bb441528" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 18646, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7be1ea03-089c-4b45-aef9-563b5bf3c65e", + "title": "View order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e48db68d-f6f4-4e16-9def-b28381465996", + "parentUUID": "7be1ea03-089c-4b45-aef9-563b5bf3c65e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View order page should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a21ccac-a33a-4bcd-b8a7-40998b24e2de", + "parentUUID": "7be1ea03-089c-4b45-aef9-563b5bf3c65e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Wintheiser'", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View order page should filter the Orders table by 'Customer: Wintheiser'", + "timedOut": false, + "duration": 2510, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_filterTable2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterTable2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f138e688-28ea-4dfd-b165-bffb99b9a6be", + "parentUUID": "7be1ea03-089c-4b45-aef9-563b5bf3c65e", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View order page should view the order", + "timedOut": false, + "duration": 1139, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_orderPageCustomerBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageCustomerBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7f46e53-b80e-442f-96e8-be4c58a13d0d", + "parentUUID": "7be1ea03-089c-4b45-aef9-563b5bf3c65e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e48db68d-f6f4-4e16-9def-b28381465996", + "2a21ccac-a33a-4bcd-b8a7-40998b24e2de", + "f138e688-28ea-4dfd-b165-bffb99b9a6be", + "b7f46e53-b80e-442f-96e8-be4c58a13d0d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10484, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "title": "View customer block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check customer title, name, lastname, reference", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should check customer title, name, lastname, reference", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkCustomerInfo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerInfo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getCustomerInfoBlock(page)];\n case 2:\n customerInfo = _a.sent();\n (0, chai_1.expect)(customerInfo).to.contains(customerData.socialTitle);\n (0, chai_1.expect)(customerInfo).to.contains(customerData.firstName);\n (0, chai_1.expect)(customerInfo).to.contains(customerData.lastName);\n (0, chai_1.expect)(customerInfo).to.contains(customerID.toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3314995-882b-41b5-b838-5e8dfd2c9377", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer email address", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should check customer email address", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkCustomerEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getCustomerEmail(page)];\n case 2:\n customerEmail = _a.sent();\n (0, chai_1.expect)(customerEmail).to.contains(\"mailto:\".concat(customerData.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19ed2e2c-6da2-4067-bb12-c9c39e865a33", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of validated orders", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should check the number of validated orders", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkValidatedOrderNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkValidatedOrderNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getValidatedOrdersNumber(page)];\n case 2:\n customerEmail = _a.sent();\n (0, chai_1.expect)(customerEmail).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "512b0fe6-a30e-48ea-9a98-dda43e620e67", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shipping address", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should check the shipping address", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkShippingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getShippingAddress(page)];\n case 2:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress)\n .to.contain(firstAddressData.firstName)\n .and.to.contain(firstAddressData.lastName)\n .and.to.contain(firstAddressData.address)\n .and.to.contain(firstAddressData.postalCode)\n .and.to.contain(firstAddressData.city)\n .and.to.contain(firstAddressData.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e58c8802-6653-46cc-8875-29296c2500bf", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should check the invoice address", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should check the invoice address", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getInvoiceAddress(page)];\n case 2:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress)\n .to.contain(firstAddressData.firstName)\n .and.to.contain(firstAddressData.lastName)\n .and.to.contain(firstAddressData.address)\n .and.to.contain(firstAddressData.postalCode)\n .and.to.contain(firstAddressData.city)\n .and.to.contain(firstAddressData.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a826ed12-8d78-4a73-81f2-1e9e3604f75f", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should check that private note textarea is closed", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should check that private note textarea is closed", + "timedOut": false, + "duration": 2000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkPrivateNoteVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPrivateNoteVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.isPrivateNoteTextareaVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4e1cbe3-056b-4129-9de2-f6928110a638", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View full details' and check if the page is redirected to 'Customer' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should click on 'View full details' and check if the page is redirected to 'Customer' page", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_clickOnViewFullDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewFullDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.goToViewFullDetails(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d4ea511-edfb-4867-bf9b-e5a777e530c7", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to Orders page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should go back to Orders page", + "timedOut": false, + "duration": 3609, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_goBackToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58b3a67a-a791-40d6-b344-1066bf0494b3", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Wintheiser'", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should filter the Orders table by 'Customer: Wintheiser'", + "timedOut": false, + "duration": 1278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_filterTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f85cbcbe-39dc-4d3e-9e2f-52171910f635", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should view the order", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_orderPageCustomerBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageCustomerBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42dc2ad7-c83e-4002-b9f5-bb0bb6e5c5b5", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should edit existing shipping address and check it", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should edit existing shipping address and check it", + "timedOut": false, + "duration": 4905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_editShippingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editShippingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.editExistingShippingAddress(page, editShippingAddressData)];\n case 2:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress)\n .to.contain(editShippingAddressData.firstName)\n .and.to.contain(editShippingAddressData.lastName)\n .and.to.contain(editShippingAddressData.address)\n .and.to.contain(editShippingAddressData.postalCode)\n .and.to.contain(editShippingAddressData.city)\n .and.to.contain(editShippingAddressData.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4359ee91-84af-448e-bfaa-3fce25ca75ee", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should select another shipping address and check it", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should select another shipping address and check it", + "timedOut": false, + "duration": 1087, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_selectAnotherShippingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressToSelect, alertMessage, shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectAnotherShippingAddress', baseContext)];\n case 1:\n _a.sent();\n addressToSelect = \"#\".concat(addressID, \" \").concat(secondAddressData.alias, \" - \").concat(secondAddressData.address, \" \")\n + \"\".concat(secondAddressData.secondAddress, \" \").concat(secondAddressData.postalCode, \" \").concat(secondAddressData.city);\n return [4 /*yield*/, customerBlock_1.default.selectAnotherShippingAddress(page, addressToSelect)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.contains(customerBlock_1.default.successfulUpdateMessage);\n return [4 /*yield*/, customerBlock_1.default.getShippingAddress(page)];\n case 3:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress)\n .to.contain(secondAddressData.firstName)\n .and.to.contain(secondAddressData.lastName)\n .and.to.contain(secondAddressData.address)\n .and.to.contain(secondAddressData.postalCode)\n .and.to.contain(secondAddressData.city)\n .and.to.contain(secondAddressData.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcda427c-8a86-4a5d-83fe-a47610a01ceb", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should edit existing invoice address and check it", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should edit existing invoice address and check it", + "timedOut": false, + "duration": 4937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_editInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.editExistingInvoiceAddress(page, editInvoiceAddressData)];\n case 2:\n invoiceAddress = _a.sent();\n (0, chai_1.expect)(invoiceAddress)\n .to.contain(editInvoiceAddressData.firstName)\n .and.to.contain(editInvoiceAddressData.lastName)\n .and.to.contain(editInvoiceAddressData.address)\n .and.to.contain(editInvoiceAddressData.postalCode)\n .and.to.contain(editInvoiceAddressData.city)\n .and.to.contain(editInvoiceAddressData.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c75ef79-cd0f-43f5-bf8c-2071795ca4f0", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should select another invoice address and check it", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should select another invoice address and check it", + "timedOut": false, + "duration": 1034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_selectAnotherInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressToSelect, alertMessage, shippingAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectAnotherInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n addressToSelect = \"#\".concat(addressID, \" \").concat(secondAddressData.alias, \" - \").concat(secondAddressData.address, \" \")\n + \"\".concat(secondAddressData.secondAddress, \" \").concat(secondAddressData.postalCode, \" \").concat(secondAddressData.city);\n return [4 /*yield*/, customerBlock_1.default.selectAnotherInvoiceAddress(page, addressToSelect)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.contains(customerBlock_1.default.successfulUpdateMessage);\n return [4 /*yield*/, customerBlock_1.default.getInvoiceAddress(page)];\n case 3:\n shippingAddress = _a.sent();\n (0, chai_1.expect)(shippingAddress)\n .to.contain(secondAddressData.firstName)\n .and.to.contain(secondAddressData.lastName)\n .and.to.contain(secondAddressData.address)\n .and.to.contain(secondAddressData.postalCode)\n .and.to.contain(secondAddressData.city)\n .and.to.contain(secondAddressData.country);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bf2d082-272b-4044-8351-de533cf9fa2f", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should click on add new note and check that the textarea is visible", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should click on add new note and check that the textarea is visible", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkPrivateNoteTextarea\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPrivateNoteTextarea', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.clickAddNewPrivateNote(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.isPrivateNoteTextareaVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebd97bab-94fe-48ac-8d84-3597cbb2f55a", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to 'Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should go back to 'Orders' page", + "timedOut": false, + "duration": 3808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_goBackToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d4c71d0-63cb-46c0-ae0e-53f882466cde", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 1240, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_filterOrderTable2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrderTable2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a290984-08b9-4dfe-a440-55704c0c1477", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should view the 1st order for the default customer", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should view the 1st order for the default customer", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_orderPageCustomerBlock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageCustomerBlock3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e961423-844a-4925-b4d5-8c57f9fca9c6", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should add private note", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should add private note", + "timedOut": false, + "duration": 581, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_addPrivateNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPrivateNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.clickAddNewPrivateNote(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.setPrivateNote(page, privateNote)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f768acc2-727d-4b86-bf27-589ce9687368", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to 'Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should go back to 'Orders' page", + "timedOut": false, + "duration": 3879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_goBackToOrdersPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToOrdersPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "689e3473-beeb-4128-aa7c-5b9e13bd4b84", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Wintheiser'", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should filter the Orders table by 'Customer: Wintheiser'", + "timedOut": false, + "duration": 1277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_filterOrderTable3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrderTable3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c02d10e-bd5e-48c4-8f4f-5dd159006e39", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should view the order", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_orderPageCustomerBlock5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageCustomerBlock5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de3d0762-87c2-4227-bc4c-2bd720b6edfb", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should click on add new note and check that the textarea is visible", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should click on add new note and check that the textarea is visible", + "timedOut": false, + "duration": 79, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkPrivateNoteTextareaVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPrivateNoteTextareaVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.clickAddNewPrivateNote(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.isPrivateNoteTextareaVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86d6ef83-068a-45c5-a76f-62b9d8926726", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the private note is empty", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should check that the private note is empty", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkPrivateNoteTextNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var note;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPrivateNoteTextNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPrivateNoteContent(page)];\n case 2:\n note = _a.sent();\n (0, chai_1.expect)(note).to.not.equal(privateNote);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "051c6390-ce3c-4188-935a-882b3ee3861c", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to 'Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should go back to 'Orders' page", + "timedOut": false, + "duration": 3826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_goBackToOrdersPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToOrdersPage4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0be637d5-0b69-4731-a008-00d8c2bf711b", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 1239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_filterOrderTable4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrderTable4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82cd13be-38f9-4bf8-bf48-7d7685ea1bac", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should view the 2nd order for the default customer", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should view the 2nd order for the default customer", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_orderPageCustomerBlock4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageCustomerBlock4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88da3442-e560-4501-be75-0806942cf059", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the private note is not empty", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should check that the private note is not empty", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_checkPrivateNoteTextVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, note;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPrivateNoteTextVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.isPrivateNoteTextareaVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [4 /*yield*/, customerBlock_1.default.getPrivateNoteContent(page)];\n case 3:\n note = _a.sent();\n (0, chai_1.expect)(note).to.equal(privateNote);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8af2f2cf-9153-4f9a-af71-741fe54ad868", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + }, + { + "title": "should delete private note", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block View customer block should delete private note", + "timedOut": false, + "duration": 437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_deletePrivateNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deletePrivateNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.setPrivateNote(page, '')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e99dc3f6-5a9f-4d62-8ac0-827f6af2c946", + "parentUUID": "3d1a7474-c802-4194-8e8b-8190d09e8994", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e3314995-882b-41b5-b838-5e8dfd2c9377", + "19ed2e2c-6da2-4067-bb12-c9c39e865a33", + "512b0fe6-a30e-48ea-9a98-dda43e620e67", + "e58c8802-6653-46cc-8875-29296c2500bf", + "a826ed12-8d78-4a73-81f2-1e9e3604f75f", + "b4e1cbe3-056b-4129-9de2-f6928110a638", + "4d4ea511-edfb-4867-bf9b-e5a777e530c7", + "58b3a67a-a791-40d6-b344-1066bf0494b3", + "f85cbcbe-39dc-4d3e-9e2f-52171910f635", + "42dc2ad7-c83e-4002-b9f5-bb0bb6e5c5b5", + "4359ee91-84af-448e-bfaa-3fce25ca75ee", + "fcda427c-8a86-4a5d-83fe-a47610a01ceb", + "7c75ef79-cd0f-43f5-bf8c-2071795ca4f0", + "5bf2d082-272b-4044-8351-de533cf9fa2f", + "ebd97bab-94fe-48ac-8d84-3597cbb2f55a", + "7d4c71d0-63cb-46c0-ae0e-53f882466cde", + "2a290984-08b9-4dfe-a440-55704c0c1477", + "5e961423-844a-4925-b4d5-8c57f9fca9c6", + "f768acc2-727d-4b86-bf27-589ce9687368", + "689e3473-beeb-4128-aa7c-5b9e13bd4b84", + "5c02d10e-bd5e-48c4-8f4f-5dd159006e39", + "de3d0762-87c2-4227-bc4c-2bd720b6edfb", + "86d6ef83-068a-45c5-a76f-62b9d8926726", + "051c6390-ce3c-4188-935a-882b3ee3861c", + "0be637d5-0b69-4731-a008-00d8c2bf711b", + "82cd13be-38f9-4bf8-bf48-7d7685ea1bac", + "88da3442-e560-4501-be75-0806942cf059", + "8af2f2cf-9153-4f9a-af71-741fe54ad868", + "e99dc3f6-5a9f-4d62-8ac0-827f6af2c946" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 39903, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82f32150-0855-4d45-839c-1c4780ede572", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/01_customerBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2604fdb-516c-4ce2-84f8-e764a02f8fe2", + "parentUUID": "82f32150-0855-4d45-839c-1c4780ede572", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6eb7eee1-581c-40c6-99ad-7bfbf1da4b50", + "parentUUID": "82f32150-0855-4d45-839c-1c4780ede572", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09274dfe-2ebe-4176-8118-6153d3fcb6f7", + "parentUUID": "82f32150-0855-4d45-839c-1c4780ede572", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88f0f59b-cc62-4a0b-8143-26d09b53c500", + "parentUUID": "82f32150-0855-4d45-839c-1c4780ede572", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47e1a173-3997-4690-9b43-e6a8166bd541", + "parentUUID": "82f32150-0855-4d45-839c-1c4780ede572", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "165265d0-8172-4f5b-91e8-649a9c1a734a", + "parentUUID": "82f32150-0855-4d45-839c-1c4780ede572", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1641, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a267dd4-5ab1-48cd-9064-487bf8b31eb0", + "parentUUID": "82f32150-0855-4d45-839c-1c4780ede572", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders - View and edit order : Check and edit customer block POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_customerBlock_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9bdb6bd-8cec-4637-a199-c49a613b1fff", + "parentUUID": "82f32150-0855-4d45-839c-1c4780ede572", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "09274dfe-2ebe-4176-8118-6153d3fcb6f7", + "88f0f59b-cc62-4a0b-8143-26d09b53c500", + "47e1a173-3997-4690-9b43-e6a8166bd541", + "165265d0-8172-4f5b-91e8-649a9c1a734a", + "9a267dd4-5ab1-48cd-9064-487bf8b31eb0", + "d9bdb6bd-8cec-4637-a199-c49a613b1fff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10607, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "04a9ebd0-a24e-4778-9801-01848c6f639c", + "title": "BO - Orders - View and edit order : Check product block in view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Check product block in view order page\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page \"before all\" hook in \"BO - Orders - View and edit order : Check product block in view order page\"", + "timedOut": false, + "duration": 70, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b1a5d14-b0cc-4de8-b19e-092c027ae40e", + "parentUUID": "04a9ebd0-a24e-4778-9801-01848c6f639c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Check product block in view order page\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page \"after all\" hook in \"BO - Orders - View and edit order : Check product block in view order page\"", + "timedOut": false, + "duration": 18, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fbb0442e-bc81-45e7-92a1-45b7931a0070", + "parentUUID": "04a9ebd0-a24e-4778-9801-01848c6f639c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page should login in BO", + "timedOut": false, + "duration": 1844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0139de67-3ef3-4f78-b592-0e29ef9287f9", + "parentUUID": "04a9ebd0-a24e-4778-9801-01848c6f639c", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7447a5a4-ac2c-48ac-9820-b3efeafce6f8", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33e689d5-98c2-444d-859b-5cec3f813bff", + "parentUUID": "7447a5a4-ac2c-48ac-9820-b3efeafce6f8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5016c0c2-f9fd-442e-998c-893ba3274abb", + "parentUUID": "7447a5a4-ac2c-48ac-9820-b3efeafce6f8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "094a8723-ee85-4560-ab7c-02c94e392582", + "parentUUID": "7447a5a4-ac2c-48ac-9820-b3efeafce6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 5019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb80be54-337e-40af-b71e-032d67478420", + "parentUUID": "7447a5a4-ac2c-48ac-9820-b3efeafce6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_preTest_1_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21ef88f1-7fde-4378-b6f0-ee0451ca2be3", + "parentUUID": "7447a5a4-ac2c-48ac-9820-b3efeafce6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1619, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_preTest_1_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed76ff29-4aa5-4aa3-93ef-419a944c0c9f", + "parentUUID": "7447a5a4-ac2c-48ac-9820-b3efeafce6f8", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2503, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_preTest_1_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c69456e-2247-4d88-ace6-b24126196e8c", + "parentUUID": "7447a5a4-ac2c-48ac-9820-b3efeafce6f8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "094a8723-ee85-4560-ab7c-02c94e392582", + "cb80be54-337e-40af-b71e-032d67478420", + "21ef88f1-7fde-4378-b6f0-ee0451ca2be3", + "ed76ff29-4aa5-4aa3-93ef-419a944c0c9f", + "1c69456e-2247-4d88-ace6-b24126196e8c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11728, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f636f7a9-c972-44c2-8782-1a036f1d24af", + "title": "PRE-TEST: Enable Ecotax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable Ecotax\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Enable Ecotax \"before all\" hook in \"PRE-TEST: Enable Ecotax\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c5d8a03-f162-4dba-a148-1f7380ff71bd", + "parentUUID": "f636f7a9-c972-44c2-8782-1a036f1d24af", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable Ecotax\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Enable Ecotax \"after all\" hook in \"PRE-TEST: Enable Ecotax\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0dd77a25-2f8c-4ab0-99df-8b89488e3602", + "parentUUID": "f636f7a9-c972-44c2-8782-1a036f1d24af", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Enable Ecotax should login in BO", + "timedOut": false, + "duration": 1796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "006833ff-1e42-49bf-a5cc-28d273fc6882", + "parentUUID": "f636f7a9-c972-44c2-8782-1a036f1d24af", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Enable Ecotax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_preTest_2_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3009cf3-32fd-4dba-85b8-3189bde301b3", + "parentUUID": "f636f7a9-c972-44c2-8782-1a036f1d24af", + "isHook": false, + "skipped": false + }, + { + "title": "should enable ecotax", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Enable Ecotax should enable ecotax", + "timedOut": false, + "duration": 470, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_preTest_2_enableEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.enableEcoTax(page, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d98d732-c53b-40c2-bcf9-ed2f11c59d70", + "parentUUID": "f636f7a9-c972-44c2-8782-1a036f1d24af", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "006833ff-1e42-49bf-a5cc-28d273fc6882", + "c3009cf3-32fd-4dba-85b8-3189bde301b3", + "7d98d732-c53b-40c2-bcf9-ed2f11c59d70" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aedc9abb-8674-4f0a-99ee-dc3cdc7a5638", + "title": "PRE-TEST: Create 9 products in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2c652f1-c3b6-4eb4-b5a1-0dda0aef7e89", + "parentUUID": "aedc9abb-8674-4f0a-99ee-dc3cdc7a5638", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of products", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO should reset all filters and get number of products", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_resetFiltersBeforeCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersBeforeCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "334ac70b-51b5-4d6c-af25-b31bf8cde734", + "parentUUID": "aedc9abb-8674-4f0a-99ee-dc3cdc7a5638", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "82b8b0bd-4f23-4459-8e11-02f37dd55c6e", + "title": "Create product : 'Out of stock allowed TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Out of stock allowed TOTEST' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 246, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_clickOnNewProductButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab65e80c-7fe5-481c-b59e-a877c15b4d46", + "parentUUID": "82b8b0bd-4f23-4459-8e11-02f37dd55c6e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Out of stock allowed TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35843d29-2091-41ac-b049-cf0a9cbe7c4c", + "parentUUID": "82b8b0bd-4f23-4459-8e11-02f37dd55c6e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Out of stock allowed TOTEST' should go to new product page", + "timedOut": false, + "duration": 66, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70370d7a-4546-431b-a5b1-d2deb1c42475", + "parentUUID": "82b8b0bd-4f23-4459-8e11-02f37dd55c6e", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Out of stock allowed TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Out of stock allowed TOTEST' create product 'Out of stock allowed TOTEST'", + "timedOut": false, + "duration": 5948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61b65a6e-b4dc-4c56-8a82-91be0e6eb608", + "parentUUID": "82b8b0bd-4f23-4459-8e11-02f37dd55c6e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ab65e80c-7fe5-481c-b59e-a877c15b4d46", + "35843d29-2091-41ac-b049-cf0a9cbe7c4c", + "70370d7a-4546-431b-a5b1-d2deb1c42475", + "61b65a6e-b4dc-4c56-8a82-91be0e6eb608" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7130, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7fe50ec5-9f5a-4eee-967c-486187747a19", + "title": "Create product : 'Out of stock not allowed TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Out of stock not allowed TOTEST' should go to new product page", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a51e3e59-a5d9-48b4-847a-3cbef994e7e3", + "parentUUID": "7fe50ec5-9f5a-4eee-967c-486187747a19", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Out of stock not allowed TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 2507, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseProductType1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43156e58-e9d1-4e81-ad85-49840a84c54e", + "parentUUID": "7fe50ec5-9f5a-4eee-967c-486187747a19", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Out of stock not allowed TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Out of stock not allowed TOTEST' create product 'Out of stock not allowed TOTEST'", + "timedOut": false, + "duration": 4042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab63b368-47cb-4ac6-aa73-605ed82fa635", + "parentUUID": "7fe50ec5-9f5a-4eee-967c-486187747a19", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a51e3e59-a5d9-48b4-847a-3cbef994e7e3", + "43156e58-e9d1-4e81-ad85-49840a84c54e", + "ab63b368-47cb-4ac6-aa73-605ed82fa635" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6878, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eed82dca-69ed-4568-93c8-ff48d238178c", + "title": "Create product : 'Pack of products TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Pack of products TOTEST' should go to new product page", + "timedOut": false, + "duration": 332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5b78097-d75b-48ba-a557-1824efd6365c", + "parentUUID": "eed82dca-69ed-4568-93c8-ff48d238178c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'pack product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Pack of products TOTEST' should choose 'pack product'", + "timedOut": false, + "duration": 2491, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseProductType2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9c54073-76be-4f43-b7f5-f90a945158d3", + "parentUUID": "eed82dca-69ed-4568-93c8-ff48d238178c", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Pack of products TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Pack of products TOTEST' create product 'Pack of products TOTEST'", + "timedOut": false, + "duration": 6553, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b9175d9-639e-4326-a146-7589d8222bb2", + "parentUUID": "eed82dca-69ed-4568-93c8-ff48d238178c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b5b78097-d75b-48ba-a557-1824efd6365c", + "f9c54073-76be-4f43-b7f5-f90a945158d3", + "2b9175d9-639e-4326-a146-7589d8222bb2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9376, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7e6738fd-81f2-4a44-986c-a59e8a99799c", + "title": "Create product : 'Virtual product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Virtual product TOTEST' should go to new product page", + "timedOut": false, + "duration": 297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5063bf7d-ffe3-4194-af92-6ff7bb7833e4", + "parentUUID": "7e6738fd-81f2-4a44-986c-a59e8a99799c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'virtual product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Virtual product TOTEST' should choose 'virtual product'", + "timedOut": false, + "duration": 2610, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseProductType3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "456b2a05-c4a6-41fe-9b72-45819e66dd51", + "parentUUID": "7e6738fd-81f2-4a44-986c-a59e8a99799c", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Virtual product TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Virtual product TOTEST' create product 'Virtual product TOTEST'", + "timedOut": false, + "duration": 3848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bedaab83-a3fd-4653-a5a7-0000d036f0fe", + "parentUUID": "7e6738fd-81f2-4a44-986c-a59e8a99799c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5063bf7d-ffe3-4194-af92-6ff7bb7833e4", + "456b2a05-c4a6-41fe-9b72-45819e66dd51", + "bedaab83-a3fd-4653-a5a7-0000d036f0fe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6755, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1d200052-bd38-4aa2-9fe3-dfc54d733ff7", + "title": "Create product : 'Product with combination TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with combination TOTEST' should go to new product page", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "140d4aa3-3226-4661-851b-f91eb3e2f1c2", + "parentUUID": "1d200052-bd38-4aa2-9fe3-dfc54d733ff7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'combinations product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with combination TOTEST' should choose 'combinations product'", + "timedOut": false, + "duration": 2548, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseProductType4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4349f725-c39e-4aaf-9cb7-07485abadeff", + "parentUUID": "1d200052-bd38-4aa2-9fe3-dfc54d733ff7", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Product with combination TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with combination TOTEST' create product 'Product with combination TOTEST'", + "timedOut": false, + "duration": 4127, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5167f0c-d4b6-4f3f-a720-172052c588ff", + "parentUUID": "1d200052-bd38-4aa2-9fe3-dfc54d733ff7", + "isHook": false, + "skipped": false + }, + { + "title": "should create combinations and check generate combinations button", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with combination TOTEST' should create combinations and check generate combinations button", + "timedOut": false, + "duration": 2429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var generateCombinationsButton;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setProductAttributes(page, product.attributes)];\n case 2:\n generateCombinationsButton = _a.sent();\n (0, chai_1.expect)(generateCombinationsButton).to.equal(combinationsTab_1.default.generateCombinationsMessage(4));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bde61d3f-5d87-46db-9e6c-57d9b2caec34", + "parentUUID": "1d200052-bd38-4aa2-9fe3-dfc54d733ff7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on generate combinations button", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with combination TOTEST' should click on generate combinations button", + "timedOut": false, + "duration": 245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_generateCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulGenerateCombinationsMessage(4));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d874782-31ea-4210-8652-b8fed96d3179", + "parentUUID": "1d200052-bd38-4aa2-9fe3-dfc54d733ff7", + "isHook": false, + "skipped": false + }, + { + "title": "should close combinations generation modal", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with combination TOTEST' should close combinations generation modal", + "timedOut": false, + "duration": 6540, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_generateCombinationsModalIsClosed2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed, successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinationsModalIsClosed2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinationModalIsClosed(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.be.eq(true);\n return [4 /*yield*/, combinationsTab_1.default.editCombinationRowQuantity(page, 1, combinationProduct.quantity)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.saveCombinationsForm(page)];\n case 4:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulUpdateMessage);\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 5:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8d06ee8-4f76-4ed6-ba55-a9ebc53124c0", + "parentUUID": "1d200052-bd38-4aa2-9fe3-dfc54d733ff7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "140d4aa3-3226-4661-851b-f91eb3e2f1c2", + "4349f725-c39e-4aaf-9cb7-07485abadeff", + "a5167f0c-d4b6-4f3f-a720-172052c588ff", + "bde61d3f-5d87-46db-9e6c-57d9b2caec34", + "8d874782-31ea-4210-8652-b8fed96d3179", + "e8d06ee8-4f76-4ed6-ba55-a9ebc53124c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16224, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "201e4492-f4f2-45aa-b97e-df9a1fff1eac", + "title": "Create product : 'Simple product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Simple product TOTEST' should go to new product page", + "timedOut": false, + "duration": 334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "654dd62d-beca-4fd6-b2e8-4b6e9b331ffc", + "parentUUID": "201e4492-f4f2-45aa-b97e-df9a1fff1eac", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Simple product TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 2546, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseProductType5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c34878b6-93e6-4464-b380-2c44735f802b", + "parentUUID": "201e4492-f4f2-45aa-b97e-df9a1fff1eac", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Simple product TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Simple product TOTEST' create product 'Simple product TOTEST'", + "timedOut": false, + "duration": 4634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eae6069d-0fcb-4534-b23a-058355acacda", + "parentUUID": "201e4492-f4f2-45aa-b97e-df9a1fff1eac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "654dd62d-beca-4fd6-b2e8-4b6e9b331ffc", + "c34878b6-93e6-4464-b380-2c44735f802b", + "eae6069d-0fcb-4534-b23a-058355acacda" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7514, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "613a013e-e545-44ca-9be7-57d17ad786f7", + "title": "Create product : 'Product with specific price TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with specific price TOTEST' should go to new product page", + "timedOut": false, + "duration": 294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1db3253-4e31-4d89-a04c-6f4988a920c9", + "parentUUID": "613a013e-e545-44ca-9be7-57d17ad786f7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with specific price TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 2527, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseProductType6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "440482ee-5942-4a80-b624-ef5dc7ed4711", + "parentUUID": "613a013e-e545-44ca-9be7-57d17ad786f7", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Product with specific price TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with specific price TOTEST' create product 'Product with specific price TOTEST'", + "timedOut": false, + "duration": 6513, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c26c3995-4ca4-4bc3-b771-97080b57b645", + "parentUUID": "613a013e-e545-44ca-9be7-57d17ad786f7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f1db3253-4e31-4d89-a04c-6f4988a920c9", + "440482ee-5942-4a80-b624-ef5dc7ed4711", + "c26c3995-4ca4-4bc3-b771-97080b57b645" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9334, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7900769a-3e3c-47ea-97c0-4dc050bba0ff", + "title": "Create product : 'Product with ecotax TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with ecotax TOTEST' should go to new product page", + "timedOut": false, + "duration": 640, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5285c48-26e8-4a19-85b2-eaddea6b2f18", + "parentUUID": "7900769a-3e3c-47ea-97c0-4dc050bba0ff", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with ecotax TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 2536, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseProductType7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "928162c3-7831-4c5b-9265-38c478fc84ab", + "parentUUID": "7900769a-3e3c-47ea-97c0-4dc050bba0ff", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Product with ecotax TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with ecotax TOTEST' create product 'Product with ecotax TOTEST'", + "timedOut": false, + "duration": 6053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e99ec7df-da54-498e-9373-ca475078cf8c", + "parentUUID": "7900769a-3e3c-47ea-97c0-4dc050bba0ff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b5285c48-26e8-4a19-85b2-eaddea6b2f18", + "928162c3-7831-4c5b-9265-38c478fc84ab", + "e99ec7df-da54-498e-9373-ca475078cf8c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9229, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1e7c51ce-7a18-4fc1-9603-21e166a960d2", + "title": "Create product : 'Product with cart rule TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with cart rule TOTEST' should go to new product page", + "timedOut": false, + "duration": 362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewProductPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_2.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4c7a6dc-e4e6-4408-be13-5c4c4758d76c", + "parentUUID": "1e7c51ce-7a18-4fc1-9603-21e166a960d2", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with cart rule TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 2686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_chooseProductType8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6c5ef4d-24d5-429a-b5f9-ecfb9a1b46cd", + "parentUUID": "1e7c51ce-7a18-4fc1-9603-21e166a960d2", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Product with cart rule TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create product : 'Product with cart rule TOTEST' create product 'Product with cart rule TOTEST'", + "timedOut": false, + "duration": 4996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createProduct8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_2.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_2.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_2.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_2.default.successfulUpdateMessage);\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48641bb2-c297-4161-92c7-e810cec79a26", + "parentUUID": "1e7c51ce-7a18-4fc1-9603-21e166a960d2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4c7a6dc-e4e6-4408-be13-5c4c4758d76c", + "f6c5ef4d-24d5-429a-b5f9-ecfb9a1b46cd", + "48641bb2-c297-4161-92c7-e810cec79a26" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8044, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d4449c69-9570-46a9-9faf-1b88162b2103", + "title": "Create cart rule and apply the discount to : 'Product with cart rule TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create cart rule and apply the discount to : 'Product with cart rule TOTEST' should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 4198, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "941a171c-3c94-494d-b491-27b62e610580", + "parentUUID": "d4449c69-9570-46a9-9faf-1b88162b2103", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create cart rule and apply the discount to : 'Product with cart rule TOTEST' should go to new cart rule page", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc0ee5bf-0477-4fca-9fd0-379f8eff0e0f", + "parentUUID": "d4449c69-9570-46a9-9faf-1b88162b2103", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page PRE-TEST: Create 9 products in BO Create cart rule and apply the discount to : 'Product with cart rule TOTEST' should create new cart rule", + "timedOut": false, + "duration": 5009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, newCartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f48ac7b5-ee91-4470-aa38-1948f8869852", + "parentUUID": "d4449c69-9570-46a9-9faf-1b88162b2103", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "941a171c-3c94-494d-b491-27b62e610580", + "dc0ee5bf-0477-4fca-9fd0-379f8eff0e0f", + "f48ac7b5-ee91-4470-aa38-1948f8869852" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10088, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a2c652f1-c3b6-4eb4-b5a1-0dda0aef7e89", + "334ac70b-51b5-4d6c-af25-b31bf8cde734" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5031, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0b8d17ec-e4d6-4f06-b14f-98b03b7cd4b8", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4636, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cecdfb09-c437-4025-b822-ec21474476b7", + "parentUUID": "0b8d17ec-e4d6-4f06-b14f-98b03b7cd4b8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Go to view order page should reset all filters", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac596916-c5a2-4e55-99d0-8b8ac5aad9e8", + "parentUUID": "0b8d17ec-e4d6-4f06-b14f-98b03b7cd4b8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Cassin'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Go to view order page should filter the Orders table by 'Customer: Cassin'", + "timedOut": false, + "duration": 2388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_filterTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e0d8288-a009-4937-9ade-034d4c979286", + "parentUUID": "0b8d17ec-e4d6-4f06-b14f-98b03b7cd4b8", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Go to view order page should view the order", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_orderPageProductsBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageProductsBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "219e7d52-4985-4a00-a9fc-171ffc065130", + "parentUUID": "0b8d17ec-e4d6-4f06-b14f-98b03b7cd4b8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cecdfb09-c437-4025-b822-ec21474476b7", + "ac596916-c5a2-4e55-99d0-8b8ac5aad9e8", + "5e0d8288-a009-4937-9ade-034d4c979286", + "219e7d52-4985-4a00-a9fc-171ffc065130" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8827, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "653c92f7-b786-4aee-8394-0f3665369c6b", + "title": "Check product block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the ordered product", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block should delete the ordered product", + "timedOut": false, + "duration": 753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteProduct(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulDeleteProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dffcb15c-85bc-4468-a5a4-e93dfc4d24fa", + "parentUUID": "653c92f7-b786-4aee-8394-0f3665369c6b", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of products", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block should check number of products", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkNumberOfProducts0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productCount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductsNumber(page)];\n case 2:\n productCount = _a.sent();\n (0, chai_1.expect)(productCount).to.equal(productNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cb52404-b191-4213-bd7b-d8d7c41b528d", + "parentUUID": "653c92f7-b786-4aee-8394-0f3665369c6b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "2dd94dc9-0c33-4db0-ab94-ff18e9027d7c", + "title": "Add 'Simple product' 2 times and check the error message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Simple product TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Simple product' 2 times and check the error message should search for the product 'Simple product TOTEST'", + "timedOut": false, + "duration": 1045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchSimpleProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchSimpleProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, simpleProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.stockLocation).to.equal(simpleProduct.stockLocation),\n (0, chai_1.expect)(result.available).to.equal(simpleProduct.quantity - 1),\n (0, chai_1.expect)(result.price).to.equal(simpleProduct.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3b42c13-6842-45e0-86c1-668e43b4c2b9", + "parentUUID": "2dd94dc9-0c33-4db0-ab94-ff18e9027d7c", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Simple product' 2 times and check the error message should add the product to the cart", + "timedOut": false, + "duration": 4177, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addSimpleProductToTheCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addSimpleProductToTheCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56b4a693-3b0e-4e34-82fc-29f03ed57605", + "parentUUID": "2dd94dc9-0c33-4db0-ab94-ff18e9027d7c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Simple product' 2 times and check the error message should check the ordered product details", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkSimpleProductDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSimpleProductDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(simpleProduct.name),\n (0, chai_1.expect)(result.reference).to.equal(\"Reference number: \".concat(simpleProduct.reference)),\n (0, chai_1.expect)(result.basePrice).to.equal(simpleProduct.price),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.available).to.equal(simpleProduct.quantity - 1),\n (0, chai_1.expect)(result.total).to.equal(simpleProduct.price),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a48d9145-a338-40b2-8a2a-957f431581da", + "parentUUID": "2dd94dc9-0c33-4db0-ab94-ff18e9027d7c", + "isHook": false, + "skipped": false + }, + { + "title": "should add the same product and check the error message", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Simple product' 2 times and check the error message should add the same product and check the error message", + "timedOut": false, + "duration": 4694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_orderSimpleProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderSimpleProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, simpleProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.errorAddSameProduct);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "424deeee-2810-4496-9d54-efc40f4858e1", + "parentUUID": "2dd94dc9-0c33-4db0-ab94-ff18e9027d7c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Simple product' 2 times and check the error message should click on cancel button", + "timedOut": false, + "duration": 1067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_clickOncancelButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOncancelButton1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.cancelAddProductToCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isAddProductTableRowVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56b0e6ab-b45e-4b9e-b0d8-96f6f64dfe60", + "parentUUID": "2dd94dc9-0c33-4db0-ab94-ff18e9027d7c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d3b42c13-6842-45e0-86c1-668e43b4c2b9", + "56b4a693-3b0e-4e34-82fc-29f03ed57605", + "a48d9145-a338-40b2-8a2a-957f431581da", + "424deeee-2810-4496-9d54-efc40f4858e1", + "56b0e6ab-b45e-4b9e-b0d8-96f6f64dfe60" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11055, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b7c9466c-6788-4f29-baeb-1c8ff21e536c", + "title": "Add 'Standard product with combination'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Product with combination TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Standard product with combination' should search for the product 'Product with combination TOTEST'", + "timedOut": false, + "duration": 1009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchCombinationProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCombinationProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, combinationProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.available).to.equal(combinationProduct.quantity - 1),\n (0, chai_1.expect)(result.price).to.equal(combinationProduct.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a657598f-9e4a-46b2-b551-218927edede9", + "parentUUID": "b7c9466c-6788-4f29-baeb-1c8ff21e536c", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Standard product with combination' should add the product to the cart", + "timedOut": false, + "duration": 3124, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addCombinationProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCombinationProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72a932fd-2267-4aa2-bd44-f897bdec1710", + "parentUUID": "b7c9466c-6788-4f29-baeb-1c8ff21e536c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Standard product with combination' should check the ordered product details", + "timedOut": false, + "duration": 82, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkCombinationProductDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCombinationProductDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(\"\".concat(combinationProduct.name, \" (Size: \")\n + \"\".concat(combinationProduct.attributes[1].values[0], \" - Color: \").concat(combinationProduct.attributes[0].values[0], \")\")),\n (0, chai_1.expect)(result.reference).to.equal(\"Reference number: \".concat(combinationProduct.reference)),\n (0, chai_1.expect)(result.basePrice).to.equal(combinationProduct.price),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.available).to.equal(combinationProduct.quantity - 1),\n (0, chai_1.expect)(result.total).to.equal(combinationProduct.price),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea3c29eb-83ff-4c82-97e1-2c19e0254112", + "parentUUID": "b7c9466c-6788-4f29-baeb-1c8ff21e536c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a657598f-9e4a-46b2-b551-218927edede9", + "72a932fd-2267-4aa2-bd44-f897bdec1710", + "ea3c29eb-83ff-4c82-97e1-2c19e0254112" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4215, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c117b9a0-9dbd-418c-b5c9-dc13e38ed949", + "title": "Add 'Virtual product'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Virtual product TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Virtual product' should search for the product 'Virtual product TOTEST'", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, virtualProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.available).to.equal(virtualProduct.quantity - 1),\n (0, chai_1.expect)(result.price).to.equal(virtualProduct.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c31c23a0-030c-4ad1-92cb-e9a8becabaf8", + "parentUUID": "c117b9a0-9dbd-418c-b5c9-dc13e38ed949", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Virtual product' should add the product to the cart", + "timedOut": false, + "duration": 4153, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addVirtualProductToTheCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addVirtualProductToTheCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "047c11c9-479c-4d6b-b673-5aba22bfc31b", + "parentUUID": "c117b9a0-9dbd-418c-b5c9-dc13e38ed949", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Virtual product' should check the ordered product details", + "timedOut": false, + "duration": 88, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkVirtualProductDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkVirtualProductDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 2)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(virtualProduct.name),\n (0, chai_1.expect)(result.reference).to.equal(\"Reference number: \".concat(virtualProduct.reference)),\n (0, chai_1.expect)(result.basePrice).to.equal(virtualProduct.price),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.available).to.equal(virtualProduct.quantity - 1),\n (0, chai_1.expect)(result.total).to.equal(virtualProduct.price),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fe37109-be81-4fff-89c0-eeb41bf403ec", + "parentUUID": "c117b9a0-9dbd-418c-b5c9-dc13e38ed949", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c31c23a0-030c-4ad1-92cb-e9a8becabaf8", + "047c11c9-479c-4d6b-b673-5aba22bfc31b", + "8fe37109-be81-4fff-89c0-eeb41bf403ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5244, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "39b9b103-e268-4581-b58c-71a43dfdd422", + "title": "Add 'Pack of products'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Pack of products TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Pack of products' should search for the product 'Pack of products TOTEST'", + "timedOut": false, + "duration": 991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchPackOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchPackOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, packOfProducts.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.stockLocation).to.equal(packOfProducts.stockLocation),\n (0, chai_1.expect)(result.available).to.be.above(0),\n (0, chai_1.expect)(result.price).to.equal(packOfProducts.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32feb19f-05ba-402f-bce1-60014ffc8406", + "parentUUID": "39b9b103-e268-4581-b58c-71a43dfdd422", + "isHook": false, + "skipped": false + }, + { + "title": "should try to add the product to the cart and check the error message for the minimal quantity", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Pack of products' should try to add the product to the cart and check the error message for the minimal quantity", + "timedOut": false, + "duration": 3542, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addPackOfProductsToTheCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPackOfProductsToTheCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.errorMinimumQuantityMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b100844-7194-4a6e-8d16-82ac1a18a3b1", + "parentUUID": "39b9b103-e268-4581-b58c-71a43dfdd422", + "isHook": false, + "skipped": false + }, + { + "title": "should increase the quantity and check ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Pack of products' should increase the quantity and check ordered product details", + "timedOut": false, + "duration": 5754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkPackOfProductsDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPackOfProductsDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page, packOfProducts.minimumQuantity)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 3)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(packOfProducts.name),\n (0, chai_1.expect)(result.reference).to.equal(\"Reference number: \".concat(packOfProducts.reference)),\n (0, chai_1.expect)(result.basePrice).to.equal(packOfProducts.price),\n (0, chai_1.expect)(result.quantity).to.equal(packOfProducts.minimumQuantity),\n (0, chai_1.expect)(result.available).to.equal(packOfProducts.quantity - packOfProducts.minimumQuantity),\n (0, chai_1.expect)(result.total).to.equal(packOfProducts.price * packOfProducts.minimumQuantity),\n ])];\n case 4:\n _a.sent();\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2a151d3-7632-48f2-b0c8-b9894bddb784", + "parentUUID": "39b9b103-e268-4581-b58c-71a43dfdd422", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "32feb19f-05ba-402f-bce1-60014ffc8406", + "9b100844-7194-4a6e-8d16-82ac1a18a3b1", + "d2a151d3-7632-48f2-b0c8-b9894bddb784" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10287, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "67ee2b23-65b3-4098-934b-5e453d91cbff", + "title": "Add 'Customized product'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Customizable mug'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Customized product' should search for the product 'Customizable mug'", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchCustomizedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCustomizedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, products_2.default.demo_14.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.available).to.be.above(0),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_14.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71584c43-a865-4543-bc02-18ffc5a2b74a", + "parentUUID": "67ee2b23-65b3-4098-934b-5e453d91cbff", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Customized product' should add the product to the cart", + "timedOut": false, + "duration": 4157, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addCustomizedProductToTheCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCustomizedProductToTheCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6025a65a-bdc3-409c-871e-0205862415ef", + "parentUUID": "67ee2b23-65b3-4098-934b-5e453d91cbff", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Customized product' should check the ordered product details", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkCustomizedProductDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomizedProductDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 4)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_2.default.demo_14.name),\n (0, chai_1.expect)(result.reference).to.equal(\"Reference number: \".concat(products_2.default.demo_14.reference)),\n (0, chai_1.expect)(result.basePrice).to.equal(products_2.default.demo_14.price),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.total).to.equal(products_2.default.demo_14.price),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f6a41f7-f3a6-468c-8b02-8dcc51744b06", + "parentUUID": "67ee2b23-65b3-4098-934b-5e453d91cbff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "71584c43-a865-4543-bc02-18ffc5a2b74a", + "6025a65a-bdc3-409c-871e-0205862415ef", + "4f6a41f7-f3a6-468c-8b02-8dcc51744b06" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5188, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "459b06bc-8e86-48c6-bc31-48a4679fae70", + "title": "Add product 'Out of stock allowed'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Out of stock allowed TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add product 'Out of stock allowed' should search for the product 'Out of stock allowed TOTEST'", + "timedOut": false, + "duration": 1013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchProductOutOfStockAllowed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProductOutOfStockAllowed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, productOutOfStockAllowed.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.stockLocation).to.equal(productOutOfStockAllowed.stockLocation),\n (0, chai_1.expect)(result.available).to.equal(productOutOfStockAllowed.quantity - 1),\n (0, chai_1.expect)(result.price).to.equal(productOutOfStockAllowed.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca3e4cfd-3b05-4833-86c6-611a86f2c45e", + "parentUUID": "459b06bc-8e86-48c6-bc31-48a4679fae70", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add product 'Out of stock allowed' should add the product to the cart", + "timedOut": false, + "duration": 3646, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addProductOutOfStockAllowed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductOutOfStockAllowed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddd88996-020c-4560-91bf-9da08a827c22", + "parentUUID": "459b06bc-8e86-48c6-bc31-48a4679fae70", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add product 'Out of stock allowed' should check the ordered product details", + "timedOut": false, + "duration": 161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkProductOutOfStockAllowedDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductOutOfStockAllowedDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 4)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(productOutOfStockAllowed.name),\n (0, chai_1.expect)(result.basePrice).to.equal(productOutOfStockAllowed.price),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.available).to.equal(productOutOfStockAllowed.quantity - 1),\n (0, chai_1.expect)(result.total).to.equal(productOutOfStockAllowed.price),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2a808e0-9e80-4448-8413-efafbf970743", + "parentUUID": "459b06bc-8e86-48c6-bc31-48a4679fae70", + "isHook": false, + "skipped": false + }, + { + "title": "should update quantity of the product", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add product 'Out of stock allowed' should update quantity of the product", + "timedOut": false, + "duration": 2227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_updateQuantityOutOfStockAllowed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantityOutOfStockAllowed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.modifyProductQuantity(page, 1, newQuantity)];\n case 2:\n quantity = _a.sent();\n (0, chai_1.expect)(quantity, 'Quantity was not updated').to.equal(newQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c9b843b-3047-435f-9242-2d759073fa3a", + "parentUUID": "459b06bc-8e86-48c6-bc31-48a4679fae70", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca3e4cfd-3b05-4833-86c6-611a86f2c45e", + "ddd88996-020c-4560-91bf-9da08a827c22", + "c2a808e0-9e80-4448-8413-efafbf970743", + "0c9b843b-3047-435f-9242-2d759073fa3a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7047, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d09e57d4-9b38-4d74-a84a-6e8267801d82", + "title": "Add product 'Out of stock not allowed'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Out of stock not allowed TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add product 'Out of stock not allowed' should search for the product 'Out of stock not allowed TOTEST'", + "timedOut": false, + "duration": 998, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchProductOutOfStockNotAllowed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProductOutOfStockNotAllowed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, productOutOfStockNotAllowed.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.stockLocation).to.equal(productOutOfStockNotAllowed.stockLocation),\n (0, chai_1.expect)(result.available).to.equal(productOutOfStockNotAllowed.quantity - 1),\n (0, chai_1.expect)(result.price).to.equal(productOutOfStockNotAllowed.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be97fdbd-d48b-440b-8ccc-da97c0eb150b", + "parentUUID": "d09e57d4-9b38-4d74-a84a-6e8267801d82", + "isHook": false, + "skipped": false + }, + { + "title": "should check that add button is disabled", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add product 'Out of stock not allowed' should check that add button is disabled", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkThatAddButtonIsDisabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatAddButtonIsDisabled', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isAddButtonDisabled(page)];\n case 2:\n isDisabled = _a.sent();\n (0, chai_1.expect)(isDisabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0f280ce-37a7-4257-b9e4-644636f45668", + "parentUUID": "d09e57d4-9b38-4d74-a84a-6e8267801d82", + "isHook": false, + "skipped": false + }, + { + "title": "should increase the quantity of the product and check that cancel button still disabled", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add product 'Out of stock not allowed' should increase the quantity of the product and check that cancel button still disabled", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_updateQuantityOutOfStockNotAllowed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantityOutOfStockNotAllowed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addQuantity(page, newQuantity)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isAddButtonDisabled(page)];\n case 3:\n isDisabled = _a.sent();\n (0, chai_1.expect)(isDisabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72e0d6d7-60a4-4625-8923-d66399aa2149", + "parentUUID": "d09e57d4-9b38-4d74-a84a-6e8267801d82", + "isHook": false, + "skipped": false + }, + { + "title": "should click on cancel button", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add product 'Out of stock not allowed' should click on cancel button", + "timedOut": false, + "duration": 1072, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_clickOnCancelButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnCancelButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.cancelAddProductToCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isAddProductTableRowVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d713442-ba39-49f5-a611-1abd02c39137", + "parentUUID": "d09e57d4-9b38-4d74-a84a-6e8267801d82", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "be97fdbd-d48b-440b-8ccc-da97c0eb150b", + "d0f280ce-37a7-4257-b9e4-644636f45668", + "72e0d6d7-60a4-4625-8923-d66399aa2149", + "6d713442-ba39-49f5-a611-1abd02c39137" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2113, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3aa3f9d5-45cb-4fa9-af84-fc07328f4bdb", + "title": "Add 'Product with specific price'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Product with specific price TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with specific price' should search for the product 'Product with specific price TOTEST'", + "timedOut": false, + "duration": 998, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchProductWithSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProductWithSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, productWithSpecificPrice.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.available).to.be.above(0),\n (0, chai_1.expect)(result.price).to.equal(productWithSpecificPrice.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6e25ba1-4c89-474f-b714-93413434ad34", + "parentUUID": "3aa3f9d5-45cb-4fa9-af84-fc07328f4bdb", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with specific price' should add the product to the cart", + "timedOut": false, + "duration": 1348, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addProductWithSpecificPriceToTheCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductWithSpecificPriceToTheCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6afc378f-5519-489e-8060-fced9b11c1eb", + "parentUUID": "3aa3f9d5-45cb-4fa9-af84-fc07328f4bdb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with specific price' should check the ordered product details", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkProductWithSpecificPriceDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductWithSpecificPriceDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 6)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(productWithSpecificPrice.name),\n (0, chai_1.expect)(result.basePrice).to.equal(productWithSpecificPrice.price),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.available).to.equal(productWithSpecificPrice.quantity - 1),\n (0, chai_1.expect)(result.total).to.equal(productWithSpecificPrice.price),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40032e82-a510-4e54-937c-b096d8c5162e", + "parentUUID": "3aa3f9d5-45cb-4fa9-af84-fc07328f4bdb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a6e25ba1-4c89-474f-b714-93413434ad34", + "6afc378f-5519-489e-8060-fced9b11c1eb", + "40032e82-a510-4e54-937c-b096d8c5162e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2408, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4e840520-050d-441f-86f3-611f4870d7c5", + "title": "Add 'Product with eco tax'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Product with ecotax TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with eco tax' should search for the product 'Product with ecotax TOTEST'", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchProductWithEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProductWithEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, productWithEcoTax.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.stockLocation).to.equal(productWithEcoTax.stockLocation),\n (0, chai_1.expect)(result.available).to.be.above(0),\n (0, chai_1.expect)(result.price).to.equal(productWithEcoTax.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91dafd0d-c7d9-4944-bc45-ff8523d315a7", + "parentUUID": "4e840520-050d-441f-86f3-611f4870d7c5", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with eco tax' should add the product to the cart", + "timedOut": false, + "duration": 4140, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addProductWithEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductWithEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f889720-0b99-4bbc-9d86-6bd5db2e069a", + "parentUUID": "4e840520-050d-441f-86f3-611f4870d7c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with eco tax' should check the ordered product details", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkProductWithEcoTaxDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductWithEcoTaxDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 7)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(productWithEcoTax.name),\n (0, chai_1.expect)(result.basePrice).to.equal(productWithEcoTax.price),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.available).to.equal(productWithEcoTax.quantity - 1),\n (0, chai_1.expect)(result.total).to.equal(productWithEcoTax.price),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd0f1991-9c04-47a4-aaa8-656ef815c3b4", + "parentUUID": "4e840520-050d-441f-86f3-611f4870d7c5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "91dafd0d-c7d9-4944-bc45-ff8523d315a7", + "9f889720-0b99-4bbc-9d86-6bd5db2e069a", + "dd0f1991-9c04-47a4-aaa8-656ef815c3b4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5205, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "85511750-970b-458c-8751-ea4c9f15888b", + "title": "Add 'Product with cart rule'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Product with cart rule TOTEST'", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with cart rule' should search for the product 'Product with cart rule TOTEST'", + "timedOut": false, + "duration": 1014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_searchProductWithCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProductWithCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, productWithCartRule.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.stockLocation).to.equal(productWithCartRule.stockLocation),\n (0, chai_1.expect)(result.available).to.be.above(0),\n (0, chai_1.expect)(result.price).to.equal(productWithCartRule.price),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d556eb9-3d13-4517-a2f8-5c0ea0ed74c0", + "parentUUID": "85511750-970b-458c-8751-ea4c9f15888b", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with cart rule' should add the product to the cart", + "timedOut": false, + "duration": 4135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_addProductWithCartRuleToTheCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductWithCartRuleToTheCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n productNumber += 1;\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e38737ba-d982-4c8f-998e-3c0778fdf21f", + "parentUUID": "85511750-970b-458c-8751-ea4c9f15888b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Add 'Product with cart rule' should check the ordered product details", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkProductWithCartRuleDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductWithCartRuleDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 8)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(productWithCartRule.name),\n (0, chai_1.expect)(result.basePrice).to.equal(productWithCartRule.price),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.available).to.equal(productWithCartRule.quantity - 1),\n (0, chai_1.expect)(result.total).to.equal(productWithCartRule.price),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eeaa6c15-6450-49ed-8ac9-66c1667d651f", + "parentUUID": "85511750-970b-458c-8751-ea4c9f15888b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1d556eb9-3d13-4517-a2f8-5c0ea0ed74c0", + "e38737ba-d982-4c8f-998e-3c0778fdf21f", + "eeaa6c15-6450-49ed-8ac9-66c1667d651f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5213, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "64adf4fd-2d2a-4294-9257-4af13b94e257", + "title": "Update price and quantity of the first ordered product in the list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should update the quantity", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Update price and quantity of the first ordered product in the list should update the quantity", + "timedOut": false, + "duration": 1108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_updateQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.modifyProductQuantity(page, 1, newQuantity)];\n case 2:\n quantity = _a.sent();\n (0, chai_1.expect)(quantity, 'Quantity was not updated').to.equal(newQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84854885-34d3-472c-9926-979e0553200a", + "parentUUID": "64adf4fd-2d2a-4294-9257-4af13b94e257", + "isHook": false, + "skipped": false + }, + { + "title": "should update the price", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Update price and quantity of the first ordered product in the list should update the price", + "timedOut": false, + "duration": 1367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_updatePrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updatePrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.modifyProductPrice(page, 1, newPrice)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 1)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.basePrice, 'Base price was not updated').to.equal(newPrice),\n (0, chai_1.expect)(result.total, 'Total price was not updated').to.equal(newPrice * newQuantity),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f0ff9ed-a8ba-46d5-aba3-8c0fd0719b3a", + "parentUUID": "64adf4fd-2d2a-4294-9257-4af13b94e257", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "84854885-34d3-472c-9926-979e0553200a", + "7f0ff9ed-a8ba-46d5-aba3-8c0fd0719b3a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2475, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4b04ed95-1518-4ece-acd0-09805df7a7da", + "title": "Check items per page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check number of products", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Check items per page should check number of products", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productCount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductsNumber(page)];\n case 2:\n productCount = _a.sent();\n (0, chai_1.expect)(productCount).to.equal(productNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81f86fdf-d542-4ebd-8493-3acb4659ea95", + "parentUUID": "4b04ed95-1518-4ece-acd0-09805df7a7da", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "fe410ec0-8787-49b0-a6c1-b8615ca14cf9", + "title": "Paginate between pages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should display 8 items", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Check items per page Paginate between pages should display 8 items", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_displayDefaultItemsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNextLinkVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayDefaultItemsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.selectPaginationLimit(page, 8)];\n case 2:\n isNextLinkVisible = _a.sent();\n (0, chai_1.expect)(isNextLinkVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a5402a5-6f8c-4b56-a3bc-eac64250571b", + "parentUUID": "fe410ec0-8787-49b0-a6c1-b8615ca14cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Check items per page Paginate between pages should click on next", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0354a0dd-baba-4bbf-b3b5-9a6ccce2b511", + "parentUUID": "fe410ec0-8787-49b0-a6c1-b8615ca14cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Check items per page Paginate between pages should click on previous", + "timedOut": false, + "duration": 102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8cfc3f4-6331-44d0-bdfb-1858c1115726", + "parentUUID": "fe410ec0-8787-49b0-a6c1-b8615ca14cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should display 20 items", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Check items per page Paginate between pages should display 20 items", + "timedOut": false, + "duration": 1037, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_displayAllItems\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNextLinkVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayAllItems', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.selectPaginationLimit(page, 20)];\n case 2:\n isNextLinkVisible = _a.sent();\n (0, chai_1.expect)(isNextLinkVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57ff9150-d5f3-46e9-aad1-12814107aff4", + "parentUUID": "fe410ec0-8787-49b0-a6c1-b8615ca14cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should display 8 items", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page Check product block Check items per page Paginate between pages should display 8 items", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_redisplayDefaultItemsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNextLinkVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'redisplayDefaultItemsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.selectPaginationLimit(page, 8)];\n case 2:\n isNextLinkVisible = _a.sent();\n (0, chai_1.expect)(isNextLinkVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "984b576b-6fbc-45dd-bf5e-5792fe11a37d", + "parentUUID": "fe410ec0-8787-49b0-a6c1-b8615ca14cf9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5a5402a5-6f8c-4b56-a3bc-eac64250571b", + "0354a0dd-baba-4bbf-b3b5-9a6ccce2b511", + "b8cfc3f4-6331-44d0-bdfb-1858c1115726", + "57ff9150-d5f3-46e9-aad1-12814107aff4", + "984b576b-6fbc-45dd-bf5e-5792fe11a37d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1292, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "81f86fdf-d542-4ebd-8493-3acb4659ea95" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "dffcb15c-85bc-4468-a5a4-e93dfc4d24fa", + "4cb52404-b191-4213-bd7b-d8d7c41b528d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 758, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc46831b-6666-4754-b693-2ec21fee0968", + "parentUUID": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "40ba7973-813f-44de-9620-aeb745a6f036", + "parentUUID": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52409197-63f4-43d4-9050-391420071497", + "parentUUID": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5063, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28767c40-b39b-4f0a-8943-8d8209251a81", + "parentUUID": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f540c498-fb57-4070-948a-3bb8eb1c6066", + "parentUUID": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1185, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "255e40a3-fb49-49e6-9630-9be909f196d3", + "parentUUID": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abdcdbff-0f7b-4bf5-99cb-e9fd9f9f2c71", + "parentUUID": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 408, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83639cda-fcc2-4e4f-b33e-b20abeb2bc77", + "parentUUID": "11a3515a-1594-4281-a6f6-56ea81bf9f7d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "52409197-63f4-43d4-9050-391420071497", + "28767c40-b39b-4f0a-8943-8d8209251a81", + "f540c498-fb57-4070-948a-3bb8eb1c6066", + "255e40a3-fb49-49e6-9630-9be909f196d3", + "abdcdbff-0f7b-4bf5-99cb-e9fd9f9f2c71", + "83639cda-fcc2-4e4f-b33e-b20abeb2bc77" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12128, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "title": "POST-TEST: Bulk delete created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products \"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd1bd6d6-4b8e-4e36-8d6e-06369b0ab92e", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products \"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7ffe8fda-b73a-4ae2-a092-69f1854032a1", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should login in BO", + "timedOut": false, + "duration": 1801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2760920-93e2-4b8b-840f-9f3ff1bb83b7", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_2_goToProductsPageToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "914b2843-5cd8-47fa-8e2c-4d6d878f5142", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_2_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "571b74ee-12b3-42dd-8184-e5c46eb3d8c9", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Name' and check result", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should filter list by 'Name' and check result", + "timedOut": false, + "duration": 1328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_2_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productName, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f0f01e7-479f-4bf2-b0d6-971e875322c8", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + }, + { + "title": "should select the products", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should select the products", + "timedOut": false, + "duration": 40, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_2_selectProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5db19702-13ec-48e3-bb6c-8537369dd18f", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should click on bulk actions button", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_2_clickOnBulkActionsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBulkActionsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2b17f07-19a8-48e8-94c0-7e9ff752748d", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete products", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should bulk delete products", + "timedOut": false, + "duration": 1111, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_2_bulkDeleteProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" / \").concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a571b222-421f-4f86-9c2a-d28458c0dbb6", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should close progress modal", + "timedOut": false, + "duration": 258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_2_closeDeleteProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeDeleteProgressModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'delete')];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd9ce57a-ba59-4996-bfbf-526bd59c2dd4", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 2961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_2_checkNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductAfterBulkActions;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductAfterBulkActions = _a.sent();\n (0, chai_1.expect)(numberOfProductAfterBulkActions).to.be.equal(numberOfProducts - numberOfProductsAfterFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64874136-a8d9-4ebe-ad22-cd1cc8ab6160", + "parentUUID": "15f175c4-82cc-43fd-8988-4972aa888c6a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a2760920-93e2-4b8b-840f-9f3ff1bb83b7", + "914b2843-5cd8-47fa-8e2c-4d6d878f5142", + "571b74ee-12b3-42dd-8184-e5c46eb3d8c9", + "5f0f01e7-479f-4bf2-b0d6-971e875322c8", + "5db19702-13ec-48e3-bb6c-8537369dd18f", + "b2b17f07-19a8-48e8-94c0-7e9ff752748d", + "a571b222-421f-4f86-9c2a-d28458c0dbb6", + "cd9ce57a-ba59-4996-bfbf-526bd59c2dd4", + "64874136-a8d9-4ebe-ad22-cd1cc8ab6160" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11822, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19cc7c65-82d7-479f-ae7b-e2b759af0e6d", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c839fa7-ba2a-40c4-9832-66ea8fc9fbd2", + "parentUUID": "19cc7c65-82d7-479f-ae7b-e2b759af0e6d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2fefb942-5b32-46b9-937c-ae3d128ca309", + "parentUUID": "19cc7c65-82d7-479f-ae7b-e2b759af0e6d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74035476-1424-4e02-976c-449d88aed18c", + "parentUUID": "19cc7c65-82d7-479f-ae7b-e2b759af0e6d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_3_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05e144de-a6e3-4542-988a-d491ed6950a1", + "parentUUID": "19cc7c65-82d7-479f-ae7b-e2b759af0e6d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_3_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc2f6be7-eeaf-4c9f-8dec-98d4ed6b4fae", + "parentUUID": "19cc7c65-82d7-479f-ae7b-e2b759af0e6d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_3_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a56b64cd-1b6b-4514-9cbf-c32df1a52a6b", + "parentUUID": "19cc7c65-82d7-479f-ae7b-e2b759af0e6d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_3_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "070555df-8e61-4eee-b34c-a7d14bd1bc56", + "parentUUID": "19cc7c65-82d7-479f-ae7b-e2b759af0e6d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74035476-1424-4e02-976c-449d88aed18c", + "05e144de-a6e3-4542-988a-d491ed6950a1", + "dc2f6be7-eeaf-4c9f-8dec-98d4ed6b4fae", + "a56b64cd-1b6b-4514-9cbf-c32df1a52a6b", + "070555df-8e61-4eee-b34c-a7d14bd1bc56" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11462, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9a8e3951-6d6c-4cb8-af89-657bd660b56c", + "title": "POST-TEST: Disable Ecotax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/02_productBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable Ecotax\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Disable Ecotax \"before all\" hook in \"POST-TEST: Disable Ecotax\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b8e8780-a9cd-47ae-8c3b-a0885f40da98", + "parentUUID": "9a8e3951-6d6c-4cb8-af89-657bd660b56c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable Ecotax\"", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Disable Ecotax \"after all\" hook in \"POST-TEST: Disable Ecotax\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1ce1985b-bebe-4539-9d8b-e10272648dd3", + "parentUUID": "9a8e3951-6d6c-4cb8-af89-657bd660b56c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Disable Ecotax should login in BO", + "timedOut": false, + "duration": 1767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45d3bfb1-07a2-4db2-a368-c650b4a96a30", + "parentUUID": "9a8e3951-6d6c-4cb8-af89-657bd660b56c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Disable Ecotax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_4_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6cac00f-35de-4fb6-bb92-5cfa1e524424", + "parentUUID": "9a8e3951-6d6c-4cb8-af89-657bd660b56c", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Ecotax", + "fullTitle": "BO - Orders - View and edit order : Check product block in view order page POST-TEST: Disable Ecotax should disable Ecotax", + "timedOut": false, + "duration": 459, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_productBlock_postTest_4_disableEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.enableEcoTax(page, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5ca4c5a-315f-4942-b51b-99065fbed4b4", + "parentUUID": "9a8e3951-6d6c-4cb8-af89-657bd660b56c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "45d3bfb1-07a2-4db2-a368-c650b4a96a30", + "c6cac00f-35de-4fb6-bb92-5cfa1e524424", + "f5ca4c5a-315f-4942-b51b-99065fbed4b4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7161, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0139de67-3ef3-4f78-b592-0e29ef9287f9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1844, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0bb11620-457e-48e9-80c6-e63899bbfe6e", + "title": "BO - Orders - View and edit order : Check order status tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Check order status tab\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab \"before all\" hook in \"BO - Orders - View and edit order : Check order status tab\"", + "timedOut": false, + "duration": 59, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b234515-376b-4274-aaef-188f65d4e58c", + "parentUUID": "0bb11620-457e-48e9-80c6-e63899bbfe6e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Check order status tab\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab \"after all\" hook in \"BO - Orders - View and edit order : Check order status tab\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "28e4c7d7-c288-45ad-b2fa-48a1e2e0fe80", + "parentUUID": "0bb11620-457e-48e9-80c6-e63899bbfe6e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b2c863c4-cbbc-4a20-956e-81b904353002", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bc7e614-6213-47b0-b41e-2ef58a3c0c89", + "parentUUID": "b2c863c4-cbbc-4a20-956e-81b904353002", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2395a0f3-7239-45cb-8dea-33cc7b94a5f0", + "parentUUID": "b2c863c4-cbbc-4a20-956e-81b904353002", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d87c2f3b-03c9-4bf5-ae2d-2575dc494db1", + "parentUUID": "b2c863c4-cbbc-4a20-956e-81b904353002", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07c42234-7688-4662-88e0-92cf16bd5454", + "parentUUID": "b2c863c4-cbbc-4a20-956e-81b904353002", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fc3d37b-9340-4710-b850-5b95c79fce15", + "parentUUID": "b2c863c4-cbbc-4a20-956e-81b904353002", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d87c2f3b-03c9-4bf5-ae2d-2575dc494db1", + "07c42234-7688-4662-88e0-92cf16bd5454", + "7fc3d37b-9340-4710-b850-5b95c79fce15" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7472, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "06e8ad57-962d-4c8e-80e0-f25cdd179982", + "title": "PRE-TEST: Create employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create employee\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create employee \"before all\" hook in \"PRE-TEST: Create employee\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1e283a4-1ce1-43b9-bce8-5d86d510e0fd", + "parentUUID": "06e8ad57-962d-4c8e-80e0-f25cdd179982", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create employee\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create employee \"after all\" hook in \"PRE-TEST: Create employee\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "89dc593e-be8f-4195-afd3-7322b2dab39b", + "parentUUID": "06e8ad57-962d-4c8e-80e0-f25cdd179982", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create employee should login in BO", + "timedOut": false, + "duration": 1825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4637f9a0-24e2-4cfa-8c2d-a135145d818f", + "parentUUID": "06e8ad57-962d-4c8e-80e0-f25cdd179982", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_2_goToTeamPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTeamPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3a10acc-6ccb-4576-8a18-66baf46fc0ed", + "parentUUID": "06e8ad57-962d-4c8e-80e0-f25cdd179982", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of employees", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create employee should reset all filters and get number of employees", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_2_resetFilterEmployeeTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterEmployeeTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployees = _a.sent();\n (0, chai_1.expect)(numberOfEmployees).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcf73f7f-58d7-446f-8737-4d5c4bb51dd1", + "parentUUID": "06e8ad57-962d-4c8e-80e0-f25cdd179982", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new employee page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create employee should go to add new employee page", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_2_goToNewEmployeePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewEmployeePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.goToAddNewEmployeePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb0f5624-419d-4aab-bbaa-0fd21dbf657c", + "parentUUID": "06e8ad57-962d-4c8e-80e0-f25cdd179982", + "isHook": false, + "skipped": false + }, + { + "title": "should create employee and check result", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create employee should create employee and check result", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_2_createEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditEmployee(page, employeeData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1eb0e97a-a5b0-4b5a-9748-0d0fe00e41ec", + "parentUUID": "06e8ad57-962d-4c8e-80e0-f25cdd179982", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4637f9a0-24e2-4cfa-8c2d-a135145d818f", + "e3a10acc-6ccb-4576-8a18-66baf46fc0ed", + "fcf73f7f-58d7-446f-8737-4d5c4bb51dd1", + "eb0f5624-419d-4aab-bbaa-0fd21dbf657c", + "1eb0e97a-a5b0-4b5a-9748-0d0fe00e41ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9548, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e1f68009-c597-44dd-a4cb-5e331a747917", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9709396e-129a-4d56-af8b-cf2b5757bbb9", + "parentUUID": "e1f68009-c597-44dd-a4cb-5e331a747917", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e3f8cb8c-6b5b-4841-b697-85067af7f00c", + "parentUUID": "e1f68009-c597-44dd-a4cb-5e331a747917", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bc24231-a70e-4099-ad57-f61cab6b2319", + "parentUUID": "e1f68009-c597-44dd-a4cb-5e331a747917", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e4b65d2-1ee3-40d7-a79a-5fe7aa5e6c52", + "parentUUID": "e1f68009-c597-44dd-a4cb-5e331a747917", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_3_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adfa5ffe-339d-46c9-9151-7a81dd3fb063", + "parentUUID": "e1f68009-c597-44dd-a4cb-5e331a747917", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_3_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8238b33e-ada4-4f7f-a06a-9e8b58e85981", + "parentUUID": "e1f68009-c597-44dd-a4cb-5e331a747917", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2209, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_3_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "add4435c-deb1-4a84-8673-094efc879603", + "parentUUID": "e1f68009-c597-44dd-a4cb-5e331a747917", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6bc24231-a70e-4099-ad57-f61cab6b2319", + "7e4b65d2-1ee3-40d7-a79a-5fe7aa5e6c52", + "adfa5ffe-339d-46c9-9151-7a81dd3fb063", + "8238b33e-ada4-4f7f-a06a-9e8b58e85981", + "add4435c-deb1-4a84-8673-094efc879603" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11205, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24d79f71-51f1-4119-ab90-8e4ccaf3c1ca", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8a091217-c213-41e1-bc6e-4f2e67082794", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_4_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7881e15-48bc-4167-ab54-836558cc6fe2", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_4_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "096f1f2c-66ae-49c0-af2a-cb996d60806e", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_4_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39a21f53-1ff2-473d-8952-e611fe1e7f36", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_4_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3fdaf5b-2f43-4c54-a85c-25f2fc6b6abe", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1032, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_4_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a5c341b-6669-478f-93f4-a59c6cef72e0", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_4_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0a6e662-f2c7-4cde-aa34-250f19fafdcd", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Check order status tab PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_preTest_4_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6902ed0b-520f-4e4d-a83f-65ccf518f2c3", + "parentUUID": "a7db02c2-5815-48b3-9c6d-cd61dcc85141", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c7881e15-48bc-4167-ab54-836558cc6fe2", + "096f1f2c-66ae-49c0-af2a-cb996d60806e", + "39a21f53-1ff2-473d-8952-e611fe1e7f36", + "a3fdaf5b-2f43-4c54-a85c-25f2fc6b6abe", + "9a5c341b-6669-478f-93f4-a59c6cef72e0", + "b0a6e662-f2c7-4cde-aa34-250f19fafdcd", + "6902ed0b-520f-4e4d-a83f-65ccf518f2c3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13048, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1e45f597-55cb-4313-8a7d-7e5267f94b81", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO by default employee", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Go to view order page should login in BO by default employee", + "timedOut": false, + "duration": 1797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d438861b-f1e1-4c9a-b61b-ce36d3699220", + "parentUUID": "1e45f597-55cb-4313-8a7d-7e5267f94b81", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f479727-7410-4dda-bb21-a85c12ae2e85", + "parentUUID": "1e45f597-55cb-4313-8a7d-7e5267f94b81", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Go to view order page should reset all filters", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_resetOrderTableFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15e4e96c-f691-41da-ae57-42f35c3c1206", + "parentUUID": "1e45f597-55cb-4313-8a7d-7e5267f94b81", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Pouros'", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Go to view order page should filter the Orders table by 'Customer: Pouros'", + "timedOut": false, + "duration": 2384, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_filterByCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21279562-1c04-4f62-b31e-ca6c5f0be0f1", + "parentUUID": "1e45f597-55cb-4313-8a7d-7e5267f94b81", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Go to view order page should view the order", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_orderPageTabListBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38fd8236-94aa-498e-b388-3d3ec57430f0", + "parentUUID": "1e45f597-55cb-4313-8a7d-7e5267f94b81", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d438861b-f1e1-4c9a-b61b-ce36d3699220", + "2f479727-7410-4dda-bb21-a85c12ae2e85", + "15e4e96c-f691-41da-ae57-42f35c3c1206", + "21279562-1c04-4f62-b31e-ca6c5f0be0f1", + "38fd8236-94aa-498e-b388-3d3ec57430f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10890, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d6646b80-df47-4279-b354-da87e434fc8c", + "title": "Check history table after some edits by default employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the status number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should check that the status number is equal to 1", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkStatusNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusNumber(page)];\n case 2:\n statusNumber = _a.sent();\n (0, chai_1.expect)(statusNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f26e5798-2567-4487-b5db-cd0e86b88058", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Resend email'", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should click on 'Resend email'", + "timedOut": false, + "duration": 534, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_resendEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resendEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.resendEmail(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tabListBlock_1.default.validationSendMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ae3e9f4-df16-49a6-9d51-98df3de891fe", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should check if the mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkIfResetPasswordMailIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfResetPasswordMailIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains('[PrestaShop] Awaiting bank wire payment');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cc86d58-df0d-4d24-8015-5a91f17c7b6a", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on update status and check the error message", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should click on update status and check the error message", + "timedOut": false, + "duration": 433, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_clickOnUpdateStatusAndSeeTheErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnUpdateStatusAndSeeTheErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnUpdateStatus(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tabListBlock_1.default.errorAssignSameStatus);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6911fd8f-fb55-47a3-9c97-1a09e37082c9", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Canceled' and check it", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should change the order status to 'Canceled' and check it", + "timedOut": false, + "duration": 568, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_cancelOrderByStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'cancelOrderByStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.updateOrderStatus(page, orderStatuses_1.default.canceled.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36993550-57a4-4ba9-9150-3cee5dab42d4", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status number is equal to 2", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should check that the status number is equal to 2", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkStatusNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusNumber(page)];\n case 2:\n statusNumber = _a.sent();\n (0, chai_1.expect)(statusNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd353d94-6f4e-48f9-9266-fd9b73ec7841", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the status name from the table", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should check the status name from the table", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkStatusName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusName1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getTextColumnFromHistoryTable(page, 'status', 1)];\n case 2:\n statusName = _a.sent();\n (0, chai_1.expect)(statusName).to.be.equal(orderStatuses_1.default.canceled.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbbd03b3-e956-483c-b0fc-3f0203a7acd6", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the employee name from the table", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should check the employee name from the table", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkEmployeeName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var employeeName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmployeeName1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getTextColumnFromHistoryTable(page, 'employee', 1)];\n case 2:\n employeeName = _a.sent();\n (0, chai_1.expect)(employeeName).to.be.equal(\"\".concat(employees_1.default.DefaultEmployee.firstName, \" \").concat(employees_1.default.DefaultEmployee.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e3ef4a3-7c30-4094-96e4-8a1957c8eb0b", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the date from the table", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should check the date from the table", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkDate1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var date;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDate1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getTextColumnFromHistoryTable(page, 'date', 1)];\n case 2:\n date = _a.sent();\n (0, chai_1.expect)(date).to.contain(today);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6c3867e-9ae7-4aad-8b2d-20c8890dd6e5", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the order note is closed", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should check that the order note is closed", + "timedOut": false, + "duration": 102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkOrderNoteClosed1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderNoteClosed1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isOrderNoteOpened(page)];\n case 2:\n isOpened = _a.sent();\n (0, chai_1.expect)(isOpened).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2455e60-50e4-4f0c-b1f7-491d29e60783", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table after some edits by default employee should logout from BO", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c40dc72-a630-4a13-bbab-0da697bf93af", + "parentUUID": "d6646b80-df47-4279-b354-da87e434fc8c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f26e5798-2567-4487-b5db-cd0e86b88058", + "4ae3e9f4-df16-49a6-9d51-98df3de891fe", + "4cc86d58-df0d-4d24-8015-5a91f17c7b6a", + "6911fd8f-fb55-47a3-9c97-1a09e37082c9", + "36993550-57a4-4ba9-9150-3cee5dab42d4", + "dd353d94-6f4e-48f9-9266-fd9b73ec7841", + "bbbd03b3-e956-483c-b0fc-3f0203a7acd6", + "7e3ef4a3-7c30-4094-96e4-8a1957c8eb0b", + "d6c3867e-9ae7-4aad-8b2d-20c8890dd6e5", + "c2455e60-50e4-4f0c-b1f7-491d29e60783", + "9c40dc72-a630-4a13-bbab-0da697bf93af" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2422, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "edd30151-dd61-474a-9a19-448f7e7920b3", + "title": "Check history table and order note after some modifications by new employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login by new employee account", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should login by new employee account", + "timedOut": false, + "duration": 1521, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_loginWithNewEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginWithNewEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.successLogin(page, createEmployeeData.email, createEmployeeData.password)];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf70ea93-bea2-4142-b471-b84746555894", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c122a02-b596-4789-8512-c1ee7f86f793", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_resetOrderTableFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d3b96b8-534a-4e02-8e6e-0bc0c741cb27", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Pouros'", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should filter the Orders table by 'Customer: Pouros'", + "timedOut": false, + "duration": 2365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_filterByCustomer2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41f90f23-4bbe-4c85-a4cf-00dae7fa772b", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should view the order", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_orderPageTabListBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7770667-d383-4ae1-b363-61814a507f36", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Payment accepted'", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should change the order status to 'Payment accepted'", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_updateOrderStatusToAccepted\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatusToAccepted', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.updateOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e78f2a04-8e4d-429a-934b-3e7b05be9f71", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status number is equal to 3", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should check that the status number is equal to 3", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkStatusNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusNumber3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusNumber(page)];\n case 2:\n statusNumber = _a.sent();\n (0, chai_1.expect)(statusNumber).to.be.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a378b896-6ece-42c3-a33a-4b9e25eb9be0", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the status name from the table", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should check the status name from the table", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkStatusName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusName2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getTextColumnFromHistoryTable(page, 'status', 1)];\n case 2:\n statusName = _a.sent();\n (0, chai_1.expect)(statusName).to.be.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3a52d9d-5ed4-46b4-8ea3-03118235b831", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the employee name from the table", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should check the employee name from the table", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkEmployeeName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var employeeName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmployeeName2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getTextColumnFromHistoryTable(page, 'employee', 1)];\n case 2:\n employeeName = _a.sent();\n (0, chai_1.expect)(employeeName).to.be.equal(\"\".concat(createEmployeeData.firstName, \" \").concat(createEmployeeData.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c068645-179e-483b-8ea9-bf2ddbdd9f35", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the date from the table", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should check the date from the table", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkDate2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var date;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDate2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getTextColumnFromHistoryTable(page, 'date', 1)];\n case 2:\n date = _a.sent();\n (0, chai_1.expect)(date).to.contain(today);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f7ad7b5-6f79-4635-9c61-97d79902ec9a", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped'", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should change the order status to 'Shipped'", + "timedOut": false, + "duration": 563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_updateOrderStatusToShipped\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatusToShipped', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.updateOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4520b8ef-83f2-48fe-8cec-45c43d15697a", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status number is equal to 4", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should check that the status number is equal to 4", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkStatusNumber4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusNumber4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusNumber(page)];\n case 2:\n statusNumber = _a.sent();\n (0, chai_1.expect)(statusNumber).to.be.equal(4);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ca320a4-1364-44b9-bd8f-2b41ec849057", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the order note still closed", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should check that the order note still closed", + "timedOut": false, + "duration": 102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkOrderNoteClosed2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderNoteClosed2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isOrderNoteOpened(page)];\n case 2:\n isOpened = _a.sent();\n (0, chai_1.expect)(isOpened).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abab5e34-fd50-415b-add7-5ad1d134b68f", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should open the order note textarea", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should open the order note textarea", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_openOrderNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openOrderNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.openOrderNoteTextarea(page)];\n case 2:\n isOpened = _a.sent();\n (0, chai_1.expect)(isOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3899bdb-d72d-49b4-9323-c137c32f5a0a", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_goToOrdersPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4ee494b-3a91-41c0-8256-7bf8608a3790", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should reset all filters", + "timedOut": false, + "duration": 871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_resetOrderTableFilters3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5969565a-8487-4d08-8a28-9a0db451e8f5", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2366, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_filterByCustomer3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "440cbf99-da85-499f-9fda-fa06da15057b", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should view the order", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_orderPageTabListBlock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb56f804-e393-48dd-a9e1-9ac060b546ac", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the status number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should check that the status number is equal to 1", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkStatusNumber5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusNumber5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusNumber(page)];\n case 2:\n statusNumber = _a.sent();\n (0, chai_1.expect)(statusNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b15c01c-e90c-4c0f-a055-ac6002520c01", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should set an order note", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should set an order note", + "timedOut": false, + "duration": 633, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_setOrderNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setOrderNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setOrderNote(page, orderNote)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.updateSuccessfullMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0f4a6ab-342b-4b5d-8e43-1d6208a3c281", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_goToOrdersPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c47054d9-3607-42a8-ba2e-cecda520c9c2", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should reset all filters", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_resetOrderTableFilters4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26b458a3-5661-4a92-97b7-cc60ff7f0c2d", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Pouros'", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should filter the Orders table by 'Customer: Pouros'", + "timedOut": false, + "duration": 2359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_filterByCustomer4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customerData.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcbea5fb-6bbb-4a0c-a2c9-f459dd7cbe92", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should view the order", + "timedOut": false, + "duration": 868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_orderPageTabListBlock4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1163c53-47a0-478a-80f0-eac26e098cf7", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the order note is closed", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should check that the order note is closed", + "timedOut": false, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkOrderNoteClosed3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderNoteClosed3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isOrderNoteOpened(page)];\n case 2:\n isOpened = _a.sent();\n (0, chai_1.expect)(isOpened).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bb5fcfe-51f7-4d59-9890-40a03b234466", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Check history table and order note after some modifications by new employee should logout from BO", + "timedOut": false, + "duration": 692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ed6cb8f-9c65-4c6d-8489-6164a49fcaa4", + "parentUUID": "edd30151-dd61-474a-9a19-448f7e7920b3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cf70ea93-bea2-4142-b471-b84746555894", + "0c122a02-b596-4789-8512-c1ee7f86f793", + "1d3b96b8-534a-4e02-8e6e-0bc0c741cb27", + "41f90f23-4bbe-4c85-a4cf-00dae7fa772b", + "b7770667-d383-4ae1-b363-61814a507f36", + "e78f2a04-8e4d-429a-934b-3e7b05be9f71", + "a378b896-6ece-42c3-a33a-4b9e25eb9be0", + "e3a52d9d-5ed4-46b4-8ea3-03118235b831", + "0c068645-179e-483b-8ea9-bf2ddbdd9f35", + "9f7ad7b5-6f79-4635-9c61-97d79902ec9a", + "4520b8ef-83f2-48fe-8cec-45c43d15697a", + "9ca320a4-1364-44b9-bd8f-2b41ec849057", + "abab5e34-fd50-415b-add7-5ad1d134b68f", + "f3899bdb-d72d-49b4-9323-c137c32f5a0a", + "f4ee494b-3a91-41c0-8256-7bf8608a3790", + "5969565a-8487-4d08-8a28-9a0db451e8f5", + "440cbf99-da85-499f-9fda-fa06da15057b", + "fb56f804-e393-48dd-a9e1-9ac060b546ac", + "4b15c01c-e90c-4c0f-a055-ac6002520c01", + "c0f4a6ab-342b-4b5d-8e43-1d6208a3c281", + "c47054d9-3607-42a8-ba2e-cecda520c9c2", + "26b458a3-5661-4a92-97b7-cc60ff7f0c2d", + "bcbea5fb-6bbb-4a0c-a2c9-f459dd7cbe92", + "a1163c53-47a0-478a-80f0-eac26e098cf7", + "9bb5fcfe-51f7-4d59-9890-40a03b234466", + "5ed6cb8f-9c65-4c6d-8489-6164a49fcaa4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 32192, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4b2aaf83-f60f-4832-8d09-58b002135f26", + "title": "Delete order note by default employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login with default account", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Delete order note by default employee should login with default account", + "timedOut": false, + "duration": 1504, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "928b4624-7da7-426a-8680-9e6d7665ac19", + "parentUUID": "4b2aaf83-f60f-4832-8d09-58b002135f26", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Delete order note by default employee should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_goToOrdersPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1864955-afe8-45f4-a801-e7544bb36841", + "parentUUID": "4b2aaf83-f60f-4832-8d09-58b002135f26", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Delete order note by default employee should reset all filters", + "timedOut": false, + "duration": 942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_resetOrderTableFilters5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07eb98f8-5b4a-4d5b-b73e-96b2dc2a2635", + "parentUUID": "4b2aaf83-f60f-4832-8d09-58b002135f26", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Delete order note by default employee should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2394, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_filterTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "153066de-e6a7-4bad-a0e7-f1ae1483809e", + "parentUUID": "4b2aaf83-f60f-4832-8d09-58b002135f26", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Delete order note by default employee should view the order", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_orderPageTabListBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac03c6d1-47a9-4e27-974d-1eca8f145c2b", + "parentUUID": "4b2aaf83-f60f-4832-8d09-58b002135f26", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the order note is not empty", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Delete order note by default employee should check that the order note is not empty", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_checkOrderNoteEmpty\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderNote;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderNoteEmpty', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderNoteContent(page)];\n case 2:\n orderNote = _a.sent();\n (0, chai_1.expect)(orderNote).to.be.equal(orderNote);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38fc1bbd-3961-4e0f-92a5-2dc7b0fa9d16", + "parentUUID": "4b2aaf83-f60f-4832-8d09-58b002135f26", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the order note", + "fullTitle": "BO - Orders - View and edit order : Check order status tab Delete order note by default employee should delete the order note", + "timedOut": false, + "duration": 465, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_deleteOrderNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteOrderNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setOrderNote(page, '')];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.updateSuccessfullMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0376406a-ec20-4215-97f7-7542a6e07966", + "parentUUID": "4b2aaf83-f60f-4832-8d09-58b002135f26", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "928b4624-7da7-426a-8680-9e6d7665ac19", + "a1864955-afe8-45f4-a801-e7544bb36841", + "07eb98f8-5b4a-4d5b-b73e-96b2dc2a2635", + "153066de-e6a7-4bad-a0e7-f1ae1483809e", + "ac03c6d1-47a9-4e27-974d-1eca8f145c2b", + "38fc1bbd-3961-4e0f-92a5-2dc7b0fa9d16", + "0376406a-ec20-4215-97f7-7542a6e07966" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10787, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b0203c5f-c812-451e-9ca7-02b2b56f03eb", + "title": "POST-TEST: Delete employee", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete employee\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete employee \"before all\" hook in \"POST-TEST: Delete employee\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1825c774-a9e5-460e-9ea7-be48b79fa973", + "parentUUID": "b0203c5f-c812-451e-9ca7-02b2b56f03eb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete employee\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete employee \"after all\" hook in \"POST-TEST: Delete employee\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bb1a89b0-f756-48fe-8190-ef2f39890268", + "parentUUID": "b0203c5f-c812-451e-9ca7-02b2b56f03eb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete employee should login in BO", + "timedOut": false, + "duration": 1775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b7aaab1-49d8-4ab3-b625-160b384a7845", + "parentUUID": "b0203c5f-c812-451e-9ca7-02b2b56f03eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Team' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete employee should go to 'Advanced Parameters > Team' page", + "timedOut": false, + "duration": 3870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_1_goToEmployeesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmployeesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.teamLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(team_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "495933dc-673e-4f65-9117-070cf992640b", + "parentUUID": "b0203c5f-c812-451e-9ca7-02b2b56f03eb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list of employees by email", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete employee should filter list of employees by email", + "timedOut": false, + "duration": 992, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_1_filterEmployeesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterEmployeesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.filterEmployees(page, 'input', 'email', employeeData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, team_1.default.getTextColumnFromTable(page, 1, 'email')];\n case 3:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(employeeData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87cd752d-f29a-4bc2-a7cd-a01e52730147", + "parentUUID": "b0203c5f-c812-451e-9ca7-02b2b56f03eb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete employee", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete employee should delete employee", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_1_deleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.deleteEmployee(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(team_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3baa9db3-1a97-42d0-8f21-3ad5a93d861f", + "parentUUID": "b0203c5f-c812-451e-9ca7-02b2b56f03eb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of employees", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete employee should reset filter and check the number of employees", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_1_resetAfterDeleteEmployee\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmployeesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteEmployee', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, team_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfEmployeesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfEmployeesAfterDelete).to.be.equal(numberOfEmployees);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9aa25e32-84ce-4bcc-a3b1-a41040d46215", + "parentUUID": "b0203c5f-c812-451e-9ca7-02b2b56f03eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9b7aaab1-49d8-4ab3-b625-160b384a7845", + "495933dc-673e-4f65-9117-070cf992640b", + "87cd752d-f29a-4bc2-a7cd-a01e52730147", + "3baa9db3-1a97-42d0-8f21-3ad5a93d861f", + "9aa25e32-84ce-4bcc-a3b1-a41040d46215" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8401, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd239e14-9691-449d-a7f4-c0560b10ff82", + "parentUUID": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c104c4dc-48a9-4ef1-8f2d-58c2321165e9", + "parentUUID": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cd8497d-ac40-4508-8023-6eb98b66338f", + "parentUUID": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_2_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91c708fc-8117-4820-b5ea-ec7f917e1adf", + "parentUUID": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_2_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9bfbfc6-5ea3-46c4-8649-c121721a1c24", + "parentUUID": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_2_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff37f472-767c-49fd-bcc3-46346737a96e", + "parentUUID": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1566, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_2_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9fe2929-0bb1-445e-a6f6-8dc8711d73ca", + "parentUUID": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_2_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7fe94c6-f048-450e-b0a6-e00a54ecb5e4", + "parentUUID": "d2e41607-1d65-433a-bc85-bb591fcf7246", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0cd8497d-ac40-4508-8023-6eb98b66338f", + "91c708fc-8117-4820-b5ea-ec7f917e1adf", + "e9bfbfc6-5ea3-46c4-8649-c121721a1c24", + "ff37f472-767c-49fd-bcc3-46346737a96e", + "e9fe2929-0bb1-445e-a6f6-8dc8711d73ca", + "d7fe94c6-f048-450e-b0a6-e00a54ecb5e4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11843, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "61e6ccb8-e12b-4885-bea9-39f95323da30", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/03_statusTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6c8f1a4-b1e7-4ec0-96cf-7d53d28fe8f5", + "parentUUID": "61e6ccb8-e12b-4885-bea9-39f95323da30", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "62cc7ae3-e395-4d08-8dc7-ee4e47b8eb2c", + "parentUUID": "61e6ccb8-e12b-4885-bea9-39f95323da30", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab2132f0-3d4b-46af-ab88-c7aa1608fe44", + "parentUUID": "61e6ccb8-e12b-4885-bea9-39f95323da30", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_3_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9051bf6d-3d68-41ce-8d97-806af09730e8", + "parentUUID": "61e6ccb8-e12b-4885-bea9-39f95323da30", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Orders - View and edit order : Check order status tab POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 431, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_statusTab_postTest_3_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e7cae22-9bd7-4509-a758-ae5e803d8984", + "parentUUID": "61e6ccb8-e12b-4885-bea9-39f95323da30", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ab2132f0-3d4b-46af-ab88-c7aa1608fe44", + "9051bf6d-3d68-41ce-8d97-806af09730e8", + "9e7cae22-9bd7-4509-a758-ae5e803d8984" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7064, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fe3b6f91-1dd7-4d63-a6b0-a8e0a9d7c222", + "title": "BO - Orders - View and edit order : Check order documents tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Check order documents tab\"", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab \"before all\" hook in \"BO - Orders - View and edit order : Check order documents tab\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a4c93af-4506-4b36-a03a-b7e4e58412d8", + "parentUUID": "fe3b6f91-1dd7-4d63-a6b0-a8e0a9d7c222", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Check order documents tab\"", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab \"after all\" hook in \"BO - Orders - View and edit order : Check order documents tab\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6a9e47df-907b-401b-bb08-9d875e6cccf8", + "parentUUID": "fe3b6f91-1dd7-4d63-a6b0-a8e0a9d7c222", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c63e1759-2023-4799-8ebb-9b911fc35c0b", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4847fc10-a28c-4cb7-979b-0762b6b77c64", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f1fa1f5-a169-4fe0-bfd8-0ea0858dae0d", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c699cb1c-da77-416d-bcf6-37e3cdb8ebbe", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 520, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77ff4ed2-4ecb-4b7f-8f2d-33f4557b3e19", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85c20115-647a-41c6-9743-30f94423cb18", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dcea2de-0834-4aeb-82f2-a22a00a79230", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd73d6b7-87e0-4cc1-a469-030a0737cf17", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1529, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adbd5c92-a84a-4813-b75a-d8b605b4a848", + "parentUUID": "d2354d58-7b58-4a6f-8fea-2d77014f6edf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3f1fa1f5-a169-4fe0-bfd8-0ea0858dae0d", + "c699cb1c-da77-416d-bcf6-37e3cdb8ebbe", + "77ff4ed2-4ecb-4b7f-8f2d-33f4557b3e19", + "85c20115-647a-41c6-9743-30f94423cb18", + "5dcea2de-0834-4aeb-82f2-a22a00a79230", + "dd73d6b7-87e0-4cc1-a469-030a0737cf17", + "adbd5c92-a84a-4813-b75a-d8b605b4a848" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12957, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "41631411-6d27-40b6-9ef0-9fe22bd544f2", + "title": "Disable invoices", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Disable invoices should login in BO", + "timedOut": false, + "duration": 1742, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a33b3486-bd37-44ee-8a47-1e4db320db63", + "parentUUID": "41631411-6d27-40b6-9ef0-9fe22bd544f2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Disable invoices should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_goToInvoicesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e171d90a-a857-4871-85e9-b63ecf963ee7", + "parentUUID": "41631411-6d27-40b6-9ef0-9fe22bd544f2", + "isHook": false, + "skipped": false + }, + { + "title": "should disable invoices", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Disable invoices should disable invoices", + "timedOut": false, + "duration": 452, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_disableInvoices\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableInvoices', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableInvoices(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95445086-aed7-48af-944a-a231380445e3", + "parentUUID": "41631411-6d27-40b6-9ef0-9fe22bd544f2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a33b3486-bd37-44ee-8a47-1e4db320db63", + "e171d90a-a857-4871-85e9-b63ecf963ee7", + "95445086-aed7-48af-944a-a231380445e3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7074, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1fa0f962-1955-4faa-a3c4-10edf0a4c241", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dadc226a-868f-47b9-b3db-93e93c058268", + "parentUUID": "1fa0f962-1955-4faa-a3c4-10edf0a4c241", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Go to view order page should reset all filters", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_resetOrderTableFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "682df0e9-bcac-49e3-b0f8-00d74cabe084", + "parentUUID": "1fa0f962-1955-4faa-a3c4-10edf0a4c241", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_filterByCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1436cbb5-9c78-4625-92d9-897b14e0b440", + "parentUUID": "1fa0f962-1955-4faa-a3c4-10edf0a4c241", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Go to view order page should view the order", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_orderPageTabListBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a93044d-8d9c-4761-bacb-8d6c00680c96", + "parentUUID": "1fa0f962-1955-4faa-a3c4-10edf0a4c241", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dadc226a-868f-47b9-b3db-93e93c058268", + "682df0e9-bcac-49e3-b0f8-00d74cabe084", + "1436cbb5-9c78-4625-92d9-897b14e0b440", + "5a93044d-8d9c-4761-bacb-8d6c00680c96" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8880, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "409752c9-13fb-4846-91f2-fa8789143ddf", + "title": "Check generate invoice button", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Documents' tab", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check generate invoice button should click on 'Documents' tab", + "timedOut": false, + "duration": 63, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_displayDocumentsTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayDocumentsTab1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00626cc4-1959-4cae-81b1-44f814d1b877", + "parentUUID": "409752c9-13fb-4846-91f2-fa8789143ddf", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Generate invoice' button is not visible", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check generate invoice button should check that 'Generate invoice' button is not visible", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkGenerateInvoiceButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGenerateInvoiceButton1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isGenerateInvoiceButtonVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b33bde23-6b5c-48f8-be16-d7d9485531e3", + "parentUUID": "409752c9-13fb-4846-91f2-fa8789143ddf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "00626cc4-1959-4cae-81b1-44f814d1b877", + "b33bde23-6b5c-48f8-be16-d7d9485531e3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1066, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "50b25dc5-39e7-4826-b6f6-85899c59c993", + "title": "Enable invoices", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Enable invoices should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_goToInvoicesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f13ce172-d7b4-47f6-82df-d2f983ccdbe0", + "parentUUID": "50b25dc5-39e7-4826-b6f6-85899c59c993", + "isHook": false, + "skipped": false + }, + { + "title": "should enable invoices", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Enable invoices should enable invoices", + "timedOut": false, + "duration": 360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_enableInvoices\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableInvoices', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableInvoices(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f03e007-ae7f-4a6e-851b-ca02858a79c7", + "parentUUID": "50b25dc5-39e7-4826-b6f6-85899c59c993", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f13ce172-d7b4-47f6-82df-d2f983ccdbe0", + "2f03e007-ae7f-4a6e-851b-ca02858a79c7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5130, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "787e066d-ba56-4a91-8d58-a709bf0d728e", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57394173-f769-4306-a110-382b5813f24f", + "parentUUID": "787e066d-ba56-4a91-8d58-a709bf0d728e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Go to view order page should reset all filters", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_resetOrderTableFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33286432-f28d-4d88-a1a7-2b18f09b3b1a", + "parentUUID": "787e066d-ba56-4a91-8d58-a709bf0d728e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2347, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_filterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb0ef725-3c10-4c76-b4b1-eb89521c7c9a", + "parentUUID": "787e066d-ba56-4a91-8d58-a709bf0d728e", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Go to view order page should view the order", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_orderPageTabListBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42e9cc91-3fb9-415c-839c-0f44c438623a", + "parentUUID": "787e066d-ba56-4a91-8d58-a709bf0d728e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "57394173-f769-4306-a110-382b5813f24f", + "33286432-f28d-4d88-a1a7-2b18f09b3b1a", + "eb0ef725-3c10-4c76-b4b1-eb89521c7c9a", + "42e9cc91-3fb9-415c-839c-0f44c438623a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8855, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "title": "Check documents tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/04_documentsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Documents' tab", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should click on 'Documents' tab", + "timedOut": false, + "duration": 59, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_displayDocumentsTab2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayDocumentsTab2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3093c4ac-a12e-40cf-8674-32ab1f19f41b", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Generate invoice' button is visible", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check that 'Generate invoice' button is visible", + "timedOut": false, + "duration": 188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkGenerateInvoiceButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGenerateInvoiceButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isGenerateInvoiceButtonVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f277f93-9ae0-4ed9-a888-1a496a67f615", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that documents number is equal to 0", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check that documents number is equal to 0", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkDocumentsNumber0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentsNumber0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentsNumber(page)];\n case 2:\n documentsNumber = _a.sent();\n (0, chai_1.expect)(documentsNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b550fce5-21e9-44ad-9bb1-9a124f0157d5", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the message 'There is no available document'", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check the existence of the message 'There is no available document'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getTextColumnFromDocumentsTable(page, 'alert-available', 1)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(tabListBlock_1.default.noAvailableDocumentsMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42f9dcec-ec76-4ff4-bba2-1a9052927a6e", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Generate invoice' button", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should click on 'Generate invoice' button", + "timedOut": false, + "duration": 440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_create invoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'create invoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.generateInvoice(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bd5bcc2-0c9d-444a-a9cc-52c627add1bd", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that documents number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check that documents number is equal to 1", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkDocumentsNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentsNumber1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentsNumber(page)];\n case 2:\n documentsNumber = _a.sent();\n (0, chai_1.expect)(documentsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8597f1b3-9b69-47af-a62e-0adf689502a9", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check if 'Invoice' document is created", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check if 'Invoice' document is created", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkInvoiceDocument\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceDocument', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 1)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Invoice');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "968061f7-4de8-4c13-b11c-797e5ce0cf5b", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should download the 'Invoice' file", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should download the 'Invoice' file", + "timedOut": false, + "duration": 323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_downloadInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page, 1)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44ac69f3-6290-43ed-9fb9-3213517cb05b", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should add note", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should add note", + "timedOut": false, + "duration": 515, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_addNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setDocumentNote(page, note, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.updateSuccessfullMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65f7d255-9a5b-4c02-8712-f88eb8bfd1b2", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the button 'Edit note' is visible", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check that the button 'Edit note' is visible", + "timedOut": false, + "duration": 242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkEditNoteButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditNoteButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isEditDocumentNoteButtonVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a1f9dca-67e9-4380-ae89-011cb236a2e8", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete note", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should delete note", + "timedOut": false, + "duration": 485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_deleteNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setDocumentNote(page, '', 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.updateSuccessfullMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "634ea50b-4a00-4666-8b1b-092c2b3311d2", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the button 'Add note' is visible", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check that the button 'Add note' is visible", + "timedOut": false, + "duration": 249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkAddNoteButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddNoteButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isAddDocumentNoteButtonVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c036bf43-aacc-4b72-be6d-8f7a6ac2153c", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Enter payment' button", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should click on 'Enter payment' button", + "timedOut": false, + "duration": 61, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkPaymentButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var amountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEnterPaymentButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentAmountInputValue(page)];\n case 3:\n amountValue = _a.sent();\n (0, chai_1.expect)(amountValue).to.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56878462-f354-4c7f-8084-4e536157d347", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Payment accepted'", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should change the order status to 'Payment accepted'", + "timedOut": false, + "duration": 1780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_updateOrderStatusPaymentAccepted\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatusPaymentAccepted', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a2546ba-ad1d-4e65-b2eb-8c2204cc3a75", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the button 'Enter payment' is not visible", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check that the button 'Enter payment' is not visible", + "timedOut": false, + "duration": 1056, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkEnterPaymentButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEnterPaymentButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isEnterPaymentButtonVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0e1b836-0049-48bd-979d-7702cd73fbcd", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped'", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should change the order status to 'Shipped'", + "timedOut": false, + "duration": 1217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_updateOrderStatusShipped\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatusShipped', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c44020ff-3dfc-4b47-9828-58be0a776188", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that documents number is equal to 2", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check that documents number is equal to 2", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkDocumentsNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentsNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentsNumber(page)];\n case 2:\n documentsNumber = _a.sent();\n (0, chai_1.expect)(documentsNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a520d8e7-d7db-415e-a887-322ef094c49c", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check if 'Delivery slip' document is created", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check if 'Delivery slip' document is created", + "timedOut": false, + "duration": 249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkDeliverySlipDocument\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliverySlipDocument', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 3)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Delivery slip');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9558f15d-8b72-4a21-9ca6-0dcbef2f9aea", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should download 'Delivery slip' file", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should download 'Delivery slip' file", + "timedOut": false, + "duration": 311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_downloadDeliverySlip\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadDeliverySlip', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page, 3)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcf3a2a8-bc2c-4561-90a2-86ce12593ef7", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should create 'Partial refund'", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should create 'Partial refund'", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_createPartialRefund\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createPartialRefund', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "431b6c28-1fa4-4e2c-9f92-5a44002faf19", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check if 'Credit slip' document is created", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should check if 'Credit slip' document is created", + "timedOut": false, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_checkCreditSlipDocument\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreditSlipDocument', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Credit slip');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20b93971-9d8a-40a8-9ee5-a0eeaba859ef", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should download 'Credit slip' file", + "fullTitle": "BO - Orders - View and edit order : Check order documents tab Check documents tab should download 'Credit slip' file", + "timedOut": false, + "duration": 350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_documentsTab_downloadCreditSlip\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadCreditSlip', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page, 4)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f10a14ca-87dd-4003-832f-e6bd604fe9f0", + "parentUUID": "03031830-7b48-4ea1-9531-0dcecb414dc1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3093c4ac-a12e-40cf-8674-32ab1f19f41b", + "1f277f93-9ae0-4ed9-a888-1a496a67f615", + "b550fce5-21e9-44ad-9bb1-9a124f0157d5", + "42f9dcec-ec76-4ff4-bba2-1a9052927a6e", + "8bd5bcc2-0c9d-444a-a9cc-52c627add1bd", + "8597f1b3-9b69-47af-a62e-0adf689502a9", + "968061f7-4de8-4c13-b11c-797e5ce0cf5b", + "44ac69f3-6290-43ed-9fb9-3213517cb05b", + "65f7d255-9a5b-4c02-8712-f88eb8bfd1b2", + "4a1f9dca-67e9-4380-ae89-011cb236a2e8", + "634ea50b-4a00-4666-8b1b-092c2b3311d2", + "c036bf43-aacc-4b72-be6d-8f7a6ac2153c", + "56878462-f354-4c7f-8084-4e536157d347", + "7a2546ba-ad1d-4e65-b2eb-8c2204cc3a75", + "f0e1b836-0049-48bd-979d-7702cd73fbcd", + "c44020ff-3dfc-4b47-9828-58be0a776188", + "a520d8e7-d7db-415e-a887-322ef094c49c", + "9558f15d-8b72-4a21-9ca6-0dcbef2f9aea", + "dcf3a2a8-bc2c-4561-90a2-86ce12593ef7", + "431b6c28-1fa4-4e2c-9f92-5a44002faf19", + "20b93971-9d8a-40a8-9ee5-a0eeaba859ef", + "f10a14ca-87dd-4003-832f-e6bd604fe9f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8857, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa0c2db0-5c35-40a2-bf62-eec91b78a1d7", + "title": "BO - Orders - View and edit order : Check order carriers tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/05_carriersTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/05_carriersTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Check order carriers tab\"", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab \"before all\" hook in \"BO - Orders - View and edit order : Check order carriers tab\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97a832eb-4ebd-40c9-9e82-716a5156e170", + "parentUUID": "fa0c2db0-5c35-40a2-bf62-eec91b78a1d7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Check order carriers tab\"", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab \"after all\" hook in \"BO - Orders - View and edit order : Check order carriers tab\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "65236f32-87c2-40ff-9273-99c2ffb50e93", + "parentUUID": "fa0c2db0-5c35-40a2-bf62-eec91b78a1d7", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/05_carriersTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/05_carriersTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0107c30e-465f-4334-9876-95d1a8736b3b", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e220b1a3-eef9-4592-9264-29afce35ed3c", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb40878b-d23d-484e-ad08-12a87ca10a29", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93064e22-dfdc-46be-91ed-445000c7d239", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 521, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8d45a65-9f9f-469d-ab95-6ed54c3d3a86", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c498cf7b-0400-471b-a82a-be68521c064a", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a8ce342-ca1a-44a4-95e9-631c19de4c44", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30a3e3c2-25bd-48bc-a72b-40453ebd3939", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1553, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49956977-5120-4692-b683-8e57b15e5c49", + "parentUUID": "a7c5d11b-3247-43e4-88e8-2cb9b50aab03", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eb40878b-d23d-484e-ad08-12a87ca10a29", + "93064e22-dfdc-46be-91ed-445000c7d239", + "a8d45a65-9f9f-469d-ab95-6ed54c3d3a86", + "c498cf7b-0400-471b-a82a-be68521c064a", + "9a8ce342-ca1a-44a4-95e9-631c19de4c44", + "30a3e3c2-25bd-48bc-a72b-40453ebd3939", + "49956977-5120-4692-b683-8e57b15e5c49" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12991, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "212c4855-6d09-4ed2-a206-eeb8edba4848", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/05_carriersTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/05_carriersTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Go to view order page should login in BO", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7906a0d2-0966-4ceb-8452-8abb0d83b8ef", + "parentUUID": "212c4855-6d09-4ed2-a206-eeb8edba4848", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0c55c9a-62c2-4dae-80f5-948151ecbb79", + "parentUUID": "212c4855-6d09-4ed2-a206-eeb8edba4848", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Go to view order page should reset all filters", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_resetOrderTableFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c55ecff-58a3-4148-970f-1e2b4ac59ee9", + "parentUUID": "212c4855-6d09-4ed2-a206-eeb8edba4848", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_filterByCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2a8c110-026c-49fc-959a-aa2eeb492313", + "parentUUID": "212c4855-6d09-4ed2-a206-eeb8edba4848", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Go to view order page should view the order", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_orderPageTabListBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be9d86ba-eeed-46e7-80c1-b6bab4e9db0e", + "parentUUID": "212c4855-6d09-4ed2-a206-eeb8edba4848", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7906a0d2-0966-4ceb-8452-8abb0d83b8ef", + "b0c55c9a-62c2-4dae-80f5-948151ecbb79", + "1c55ecff-58a3-4148-970f-1e2b4ac59ee9", + "a2a8c110-026c-49fc-959a-aa2eeb492313", + "be9d86ba-eeed-46e7-80c1-b6bab4e9db0e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10774, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6719f519-db2e-43a0-8518-640cb916a766", + "title": "Check carriers tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/05_carriersTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/05_carriersTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Carriers' tab", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Check carriers tab should click on 'Carriers' tab", + "timedOut": false, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_displayCarriersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayCarriersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3947bd5-577b-4ba1-9a36-7a7f2b033a25", + "parentUUID": "6719f519-db2e-43a0-8518-640cb916a766", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the carriers number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Check carriers tab should check that the carriers number is equal to 1", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_checkCarriersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriersNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarriersNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getCarriersNumber(page)];\n case 2:\n carriersNumber = _a.sent();\n (0, chai_1.expect)(carriersNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2a394c0-a67b-4b22-acde-f6b46757209f", + "parentUUID": "6719f519-db2e-43a0-8518-640cb916a766", + "isHook": false, + "skipped": false + }, + { + "title": "should check the carrier details", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Check carriers tab should check the carrier details", + "timedOut": false, + "duration": 216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_checkCarrierDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarrierDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getCarrierDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.date).to.equal(today),\n (0, chai_1.expect)(result.carrier).to.equal(carriers_1.default.default.name),\n (0, chai_1.expect)(result.weight).to.equal(\"\".concat(products_1.default.demo_1.packageDimensionWeight, \"00 kg\")),\n (0, chai_1.expect)(result.shippingCost).to.equal('€0.00'),\n (0, chai_1.expect)(result.trackingNumber).to.equal(''),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85801b5d-665a-428d-a924-c3b5d827b260", + "parentUUID": "6719f519-db2e-43a0-8518-640cb916a766", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Edit' link and check the modal", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Check carriers tab should click on 'Edit' link and check the modal", + "timedOut": false, + "duration": 241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_clickOnEditLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible, 'Edit shipping modal is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fd95f47-45df-4717-a932-80f45bb4f662", + "parentUUID": "6719f519-db2e-43a0-8518-640cb916a766", + "isHook": false, + "skipped": false + }, + { + "title": "should update the carrier and add a tracking number", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Check carriers tab should update the carrier and add a tracking number", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_updateTrackingNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateTrackingNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setShippingDetails(page, shippingDetailsData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9de08d4b-3d6b-46b4-9c8f-278af8726831", + "parentUUID": "6719f519-db2e-43a0-8518-640cb916a766", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated carrier details", + "fullTitle": "BO - Orders - View and edit order : Check order carriers tab Check carriers tab should check the updated carrier details", + "timedOut": false, + "duration": 281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_carriersTab_checkUpdatedCarrierDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedCarrierDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getCarrierDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.date).to.equal(today),\n (0, chai_1.expect)(result.carrier).to.equal(shippingDetailsData.carrier),\n (0, chai_1.expect)(result.weight).to.equal(\"\".concat(products_1.default.demo_1.packageDimensionWeight, \"00 kg\")),\n (0, chai_1.expect)(result.shippingCost).to.equal(shippingDetailsCost),\n (0, chai_1.expect)(result.trackingNumber).to.equal(shippingDetailsData.trackingNumber),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c7c0d0c-28cc-4d32-b2c9-608f2f1f8b58", + "parentUUID": "6719f519-db2e-43a0-8518-640cb916a766", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d3947bd5-577b-4ba1-9a36-7a7f2b033a25", + "e2a394c0-a67b-4b22-acde-f6b46757209f", + "85801b5d-665a-428d-a924-c3b5d827b260", + "9fd95f47-45df-4717-a932-80f45bb4f662", + "9de08d4b-3d6b-46b4-9c8f-278af8726831", + "9c7c0d0c-28cc-4d32-b2c9-608f2f1f8b58" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1670, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "08bfe007-623d-4691-87aa-711792e2b5c6", + "title": "BO - Orders - View and edit order : Check merchandise returns tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Check merchandise returns tab\"", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab \"before all\" hook in \"BO - Orders - View and edit order : Check merchandise returns tab\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73d78603-62d2-4f19-811b-8fd2ff776d90", + "parentUUID": "08bfe007-623d-4691-87aa-711792e2b5c6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Check merchandise returns tab\"", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab \"after all\" hook in \"BO - Orders - View and edit order : Check merchandise returns tab\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "55eb6af3-7c4c-402d-8575-768083f96269", + "parentUUID": "08bfe007-623d-4691-87aa-711792e2b5c6", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "374b1885-5684-4ef1-9338-68a2b9d7985c", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0bd714d8-3450-4c79-8b03-8f6b1cad43f3", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38ef704f-c8cf-48f1-b13f-16f07daee35c", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "856b8900-3141-418f-a4e2-06585e153da6", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 532, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89af5e60-49de-4ad1-bd52-9774bcc3a07d", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7f38cc0-2ad2-4c1a-82f9-bcbe7423fdcb", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a81d3ee-c926-4c23-b680-989a1ac09032", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2637175-55c4-4944-a5ce-758c509f5037", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1520, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a75c309-cc54-4032-9ab1-943494b2d085", + "parentUUID": "db44fd58-291d-4cdc-bda7-df8b77837f7e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "38ef704f-c8cf-48f1-b13f-16f07daee35c", + "856b8900-3141-418f-a4e2-06585e153da6", + "89af5e60-49de-4ad1-bd52-9774bcc3a07d", + "d7f38cc0-2ad2-4c1a-82f9-bcbe7423fdcb", + "8a81d3ee-c926-4c23-b680-989a1ac09032", + "f2637175-55c4-4944-a5ce-758c509f5037", + "3a75c309-cc54-4032-9ab1-943494b2d085" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12983, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "269c3e2b-842f-405b-9c8c-98ecfe726066", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93a09fd0-d306-4cdc-9994-990ce8613977", + "parentUUID": "269c3e2b-842f-405b-9c8c-98ecfe726066", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "057db319-0dc2-4243-a418-8c3b375019ac", + "parentUUID": "269c3e2b-842f-405b-9c8c-98ecfe726066", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "625b75a3-b129-400d-9016-ee09e9c90cff", + "parentUUID": "269c3e2b-842f-405b-9c8c-98ecfe726066", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_2_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6d0be2e-1f3b-43ac-8b25-f04b773e8237", + "parentUUID": "269c3e2b-842f-405b-9c8c-98ecfe726066", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_preTest_2_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d60dbfb-49e6-4778-8d7b-d97708884475", + "parentUUID": "269c3e2b-842f-405b-9c8c-98ecfe726066", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "625b75a3-b129-400d-9016-ee09e9c90cff", + "f6d0be2e-1f3b-43ac-8b25-f04b773e8237", + "0d60dbfb-49e6-4778-8d7b-d97708884475" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6654, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f5ab97c7-9c7e-497e-b87f-99f584413626", + "title": "Change the new order status to 'Shipped'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Change the new order status to 'Shipped' should login in BO", + "timedOut": false, + "duration": 1743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b968f1a0-ddd2-4514-a93b-54f916bcb306", + "parentUUID": "f5ab97c7-9c7e-497e-b87f-99f584413626", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Change the new order status to 'Shipped' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f68b36fe-1607-4c9d-9209-1725b485ee4b", + "parentUUID": "f5ab97c7-9c7e-497e-b87f-99f584413626", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Change the new order status to 'Shipped' should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 1254, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_filterOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrder1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5aa4f81b-1b7f-428f-8fa4-7a29026ee7d6", + "parentUUID": "f5ab97c7-9c7e-497e-b87f-99f584413626", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order ID", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Change the new order status to 'Shipped' should get the order ID", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_getOrderID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getOrderIDNumber(page)];\n case 2:\n orderID = _a.sent();\n (0, chai_1.expect)(orderID).to.not.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf16e3b6-2f27-40ea-933e-826e82242a6a", + "parentUUID": "f5ab97c7-9c7e-497e-b87f-99f584413626", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Change the new order status to 'Shipped' should go to the first order page", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderPage1', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c701a472-e6ef-4a53-a41d-7825df3ae43f", + "parentUUID": "f5ab97c7-9c7e-497e-b87f-99f584413626", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Change the new order status to 'Shipped' should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d97dbcf7-2c50-461f-9de5-eee1d1914eac", + "parentUUID": "f5ab97c7-9c7e-497e-b87f-99f584413626", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the button 'Return products' is visible", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Change the new order status to 'Shipped' should check if the button 'Return products' is visible", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkReturnProductsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnProductsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isReturnProductsButtonVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "233e0524-8ffd-4d78-b79a-b7347af571dd", + "parentUUID": "f5ab97c7-9c7e-497e-b87f-99f584413626", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b968f1a0-ddd2-4514-a93b-54f916bcb306", + "f68b36fe-1607-4c9d-9209-1725b485ee4b", + "5aa4f81b-1b7f-428f-8fa4-7a29026ee7d6", + "cf16e3b6-2f27-40ea-933e-826e82242a6a", + "c701a472-e6ef-4a53-a41d-7825df3ae43f", + "d97dbcf7-2c50-461f-9de5-eee1d1914eac", + "233e0524-8ffd-4d78-b79a-b7347af571dd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9050, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "581d0c3f-f871-47db-89e2-737845136a48", + "title": "Create merchandise returns on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Create merchandise returns on FO should go to FO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf945219-1269-4e09-8071-ac28808b1f49", + "parentUUID": "581d0c3f-f871-47db-89e2-737845136a48", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Create merchandise returns on FO should go to login page", + "timedOut": false, + "duration": 696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5acbdfc6-210f-41a5-8309-e46f09265c5d", + "parentUUID": "581d0c3f-f871-47db-89e2-737845136a48", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Create merchandise returns on FO should sign in with customer credentials", + "timedOut": false, + "duration": 530, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25a80885-2301-4ea8-b412-b73b34eb617d", + "parentUUID": "581d0c3f-f871-47db-89e2-737845136a48", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Create merchandise returns on FO should go to account page", + "timedOut": false, + "duration": 697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "979a5c18-f9fc-459e-8dc6-1c4342529228", + "parentUUID": "581d0c3f-f871-47db-89e2-737845136a48", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Create merchandise returns on FO should go to 'Order history and details' page", + "timedOut": false, + "duration": 726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02b464f6-9220-4b24-90db-68c8673ea30f", + "parentUUID": "581d0c3f-f871-47db-89e2-737845136a48", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Create merchandise returns on FO should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_isOrderReturnFormVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2faed3d-4ea8-4493-9b78-edbaf7cde49a", + "parentUUID": "581d0c3f-f871-47db-89e2-737845136a48", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Create merchandise returns on FO should create a merchandise return", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'Test merchandise returns')];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd956385-8b44-4b11-8606-6d56734f2e3a", + "parentUUID": "581d0c3f-f871-47db-89e2-737845136a48", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Create merchandise returns on FO should close the FO page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_closeFoAndGoBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFoAndGoBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58a54dcf-13c0-4d29-8412-6b0efae68c90", + "parentUUID": "581d0c3f-f871-47db-89e2-737845136a48", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cf945219-1269-4e09-8071-ac28808b1f49", + "5acbdfc6-210f-41a5-8309-e46f09265c5d", + "25a80885-2301-4ea8-b412-b73b34eb617d", + "979a5c18-f9fc-459e-8dc6-1c4342529228", + "02b464f6-9220-4b24-90db-68c8673ea30f", + "d2faed3d-4ea8-4493-9b78-edbaf7cde49a", + "fd956385-8b44-4b11-8606-6d56734f2e3a", + "58a54dcf-13c0-4d29-8412-6b0efae68c90" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6051, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19cb71a7-77ae-47c0-aeed-b958c1b17efb", + "title": "Check the existence of merchandise returns on 'Merchandise returns' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of merchandise returns on 'Merchandise returns' page should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4611, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a4e7c85-72e4-430c-941a-d07a5c0cf8d5", + "parentUUID": "19cb71a7-77ae-47c0-aeed-b958c1b17efb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of merchandise returns on 'Merchandise returns' page should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkExistenceOfMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkExistenceOfMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ded89a77-1bce-4f0f-877e-f44fbdf33a57", + "parentUUID": "19cb71a7-77ae-47c0-aeed-b958c1b17efb", + "isHook": false, + "skipped": false + }, + { + "title": "should get the ID from the table", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of merchandise returns on 'Merchandise returns' page should get the ID from the table", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_getTrackingNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getTrackingNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order_return')];\n case 2:\n returnID = _a.sent();\n (0, chai_1.expect)(parseInt(returnID, 10)).to.not.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "877dd83d-b2cc-4652-9955-2ebbdf15f2da", + "parentUUID": "19cb71a7-77ae-47c0-aeed-b958c1b17efb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4a4e7c85-72e4-430c-941a-d07a5c0cf8d5", + "ded89a77-1bce-4f0f-877e-f44fbdf33a57", + "877dd83d-b2cc-4652-9955-2ebbdf15f2da" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6626, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a3a27211-dd7a-4c29-82bc-d6b16123e5ee", + "title": "Check the existence of the merchandise returns on 'Merchandise returns' tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of the merchandise returns on 'Merchandise returns' tab should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3586, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a9b9d6c-af55-4789-a343-c37eac407668", + "parentUUID": "a3a27211-dd7a-4c29-82bc-d6b16123e5ee", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of the merchandise returns on 'Merchandise returns' tab should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 1197, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_filterOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrder2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce3c3efc-5b2d-43e6-9939-f9d03e6ea584", + "parentUUID": "a3a27211-dd7a-4c29-82bc-d6b16123e5ee", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of the merchandise returns on 'Merchandise returns' tab should go to the first order page", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrderPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderPage2', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c219d188-6046-443a-826c-67549855a8ca", + "parentUUID": "a3a27211-dd7a-4c29-82bc-d6b16123e5ee", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Merchandise returns' tab", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of the merchandise returns on 'Merchandise returns' tab should click on 'Merchandise returns' tab", + "timedOut": false, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_displayCarriersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayCarriersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToMerchandiseReturnsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "268f9b81-8d4c-4e85-99f1-6aee74aa9fe9", + "parentUUID": "a3a27211-dd7a-4c29-82bc-d6b16123e5ee", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the merchandise returns number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of the merchandise returns on 'Merchandise returns' tab should check that the merchandise returns number is equal to 1", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkCarriersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriersNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarriersNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getMerchandiseReturnsNumber(page)];\n case 2:\n carriersNumber = _a.sent();\n (0, chai_1.expect)(carriersNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ff48727-71a0-4d12-9b11-b5a40c598ced", + "parentUUID": "a3a27211-dd7a-4c29-82bc-d6b16123e5ee", + "isHook": false, + "skipped": false + }, + { + "title": "should check the merchandise returns details", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the existence of the merchandise returns on 'Merchandise returns' tab should check the merchandise returns details", + "timedOut": false, + "duration": 211, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkCarrierDetails1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarrierDetails1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getMerchandiseReturnsDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.date).to.contains(today),\n (0, chai_1.expect)(result.type).to.equal('Return'),\n (0, chai_1.expect)(result.status).to.equal('Waiting for confirmation'),\n (0, chai_1.expect)(result.number).to.equal(\"\".concat(merchandiseReturnsNumber).concat(returnID)),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c83048c-6e21-452b-a647-101b7389453e", + "parentUUID": "a3a27211-dd7a-4c29-82bc-d6b16123e5ee", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0a9b9d6c-af55-4789-a343-c37eac407668", + "ce3c3efc-5b2d-43e6-9939-f9d03e6ea584", + "c219d188-6046-443a-826c-67549855a8ca", + "268f9b81-8d4c-4e85-99f1-6aee74aa9fe9", + "9ff48727-71a0-4d12-9b11-b5a40c598ced", + "9c83048c-6e21-452b-a647-101b7389453e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5958, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "73a25696-5d8d-4f63-9cf3-a47e0de447e9", + "title": "Update status of merchandise return to 'Waiting for package'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Waiting for package' should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4578, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToMerchandiseReturnsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b372d1b8-e368-4a74-a9fe-ec848428a864", + "parentUUID": "73a25696-5d8d-4f63-9cf3-a47e0de447e9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Waiting for package' should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkExistenceOfReturns0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkExistenceOfReturns\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9280e0cb-96ef-40ff-8661-f0226de6c5fb", + "parentUUID": "73a25696-5d8d-4f63-9cf3-a47e0de447e9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Waiting for package' should go to edit merchandise returns page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToEditReturnsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1302b702-2331-4311-8f25-3e67b60e08e7", + "parentUUID": "73a25696-5d8d-4f63-9cf3-a47e0de447e9", + "isHook": false, + "skipped": false + }, + { + "title": "should edit merchandise returns status", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Waiting for package' should edit merchandise returns status", + "timedOut": false, + "duration": 1101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_editReturnStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e2676ce-8f6d-4021-a4cd-ba5a24ab7843", + "parentUUID": "73a25696-5d8d-4f63-9cf3-a47e0de447e9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b372d1b8-e368-4a74-a9fe-ec848428a864", + "9280e0cb-96ef-40ff-8661-f0226de6c5fb", + "1302b702-2331-4311-8f25-3e67b60e08e7", + "1e2676ce-8f6d-4021-a4cd-ba5a24ab7843" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8499, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb5d862a-d688-4b0c-b300-f0751c9525eb", + "title": "Check the updated status of merchandise returns on view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3588, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrdersPage00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "816f06a7-11c2-404d-92a2-05b448ecf2ca", + "parentUUID": "bb5d862a-d688-4b0c-b300-f0751c9525eb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 1227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_filterOrder00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterOrder0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ad3fef4-5b5d-46eb-b2b0-55def4baaebb", + "parentUUID": "bb5d862a-d688-4b0c-b300-f0751c9525eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should go to the first order page", + "timedOut": false, + "duration": 884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrderPage00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46e7c36c-8c2a-496b-8789-25c831810404", + "parentUUID": "bb5d862a-d688-4b0c-b300-f0751c9525eb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Merchandise returns' tab", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should click on 'Merchandise returns' tab", + "timedOut": false, + "duration": 82, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_clickOnMerchandiseReturn0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnMerchandiseReturn\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToMerchandiseReturnsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3c30110-1465-422d-9303-50b0b9cad308", + "parentUUID": "bb5d862a-d688-4b0c-b300-f0751c9525eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the merchandise returns number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should check that the merchandise returns number is equal to 1", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkMerchandiseReturnsNumber0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriersNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMerchandiseReturnsNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getMerchandiseReturnsNumber(page)];\n case 2:\n carriersNumber = _a.sent();\n (0, chai_1.expect)(carriersNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0440fb9d-1484-4866-9fdb-9cb15f2fbe13", + "parentUUID": "bb5d862a-d688-4b0c-b300-f0751c9525eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the merchandise returns status is 'Waiting for package'", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should check the merchandise returns status is 'Waiting for package'", + "timedOut": false, + "duration": 208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkCarrierDetails00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCarrierDetails0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getMerchandiseReturnsDetails(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result.status).to.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cd3acd1-39a2-41bf-bd71-f6577b547276", + "parentUUID": "bb5d862a-d688-4b0c-b300-f0751c9525eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "816f06a7-11c2-404d-92a2-05b448ecf2ca", + "0ad3fef4-5b5d-46eb-b2b0-55def4baaebb", + "46e7c36c-8c2a-496b-8789-25c831810404", + "c3c30110-1465-422d-9303-50b0b9cad308", + "0440fb9d-1484-4866-9fdb-9cb15f2fbe13", + "2cd3acd1-39a2-41bf-bd71-f6577b547276" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5994, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ccfaa6fa-9724-40eb-8052-f1c8eaf40e69", + "title": "Check the updated status of merchandise returns on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to FO", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1eccadaf-09fa-4b39-bc80-ad36f89c24db", + "parentUUID": "ccfaa6fa-9724-40eb-8052-f1c8eaf40e69", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to account page", + "timedOut": false, + "duration": 697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToAccountPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e98a81c-6b07-414f-b235-1e71552db893", + "parentUUID": "ccfaa6fa-9724-40eb-8052-f1c8eaf40e69", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to 'Merchandise Returns' page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToMerchandiseReturnPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToMerchandiseReturnsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2db71274-1384-430e-8b4e-e84b82159151", + "parentUUID": "ccfaa6fa-9724-40eb-8052-f1c8eaf40e69", + "isHook": false, + "skipped": false + }, + { + "title": "should verify order return status", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should verify order return status", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkOrderReturnStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.be.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ed473b9-1e13-4491-86af-a112f6c696ff", + "parentUUID": "ccfaa6fa-9724-40eb-8052-f1c8eaf40e69", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should close the FO page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_closeFoAndGoBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeFoAndGoBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f11cbb80-2189-4c3e-858d-1ae00ac4931a", + "parentUUID": "ccfaa6fa-9724-40eb-8052-f1c8eaf40e69", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1eccadaf-09fa-4b39-bc80-ad36f89c24db", + "3e98a81c-6b07-414f-b235-1e71552db893", + "2db71274-1384-430e-8b4e-e84b82159151", + "9ed473b9-1e13-4491-86af-a112f6c696ff", + "f11cbb80-2189-4c3e-858d-1ae00ac4931a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3119, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "88a46778-de08-4580-946a-a13d369996a6", + "title": "Update status of merchandise return to 'Package received'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Package received' should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4617, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToMerchandiseReturnsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d93dc496-6537-4a6b-b9ef-9fe297337f12", + "parentUUID": "88a46778-de08-4580-946a-a13d369996a6", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Package received' should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkExistenceOfReturns1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkExistenceOfReturns\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac8c2da8-e2e7-4cf4-9ff3-bef65f08da31", + "parentUUID": "88a46778-de08-4580-946a-a13d369996a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Package received' should go to edit merchandise returns page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToEditReturnsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15edafc7-d2dc-44ee-a737-e04893c4272d", + "parentUUID": "88a46778-de08-4580-946a-a13d369996a6", + "isHook": false, + "skipped": false + }, + { + "title": "should edit merchandise returns status", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Package received' should edit merchandise returns status", + "timedOut": false, + "duration": 1119, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_editReturnStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7919dc66-2ea4-4dcf-834c-c6a36fd293f6", + "parentUUID": "88a46778-de08-4580-946a-a13d369996a6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d93dc496-6537-4a6b-b9ef-9fe297337f12", + "ac8c2da8-e2e7-4cf4-9ff3-bef65f08da31", + "15edafc7-d2dc-44ee-a737-e04893c4272d", + "7919dc66-2ea4-4dcf-834c-c6a36fd293f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8543, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1f4a5c8e-7091-4a59-a81e-bd8c7530895a", + "title": "Check the updated status of merchandise returns on view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3576, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrdersPage01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95f1b025-d620-49c4-8cca-b70feace2227", + "parentUUID": "1f4a5c8e-7091-4a59-a81e-bd8c7530895a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 1202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_filterOrder01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterOrder0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e92de6ef-bf16-44f0-9d8d-e2e20a58cf57", + "parentUUID": "1f4a5c8e-7091-4a59-a81e-bd8c7530895a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should go to the first order page", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrderPage01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53e67725-07ea-44f7-9e77-e5575a459dc7", + "parentUUID": "1f4a5c8e-7091-4a59-a81e-bd8c7530895a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Merchandise returns' tab", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should click on 'Merchandise returns' tab", + "timedOut": false, + "duration": 88, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_clickOnMerchandiseReturn1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnMerchandiseReturn\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToMerchandiseReturnsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "446febf9-3455-4c60-884e-5b62a9e7b94d", + "parentUUID": "1f4a5c8e-7091-4a59-a81e-bd8c7530895a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the merchandise returns number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should check that the merchandise returns number is equal to 1", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkMerchandiseReturnsNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriersNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMerchandiseReturnsNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getMerchandiseReturnsNumber(page)];\n case 2:\n carriersNumber = _a.sent();\n (0, chai_1.expect)(carriersNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea2a9308-96c4-49ec-aa2c-60351a8f63f3", + "parentUUID": "1f4a5c8e-7091-4a59-a81e-bd8c7530895a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the merchandise returns status is 'Package received'", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should check the merchandise returns status is 'Package received'", + "timedOut": false, + "duration": 209, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkCarrierDetails01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCarrierDetails0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getMerchandiseReturnsDetails(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result.status).to.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1155dddc-e7c5-4069-91d7-0018544c7b26", + "parentUUID": "1f4a5c8e-7091-4a59-a81e-bd8c7530895a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "95f1b025-d620-49c4-8cca-b70feace2227", + "e92de6ef-bf16-44f0-9d8d-e2e20a58cf57", + "53e67725-07ea-44f7-9e77-e5575a459dc7", + "446febf9-3455-4c60-884e-5b62a9e7b94d", + "ea2a9308-96c4-49ec-aa2c-60351a8f63f3", + "1155dddc-e7c5-4069-91d7-0018544c7b26" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5955, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3ccf715b-4cf9-48e4-8044-99880323ed89", + "title": "Check the updated status of merchandise returns on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to FO", + "timedOut": false, + "duration": 1682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d224c519-1082-44b3-a7e3-f0d1c64c7169", + "parentUUID": "3ccf715b-4cf9-48e4-8044-99880323ed89", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to account page", + "timedOut": false, + "duration": 706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToAccountPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc0108f1-9b59-4d36-8d0d-ac6abbc8ccb2", + "parentUUID": "3ccf715b-4cf9-48e4-8044-99880323ed89", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to 'Merchandise Returns' page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToMerchandiseReturnPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToMerchandiseReturnsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1edfd94-6e71-4f16-8c4f-677060024e88", + "parentUUID": "3ccf715b-4cf9-48e4-8044-99880323ed89", + "isHook": false, + "skipped": false + }, + { + "title": "should verify order return status", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should verify order return status", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkOrderReturnStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.be.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8488e973-41d8-4fc3-bebe-5a2e18ab073a", + "parentUUID": "3ccf715b-4cf9-48e4-8044-99880323ed89", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should close the FO page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_closeFoAndGoBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeFoAndGoBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67e4776e-1d87-4045-b021-b2bf445036c7", + "parentUUID": "3ccf715b-4cf9-48e4-8044-99880323ed89", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d224c519-1082-44b3-a7e3-f0d1c64c7169", + "dc0108f1-9b59-4d36-8d0d-ac6abbc8ccb2", + "f1edfd94-6e71-4f16-8c4f-677060024e88", + "8488e973-41d8-4fc3-bebe-5a2e18ab073a", + "67e4776e-1d87-4045-b021-b2bf445036c7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3109, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4e6afb82-0c4a-4953-af4d-a6f66aae83a5", + "title": "Update status of merchandise return to 'Return completed'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Return completed' should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4596, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToMerchandiseReturnsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bacea440-4a3a-4fda-972f-fa073dc361e8", + "parentUUID": "4e6afb82-0c4a-4953-af4d-a6f66aae83a5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Return completed' should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkExistenceOfReturns2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkExistenceOfReturns\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae2022f0-79a7-4f61-91b0-cd196cc900e6", + "parentUUID": "4e6afb82-0c4a-4953-af4d-a6f66aae83a5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Return completed' should go to edit merchandise returns page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToEditReturnsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bfeb8ca-5ee3-4b73-88b0-afb324fa65e7", + "parentUUID": "4e6afb82-0c4a-4953-af4d-a6f66aae83a5", + "isHook": false, + "skipped": false + }, + { + "title": "should edit merchandise returns status", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Update status of merchandise return to 'Return completed' should edit merchandise returns status", + "timedOut": false, + "duration": 1115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_editReturnStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f51cb3f-9422-47c6-bf37-b429aaf131c5", + "parentUUID": "4e6afb82-0c4a-4953-af4d-a6f66aae83a5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bacea440-4a3a-4fda-972f-fa073dc361e8", + "ae2022f0-79a7-4f61-91b0-cd196cc900e6", + "7bfeb8ca-5ee3-4b73-88b0-afb324fa65e7", + "8f51cb3f-9422-47c6-bf37-b429aaf131c5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8546, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bf122696-3fc0-4dfd-b3aa-325ca927ac98", + "title": "Check the updated status of merchandise returns on view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrdersPage02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29e91a42-8da3-4b60-98ca-619cb278c669", + "parentUUID": "bf122696-3fc0-4dfd-b3aa-325ca927ac98", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 1249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_filterOrder02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterOrder0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a549e9ac-a4bc-49fd-a4c6-1657d8b2b354", + "parentUUID": "bf122696-3fc0-4dfd-b3aa-325ca927ac98", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should go to the first order page", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToOrderPage02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8f10113-7b55-4aa8-8d4a-2c79e12bee4d", + "parentUUID": "bf122696-3fc0-4dfd-b3aa-325ca927ac98", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Merchandise returns' tab", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should click on 'Merchandise returns' tab", + "timedOut": false, + "duration": 82, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_clickOnMerchandiseReturn2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnMerchandiseReturn\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToMerchandiseReturnsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b72deb2-9817-4df9-a42e-ba9495cd7feb", + "parentUUID": "bf122696-3fc0-4dfd-b3aa-325ca927ac98", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the merchandise returns number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should check that the merchandise returns number is equal to 1", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkMerchandiseReturnsNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriersNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMerchandiseReturnsNumber\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getMerchandiseReturnsNumber(page)];\n case 2:\n carriersNumber = _a.sent();\n (0, chai_1.expect)(carriersNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7ba2c11-db1e-4201-a5d1-7cc52bea975e", + "parentUUID": "bf122696-3fc0-4dfd-b3aa-325ca927ac98", + "isHook": false, + "skipped": false + }, + { + "title": "should check the merchandise returns status is 'Return completed'", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on view order page should check the merchandise returns status is 'Return completed'", + "timedOut": false, + "duration": 208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkCarrierDetails02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCarrierDetails0\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getMerchandiseReturnsDetails(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result.status).to.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f1d9330-6e14-4b1a-81af-17e347cd5fde", + "parentUUID": "bf122696-3fc0-4dfd-b3aa-325ca927ac98", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "29e91a42-8da3-4b60-98ca-619cb278c669", + "a549e9ac-a4bc-49fd-a4c6-1657d8b2b354", + "d8f10113-7b55-4aa8-8d4a-2c79e12bee4d", + "8b72deb2-9817-4df9-a42e-ba9495cd7feb", + "e7ba2c11-db1e-4201-a5d1-7cc52bea975e", + "5f1d9330-6e14-4b1a-81af-17e347cd5fde" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6089, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "464b798b-ccc6-4953-ba80-b371ade2a85a", + "title": "Check the updated status of merchandise returns on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to FO", + "timedOut": false, + "duration": 1688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ea672b7-a09b-486d-bca6-50ba93fbc1d9", + "parentUUID": "464b798b-ccc6-4953-ba80-b371ade2a85a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to account page", + "timedOut": false, + "duration": 710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToAccountPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f448fa26-7483-4145-9879-0771524877a9", + "parentUUID": "464b798b-ccc6-4953-ba80-b371ade2a85a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should go to 'Merchandise Returns' page", + "timedOut": false, + "duration": 710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_goToMerchandiseReturnPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToMerchandiseReturnsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dad842e-b770-47c7-9f76-4d748a8bad9a", + "parentUUID": "464b798b-ccc6-4953-ba80-b371ade2a85a", + "isHook": false, + "skipped": false + }, + { + "title": "should verify order return status", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should verify order return status", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_checkOrderReturnStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.be.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7d061a7-43b5-460f-a7ec-320f415c0704", + "parentUUID": "464b798b-ccc6-4953-ba80-b371ade2a85a", + "isHook": false, + "skipped": false + }, + { + "title": "should close the FO page and go back to BO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab Check the updated status of merchandise returns on FO should close the FO page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_closeFoAndGoBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closeFoAndGoBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c340914-6c98-4dcd-8137-7ec4ff5d2b66", + "parentUUID": "464b798b-ccc6-4953-ba80-b371ade2a85a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6ea672b7-a09b-486d-bca6-50ba93fbc1d9", + "f448fa26-7483-4145-9879-0771524877a9", + "3dad842e-b770-47c7-9f76-4d748a8bad9a", + "f7d061a7-43b5-460f-a7ec-320f415c0704", + "3c340914-6c98-4dcd-8137-7ec4ff5d2b66" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3133, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6f4b2375-d6ee-4309-ada3-aafec529de7b", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/06_merchandiseReturnsTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0ef6fc7-e679-4c4f-a038-1281bc47c451", + "parentUUID": "6f4b2375-d6ee-4309-ada3-aafec529de7b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "84e37603-8525-42bc-89db-a3ce0f674e2e", + "parentUUID": "6f4b2375-d6ee-4309-ada3-aafec529de7b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24e89e00-5717-46fc-8741-249e6617fca7", + "parentUUID": "6f4b2375-d6ee-4309-ada3-aafec529de7b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3598, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_postTest_1_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be9cdc86-ae91-4365-8366-80febf3b5a2b", + "parentUUID": "6f4b2375-d6ee-4309-ada3-aafec529de7b", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "BO - Orders - View and edit order : Check merchandise returns tab POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 272, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_merchandiseReturnsTab_postTest_1_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c67b47fd-d499-4124-af46-dd0791a497e6", + "parentUUID": "6f4b2375-d6ee-4309-ada3-aafec529de7b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "24e89e00-5717-46fc-8741-249e6617fca7", + "be9cdc86-ae91-4365-8366-80febf3b5a2b", + "c67b47fd-d499-4124-af46-dd0791a497e6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5570, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "15ab40b2-0fee-46d4-b5fb-4404b9434a24", + "title": "BO - Orders - View and edit order : Check messages block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Check messages block\"", + "fullTitle": "BO - Orders - View and edit order : Check messages block \"before all\" hook in \"BO - Orders - View and edit order : Check messages block\"", + "timedOut": false, + "duration": 60, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "801196fd-affe-4886-8235-21208827d39b", + "parentUUID": "15ab40b2-0fee-46d4-b5fb-4404b9434a24", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Check messages block\"", + "fullTitle": "BO - Orders - View and edit order : Check messages block \"after all\" hook in \"BO - Orders - View and edit order : Check messages block\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3dde08c3-083c-4f89-967d-8590a28f48e8", + "parentUUID": "15ab40b2-0fee-46d4-b5fb-4404b9434a24", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2fe3ce8-2e3f-41df-935a-4ce02e4fa363", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c614bdb3-0542-4fc6-84cd-77d91f294b00", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "708e2d03-fef6-4fd4-98b5-276162637b80", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f92e13e-6603-4896-b361-93155fde3985", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11390bd1-4adf-4df4-93b7-5102a1729b12", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 6991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc7db0dd-b3a0-40e6-b555-34f676e5dc23", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 994, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "299399ae-f944-4be8-819f-c538d22eaca3", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73e252e8-8c8f-47bc-b623-d45f20d3848d", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Check messages block PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e9a4cf5-b94a-4e84-9117-bda2ef4efe93", + "parentUUID": "4cf3e41a-8d61-45f2-b40c-b23950b6cefd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "708e2d03-fef6-4fd4-98b5-276162637b80", + "8f92e13e-6603-4896-b361-93155fde3985", + "11390bd1-4adf-4df4-93b7-5102a1729b12", + "bc7db0dd-b3a0-40e6-b555-34f676e5dc23", + "299399ae-f944-4be8-819f-c538d22eaca3", + "73e252e8-8c8f-47bc-b623-d45f20d3848d", + "4e9a4cf5-b94a-4e84-9117-bda2ef4efe93" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12715, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5bf84bf7-5d32-42cc-86a2-470c8f8e000c", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check messages block Go to view order page should login in BO", + "timedOut": false, + "duration": 1690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c84aace-6023-4931-ab24-96e653bad96b", + "parentUUID": "5bf84bf7-5d32-42cc-86a2-470c8f8e000c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check messages block Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c947ca25-8c6d-43ac-8b25-3624c5d47e9e", + "parentUUID": "5bf84bf7-5d32-42cc-86a2-470c8f8e000c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check messages block Go to view order page should reset all filters", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_resetOrderTableFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3a27af3-0b31-487f-8e54-1373fcc464c6", + "parentUUID": "5bf84bf7-5d32-42cc-86a2-470c8f8e000c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check messages block Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2364, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_filterByCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "193ecba3-4d72-4d7f-bd8c-0db2519d74d6", + "parentUUID": "5bf84bf7-5d32-42cc-86a2-470c8f8e000c", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check messages block Go to view order page should view the order", + "timedOut": false, + "duration": 883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_orderPageMessagesBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageMessagesBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(messagesBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a41099b9-0908-4109-9fad-0fdd95bfa52c", + "parentUUID": "5bf84bf7-5d32-42cc-86a2-470c8f8e000c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5c84aace-6023-4931-ab24-96e653bad96b", + "c947ca25-8c6d-43ac-8b25-3624c5d47e9e", + "f3a27af3-0b31-487f-8e54-1373fcc464c6", + "193ecba3-4d72-4d7f-bd8c-0db2519d74d6", + "a41099b9-0908-4109-9fad-0fdd95bfa52c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10690, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c0a8b90d-fae2-4e08-a125-223a4aea9772", + "title": "Send message and check messages block on BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should send message", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message and check messages block on BO should send message", + "timedOut": false, + "duration": 822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.sendMessage(page, messageData)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(messagesBlock_1.default.commentSuccessfullMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d2c9d1f-de04-4c08-9911-0ec6e2c9a8a8", + "parentUUID": "c0a8b90d-fae2-4e08-a125-223a4aea9772", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the messages number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message and check messages block on BO should check that the messages number is equal to 1", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkMessageNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var messagesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessageNumber1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getMessagesNumber(page)];\n case 2:\n messagesNumber = _a.sent();\n (0, chai_1.expect)(messagesNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9254dc45-b9ef-4b38-a371-1e3e3e9ff99e", + "parentUUID": "c0a8b90d-fae2-4e08-a125-223a4aea9772", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the message is visible and get it", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message and check messages block on BO should check that the message is visible and get it", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkMessage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.isMessageVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ab86989-66ab-4ea6-96a2-02c6f41fe8ce", + "parentUUID": "c0a8b90d-fae2-4e08-a125-223a4aea9772", + "isHook": false, + "skipped": false + }, + { + "title": "should check the message sender and the date", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message and check messages block on BO should check the message sender and the date", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkSenderAndDate1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSenderAndDate1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getTextMessage(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(\"Me \".concat(today));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a950112b-e8d0-40de-937b-c04003f7c561", + "parentUUID": "c0a8b90d-fae2-4e08-a125-223a4aea9772", + "isHook": false, + "skipped": false + }, + { + "title": "should check the employee icon, the message date and the message sender", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message and check messages block on BO should check the employee icon, the message date and the message sender", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkEmployeeIcon1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmployeeIcon1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.isEmployeeIconVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64843c0e-f9fd-45d8-b141-a41c9d1fa4da", + "parentUUID": "c0a8b90d-fae2-4e08-a125-223a4aea9772", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6d2c9d1f-de04-4c08-9911-0ec6e2c9a8a8", + "9254dc45-b9ef-4b38-a371-1e3e3e9ff99e", + "3ab86989-66ab-4ea6-96a2-02c6f41fe8ce", + "a950112b-e8d0-40de-937b-c04003f7c561", + "64843c0e-f9fd-45d8-b141-a41c9d1fa4da" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 851, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cdcfc7d1-0dc2-42d7-b06b-b6edb67c5121", + "title": "Check message in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check message in FO should view my shop", + "timedOut": false, + "duration": 1713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goToFoToCheckStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCheckStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a19cf574-726a-4a13-a63f-951539adf406", + "parentUUID": "cdcfc7d1-0dc2-42d7-b06b-b6edb67c5121", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check message in FO should go to login page", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goToLoginPageFoToCheckStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFoToCheckStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41c1fab6-f16e-4206-aadf-7aa670ed32e4", + "parentUUID": "cdcfc7d1-0dc2-42d7-b06b-b6edb67c5121", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check message in FO should sign in with default customer", + "timedOut": false, + "duration": 528, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_signInFo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04fe5cc3-1dbf-4cb7-b7a6-da7262ae62a8", + "parentUUID": "cdcfc7d1-0dc2-42d7-b06b-b6edb67c5121", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders history page", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check message in FO should go to orders history page", + "timedOut": false, + "duration": 1407, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goToOrderHistoryPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open order history page').to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58cd4a94-161d-4ebb-952b-fbeb8ed79f6d", + "parentUUID": "cdcfc7d1-0dc2-42d7-b06b-b6edb67c5121", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check order message", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check message in FO should go to the first order in the list and check order message", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkOrderMessageBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBoxMessagesVisible, isMessageRowVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderMessageBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.isBoxMessagesSectionVisible(page)];\n case 3:\n isBoxMessagesVisible = _a.sent();\n (0, chai_1.expect)(isBoxMessagesVisible, 'Box messages is not visible!').to.eq(true);\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.isMessageRowVisible(page)];\n case 4:\n isMessageRowVisible = _a.sent();\n (0, chai_1.expect)(isMessageRowVisible, 'Message is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7ccb17a-6e92-4ef7-977a-d92372739625", + "parentUUID": "cdcfc7d1-0dc2-42d7-b06b-b6edb67c5121", + "isHook": false, + "skipped": false + }, + { + "title": "should check the message text", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check message in FO should check the message text", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkOrderMessageBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderMessageBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getMessageRow(page)];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message)\n .to.contain(today)\n .and.to.contain(\"\".concat(employees_1.default.DefaultEmployee.firstName, \" \").concat(employees_1.default.DefaultEmployee.lastName))\n .and.to.contain(textMessage.substring(0, textMessage.indexOf('Me') - 1));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6238aa4a-0cc9-4dee-9789-f03cad8b6d5b", + "parentUUID": "cdcfc7d1-0dc2-42d7-b06b-b6edb67c5121", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check message in FO should sign out from FO", + "timedOut": false, + "duration": 1165, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_signOutFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1924c485-f2af-47e8-b7e3-6095dbf34cc5", + "parentUUID": "cdcfc7d1-0dc2-42d7-b06b-b6edb67c5121", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a19cf574-726a-4a13-a63f-951539adf406", + "41c1fab6-f16e-4206-aadf-7aa670ed32e4", + "04fe5cc3-1dbf-4cb7-b7a6-da7262ae62a8", + "58cd4a94-161d-4ebb-952b-fbeb8ed79f6d", + "a7ccb17a-6e92-4ef7-977a-d92372739625", + "6238aa4a-0cc9-4dee-9789-f03cad8b6d5b", + "1924c485-f2af-47e8-b7e3-6095dbf34cc5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6293, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0c552bb3-9405-46e0-b556-9c8577f1e7e1", + "title": "Uncheck display to customer and send message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Orders - View and edit order : Check messages block Uncheck display to customer and send message should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(messagesBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56075851-88b3-43b9-bbbb-40867394d5eb", + "parentUUID": "0c552bb3-9405-46e0-b556-9c8577f1e7e1", + "isHook": false, + "skipped": false + }, + { + "title": "should send second message", + "fullTitle": "BO - Orders - View and edit order : Check messages block Uncheck display to customer and send message should send second message", + "timedOut": false, + "duration": 631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_sendMessage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.sendMessage(page, secondMessageData)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(messagesBlock_1.default.commentSuccessfullMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc6c846f-3c2e-4ee9-902e-a92654db96cf", + "parentUUID": "0c552bb3-9405-46e0-b556-9c8577f1e7e1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that messages number is equal to 2", + "fullTitle": "BO - Orders - View and edit order : Check messages block Uncheck display to customer and send message should check that messages number is equal to 2", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkMessageNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var messagesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessageNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getMessagesNumber(page)];\n case 2:\n messagesNumber = _a.sent();\n (0, chai_1.expect)(messagesNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df345f08-f3ce-4273-ab30-7c9ae37119d5", + "parentUUID": "0c552bb3-9405-46e0-b556-9c8577f1e7e1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the second message is visible", + "fullTitle": "BO - Orders - View and edit order : Check messages block Uncheck display to customer and send message should check that the second message is visible", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkMessage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.isMessageVisible(page, 2)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a849b4b-2650-468c-8a32-11a9d2606dff", + "parentUUID": "0c552bb3-9405-46e0-b556-9c8577f1e7e1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the employee icon is private", + "fullTitle": "BO - Orders - View and edit order : Check messages block Uncheck display to customer and send message should check that the employee icon is private", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkEmployeeIcon2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmployeeIcon2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.isEmployeePrivateIconVisible(page, 2)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc7dcff9-c187-4559-98c9-c71fb5c1232c", + "parentUUID": "0c552bb3-9405-46e0-b556-9c8577f1e7e1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the sender message and the date", + "fullTitle": "BO - Orders - View and edit order : Check messages block Uncheck display to customer and send message should check the sender message and the date", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkSenderAndDate2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSenderAndDate2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getTextMessage(page, 2)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage, 'Sender or date is incorrect!').to.contains(\"Me \".concat(today));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1aaadae-82d2-4f4d-b84d-35154a242a02", + "parentUUID": "0c552bb3-9405-46e0-b556-9c8577f1e7e1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "56075851-88b3-43b9-bbbb-40867394d5eb", + "dc6c846f-3c2e-4ee9-902e-a92654db96cf", + "df345f08-f3ce-4273-ab30-7c9ae37119d5", + "6a849b4b-2650-468c-8a32-11a9d2606dff", + "cc7dcff9-c187-4559-98c9-c71fb5c1232c", + "d1aaadae-82d2-4f4d-b84d-35154a242a02" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 671, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "32e9ee24-fc11-4f7d-9d9c-f72d5672ae15", + "title": "Check that the second message is not visible on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check that the second message is not visible on FO should view my shop", + "timedOut": false, + "duration": 1689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goToFoToCheckStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCheckStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "875d7764-5530-478a-89fe-76a65454eefa", + "parentUUID": "32e9ee24-fc11-4f7d-9d9c-f72d5672ae15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check that the second message is not visible on FO should go to login page", + "timedOut": false, + "duration": 700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goToLoginPageFoToCheckStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFoToCheckStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f61325a9-9cb5-4063-b172-3cbbf7ffe763", + "parentUUID": "32e9ee24-fc11-4f7d-9d9c-f72d5672ae15", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check that the second message is not visible on FO should sign in with default customer", + "timedOut": false, + "duration": 503, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_signInFo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebdcd3b1-18d4-41ee-b8bb-eb101e0c8fb0", + "parentUUID": "32e9ee24-fc11-4f7d-9d9c-f72d5672ae15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders history page", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check that the second message is not visible on FO should go to orders history page", + "timedOut": false, + "duration": 1410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goToOrderHistoryPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open order history page').to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1700fe46-3191-4c73-9a9c-1629d61cf50b", + "parentUUID": "32e9ee24-fc11-4f7d-9d9c-f72d5672ae15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check that new message is not visible", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check that the second message is not visible on FO should go to the first order in the list and check that new message is not visible", + "timedOut": false, + "duration": 752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkOrderMessageBlock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderMessageBlock3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getMessageRow(page, 1)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message, 'Second message is not visible!').to.not.contain(secondMessageData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1208eed6-4831-49a9-9ac1-a5c57a1512f0", + "parentUUID": "32e9ee24-fc11-4f7d-9d9c-f72d5672ae15", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "875d7764-5530-478a-89fe-76a65454eefa", + "f61325a9-9cb5-4063-b172-3cbbf7ffe763", + "ebdcd3b1-18d4-41ee-b8bb-eb101e0c8fb0", + "1700fe46-3191-4c73-9a9c-1629d61cf50b", + "1208eed6-4831-49a9-9ac1-a5c57a1512f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5054, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1a6814ba-a077-4c97-867e-71749c07f675", + "title": "Send message from FO and check it on BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should send message", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message from FO and check it on BO should send message", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_sendMessage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.sendMessage(page, messageToSendData)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage, 'Success message is not displayed!').to.equal(orderHistory_1.orderHistoryPage.messageSuccessSent);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e3fcd08-2074-4a5e-ae3a-903f7206cad9", + "parentUUID": "1a6814ba-a077-4c97-867e-71749c07f675", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message from FO and check it on BO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to go back to BO!').to.contains(messagesBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16afd4d6-0495-4b57-b09b-87b2e7620999", + "parentUUID": "1a6814ba-a077-4c97-867e-71749c07f675", + "isHook": false, + "skipped": false + }, + { + "title": "should reload the page and check that the messages number is equal to 3", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message from FO and check it on BO should reload the page and check that the messages number is equal to 3", + "timedOut": false, + "duration": 356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkMessageNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var messagesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessageNumber3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getMessagesNumber(page)];\n case 3:\n messagesNumber = _a.sent();\n (0, chai_1.expect)(messagesNumber, 'Messages number is not correct!').to.be.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ed70e21-05d2-4c46-a92c-ae2be7343c63", + "parentUUID": "1a6814ba-a077-4c97-867e-71749c07f675", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the third message is visible", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message from FO and check it on BO should check that the third message is visible", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkThirdMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThirdMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.isMessageVisible(page, 3, 'customer')];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Message is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "775d2371-80c6-41b6-894d-6d9414848d82", + "parentUUID": "1a6814ba-a077-4c97-867e-71749c07f675", + "isHook": false, + "skipped": false + }, + { + "title": "should check the message, the sender message and the date", + "fullTitle": "BO - Orders - View and edit order : Check messages block Send message from FO and check it on BO should check the message, the sender message and the date", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkSenderAndDate3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSenderAndDate3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.getTextMessage(page, 3, 'customer')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage, 'Sender or date is not correct!')\n .to.contains(\"\".concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName, \" \").concat(today))\n .and.to.contains(messageToSendData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8ab7caa-55cb-4ddb-a0fb-c024c269630b", + "parentUUID": "1a6814ba-a077-4c97-867e-71749c07f675", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9e3fcd08-2074-4a5e-ae3a-903f7206cad9", + "16afd4d6-0495-4b57-b09b-87b2e7620999", + "4ed70e21-05d2-4c46-a92c-ae2be7343c63", + "775d2371-80c6-41b6-894d-6d9414848d82", + "f8ab7caa-55cb-4ddb-a0fb-c024c269630b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1451, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ff34e025-fbdf-42ba-9792-3400e8ddba3b", + "title": "Check 'Configure predefined messages' link", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/07_messagesBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Configure predefined messages' link", + "fullTitle": "BO - Orders - View and edit order : Check messages block Check 'Configure predefined messages' link should click on 'Configure predefined messages' link", + "timedOut": false, + "duration": 777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_messagesBlock_checkLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, messagesBlock_1.default.clickOnConfigureMessageLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderMessages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Order messages page is not opened!').to.contains(orderMessages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09f70751-f3ea-4b53-8eda-3d36ee89fadd", + "parentUUID": "ff34e025-fbdf-42ba-9792-3400e8ddba3b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "09f70751-f3ea-4b53-8eda-3d36ee89fadd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 777, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b6a2c004-e9b9-4c2d-85f0-8fc286726862", + "title": "BO - Orders - View and edit order : Check payment Block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Check payment Block\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block \"before all\" hook in \"BO - Orders - View and edit order : Check payment Block\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76afbff7-3c09-4203-b67c-8448e29b466f", + "parentUUID": "b6a2c004-e9b9-4c2d-85f0-8fc286726862", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Check payment Block\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block \"after all\" hook in \"BO - Orders - View and edit order : Check payment Block\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.deleteFile(filePath)];\n case 1:\n _a.sent();\n return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2367fa08-f4cb-4b77-a2ee-210a1d0c3cd1", + "parentUUID": "b6a2c004-e9b9-4c2d-85f0-8fc286726862", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3830104-d9b0-40f4-afb3-23418eeb7b7c", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "391195ff-fcdf-4b18-93df-31b12d4b9bd3", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a677054-bc73-4dc2-bd0c-8aabd2703bd7", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0474391b-957a-47a7-ae29-ac19f5373761", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 494, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6aeb8f28-ea39-4cf3-a207-d1a3f35412c1", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7200, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69d24aac-833e-4568-bd89-ed6ce19ef389", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 998, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d2ffdea-7b1d-4e6e-b687-7b7335f8cc21", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da14d065-23fc-4e95-bbbc-34ff9442c8e5", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fa063c0-4a15-4eef-a521-5f06c759dbe7", + "parentUUID": "3b5a1965-0595-4dd7-b10d-6feddb342493", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5a677054-bc73-4dc2-bd0c-8aabd2703bd7", + "0474391b-957a-47a7-ae29-ac19f5373761", + "6aeb8f28-ea39-4cf3-a207-d1a3f35412c1", + "69d24aac-833e-4568-bd89-ed6ce19ef389", + "3d2ffdea-7b1d-4e6e-b687-7b7335f8cc21", + "da14d065-23fc-4e95-bbbc-34ff9442c8e5", + "7fa063c0-4a15-4eef-a521-5f06c759dbe7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12829, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dca27183-fd53-405b-812b-1c9a39e930d7", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6ba288c6-3990-4927-b866-7610a92c00e1", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdd387cb-2dbf-40c8-8794-87e2e567843b", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72a139fd-daa4-45bd-9585-7f17a33543e7", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 531, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5feffd53-7944-47fd-8f88-9c3d0f56e0c3", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e1c6278-430c-4901-8144-6abdc29737a9", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21727495-2353-4e7c-8d8f-489cfd76b798", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4be54f7e-69e9-4afc-9955-1ce3a23b8dbf", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1518, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a62c4f37-8004-411e-80ee-7dd533a19488", + "parentUUID": "fab809c0-1722-4447-adc2-9f3ee6f1cae5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bdd387cb-2dbf-40c8-8794-87e2e567843b", + "72a139fd-daa4-45bd-9585-7f17a33543e7", + "5feffd53-7944-47fd-8f88-9c3d0f56e0c3", + "0e1c6278-430c-4901-8144-6abdc29737a9", + "21727495-2353-4e7c-8d8f-489cfd76b798", + "4be54f7e-69e9-4afc-9955-1ce3a23b8dbf", + "a62c4f37-8004-411e-80ee-7dd533a19488" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13014, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "057c80a7-d383-4a05-a746-c377737a6c88", + "title": "PRE-TEST: Create currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create currency\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create currency \"before all\" hook in \"PRE-TEST: Create currency\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8950e9f1-6633-448f-a6f1-63f1779d8f99", + "parentUUID": "057c80a7-d383-4a05-a746-c377737a6c88", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create currency\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create currency \"after all\" hook in \"PRE-TEST: Create currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "595a90f3-17a0-4447-85af-e5fc04b4f7ca", + "parentUUID": "057c80a7-d383-4a05-a746-c377737a6c88", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create currency should login in BO", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdd56f51-5796-4b82-b53b-f0125123d2c2", + "parentUUID": "057c80a7-d383-4a05-a746-c377737a6c88", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_3_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5780b34-5270-4db6-b763-d0ae08638d89", + "parentUUID": "057c80a7-d383-4a05-a746-c377737a6c88", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create currency should go to 'Currencies' page", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_3_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3b299f6-d92d-4889-9c56-b6fefdd62f0e", + "parentUUID": "057c80a7-d383-4a05-a746-c377737a6c88", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create currency should go to create new currency page", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_3_goToAddNewCurrencyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27f564bd-db25-4525-a90e-84b14724de01", + "parentUUID": "057c80a7-d383-4a05-a746-c377737a6c88", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "BO - Orders - View and edit order : Check payment Block PRE-TEST: Create currency should create currency", + "timedOut": false, + "duration": 6485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_preTest_3_createOfficialCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOfficialCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currencyData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26d661c6-dfb7-4ef2-a382-c9f0596ddd72", + "parentUUID": "057c80a7-d383-4a05-a746-c377737a6c88", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cdd56f51-5796-4b82-b53b-f0125123d2c2", + "a5780b34-5270-4db6-b763-d0ae08638d89", + "c3b299f6-d92d-4889-9c56-b6fefdd62f0e", + "27f564bd-db25-4525-a90e-84b14724de01", + "26d661c6-dfb7-4ef2-a382-c9f0596ddd72" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14748, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "45930ce6-3fa3-4eda-9971-572db67ef4d9", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Go to view order page should login in BO", + "timedOut": false, + "duration": 2070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dc5dc2b-d415-4bbd-a6a8-a193d6f8f6c9", + "parentUUID": "45930ce6-3fa3-4eda-9971-572db67ef4d9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50d7f6a8-e1de-41ce-9e9a-83ab989b202c", + "parentUUID": "45930ce6-3fa3-4eda-9971-572db67ef4d9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Go to view order page should reset all filters", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_resetOrderTableFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders, 'Number of orders is not correct!').to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79525486-0b9c-4bf0-9038-bd950a68cf5a", + "parentUUID": "45930ce6-3fa3-4eda-9971-572db67ef4d9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_filterByCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn, 'Lastname is not correct').to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c19b1bb-6bf6-4ded-8be8-b38beb91b608", + "parentUUID": "45930ce6-3fa3-4eda-9971-572db67ef4d9", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Go to view order page should view the order", + "timedOut": false, + "duration": 1053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_orderPageMessagesBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageMessagesBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Error when view order page!').to.contains(paymentBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e319c5c9-01ec-4676-9272-7b1674a883cd", + "parentUUID": "45930ce6-3fa3-4eda-9971-572db67ef4d9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1dc5dc2b-d415-4bbd-a6a8-a193d6f8f6c9", + "50d7f6a8-e1de-41ce-9e9a-83ab989b202c", + "79525486-0b9c-4bf0-9038-bd950a68cf5a", + "0c19b1bb-6bf6-4ded-8be8-b38beb91b608", + "e319c5c9-01ec-4676-9272-7b1674a883cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11450, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "738d04de-edd4-4abe-b554-eac89141c3eb", + "title": "Add payment inferior to the total", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that payments number is equal to 0", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment inferior to the total should check that payments number is equal to 0", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkPayments1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPayments1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsNumber(page)];\n case 2:\n paymentsNumber = _a.sent();\n (0, chai_1.expect)(paymentsNumber, 'Payments number is not correct! ').to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d45ada02-1772-406d-b4fb-9f183257902c", + "parentUUID": "738d04de-edd4-4abe-b554-eac89141c3eb", + "isHook": false, + "skipped": false + }, + { + "title": "should add payment when amount is inferior to the total", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment inferior to the total should add payment when amount is inferior to the total", + "timedOut": false, + "duration": 700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_testAmountInferiorTotal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'testAmountInferiorTotal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.addPayment(page, paymentDataAmountInfTotal)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful message is not correct!')\n .to.equal(paymentBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54c34661-9448-4ea6-b6cd-ee80d478a817", + "parentUUID": "738d04de-edd4-4abe-b554-eac89141c3eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the warning message", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment inferior to the total should check the warning message", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkWarning\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var warningMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkWarning', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentWarning(page)];\n case 2:\n warningMessage = _a.sent();\n (0, chai_1.expect)(warningMessage, 'Warning message is not correct!')\n .to.equal(\"Warning \\u20AC\".concat(paymentDataAmountInfTotal.amount, \" paid instead of \\u20AC\").concat(totalOrder));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11f26f40-cfa1-4c07-9b4e-36828f3433de", + "parentUUID": "738d04de-edd4-4abe-b554-eac89141c3eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the payments number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment inferior to the total should check that the payments number is equal to 1", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkpayments2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkpayments2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsNumber(page)];\n case 2:\n paymentsNumber = _a.sent();\n (0, chai_1.expect)(paymentsNumber, 'Payments number is not correct! ').to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57e26d44-e665-40c3-a153-9725a8a9fc82", + "parentUUID": "738d04de-edd4-4abe-b554-eac89141c3eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the payment details", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment inferior to the total should check the payment details", + "timedOut": false, + "duration": 45, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkPayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPayment', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.date).to.contain(todayToCheck),\n (0, chai_1.expect)(result.paymentMethod).to.equal(paymentDataAmountInfTotal.paymentMethod),\n (0, chai_1.expect)(result.transactionID).to.equal(paymentDataAmountInfTotal.transactionID.toString()),\n (0, chai_1.expect)(result.amount).to.equal(\"\\u20AC\".concat(paymentDataAmountInfTotal.amount)),\n (0, chai_1.expect)(result.invoice).to.equal(''),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6633988a-1550-4621-bffe-6a060a1fa48d", + "parentUUID": "738d04de-edd4-4abe-b554-eac89141c3eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d45ada02-1772-406d-b4fb-9f183257902c", + "54c34661-9448-4ea6-b6cd-ee80d478a817", + "11f26f40-cfa1-4c07-9b4e-36828f3433de", + "57e26d44-e665-40c3-a153-9725a8a9fc82", + "6633988a-1550-4621-bffe-6a060a1fa48d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 776, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d08a690f-e331-4f00-a831-2826f52dcb3d", + "title": "Add payment equal to the total", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add payment when amount is equal to the total", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment equal to the total should add payment when amount is equal to the total", + "timedOut": false, + "duration": 636, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_testAmountEqualTotal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'testAmountEqualTotal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.addPayment(page, paymentDataAmountEqualTotal)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful message is not correct!')\n .to.equal(paymentBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10936c10-554e-44a7-b33b-3ebbf648917e", + "parentUUID": "d08a690f-e331-4f00-a831-2826f52dcb3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the payments number is equal to 2", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment equal to the total should check that the payments number is equal to 2", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkpayments3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkpayments3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsNumber(page)];\n case 2:\n paymentsNumber = _a.sent();\n (0, chai_1.expect)(paymentsNumber, 'Payments number is not correct! ').to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8167511e-adbd-44ff-a115-4f6d1801e729", + "parentUUID": "d08a690f-e331-4f00-a831-2826f52dcb3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the payment details", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment equal to the total should check the payment details", + "timedOut": false, + "duration": 46, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkPaymentDetails1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentDetails1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsDetails(page, 3)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.date).to.contain(todayToCheck),\n (0, chai_1.expect)(result.paymentMethod).to.equal(paymentDataAmountEqualTotal.paymentMethod),\n (0, chai_1.expect)(result.transactionID).to.equal(paymentDataAmountEqualTotal.transactionID.toString()),\n (0, chai_1.expect)(result.amount).to.equal(\"\\u20AC\".concat(paymentDataAmountEqualTotal.amount)),\n (0, chai_1.expect)(result.invoice).to.equal(''),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5ed1e77-5621-4d6f-bdf3-1ad4b8f364e3", + "parentUUID": "d08a690f-e331-4f00-a831-2826f52dcb3d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "10936c10-554e-44a7-b33b-3ebbf648917e", + "8167511e-adbd-44ff-a115-4f6d1801e729", + "e5ed1e77-5621-4d6f-bdf3-1ad4b8f364e3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 687, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7520d835-d961-46a8-9b41-e36438a22164", + "title": "Add payment superior to the total", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add payment when amount is superior to the total", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment superior to the total should add payment when amount is superior to the total", + "timedOut": false, + "duration": 634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_testAmountSupTotal1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'testAmountSupTotal1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.addPayment(page, paymentDataAmountSupTotal)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful message is not correct!')\n .to.equal(paymentBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31621e0e-72bf-43f1-8b15-3a0e5d00485d", + "parentUUID": "7520d835-d961-46a8-9b41-e36438a22164", + "isHook": false, + "skipped": false + }, + { + "title": "should check the warning message", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment superior to the total should check the warning message", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkWarning2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var warningMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkWarning2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentWarning(page)];\n case 2:\n warningMessage = _a.sent();\n (0, chai_1.expect)(warningMessage, 'Warning message is not correct!')\n .to.equal(\"Warning \\u20AC\".concat((paymentDataAmountSupTotal.amount + totalOrder).toFixed(2))\n + \" paid instead of \\u20AC\".concat(totalOrder));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70d84810-fcc2-41b2-bea4-1c8841ba4941", + "parentUUID": "7520d835-d961-46a8-9b41-e36438a22164", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the payments number is equal to 3", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment superior to the total should check that the payments number is equal to 3", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkpayments4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkpayments4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsNumber(page)];\n case 2:\n paymentsNumber = _a.sent();\n (0, chai_1.expect)(paymentsNumber, 'Payments number is not correct! ').to.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ce6dfa3-3c76-42e3-bee8-c7cea8e54914", + "parentUUID": "7520d835-d961-46a8-9b41-e36438a22164", + "isHook": false, + "skipped": false + }, + { + "title": "should check the payment details", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment superior to the total should check the payment details", + "timedOut": false, + "duration": 42, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkPaymentDetail1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentDetail1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsDetails(page, 5)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.date).to.contain(todayToCheck),\n (0, chai_1.expect)(result.paymentMethod).to.equal(paymentDataAmountSupTotal.paymentMethod),\n (0, chai_1.expect)(result.transactionID).to.equal(paymentDataAmountSupTotal.transactionID.toString()),\n (0, chai_1.expect)(result.amount).to.equal(\"\\u20AC\".concat(paymentDataAmountSupTotal.amount)),\n (0, chai_1.expect)(result.invoice).to.equal(''),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "340823b0-3350-408f-8e5f-16f4642c7e1f", + "parentUUID": "7520d835-d961-46a8-9b41-e36438a22164", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "31621e0e-72bf-43f1-8b15-3a0e5d00485d", + "70d84810-fcc2-41b2-bea4-1c8841ba4941", + "0ce6dfa3-3c76-42e3-bee8-c7cea8e54914", + "340823b0-3350-408f-8e5f-16f4642c7e1f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 691, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cef2e2a1-9a6c-4f9b-8933-248d6168a82f", + "title": "Check details button", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Details' button and check result", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Check details button should click on 'Details' button and check result", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_displayPaymentDetail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayPaymentDetail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.displayPaymentDetail(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result)\n .to.contain('Card number Not defined')\n .and.to.contain('Card type Not defined')\n .and.to.contain('Expiration date Not defined')\n .and.to.contain('Cardholder name Not defined');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e00cfb9-f590-453f-bfa9-810434cc4397", + "parentUUID": "cef2e2a1-9a6c-4f9b-8933-248d6168a82f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e00cfb9-f590-453f-bfa9-810434cc4397" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 71, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "287afceb-89df-4643-bf24-97417dba7183", + "title": "Add payment with new currency and check details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment with new currency and check details should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a46a38f8-3e1b-44d6-978f-1afc6af3eef2", + "parentUUID": "287afceb-89df-4643-bf24-97417dba7183", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment with new currency and check details should reset all filters", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_resetOrderTableFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ac3035f-c6d9-48bf-8847-5d04e32b2ac4", + "parentUUID": "287afceb-89df-4643-bf24-97417dba7183", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment with new currency and check details should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2384, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_filterByCustomer2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2820220-a5e6-428e-89ee-7f481c01a949", + "parentUUID": "287afceb-89df-4643-bf24-97417dba7183", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment with new currency and check details should view the order", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_orderPageMessagesBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageMessagesBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Error when view order page!').to.contains(paymentBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0107696-2e0c-41f6-be13-daa8094d2f2d", + "parentUUID": "287afceb-89df-4643-bf24-97417dba7183", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new currency is visible on select options", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment with new currency and check details should check that the new currency is visible on select options", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkSelectOption\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var listOfCurrencies;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSelectOption', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getCurrencySelectOptions(page)];\n case 2:\n listOfCurrencies = _a.sent();\n (0, chai_1.expect)(listOfCurrencies).to.contain('€')\n .and.to.contain(currencies_1.default.mad.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9a9b73f-c5b6-48ff-ad84-0340f8b2ae4d", + "parentUUID": "287afceb-89df-4643-bf24-97417dba7183", + "isHook": false, + "skipped": false + }, + { + "title": "should add payment with new currency", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Add payment with new currency and check details should add payment with new currency", + "timedOut": false, + "duration": 661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_paymentWithNewCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'paymentWithNewCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.addPayment(page, paymentDataWithNewCurrency)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful message is not correct!')\n .to.equal(paymentBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0dc68f8b-cab0-4d8f-a5d3-fa8f039e57ef", + "parentUUID": "287afceb-89df-4643-bf24-97417dba7183", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a46a38f8-3e1b-44d6-978f-1afc6af3eef2", + "5ac3035f-c6d9-48bf-8847-5d04e32b2ac4", + "e2820220-a5e6-428e-89ee-7f481c01a949", + "b0107696-2e0c-41f6-be13-daa8094d2f2d", + "e9a9b73f-c5b6-48ff-ad84-0340f8b2ae4d", + "0dc68f8b-cab0-4d8f-a5d3-fa8f039e57ef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9602, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "title": "Click on payment accepted and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "266e5c1e-4adb-4066-944e-c1d539dff342", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should reset all filters", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_resetOrderTableFilters3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "302b1049-8540-4089-80ca-8e94636eb561", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2399, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_filterByCustomer3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 2)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5264eb1-d742-4021-a5cb-b5c351b42fe0", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should view the order", + "timedOut": false, + "duration": 959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_orderPageMessagesBlock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageMessagesBlock3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Error when view order page!').to.contains(paymentBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6db84d8e-5d6b-428f-a83c-aa90696aac81", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the payments number is equal to 0", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should check that the payments number is equal to 0", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkpayments5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkpayments5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsNumber(page)];\n case 2:\n paymentsNumber = _a.sent();\n (0, chai_1.expect)(paymentsNumber, 'Payments number is not correct! ').to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "910dc7f0-4e5a-4bd8-bba7-83d01b47cf69", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Payment accepted'", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should change the order status to 'Payment accepted'", + "timedOut": false, + "duration": 1366, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_updateOrderStatusPaymentAccepted\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatusPaymentAccepted', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1352a0e-d23d-4396-9bf6-2cf0590cdb1d", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the payments number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should check that the payments number is equal to 1", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkpayments6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkpayments6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsNumber(page)];\n case 2:\n paymentsNumber = _a.sent();\n (0, chai_1.expect)(paymentsNumber, 'Payments number is not correct! ').to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53d6ffdc-cd52-4a08-ac3b-84dc0969bcff", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the payment details and get the invoice number", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should check the payment details and get the invoice number", + "timedOut": false, + "duration": 46, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkPayment3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPayment3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsDetails(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.date).to.contain(todayToCheck),\n (0, chai_1.expect)(result.paymentMethod).to.equal('Bank transfer'),\n (0, chai_1.expect)(result.transactionID).to.equal(''),\n (0, chai_1.expect)(result.amount).to.equal(\"\\u20AC\".concat(totalOrder)),\n (0, chai_1.expect)(result.invoice).to.not.equal(''),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getInvoiceID(page)];\n case 4:\n invoiceID = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "411edce7-50db-4f98-9948-0ae6e2606294", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product 'The adventure begins Framed poster' to the cart", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should add the product 'The adventure begins Framed poster' to the cart", + "timedOut": false, + "duration": 2848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_searchCustomizedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchCustomizedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, products_1.default.demo_5.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.selectInvoice(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page, 1, true)];\n case 4:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81ae6208-7fc7-4d2e-9c45-d5bd6b3c56b5", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that products number is equal to 2", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should check that products number is equal to 2", + "timedOut": false, + "duration": 330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productCount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductsNumber(page)];\n case 3:\n productCount = _a.sent();\n (0, chai_1.expect)(productCount).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50387fc9-a7e4-4287-9b42-6650c0fde670", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that invoices number is equal to 2", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should check that invoices number is equal to 2", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkDocumentsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentsNumber(page)];\n case 2:\n documentsNumber = _a.sent();\n (0, chai_1.expect)(documentsNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "969bbf22-48f8-4dfe-8a70-a9bbc9f3a883", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that payments number is equal to 1", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should check that payments number is equal to 1", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkpayments7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkpayments7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsNumber(page)];\n case 2:\n paymentsNumber = _a.sent();\n (0, chai_1.expect)(paymentsNumber, 'Payments number is not correct! ').to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "227653b2-5f0f-40c6-a5b0-5aba2581c95e", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the warning message", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should check the warning message", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkWarningMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var warningMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkWarningMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentWarning(page)];\n case 2:\n warningMessage = _a.sent();\n (0, chai_1.expect)(warningMessage, 'Warning message is not correct!')\n .to.equal(\"Warning \\u20AC\".concat(totalOrder, \" paid instead of \\u20AC57.74\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0b02445-e1cd-4758-a4fd-5c94051427a3", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should add payment when amount is equal to the rest to the new invoice", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should add payment when amount is equal to the rest to the new invoice", + "timedOut": false, + "duration": 687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_testAmountSupTotal2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoice, validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'testAmountSupTotal2', baseContext)];\n case 1:\n _a.sent();\n invoice = \"#IN0000\".concat((invoiceID + 1) >= 10 ? '' : '0').concat(invoiceID + 1);\n return [4 /*yield*/, paymentBlock_1.default.addPayment(page, paymentDataAmountEqualRest, invoice)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful message is not correct!')\n .to.equal(paymentBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "285e9486-ab50-46a8-afe1-373346c03fd8", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that payments number is equal to 2", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should check that payments number is equal to 2", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_checkpayments8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkpayments8', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsNumber(page)];\n case 2:\n paymentsNumber = _a.sent();\n (0, chai_1.expect)(paymentsNumber, 'Payments number is not correct! ').to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1e9573a-40cf-4d7a-9a72-e3e4c5768e04", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + }, + { + "title": "should download the invoice and check payment method and amount", + "fullTitle": "BO - Orders - View and edit order : Check payment Block Click on payment accepted and check result should download the invoice and check payment method and amount", + "timedOut": false, + "duration": 1644, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_downloadInvoiceAndCheckPayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist, paymentMethodExist, amountExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadInvoiceAndCheckPayment', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page, 3)];\n case 2:\n // Download invoice\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'File doesn\\'t exist!').to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, paymentDataAmountEqualRest.paymentMethod)];\n case 4:\n paymentMethodExist = _a.sent();\n (0, chai_1.expect)(paymentMethodExist, 'Payment method does not exist in invoice!').to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, paymentDataAmountEqualRest.amount.toString())];\n case 5:\n amountExist = _a.sent();\n (0, chai_1.expect)(amountExist, 'Payment amount does not exist in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dc081e8-355e-467b-adef-34f5591a15e2", + "parentUUID": "6572acf1-7ec1-4ec2-bdaa-42728feff30d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "266e5c1e-4adb-4066-944e-c1d539dff342", + "302b1049-8540-4089-80ca-8e94636eb561", + "d5264eb1-d742-4021-a5cb-b5c351b42fe0", + "6db84d8e-5d6b-428f-a83c-aa90696aac81", + "910dc7f0-4e5a-4bd8-bba7-83d01b47cf69", + "a1352a0e-d23d-4396-9bf6-2cf0590cdb1d", + "53d6ffdc-cd52-4a08-ac3b-84dc0969bcff", + "411edce7-50db-4f98-9948-0ae6e2606294", + "81ae6208-7fc7-4d2e-9c45-d5bd6b3c56b5", + "50387fc9-a7e4-4287-9b42-6650c0fde670", + "969bbf22-48f8-4dfe-8a70-a9bbc9f3a883", + "227653b2-5f0f-40c6-a5b0-5aba2581c95e", + "d0b02445-e1cd-4758-a4fd-5c94051427a3", + "285e9486-ab50-46a8-afe1-373346c03fd8", + "b1e9573a-40cf-4d7a-9a72-e3e4c5768e04", + "2dc081e8-355e-467b-adef-34f5591a15e2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15005, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0294faea-6724-4ce7-b32d-63cc2a342ecc", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/08_paymentBlock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db22cb11-03eb-466d-ac5f-8e5de7be4394", + "parentUUID": "0294faea-6724-4ce7-b32d-63cc2a342ecc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "BO - Orders - View and edit order : Check payment Block POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f5beb5e7-52d8-4312-8601-3b9fec6a9772", + "parentUUID": "0294faea-6724-4ce7-b32d-63cc2a342ecc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Check payment Block POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 1822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4320814-83f5-4603-98a6-52589f83d8f2", + "parentUUID": "0294faea-6724-4ce7-b32d-63cc2a342ecc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4993, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_postTest_1_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f899eec4-13c2-4111-b1ee-bc3cdcdb10af", + "parentUUID": "0294faea-6724-4ce7-b32d-63cc2a342ecc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "BO - Orders - View and edit order : Check payment Block POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_postTest_1_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86a9652d-2d66-4be8-8366-caeaf55feb90", + "parentUUID": "0294faea-6724-4ce7-b32d-63cc2a342ecc", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'MAD'", + "fullTitle": "BO - Orders - View and edit order : Check payment Block POST-TEST: Delete currency should filter by iso code of currency 'MAD'", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae370f77-854d-458b-8f1e-d836f39701b6", + "parentUUID": "0294faea-6724-4ce7-b32d-63cc2a342ecc", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "BO - Orders - View and edit order : Check payment Block POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1449, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_paymentBlock_postTest_1_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "472d8a6e-bca0-4a50-91f8-30d915237047", + "parentUUID": "0294faea-6724-4ce7-b32d-63cc2a342ecc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b4320814-83f5-4603-98a6-52589f83d8f2", + "f899eec4-13c2-4111-b1ee-bc3cdcdb10af", + "86a9652d-2d66-4be8-8366-caeaf55feb90", + "ae370f77-854d-458b-8f1e-d836f39701b6", + "472d8a6e-bca0-4a50-91f8-30d915237047" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9363, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "22b43103-2b1b-45d6-b9d8-1df8cd3210a7", + "title": "BO - Orders - View and edit order : Add discount", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Add discount\"", + "fullTitle": "BO - Orders - View and edit order : Add discount \"before all\" hook in \"BO - Orders - View and edit order : Add discount\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ed3bf20-5dcc-4b6e-b35a-bd5ba2abd66f", + "parentUUID": "22b43103-2b1b-45d6-b9d8-1df8cd3210a7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Add discount\"", + "fullTitle": "BO - Orders - View and edit order : Add discount \"after all\" hook in \"BO - Orders - View and edit order : Add discount\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5bac34e8-73b3-4f98-aa13-c5f0d365c344", + "parentUUID": "22b43103-2b1b-45d6-b9d8-1df8cd3210a7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Add discount should login in BO", + "timedOut": false, + "duration": 1790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70246d5d-8806-4637-a8da-29f69c4d118a", + "parentUUID": "22b43103-2b1b-45d6-b9d8-1df8cd3210a7", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6be0a487-8ffd-4edf-86d5-dfd1996c9524", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ae01a6b8-a291-407c-98c0-0d630d661049", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 2616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "969df015-9078-472e-85ae-bb226bdc9559", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9a4b133-5103-4938-86cf-e6d6dc35e5eb", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b7f7985-12fb-4ae9-a108-1d7377dd6888", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7357, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bcf7bf1-f2e7-40e1-b4c9-3e2538bae17a", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f95111d2-940e-4e3f-af53-5f171b40fc7d", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c5a039d-2119-46af-b211-5e06296b492a", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Add discount PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d26d038-81e0-4abb-9957-779fd578b392", + "parentUUID": "79bada1f-9d5b-4020-94fa-90e21db6061e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "969df015-9078-472e-85ae-bb226bdc9559", + "d9a4b133-5103-4938-86cf-e6d6dc35e5eb", + "6b7f7985-12fb-4ae9-a108-1d7377dd6888", + "9bcf7bf1-f2e7-40e1-b4c9-3e2538bae17a", + "f95111d2-940e-4e3f-af53-5f171b40fc7d", + "7c5a039d-2119-46af-b211-5e06296b492a", + "2d26d038-81e0-4abb-9957-779fd578b392" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14300, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "856bac4a-7835-4d3f-8eb2-28772cf3a3c6", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Add discount Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 5501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bf59ecc-84b3-444a-ad74-98a959472a5b", + "parentUUID": "856bac4a-7835-4d3f-8eb2-28772cf3a3c6", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Add discount Go to view order page should reset all filters", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_resetOrderTable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTable1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders, 'Number of orders is not correct!').to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f57cfab-380f-4431-bafb-6371e91d2866", + "parentUUID": "856bac4a-7835-4d3f-8eb2-28772cf3a3c6", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Add discount Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2389, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_filterByCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn, 'Lastname is not correct').to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1d6e7c8-d5b0-4b7c-bd90-46ee6c1220b8", + "parentUUID": "856bac4a-7835-4d3f-8eb2-28772cf3a3c6", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Add discount Go to view order page should view the order", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_orderPageProductsBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageProductsBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Error when view order page!').to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3518406-ca8e-450d-9688-1c4e84145c67", + "parentUUID": "856bac4a-7835-4d3f-8eb2-28772cf3a3c6", + "isHook": false, + "skipped": false + }, + { + "title": "should get the total to pay", + "fullTitle": "BO - Orders - View and edit order : Add discount Go to view order page should get the total to pay", + "timedOut": false, + "duration": 1028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_getTotalToPay\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getTotalToPay', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalPrice(page)];\n case 2:\n totalOrder = _a.sent();\n (0, chai_1.expect)(totalOrder).is.not.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30f3c3f6-0ae5-4b16-bfeb-c7ba8114f5ff", + "parentUUID": "856bac4a-7835-4d3f-8eb2-28772cf3a3c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3bf59ecc-84b3-444a-ad74-98a959472a5b", + "7f57cfab-380f-4431-bafb-6371e91d2866", + "c1d6e7c8-d5b0-4b7c-bd90-46ee6c1220b8", + "a3518406-ca8e-450d-9688-1c4e84145c67", + "30f3c3f6-0ae5-4b16-bfeb-c7ba8114f5ff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10772, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "title": "Create discount and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add a discount with invalid value and check the error message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should add a discount with invalid value and check the error message", + "timedOut": false, + "duration": 1067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addDiscountInvalidValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountInvalidValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountDataInvalidValue)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Error message is not correct!')\n .to.equal(productsBlock_1.default.discountMustBeNumberErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f708b578-f6e6-46c1-a818-4c4f500d22aa", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should add a discount percent > 100 and check the error message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should add a discount percent > 100 and check the error message", + "timedOut": false, + "duration": 1099, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addDiscountPercentSup100\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountPercentSup100', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountPercentSup100Value)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Error message is not correct!')\n .to.equal(productsBlock_1.default.invalidPercentValueErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed8f2270-91f3-460e-a42d-d5fc77a6e341", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should add a discount percent < 0 and check the error message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should add a discount percent < 0 and check the error message", + "timedOut": false, + "duration": 1060, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addDiscountPercentInf0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountPercentInf0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountPercentInf0Value)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Error message is not correct!')\n .to.equal(productsBlock_1.default.percentValueNotPositiveErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4de6ebcb-3c40-45f6-8382-39ca7d4c1804", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should add discount percent and check successful message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should add discount percent and check successful message", + "timedOut": false, + "duration": 1241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addDiscountPercentGoodValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountPercentGoodValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountPercentGoodValue)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Validation message is not correct!')\n .to.equal(productsBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf19cb65-34e5-4ab1-ae86-8772c16a93d4", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of new discount table", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check the existence of new discount table", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkNewDiscountTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewDiscountTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isDiscountListTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Discount list table is not visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec51395c-5225-45e2-98ff-778505f5f13c", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount name", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check the discount name", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkDiscountName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getTextColumnFromDiscountTable(page, 'name')];\n case 2:\n discountName = _a.sent();\n (0, chai_1.expect)(discountName).to.be.equal(discountPercentGoodValue.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66b7b719-2968-4c85-b9a3-63971d5d171c", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check the discount value", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkDiscountValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getTextColumnFromDiscountTable(page, 'value')];\n case 2:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal(\"- \\u20AC\".concat(totalOrder - (totalOrder * parseFloat(discountPercentGoodValue.value)) / 100));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "174f0518-3b8f-4804-9bec-3b4bb24bf21d", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check total after discount", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check total after discount", + "timedOut": false, + "duration": 1011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkTotalAfterDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalAfterDiscount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalAfterDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalPrice(page)];\n case 2:\n totalAfterDiscount = _a.sent();\n (0, chai_1.expect)(totalAfterDiscount)\n .to.be.equal(totalOrder - (totalOrder * parseFloat(discountPercentGoodValue.value)) / 100);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7dd07b2-b6fd-491b-a94d-ccd9991cde40", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check the total discounts value", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check the total discounts value", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkTotalDiscountValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalDiscountValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalDiscounts(page)];\n case 2:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal((totalOrder * parseFloat(discountPercentGoodValue.value)) / 100 - totalOrder);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b80f4d59-720f-44c9-9108-74ea1ab71d48", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the discount", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should delete the discount", + "timedOut": false, + "duration": 469, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_deleteDiscount1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteDiscount1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteDiscount(page)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful update alert is not correct')\n .to.equal(productsBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9c1d0c8-0af8-42cb-874e-e8b8e768168d", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should add a discount amount invalid value and check error message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should add a discount amount invalid value and check error message", + "timedOut": false, + "duration": 1083, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addDiscountAmountInvalidValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountAmountInvalidValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountAmountTextValue)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Error message is not correct!')\n .to.equal(productsBlock_1.default.discountMustBeNumberErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a1c59f9-43a2-4147-ada4-f372d94277f0", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should add a discount amount negative value and check error message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should add a discount amount negative value and check error message", + "timedOut": false, + "duration": 1075, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addDiscountAmountNegativeValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountAmountNegativeValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountAmountNegativeValue)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Error message is not correct!').to.equal('Amount value must be greater than 0.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50b3bb8b-882b-46a1-b8af-6602a4426cd2", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should add a discount amount greater than the total and check error message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should add a discount amount greater than the total and check error message", + "timedOut": false, + "duration": 1078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addDiscountAmountGreaterThanTotal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountAmountGreaterThanTotal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountAmountGreaterThanTotal)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Error message is not correct!')\n .to.equal(productsBlock_1.default.discountCannotExceedTotalErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc090df4-e8e8-46e8-a4db-0c02b383e665", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should add a good discount amount and check validation message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should add a good discount amount and check validation message", + "timedOut": false, + "duration": 1177, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addCorrectDiscountAmount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCorrectDiscountAmount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountAmountGoodValue)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Validation message is not correct!')\n .to.equal(productsBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0bfb307-9272-49d7-80d9-353e78600b97", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of new discount table", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check the existence of new discount table", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkNewDiscountTable2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewDiscountTable2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isDiscountListTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Discount list table is not visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0c8ca24-5c05-4b76-96f6-2020fcb36ab3", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount name", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check the discount name", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkDiscountName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountName2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getTextColumnFromDiscountTable(page, 'name')];\n case 2:\n discountName = _a.sent();\n (0, chai_1.expect)(discountName).to.be.equal(discountAmountGoodValue.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80aa0515-7660-46f0-9e79-8a382434025f", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check the discount value", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkDiscountValue2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountValue2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getTextColumnFromDiscountTable(page, 'value')];\n case 2:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal(\"- \\u20AC\".concat(discountAmountGoodValue.value));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b8d507e-c909-4182-bb59-b1d9ac360be1", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check total after discount", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check total after discount", + "timedOut": false, + "duration": 1011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkTotalAfterDiscount2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalAfterDiscount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalAfterDiscount2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalPrice(page)];\n case 2:\n totalAfterDiscount = _a.sent();\n (0, chai_1.expect)(totalAfterDiscount).to.be.equal(totalOrder - parseFloat(discountAmountGoodValue.value));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2fb1a8d-3f35-486a-8a12-b9a0b2ddbda6", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + }, + { + "title": "should check the total discounts value", + "fullTitle": "BO - Orders - View and edit order : Add discount Create discount and check it should check the total discounts value", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkTotalDiscountValue2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalDiscountValue2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalDiscounts(page)];\n case 2:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal(parseFloat(discountAmountGoodValue.value) * -1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44e45720-775a-46ed-a5ab-8d1a5c3940c4", + "parentUUID": "5b82b637-1143-43d8-a5d0-78a1e7d71419", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f708b578-f6e6-46c1-a818-4c4f500d22aa", + "ed8f2270-91f3-460e-a42d-d5fc77a6e341", + "4de6ebcb-3c40-45f6-8382-39ca7d4c1804", + "bf19cb65-34e5-4ab1-ae86-8772c16a93d4", + "ec51395c-5225-45e2-98ff-778505f5f13c", + "66b7b719-2968-4c85-b9a3-63971d5d171c", + "174f0518-3b8f-4804-9bec-3b4bb24bf21d", + "a7dd07b2-b6fd-491b-a94d-ccd9991cde40", + "b80f4d59-720f-44c9-9108-74ea1ab71d48", + "a9c1d0c8-0af8-42cb-874e-e8b8e768168d", + "9a1c59f9-43a2-4147-ada4-f372d94277f0", + "50b3bb8b-882b-46a1-b8af-6602a4426cd2", + "dc090df4-e8e8-46e8-a4db-0c02b383e665", + "e0bfb307-9272-49d7-80d9-353e78600b97", + "d0c8ca24-5c05-4b76-96f6-2020fcb36ab3", + "80aa0515-7660-46f0-9e79-8a382434025f", + "7b8d507e-c909-4182-bb59-b1d9ac360be1", + "e2fb1a8d-3f35-486a-8a12-b9a0b2ddbda6", + "44e45720-775a-46ed-a5ab-8d1a5c3940c4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11456, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "043323a3-f2e3-4aa3-a4b7-088d33b5b877", + "title": "Check created cart rules on 'Catalog > Discount' page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - View and edit order : Add discount Check created cart rules on 'Catalog > Discount' page should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_goToDiscountsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "099e1707-7fea-4db4-834b-bc7350c9bc9f", + "parentUUID": "043323a3-f2e3-4aa3-a4b7-088d33b5b877", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Test discount amount'", + "fullTitle": "BO - Orders - View and edit order : Add discount Check created cart rules on 'Catalog > Discount' page should filter by name 'Test discount amount'", + "timedOut": false, + "duration": 2950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_filterFirstDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterFilter).to.be.equal(1);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, discounts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48880838-72a5-415b-bdb4-dbae6f1d2b0f", + "parentUUID": "043323a3-f2e3-4aa3-a4b7-088d33b5b877", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Add discount Check created cart rules on 'Catalog > Discount' page should reset all filters", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_filterFirstDiscountReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterReset).to.equal(numberOfCartRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36e2cbf8-e871-4763-acce-e671107e02cc", + "parentUUID": "043323a3-f2e3-4aa3-a4b7-088d33b5b877", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Test discount percent'", + "fullTitle": "BO - Orders - View and edit order : Add discount Check created cart rules on 'Catalog > Discount' page should filter by name 'Test discount percent'", + "timedOut": false, + "duration": 3012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_filterSecondDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.filterCartRules(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCartRulesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterFilter).to.be.equal(1);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCartRulesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, discounts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7004f2b4-52a0-4fee-b924-11928ae925fb", + "parentUUID": "043323a3-f2e3-4aa3-a4b7-088d33b5b877", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Add discount Check created cart rules on 'Catalog > Discount' page should reset all filters", + "timedOut": false, + "duration": 318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_filterSecondDiscountReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterReset).to.equal(numberOfCartRules + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3383ecec-5e81-45e4-86e4-d5f7e1c8db0d", + "parentUUID": "043323a3-f2e3-4aa3-a4b7-088d33b5b877", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "099e1707-7fea-4db4-834b-bc7350c9bc9f", + "48880838-72a5-415b-bdb4-dbae6f1d2b0f", + "36e2cbf8-e871-4763-acce-e671107e02cc", + "7004f2b4-52a0-4fee-b924-11928ae925fb", + "3383ecec-5e81-45e4-86e4-d5f7e1c8db0d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10306, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5b772a63-b971-405b-b2a1-175a9416f9fb", + "title": "Go back to view order page and delete discount", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Add discount Go back to view order page and delete discount should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "234d3165-db49-4238-9318-d109511bf7b6", + "parentUUID": "5b772a63-b971-405b-b2a1-175a9416f9fb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order : Add discount Go back to view order page and delete discount should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 1255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_filterByCustomer2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn, 'Lastname is not correct').to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b32be313-de44-4c58-a1a1-d854329b89ad", + "parentUUID": "5b772a63-b971-405b-b2a1-175a9416f9fb", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order : Add discount Go back to view order page and delete discount should view the order", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_orderPageProductsBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageProductsBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Error when view order page!').to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fcaab42-f8fa-40ef-aa94-965a64de0c62", + "parentUUID": "5b772a63-b971-405b-b2a1-175a9416f9fb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created discount", + "fullTitle": "BO - Orders - View and edit order : Add discount Go back to view order page and delete discount should delete the created discount", + "timedOut": false, + "duration": 492, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_deleteDiscount2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteDiscount2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteDiscount(page)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful update alert is not correct')\n .to.equal(productsBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79fe8d76-ae3d-4232-a70e-160c5f8fa2fe", + "parentUUID": "5b772a63-b971-405b-b2a1-175a9416f9fb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "234d3165-db49-4238-9318-d109511bf7b6", + "b32be313-de44-4c58-a1a1-d854329b89ad", + "3fcaab42-f8fa-40ef-aa94-965a64de0c62", + "79fe8d76-ae3d-4232-a70e-160c5f8fa2fe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7260, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "title": "Create free shipping cart rule and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add cart rule free shipping and check validation message", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should add cart rule free shipping and check validation message", + "timedOut": false, + "duration": 1165, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_addDiscountFreeShipping\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountFreeShipping', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountFreeShipping)];\n case 2:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage, 'Error message is not correct!')\n .to.equal(productsBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "473ae81a-edee-4d1d-9e9e-ae67626f0bd0", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of new discount table", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should check the existence of new discount table", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkFreeShippingDiscountTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFreeShippingDiscountTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isDiscountListTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Discount list table is not visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0d7a693-f110-4806-baaf-cca833b8a654", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount name", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should check the discount name", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkFreeShippingDiscountName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFreeShippingDiscountName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getTextColumnFromDiscountTable(page, 'name')];\n case 2:\n discountName = _a.sent();\n (0, chai_1.expect)(discountName).to.be.equal(discountFreeShipping.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed371e38-f2c1-4502-bd54-207d1b991686", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should check the discount value", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkFreeShippingDiscountValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFreeShippingDiscountValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getTextColumnFromDiscountTable(page, 'value')];\n case 2:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal('€0.00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a2d9920-cf66-4b0a-9289-c324742224ca", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Carriers' tab", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should click on 'Carriers' tab", + "timedOut": false, + "duration": 61, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_displayCarriersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayCarriersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b212770-49e8-4e23-ad7f-26d42e6804e8", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Edit' link and check the modal", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should click on 'Edit' link and check the modal", + "timedOut": false, + "duration": 419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_clickOnEditLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible, 'Edit shipping modal is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79bdf982-0ee9-414c-824d-c9868a792c7d", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should update the carrier and add a tracking number", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should update the carrier and add a tracking number", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_updateCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setShippingDetails(page, shippingDetailsData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3b803e2-954c-490c-afb4-8bd286b10c85", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the discount value is changed", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should check that the discount value is changed", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkNewCarrierDiscountValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewCarrierDiscountValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getTextColumnFromDiscountTable(page, 'value')];\n case 2:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal(\"- \".concat(shippingDetailsCost));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b49d83a8-caeb-4ac8-bd9c-888ae558ea50", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check total after discount", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should check total after discount", + "timedOut": false, + "duration": 1010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkTotalAfterDiscount3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalAfterDiscount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalAfterDiscount3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalPrice(page)];\n case 2:\n totalAfterDiscount = _a.sent();\n (0, chai_1.expect)(totalAfterDiscount).to.be.equal(totalOrder);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbe336a9-f02b-4450-921c-0004e2003b55", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the total discounts value", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should check the total discounts value", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_checkTotalDiscountValue3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalDiscountValue3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalDiscounts(page)];\n case 2:\n discountValue = _a.sent();\n (0, chai_1.expect)(discountValue).to.equal(-8.40);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a71907a-3e00-481b-b14b-b8359223b9c2", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the created discount", + "fullTitle": "BO - Orders - View and edit order : Add discount Create free shipping cart rule and check it should delete the created discount", + "timedOut": false, + "duration": 445, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_deleteFreeShippingDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFreeShippingDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteDiscount(page)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful update alert is not correct')\n .to.equal(productsBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3e68bc5-0fb5-4ab7-a0f2-653b579f2a17", + "parentUUID": "0c03c14c-4761-4fc2-8e9a-7cbcc52d55b2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "473ae81a-edee-4d1d-9e9e-ae67626f0bd0", + "e0d7a693-f110-4806-baaf-cca833b8a654", + "ed371e38-f2c1-4502-bd54-207d1b991686", + "3a2d9920-cf66-4b0a-9289-c324742224ca", + "8b212770-49e8-4e23-ad7f-26d42e6804e8", + "79bdf982-0ee9-414c-824d-c9868a792c7d", + "e3b803e2-954c-490c-afb4-8bd286b10c85", + "b49d83a8-caeb-4ac8-bd9c-888ae558ea50", + "bbe336a9-f02b-4450-921c-0004e2003b55", + "6a71907a-3e00-481b-b14b-b8359223b9c2", + "e3e68bc5-0fb5-4ab7-a0f2-653b579f2a17" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4015, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "978a647b-6e1f-4736-8cab-ace1da94fed7", + "title": "POST-TEST: Bulk delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/09_addDiscount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete cart rule\"", + "fullTitle": "BO - Orders - View and edit order : Add discount POST-TEST: Bulk delete cart rule \"before all\" hook in \"POST-TEST: Bulk delete cart rule\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07f1936f-178f-4283-8f2a-3375f127e084", + "parentUUID": "978a647b-6e1f-4736-8cab-ace1da94fed7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete cart rule\"", + "fullTitle": "BO - Orders - View and edit order : Add discount POST-TEST: Bulk delete cart rule \"after all\" hook in \"POST-TEST: Bulk delete cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cc7c45fe-bab6-400a-9d7f-97c3335eabca", + "parentUUID": "978a647b-6e1f-4736-8cab-ace1da94fed7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Add discount POST-TEST: Bulk delete cart rule should login in BO", + "timedOut": false, + "duration": 1750, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fdf34d2-386a-4dfc-bb1c-1b2bf89e24a7", + "parentUUID": "978a647b-6e1f-4736-8cab-ace1da94fed7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - View and edit order : Add discount POST-TEST: Bulk delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3642, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_goToDiscountsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f564e884-98f5-4781-87c6-748a01ba662d", + "parentUUID": "978a647b-6e1f-4736-8cab-ace1da94fed7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - View and edit order : Add discount POST-TEST: Bulk delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ba165ad-55db-4f73-affb-cd46ddc18734", + "parentUUID": "978a647b-6e1f-4736-8cab-ace1da94fed7", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete cart rules", + "fullTitle": "BO - Orders - View and edit order : Add discount POST-TEST: Bulk delete cart rule should bulk delete cart rules", + "timedOut": false, + "duration": 483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_bulkDeleteCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkDeleteCartRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f3f652f-ee8d-425b-92f3-c619736c2c83", + "parentUUID": "978a647b-6e1f-4736-8cab-ace1da94fed7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order : Add discount POST-TEST: Bulk delete cart rule should reset all filters", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_addDiscount_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d63498e1-41cc-419b-9352-22ffcc4d8628", + "parentUUID": "978a647b-6e1f-4736-8cab-ace1da94fed7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2fdf34d2-386a-4dfc-bb1c-1b2bf89e24a7", + "f564e884-98f5-4781-87c6-748a01ba662d", + "5ba165ad-55db-4f73-affb-cd46ddc18734", + "7f3f652f-ee8d-425b-92f3-c619736c2c83", + "d63498e1-41cc-419b-9352-22ffcc4d8628" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9898, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "70246d5d-8806-4637-a8da-29f69c4d118a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1790, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0e0737af-0f35-4a59-a801-7ba93544e056", + "title": "BO - Orders - View and edit order : Change order status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/10_changeStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/10_changeStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Change order status\"", + "fullTitle": "BO - Orders - View and edit order : Change order status \"before all\" hook in \"BO - Orders - View and edit order : Change order status\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d249943-8980-4106-b358-dc53b20170df", + "parentUUID": "0e0737af-0f35-4a59-a801-7ba93544e056", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Change order status\"", + "fullTitle": "BO - Orders - View and edit order : Change order status \"after all\" hook in \"BO - Orders - View and edit order : Change order status\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3fbbcdc0-ea34-4aa4-bc11-da265157096c", + "parentUUID": "0e0737af-0f35-4a59-a801-7ba93544e056", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "88695a0a-0f07-41d5-a160-457cdf684f79", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/10_changeStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/10_changeStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68581882-dedc-4273-bf33-30bccd822fd3", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d4149b74-2d9a-426a-9b0a-a155c0528454", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0b7ba18-7c79-4a4f-a038-d47f331bbed7", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2c0ce42-b65e-456a-843c-5c13c4d0faca", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 522, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0adc9977-4a34-4a1d-845f-08bba3d87f3c", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66e2f92f-b5ee-4481-b3b5-99f88800b24a", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "104b6595-0d36-4b42-b881-64c9436dd3eb", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79707150-298d-4e2c-8591-7b5ad0c00ed3", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Change order status PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1513, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12a0c6ed-6b40-4781-8013-0f0876c00e68", + "parentUUID": "88695a0a-0f07-41d5-a160-457cdf684f79", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b0b7ba18-7c79-4a4f-a038-d47f331bbed7", + "f2c0ce42-b65e-456a-843c-5c13c4d0faca", + "0adc9977-4a34-4a1d-845f-08bba3d87f3c", + "66e2f92f-b5ee-4481-b3b5-99f88800b24a", + "104b6595-0d36-4b42-b881-64c9436dd3eb", + "79707150-298d-4e2c-8591-7b5ad0c00ed3", + "12a0c6ed-6b40-4781-8013-0f0876c00e68" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13085, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "441678f5-1734-46ab-95cc-0f9394625b08", + "title": "Change the order status and check result", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/10_changeStatus.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/10_changeStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should login in BO", + "timedOut": false, + "duration": 1780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4bae0d4-0f2a-4ee5-88e2-9b7e6bbee001", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a935089f-424f-4425-bc19-92428b5a18d9", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 1302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_filterOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd7e1bae-8bba-45fd-94f2-417786095b13", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should go to the first order page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_goToOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderPage', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e5a39ca-3716-4896-b26d-06de28f86836", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Update status button' is disabled", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'Update status button' is disabled", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkThatUpdateStatusButtonIsDisabled1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatUpdateStatusButtonIsDisabled1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isUpdateStatusButtonDisabled(page)];\n case 2:\n isButtonDisabled = _a.sent();\n (0, chai_1.expect)(isButtonDisabled, 'Update status button is not disabled!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a313e4a-d8e5-48af-9c5d-bcd2cedd9c0d", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Partial refund' button is not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'Partial refund' button is not visible", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkPartialRefundButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPartialRefundButton1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isPartialRefundButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8743d0af-39c6-4e13-a107-3a917d717737", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'View invoice' button is not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'View invoice' button is not visible", + "timedOut": false, + "duration": 1000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkViewInvoiceButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkViewInvoiceButton1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isViewInvoiceButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fbf6a0c2-0c70-4272-ae26-777824f94d9f", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should select the same status", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should select the same status", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_selectSameStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var actualStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectSameStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderStatus(page)];\n case 2:\n actualStatus = _a.sent();\n (0, chai_1.expect)(actualStatus).to.be.equal(orderStatuses_1.default.awaitingBankWire.name);\n return [4 /*yield*/, tabListBlock_1.default.selectOrderStatus(page, actualStatus)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b734b50a-272f-44e0-b4ab-f02aa371f0c0", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Update status button' still disabled", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'Update status button' still disabled", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkThatUpdateStatusButtonIsDisabled2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatUpdateStatusButtonIsDisabled2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isUpdateStatusButtonDisabled(page)];\n case 2:\n isButtonDisabled = _a.sent();\n (0, chai_1.expect)(isButtonDisabled, 'Update status button is not disabled!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48f9a5fa-086d-4b9b-830e-1fc7850fac82", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Partial refund' button still not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'Partial refund' button still not visible", + "timedOut": false, + "duration": 1000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkPartialRefundButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPartialRefundButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isPartialRefundButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59f371df-21f1-44a3-a32b-29572e967b26", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'View invoice' button still not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'View invoice' button still not visible", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkViewInvoiceButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkViewInvoiceButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isViewInvoiceButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f630b9a-8289-4f30-9359-29838fce9bd2", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'View delivery slip' button is not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'View delivery slip' button is not visible", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkViewInvoiceButton3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkViewInvoiceButton3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isDeliverySlipButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c284578-dbbe-4659-a151-4e4bbbb1afd9", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should select the status 'Canceled'", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should select the status 'Canceled'", + "timedOut": false, + "duration": 1252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_selectCanceledStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectCanceledStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.canceled.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.canceled.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f7c30a7-274b-43bf-a52a-3da3d404e71e", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the statuses number is equal to 2", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that the statuses number is equal to 2", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkStatusesNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusesNumber1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusesNumber(page)];\n case 2:\n statusesNumber = _a.sent();\n (0, chai_1.expect)(statusesNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe4b6e61-6416-4fcd-92ad-8858ac957b4c", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the actual status is 'Canceled'", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that the actual status is 'Canceled'", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkActualStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var actualStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkActualStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderStatus(page)];\n case 2:\n actualStatus = _a.sent();\n (0, chai_1.expect)(actualStatus).to.be.equal(orderStatuses_1.default.canceled.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a276531-75ad-4b8d-9cf0-9efd6a4cbc87", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Partial refund' button is not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'Partial refund' button is not visible", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkPartialRefundButton3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPartialRefundButton3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isPartialRefundButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5f3e6f3-34ca-4636-90ac-6774937d8a14", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'View invoice' button is not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'View invoice' button is not visible", + "timedOut": false, + "duration": 1000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkViewInvoiceButton4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkViewInvoiceButton4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isViewInvoiceButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7625ed19-69e3-447f-8d3e-5ad7ee2e80c7", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'View delivery slip' button is not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'View delivery slip' button is not visible", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkViewInvoiceButton5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkViewInvoiceButton5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isDeliverySlipButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7037899-1f0d-4153-a8b1-ffff12340d3a", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should select the status 'Payment accepted'", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should select the status 'Payment accepted'", + "timedOut": false, + "duration": 1370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_selectPaymentAcceptedStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectPaymentAcceptedStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c38a0f2-4b37-4c40-b509-8ed0f98945a7", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the statuses number is equal to 3", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that the statuses number is equal to 3", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkStatusesNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusesNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusesNumber(page)];\n case 2:\n statusesNumber = _a.sent();\n (0, chai_1.expect)(statusesNumber).to.be.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86dcb77a-8fd6-4b4c-82f0-87350877a2b5", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the actual status is 'Payment accepted'", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that the actual status is 'Payment accepted'", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkActualStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var actualStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkActualStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderStatus(page)];\n case 2:\n actualStatus = _a.sent();\n (0, chai_1.expect)(actualStatus).to.be.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eeb601de-b453-4ba1-a5fe-2c61a41743eb", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Partial refund' button is visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'Partial refund' button is visible", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkPartialRefundButton4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPartialRefundButton4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isPartialRefundButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1ac5225-6792-41f3-8529-a23484688f81", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'View invoice' button is visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'View invoice' button is visible", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkViewInvoiceButton6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkViewInvoiceButton6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isViewInvoiceButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "424df221-cbc6-474b-bade-b84ee4b29864", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'View delivery slip' button is not visible", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that 'View delivery slip' button is not visible", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkViewInvoiceButton7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkViewInvoiceButton7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isDeliverySlipButtonVisible(page)];\n case 2:\n isButtonVisible = _a.sent();\n (0, chai_1.expect)(isButtonVisible, 'Partial refund button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "782ac764-1b26-4043-9f41-36ee3df7e1ee", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_clickOnViewInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06387804-6585-46d0-ae70-9000e38c83d2", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should select the status 'Shipped'", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should select the status 'Shipped'", + "timedOut": false, + "duration": 1235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_selectShippedStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectShippedStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f582b239-dd59-4658-a947-ac94c1fac229", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the statuses number is equal to 4", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that the statuses number is equal to 4", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkStatusesNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var statusesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStatusesNumber3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getStatusesNumber(page)];\n case 2:\n statusesNumber = _a.sent();\n (0, chai_1.expect)(statusesNumber).to.be.equal(4);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97f2a3ed-7262-4242-9c89-b3c81fafd2da", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the actual status is 'Shipped'", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should check that the actual status is 'Shipped'", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_checkActualStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var actualStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkActualStatus3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderStatus(page)];\n case 2:\n actualStatus = _a.sent();\n (0, chai_1.expect)(actualStatus).to.be.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68829b3a-32f1-45ab-a47f-30f2cb8cb65c", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View delivery slip' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order : Change order status Change the order status and check result should click on 'View delivery slip' button and check that the file is downloaded", + "timedOut": false, + "duration": 248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_changeStatus_clickOnViewInvoice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewDeliverySlip(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47165161-509d-43ae-a9c7-dc441a4290ee", + "parentUUID": "441678f5-1734-46ab-95cc-0f9394625b08", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f4bae0d4-0f2a-4ee5-88e2-9b7e6bbee001", + "a935089f-424f-4425-bc19-92428b5a18d9", + "dd7e1bae-8bba-45fd-94f2-417786095b13", + "6e5a39ca-3716-4896-b26d-06de28f86836", + "2a313e4a-d8e5-48af-9c5d-bcd2cedd9c0d", + "8743d0af-39c6-4e13-a107-3a917d717737", + "fbf6a0c2-0c70-4272-ae26-777824f94d9f", + "b734b50a-272f-44e0-b4ab-f02aa371f0c0", + "48f9a5fa-086d-4b9b-830e-1fc7850fac82", + "59f371df-21f1-44a3-a32b-29572e967b26", + "8f630b9a-8289-4f30-9359-29838fce9bd2", + "4c284578-dbbe-4659-a151-4e4bbbb1afd9", + "1f7c30a7-274b-43bf-a52a-3da3d404e71e", + "fe4b6e61-6416-4fcd-92ad-8858ac957b4c", + "2a276531-75ad-4b8d-9cf0-9efd6a4cbc87", + "e5f3e6f3-34ca-4636-90ac-6774937d8a14", + "7625ed19-69e3-447f-8d3e-5ad7ee2e80c7", + "f7037899-1f0d-4153-a8b1-ffff12340d3a", + "8c38a0f2-4b37-4c40-b509-8ed0f98945a7", + "86dcb77a-8fd6-4b4c-82f0-87350877a2b5", + "eeb601de-b453-4ba1-a5fe-2c61a41743eb", + "d1ac5225-6792-41f3-8529-a23484688f81", + "424df221-cbc6-474b-bade-b84ee4b29864", + "782ac764-1b26-4043-9f41-36ee3df7e1ee", + "06387804-6585-46d0-ae70-9000e38c83d2", + "f582b239-dd59-4658-a947-ac94c1fac229", + "97f2a3ed-7262-4242-9c89-b3c81fafd2da", + "68829b3a-32f1-45ab-a47f-30f2cb8cb65c", + "47165161-509d-43ae-a9c7-dc441a4290ee" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21365, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "919f2d8f-2f32-4df9-bde4-a795a54352c8", + "title": "BO - Orders - View and edit order: Check invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order: Check invoice\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice \"before all\" hook in \"BO - Orders - View and edit order: Check invoice\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "739f23ab-0dca-4d1b-bdf8-ff8d42a0a397", + "parentUUID": "919f2d8f-2f32-4df9-bde4-a795a54352c8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order: Check invoice\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice \"after all\" hook in \"BO - Orders - View and edit order: Check invoice\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e4c5b3f6-3722-4f60-9cd5-882efe3df34d", + "parentUUID": "919f2d8f-2f32-4df9-bde4-a795a54352c8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check invoice should login in BO", + "timedOut": false, + "duration": 1775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cba3a551-d91e-430b-8802-3a456963ebf4", + "parentUUID": "919f2d8f-2f32-4df9-bde4-a795a54352c8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - View and edit order: Check invoice should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2810a188-a22d-445c-a1a3-eba70ab08c0f", + "parentUUID": "919f2d8f-2f32-4df9-bde4-a795a54352c8", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "397e765d-4cce-4897-bf33-280201160f44", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0675e5b5-0168-4445-b41f-e58d7dd688a3", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0c369ac5-593c-4c84-be57-1e12d92b3998", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2e7eeae-fd44-43e7-8ad9-1963483d52c9", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ab0c27d-a4cc-47ca-abff-3122933b0dc4", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 524, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b985f05-d238-46e0-bc84-22d8f44cc4a8", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f64e412-830a-431e-bfde-5358bd5e7619", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21f0d8b1-0e5b-4725-a8a1-6398e9158ed9", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "748622ea-5d5a-4e82-bbe1-58263529bce2", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1522, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3053ce9f-6c55-4ea1-8038-a5eb3ef49ddc", + "parentUUID": "397e765d-4cce-4897-bf33-280201160f44", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a2e7eeae-fd44-43e7-8ad9-1963483d52c9", + "5ab0c27d-a4cc-47ca-abff-3122933b0dc4", + "2b985f05-d238-46e0-bc84-22d8f44cc4a8", + "8f64e412-830a-431e-bfde-5358bd5e7619", + "21f0d8b1-0e5b-4725-a8a1-6398e9158ed9", + "748622ea-5d5a-4e82-bbe1-58263529bce2", + "3053ce9f-6c55-4ea1-8038-a5eb3ef49ddc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13057, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "494c51ff-8f90-4de2-b584-2c34aff84f2e", + "title": "PRE-TEST: Enable Ecotax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable Ecotax\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Enable Ecotax \"before all\" hook in \"PRE-TEST: Enable Ecotax\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cf37fa1-733e-40e9-838c-d41bc5e70091", + "parentUUID": "494c51ff-8f90-4de2-b584-2c34aff84f2e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable Ecotax\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Enable Ecotax \"after all\" hook in \"PRE-TEST: Enable Ecotax\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e49960bb-b616-4d80-95b2-eeaa07589ce2", + "parentUUID": "494c51ff-8f90-4de2-b584-2c34aff84f2e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Enable Ecotax should login in BO", + "timedOut": false, + "duration": 1753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40f816ec-0585-4e47-b00f-f7cb70112572", + "parentUUID": "494c51ff-8f90-4de2-b584-2c34aff84f2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Enable Ecotax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_2_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e2657e1-b0db-475a-9c6c-ea8855802d95", + "parentUUID": "494c51ff-8f90-4de2-b584-2c34aff84f2e", + "isHook": false, + "skipped": false + }, + { + "title": "should enable ecotax", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Enable Ecotax should enable ecotax", + "timedOut": false, + "duration": 442, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_preTest_2_enableEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.enableEcoTax(page, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb40c2d2-86d5-457e-ae9a-575632bc2a74", + "parentUUID": "494c51ff-8f90-4de2-b584-2c34aff84f2e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "40f816ec-0585-4e47-b00f-f7cb70112572", + "2e2657e1-b0db-475a-9c6c-ea8855802d95", + "bb40c2d2-86d5-457e-ae9a-575632bc2a74" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7099, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "046e0675-c790-471c-ad51-f5852c3c96e2", + "title": "PRE-TEST: Create product 'Virtual product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Virtual product TOTEST' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 243, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnNewProductButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ef6221a-0197-484f-a87d-2bace08599e1", + "parentUUID": "046e0675-c790-471c-ad51-f5852c3c96e2", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'virtual product'", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Virtual product TOTEST' should choose 'virtual product'", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_chooseProductType0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f65e67c8-c675-4b8c-a1c9-834b49dae6fd", + "parentUUID": "046e0675-c790-471c-ad51-f5852c3c96e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Virtual product TOTEST' should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToNewProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1ab2838-980e-40d5-9ee5-5f031871399a", + "parentUUID": "046e0675-c790-471c-ad51-f5852c3c96e2", + "isHook": false, + "skipped": false + }, + { + "title": "should create product 'Virtual product TOTEST'", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Virtual product TOTEST' should create product 'Virtual product TOTEST'", + "timedOut": false, + "duration": 5077, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_createProduct20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10:\n if (!(product === customizedProduct)) return [3 /*break*/, 14];\n return [4 /*yield*/, add_1.default.goToTab(page, 'details')];\n case 11:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.addNewCustomizations(page, product)];\n case 12:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 13:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 14;\n case 14: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16f223d2-a332-4478-b69c-325359599b56", + "parentUUID": "046e0675-c790-471c-ad51-f5852c3c96e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7ef6221a-0197-484f-a87d-2bace08599e1", + "f65e67c8-c675-4b8c-a1c9-834b49dae6fd", + "d1ab2838-980e-40d5-9ee5-5f031871399a", + "16f223d2-a332-4478-b69c-325359599b56" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6228, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f2a12633-f02c-4694-9d36-07f89c1d43ac", + "title": "PRE-TEST: Create product 'Customized product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Customized product TOTEST' should go to new product page", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToNewProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69516650-6806-4e67-909c-66a8ebc7ceb4", + "parentUUID": "f2a12633-f02c-4694-9d36-07f89c1d43ac", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Customized product TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 3437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_chooseTypeOfProduct21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseTypeOfProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34eff9d9-e128-4738-a0da-fd176ec9a736", + "parentUUID": "f2a12633-f02c-4694-9d36-07f89c1d43ac", + "isHook": false, + "skipped": false + }, + { + "title": "should create product 'Customized product TOTEST'", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Customized product TOTEST' should create product 'Customized product TOTEST'", + "timedOut": false, + "duration": 5652, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_createProduct21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10:\n if (!(product === customizedProduct)) return [3 /*break*/, 14];\n return [4 /*yield*/, add_1.default.goToTab(page, 'details')];\n case 11:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.addNewCustomizations(page, product)];\n case 12:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 13:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 14;\n case 14: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f5dfd1c-dd1c-465c-aaa7-620a985fc732", + "parentUUID": "f2a12633-f02c-4694-9d36-07f89c1d43ac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "69516650-6806-4e67-909c-66a8ebc7ceb4", + "34eff9d9-e128-4738-a0da-fd176ec9a736", + "5f5dfd1c-dd1c-465c-aaa7-620a985fc732" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9369, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0bb0eba4-0fc8-4fb7-88a1-1921da955b37", + "title": "PRE-TEST: Create product 'Product with sp price TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Product with sp price TOTEST' should go to new product page", + "timedOut": false, + "duration": 328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToNewProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8840cb36-5229-40da-af35-e6ba8603024a", + "parentUUID": "0bb0eba4-0fc8-4fb7-88a1-1921da955b37", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Product with sp price TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 3398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_chooseTypeOfProduct22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseTypeOfProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10852082-c085-412a-83a0-a7356c56d1d0", + "parentUUID": "0bb0eba4-0fc8-4fb7-88a1-1921da955b37", + "isHook": false, + "skipped": false + }, + { + "title": "should create product 'Product with sp price TOTEST'", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Product with sp price TOTEST' should create product 'Product with sp price TOTEST'", + "timedOut": false, + "duration": 5490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_createProduct22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10:\n if (!(product === customizedProduct)) return [3 /*break*/, 14];\n return [4 /*yield*/, add_1.default.goToTab(page, 'details')];\n case 11:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.addNewCustomizations(page, product)];\n case 12:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 13:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 14;\n case 14: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60b8056f-00a7-469b-9cdf-13726ebf8d81", + "parentUUID": "0bb0eba4-0fc8-4fb7-88a1-1921da955b37", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8840cb36-5229-40da-af35-e6ba8603024a", + "10852082-c085-412a-83a0-a7356c56d1d0", + "60b8056f-00a7-469b-9cdf-13726ebf8d81" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9216, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2714fe6f-4c91-400f-8a79-d5b1053c771e", + "title": "PRE-TEST: Create product 'Product with ecotax TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Product with ecotax TOTEST' should go to new product page", + "timedOut": false, + "duration": 626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToNewProductPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index !== 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1a12f99-feaa-4015-8ce7-1b55960e7a99", + "parentUUID": "2714fe6f-4c91-400f-8a79-d5b1053c771e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product'", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Product with ecotax TOTEST' should choose 'standard product'", + "timedOut": false, + "duration": 3405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_chooseTypeOfProduct23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseTypeOfProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, product.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24862926-3034-4659-b02c-d377af214a59", + "parentUUID": "2714fe6f-4c91-400f-8a79-d5b1053c771e", + "isHook": false, + "skipped": false + }, + { + "title": "should create product 'Product with ecotax TOTEST'", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create product 'Product with ecotax TOTEST' should create product 'Product with ecotax TOTEST'", + "timedOut": false, + "duration": 5466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_createProduct23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, product)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n if (!(product === productWithSpecificPrice)) return [3 /*break*/, 6];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 3:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithSpecificPrice.specificPrice)];\n case 5:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n _a.label = 6;\n case 6:\n if (!(product === productWithEcoTax)) return [3 /*break*/, 10];\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 7:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.addEcoTax(page, productWithEcoTax.ecoTax)];\n case 8:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 9:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 10;\n case 10:\n if (!(product === customizedProduct)) return [3 /*break*/, 14];\n return [4 /*yield*/, add_1.default.goToTab(page, 'details')];\n case 11:\n _a.sent();\n return [4 /*yield*/, detailsTab_1.default.addNewCustomizations(page, product)];\n case 12:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 13:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n _a.label = 14;\n case 14: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdf86f82-638f-410e-b410-fdc931c1999e", + "parentUUID": "2714fe6f-4c91-400f-8a79-d5b1053c771e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e1a12f99-feaa-4015-8ce7-1b55960e7a99", + "24862926-3034-4659-b02c-d377af214a59", + "cdf86f82-638f-410e-b410-fdc931c1999e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9497, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "65afabf3-77e2-4a39-a0bf-718271aef378", + "title": "PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO \"before all\" hook in \"PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcd801a5-18e1-488d-b107-3d5546baaecb", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO \"after all\" hook in \"PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3cbf5abb-aa03-4fc8-83e1-580fd3f4dbaa", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO should open FO page", + "timedOut": false, + "duration": 1860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df6531e7-9373-40cd-80f8-a96da3814ed9", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO should go to login page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e33747c-5c9c-4bce-b21d-d412563ba11b", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO should sign in with default customer", + "timedOut": false, + "duration": 640, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c167af8-ead1-46a9-877f-0df7d07a09a3", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product Customized product TOTEST", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO should search for the product Customized product TOTEST", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_searchForProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, orderData.products[0].product.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ed105b5-f59b-4587-a4a6-fe84fe52a8a1", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO should add product to cart", + "timedOut": false, + "duration": 5026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35ceafe5-4dbb-43b8-98cf-5d0b56e8ce08", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO should go to delivery step", + "timedOut": false, + "duration": 986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85c4cd31-b1c7-4cd5-8aae-479cdf66dd33", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO should go to payment step", + "timedOut": false, + "duration": 291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71cca765-6181-4e37-b69d-41ceacdd0477", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order: Check invoice PRE-TEST: Create order contain 'Customized product TOTEST' by default customer in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20302f24-9636-4a34-84b6-4b8cb9670d22", + "parentUUID": "65afabf3-77e2-4a39-a0bf-718271aef378", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "df6531e7-9373-40cd-80f8-a96da3814ed9", + "2e33747c-5c9c-4bce-b21d-d412563ba11b", + "8c167af8-ead1-46a9-877f-0df7d07a09a3", + "1ed105b5-f59b-4587-a4a6-fe84fe52a8a1", + "35ceafe5-4dbb-43b8-98cf-5d0b56e8ce08", + "85c4cd31-b1c7-4cd5-8aae-479cdf66dd33", + "71cca765-6181-4e37-b69d-41ceacdd0477", + "20302f24-9636-4a34-84b6-4b8cb9670d22" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11798, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aed506b7-bfd0-4ba6-a2d3-af6b20a77414", + "title": "Check invoice contain 'Virtual product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "8df324d7-778c-4b42-8757-711dbbfd483f", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4639, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38019613-3a9d-4e43-af0d-e4f0861d80be", + "parentUUID": "8df324d7-778c-4b42-8757-711dbbfd483f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Go to view order page should reset all filters", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_resetOrderTableFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1738c033-ede0-4430-99d5-37f46d7ae7ca", + "parentUUID": "8df324d7-778c-4b42-8757-711dbbfd483f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2420, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_filterByCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59fd7d42-eea1-407e-9754-9ec8e88a06bd", + "parentUUID": "8df324d7-778c-4b42-8757-711dbbfd483f", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Go to view order page should view the order", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_orderPageTabListBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20d8ca34-a36e-40da-9401-f55b2e64bdd8", + "parentUUID": "8df324d7-778c-4b42-8757-711dbbfd483f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "38019613-3a9d-4e43-af0d-e4f0861d80be", + "1738c033-ede0-4430-99d5-37f46d7ae7ca", + "59fd7d42-eea1-407e-9754-9ec8e88a06bd", + "20d8ca34-a36e-40da-9401-f55b2e64bdd8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8857, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3bce13e9-f775-4238-9d4f-864978bb5508", + "title": "Create invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the ordered product", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should delete the ordered product", + "timedOut": false, + "duration": 666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_deleteOrderedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteOrderedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteProduct(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulDeleteProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10d2654a-c90d-4fe2-a242-d3f5c6ea39d9", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Virtual product TOTEST'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should search for the product 'Virtual product TOTEST'", + "timedOut": false, + "duration": 1067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_searchProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, virtualProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductInformation(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result.available).to.equal(virtualProduct.quantity - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45560130-76cf-495e-8b3a-e6c285520593", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should add the product to the cart", + "timedOut": false, + "duration": 4194, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page, 13)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b67b3209-93f1-4663-981a-ee37248cfdbe", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + }, + { + "title": "should change the 'Invoice address'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should change the 'Invoice address'", + "timedOut": false, + "duration": 1039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_changeBillingAddress1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressToSelect, alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeBillingAddress1', baseContext)];\n case 1:\n _a.sent();\n addressToSelect = \"#\".concat(address_1.default.third.id, \" \").concat(address_1.default.third.alias, \" - \").concat(address_1.default.third.address, \" \")\n + \"\".concat(address_1.default.third.secondAddress, \" \").concat(address_1.default.third.postalCode, \" \").concat(address_1.default.third.city);\n return [4 /*yield*/, customerBlock_1.default.selectAnotherInvoiceAddress(page, addressToSelect)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.contains(customerBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5aceefae-a5fb-4b4d-835f-8d14c2028538", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Payment accepted'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should change the order status to 'Payment accepted'", + "timedOut": false, + "duration": 1396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_updateOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e913f95-e0ac-42ab-9056-3808c1cc8005", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is no carrier", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should check that there is no carrier", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkCarriersNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriersNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarriersNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getCarriersNumber(page)];\n case 2:\n carriersNumber = _a.sent();\n (0, chai_1.expect)(carriersNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ec2005a-e61c-4761-a5a1-ccf20216dd5a", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + }, + { + "title": "should get the invoice file name", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should get the invoice file name", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_getInvoiceFileName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getInvoiceFileName1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(filePath).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9fe104e-785a-416b-bf7b-a732e7452bb4", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order reference", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should get the order reference", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_getOrderReference1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderReference(page)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "545a4b5e-1354-44f2-91b1-d69ef2366ac0", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Create invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnViewInvoice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b18d213f-f2cb-47b7-93e6-1ad339ce655d", + "parentUUID": "3bce13e9-f775-4238-9d4f-864978bb5508", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "10d2654a-c90d-4fe2-a242-d3f5c6ea39d9", + "45560130-76cf-495e-8b3a-e6c285520593", + "b67b3209-93f1-4663-981a-ee37248cfdbe", + "5aceefae-a5fb-4b4d-835f-8d14c2028538", + "9e913f95-e0ac-42ab-9056-3808c1cc8005", + "1ec2005a-e61c-4761-a5a1-ccf20216dd5a", + "a9fe104e-785a-416b-bf7b-a732e7452bb4", + "545a4b5e-1354-44f2-91b1-d69ef2366ac0", + "b18d213f-f2cb-47b7-93e6-1ad339ce655d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8948, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e2ddc643-f9ee-4c7f-8de9-ec71cbc157e9", + "title": "Check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "2b44014e-d105-40b6-8c2c-04f96998067c", + "title": "Check Header", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the header of the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Header should check the header of the invoice", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkHeaderInvoice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imageNumber, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkHeaderInvoice1', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, files_1.default.getImageNumberInPDF(filePath)];\n case 2:\n imageNumber = _a.sent();\n (0, chai_1.expect)(imageNumber, 'Logo is not visible!').to.be.equal(1);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"INVOICE,,\".concat(today, \",,#\").concat(fileName))];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'File name header is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfc6e6d2-d924-4565-8113-9f5994df381e", + "parentUUID": "2b44014e-d105-40b6-8c2c-04f96998067c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Delivery address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Header should check that the 'Delivery address' is correct", + "timedOut": false, + "duration": 397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkDeliveryAddress1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryAddress1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Delivery address,,'\n + \"\".concat(address_1.default.second.firstName, \" \").concat(address_1.default.second.lastName, \",\")\n + \"\".concat(address_1.default.second.company, \",\")\n + \"\".concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\")\n + \"\".concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city, \",\")\n + \"\".concat(address_1.default.second.country, \",\")\n + \"\".concat(address_1.default.second.phone))];\n case 2:\n deliveryAddressExist = _a.sent();\n (0, chai_1.expect)(deliveryAddressExist, 'Delivery address is not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f3d95c7-5d4b-40cf-b28b-d7994a1349e2", + "parentUUID": "2b44014e-d105-40b6-8c2c-04f96998067c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Billing address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Header should check that the 'Billing address' is correct", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBillingAddress1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var billingAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBillingAddress1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Billing address,,'\n + \"\".concat(address_1.default.third.firstName, \" \").concat(address_1.default.third.lastName, \",\")\n + \"\".concat(address_1.default.third.company, \",\")\n + \"\".concat(address_1.default.third.address, \" \").concat(address_1.default.third.secondAddress, \",\")\n + \"\".concat(address_1.default.third.city, \", \").concat(address_1.default.third.state, \" \").concat(address_1.default.third.postalCode, \",\")\n + \"\".concat(address_1.default.third.country, \",\")\n + \"\".concat(address_1.default.third.phone))];\n case 2:\n billingAddressExist = _a.sent();\n (0, chai_1.expect)(billingAddressExist, 'Billing address is not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "153f50cb-3989-4731-9d01-2cd32025542b", + "parentUUID": "2b44014e-d105-40b6-8c2c-04f96998067c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Invoice number, Invoice date, Order reference and Order date' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Header should check that the 'Invoice number, Invoice date, Order reference and Order date' are correct", + "timedOut": false, + "duration": 267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkInvoiceNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceNumberExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceNumber1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Invoice Number, ,Invoice Date, ,Order Reference, ,Order date,,'\n + \"#\".concat(fileName, \", ,\").concat(today, \", ,\").concat(orderReference, \", ,\").concat(today, \",\"))];\n case 2:\n invoiceNumberExist = _a.sent();\n (0, chai_1.expect)(invoiceNumberExist, 'Invoice information are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "026f2dfb-174d-4fd9-b593-6d5d6d805013", + "parentUUID": "2b44014e-d105-40b6-8c2c-04f96998067c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1f3d95c7-5d4b-40cf-b28b-d7994a1349e2", + "153f50cb-3989-4731-9d01-2cd32025542b", + "026f2dfb-174d-4fd9-b593-6d5d6d805013" + ], + "failures": [], + "pending": [ + "cfc6e6d2-d924-4565-8113-9f5994df381e" + ], + "skipped": [], + "duration": 986, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "28990879-9f4c-498c-9b4d-8367e524874d", + "title": "Check Products table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Product reference, Product name' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Products table should check that the 'Product reference, Product name' are correct", + "timedOut": false, + "duration": 249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkProductReference1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productReferenceExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductReference1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(virtualProduct.reference, \", ,\").concat(virtualProduct.name))];\n case 2:\n productReferenceExist = _a.sent();\n (0, chai_1.expect)(productReferenceExist, 'Product name and reference are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46981915-b92f-407c-838a-aedc98701116", + "parentUUID": "28990879-9f4c-498c-9b4d-8367e524874d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Product Tax Rate, Unit Price (tax excl.), quantity and Product Total price(tax excl.)' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Products table should check that the 'Product Tax Rate, Unit Price (tax excl.), quantity and Product Total price(tax excl.)' are correct", + "timedOut": false, + "duration": 243, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkTaxRate1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPriceExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTaxRate1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(virtualProduct.name, \", ,\")\n + \"\".concat(virtualProduct.tax, \" %, ,\")\n + \"\\u20AC\".concat(virtualProduct.priceTaxExcluded.toFixed(2), \", ,\")\n + '13, ,'\n + \"\\u20AC\".concat((virtualProduct.priceTaxExcluded * 13).toFixed(2)))];\n case 2:\n productPriceExist = _a.sent();\n (0, chai_1.expect)(productPriceExist, 'Product Tax Rate, unit price (tax exl.), quantity and Total price (tax excl.) are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6e278d8-4ce0-49e9-b6bc-9551818dbdd4", + "parentUUID": "28990879-9f4c-498c-9b4d-8367e524874d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "46981915-b92f-407c-838a-aedc98701116", + "a6e278d8-4ce0-49e9-b6bc-9551818dbdd4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 492, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "461b9420-f705-4cd6-8054-7757ed6ba938", + "title": "Check Taxes table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that 'Tax Detail, Tax Rate, Base price, Total tax' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Taxes table should check that 'Tax Detail, Tax Rate, Base price, Total tax' are correct", + "timedOut": false, + "duration": 238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkTaxesTable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxDetailsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTaxesTable1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Tax Detail, ,Tax Rate, ,Base price, ,Total Tax,,'\n + 'Products, ,'\n + '20.000 %, ,'\n + \"\\u20AC\".concat((virtualProduct.priceTaxExcluded * 13).toFixed(2), \", ,\")\n + \"\\u20AC\".concat(((virtualProduct.price - virtualProduct.priceTaxExcluded) * 13)\n .toFixed(2)))];\n case 2:\n taxDetailsVisible = _a.sent();\n (0, chai_1.expect)(taxDetailsVisible, 'Tax detail, tax Rate, Base price and Total tax are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99609950-a70a-4b58-8d84-59807758a522", + "parentUUID": "461b9420-f705-4cd6-8054-7757ed6ba938", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99609950-a70a-4b58-8d84-59807758a522" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 238, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5bef4510-961c-49e5-aa09-b0caf35b3973", + "title": "Check Payments table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Payment method and Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Payments table should check that the 'Payment method and Total' are correct", + "timedOut": false, + "duration": 233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkPaymentMethod1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentMethodExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentMethod1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Payment Method, ,Bank transfer, ,'\n + \"\\u20AC\".concat((virtualProduct.price * 13).toFixed(2)))];\n case 2:\n paymentMethodExist = _a.sent();\n (0, chai_1.expect)(paymentMethodExist, 'Payment method and total to pay are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fa686d8-b013-4899-be7d-ef427426b50a", + "parentUUID": "5bef4510-961c-49e5-aa09-b0caf35b3973", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the carrier is not visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Payments table should check that the carrier is not visible", + "timedOut": false, + "duration": 233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkCarrierNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCarrierVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarrierNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Carrier, \".concat(carriers_1.default.default.name))];\n case 2:\n isCarrierVisible = _a.sent();\n (0, chai_1.expect)(isCarrierVisible, \"Carrier '\".concat(carriers_1.default.default.name, \"' is visible!\")).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ae20939-c4ff-4b30-a975-17cbd6d65e8a", + "parentUUID": "5bef4510-961c-49e5-aa09-b0caf35b3973", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4fa686d8-b013-4899-be7d-ef427426b50a", + "0ae20939-c4ff-4b30-a975-17cbd6d65e8a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 466, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "570f61b7-411c-473f-9f2d-eae650742740", + "title": "Check Total to pay table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that 'Total Products, Total(Tax exc.), Total Tax, Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Virtual product TOTEST' Check the invoice Check Total to pay table should check that 'Total Products, Total(Tax exc.), Total Tax, Total' are correct", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkTotalToPay1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPriceTaxExcl, priceTaxIncl, tax, isPaymentTableCorrect;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalToPay1', baseContext)];\n case 1:\n _a.sent();\n totalPriceTaxExcl = virtualProduct.priceTaxExcluded * 13;\n priceTaxIncl = virtualProduct.price * 13;\n tax = virtualProduct.price - virtualProduct.priceTaxExcluded;\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Total Products, ,\\u20AC\".concat(totalPriceTaxExcl.toFixed(2), \",,\")\n + \"Total (Tax excl.), ,\\u20AC\".concat(totalPriceTaxExcl.toFixed(2), \",,\")\n + \"Total Tax, ,\\u20AC\".concat((tax * 13).toFixed(2), \",,\")\n + \"Total, ,\\u20AC\".concat(priceTaxIncl.toFixed(2)))];\n case 2:\n isPaymentTableCorrect = _a.sent();\n (0, chai_1.expect)(isPaymentTableCorrect, 'Total Products, Total(Tax exc.), Total Tax, Total are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abb5af68-8974-413c-8d3d-c6ba0b6a399f", + "parentUUID": "570f61b7-411c-473f-9f2d-eae650742740", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "abb5af68-8974-413c-8d3d-c6ba0b6a399f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 229, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e7916f34-95a5-48c1-8eed-7d752af9cf01", + "title": "Check invoice contain 'Customized product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "c66828c5-f49a-4b3a-a619-94b9f31df00a", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91b7b7b2-ef8b-42ba-875f-e524603a706a", + "parentUUID": "c66828c5-f49a-4b3a-a619-94b9f31df00a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Go to view order page should reset all filters", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_resetOrderTableFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetOrderTableFilters2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e332a10-f8be-4f06-8b9c-4952927bd0c2", + "parentUUID": "c66828c5-f49a-4b3a-a619-94b9f31df00a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2506, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_filterByCustomer2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa7c80b7-9836-481e-a96a-1d7e193787b8", + "parentUUID": "c66828c5-f49a-4b3a-a619-94b9f31df00a", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Go to view order page should view the order", + "timedOut": false, + "duration": 934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_orderPageTabListBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageTabListBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c08bc1db-bc32-42ed-9b72-33837c88c34b", + "parentUUID": "c66828c5-f49a-4b3a-a619-94b9f31df00a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "91b7b7b2-ef8b-42ba-875f-e524603a706a", + "9e332a10-f8be-4f06-8b9c-4952927bd0c2", + "aa7c80b7-9836-481e-a96a-1d7e193787b8", + "c08bc1db-bc32-42ed-9b72-33837c88c34b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9155, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "995c7c3c-8818-4f21-8717-1711f7b8537d", + "title": "Create invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the order status to 'Payment accepted'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Create invoice should change the order status to 'Payment accepted'", + "timedOut": false, + "duration": 1342, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_updateOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "749764b8-3608-498f-bf15-143a33ae23e2", + "parentUUID": "995c7c3c-8818-4f21-8717-1711f7b8537d", + "isHook": false, + "skipped": false + }, + { + "title": "should get the invoice file name", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Create invoice should get the invoice file name", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_getInvoiceFileName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getInvoiceFileName2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(filePath).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e49656a6-13ff-41c8-8c16-b8001748857b", + "parentUUID": "995c7c3c-8818-4f21-8717-1711f7b8537d", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order reference", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Create invoice should get the order reference", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_getOrderReference2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderReference(page)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "306c03db-691d-42b3-be2c-bcd2f9fdfbf2", + "parentUUID": "995c7c3c-8818-4f21-8717-1711f7b8537d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Create invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnViewInvoice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b675d2c-18f6-46da-a6ab-c154f1096e50", + "parentUUID": "995c7c3c-8818-4f21-8717-1711f7b8537d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "749764b8-3608-498f-bf15-143a33ae23e2", + "e49656a6-13ff-41c8-8c16-b8001748857b", + "306c03db-691d-42b3-be2c-bcd2f9fdfbf2", + "1b675d2c-18f6-46da-a6ab-c154f1096e50" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1993, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1bcdeb5b-ed7f-4123-b2d3-20310dcf8b5d", + "title": "Check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "70edaa61-6a66-463f-b3c1-d9cf3867e013", + "title": "Check Header", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the header of the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Header should check the header of the invoice", + "timedOut": false, + "duration": 1, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkHeaderInvoice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imageNumber, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkHeaderInvoice2', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, files_1.default.getImageNumberInPDF(filePath)];\n case 2:\n imageNumber = _a.sent();\n (0, chai_1.expect)(imageNumber, 'Logo is not visible!').to.be.equal(1);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"INVOICE,,\".concat(today, \",,#\").concat(fileName))];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'File name header is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccd64ff3-1c89-434e-bbd3-e9cc74ee9f77", + "parentUUID": "70edaa61-6a66-463f-b3c1-d9cf3867e013", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Delivery address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Header should check that the 'Delivery address' is correct", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkDeliveryAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryAddress2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Delivery address,,'\n + \"\".concat(address_1.default.second.firstName, \" \").concat(address_1.default.second.lastName, \",\")\n + \"\".concat(address_1.default.second.company, \",\")\n + \"\".concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\")\n + \"\".concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city, \",\")\n + \"\".concat(address_1.default.second.country, \",\")\n + \"\".concat(address_1.default.second.phone))];\n case 2:\n deliveryAddressExist = _a.sent();\n (0, chai_1.expect)(deliveryAddressExist, 'Delivery address is not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4eb68197-c53f-4750-aaa5-e893ad62c008", + "parentUUID": "70edaa61-6a66-463f-b3c1-d9cf3867e013", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Billing address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Header should check that the 'Billing address' is correct", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBillingAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var billingAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBillingAddress2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Billing address,,'\n + \"\".concat(address_1.default.second.firstName, \" \").concat(address_1.default.second.lastName, \",\")\n + \"\".concat(address_1.default.second.company, \",\")\n + \"\".concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\")\n + \"\".concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city, \",\")\n + \"\".concat(address_1.default.second.country, \",\")\n + \"\".concat(address_1.default.second.phone))];\n case 2:\n billingAddressExist = _a.sent();\n (0, chai_1.expect)(billingAddressExist, 'Billing address is not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4b1b871-43aa-4d41-9d1a-9a46386d97b0", + "parentUUID": "70edaa61-6a66-463f-b3c1-d9cf3867e013", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Invoice number, Invoice date, Order reference and Order date' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Header should check that the 'Invoice number, Invoice date, Order reference and Order date' are correct", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkInvoiceNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceNumberExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Invoice Number, ,Invoice Date, ,Order Reference, ,Order date,,'\n + \"#\".concat(fileName, \", ,\").concat(today, \", ,\").concat(orderReference, \", ,\").concat(today, \",\"))];\n case 2:\n invoiceNumberExist = _a.sent();\n (0, chai_1.expect)(invoiceNumberExist, 'Invoice information are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "854fe31c-3776-411e-9519-925085c3b938", + "parentUUID": "70edaa61-6a66-463f-b3c1-d9cf3867e013", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4eb68197-c53f-4750-aaa5-e893ad62c008", + "c4b1b871-43aa-4d41-9d1a-9a46386d97b0", + "854fe31c-3776-411e-9519-925085c3b938" + ], + "failures": [], + "pending": [ + "ccd64ff3-1c89-434e-bbd3-e9cc74ee9f77" + ], + "skipped": [], + "duration": 691, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31d03b0b-4f25-44dd-8cc2-8483214d54e6", + "title": "Check Products table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Product reference, Product name' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Products table should check that the 'Product reference, Product name' are correct", + "timedOut": false, + "duration": 232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkProductReference2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productReferenceExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductReference2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(customizedProduct.reference, \", ,\").concat(customizedProduct.name))];\n case 2:\n productReferenceExist = _a.sent();\n (0, chai_1.expect)(productReferenceExist, 'Product name and reference are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7f4fd09-6212-47c9-aec2-635ad0d4a068", + "parentUUID": "31d03b0b-4f25-44dd-8cc2-8483214d54e6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the customized text is visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Products table should check that the customized text is visible", + "timedOut": false, + "duration": 232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkCustomizedText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomizedTextVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomizedText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(customizedProduct.customization, \": text,(1)\"))];\n case 2:\n isCustomizedTextVisible = _a.sent();\n (0, chai_1.expect)(isCustomizedTextVisible, 'Customized text is not visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2881e966-c4aa-4b97-979f-98975a0882f9", + "parentUUID": "31d03b0b-4f25-44dd-8cc2-8483214d54e6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Unit Price (tax excl.), quantity and Product Total price (tax excl.)' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Products table should check that the 'Unit Price (tax excl.), quantity and Product Total price (tax excl.)' are correct", + "timedOut": false, + "duration": 317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkProductCustomizedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPriceExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductCustomizedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(customizedProduct.name, \", ,\")\n + \"\\u20AC\".concat(customizedProduct.priceTaxExcluded.toFixed(2), \", ,\")\n + '1, ,'\n + \"\\u20AC\".concat(customizedProduct.priceTaxExcluded.toFixed(2)))];\n case 2:\n productPriceExist = _a.sent();\n (0, chai_1.expect)(productPriceExist, 'Unit Price (tax excl.), quantity and Product Total price are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "659782d4-7e6d-48b6-a091-528c44f9dc31", + "parentUUID": "31d03b0b-4f25-44dd-8cc2-8483214d54e6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f7f4fd09-6212-47c9-aec2-635ad0d4a068", + "2881e966-c4aa-4b97-979f-98975a0882f9", + "659782d4-7e6d-48b6-a091-528c44f9dc31" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 781, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9b96dd5e-5054-4086-b1b6-18e2da75dac9", + "title": "Check that Taxes table is not visible", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that 'Tax Detail' table is not visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check that Taxes table is not visible should check that 'Tax Detail' table is not visible", + "timedOut": false, + "duration": 251, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkIsTaxesTableNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTaxTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIsTaxesTableNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Tax Detail,Tax Rate,Base price,Total Tax')];\n case 2:\n isTaxTableVisible = _a.sent();\n (0, chai_1.expect)(isTaxTableVisible, 'Tax table is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d36aaca-dc9d-4d8e-81db-80b463fa6895", + "parentUUID": "9b96dd5e-5054-4086-b1b6-18e2da75dac9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7d36aaca-dc9d-4d8e-81db-80b463fa6895" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 251, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c68ef652-838f-4092-a36d-aa1d106d16c4", + "title": "Check Payments table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Payment method and Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Payments table should check that the 'Payment method and Total' are correct", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkPaymentMethod2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentMethodExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentMethod2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Payment Method, ,Bank transfer, ,'\n + \"\\u20AC\".concat((customizedProduct.price).toFixed(2)))];\n case 2:\n paymentMethodExist = _a.sent();\n (0, chai_1.expect)(paymentMethodExist, 'Payment method and total to pay are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b1197fb-25b6-4bf3-8212-d36c018f49ba", + "parentUUID": "c68ef652-838f-4092-a36d-aa1d106d16c4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the carrier is visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Payments table should check that the carrier is visible", + "timedOut": false, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkCarrierVisible2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCarrierVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarrierVisible2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, carriers_1.default.default.name)];\n case 2:\n isCarrierVisible = _a.sent();\n (0, chai_1.expect)(isCarrierVisible, \"Carrier '\".concat(carriers_1.default.default.name, \"' is not visible!\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96a7f772-a8ca-4430-8f47-eaf70654a7a9", + "parentUUID": "c68ef652-838f-4092-a36d-aa1d106d16c4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1b1197fb-25b6-4bf3-8212-d36c018f49ba", + "96a7f772-a8ca-4430-8f47-eaf70654a7a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 475, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bf3f8586-d497-41bf-912e-08f07ea7ae80", + "title": "Check Total to pay table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that 'Total Products, Shipping Costs, Total(Tax exc.), Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Customized product TOTEST' Check the invoice Check Total to pay table should check that 'Total Products, Shipping Costs, Total(Tax exc.), Total' are correct", + "timedOut": false, + "duration": 226, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkTotalToPay2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isShippingCostVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalToPay2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Total Products, ,\\u20AC\".concat(customizedProduct.price.toFixed(2), \",\")\n + 'Shipping Costs, ,Free Shipping,,'\n + \"Total (Tax excl.), ,\\u20AC\".concat(customizedProduct.price.toFixed(2), \",,\")\n + \"Total, ,\\u20AC\".concat(customizedProduct.price.toFixed(2)))];\n case 2:\n isShippingCostVisible = _a.sent();\n (0, chai_1.expect)(isShippingCostVisible, 'Total Products, Shipping Costs, Total(Tax exc.), Total are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "717099fb-327e-473d-ba3c-8a49554163e1", + "parentUUID": "bf3f8586-d497-41bf-912e-08f07ea7ae80", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "717099fb-327e-473d-ba3c-8a49554163e1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 226, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e05856af-afd3-4700-a673-a5ffefdf9340", + "title": "Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "b04fabf2-ea3f-4cdf-a09b-fba804cca1fb", + "title": "Create invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Product with sp price TOTEST'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Create invoice should search for the product 'Product with sp price TOTEST'", + "timedOut": false, + "duration": 1015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_searchProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, productWithSpecificPrice.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductInformation(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result.available).to.equal(productWithSpecificPrice.quantity - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbd30a50-8e9c-4c2e-aaf8-80602e5ffee4", + "parentUUID": "b04fabf2-ea3f-4cdf-a09b-fba804cca1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Create invoice should add the product to the cart", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tabListBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0f1a602-d437-4150-a96b-cb75da6e7038", + "parentUUID": "b04fabf2-ea3f-4cdf-a09b-fba804cca1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should get the invoice file name", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Create invoice should get the invoice file name", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_getInvoiceFileName3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getInvoiceFileName3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(filePath).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e73c99a5-3de7-4b5b-a61e-6d0fc5e95506", + "parentUUID": "b04fabf2-ea3f-4cdf-a09b-fba804cca1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order reference", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Create invoice should get the order reference", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_getOrderReference3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderReference(page)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af4184e2-e3fa-484f-b7ef-879dc9728779", + "parentUUID": "b04fabf2-ea3f-4cdf-a09b-fba804cca1fb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Create invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnViewInvoice3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3208b0b-f864-49a8-97ee-7e54ef0dec10", + "parentUUID": "b04fabf2-ea3f-4cdf-a09b-fba804cca1fb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cbd30a50-8e9c-4c2e-aaf8-80602e5ffee4", + "c0f1a602-d437-4150-a96b-cb75da6e7038", + "e73c99a5-3de7-4b5b-a61e-6d0fc5e95506", + "af4184e2-e3fa-484f-b7ef-879dc9728779", + "a3208b0b-f864-49a8-97ee-7e54ef0dec10" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2245, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6c5356a6-272c-40cb-9071-b46dff3b5bf6", + "title": "Check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "9edd88eb-cfa5-4f09-9fce-0bf211f27be4", + "title": "Check Header", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the header of the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Header should check the header of the invoice", + "timedOut": false, + "duration": 1, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkHeaderInvoice3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imageNumber, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkHeaderInvoice3', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, files_1.default.getImageNumberInPDF(filePath)];\n case 2:\n imageNumber = _a.sent();\n (0, chai_1.expect)(imageNumber, 'Logo is not visible!').to.be.equal(1);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"INVOICE,,\".concat(today, \",,#\").concat(fileName))];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'File name header is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1a25122-2b02-4629-b98d-101e7c43012e", + "parentUUID": "9edd88eb-cfa5-4f09-9fce-0bf211f27be4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Delivery address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Header should check that the 'Delivery address' is correct", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkDeliveryAddress3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryAddress3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Delivery address,,'\n + \"\".concat(address_1.default.second.firstName, \" \").concat(address_1.default.second.lastName, \",\")\n + \"\".concat(address_1.default.second.company, \",\")\n + \"\".concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\")\n + \"\".concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city, \",\")\n + \"\".concat(address_1.default.second.country, \",\")\n + \"\".concat(address_1.default.second.phone))];\n case 2:\n deliveryAddressExist = _a.sent();\n (0, chai_1.expect)(deliveryAddressExist, 'Delivery address is not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7be66972-84c2-4330-81c4-36dd090ca4df", + "parentUUID": "9edd88eb-cfa5-4f09-9fce-0bf211f27be4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Billing address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Header should check that the 'Billing address' is correct", + "timedOut": false, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBillingAddress3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var billingAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBillingAddress3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Billing address,,'\n + \"\".concat(address_1.default.second.firstName, \" \").concat(address_1.default.second.lastName, \",\")\n + \"\".concat(address_1.default.second.company, \",\")\n + \"\".concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\")\n + \"\".concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city, \",\")\n + \"\".concat(address_1.default.second.country, \",\")\n + \"\".concat(address_1.default.second.phone))];\n case 2:\n billingAddressExist = _a.sent();\n (0, chai_1.expect)(billingAddressExist, 'Billing address is not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88dfd36e-bbb3-4079-9fb9-0931da95b347", + "parentUUID": "9edd88eb-cfa5-4f09-9fce-0bf211f27be4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Invoice number, Invoice date, Order reference and Order date' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Header should check that the 'Invoice number, Invoice date, Order reference and Order date' are correct", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkInvoiceNumber3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceNumberExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceNumber3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Invoice Number, ,Invoice Date, ,Order Reference, ,Order date,,'\n + \"#\".concat(fileName, \", ,\").concat(today, \", ,\").concat(orderReference, \", ,\").concat(today, \",\"))];\n case 2:\n invoiceNumberExist = _a.sent();\n (0, chai_1.expect)(invoiceNumberExist, 'Invoice information are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fe17c24-a1ac-47f0-8822-09cd28137b78", + "parentUUID": "9edd88eb-cfa5-4f09-9fce-0bf211f27be4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7be66972-84c2-4330-81c4-36dd090ca4df", + "88dfd36e-bbb3-4079-9fb9-0931da95b347", + "3fe17c24-a1ac-47f0-8822-09cd28137b78" + ], + "failures": [], + "pending": [ + "b1a25122-2b02-4629-b98d-101e7c43012e" + ], + "skipped": [], + "duration": 696, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a07d1762-9c45-45f2-9da4-8d8a6dad143a", + "title": "Check Products table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Product reference, Product name' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Products table should check that the 'Product reference, Product name' are correct", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkProductReference3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productReferenceExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductReference3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(productWithSpecificPrice.reference, \", ,\").concat(productWithSpecificPrice.name))];\n case 2:\n productReferenceExist = _a.sent();\n (0, chai_1.expect)(productReferenceExist, 'Product name and reference are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42431745-ae0f-45ea-a58d-bc0ddc452a7c", + "parentUUID": "a07d1762-9c45-45f2-9da4-8d8a6dad143a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the column 'Base price (Tax excl.)' is visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Products table should check that the column 'Base price (Tax excl.)' is visible", + "timedOut": false, + "duration": 235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBasePriceColumnVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var basePriceColumnVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBasePriceColumnVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Base,price,(Tax excl.)')];\n case 2:\n basePriceColumnVisible = _a.sent();\n (0, chai_1.expect)(basePriceColumnVisible, 'Base price is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1384015-5961-4cb0-87cc-c61aea9e8c76", + "parentUUID": "a07d1762-9c45-45f2-9da4-8d8a6dad143a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Base price (Tax excl.), Unit Price, Quantity, Total (Tax excl.)' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Products table should check that the 'Base price (Tax excl.), Unit Price, Quantity, Total (Tax excl.)' are correct", + "timedOut": false, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBasePriceSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountValue, unitPrice, basePriceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBasePriceSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(productWithSpecificPrice.price, productWithSpecificPrice.specificPrice.discount)];\n case 2:\n discountValue = _a.sent();\n unitPrice = productWithSpecificPrice.price - discountValue;\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(productWithSpecificPrice.name, \", ,\")\n + \"\\u20AC\".concat(productWithSpecificPrice.priceTaxExcluded.toFixed(2), \", ,\")\n + \"\\u20AC\".concat(unitPrice.toFixed(2), \", ,\")\n + '1, ,'\n + \"\\u20AC\".concat(unitPrice.toFixed(2)))];\n case 3:\n basePriceVisible = _a.sent();\n (0, chai_1.expect)(basePriceVisible, 'Base price (Tax excl.), Unit Price, Quantity, Total (Tax excl.) are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e0b870b-ee66-4275-a88f-b14e154ca6c0", + "parentUUID": "a07d1762-9c45-45f2-9da4-8d8a6dad143a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "42431745-ae0f-45ea-a58d-bc0ddc452a7c", + "d1384015-5961-4cb0-87cc-c61aea9e8c76", + "6e0b870b-ee66-4275-a88f-b14e154ca6c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 699, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60e511ff-5146-4979-a05b-61d2c36aeb59", + "title": "Check that Taxes table is not visible", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that 'Tax Detail' table is not visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check that Taxes table is not visible should check that 'Tax Detail' table is not visible", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkIsTaxesTableNotVisible2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTaxTableVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIsTaxesTableNotVisible2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Tax Detail,Tax Rate,Base price,Total Tax')];\n case 2:\n isTaxTableVisible = _a.sent();\n (0, chai_1.expect)(isTaxTableVisible, 'Tax table is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e7aa930-08cb-41e8-a8e3-3ec1af82dd1c", + "parentUUID": "60e511ff-5146-4979-a05b-61d2c36aeb59", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7e7aa930-08cb-41e8-a8e3-3ec1af82dd1c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 227, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "46078bbe-3bc5-416c-ac5b-e62c03cbc33d", + "title": "Check Payments table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Payment method and Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Payments table should check that the 'Payment method and Total' are correct", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkPaymentMethod3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentMethodExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentMethod3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Payment Method, ,Bank transfer, ,'\n + \"\\u20AC\".concat(customizedProduct.price.toFixed(2)))];\n case 2:\n paymentMethodExist = _a.sent();\n (0, chai_1.expect)(paymentMethodExist, 'Payment method and total are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7324b763-3297-450a-aadd-1be1e7f75d00", + "parentUUID": "46078bbe-3bc5-416c-ac5b-e62c03cbc33d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the carrier is visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Payments table should check that the carrier is visible", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkCarrierVisible3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCarrierVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarrierVisible3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, carriers_1.default.default.name)];\n case 2:\n isCarrierVisible = _a.sent();\n (0, chai_1.expect)(isCarrierVisible, \"Carrier '\".concat(carriers_1.default.default.name, \"' is not visible!\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e0c0cfe-de01-407a-bd6a-531fc9dbf17b", + "parentUUID": "46078bbe-3bc5-416c-ac5b-e62c03cbc33d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7324b763-3297-450a-aadd-1be1e7f75d00", + "3e0c0cfe-de01-407a-bd6a-531fc9dbf17b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 459, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2328c4e9-be38-42f3-9093-76d7c9460933", + "title": "Check Total to pay table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that 'Total Products, Shipping Costs, Total(Tax exc.), Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Check Total to pay table should check that 'Total Products, Shipping Costs, Total(Tax exc.), Total' are correct", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkTotalToPay3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discount, unitPrice, totalPriceTaxExcl, isShippingCostVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalToPay3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(productWithSpecificPrice.price, productWithSpecificPrice.specificPrice.discount)];\n case 2:\n discount = _a.sent();\n unitPrice = productWithSpecificPrice.price - discount;\n totalPriceTaxExcl = unitPrice + customizedProduct.price;\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Total Products, ,\\u20AC\".concat(totalPriceTaxExcl.toFixed(2), \",\")\n + 'Shipping Costs, ,Free Shipping,,'\n + \"Total (Tax excl.), ,\\u20AC\".concat(totalPriceTaxExcl.toFixed(2), \",,\")\n + \"Total, ,\\u20AC\".concat(totalPriceTaxExcl.toFixed(2)))];\n case 3:\n isShippingCostVisible = _a.sent();\n (0, chai_1.expect)(isShippingCostVisible, 'Total Products, Shipping Costs, Total(Tax exc.), Total are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b10436cb-4f91-46f3-bb1a-65f747c7d8db", + "parentUUID": "2328c4e9-be38-42f3-9093-76d7c9460933", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b10436cb-4f91-46f3-bb1a-65f747c7d8db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 335, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ba518766-b466-4da7-b1de-fa60d99f188c", + "title": "Delete the added product then recheck the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the ordered product 'Product with sp price TOTEST' from the list", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Delete the added product then recheck the invoice should delete the ordered product 'Product with sp price TOTEST' from the list", + "timedOut": false, + "duration": 2124, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_deleteAddedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAddedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteProduct(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulDeleteProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fce2d60d-5b32-47e4-98f5-5a78d005c128", + "parentUUID": "ba518766-b466-4da7-b1de-fa60d99f188c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Delete the added product then recheck the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_viewInvoice4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewInvoice4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7034f356-e2d3-455a-9079-891a5f84563b", + "parentUUID": "ba518766-b466-4da7-b1de-fa60d99f188c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Product name' is not visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Delete the added product then recheck the invoice should check that the 'Product name' is not visible", + "timedOut": false, + "duration": 240, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkProductName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productNameExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, productWithSpecificPrice.name)];\n case 2:\n productNameExist = _a.sent();\n (0, chai_1.expect)(productNameExist, 'Product name is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3474639-f866-4628-baf6-101f95d8c872", + "parentUUID": "ba518766-b466-4da7-b1de-fa60d99f188c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the column 'Base price (Tax excl.)' is not visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with sp price TOTEST' and 'Customized product TOTEST' Check the invoice Delete the added product then recheck the invoice should check that the column 'Base price (Tax excl.)' is not visible", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBasePriceColumn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var basePriceColumnVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBasePriceColumn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Base,price,(Tax excl.)')];\n case 2:\n basePriceColumnVisible = _a.sent();\n (0, chai_1.expect)(basePriceColumnVisible, 'Base price is not visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f4638f9-7379-4c79-ae9f-8f2ed09b066b", + "parentUUID": "ba518766-b466-4da7-b1de-fa60d99f188c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fce2d60d-5b32-47e4-98f5-5a78d005c128", + "7034f356-e2d3-455a-9079-891a5f84563b", + "b3474639-f866-4628-baf6-101f95d8c872", + "2f4638f9-7379-4c79-ae9f-8f2ed09b066b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2886, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9ec6114b-2e39-456c-b3f3-479c1c6212e2", + "title": "Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "5588c1a6-7387-4c19-9447-871bb121db8a", + "title": "Create invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Product with ecotax TOTEST'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Create invoice should search for the product 'Product with ecotax TOTEST'", + "timedOut": false, + "duration": 992, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_searchProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, productWithEcoTax.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getSearchedProductInformation(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result.available).to.equal(productWithEcoTax.quantity - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15be8093-c5fa-450a-9b76-668fc6c2e998", + "parentUUID": "5588c1a6-7387-4c19-9447-871bb121db8a", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product to the cart", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Create invoice should add the product to the cart", + "timedOut": false, + "duration": 3136, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_addProductToCart3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32aaab7a-5f2f-45f5-becf-31d399ac7b7d", + "parentUUID": "5588c1a6-7387-4c19-9447-871bb121db8a", + "isHook": false, + "skipped": false + }, + { + "title": "should get the invoice file name", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Create invoice should get the invoice file name", + "timedOut": false, + "duration": 69, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_getInvoiceFileName4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getInvoiceFileName4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(filePath).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e6449b5-147d-4cb9-a2c7-f1ba8d190e9f", + "parentUUID": "5588c1a6-7387-4c19-9447-871bb121db8a", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order reference", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Create invoice should get the order reference", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_getOrderReference4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderReference(page)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "208653ac-4f6d-4c0c-b51c-b8b6e82556f9", + "parentUUID": "5588c1a6-7387-4c19-9447-871bb121db8a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Create invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnViewInvoice4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4632e281-157a-420b-8506-5f44bf36c80f", + "parentUUID": "5588c1a6-7387-4c19-9447-871bb121db8a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "15be8093-c5fa-450a-9b76-668fc6c2e998", + "32aaab7a-5f2f-45f5-becf-31d399ac7b7d", + "7e6449b5-147d-4cb9-a2c7-f1ba8d190e9f", + "208653ac-4f6d-4c0c-b51c-b8b6e82556f9", + "4632e281-157a-420b-8506-5f44bf36c80f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4493, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b7295e95-f202-42da-8a22-3abb29b62aff", + "title": "Check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "45ed5acb-007a-4b37-a982-6c435c397bf8", + "title": "Check Header", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the header of the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Header should check the header of the invoice", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkHeaderInvoice4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imageNumber, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkHeaderInvoice4', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, files_1.default.getImageNumberInPDF(filePath)];\n case 2:\n imageNumber = _a.sent();\n (0, chai_1.expect)(imageNumber, 'Logo is not visible!').to.be.equal(1);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"INVOICE,,\".concat(today, \",,#\").concat(fileName))];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'File name header is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63bd37c3-ae89-4a2a-a79c-6e104daf2cb5", + "parentUUID": "45ed5acb-007a-4b37-a982-6c435c397bf8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Delivery address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Header should check that the 'Delivery address' is correct", + "timedOut": false, + "duration": 225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkDeliveryAddress4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryAddress4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Delivery address,,'\n + \"\".concat(address_1.default.second.firstName, \" \").concat(address_1.default.second.lastName, \",\")\n + \"\".concat(address_1.default.second.company, \",\")\n + \"\".concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\")\n + \"\".concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city, \",\")\n + \"\".concat(address_1.default.second.country, \",\")\n + \"\".concat(address_1.default.second.phone))];\n case 2:\n deliveryAddressExist = _a.sent();\n (0, chai_1.expect)(deliveryAddressExist, 'Delivery address is not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4269c50f-c11b-4dd5-8469-e1f66fb77375", + "parentUUID": "45ed5acb-007a-4b37-a982-6c435c397bf8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Billing address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Header should check that the 'Billing address' is correct", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBillingAddress4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var billingAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBillingAddress4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Billing address,,'\n + \"\".concat(address_1.default.second.firstName, \" \").concat(address_1.default.second.lastName, \",\")\n + \"\".concat(address_1.default.second.company, \",\")\n + \"\".concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\")\n + \"\".concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city, \",\")\n + \"\".concat(address_1.default.second.country, \",\")\n + \"\".concat(address_1.default.second.phone))];\n case 2:\n billingAddressExist = _a.sent();\n (0, chai_1.expect)(billingAddressExist, 'Billing address is not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0ffb96d-1195-4026-90c5-8ecfe9eed129", + "parentUUID": "45ed5acb-007a-4b37-a982-6c435c397bf8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Invoice number, Invoice date, Order reference and Order date' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Header should check that the 'Invoice number, Invoice date, Order reference and Order date' are correct", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkInvoiceNumber4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoiceNumberExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoiceNumber4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Invoice Number, ,Invoice Date, ,Order Reference, ,Order date,,'\n + \"#\".concat(fileName, \", ,\").concat(today, \", ,\").concat(orderReference, \", ,\").concat(today, \",\"))];\n case 2:\n invoiceNumberExist = _a.sent();\n (0, chai_1.expect)(invoiceNumberExist, 'Invoice information are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cf4e9a0-02c2-41b3-b059-aacccf14aaaa", + "parentUUID": "45ed5acb-007a-4b37-a982-6c435c397bf8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4269c50f-c11b-4dd5-8469-e1f66fb77375", + "e0ffb96d-1195-4026-90c5-8ecfe9eed129", + "3cf4e9a0-02c2-41b3-b059-aacccf14aaaa" + ], + "failures": [], + "pending": [ + "63bd37c3-ae89-4a2a-a79c-6e104daf2cb5" + ], + "skipped": [], + "duration": 695, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "93cd6b40-a209-4d93-b308-0368ecb4625d", + "title": "Check Products table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Product reference, Product name' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Products table should check that the 'Product reference, Product name' are correct", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkProductReference4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productReferenceExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductReference4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(productWithEcoTax.reference, \", ,\").concat(productWithEcoTax.name))];\n case 2:\n productReferenceExist = _a.sent();\n (0, chai_1.expect)(productReferenceExist, 'Product name and reference are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c89940bf-3a9d-4e68-9ba4-016cfae2eee6", + "parentUUID": "93cd6b40-a209-4d93-b308-0368ecb4625d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the column 'Base price (Tax excl.)' is not visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Products table should check that the column 'Base price (Tax excl.)' is not visible", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBasePriceColumnNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var basePriceColumnVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBasePriceColumnNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Base,price,(Tax excl.)')];\n case 2:\n basePriceColumnVisible = _a.sent();\n (0, chai_1.expect)(basePriceColumnVisible, 'Base price is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af5bc652-3726-4269-b509-96aa5dbc9907", + "parentUUID": "93cd6b40-a209-4d93-b308-0368ecb4625d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Unit price (Tax excl.), Ecotax, Quantity, Total (Tax excl.)' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Products table should check that the 'Unit price (Tax excl.), Ecotax, Quantity, Total (Tax excl.)' are correct", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkBasePriceWithEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var basePriceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBasePriceWithEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(productWithEcoTax.name, \", ,\")\n + \"\\u20AC\".concat(productWithEcoTax.price.toFixed(2), \",,\")\n + \"Ecotax: \\u20AC\".concat(productWithEcoTax.ecoTax.toFixed(2), \",,\")\n + '1, ,'\n + \"\\u20AC\".concat(productWithEcoTax.price.toFixed(2)))];\n case 2:\n basePriceVisible = _a.sent();\n (0, chai_1.expect)(basePriceVisible, 'Unit price (Tax excl.), Ecotax, Quantity, '\n + 'Total (Tax excl.) are not correct in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5788ac50-4e55-4c4f-bffd-dd4e92d63dad", + "parentUUID": "93cd6b40-a209-4d93-b308-0368ecb4625d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c89940bf-3a9d-4e68-9ba4-016cfae2eee6", + "af5bc652-3726-4269-b509-96aa5dbc9907", + "5788ac50-4e55-4c4f-bffd-dd4e92d63dad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 681, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4ae5311b-07f1-468e-9c3b-979456bb5ce1", + "title": "Check Taxes table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Tax Detail, Tax Rate, Base price, Total Tax' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Taxes table should check that the 'Tax Detail, Tax Rate, Base price, Total Tax' are correct", + "timedOut": false, + "duration": 242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxDetailsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Tax Detail, ,Tax Rate, ,Base price, ,Total Tax,,'\n + 'Ecotax, ,'\n + '0.000 %, ,'\n + \"\\u20AC\".concat(productWithEcoTax.ecoTax.toFixed(2), \", ,\")\n + '€0.00')];\n case 2:\n taxDetailsVisible = _a.sent();\n (0, chai_1.expect)(taxDetailsVisible, 'Tax detail, tax Rate, Base price and Total tax are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7409ab1b-e4c2-41e5-9358-89ea47a56da9", + "parentUUID": "4ae5311b-07f1-468e-9c3b-979456bb5ce1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7409ab1b-e4c2-41e5-9358-89ea47a56da9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 242, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8e15b560-0198-44e0-a56a-10ca7a2d07bf", + "title": "Check Payments table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the 'Payment method and Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Payments table should check that the 'Payment method and Total' are correct", + "timedOut": false, + "duration": 232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkPaymentMethod4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentMethodExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentMethod4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Payment Method, ,Bank transfer, ,'\n + \"\\u20AC\".concat(customizedProduct.price.toFixed(2)))];\n case 2:\n paymentMethodExist = _a.sent();\n (0, chai_1.expect)(paymentMethodExist, 'Payment method and total are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bf3fba7-fa0f-40dd-b39b-113592793c19", + "parentUUID": "8e15b560-0198-44e0-a56a-10ca7a2d07bf", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the carrier is visible", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Payments table should check that the carrier is visible", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkCarrierVisible4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCarrierVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarrierVisible4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, carriers_1.default.default.name)];\n case 2:\n isCarrierVisible = _a.sent();\n (0, chai_1.expect)(isCarrierVisible, \"Carrier '\".concat(carriers_1.default.default.name, \"' is not visible!\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e02d9aba-e73e-41ff-af8e-018530acdb64", + "parentUUID": "8e15b560-0198-44e0-a56a-10ca7a2d07bf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1bf3fba7-fa0f-40dd-b39b-113592793c19", + "e02d9aba-e73e-41ff-af8e-018530acdb64" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 463, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c091d690-e9c9-4785-8273-5238b2bcf4e9", + "title": "Check Total to pay table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that 'Total Products, Shipping Costs, Total(Tax exc.), Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Check Total to pay table should check that 'Total Products, Shipping Costs, Total(Tax exc.), Total' are correct", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkTotalToPay4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPriceTaxExcl, isShippingCostVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalToPay4', baseContext)];\n case 1:\n _a.sent();\n totalPriceTaxExcl = productWithEcoTax.price + customizedProduct.price;\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Total Products, ,\\u20AC\".concat(totalPriceTaxExcl.toFixed(2), \",\")\n + 'Shipping Costs, ,Free Shipping,,'\n + \"Total (Tax excl.), ,\\u20AC\".concat(totalPriceTaxExcl.toFixed(2), \",,\")\n + \"Total, ,\\u20AC\".concat(totalPriceTaxExcl.toFixed(2)))];\n case 2:\n isShippingCostVisible = _a.sent();\n (0, chai_1.expect)(isShippingCostVisible, 'Total Products, Shipping Costs, Total(Tax exc.), Total are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bc26f63-31d8-4173-80c7-b807897d52bf", + "parentUUID": "c091d690-e9c9-4785-8273-5238b2bcf4e9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2bc26f63-31d8-4173-80c7-b807897d52bf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 230, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "76fa8d98-2ef6-48b9-9f68-4c80534e3012", + "title": "Change 'Shipping address' and 'Invoice address' then check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the 'Shipping address'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Shipping address' and 'Invoice address' then check the invoice should change the 'Shipping address'", + "timedOut": false, + "duration": 1112, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_changeBillingAddress2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressToSelect, alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeBillingAddress2', baseContext)];\n case 1:\n _a.sent();\n addressToSelect = \"#\".concat(address_1.default.third.id, \" \").concat(address_1.default.third.alias, \" - \").concat(address_1.default.third.address, \" \")\n + \"\".concat(address_1.default.third.secondAddress, \" \").concat(address_1.default.third.postalCode, \" \").concat(address_1.default.third.city);\n return [4 /*yield*/, customerBlock_1.default.selectAnotherShippingAddress(page, addressToSelect)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.contains(customerBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a5d366e-55e4-447d-8af0-487e0e734da5", + "parentUUID": "76fa8d98-2ef6-48b9-9f68-4c80534e3012", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Shipping address' and 'Invoice address' then check the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnViewInvoice5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df09927c-2b40-413a-b2ad-60fd2e5a0699", + "parentUUID": "76fa8d98-2ef6-48b9-9f68-4c80534e3012", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Delivery address' is correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Shipping address' and 'Invoice address' then check the invoice should check that the 'Delivery address' is correct", + "timedOut": false, + "duration": 314, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkEditedDeliveryAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedDeliveryAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Delivery address,,'\n + \"\".concat(address_1.default.third.firstName, \" \").concat(address_1.default.third.lastName, \",\")\n + \"\".concat(address_1.default.third.company, \",\")\n + \"\".concat(address_1.default.third.address, \" \").concat(address_1.default.third.secondAddress, \",\")\n + \"\".concat(address_1.default.third.city, \", \").concat(address_1.default.third.state, \" \").concat(address_1.default.third.postalCode, \",\")\n + \"\".concat(address_1.default.third.country, \",\")\n + \"\".concat(address_1.default.third.phone))];\n case 2:\n deliveryAddressExist = _a.sent();\n (0, chai_1.expect)(deliveryAddressExist, 'Delivery address is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7efef4dc-2e60-495d-9cdf-309ca8298108", + "parentUUID": "76fa8d98-2ef6-48b9-9f68-4c80534e3012", + "isHook": false, + "skipped": false + }, + { + "title": "should change the 'Invoice address'", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Shipping address' and 'Invoice address' then check the invoice should change the 'Invoice address'", + "timedOut": false, + "duration": 1072, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_changeBillingAddress3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressToSelect, alertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeBillingAddress3', baseContext)];\n case 1:\n _a.sent();\n addressToSelect = \"#\".concat(address_1.default.third.id, \" \").concat(address_1.default.third.alias, \" - \").concat(address_1.default.third.address, \" \")\n + \"\".concat(address_1.default.third.secondAddress, \" \").concat(address_1.default.third.postalCode, \" \").concat(address_1.default.third.city);\n return [4 /*yield*/, customerBlock_1.default.selectAnotherInvoiceAddress(page, addressToSelect)];\n case 2:\n alertMessage = _a.sent();\n (0, chai_1.expect)(alertMessage).to.contains(customerBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a93c745-8b27-409c-8b17-c8c1bf517afa", + "parentUUID": "76fa8d98-2ef6-48b9-9f68-4c80534e3012", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Shipping address' and 'Invoice address' then check the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnViewInvoice6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06ef6ed1-5a31-40d9-ae81-19fb6a9446d9", + "parentUUID": "76fa8d98-2ef6-48b9-9f68-4c80534e3012", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Billing address' is updated", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Shipping address' and 'Invoice address' then check the invoice should check that the 'Billing address' is updated", + "timedOut": false, + "duration": 242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkEditedBillingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryAddressExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedBillingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Billing address,,'\n + \"\".concat(address_1.default.third.firstName, \" \").concat(address_1.default.third.lastName, \",\")\n + \"\".concat(address_1.default.third.company, \",\")\n + \"\".concat(address_1.default.third.address, \" \").concat(address_1.default.third.secondAddress, \",\")\n + \"\".concat(address_1.default.third.city, \", \").concat(address_1.default.third.state, \" \").concat(address_1.default.third.postalCode, \",\")\n + \"\".concat(address_1.default.third.country, \",\")\n + \"\".concat(address_1.default.third.phone))];\n case 2:\n deliveryAddressExist = _a.sent();\n (0, chai_1.expect)(deliveryAddressExist, 'Billing address is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90fc6e44-acb9-43a3-a1aa-886011de5393", + "parentUUID": "76fa8d98-2ef6-48b9-9f68-4c80534e3012", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7a5d366e-55e4-447d-8af0-487e0e734da5", + "df09927c-2b40-413a-b2ad-60fd2e5a0699", + "7efef4dc-2e60-495d-9cdf-309ca8298108", + "8a93c745-8b27-409c-8b17-c8c1bf517afa", + "06ef6ed1-5a31-40d9-ae81-19fb6a9446d9", + "90fc6e44-acb9-43a3-a1aa-886011de5393" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3322, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "title": "Add note and check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Documents' tab", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add note and check the invoice should click on 'Documents' tab", + "timedOut": false, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_displayDocumentsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayDocumentsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8453a28-07f6-4bc9-bc2c-67e8cad4efbb", + "parentUUID": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "isHook": false, + "skipped": false + }, + { + "title": "should add note", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add note and check the invoice should add note", + "timedOut": false, + "duration": 747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_addNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setDocumentNote(page, 'Test note', 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.updateSuccessfullMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2eb2b1a-8382-47e5-bcb4-55068743bfa6", + "parentUUID": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add note and check the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_viewInvoiceToCheckNote1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewInvoiceToCheckNote1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "539ee1a7-e59f-4df1-831c-daaef995a41c", + "parentUUID": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the note is visible in the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add note and check the invoice should check that the note is visible in the invoice", + "timedOut": false, + "duration": 238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkIsNoteVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNoteVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIsNoteVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Test note')];\n case 2:\n isNoteVisible = _a.sent();\n (0, chai_1.expect)(isNoteVisible, 'Note does not exist in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bb526ff-66b9-4c6f-ae0c-800108ff002d", + "parentUUID": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Documents' tab", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add note and check the invoice should click on 'Documents' tab", + "timedOut": false, + "duration": 46, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_displayDocumentsTabToDeleteNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayDocumentsTabToDeleteNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd4ccfc8-13f6-4d93-b97e-37f467be3687", + "parentUUID": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the note", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add note and check the invoice should delete the note", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_deleteNote\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteNote', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setDocumentNote(page, '', 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.updateSuccessfullMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46dc3a23-09c5-4254-bb77-6c8a968758e6", + "parentUUID": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add note and check the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_viewInvoiceToCheckNote2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewInvoiceToCheckNote2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a74d7eed-e48e-40a3-a4cb-51eeba7d4b5d", + "parentUUID": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the note is not visible in the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add note and check the invoice should check that the note is not visible in the invoice", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkIsNoteNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNoteVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIsNoteNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Test note')];\n case 2:\n isNoteVisible = _a.sent();\n (0, chai_1.expect)(isNoteVisible, 'Note does is visible in invoice!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8c903b4-09fa-4daa-911b-3c18cd01d16a", + "parentUUID": "2db5bd0a-ab39-4f6b-8b6c-f745c12579aa", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a8453a28-07f6-4bc9-bc2c-67e8cad4efbb", + "c2eb2b1a-8382-47e5-bcb4-55068743bfa6", + "539ee1a7-e59f-4df1-831c-daaef995a41c", + "4bb526ff-66b9-4c6f-ae0c-800108ff002d", + "dd4ccfc8-13f6-4d93-b97e-37f467be3687", + "46dc3a23-09c5-4254-bb77-6c8a968758e6", + "a74d7eed-e48e-40a3-a4cb-51eeba7d4b5d", + "a8c903b4-09fa-4daa-911b-3c18cd01d16a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2719, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c088c0b2-86c9-4bcd-aec6-b497d0f25389", + "title": "Change 'Carrier' and check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Carriers' tab", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Carrier' and check the invoice should click on 'Carriers' tab", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_displayCarriersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayCarriersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "617e12b6-bc83-4be8-b0cc-cb75b38b330c", + "parentUUID": "c088c0b2-86c9-4bcd-aec6-b497d0f25389", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Edit' link and check the modal", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Carrier' and check the invoice should click on 'Edit' link and check the modal", + "timedOut": false, + "duration": 438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnEditLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible, 'Edit shipping modal is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db764d8a-a343-43bc-9f50-01424b8d26af", + "parentUUID": "c088c0b2-86c9-4bcd-aec6-b497d0f25389", + "isHook": false, + "skipped": false + }, + { + "title": "should update the carrier", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Carrier' and check the invoice should update the carrier", + "timedOut": false, + "duration": 968, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_updateCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingDetailsData, textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCarrier', baseContext)];\n case 1:\n _a.sent();\n shippingDetailsData = new orderShipping_1.default({\n trackingNumber: '',\n carrier: carriers_1.default.myCarrier.name,\n carrierID: 1,\n });\n return [4 /*yield*/, tabListBlock_1.default.setShippingDetails(page, shippingDetailsData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cdc2403-cfab-49e6-a3ba-7ff654e00ff4", + "parentUUID": "c088c0b2-86c9-4bcd-aec6-b497d0f25389", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Carrier' and check the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnViewInvoice7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b23c69f8-dda4-4ccb-9eb4-c8431daea836", + "parentUUID": "c088c0b2-86c9-4bcd-aec6-b497d0f25389", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the edited 'Carrier' is visible in the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Carrier' and check the invoice should check that the edited 'Carrier' is visible in the invoice", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCarrierVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Carrier, ,\".concat(carriers_1.default.myCarrier.name))];\n case 2:\n isCarrierVisible = _a.sent();\n (0, chai_1.expect)(isCarrierVisible, 'New carrier not exist in invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35768034-d58d-4691-8362-1f9d0d5d8b64", + "parentUUID": "c088c0b2-86c9-4bcd-aec6-b497d0f25389", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Shipping cost, Total (Tax exl.), Total Tax and Total' are changed", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Change 'Carrier' and check the invoice should check that 'Shipping cost, Total (Tax exl.), Total Tax and Total' are changed", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkShippingCostChanged\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice, isDiscountVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingCostChanged', baseContext)];\n case 1:\n _a.sent();\n totalPrice = productWithEcoTax.price + customizedProduct.price;\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \n // Total Products, ,€25.00,Shipping Costs, ,€7.00,,Total (Tax excl.), ,€32.00,,Total, ,€32.00\n \"Total Products, ,\\u20AC\".concat(totalPrice.toFixed(2), \",\")\n + 'Shipping Costs, ,€7.00,,'\n + \"Total (Tax excl.), ,\\u20AC\".concat((totalPrice + 7.00).toFixed(2), \",,\")\n + \"Total, ,\\u20AC\".concat((totalPrice + 7.00).toFixed(2)))];\n case 2:\n isDiscountVisible = _a.sent();\n (0, chai_1.expect)(isDiscountVisible, 'Shipping cost, Total (Tax exl.), Total Tax and Total are not correct in the invoice!')\n .to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1569bf36-fd5a-49b5-a16e-142046db579b", + "parentUUID": "c088c0b2-86c9-4bcd-aec6-b497d0f25389", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "617e12b6-bc83-4be8-b0cc-cb75b38b330c", + "db764d8a-a343-43bc-9f50-01424b8d26af", + "6cdc2403-cfab-49e6-a3ba-7ff654e00ff4", + "b23c69f8-dda4-4ccb-9eb4-c8431daea836", + "35768034-d58d-4691-8362-1f9d0d5d8b64", + "1569bf36-fd5a-49b5-a16e-142046db579b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2191, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "58277bf2-bd9a-49fa-89f6-e29986ee81dd", + "title": "Add discount and check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add discount", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add discount and check the invoice should add discount", + "timedOut": false, + "duration": 1263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_addDiscountPercent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addDiscountPercent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addDiscount(page, discountData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Validation message is not correct!')\n .to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd7eb792-b5c4-43a0-8c48-87eed0c384df", + "parentUUID": "58277bf2-bd9a-49fa-89f6-e29986ee81dd", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add discount and check the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_clickOnViewInvoice8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewInvoice8', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ca172bb-9de3-49ce-86c7-6c8f27ce6d2e", + "parentUUID": "58277bf2-bd9a-49fa-89f6-e29986ee81dd", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Discounts' table is visible in the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add discount and check the invoice should check that 'Discounts' table is visible in the invoice", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkDiscountsTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice, discount, isDiscountVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountsTable', baseContext)];\n case 1:\n _a.sent();\n totalPrice = productWithEcoTax.price + customizedProduct.price;\n return [4 /*yield*/, basicHelper_1.default.percentage(totalPrice, parseInt(discountData.value, 10))];\n case 2:\n discount = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Discounts,,Discount, ,'\n + \"- \\u20AC\".concat(discount.toFixed(2)))];\n case 3:\n isDiscountVisible = _a.sent();\n (0, chai_1.expect)(isDiscountVisible, 'Discounts table is not visible in the invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66fd7ed0-853a-4c18-a2d1-588b2f4c4642", + "parentUUID": "58277bf2-bd9a-49fa-89f6-e29986ee81dd", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Total discount, Total( Tax excl.) and total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add discount and check the invoice should check that 'Total discount, Total( Tax excl.) and total' are correct", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkTotalDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice, discount, isDiscountVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalDiscount', baseContext)];\n case 1:\n _a.sent();\n totalPrice = productWithEcoTax.price + customizedProduct.price;\n return [4 /*yield*/, basicHelper_1.default.percentage(totalPrice, parseInt(discountData.value, 10))];\n case 2:\n discount = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Total Products, ,\\u20AC\".concat(totalPrice.toFixed(2), \",\")\n + \"Total Discounts, ,- \\u20AC\".concat(discount.toFixed(2), \",\")\n + 'Shipping Costs, ,€7.00,,'\n + \"Total (Tax excl.), ,\\u20AC\".concat((totalPrice - discount + 7.00).toFixed(2), \",,\")\n + \"Total, ,\\u20AC\".concat((totalPrice - discount + 7.00).toFixed(2)))];\n case 3:\n isDiscountVisible = _a.sent();\n (0, chai_1.expect)(isDiscountVisible, 'Discount is not visible in the invoice!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b71d0644-6b42-4e7b-ae27-e1c1520532d6", + "parentUUID": "58277bf2-bd9a-49fa-89f6-e29986ee81dd", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the discount", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add discount and check the invoice should delete the discount", + "timedOut": false, + "duration": 535, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_deleteDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteDiscount(page)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful delete alert is not correct')\n .to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5ccca7b-a1ab-42e5-966b-11515b3cf1bd", + "parentUUID": "58277bf2-bd9a-49fa-89f6-e29986ee81dd", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add discount and check the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_viewInvoiceToCheckDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewInvoiceToCheckDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8578a10e-dea0-4b81-b245-8ccec0aacd0b", + "parentUUID": "58277bf2-bd9a-49fa-89f6-e29986ee81dd", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the discount is not visible in the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add discount and check the invoice should check that the discount is not visible in the invoice", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkIsDiscountNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice, discount, isDiscountVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIsDiscountNotVisible', baseContext)];\n case 1:\n _a.sent();\n totalPrice = productWithEcoTax.price + customizedProduct.price;\n return [4 /*yield*/, basicHelper_1.default.percentage(totalPrice, parseInt(discountData.value, 10))];\n case 2:\n discount = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, ' Total Discounts,'\n + \"-\\u20AC\".concat((totalPrice - discount).toFixed(2)))];\n case 3:\n isDiscountVisible = _a.sent();\n (0, chai_1.expect)(isDiscountVisible, 'Total discount is visible in the invoice!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef44d221-7498-4090-8893-0c1ce6a1cad8", + "parentUUID": "58277bf2-bd9a-49fa-89f6-e29986ee81dd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cd7eb792-b5c4-43a0-8c48-87eed0c384df", + "7ca172bb-9de3-49ce-86c7-6c8f27ce6d2e", + "66fd7ed0-853a-4c18-a2d1-588b2f4c4642", + "b71d0644-6b42-4e7b-ae27-e1c1520532d6", + "d5ccca7b-a1ab-42e5-966b-11515b3cf1bd", + "8578a10e-dea0-4b81-b245-8ccec0aacd0b", + "ef44d221-7498-4090-8893-0c1ce6a1cad8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3084, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "de9e69c1-6030-4399-80b0-d7ab32abfd57", + "title": "Add payment method and check the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add payment", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add payment method and check the invoice should add payment", + "timedOut": false, + "duration": 771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_addPayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPayment', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, paymentBlock_1.default.addPayment(page, paymentData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage, 'Successful message is not correct!').to.equal(paymentBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b30e1154-3c05-4080-aac3-d8a2421f2eb2", + "parentUUID": "de9e69c1-6030-4399-80b0-d7ab32abfd57", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'View invoice' button and check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add payment method and check the invoice should click on 'View invoice' button and check that the file is downloaded", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_viewInvoiceToCheckPayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewInvoiceToCheckPayment', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6188633-39fb-49a3-961f-315a459a46fe", + "parentUUID": "de9e69c1-6030-4399-80b0-d7ab32abfd57", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new payment is visible in the invoice", + "fullTitle": "BO - Orders - View and edit order: Check invoice Check invoice contain 'Product with ecotax TOTEST' and 'Customized product TOTEST' Check the invoice Add payment method and check the invoice should check that the new payment is visible in the invoice", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_checkNewPaymentMethod\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPaymentMethodVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewPaymentMethod', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \",Payment Method, ,Bank transfer, ,\\u20AC\".concat(customizedProduct.price.toFixed(2), \",,\")\n + \"\".concat(paymentData.paymentMethod, \", ,\\u20AC\").concat(paymentData.amount))];\n case 2:\n isPaymentMethodVisible = _a.sent();\n (0, chai_1.expect)(isPaymentMethodVisible, 'Payment method is no correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a691bcdc-56f4-4d91-ade1-c3b37d8da011", + "parentUUID": "de9e69c1-6030-4399-80b0-d7ab32abfd57", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b30e1154-3c05-4080-aac3-d8a2421f2eb2", + "c6188633-39fb-49a3-961f-315a459a46fe", + "a691bcdc-56f4-4d91-ade1-c3b37d8da011" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1294, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d294195d-fefa-45ea-97ca-432f93d9817b", + "title": "POST-TEST: Bulk delete created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products \"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ae5bb0f-d9c6-43b9-8385-500bf9ff17c7", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products \"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e1ea7c34-a56b-4ff5-823f-9106414b8edd", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should login in BO", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcc353d6-dd41-4462-aa89-240ce8d2d0dd", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_1_goToProductsPageToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73347053-bc1c-461d-99f3-7cdeb7f2db94", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_1_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6da6713c-7b13-46da-ac1c-68a51082bdde", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Name' and check result", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should filter list by 'Name' and check result", + "timedOut": false, + "duration": 1316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_1_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productName, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9efb3b6e-e9ae-415a-86c2-bac84f1ffe59", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + }, + { + "title": "should select the products", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should select the products", + "timedOut": false, + "duration": 37, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_1_selectProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "719862c2-6384-4c14-a2f4-f7db0afe010d", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should click on bulk actions button", + "timedOut": false, + "duration": 306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_1_clickOnBulkActionsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBulkActionsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e8d45cd-2c02-4feb-bad9-8faf7f594488", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete products", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should bulk delete products", + "timedOut": false, + "duration": 490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_1_bulkDeleteProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" / \").concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66a37570-5b7a-4308-8dd3-e09e38c6a90d", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should close progress modal", + "timedOut": false, + "duration": 478, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_1_closeDeleteProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeDeleteProgressModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'delete')];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e1596c0-ee60-4853-a992-786e80a3e760", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 2920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_1_checkNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductAfterBulkActions;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductAfterBulkActions = _a.sent();\n (0, chai_1.expect)(numberOfProductAfterBulkActions).to.be.equal(numberOfProducts - numberOfProductsAfterFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca394517-bd3d-486d-a5f9-73e2314af725", + "parentUUID": "d294195d-fefa-45ea-97ca-432f93d9817b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dcc353d6-dd41-4462-aa89-240ce8d2d0dd", + "73347053-bc1c-461d-99f3-7cdeb7f2db94", + "6da6713c-7b13-46da-ac1c-68a51082bdde", + "9efb3b6e-e9ae-415a-86c2-bac84f1ffe59", + "719862c2-6384-4c14-a2f4-f7db0afe010d", + "9e8d45cd-2c02-4feb-bad9-8faf7f594488", + "66a37570-5b7a-4308-8dd3-e09e38c6a90d", + "4e1596c0-ee60-4853-a992-786e80a3e760", + "ca394517-bd3d-486d-a5f9-73e2314af725" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11242, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31a05817-b512-46bd-9063-2178251ece35", + "title": "POST-TEST: Disable Ecotax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable Ecotax\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Disable Ecotax \"before all\" hook in \"POST-TEST: Disable Ecotax\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "739767cf-401e-4ec0-916d-129065a89a5f", + "parentUUID": "31a05817-b512-46bd-9063-2178251ece35", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable Ecotax\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Disable Ecotax \"after all\" hook in \"POST-TEST: Disable Ecotax\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b4e0e3d8-2ae0-4578-88a1-404bda329894", + "parentUUID": "31a05817-b512-46bd-9063-2178251ece35", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Disable Ecotax should login in BO", + "timedOut": false, + "duration": 1745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f2c170d-0189-46b5-8e2f-f46ef613a6ed", + "parentUUID": "31a05817-b512-46bd-9063-2178251ece35", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Disable Ecotax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_2_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34791143-f5b5-4374-a61e-11c2cd827485", + "parentUUID": "31a05817-b512-46bd-9063-2178251ece35", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Ecotax", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Disable Ecotax should disable Ecotax", + "timedOut": false, + "duration": 452, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_2_disableEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.enableEcoTax(page, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aabb3998-56ec-42b6-9dd4-d4e575e1e33a", + "parentUUID": "31a05817-b512-46bd-9063-2178251ece35", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9f2c170d-0189-46b5-8e2f-f46ef613a6ed", + "34791143-f5b5-4374-a61e-11c2cd827485", + "aabb3998-56ec-42b6-9dd4-d4e575e1e33a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7108, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aceff428-e67c-4c45-b488-f8f551b22aab", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/11_checkInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 85, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d83fca9-83b0-4214-a908-556dd0de2993", + "parentUUID": "aceff428-e67c-4c45-b488-f8f551b22aab", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ff0d776d-6855-45df-9a4b-ce9318a28fb8", + "parentUUID": "aceff428-e67c-4c45-b488-f8f551b22aab", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6869085-d710-4644-9fda-d06ce0bca11c", + "parentUUID": "aceff428-e67c-4c45-b488-f8f551b22aab", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_3_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0202792-9402-474b-8bd0-cac19f81f611", + "parentUUID": "aceff428-e67c-4c45-b488-f8f551b22aab", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_3_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20c81b1d-c55c-4956-9d2d-c1f448d29d2d", + "parentUUID": "aceff428-e67c-4c45-b488-f8f551b22aab", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_3_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04633b56-cdf2-4a8b-bf00-73c9301ca823", + "parentUUID": "aceff428-e67c-4c45-b488-f8f551b22aab", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order: Check invoice POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkInvoice_postTest_3_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e9e8f9b-4ac4-43de-9070-415dd2b66b9b", + "parentUUID": "aceff428-e67c-4c45-b488-f8f551b22aab", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a6869085-d710-4644-9fda-d06ce0bca11c", + "e0202792-9402-474b-8bd0-cac19f81f611", + "20c81b1d-c55c-4956-9d2d-c1f448d29d2d", + "04633b56-cdf2-4a8b-bf00-73c9301ca823", + "3e9e8f9b-4ac4-43de-9070-415dd2b66b9b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11580, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "cba3a551-d91e-430b-8802-3a456963ebf4", + "2810a188-a22d-445c-a1a3-eba70ab08c0f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6776, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f759e763-8b0f-4143-9161-cd5e087f57cd", + "title": "BO - Orders - View and edit order: Check multi invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order: Check multi invoice\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice \"before all\" hook in \"BO - Orders - View and edit order: Check multi invoice\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f1963d1-963c-4d44-b431-58f8cee4b1a6", + "parentUUID": "f759e763-8b0f-4143-9161-cd5e087f57cd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order: Check multi invoice\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice \"after all\" hook in \"BO - Orders - View and edit order: Check multi invoice\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4f666218-db65-416f-ae08-4ff7b5657d9d", + "parentUUID": "f759e763-8b0f-4143-9161-cd5e087f57cd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edf743c4-28b8-436d-8863-1d8590dd32f3", + "parentUUID": "f759e763-8b0f-4143-9161-cd5e087f57cd", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "2e01b162-939c-478d-b4da-da5b62ea2dc1", + "title": "PRE-TEST: Create product 'First product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'First product TOTEST'\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'First product TOTEST' \"before all\" hook in \"PRE-TEST: Create product 'First product TOTEST'\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d566c59-4fea-4cf5-9254-0f1666feb9f6", + "parentUUID": "2e01b162-939c-478d-b4da-da5b62ea2dc1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'First product TOTEST'\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'First product TOTEST' \"after all\" hook in \"PRE-TEST: Create product 'First product TOTEST'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e2531a66-074e-4ddf-910f-fff574c44a0b", + "parentUUID": "2e01b162-939c-478d-b4da-da5b62ea2dc1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'First product TOTEST' should login in BO", + "timedOut": false, + "duration": 1776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6e9be12-037b-4e0d-bdcf-828e9eab233f", + "parentUUID": "2e01b162-939c-478d-b4da-da5b62ea2dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'First product TOTEST' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_1_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73bd6e3a-66cf-4a92-beb7-5586ecffa373", + "parentUUID": "2e01b162-939c-478d-b4da-da5b62ea2dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'First product TOTEST' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_1_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbfa3a66-c7d6-42c8-a86c-5e3241de69ae", + "parentUUID": "2e01b162-939c-478d-b4da-da5b62ea2dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'First product TOTEST' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_1_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec1e7aa3-368a-4c35-a1fc-f79e04a163d6", + "parentUUID": "2e01b162-939c-478d-b4da-da5b62ea2dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'First product TOTEST' should create product", + "timedOut": false, + "duration": 5324, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_1_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45283e0e-a5ac-4822-98aa-d981f2cf1561", + "parentUUID": "2e01b162-939c-478d-b4da-da5b62ea2dc1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a6e9be12-037b-4e0d-bdcf-828e9eab233f", + "73bd6e3a-66cf-4a92-beb7-5586ecffa373", + "bbfa3a66-c7d6-42c8-a86c-5e3241de69ae", + "ec1e7aa3-368a-4c35-a1fc-f79e04a163d6", + "45283e0e-a5ac-4822-98aa-d981f2cf1561" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13166, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b669cba0-5356-444c-ade1-8915c98b429c", + "title": "PRE-TEST: Create product 'second product TOTEST'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'second product TOTEST'\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'second product TOTEST' \"before all\" hook in \"PRE-TEST: Create product 'second product TOTEST'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4bf7353-e752-4198-b018-cb38790c5324", + "parentUUID": "b669cba0-5356-444c-ade1-8915c98b429c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'second product TOTEST'\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'second product TOTEST' \"after all\" hook in \"PRE-TEST: Create product 'second product TOTEST'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f929efc0-5a4a-4704-b23a-b9050e32bb2c", + "parentUUID": "b669cba0-5356-444c-ade1-8915c98b429c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'second product TOTEST' should login in BO", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aef044df-a44c-45b2-80b5-ae621f3732b0", + "parentUUID": "b669cba0-5356-444c-ade1-8915c98b429c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'second product TOTEST' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_2_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c825d11-903a-4ae3-9983-fdcccf305300", + "parentUUID": "b669cba0-5356-444c-ade1-8915c98b429c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'second product TOTEST' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_2_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72a7e8ff-978a-4d05-8ad4-a7310020fd5a", + "parentUUID": "b669cba0-5356-444c-ade1-8915c98b429c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'second product TOTEST' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_2_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "201bb9b5-a3e8-4fe1-9dce-7652366d6796", + "parentUUID": "b669cba0-5356-444c-ade1-8915c98b429c", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create product 'second product TOTEST' should create product", + "timedOut": false, + "duration": 5279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_2_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8499e93-8f9b-4fc3-95d3-b048d4eea004", + "parentUUID": "b669cba0-5356-444c-ade1-8915c98b429c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aef044df-a44c-45b2-80b5-ae621f3732b0", + "4c825d11-903a-4ae3-9983-fdcccf305300", + "72a7e8ff-978a-4d05-8ad4-a7310020fd5a", + "201bb9b5-a3e8-4fe1-9dce-7652366d6796", + "b8499e93-8f9b-4fc3-95d3-b048d4eea004" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13100, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "title": "PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO \"before all\" hook in \"PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56423b53-792f-4f50-a1a6-17813b4b0bc8", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO \"after all\" hook in \"PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "425e0128-0ce3-4e8b-bc12-c6e961cd623a", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO should open FO page", + "timedOut": false, + "duration": 1839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66e00657-3faf-4c03-bde7-44a1fa630595", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO should go to login page", + "timedOut": false, + "duration": 690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4eef4c44-58a7-4013-bacb-e7b4f77117bd", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO should sign in with default customer", + "timedOut": false, + "duration": 637, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d85ae14-f0ba-4f93-ae47-7aab33c7fbc6", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product First product TOTEST", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO should search for the product First product TOTEST", + "timedOut": false, + "duration": 780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_3_searchForProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, orderData.products[0].product.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "433caec5-ab3c-4e84-93b5-f140d8174299", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO should add product to cart", + "timedOut": false, + "duration": 6422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "651d2b0d-3382-41b5-bea9-e235ed0dd21f", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO should go to delivery step", + "timedOut": false, + "duration": 970, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_3_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fe3c66a-98a1-4b84-9637-5f484b154c68", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO should go to payment step", + "timedOut": false, + "duration": 277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_3_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54209355-0dc6-4036-a04d-29aa828c91d6", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice PRE-TEST: Create order contain 'First product TOTEST' by default customer in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_preTest_3_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb298ce5-0236-4859-89e3-a66b9a0d3ad0", + "parentUUID": "771d650e-d3c1-40cf-b656-0cf36a3394e6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "66e00657-3faf-4c03-bde7-44a1fa630595", + "4eef4c44-58a7-4013-bacb-e7b4f77117bd", + "7d85ae14-f0ba-4f93-ae47-7aab33c7fbc6", + "433caec5-ab3c-4e84-93b5-f140d8174299", + "651d2b0d-3382-41b5-bea9-e235ed0dd21f", + "0fe3c66a-98a1-4b84-9637-5f484b154c68", + "54209355-0dc6-4036-a04d-29aa828c91d6", + "cb298ce5-0236-4859-89e3-a66b9a0d3ad0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13114, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "648353c3-0098-491b-8248-91369f62e387", + "title": "Go to view order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Go to view order page should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fed788d-9bac-4fac-b57d-d2458f8c2b63", + "parentUUID": "648353c3-0098-491b-8248-91369f62e387", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Go to view order page should reset all filters", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_resetFilterOrderTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterOrderTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders, 'Number of orders is not correct!').to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1eed8943-d2a1-4bad-a45c-be1f41d9c8b4", + "parentUUID": "648353c3-0098-491b-8248-91369f62e387", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: DOE'", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Go to view order page should filter the Orders table by 'Customer: DOE'", + "timedOut": false, + "duration": 2410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_filterByCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn, 'Lastname is not correct').to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e97a9b6f-1552-4491-8ead-6a907cc3cdfd", + "parentUUID": "648353c3-0098-491b-8248-91369f62e387", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Go to view order page should view the order", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_orderPageProductsBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageProductsBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Error when view order page!').to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "424b4854-75b8-42d3-819e-a4cede3c0bc0", + "parentUUID": "648353c3-0098-491b-8248-91369f62e387", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1fed788d-9bac-4fac-b57d-d2458f8c2b63", + "1eed8943-d2a1-4bad-a45c-be1f41d9c8b4", + "e97a9b6f-1552-4491-8ead-6a907cc3cdfd", + "424b4854-75b8-42d3-819e-a4cede3c0bc0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9153, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "02d77fbd-dc03-48c6-91ad-b06aaa42c241", + "title": "Create the first invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the order status to 'Payment accepted'", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the first invoice should change the order status to 'Payment accepted'", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.updateOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(productsBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8f88d21-6f7e-4e81-812e-69297cba40d2", + "parentUUID": "02d77fbd-dc03-48c6-91ad-b06aaa42c241", + "isHook": false, + "skipped": false + }, + { + "title": "should get the first invoice file name", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the first invoice should get the first invoice file name", + "timedOut": false, + "duration": 256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_getFirstInvoiceFileName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getFirstInvoiceFileName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n firstFileName = _a.sent();\n (0, chai_1.expect)(filePath).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e33cc1df-fdc3-440a-bab4-5c08b94018cb", + "parentUUID": "02d77fbd-dc03-48c6-91ad-b06aaa42c241", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c8f88d21-6f7e-4e81-812e-69297cba40d2", + "e33cc1df-fdc3-440a-bab4-5c08b94018cb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1077, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6a121121-164b-4ec8-ac58-30cbd4216785", + "title": "Create the second invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add the same ordered product and check the error message", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the second invoice should add the same ordered product and check the error message", + "timedOut": false, + "duration": 1119, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, firstProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.errorAddSameProductInInvoice(firstFileName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afb816e1-276d-4a76-9f47-95b2a684658d", + "parentUUID": "6a121121-164b-4ec8-ac58-30cbd4216785", + "isHook": false, + "skipped": false + }, + { + "title": "should create a new invoice", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the second invoice should create a new invoice", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_createNewInvoice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carrierName, isSelected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewInvoice1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.selectInvoice(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getNewInvoiceCarrierName(page)];\n case 3:\n carrierName = _a.sent();\n (0, chai_1.expect)(carrierName).to.contains(\"Carrier : \".concat(carriers_1.default.default.name));\n return [4 /*yield*/, productsBlock_1.default.isFreeShippingSelected(page)];\n case 4:\n isSelected = _a.sent();\n (0, chai_1.expect)(isSelected).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7212fe39-a677-4902-8c0a-104e384dd966", + "parentUUID": "6a121121-164b-4ec8-ac58-30cbd4216785", + "isHook": false, + "skipped": false + }, + { + "title": "should update the product price and add the product to the cart", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the second invoice should update the product price and add the product to the cart", + "timedOut": false, + "duration": 5706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_updatePriceAddProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updatePriceAddProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.updateProductPrice(page, newProductPrice)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page, 2, true)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77a65be7-8d19-4822-a563-36faaddfe8b4", + "parentUUID": "6a121121-164b-4ec8-ac58-30cbd4216785", + "isHook": false, + "skipped": false + }, + { + "title": "should check that order total price is correct", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the second invoice should check that order total price is correct", + "timedOut": false, + "duration": 1011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkTotalToPayIsCorrect\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalToPayIsCorrect', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalPrice(page)];\n case 2:\n totalPrice = _a.sent();\n (0, chai_1.expect)(totalPrice.toFixed(2)).to.equal((newProductPrice * 3).toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bef471f-525a-4587-bdae-afec5cc12ab4", + "parentUUID": "6a121121-164b-4ec8-ac58-30cbd4216785", + "isHook": false, + "skipped": false + }, + { + "title": "should check that products number is equal to 2", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the second invoice should check that products number is equal to 2", + "timedOut": false, + "duration": 314, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productCount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductsNumber(page)];\n case 3:\n productCount = _a.sent();\n (0, chai_1.expect)(productCount).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27aefae9-1bd9-4729-b2af-e8420ca9f428", + "parentUUID": "6a121121-164b-4ec8-ac58-30cbd4216785", + "isHook": false, + "skipped": false + }, + { + "title": "should check that invoices number is equal to 2", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the second invoice should check that invoices number is equal to 2", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkDocumentsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentsNumber(page)];\n case 2:\n documentsNumber = _a.sent();\n (0, chai_1.expect)(documentsNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94ac81ea-3178-4ca1-9881-ae763da0f641", + "parentUUID": "6a121121-164b-4ec8-ac58-30cbd4216785", + "isHook": false, + "skipped": false + }, + { + "title": "should get the second invoice file name", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the second invoice should get the second invoice file name", + "timedOut": false, + "duration": 265, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_getSecondInvoiceNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getSecondInvoiceNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page, 3)];\n case 2:\n secondFileName = _a.sent();\n (0, chai_1.expect)(filePath).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92f841f3-5fbf-4e9e-8bc0-192babdade65", + "parentUUID": "6a121121-164b-4ec8-ac58-30cbd4216785", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "afb816e1-276d-4a76-9f47-95b2a684658d", + "7212fe39-a677-4902-8c0a-104e384dd966", + "77a65be7-8d19-4822-a563-36faaddfe8b4", + "4bef471f-525a-4587-bdae-afec5cc12ab4", + "27aefae9-1bd9-4729-b2af-e8420ca9f428", + "94ac81ea-3178-4ca1-9881-ae763da0f641", + "92f841f3-5fbf-4e9e-8bc0-192babdade65" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8457, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "15cd2dd5-0025-474b-8eaf-5f7aea45d334", + "title": "Check the first invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download the first invoice", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check the first invoice should download the first invoice", + "timedOut": false, + "duration": 364, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_downloadFirstInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadFirstInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page, 1)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8265859e-2703-4537-a953-6ef6570cbf54", + "parentUUID": "15cd2dd5-0025-474b-8eaf-5f7aea45d334", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Product reference, Product name' are correct", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check the first invoice should check that the 'Product reference, Product name' are correct", + "timedOut": false, + "duration": 232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkProductReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productReferenceExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(firstProduct.reference, \", ,\").concat(firstProduct.name))];\n case 2:\n productReferenceExist = _a.sent();\n (0, chai_1.expect)(productReferenceExist, 'Product name and reference are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cae46b69-7c48-4dd4-92aa-559dfb3754f2", + "parentUUID": "15cd2dd5-0025-474b-8eaf-5f7aea45d334", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Unit Price, Quantity, Total (Tax excl.)' are correct", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check the first invoice should check that the 'Unit Price, Quantity, Total (Tax excl.)' are correct", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkUnitPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUnitPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(firstProduct.name, \", ,\")\n + \"\\u20AC\".concat(newProductPrice.toFixed(2), \", ,\")\n + '1, ,'\n + \"\\u20AC\".concat(newProductPrice.toFixed(2)))];\n case 2:\n priceVisible = _a.sent();\n (0, chai_1.expect)(priceVisible, 'Unit Price, Quantity, Total (Tax excl.) are not correct')\n .to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd5fb8c9-a73c-4fb1-be7c-76a5d85d1413", + "parentUUID": "15cd2dd5-0025-474b-8eaf-5f7aea45d334", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product price and check the price of the 2 products", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check the first invoice should edit the product price and check the price of the 2 products", + "timedOut": false, + "duration": 1814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_editProductPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.modifyProductPriceForMultiInvoice(page, 1, secondNewProductPrice)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 1)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.basePrice, 'Base price was not updated').to.equal(secondNewProductPrice),\n (0, chai_1.expect)(result.total, 'Total price was not updated').to.equal(secondNewProductPrice),\n ])];\n case 4:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 2)];\n case 5:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.basePrice, 'Base price was not updated').to.equal(secondNewProductPrice),\n (0, chai_1.expect)(result.total, 'Total price was not updated').to.equal(secondNewProductPrice * 2),\n ])];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "264e4b2f-209c-4e05-8510-29718ec80f6b", + "parentUUID": "15cd2dd5-0025-474b-8eaf-5f7aea45d334", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8265859e-2703-4537-a953-6ef6570cbf54", + "cae46b69-7c48-4dd4-92aa-559dfb3754f2", + "fd5fb8c9-a73c-4fb1-be7c-76a5d85d1413", + "264e4b2f-209c-4e05-8510-29718ec80f6b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2640, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "58924aab-8c47-4b75-9f6e-68d14b7c2569", + "title": "Check multi invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'View invoice' button to download the 2 invoices check that the file is downloaded", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check multi invoice should click on 'View invoice' button to download the 2 invoices check that the file is downloaded", + "timedOut": false, + "duration": 296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_viewInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.viewInvoice(page)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97f5468b-b8d5-4a39-b791-f0ccedc2cb36", + "parentUUID": "58924aab-8c47-4b75-9f6e-68d14b7c2569", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Unit Price, Quantity, Total (Tax excl.)' are correct on the first invoice", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check multi invoice should check that the 'Unit Price, Quantity, Total (Tax excl.)' are correct on the first invoice", + "timedOut": false, + "duration": 399, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkPriceOnFirstInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPriceOnFirstInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(firstProduct.name, \", ,\")\n + \"\\u20AC\".concat(secondNewProductPrice.toFixed(2), \", ,\")\n + '1, ,'\n + \"\\u20AC\".concat(secondNewProductPrice.toFixed(2)))];\n case 2:\n priceVisible = _a.sent();\n (0, chai_1.expect)(priceVisible, 'Unit Price, Quantity, Total (Tax excl.) are not correct on the first invoice')\n .to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91fb5aac-cb30-4f42-ad13-6edd849b6a7a", + "parentUUID": "58924aab-8c47-4b75-9f6e-68d14b7c2569", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Unit Price, Quantity, Total (Tax excl.)' are correct on the second invoice", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check multi invoice should check that the 'Unit Price, Quantity, Total (Tax excl.)' are correct on the second invoice", + "timedOut": false, + "duration": 263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkPriceOnSecondInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPriceOnSecondInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(firstProduct.name, \", ,\")\n + \"\\u20AC\".concat((secondNewProductPrice).toFixed(2), \", ,\")\n + '2, ,'\n + \"\\u20AC\".concat((secondNewProductPrice * 2).toFixed(2)))];\n case 2:\n priceVisible = _a.sent();\n (0, chai_1.expect)(priceVisible, 'Unit Price, Quantity, Total (Tax excl.) are not correct on the second invoice')\n .to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4209868a-017f-44e8-a658-bf54cc88d349", + "parentUUID": "58924aab-8c47-4b75-9f6e-68d14b7c2569", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97f5468b-b8d5-4a39-b791-f0ccedc2cb36", + "91fb5aac-cb30-4f42-ad13-6edd849b6a7a", + "4209868a-017f-44e8-a658-bf54cc88d349" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 958, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "title": "Create the third invoice and check the option 'Free shipping'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Carriers' tab", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should click on 'Carriers' tab", + "timedOut": false, + "duration": 78, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_displayCarriersTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayCarriersTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d0a8758-9fbc-4303-81d6-f34236439770", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Edit' link and check the modal", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should click on 'Edit' link and check the modal", + "timedOut": false, + "duration": 429, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_clickOnEditLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible, 'Edit shipping modal is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04e5fef1-f38c-4be3-afad-7c19954f48af", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should select the default not free carrier 'My carrier'", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should select the default not free carrier 'My carrier'", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_selectNewCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectNewCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setShippingDetails(page, carrierDataToSelect)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf33e0f6-b977-4c73-b794-691ebdc74d70", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'second product TOTEST' and check that there is two invoices", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should search for the product 'second product TOTEST' and check that there is two invoices", + "timedOut": false, + "duration": 993, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_searchSecondProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invoices;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchSecondProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, secondProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getInvoicesFromSelectOptions(page)];\n case 3:\n invoices = _a.sent();\n (0, chai_1.expect)(invoices).to.contains(\"#\".concat(firstFileName, \"#\").concat(secondFileName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b81e1797-cfae-4832-b858-0db0c4b3cc00", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should create a new invoice", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should create a new invoice", + "timedOut": false, + "duration": 35, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_createNewInvoice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carrierName, isSelected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createNewInvoice2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.selectInvoice(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getNewInvoiceCarrierName(page)];\n case 3:\n carrierName = _a.sent();\n (0, chai_1.expect)(carrierName).to.contains(\"Carrier : \".concat(carriers_1.default.myCarrier.name));\n return [4 /*yield*/, productsBlock_1.default.isFreeShippingSelected(page)];\n case 4:\n isSelected = _a.sent();\n (0, chai_1.expect)(isSelected).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a06823c-c219-471e-8238-cd27aa27f0e0", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should select 'Free shipping' checkbox", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should select 'Free shipping' checkbox", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_selectFreeShippingCheckbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSelected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectFreeShippingCheckbox', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.selectFreeShippingCheckbox(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isFreeShippingSelected(page)];\n case 3:\n isSelected = _a.sent();\n (0, chai_1.expect)(isSelected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39f00939-3edb-441b-a9cd-28591735e4e9", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product 'second product TOTEST' to the cart", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should add the product 'second product TOTEST' to the cart", + "timedOut": false, + "duration": 1841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_addSecondProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addSecondProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page, 1, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22e9f6f3-20ca-4fc0-8056-75a27cd31c32", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that invoices number is equal to 3", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should check that invoices number is equal to 3", + "timedOut": false, + "duration": 331, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkDocumentsNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentsNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentsNumber(page)];\n case 3:\n documentsNumber = _a.sent();\n (0, chai_1.expect)(documentsNumber).to.be.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd0c0346-bf65-47d9-810c-3981a465e5f6", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of new discount table", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should check the existence of new discount table", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkNewDiscountTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewDiscountTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isDiscountListTableVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Discount list table is not visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e250945-ebba-424a-98cf-69455b97be6a", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount '[Generated] CartRule for Free Shipping'", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Create the third invoice and check the option 'Free shipping' should check the discount '[Generated] CartRule for Free Shipping'", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkDiscountName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getTextColumnFromDiscountTable(page, 'name')];\n case 2:\n discountName = _a.sent();\n (0, chai_1.expect)(discountName).to.be.equal('[Generated] CartRule for Free Shipping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f31c5392-1cc6-47a2-9079-e64efad79dfe", + "parentUUID": "35f46c1b-63bb-4a7c-aeb1-ceb8599b89b5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3d0a8758-9fbc-4303-81d6-f34236439770", + "04e5fef1-f38c-4be3-afad-7c19954f48af", + "bf33e0f6-b977-4c73-b794-691ebdc74d70", + "b81e1797-cfae-4832-b858-0db0c4b3cc00", + "1a06823c-c219-471e-8238-cd27aa27f0e0", + "39f00939-3edb-441b-a9cd-28591735e4e9", + "22e9f6f3-20ca-4fc0-8056-75a27cd31c32", + "cd0c0346-bf65-47d9-810c-3981a465e5f6", + "3e250945-ebba-424a-98cf-69455b97be6a", + "f31c5392-1cc6-47a2-9079-e64efad79dfe" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4702, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d313ca16-848c-485a-8114-ca1af634215c", + "title": "Check the third invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should download the third invoice", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check the third invoice should download the third invoice", + "timedOut": false, + "duration": 567, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_downloadThirdInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadThirdInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page, 5)];\n case 2:\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06c08e9d-9f47-4a30-b3e2-91f92f3d0164", + "parentUUID": "d313ca16-848c-485a-8114-ca1af634215c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Product reference, Product name' are correct", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check the third invoice should check that the 'Product reference, Product name' are correct", + "timedOut": false, + "duration": 274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkProductReference2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productReferenceExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductReference2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(secondProduct.reference, \", ,\").concat(secondProduct.name))];\n case 2:\n productReferenceExist = _a.sent();\n (0, chai_1.expect)(productReferenceExist, 'Product name and reference are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d112c61f-ed5b-43e5-8de0-c2f17fe38710", + "parentUUID": "d313ca16-848c-485a-8114-ca1af634215c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Unit Price, Quantity, Total (Tax excl.)' are correct", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check the third invoice should check that the 'Unit Price, Quantity, Total (Tax excl.)' are correct", + "timedOut": false, + "duration": 327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkPriceForThirdInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPriceForThirdInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"\".concat(secondProduct.name, \", ,\")\n + \"\\u20AC\".concat(secondProduct.price.toFixed(2), \", ,\")\n + '1, ,'\n + \"\\u20AC\".concat(secondProduct.price.toFixed(2)))];\n case 2:\n priceVisible = _a.sent();\n (0, chai_1.expect)(priceVisible, 'Unit Price, Quantity, Total (Tax excl.) are not correct')\n .to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bb79f43-baeb-4f9d-9f78-acc81c0dfca8", + "parentUUID": "d313ca16-848c-485a-8114-ca1af634215c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Total Products, Shipping Costs, Total(Tax exc.), Total' are correct", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice Check the third invoice should check that 'Total Products, Shipping Costs, Total(Tax exc.), Total' are correct", + "timedOut": false, + "duration": 246, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_checkFreeShippingForThirdInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isShippingCostVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFreeShippingForThirdInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Total Products, ,\\u20AC\".concat(secondProduct.price.toFixed(2), \",\")\n + 'Shipping Costs, ,Free Shipping,,'\n + \"Total (Tax excl.), ,\\u20AC\".concat(secondProduct.price.toFixed(2), \",,\")\n + \"Total, ,\\u20AC\".concat(secondProduct.price.toFixed(2)))];\n case 2:\n isShippingCostVisible = _a.sent();\n (0, chai_1.expect)(isShippingCostVisible, 'Total Products, Shipping Costs, Total(Tax exc.), Total are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5192ed5d-6660-43b6-8c3b-08d2c69971f6", + "parentUUID": "d313ca16-848c-485a-8114-ca1af634215c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "06c08e9d-9f47-4a30-b3e2-91f92f3d0164", + "d112c61f-ed5b-43e5-8de0-c2f17fe38710", + "3bb79f43-baeb-4f9d-9f78-acc81c0dfca8", + "5192ed5d-6660-43b6-8c3b-08d2c69971f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1414, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4581b689-85c0-4847-bac2-bb71461e4876", + "title": "POST-TEST: Bulk delete created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products \"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9dda48e-0e28-4af7-82e8-92868e6ed449", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products \"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "360d8eeb-e5ec-4959-9e78-5a728477b16f", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should login in BO", + "timedOut": false, + "duration": 1777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "921838e4-48f6-465f-8808-5c43f5c9bc19", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_postTest_1_goToProductsPageToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ad3fc39-dd60-4646-8398-1fd5f77e9cd9", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_postTest_1_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "055f6275-e8be-43fb-9cd1-c4ec3477a608", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Name' and check result", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should filter list by 'Name' and check result", + "timedOut": false, + "duration": 1286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_postTest_1_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productName, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e122238-30e1-4168-a01e-2ad9367dc44c", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + }, + { + "title": "should select the products", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should select the products", + "timedOut": false, + "duration": 44, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_postTest_1_selectProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1822ef0e-d477-426c-8fae-c7b1a1053bdc", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should click on bulk actions button", + "timedOut": false, + "duration": 304, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_postTest_1_clickOnBulkActionsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBulkActionsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfe1cbdb-1e54-42ad-beb0-ddcfe5728f5d", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete products", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should bulk delete products", + "timedOut": false, + "duration": 494, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_postTest_1_bulkDeleteProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" / \").concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e1b880b-66b9-4f85-a805-6f1551134679", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should close progress modal", + "timedOut": false, + "duration": 477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_postTest_1_closeDeleteProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeDeleteProgressModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'delete')];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc1532a9-a8ed-4e82-a849-023362f0620b", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 2925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_checkMultiInvoice_postTest_1_checkNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductAfterBulkActions;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductAfterBulkActions = _a.sent();\n (0, chai_1.expect)(numberOfProductAfterBulkActions).to.be.equal(numberOfProducts - numberOfProductsAfterFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa17b153-a296-404b-9eca-7585ca5a5165", + "parentUUID": "4581b689-85c0-4847-bac2-bb71461e4876", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "921838e4-48f6-465f-8808-5c43f5c9bc19", + "9ad3fc39-dd60-4646-8398-1fd5f77e9cd9", + "055f6275-e8be-43fb-9cd1-c4ec3477a608", + "3e122238-30e1-4168-a01e-2ad9367dc44c", + "1822ef0e-d477-426c-8fae-c7b1a1053bdc", + "bfe1cbdb-1e54-42ad-beb0-ddcfe5728f5d", + "9e1b880b-66b9-4f85-a805-6f1551134679", + "cc1532a9-a8ed-4e82-a849-023362f0620b", + "aa17b153-a296-404b-9eca-7585ca5a5165" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11299, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4ea0a29b-051b-4d1e-be41-cf4f073baaec", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/12_checkMultiInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc19af63-109a-474c-a9ed-7caf7fb14386", + "parentUUID": "4ea0a29b-051b-4d1e-be41-cf4f073baaec", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "658a14ee-fd9f-42fa-9536-cb6cf701c054", + "parentUUID": "4ea0a29b-051b-4d1e-be41-cf4f073baaec", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c177349d-cc5b-445a-b463-ae948319e713", + "parentUUID": "4ea0a29b-051b-4d1e-be41-cf4f073baaec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3647, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"commonTests-deleteCartRuleTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "198f8d06-5c13-44d7-bfe4-8ef325731f38", + "parentUUID": "4ea0a29b-051b-4d1e-be41-cf4f073baaec", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"commonTests-deleteCartRuleTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38768a89-6c7e-4d9c-b77d-347c017addd4", + "parentUUID": "4ea0a29b-051b-4d1e-be41-cf4f073baaec", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"commonTests-deleteCartRuleTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08c178fb-b650-4c23-a126-a80ddb5f189c", + "parentUUID": "4ea0a29b-051b-4d1e-be41-cf4f073baaec", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - View and edit order: Check multi invoice POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"commonTests-deleteCartRuleTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "865c3783-7c37-4fe4-9af0-4055af44e190", + "parentUUID": "4ea0a29b-051b-4d1e-be41-cf4f073baaec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c177349d-cc5b-445a-b463-ae948319e713", + "198f8d06-5c13-44d7-bfe4-8ef325731f38", + "38768a89-6c7e-4d9c-b77d-347c017addd4", + "08c178fb-b650-4c23-a126-a80ddb5f189c", + "865c3783-7c37-4fe4-9af0-4055af44e190" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11430, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "edf743c4-28b8-436d-8863-1d8590dd32f3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1723, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d32f9b24-3cf4-432c-a231-7c816af28271", + "title": "BO - Orders - View and edit order : Return an order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - View and edit order : Return an order\"", + "fullTitle": "BO - Orders - View and edit order : Return an order \"before all\" hook in \"BO - Orders - View and edit order : Return an order\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee2a741f-a91e-44f2-aef7-a27cd0c7ad10", + "parentUUID": "d32f9b24-3cf4-432c-a231-7c816af28271", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - View and edit order : Return an order\"", + "fullTitle": "BO - Orders - View and edit order : Return an order \"after all\" hook in \"BO - Orders - View and edit order : Return an order\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b691d54d-0ffa-4665-8b5a-fce22873feaa", + "parentUUID": "d32f9b24-3cf4-432c-a231-7c816af28271", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2e424928-6a08-4445-a263-189e23903215", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da05573a-fec4-4104-a2dc-56d3e872a49c", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "44dfe635-aa9e-4c4e-83ce-f946b3d693bf", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "211ce3c1-da77-4e23-ac49-efde08dddaae", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca53f817-4e0b-4e41-a0bf-effdfa82294f", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f28f497-071b-43b4-9a43-76a7eacbab2f", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f995bd29-c810-47ad-a671-fde92cb5feaf", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94ba93fd-76f8-4ed7-9923-5ec7f52b834e", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59c8b52e-8047-495f-ad60-b77e0da83746", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1520, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a57f8f1f-87ae-480a-bb1a-276e403c1245", + "parentUUID": "2e424928-6a08-4445-a263-189e23903215", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "211ce3c1-da77-4e23-ac49-efde08dddaae", + "ca53f817-4e0b-4e41-a0bf-effdfa82294f", + "7f28f497-071b-43b4-9a43-76a7eacbab2f", + "f995bd29-c810-47ad-a671-fde92cb5feaf", + "94ba93fd-76f8-4ed7-9923-5ec7f52b834e", + "59c8b52e-8047-495f-ad60-b77e0da83746", + "a57f8f1f-87ae-480a-bb1a-276e403c1245" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13321, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "947457db-2b4c-4899-9b20-0ed0e5cdb65c", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5efaa499-724d-44e8-8d08-140af925c101", + "parentUUID": "947457db-2b4c-4899-9b20-0ed0e5cdb65c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6b41f555-d08b-41e5-bc61-f443c0f69758", + "parentUUID": "947457db-2b4c-4899-9b20-0ed0e5cdb65c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a253c4b6-dd8d-4e23-aabd-fa325ee6b00c", + "parentUUID": "947457db-2b4c-4899-9b20-0ed0e5cdb65c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4644, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_2_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9d784b4-004e-4537-b3ab-0e99eb2c32d3", + "parentUUID": "947457db-2b4c-4899-9b20-0ed0e5cdb65c", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_2_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46fe04eb-45d9-4176-9536-9e092576bbf4", + "parentUUID": "947457db-2b4c-4899-9b20-0ed0e5cdb65c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a253c4b6-dd8d-4e23-aabd-fa325ee6b00c", + "a9d784b4-004e-4537-b3ab-0e99eb2c32d3", + "46fe04eb-45d9-4176-9536-9e092576bbf4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6657, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2025c86b-0381-41be-ab42-760927cc3fa9", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f340418-e603-40ba-87ba-3ae50d8380a7", + "parentUUID": "2025c86b-0381-41be-ab42-760927cc3fa9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "567a4a88-ee2e-4da1-923a-282b08c86620", + "parentUUID": "2025c86b-0381-41be-ab42-760927cc3fa9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c54b85c-9d53-49b5-859f-7bbd6cfe0549", + "parentUUID": "2025c86b-0381-41be-ab42-760927cc3fa9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_3_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24155d2b-3b1c-4bcc-a3d1-fa36fe8cc7b8", + "parentUUID": "2025c86b-0381-41be-ab42-760927cc3fa9", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Orders - View and edit order : Return an order PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 660, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_preTest_3_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9175afdf-a49a-4ed4-a7e1-76543cd3de33", + "parentUUID": "2025c86b-0381-41be-ab42-760927cc3fa9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8c54b85c-9d53-49b5-859f-7bbd6cfe0549", + "24155d2b-3b1c-4bcc-a3d1-fa36fe8cc7b8", + "9175afdf-a49a-4ed4-a7e1-76543cd3de33" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7375, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82adff30-899a-43a0-bf90-79925b8c5533", + "title": "Return an order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "145a0c2d-ab3a-4f8f-a203-f79f4451b089", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99db8660-dfb7-425e-a977-a9ae53e19b48", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Delivered' and check it", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should change the order status to 'Delivered' and check it", + "timedOut": false, + "duration": 1074, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.delivered)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "916d45e2-c381-46a2-b0fd-7742b0eb4008", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should go to the first order page", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_goToOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderPage1', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae1fce21-d0e0-4c0a-a5db-ca1d3eb2b26a", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should click on return products button and type the quantity", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should click on return products button and type the quantity", + "timedOut": false, + "duration": 1189, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_returnProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnReturnProductsButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.setReturnedProductQuantity(page, 1, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.clickOnReturnProducts(page)];\n case 4:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.eq('Please select at least one product.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6381b64c-48de-46e7-a922-90def817280f", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should click on return products button and check quantity checkbox", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should click on return products button and check quantity checkbox", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_returnProducts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnProducts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnReturnProductsButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.checkReturnedQuantity(page)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c68e1ee0-2427-4daa-8762-56d3e52a75cc", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should check generate a voucher checkbox", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should check generate a voucher checkbox", + "timedOut": false, + "duration": 1338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_checkGenerateVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGenerateVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.checkGenerateVoucher(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.clickOnReturnProducts(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq('The product was successfully returned.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b120e771-962f-4e0c-93f5-10e177c63f5a", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should check that return products button is disabled", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should check that return products button is disabled", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_isButtonDisabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isButtonDisabled', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.isReturnProductsButtonDisabled(page)];\n case 2:\n isDisabled = _a.sent();\n (0, chai_1.expect)(isDisabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6317e0a1-0c63-4954-afdd-2478450a4ff6", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new column refunded is visible in products table", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should check that the new column refunded is visible in products table", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_isNewColumnVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isColumnVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isNewColumnVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.isRefundedColumnVisible(page)];\n case 2:\n isColumnVisible = _a.sent();\n (0, chai_1.expect)(isColumnVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afd6d647-a265-4d79-beed-5249e9947bed", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher email", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should check the voucher email", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_checkConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReference;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderReference(page)];\n case 2:\n orderReference = _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject)\n .to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] New voucher for your order #\").concat(orderReference));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e7ccc14-2e8e-474f-a3b9-c752e3dc9957", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the return product mail is in mailbox", + "fullTitle": "BO - Orders - View and edit order : Return an order Return an order should check if the return product mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_checkMailIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMailIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.contains(creditSlipMailSubject);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd81f18c-8c7a-49a0-a8d7-43546d80ccd5", + "parentUUID": "82adff30-899a-43a0-bf90-79925b8c5533", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "145a0c2d-ab3a-4f8f-a203-f79f4451b089", + "99db8660-dfb7-425e-a977-a9ae53e19b48", + "916d45e2-c381-46a2-b0fd-7742b0eb4008", + "ae1fce21-d0e0-4c0a-a5db-ca1d3eb2b26a", + "6381b64c-48de-46e7-a922-90def817280f", + "c68e1ee0-2427-4daa-8762-56d3e52a75cc", + "b120e771-962f-4e0c-93f5-10e177c63f5a", + "6317e0a1-0c63-4954-afdd-2478450a4ff6", + "afd6d647-a265-4d79-beed-5249e9947bed", + "2e7ccc14-2e8e-474f-a3b9-c752e3dc9957", + "bd81f18c-8c7a-49a0-a8d7-43546d80ccd5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10245, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "345a2ccd-f20c-427d-b9b3-7295ed5250bd", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb39840e-588e-4815-b228-fd2a5c7c0e24", + "parentUUID": "345a2ccd-f20c-427d-b9b3-7295ed5250bd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8d683d2f-31cc-42aa-9fac-2e662adcaaee", + "parentUUID": "345a2ccd-f20c-427d-b9b3-7295ed5250bd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efefc0a8-2aa7-4964-bc2b-0ae6e6e02fd6", + "parentUUID": "345a2ccd-f20c-427d-b9b3-7295ed5250bd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3602, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_postTest_1_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b19fe1e7-cd28-4483-9cf0-a2b8ee0a0d41", + "parentUUID": "345a2ccd-f20c-427d-b9b3-7295ed5250bd", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 266, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_postTest_1_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f37ac5d8-6530-4cf0-bee1-96879e6ec474", + "parentUUID": "345a2ccd-f20c-427d-b9b3-7295ed5250bd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "efefc0a8-2aa7-4964-bc2b-0ae6e6e02fd6", + "b19fe1e7-cd28-4483-9cf0-a2b8ee0a0d41", + "f37ac5d8-6530-4cf0-bee1-96879e6ec474" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5628, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31e68ec1-7b0c-4bea-ac1c-087f8b37a02c", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "file": "/campaigns/functional/BO/02_orders/01_orders/viewAndEditOrder/13_returnOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ff21878-b9ec-48ba-9020-5a13975a193f", + "parentUUID": "31e68ec1-7b0c-4bea-ac1c-087f8b37a02c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3aacaf4d-71e2-4661-af47-d01c7987fad8", + "parentUUID": "31e68ec1-7b0c-4bea-ac1c-087f8b37a02c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e8c967d-00a6-4166-b128-e1b0740cc2a0", + "parentUUID": "31e68ec1-7b0c-4bea-ac1c-087f8b37a02c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2551ec7b-b2ef-459b-99de-53a2a92b417c", + "parentUUID": "31e68ec1-7b0c-4bea-ac1c-087f8b37a02c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Orders - View and edit order : Return an order POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_orders_viewAndEditOrder_returnOrder_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8374d58b-de8a-4396-9314-c5d3e5eb1512", + "parentUUID": "31e68ec1-7b0c-4bea-ac1c-087f8b37a02c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2e8c967d-00a6-4166-b128-e1b0740cc2a0", + "2551ec7b-b2ef-459b-99de-53a2a92b417c", + "8374d58b-de8a-4396-9314-c5d3e5eb1512" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7167, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "177453f2-e086-4555-ba57-4b8c030e41a3", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 391, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50df7d06-a5e2-44d9-a89e-4d6f9aa1bac5", + "parentUUID": "177453f2-e086-4555-ba57-4b8c030e41a3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2027f40-8ad1-4588-aeae-a50ab6736612", + "parentUUID": "177453f2-e086-4555-ba57-4b8c030e41a3", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f36496a-5c7b-4341-997d-0fb02559a277", + "parentUUID": "177453f2-e086-4555-ba57-4b8c030e41a3", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5bf802a4-edc5-4290-86b4-f04c6b34f768", + "title": "BO - Orders - Invoices : Generate PDF file by date", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/01_generateInvoiceByDate.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/01_generateInvoiceByDate.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Invoices : Generate PDF file by date\"", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date \"before all\" hook in \"BO - Orders - Invoices : Generate PDF file by date\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc4f8d20-5696-4c6d-bf2b-e646c4be3c2b", + "parentUUID": "5bf802a4-edc5-4290-86b4-f04c6b34f768", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Invoices : Generate PDF file by date\"", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date \"after all\" hook in \"BO - Orders - Invoices : Generate PDF file by date\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "18f6d6bd-ff75-46c4-982e-a8d1637e52f8", + "parentUUID": "5bf802a4-edc5-4290-86b4-f04c6b34f768", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date should login in BO", + "timedOut": false, + "duration": 6333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8e7252c-3067-443f-abb1-d3dfa01f73f2", + "parentUUID": "5bf802a4-edc5-4290-86b4-f04c6b34f768", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "6be2700c-edd8-41d2-982e-5a81d5a3c338", + "title": "Create an invoice by changing the first order status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/01_generateInvoiceByDate.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/01_generateInvoiceByDate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date Create an invoice by changing the first order status should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 5390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByDate_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21953af0-0ee7-4d24-b218-6077074fd667", + "parentUUID": "6be2700c-edd8-41d2-982e-5a81d5a3c338", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of orders", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date Create an invoice by changing the first order status should reset all filters and get number of orders", + "timedOut": false, + "duration": 2019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByDate_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "873e4dfd-6692-4dd8-b947-0bd83a6bf02c", + "parentUUID": "6be2700c-edd8-41d2-982e-5a81d5a3c338", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date Create an invoice by changing the first order status should go to the first order page", + "timedOut": false, + "duration": 1871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByDate_goToOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderPage', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03b93bc6-43b8-472b-a025-4f8df43a47b7", + "parentUUID": "6be2700c-edd8-41d2-982e-5a81d5a3c338", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date Create an invoice by changing the first order status should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1477, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByDate_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e60de043-b132-432e-b738-6f47df185025", + "parentUUID": "6be2700c-edd8-41d2-982e-5a81d5a3c338", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "21953af0-0ee7-4d24-b218-6077074fd667", + "873e4dfd-6692-4dd8-b947-0bd83a6bf02c", + "03b93bc6-43b8-472b-a025-4f8df43a47b7", + "e60de043-b132-432e-b738-6f47df185025" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10757, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8e9c9390-d668-45dc-968c-862e6923d4ed", + "title": "Generate invoice by date", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/01_generateInvoiceByDate.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/01_generateInvoiceByDate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date Generate invoice by date should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByDate_goToInvoicesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fa99358-a327-40aa-a749-6aadfc0d118d", + "parentUUID": "8e9c9390-d668-45dc-968c-862e6923d4ed", + "isHook": false, + "skipped": false + }, + { + "title": "should generate PDF file by date and check the file existence", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date Generate invoice by date should generate PDF file by date and check the file existence", + "timedOut": false, + "duration": 533, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByDate_checkGeneratedInvoicesPdfFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkGeneratedInvoicesPdfFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.generatePDFByDateAndDownload(page, todayDate, todayDate)];\n case 2:\n // Generate PDF\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'File does not exist').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf0b6ee5-2c0b-4e72-8800-7ca0b740ac0f", + "parentUUID": "8e9c9390-d668-45dc-968c-862e6923d4ed", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error message when there is no invoice in the entered date", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by date Generate invoice by date should check the error message when there is no invoice in the entered date", + "timedOut": false, + "duration": 449, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByDate_checkErrorMessageNonexistentInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorMessageNonexistentInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.generatePDFByDateAndFail(page, futureDate, futureDate)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(invoices_1.default.errorMessageWhenGenerateFileByDate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8796f4de-1098-479c-b9cc-11afe003329d", + "parentUUID": "8e9c9390-d668-45dc-968c-862e6923d4ed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8fa99358-a327-40aa-a749-6aadfc0d118d", + "bf0b6ee5-2c0b-4e72-8800-7ca0b740ac0f", + "8796f4de-1098-479c-b9cc-11afe003329d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5004, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b8e7252c-3067-443f-abb1-d3dfa01f73f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6333, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7a7e2254-fa24-4713-b71e-045391dc94e3", + "title": "BO - Orders - Invoices : Generate PDF file by status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/02_generateInvoiceByStatus.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/02_generateInvoiceByStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Invoices : Generate PDF file by status\"", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status \"before all\" hook in \"BO - Orders - Invoices : Generate PDF file by status\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3410bcf-e0de-4433-80a3-e3e754771e40", + "parentUUID": "7a7e2254-fa24-4713-b71e-045391dc94e3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Invoices : Generate PDF file by status\"", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status \"after all\" hook in \"BO - Orders - Invoices : Generate PDF file by status\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "aa6a1358-cf07-44f1-a017-9efb52ff897a", + "parentUUID": "7a7e2254-fa24-4713-b71e-045391dc94e3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status should login in BO", + "timedOut": false, + "duration": 1826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "745c2e36-fa4b-4e32-81af-8c5f09f8c637", + "parentUUID": "7a7e2254-fa24-4713-b71e-045391dc94e3", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "dd99448f-dedb-4a68-ac8d-a74621114d25", + "title": "Create 2 invoices by changing the order status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/02_generateInvoiceByStatus.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/02_generateInvoiceByStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Create 2 invoices by changing the order status should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4947, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "501816f4-b368-40b7-afb7-ca4e01df6d30", + "parentUUID": "dd99448f-dedb-4a68-ac8d-a74621114d25", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the order page n°1", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Create 2 invoices by changing the order status should go to the order page n°1", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_goToOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, orderToEdit.args.orderRow)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2e02ce4-2653-4a43-9832-c92a93987b2a", + "parentUUID": "dd99448f-dedb-4a68-ac8d-a74621114d25", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Create 2 invoices by changing the order status should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_updateOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderToEdit.args.status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderToEdit.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "242270a5-0661-49e1-8d34-33c0aacaee9c", + "parentUUID": "dd99448f-dedb-4a68-ac8d-a74621114d25", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Create 2 invoices by changing the order status should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50e49227-552c-4f79-a873-11531ac27b91", + "parentUUID": "dd99448f-dedb-4a68-ac8d-a74621114d25", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the order page n°2", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Create 2 invoices by changing the order status should go to the order page n°2", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_goToOrderPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, orderToEdit.args.orderRow)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb681c37-ec6c-4192-abf0-0ed21e3f6884", + "parentUUID": "dd99448f-dedb-4a68-ac8d-a74621114d25", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Payment accepted' and check it", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Create 2 invoices by changing the order status should change the order status to 'Payment accepted' and check it", + "timedOut": false, + "duration": 1364, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_updateOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderToEdit.args.status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderToEdit.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06f82251-2c58-430e-816c-d5939b485b46", + "parentUUID": "dd99448f-dedb-4a68-ac8d-a74621114d25", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "501816f4-b368-40b7-afb7-ca4e01df6d30", + "b2e02ce4-2653-4a43-9832-c92a93987b2a", + "242270a5-0661-49e1-8d34-33c0aacaee9c", + "50e49227-552c-4f79-a873-11531ac27b91", + "cb681c37-ec6c-4192-abf0-0ed21e3f6884", + "06f82251-2c58-430e-816c-d5939b485b46" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12958, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b42f0253-41db-47a1-9745-0bedf8c73284", + "title": "Generate invoice by status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/02_generateInvoiceByStatus.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/02_generateInvoiceByStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Generate invoice by status should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 3798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_goToInvoicesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8dd1adc-df18-4460-aad6-8d4b79bc315c", + "parentUUID": "b42f0253-41db-47a1-9745-0bedf8c73284", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error message when we don't select a status", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Generate invoice by status should check the error message when we don't select a status", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_checkNoSelectedStatusMessageError\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoSelectedStatusMessageError', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.generatePDFByStatusAndFail(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(invoices_1.default.errorMessageWhenNotSelectStatus);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb9527bb-7a62-45b5-8f05-3ee2b92da2c9", + "parentUUID": "b42f0253-41db-47a1-9745-0bedf8c73284", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error message when there is no invoice in the status selected", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Generate invoice by status should check the error message when there is no invoice in the status selected", + "timedOut": false, + "duration": 359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_checkNoInvoiceMessageError\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoInvoiceMessageError', baseContext)];\n case 1:\n _a.sent();\n // Choose one status\n return [4 /*yield*/, invoices_1.default.chooseStatus(page, orderStatuses_1.default.canceled.name)];\n case 2:\n // Choose one status\n _a.sent();\n return [4 /*yield*/, invoices_1.default.generatePDFByStatusAndFail(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(invoices_1.default.errorMessageWhenGenerateFileByStatus);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b47d36b-78e8-4f66-a463-3e083d9ae138", + "parentUUID": "b42f0253-41db-47a1-9745-0bedf8c73284", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the statuses, generate the invoice and check the file existence", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Generate invoice by status should choose the statuses, generate the invoice and check the file existence", + "timedOut": false, + "duration": 443, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_selectStatusesAndCheckInvoiceExistence\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectStatusesAndCheckInvoiceExistence', baseContext)];\n case 1:\n _a.sent();\n // Choose 2 statuses\n return [4 /*yield*/, invoices_1.default.chooseStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n // Choose 2 statuses\n _a.sent();\n return [4 /*yield*/, invoices_1.default.chooseStatus(page, orderStatuses_1.default.shipped.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.generatePDFByStatusAndDownload(page)];\n case 4:\n // Generate PDF\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n if (!filePath) return [3 /*break*/, 6];\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 5:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbe91466-3423-4444-8bd5-5a6c3bc0ac4e", + "parentUUID": "b42f0253-41db-47a1-9745-0bedf8c73284", + "isHook": false, + "skipped": false + }, + { + "title": "should choose one status, generate the invoice and check the file existence", + "fullTitle": "BO - Orders - Invoices : Generate PDF file by status Generate invoice by status should choose one status, generate the invoice and check the file existence", + "timedOut": false, + "duration": 321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_generateInvoiceByStatus_selectOneStatusAndCheckInvoiceExistence\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectOneStatusAndCheckInvoiceExistence', baseContext)];\n case 1:\n _a.sent();\n // Choose one status\n return [4 /*yield*/, invoices_1.default.chooseStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n // Choose one status\n _a.sent();\n return [4 /*yield*/, invoices_1.default.generatePDFByStatusAndDownload(page)];\n case 3:\n // Generate PDF\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n if (!filePath) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 4:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10ca82ad-498c-4fb8-9a33-e2fb82d7439e", + "parentUUID": "b42f0253-41db-47a1-9745-0bedf8c73284", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f8dd1adc-df18-4460-aad6-8d4b79bc315c", + "bb9527bb-7a62-45b5-8f05-3ee2b92da2c9", + "4b47d36b-78e8-4f66-a463-3e083d9ae138", + "dbe91466-3423-4444-8bd5-5a6c3bc0ac4e", + "10ca82ad-498c-4fb8-9a33-e2fb82d7439e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5220, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "745c2e36-fa4b-4e32-81af-8c5f09f8c637" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1826, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bae445cc-f52f-46fd-a5b7-7feb6000b5ba", + "title": "BO - Orders - Invoices : Enable/Disable invoices", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/01_enableDisableInvoices.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/01_enableDisableInvoices.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Invoices : Enable/Disable invoices\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices \"before all\" hook in \"BO - Orders - Invoices : Enable/Disable invoices\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27aebeb7-c595-4bf9-8491-2599d2e86464", + "parentUUID": "bae445cc-f52f-46fd-a5b7-7feb6000b5ba", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Invoices : Enable/Disable invoices\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices \"after all\" hook in \"BO - Orders - Invoices : Enable/Disable invoices\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d346c83b-7e7a-4e72-b844-cf9c53779676", + "parentUUID": "bae445cc-f52f-46fd-a5b7-7feb6000b5ba", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/01_enableDisableInvoices.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/01_enableDisableInvoices.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da98fde5-7cab-43e5-8ac4-64164bcf3e17", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8d25cb34-6c7b-4412-82eb-5607b5b7fa24", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3fa3195-5f10-42f2-8a6c-7b751586940f", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e4f7536-a687-49af-887f-9634ffe508d3", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f554c88-5347-4df3-b8fd-182379a16042", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7389, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e14d00b-4b1e-482d-b931-05f6216cc283", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62d590e1-65e9-4cf4-867a-36198ae6ad32", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb6ce3ea-9b67-4683-ad52-2e9e4ccfffc4", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1551, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4295c00e-0cda-4451-8c9d-5d5dac4bd72c", + "parentUUID": "008c55de-fcbe-4e0d-acd3-4edfa59bfef2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a3fa3195-5f10-42f2-8a6c-7b751586940f", + "3e4f7536-a687-49af-887f-9634ffe508d3", + "4f554c88-5347-4df3-b8fd-182379a16042", + "9e14d00b-4b1e-482d-b931-05f6216cc283", + "62d590e1-65e9-4cf4-867a-36198ae6ad32", + "bb6ce3ea-9b67-4683-ad52-2e9e4ccfffc4", + "4295c00e-0cda-4451-8c9d-5d5dac4bd72c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13471, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "893cc245-6064-4d17-bf4b-7bf6dc5a0fcb", + "title": "Disable invoices then check that there is no invoice document created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/01_enableDisableInvoices.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/01_enableDisableInvoices.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Disable invoices then check that there is no invoice document created should login in BO", + "timedOut": false, + "duration": 1792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f87125d-1d95-4b2f-81b8-e9ff3b8315bd", + "parentUUID": "893cc245-6064-4d17-bf4b-7bf6dc5a0fcb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Disable invoices then check that there is no invoice document created should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToInvoicesPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToInvoicesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75dc21ab-5c86-4b39-b89d-7cade96d36e9", + "parentUUID": "893cc245-6064-4d17-bf4b-7bf6dc5a0fcb", + "isHook": false, + "skipped": false + }, + { + "title": "should Disable invoices", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Disable invoices then check that there is no invoice document created should Disable invoices", + "timedOut": false, + "duration": 415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_DisableInvoices\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Invoices\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableInvoices(page, test.args.status)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44e5d851-cbbc-4943-912a-11c4c7d85219", + "parentUUID": "893cc245-6064-4d17-bf4b-7bf6dc5a0fcb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Disable invoices then check that there is no invoice document created should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToOrdersPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8a070b0-ecce-4f14-adc8-85126538f47b", + "parentUUID": "893cc245-6064-4d17-bf4b-7bf6dc5a0fcb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Disable invoices then check that there is no invoice document created should go to the first order page", + "timedOut": false, + "duration": 883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToOrderPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e2d4051-5adf-46e2-b69f-50cfb7d0fff3", + "parentUUID": "893cc245-6064-4d17-bf4b-7bf6dc5a0fcb", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Disable invoices then check that there is no invoice document created should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_updateStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, test.args.orderStatus)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(test.args.orderStatus);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5ed8c1e-d797-4bab-ad77-afe4c065f497", + "parentUUID": "893cc245-6064-4d17-bf4b-7bf6dc5a0fcb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is no invoice document created", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Disable invoices then check that there is no invoice document created should check that there is no invoice document created", + "timedOut": false, + "duration": 250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_checkInvoiceCreation0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkInvoiceCreation\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page)];\n case 2:\n documentName = _a.sent();\n if (test.args.status) {\n (0, chai_1.expect)(documentName).to.be.equal('Invoice');\n }\n else {\n (0, chai_1.expect)(documentName).to.be.not.equal('Invoice');\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1eb1e1f1-d3be-4773-a8b8-480bd112a0da", + "parentUUID": "893cc245-6064-4d17-bf4b-7bf6dc5a0fcb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2f87125d-1d95-4b2f-81b8-e9ff3b8315bd", + "75dc21ab-5c86-4b39-b89d-7cade96d36e9", + "44e5d851-cbbc-4943-912a-11c4c7d85219", + "a8a070b0-ecce-4f14-adc8-85126538f47b", + "9e2d4051-5adf-46e2-b69f-50cfb7d0fff3", + "f5ed8c1e-d797-4bab-ad77-afe4c065f497", + "1eb1e1f1-d3be-4773-a8b8-480bd112a0da" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13219, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8324061d-a5f8-46f6-a136-740e74b5d83f", + "title": "Enable invoices then check that there is an invoice document created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/01_enableDisableInvoices.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/01_enableDisableInvoices.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Enable invoices then check that there is an invoice document created should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToInvoicesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToInvoicesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad99f987-a16c-404a-ac23-b7e82c997e44", + "parentUUID": "8324061d-a5f8-46f6-a136-740e74b5d83f", + "isHook": false, + "skipped": false + }, + { + "title": "should Enable invoices", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Enable invoices then check that there is an invoice document created should Enable invoices", + "timedOut": false, + "duration": 487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_EnableInvoices\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Invoices\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableInvoices(page, test.args.status)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22007653-f5a7-4e4c-9c69-738d4df42ac3", + "parentUUID": "8324061d-a5f8-46f6-a136-740e74b5d83f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Enable invoices then check that there is an invoice document created should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1599059-5abe-4d62-adb3-62eb4ce7d850", + "parentUUID": "8324061d-a5f8-46f6-a136-740e74b5d83f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Enable invoices then check that there is an invoice document created should go to the first order page", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_goToOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45e336b4-e6cc-4dd6-9d62-e7e398b96521", + "parentUUID": "8324061d-a5f8-46f6-a136-740e74b5d83f", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Payment accepted' and check it", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Enable invoices then check that there is an invoice document created should change the order status to 'Payment accepted' and check it", + "timedOut": false, + "duration": 1294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_updateStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, test.args.orderStatus)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(test.args.orderStatus);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "242a1c2a-c6b0-4c3b-8948-7574eb40b344", + "parentUUID": "8324061d-a5f8-46f6-a136-740e74b5d83f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is an invoice document created", + "fullTitle": "BO - Orders - Invoices : Enable/Disable invoices Enable invoices then check that there is an invoice document created should check that there is an invoice document created", + "timedOut": false, + "duration": 248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableInvoices_checkInvoiceCreation1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkInvoiceCreation\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page)];\n case 2:\n documentName = _a.sent();\n if (test.args.status) {\n (0, chai_1.expect)(documentName).to.be.equal('Invoice');\n }\n else {\n (0, chai_1.expect)(documentName).to.be.not.equal('Invoice');\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb6a3ae3-505a-445a-a57e-6525349536bc", + "parentUUID": "8324061d-a5f8-46f6-a136-740e74b5d83f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ad99f987-a16c-404a-ac23-b7e82c997e44", + "22007653-f5a7-4e4c-9c69-738d4df42ac3", + "d1599059-5abe-4d62-adb3-62eb4ce7d850", + "45e336b4-e6cc-4dd6-9d62-e7e398b96521", + "242a1c2a-c6b0-4c3b-8948-7574eb40b344", + "fb6a3ae3-505a-445a-a57e-6525349536bc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11455, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "38d1d8f4-19cc-46bf-a0e0-1e7b065490db", + "title": "BO - Orders - Invoices : Enable/Disable tax breakdown", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Invoices : Enable/Disable tax breakdown\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown \"before all\" hook in \"BO - Orders - Invoices : Enable/Disable tax breakdown\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n // Create new tab\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "228e1168-ca10-40c4-b17c-f8febcae5028", + "parentUUID": "38d1d8f4-19cc-46bf-a0e0-1e7b065490db", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Invoices : Enable/Disable tax breakdown\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown \"after all\" hook in \"BO - Orders - Invoices : Enable/Disable tax breakdown\"", + "timedOut": false, + "duration": 15, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b1ae0171-e200-4687-a206-5ddde80c1769", + "parentUUID": "38d1d8f4-19cc-46bf-a0e0-1e7b065490db", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown should login in BO", + "timedOut": false, + "duration": 1764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd8bdb58-fd36-4b2f-93e3-717fdf1672ae", + "parentUUID": "38d1d8f4-19cc-46bf-a0e0-1e7b065490db", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "1e21b532-2975-43f3-9416-cc9e0f485c64", + "title": "Enable tax breakdown then check it in the invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "1836bcb9-d0a7-45ea-ac09-8cba5705d85e", + "title": "Enable tax breakdown", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Enable tax breakdown should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToInvoicesPageToEnableTaxBreakDown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPageToEnableTaxBreakDown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63b97641-395b-4829-8945-39ccaef2be45", + "parentUUID": "1836bcb9-d0a7-45ea-ac09-8cba5705d85e", + "isHook": false, + "skipped": false + }, + { + "title": "should enable tax breakdown", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Enable tax breakdown should enable tax breakdown", + "timedOut": false, + "duration": 377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_enableTaxBreakDown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableTaxBreakDown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableTaxBreakdown(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8799744-49fb-4f01-bfb7-27de0cbb03e4", + "parentUUID": "1836bcb9-d0a7-45ea-ac09-8cba5705d85e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "63b97641-395b-4829-8945-39ccaef2be45", + "e8799744-49fb-4f01-bfb7-27de0cbb03e4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5219, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "67d2ed02-7a9c-4dcc-8340-e7deb35b95e2", + "title": "Create 2 new tax rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create 2 new tax rules should go to 'International > Taxes' page", + "timedOut": false, + "duration": 3672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.internationalParentLink, invoices_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f276adfe-2bb7-42d2-8795-95fc0eb19a1a", + "parentUUID": "67d2ed02-7a9c-4dcc-8340-e7deb35b95e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Tax Rules' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create 2 new tax rules should go to 'Tax Rules' page", + "timedOut": false, + "duration": 844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToTaxRulesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxRulesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbd3c7e8-96f9-4911-8c96-b7f1a75cded5", + "parentUUID": "67d2ed02-7a9c-4dcc-8340-e7deb35b95e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new tax rules group' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create 2 new tax rules should go to 'Add new tax rules group' page", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToAddTaxRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddTaxRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.goToAddNewTaxRulesGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acafc9c8-bd54-44a2-8ad1-23ab98ee54cc", + "parentUUID": "67d2ed02-7a9c-4dcc-8340-e7deb35b95e2", + "isHook": false, + "skipped": false + }, + { + "title": "should create new tax rule group", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create 2 new tax rules should create new tax rule group", + "timedOut": false, + "duration": 1140, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_createTaxRuleGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createTaxRuleGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditTaxRulesGroup(page, taxRuleGroupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e7ad3f7-b7e8-4472-8a47-58f337d433d4", + "parentUUID": "67d2ed02-7a9c-4dcc-8340-e7deb35b95e2", + "isHook": false, + "skipped": false + }, + { + "title": "should create new tax rule n°1", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create 2 new tax rules should create new tax rule n°1", + "timedOut": false, + "duration": 496, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_createFirstTaxRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createFirstTaxRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditTaxRules(page, firstTaxRuleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9aa8a97a-4489-4c76-ade9-20920f631e75", + "parentUUID": "67d2ed02-7a9c-4dcc-8340-e7deb35b95e2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new tax rule' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create 2 new tax rules should go to 'Add new tax rule' page", + "timedOut": false, + "duration": 52, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_clickToCreateSecondTaxRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickToCreateSecondTaxRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.clickOnAddNewTaxRule(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f30aa9b3-4a55-4cf9-855a-c38744ea0d1d", + "parentUUID": "67d2ed02-7a9c-4dcc-8340-e7deb35b95e2", + "isHook": false, + "skipped": false + }, + { + "title": "should create new tax rule n°2", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create 2 new tax rules should create new tax rule n°2", + "timedOut": false, + "duration": 729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_createSecondTaxRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSecondTaxRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditTaxRules(page, secondTaxRuleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(add_2.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36148c0d-64cc-4490-b99e-a9dd1e8da26d", + "parentUUID": "67d2ed02-7a9c-4dcc-8340-e7deb35b95e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f276adfe-2bb7-42d2-8795-95fc0eb19a1a", + "dbd3c7e8-96f9-4911-8c96-b7f1a75cded5", + "acafc9c8-bd54-44a2-8ad1-23ab98ee54cc", + "3e7ad3f7-b7e8-4472-8a47-58f337d433d4", + "9aa8a97a-4489-4c76-ade9-20920f631e75", + "f30aa9b3-4a55-4cf9-855a-c38744ea0d1d", + "36148c0d-64cc-4490-b99e-a9dd1e8da26d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7752, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ee41b0c2-287c-46f3-826d-bc100a0ea014", + "title": "Create new product with the new tax rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Products > Products' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new product with the new tax rule should go to 'Products > Products' page", + "timedOut": false, + "duration": 3714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToProductPageToCreateProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPageToCreateProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.goToSubMenu(page, add_2.default.catalogParentLink, add_2.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fdf11be-a5fe-4777-9e35-b1f12f4bc173", + "parentUUID": "ee41b0c2-287c-46f3-826d-bc100a0ea014", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new product with the new tax rule should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "101a601c-2e74-40ad-933b-286260fb5a62", + "parentUUID": "ee41b0c2-287c-46f3-826d-bc100a0ea014", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new product with the new tax rule should choose 'Standard product'", + "timedOut": false, + "duration": 862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "caf8b0c4-50ac-4bf9-80d4-3f668b35f6bf", + "parentUUID": "ee41b0c2-287c-46f3-826d-bc100a0ea014", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new product with the new tax rule should go to new product page", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf6bf155-5fad-48c4-b0b6-66c174ad05a2", + "parentUUID": "ee41b0c2-287c-46f3-826d-bc100a0ea014", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new product with the new tax rule should create standard product", + "timedOut": false, + "duration": 5360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d03860d-651b-48b2-bf40-c64362add0c8", + "parentUUID": "ee41b0c2-287c-46f3-826d-bc100a0ea014", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3fdf11be-a5fe-4777-9e35-b1f12f4bc173", + "101a601c-2e74-40ad-933b-286260fb5a62", + "caf8b0c4-50ac-4bf9-80d4-3f668b35f6bf", + "cf6bf155-5fad-48c4-b0b6-66c174ad05a2", + "3d03860d-651b-48b2-bf40-c64362add0c8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10223, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4ec077d7-2e3a-4037-98ef-de8e3e0000c8", + "title": "Create new order in FO with the created product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new order in FO with the created product should preview product", + "timedOut": false, + "duration": 1906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_2.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db179415-ef4f-47fd-94c5-0a535b22fef6", + "parentUUID": "4ec077d7-2e3a-4037-98ef-de8e3e0000c8", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new order in FO with the created product should add product to cart", + "timedOut": false, + "duration": 3418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_2.default.addProductToTheCart(page)];\n case 2:\n // Add the created product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d6e7e91-07ab-4016-b927-88782e0293ac", + "parentUUID": "4ec077d7-2e3a-4037-98ef-de8e3e0000c8", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and sign in by default customer", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new order in FO with the created product should proceed to checkout and sign in by default customer", + "timedOut": false, + "duration": 1285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_proceedToCheckoutAndSignIn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckoutAndSignIn', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cebf1105-6aa9-498b-807a-bbcd00c64f54", + "parentUUID": "4ec077d7-2e3a-4037-98ef-de8e3e0000c8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new order in FO with the created product should go to delivery step", + "timedOut": false, + "duration": 283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa5d7e33-ceaf-491a-8c4f-3a63d480d05b", + "parentUUID": "4ec077d7-2e3a-4037-98ef-de8e3e0000c8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new order in FO with the created product should go to payment step", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5f24d36-a0b4-4a1c-a9c9-784aa6e14599", + "parentUUID": "4ec077d7-2e3a-4037-98ef-de8e3e0000c8", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new order in FO with the created product should choose payment method and confirm the order", + "timedOut": false, + "duration": 1559, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e15b6ec7-d0c1-42d2-b90c-10938471ad62", + "parentUUID": "4ec077d7-2e3a-4037-98ef-de8e3e0000c8", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Create new order in FO with the created product should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85008e06-240f-44ee-8cc3-2954ebdf0ff1", + "parentUUID": "4ec077d7-2e3a-4037-98ef-de8e3e0000c8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db179415-ef4f-47fd-94c5-0a535b22fef6", + "9d6e7e91-07ab-4016-b927-88782e0293ac", + "cebf1105-6aa9-498b-807a-bbcd00c64f54", + "fa5d7e33-ceaf-491a-8c4f-3a63d480d05b", + "f5f24d36-a0b4-4a1c-a9c9-784aa6e14599", + "e15b6ec7-d0c1-42d2-b90c-10938471ad62", + "85008e06-240f-44ee-8cc3-2954ebdf0ff1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9253, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bbec434f-a3c8-41fb-9735-a29849369810", + "title": "Generate the invoice and check the tax breakdown", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Generate the invoice and check the tax breakdown should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToOrdersPageTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2f00c79-9bd6-4cec-90da-7890fbaa7590", + "parentUUID": "bbec434f-a3c8-41fb-9735-a29849369810", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Generate the invoice and check the tax breakdown should go to the first order page", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToFirstOrderPageTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPageTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc7c8451-f04a-41e7-ac99-20381235f1c8", + "parentUUID": "bbec434f-a3c8-41fb-9735-a29849369810", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Payment accepted' and check it", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Generate the invoice and check the tax breakdown should change the order status to 'Payment accepted' and check it", + "timedOut": false, + "duration": 1334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_changeOrderStatusTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeOrderStatusTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3999aff0-6352-4ed1-8b0d-4d23a723be6a", + "parentUUID": "bbec434f-a3c8-41fb-9735-a29849369810", + "isHook": false, + "skipped": false + }, + { + "title": "should download the invoice", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Generate the invoice and check the tax breakdown should download the invoice", + "timedOut": false, + "duration": 490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_downloadInvoiceTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadInvoiceTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page)];\n case 2:\n // Download invoice\n firstInvoiceFileName = _a.sent();\n (0, chai_1.expect)(firstInvoiceFileName).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(firstInvoiceFileName)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a33aa65b-9801-447f-98cf-147be26f5890", + "parentUUID": "bbec434f-a3c8-41fb-9735-a29849369810", + "isHook": false, + "skipped": false + }, + { + "title": "should check the tax breakdown", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Enable tax breakdown then check it in the invoice Generate the invoice and check the tax breakdown should check the tax breakdown", + "timedOut": false, + "duration": 1043, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_checkTaxBreakdownInFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTaxBreakdownInFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(firstInvoiceFileName, '10.000 %')];\n case 2:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(firstInvoiceFileName, '20.000 %')];\n case 3:\n // Check the existence of the second tax\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "163bd2c3-c3ce-49a0-ab4b-55f0c8309c6f", + "parentUUID": "bbec434f-a3c8-41fb-9735-a29849369810", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c2f00c79-9bd6-4cec-90da-7890fbaa7590", + "bc7c8451-f04a-41e7-ac99-20381235f1c8", + "3999aff0-6352-4ed1-8b0d-4d23a723be6a", + "a33aa65b-9801-447f-98cf-147be26f5890", + "163bd2c3-c3ce-49a0-ab4b-55f0c8309c6f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7506, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b37b5469-3d46-4a52-b231-f7acc14e12a1", + "title": "Disable tax breakdown then check the invoice file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "a1ff3e8a-abc9-45d1-b13f-90d16ffe971e", + "title": "Disable tax breakdown", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Disable tax breakdown then check the invoice file Disable tax breakdown should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 3801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToInvoicesPageToDisableTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPageToDisableTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4724821-296a-4fe5-8c62-f4406fe26f91", + "parentUUID": "a1ff3e8a-abc9-45d1-b13f-90d16ffe971e", + "isHook": false, + "skipped": false + }, + { + "title": "should disable tax breakdown", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Disable tax breakdown then check the invoice file Disable tax breakdown should disable tax breakdown", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_disableTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableTaxBreakdown(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95ca668e-c735-4cc3-940e-e495da5411d4", + "parentUUID": "a1ff3e8a-abc9-45d1-b13f-90d16ffe971e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c4724821-296a-4fe5-8c62-f4406fe26f91", + "95ca668e-c735-4cc3-940e-e495da5411d4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4156, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "067c9541-e3f7-4877-a37a-b0b5e9db3e55", + "title": "Generate the invoice and check that there is no tax breakdown", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Disable tax breakdown then check the invoice file Generate the invoice and check that there is no tax breakdown should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToOrdersPageNoTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageNoTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86519ba4-b9ad-4bbc-9456-a59b79be1607", + "parentUUID": "067c9541-e3f7-4877-a37a-b0b5e9db3e55", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Disable tax breakdown then check the invoice file Generate the invoice and check that there is no tax breakdown should go to the first order page", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToFirstOrderPageNoTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPageNoTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2be432a-9d15-474b-82a6-c1f3b50d760b", + "parentUUID": "067c9541-e3f7-4877-a37a-b0b5e9db3e55", + "isHook": false, + "skipped": false + }, + { + "title": "should download the invoice", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Disable tax breakdown then check the invoice file Generate the invoice and check that there is no tax breakdown should download the invoice", + "timedOut": false, + "duration": 497, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_downloadInvoiceNoTaxBreakdown\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadInvoiceNoTaxBreakdown', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page)];\n case 2:\n // Download invoice and check existence\n secondInvoiceFileName = _a.sent();\n (0, chai_1.expect)(secondInvoiceFileName).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(secondInvoiceFileName)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe185d0a-266b-46bc-924f-3232beb34fa9", + "parentUUID": "067c9541-e3f7-4877-a37a-b0b5e9db3e55", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is no tax breakdown", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Disable tax breakdown then check the invoice file Generate the invoice and check that there is no tax breakdown should check that there is no tax breakdown", + "timedOut": false, + "duration": 780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_checkNoTaxBreakdownInFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoTaxBreakdownInFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(secondInvoiceFileName, '10.000 %')];\n case 2:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(false);\n return [4 /*yield*/, files_1.default.isTextInPDF(secondInvoiceFileName, '20.000 %')];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(false);\n return [4 /*yield*/, files_1.default.isTextInPDF(secondInvoiceFileName, '30.000 %')];\n case 4:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5abcc297-e03c-4519-99c8-ecef15819e81", + "parentUUID": "067c9541-e3f7-4877-a37a-b0b5e9db3e55", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "86519ba4-b9ad-4bbc-9456-a59b79be1607", + "c2be432a-9d15-474b-82a6-c1f3b50d760b", + "fe185d0a-266b-46bc-924f-3232beb34fa9", + "5abcc297-e03c-4519-99c8-ecef15819e81" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5920, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ae13f74b-8e35-410b-a5da-17ad4950fd62", + "title": "Delete tax rules with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Delete tax rules with Bulk Actions should go to 'International > Taxes' page", + "timedOut": false, + "duration": 3626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToTaxesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.internationalParentLink, invoices_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a66d74e7-77dc-48da-bbc1-24d16699b9d9", + "parentUUID": "ae13f74b-8e35-410b-a5da-17ad4950fd62", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Tax Rules' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Delete tax rules with Bulk Actions should go to 'Tax Rules' page", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_goToTaxRulesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxRulesPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.goToTaxRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee582422-4ce4-45aa-bddd-e359813e3204", + "parentUUID": "ae13f74b-8e35-410b-a5da-17ad4950fd62", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Delete tax rules with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 408, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.filterTable(page, 'input', 'name', taxRuleGroupToCreate.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, taxRules_1.default.getTextColumnFromTable(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(taxRuleGroupToCreate.name);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0e7a0c8-a492-4d06-9ffc-19ef58dd1352", + "parentUUID": "ae13f74b-8e35-410b-a5da-17ad4950fd62", + "isHook": false, + "skipped": false + }, + { + "title": "should delete tax rules with Bulk Actions and check result", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Delete tax rules with Bulk Actions should delete tax rules with Bulk Actions and check result", + "timedOut": false, + "duration": 1067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_bulkDeleteCarriers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCarriers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.bulkDeleteTaxRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(taxRules_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c909be7a-293d-476a-9b74-cbc791817c94", + "parentUUID": "ae13f74b-8e35-410b-a5da-17ad4950fd62", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown Delete tax rules with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 2850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxRules_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96281bef-c316-45b1-a80f-59420334e4f6", + "parentUUID": "ae13f74b-8e35-410b-a5da-17ad4950fd62", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a66d74e7-77dc-48da-bbc1-24d16699b9d9", + "ee582422-4ce4-45aa-bddd-e359813e3204", + "a0e7a0c8-a492-4d06-9ffc-19ef58dd1352", + "c909be7a-293d-476a-9b74-cbc791817c94", + "96281bef-c316-45b1-a80f-59420334e4f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8869, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "title": "POST-TEST: Bulk delete created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/02_enableDisableTaxBreakdown.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products \"before all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1227f51c-7e3f-4374-94af-2f763dd185fa", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products \"after all\" hook in \"POST-TEST: Bulk delete created products\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e6a70cd0-545e-416f-9f70-aa48ab9dc8e0", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should login in BO", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "636779d4-fcdc-4997-8cff-1a64eaa462a1", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_postTest_goToProductsPageToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56f54308-bfe9-4e40-9436-9f02b0584cf3", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_postTest_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05aa898f-49c4-4192-86fd-2e8b3747aaa0", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Name' and check result", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should filter list by 'Name' and check result", + "timedOut": false, + "duration": 1286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_postTest_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productName, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98effdaf-a8d8-4db4-ae8b-8f9d0cf6b956", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + }, + { + "title": "should select the products", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should select the products", + "timedOut": false, + "duration": 37, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_postTest_selectProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c67f5c88-7f45-4504-ba87-fab391c410b8", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should click on bulk actions button", + "timedOut": false, + "duration": 306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_postTest_clickOnBulkActionsButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBulkActionsButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d55beed7-c6f8-4317-b0e1-b33abe9de02c", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete products", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should bulk delete products", + "timedOut": false, + "duration": 497, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_postTest_bulkDeleteProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(\"Deleting \".concat(numberOfProductsAfterFilter, \" / \").concat(numberOfProductsAfterFilter, \" products\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb6639bf-cd71-4c7d-9953-b472f05943d6", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should close progress modal", + "timedOut": false, + "duration": 466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_postTest_closeDeleteProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeDeleteProgressModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'delete')];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "929fc341-4e84-40ec-888a-4a16c992fec1", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Orders - Invoices : Enable/Disable tax breakdown POST-TEST: Bulk delete created products should reset filter and get number of products", + "timedOut": false, + "duration": 2939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableTaxBreakdown_postTest_checkNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductAfterBulkActions;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductAfterBulkActions = _a.sent();\n (0, chai_1.expect)(numberOfProductAfterBulkActions).to.be.equal(numberOfProducts - numberOfProductsAfterFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32b25f3a-87ed-48bb-9c4c-305596125677", + "parentUUID": "bbe68cbc-8457-41ec-ada9-eb7e1f6058af", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "636779d4-fcdc-4997-8cff-1a64eaa462a1", + "56f54308-bfe9-4e40-9436-9f02b0584cf3", + "05aa898f-49c4-4192-86fd-2e8b3747aaa0", + "98effdaf-a8d8-4db4-ae8b-8f9d0cf6b956", + "c67f5c88-7f45-4504-ba87-fab391c410b8", + "d55beed7-c6f8-4317-b0e1-b33abe9de02c", + "eb6639bf-cd71-4c7d-9953-b472f05943d6", + "929fc341-4e84-40ec-888a-4a16c992fec1", + "32b25f3a-87ed-48bb-9c4c-305596125677" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11242, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bd8bdb58-fd36-4b2f-93e3-717fdf1672ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1764, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6a9fb02a-a1d9-4098-a1e2-0169169fd5f5", + "title": "BO - Orders - Invoices : Enable/Disable product image in invoices", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Invoices : Enable/Disable product image in invoices\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices \"before all\" hook in \"BO - Orders - Invoices : Enable/Disable product image in invoices\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e023a3b-3428-4564-975a-2844d80fa578", + "parentUUID": "6a9fb02a-a1d9-4098-a1e2-0169169fd5f5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Invoices : Enable/Disable product image in invoices\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices \"after all\" hook in \"BO - Orders - Invoices : Enable/Disable product image in invoices\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2db0a40f-e575-4570-825f-45f925cd6a3a", + "parentUUID": "6a9fb02a-a1d9-4098-a1e2-0169169fd5f5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices should login in BO", + "timedOut": false, + "duration": 1721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b524c3ec-2e9f-4826-9c94-7ce23316f179", + "parentUUID": "6a9fb02a-a1d9-4098-a1e2-0169169fd5f5", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "9a9b6cb2-49ab-4725-a34f-24eb33037df0", + "title": "Enable product image in invoice then check the invoice file created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "144bbbed-8ae7-4024-b180-66aa7e3092e3", + "title": "Enable product image", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Enable product image should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToInvoicesPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToInvoicesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9298814b-aebe-4f91-b144-d1d080ed3781", + "parentUUID": "144bbbed-8ae7-4024-b180-66aa7e3092e3", + "isHook": false, + "skipped": false + }, + { + "title": "should Enable product image", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Enable product image should Enable product image", + "timedOut": false, + "duration": 379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_EnableProductImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ProductImage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableProductImage(page, test.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d09061c-8276-4ba5-b1b8-eb6650a5c56d", + "parentUUID": "144bbbed-8ae7-4024-b180-66aa7e3092e3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9298814b-aebe-4f91-b144-d1d080ed3781", + "3d09061c-8276-4ba5-b1b8-eb6650a5c56d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "title": "Create new order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should go to FO page", + "timedOut": false, + "duration": 1842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14b96261-e8ac-4061-b8a4-c271356c9791", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should go to login page", + "timedOut": false, + "duration": 694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToLoginFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad96a7c1-39ed-4d03-b209-83610983019b", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should sign in with default customer", + "timedOut": false, + "duration": 632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_sighInFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b55b34ce-8761-418e-90e8-29879a033fdf", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should add product to cart", + "timedOut": false, + "duration": 7242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44622d6a-7c5e-4293-8a70-8e5b175f7f0b", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should go to delivery step", + "timedOut": false, + "duration": 1016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToDeliveryStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a447c97-0379-4ed0-934d-32713483a4ee", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should go to payment step", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToPaymentStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ac1c87b-13ed-4e35-9758-f014f6f8cd0b", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_confirmOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "831c1cd4-a7aa-4e10-9a7c-be88ec2aa884", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should sign out from FO", + "timedOut": false, + "duration": 1207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_sighOutFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec474255-307b-49a8-95d5-53842d611a9f", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Create new order in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56429d0c-8fa2-4245-947a-c03fb3a119df", + "parentUUID": "a64ed4b7-080b-4e1e-900c-03566c70821f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "14b96261-e8ac-4061-b8a4-c271356c9791", + "ad96a7c1-39ed-4d03-b209-83610983019b", + "b55b34ce-8761-418e-90e8-29879a033fdf", + "44622d6a-7c5e-4293-8a70-8e5b175f7f0b", + "1a447c97-0379-4ed0-934d-32713483a4ee", + "8ac1c87b-13ed-4e35-9758-f014f6f8cd0b", + "831c1cd4-a7aa-4e10-9a7c-be88ec2aa884", + "ec474255-307b-49a8-95d5-53842d611a9f", + "56429d0c-8fa2-4245-947a-c03fb3a119df" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14425, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "34d9c745-5645-4390-87f5-d95c1f1b6084", + "title": "Generate the invoice and check product image", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Generate the invoice and check product image should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToOrdersPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "468ae4ad-e7df-4240-b6d9-6960a1aef3a3", + "parentUUID": "34d9c745-5645-4390-87f5-d95c1f1b6084", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Generate the invoice and check product image should go to the created order page", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToCreatedOrderPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af1b40e8-5152-473d-895f-5738a93900a8", + "parentUUID": "34d9c745-5645-4390-87f5-d95c1f1b6084", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Generate the invoice and check product image should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_updateOrderStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f821108e-01fb-4969-97cc-72776e396162", + "parentUUID": "34d9c745-5645-4390-87f5-d95c1f1b6084", + "isHook": false, + "skipped": false + }, + { + "title": "should download the invoice", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Generate the invoice and check product image should download the invoice", + "timedOut": false, + "duration": 475, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_downloadInvoice0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"downloadInvoice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page)];\n case 2:\n // Download invoice\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "801b7930-64cb-40a2-bf9e-56a200ee8768", + "parentUUID": "34d9c745-5645-4390-87f5-d95c1f1b6084", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product images in the PDF File", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Enable product image in invoice then check the invoice file created Generate the invoice and check product image should check the product images in the PDF File", + "timedOut": false, + "duration": 323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_checkProductImages0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imageNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getImageNumberInPDF(filePath)];\n case 2:\n imageNumber = _a.sent();\n (0, chai_1.expect)(imageNumber).to.be.equal(test.args.imageNumber);\n return [4 /*yield*/, files_1.default.deleteFile(filePath)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16a2a81f-aacd-4fd6-b05b-f323e45640bc", + "parentUUID": "34d9c745-5645-4390-87f5-d95c1f1b6084", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "468ae4ad-e7df-4240-b6d9-6960a1aef3a3", + "af1b40e8-5152-473d-895f-5738a93900a8", + "f821108e-01fb-4969-97cc-72776e396162", + "801b7930-64cb-40a2-bf9e-56a200ee8768", + "16a2a81f-aacd-4fd6-b05b-f323e45640bc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6860, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "024d5048-2092-4b11-ba49-aafbc321d6bc", + "title": "Disable product image in invoice then check the invoice file created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "ea86abec-d113-4e44-b38d-822114919248", + "title": "Disable product image", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Disable product image should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToInvoicesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToInvoicesPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b0fd471-08f1-414d-b309-e74bab563d4e", + "parentUUID": "ea86abec-d113-4e44-b38d-822114919248", + "isHook": false, + "skipped": false + }, + { + "title": "should Disable product image", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Disable product image should Disable product image", + "timedOut": false, + "duration": 345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_DisableProductImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ProductImage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableProductImage(page, test.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "567aba43-bd5a-4ad6-b279-b9b7706f47d2", + "parentUUID": "ea86abec-d113-4e44-b38d-822114919248", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2b0fd471-08f1-414d-b309-e74bab563d4e", + "567aba43-bd5a-4ad6-b279-b9b7706f47d2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5108, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "title": "Create new order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should go to FO page", + "timedOut": false, + "duration": 1771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d0ecb60-feea-4af7-8e71-abe0c2d1a175", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should go to login page", + "timedOut": false, + "duration": 711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToLoginFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d898d7e0-4360-4fdc-9469-b99d39c50c4b", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should sign in with default customer", + "timedOut": false, + "duration": 543, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_sighInFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21f4cfcd-af51-46b9-9f2c-0e5ca0592e99", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should add product to cart", + "timedOut": false, + "duration": 7280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ce211d0-2ed3-4441-88ab-908251c019a0", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should go to delivery step", + "timedOut": false, + "duration": 1011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToDeliveryStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17505a4f-e464-4a55-b3cc-7258294f96ad", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should go to payment step", + "timedOut": false, + "duration": 270, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToPaymentStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4dcd4a6-322a-443c-8a15-309eb56f9dbe", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1507, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_confirmOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e7868af-7fac-421b-a998-d7782e442d3f", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should sign out from FO", + "timedOut": false, + "duration": 1202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_sighOutFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9f11f67-d123-43b1-99c6-dfdc5677f63b", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Create new order in FO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c59c728e-7258-4863-814d-29383468d1d8", + "parentUUID": "c159c52a-eea9-41b6-921b-1e191af5b6cb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2d0ecb60-feea-4af7-8e71-abe0c2d1a175", + "d898d7e0-4360-4fdc-9469-b99d39c50c4b", + "21f4cfcd-af51-46b9-9f2c-0e5ca0592e99", + "9ce211d0-2ed3-4441-88ab-908251c019a0", + "17505a4f-e464-4a55-b3cc-7258294f96ad", + "f4dcd4a6-322a-443c-8a15-309eb56f9dbe", + "8e7868af-7fac-421b-a998-d7782e442d3f", + "b9f11f67-d123-43b1-99c6-dfdc5677f63b", + "c59c728e-7258-4863-814d-29383468d1d8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14301, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6368b283-b20b-46b7-96ea-8b0f1b4f785a", + "title": "Generate the invoice and check product image", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Generate the invoice and check product image should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca51f79a-0ecc-43c7-857f-bffc37c19f12", + "parentUUID": "6368b283-b20b-46b7-96ea-8b0f1b4f785a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Generate the invoice and check product image should go to the created order page", + "timedOut": false, + "duration": 901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_goToCreatedOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8eefad41-a1f3-4356-880a-f24a732b937f", + "parentUUID": "6368b283-b20b-46b7-96ea-8b0f1b4f785a", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Generate the invoice and check product image should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_updateOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57cc3d75-3a20-42ca-9510-66a457648339", + "parentUUID": "6368b283-b20b-46b7-96ea-8b0f1b4f785a", + "isHook": false, + "skipped": false + }, + { + "title": "should download the invoice", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Generate the invoice and check product image should download the invoice", + "timedOut": false, + "duration": 486, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_downloadInvoice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"downloadInvoice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page)];\n case 2:\n // Download invoice\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba206a0d-bf07-405b-85a2-dbff04299c42", + "parentUUID": "6368b283-b20b-46b7-96ea-8b0f1b4f785a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product images in the PDF File", + "fullTitle": "BO - Orders - Invoices : Enable/Disable product image in invoices Disable product image in invoice then check the invoice file created Generate the invoice and check product image should check the product images in the PDF File", + "timedOut": false, + "duration": 288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableProductImage_checkProductImages1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imageNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImages\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getImageNumberInPDF(filePath)];\n case 2:\n imageNumber = _a.sent();\n (0, chai_1.expect)(imageNumber).to.be.equal(test.args.imageNumber);\n return [4 /*yield*/, files_1.default.deleteFile(filePath)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e9d660f-86dc-4deb-ac16-6f3b89f22223", + "parentUUID": "6368b283-b20b-46b7-96ea-8b0f1b4f785a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca51f79a-0ecc-43c7-857f-bffc37c19f12", + "8eefad41-a1f3-4356-880a-f24a732b937f", + "57cc3d75-3a20-42ca-9510-66a457648339", + "ba206a0d-bf07-405b-85a2-dbff04299c42", + "7e9d660f-86dc-4deb-ac16-6f3b89f22223" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6829, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b524c3ec-2e9f-4826-9c94-7ce23316f179" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1721, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "68c3c29a-5f3d-4179-b8b4-aeae06264587", + "title": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name\"", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name \"before all\" hook in \"BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f03d335-f8ef-4751-9e39-5d46616aeafa", + "parentUUID": "68c3c29a-5f3d-4179-b8b4-aeae06264587", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name\"", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name \"after all\" hook in \"BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "284f2405-d8ff-4bc6-ae2d-cccfcd6ae637", + "parentUUID": "68c3c29a-5f3d-4179-b8b4-aeae06264587", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name should login in BO", + "timedOut": false, + "duration": 1783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1827aa1-66ff-45db-8420-2de8c1c9071d", + "parentUUID": "68c3c29a-5f3d-4179-b8b4-aeae06264587", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "bc9b08b1-af35-4704-b964-346f7aaa08d1", + "title": "Update the invoice prefix", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Update the invoice prefix should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_goToInvoicesPageToUpdatePrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPageToUpdatePrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84f902fc-8e62-4a2d-838e-366a131bb530", + "parentUUID": "bc9b08b1-af35-4704-b964-346f7aaa08d1", + "isHook": false, + "skipped": false + }, + { + "title": "should update the invoice prefix to #abbas", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Update the invoice prefix should update the invoice prefix to #abbas", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_updateInvoicePrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateInvoicePrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.changePrefix(page, invoiceData.prefix)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28a4cfc8-78d6-402d-a8af-8630542c0ffa", + "parentUUID": "bc9b08b1-af35-4704-b964-346f7aaa08d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "84f902fc-8e62-4a2d-838e-366a131bb530", + "28a4cfc8-78d6-402d-a8af-8630542c0ffa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5229, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1418b3ff-8ce8-43c5-a0fb-e1624f579daf", + "title": "Update the order status and check the invoice file name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Update the order status and check the invoice file name should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_goToOrdersPageForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0419487e-a260-4051-b3c6-ecdfd2cec66e", + "parentUUID": "1418b3ff-8ce8-43c5-a0fb-e1624f579daf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Update the order status and check the invoice file name should go to the first order page", + "timedOut": false, + "duration": 868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_goToFirstOrderPageForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPageForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03047ced-f91d-4ecf-bafc-954ce5cb57f2", + "parentUUID": "1418b3ff-8ce8-43c5-a0fb-e1624f579daf", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Update the order status and check the invoice file name should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_UpdateStatusForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'UpdateStatusForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47d8db1f-84c3-470e-ad7b-858c074f780d", + "parentUUID": "1418b3ff-8ce8-43c5-a0fb-e1624f579daf", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice file name contain the prefix '#abbas'", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Update the order status and check the invoice file name should check that the invoice file name contain the prefix '#abbas'", + "timedOut": false, + "duration": 257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_checkFirstOrderUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstOrderUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n // Get invoice file name\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.contains(invoiceData.prefix.replace('#', '').trim());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25f900b3-a688-4e24-b6ab-c87867662a27", + "parentUUID": "1418b3ff-8ce8-43c5-a0fb-e1624f579daf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0419487e-a260-4051-b3c6-ecdfd2cec66e", + "03047ced-f91d-4ecf-bafc-954ce5cb57f2", + "47d8db1f-84c3-470e-ad7b-858c074f780d", + "25f900b3-a688-4e24-b6ab-c87867662a27" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4952, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "53e65a36-4e21-473a-b11a-71034795dae7", + "title": "Back to the default invoice prefix value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Back to the default invoice prefix value should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 3774, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_goToInvoicesPageForDefaultPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPageForDefaultPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24884618-126e-4e45-abc3-10e2fc709f54", + "parentUUID": "53e65a36-4e21-473a-b11a-71034795dae7", + "isHook": false, + "skipped": false + }, + { + "title": "should change the invoice prefix to '#IN'", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Back to the default invoice prefix value should change the invoice prefix to '#IN'", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_backToDefaultPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToDefaultPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.changePrefix(page, defaultPrefix)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e78225a1-cd4e-4327-aa2b-9f628814958a", + "parentUUID": "53e65a36-4e21-473a-b11a-71034795dae7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "24884618-126e-4e45-abc3-10e2fc709f54", + "e78225a1-cd4e-4327-aa2b-9f628814958a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4103, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "465b5894-2f89-4dc0-895c-c6782ddbf11b", + "title": "Check the default prefix in the invoice file Name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/04_invoicePrefix.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Check the default prefix in the invoice file Name should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_goToOrdersPageForDefaultPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageForDefaultPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39b7b138-ad06-408d-a6cb-0565d2b6e00c", + "parentUUID": "465b5894-2f89-4dc0-895c-c6782ddbf11b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Check the default prefix in the invoice file Name should go to the first order page", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_goToFirstOrderPageForDefaultPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPageForDefaultPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8eb4a42-7b37-44cd-8c53-df2611d48a5a", + "parentUUID": "465b5894-2f89-4dc0-895c-c6782ddbf11b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice file name contain the default prefix #IN", + "fullTitle": "BO - Orders - Invoices : Update invoice prefix and check the generated invoice file name Check the default prefix in the invoice file Name should check that the invoice file name contain the default prefix #IN", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_invoicePrefix_checkDefaultPrefixInInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDefaultPrefixInInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n // Get invoice file name\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.contains(defaultPrefix.replace('#', '').trim());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f95e95ca-1a97-4167-8ced-d192240a192f", + "parentUUID": "465b5894-2f89-4dc0-895c-c6782ddbf11b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "39b7b138-ad06-408d-a6cb-0565d2b6e00c", + "b8eb4a42-7b37-44cd-8c53-df2611d48a5a", + "f95e95ca-1a97-4167-8ced-d192240a192f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4907, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f1827aa1-66ff-45db-8420-2de8c1c9071d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1783, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ea6d9277-d661-4dba-8d38-85d802745f7d", + "title": "BO - Orders - Invoices : Enable/Disable current year", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Invoices : Enable/Disable current year\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year \"before all\" hook in \"BO - Orders - Invoices : Enable/Disable current year\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c76311c5-6de0-49ea-b930-8eff18cbbcab", + "parentUUID": "ea6d9277-d661-4dba-8d38-85d802745f7d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Invoices : Enable/Disable current year\"", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year \"after all\" hook in \"BO - Orders - Invoices : Enable/Disable current year\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "756ab656-5077-476a-836d-59289128ff5d", + "parentUUID": "ea6d9277-d661-4dba-8d38-85d802745f7d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year should login in BO", + "timedOut": false, + "duration": 1715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02093ae4-e042-4199-b197-7b32dc2233b6", + "parentUUID": "ea6d9277-d661-4dba-8d38-85d802745f7d", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "c1477e74-ddf0-466f-a0aa-1e7df256e60d", + "title": "Enable add current year to invoice number then check the invoice file name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToInvoicesPageToEnableCurrentYear\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPageToEnableCurrentYear', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd04fbee-4ed3-46a7-a5fb-0ab7e6e14484", + "parentUUID": "c1477e74-ddf0-466f-a0aa-1e7df256e60d", + "isHook": false, + "skipped": false + }, + { + "title": "should enable add current year to invoice number", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name should enable add current year to invoice number", + "timedOut": false, + "duration": 382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_enableCurrentYear\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableCurrentYear', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableAddCurrentYearToInvoice(page, true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e0790e6-67dd-44db-9bca-f50dba20f0ab", + "parentUUID": "c1477e74-ddf0-466f-a0aa-1e7df256e60d", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "26a7cfdf-c4ae-4751-9807-37e353eb7764", + "title": "Choose the position of the year at the end and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should choose the position 'After the sequential number'", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the end and check it should choose the position 'After the sequential number'", + "timedOut": false, + "duration": 351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_changeCurrentYearPositionToEnd\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeCurrentYearPositionToEnd', baseContext)];\n case 1:\n _a.sent();\n // Choose the option 'After the sequential number' (ID = 0)\n return [4 /*yield*/, invoices_1.default.chooseInvoiceOptionsYearPosition(page, 0)];\n case 2:\n // Choose the option 'After the sequential number' (ID = 0)\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ffad41f-898e-4dd9-a29a-25039260302e", + "parentUUID": "26a7cfdf-c4ae-4751-9807-37e353eb7764", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the end and check it should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e54e809-61d9-4c9c-9437-58c54675ec7f", + "parentUUID": "26a7cfdf-c4ae-4751-9807-37e353eb7764", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the end and check it should go to the first order page", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToFirstOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e13c8889-9d3c-4ea4-8d80-6a2139ea384b", + "parentUUID": "26a7cfdf-c4ae-4751-9807-37e353eb7764", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the end and check it should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_updateStatusEnabledCurrentYearInTheEnd\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateStatusEnabledCurrentYearInTheEnd', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "664499b9-c892-4324-aab4-24f7c8992dd4", + "parentUUID": "26a7cfdf-c4ae-4751-9807-37e353eb7764", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice file name contain current year at the end", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the end and check it should check that the invoice file name contain current year at the end", + "timedOut": false, + "duration": 249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_checkEnabledCurrentYearAtTheEndOfFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEnabledCurrentYearAtTheEndOfFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.endWith(currentYear);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69fe0163-5011-4cbc-8b68-408ebb0a8b33", + "parentUUID": "26a7cfdf-c4ae-4751-9807-37e353eb7764", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5ffad41f-898e-4dd9-a29a-25039260302e", + "1e54e809-61d9-4c9c-9437-58c54675ec7f", + "e13c8889-9d3c-4ea4-8d80-6a2139ea384b", + "664499b9-c892-4324-aab4-24f7c8992dd4", + "69fe0163-5011-4cbc-8b68-408ebb0a8b33" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5305, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "86beb3d9-e427-4cb2-aa3f-cc76976bb710", + "title": "Choose the position of the year at the beginning and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the beginning and check it should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 3765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToInvoicesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c46088ee-1ae9-486e-81b8-4a0482271d25", + "parentUUID": "86beb3d9-e427-4cb2-aa3f-cc76976bb710", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Before the sequential number'", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the beginning and check it should choose 'Before the sequential number'", + "timedOut": false, + "duration": 350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_changeCurrentYearPositionToBeginning\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeCurrentYearPositionToBeginning', baseContext)];\n case 1:\n _a.sent();\n // Choose the option 'Before the sequential number' (ID = 1)\n return [4 /*yield*/, invoices_1.default.chooseInvoiceOptionsYearPosition(page, 1)];\n case 2:\n // Choose the option 'Before the sequential number' (ID = 1)\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e25e1906-1488-4f0b-96ce-8b8bf3e91c66", + "parentUUID": "86beb3d9-e427-4cb2-aa3f-cc76976bb710", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the beginning and check it should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bac62e7d-d16e-40ac-b5be-9d1ceb2b8e6b", + "parentUUID": "86beb3d9-e427-4cb2-aa3f-cc76976bb710", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the beginning and check it should go to the first order page", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8efc728-6b11-476f-b0bf-fe1bdaa1de47", + "parentUUID": "86beb3d9-e427-4cb2-aa3f-cc76976bb710", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice file name contain current year at the beginning", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Enable add current year to invoice number then check the invoice file name Choose the position of the year at the beginning and check it should check that the invoice file name contain current year at the beginning", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_checkCurrentYearAtTheBeginningOfFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCurrentYearAtTheBeginningOfFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.startWith(\"IN\".concat(currentYear));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32189f87-21dd-4772-8003-875fc31f0e8d", + "parentUUID": "86beb3d9-e427-4cb2-aa3f-cc76976bb710", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c46088ee-1ae9-486e-81b8-4a0482271d25", + "e25e1906-1488-4f0b-96ce-8b8bf3e91c66", + "bac62e7d-d16e-40ac-b5be-9d1ceb2b8e6b", + "b8efc728-6b11-476f-b0bf-fe1bdaa1de47", + "32189f87-21dd-4772-8003-875fc31f0e8d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9013, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "cd04fbee-4ed3-46a7-a5fb-0ab7e6e14484", + "9e0790e6-67dd-44db-9bca-f50dba20f0ab" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5229, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5bba4e07-2088-49a8-8ac0-d8f74094a758", + "title": "Disable add current year to invoice number then check the invoice file name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Disable add current year to invoice number then check the invoice file name should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 3769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToInvoicesPageToDisableCurrentYear\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPageToDisableCurrentYear', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30c87411-ae96-436b-b62a-d116a7907919", + "parentUUID": "5bba4e07-2088-49a8-8ac0-d8f74094a758", + "isHook": false, + "skipped": false + }, + { + "title": "should disable add current year to invoice number", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Disable add current year to invoice number then check the invoice file name should disable add current year to invoice number", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_disableCurrentYear\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableCurrentYear', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.enableAddCurrentYearToInvoice(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61e128f8-ceab-4ea9-b44e-3fe1c60cff32", + "parentUUID": "5bba4e07-2088-49a8-8ac0-d8f74094a758", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7b9d8f11-99e3-4486-b81d-0e3e56c8c10d", + "title": "Check the invoice file Name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/05_enableDisableCurrentYear.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Disable add current year to invoice number then check the invoice file name Check the invoice file Name should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToOrdersPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "688ff640-7b74-4989-a34c-e293123fca69", + "parentUUID": "7b9d8f11-99e3-4486-b81d-0e3e56c8c10d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Disable add current year to invoice number then check the invoice file name Check the invoice file Name should go to the first order page", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_goToFirstOrderPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "241d43a7-4106-4641-82bb-4e5ab6e2ecbd", + "parentUUID": "7b9d8f11-99e3-4486-b81d-0e3e56c8c10d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice file name does not contain the current year", + "fullTitle": "BO - Orders - Invoices : Enable/Disable current year Disable add current year to invoice number then check the invoice file name Check the invoice file Name should check that the invoice file name does not contain the current year", + "timedOut": false, + "duration": 265, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_enableDisableCurrentYear_checkDisabledCurrentYear\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDisabledCurrentYear', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.not.contains(currentYear);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cc6a397-1900-4c82-9bf3-9de5a5b8a651", + "parentUUID": "7b9d8f11-99e3-4486-b81d-0e3e56c8c10d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "688ff640-7b74-4989-a34c-e293123fca69", + "241d43a7-4106-4641-82bb-4e5ab6e2ecbd", + "6cc6a397-1900-4c82-9bf3-9de5a5b8a651" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4917, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "30c87411-ae96-436b-b62a-d116a7907919", + "61e128f8-ceab-4ea9-b44e-3fe1c60cff32" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4124, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "02093ae4-e042-4199-b197-7b32dc2233b6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1715, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c4dac7f7-ae37-4ed6-a578-1d4334693f6a", + "title": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text'\"", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' \"before all\" hook in \"BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00e4c27e-6b9d-426d-a09a-ca07ac943865", + "parentUUID": "c4dac7f7-ae37-4ed6-a578-1d4334693f6a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text'\"", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' \"after all\" hook in \"BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: \n // Delete the invoice file\n return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n // Delete the invoice file\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7f767981-c6c4-4b10-9e98-c6b7b7746ca3", + "parentUUID": "c4dac7f7-ae37-4ed6-a578-1d4334693f6a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bdd7aa3-f13c-4c20-b9f2-84f2f214649b", + "parentUUID": "c4dac7f7-ae37-4ed6-a578-1d4334693f6a", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43bc98b0-aecf-4d98-8fad-9d8f0b6e00bc", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "73bf2e87-0985-4fb3-9452-84b6384f6c5a", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0126b39e-6e7a-427a-a0a1-03b1dafb6f48", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39abb5a6-01fe-4905-ba8f-9b1298ef82cf", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 540, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ded7317f-a1ac-41cf-9e71-2e16baaec10a", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f066cefe-4411-4b9a-954a-f46ec37ae762", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 994, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f970be8e-8596-428c-8012-9569520154da", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b6a491e-8191-4e33-a8d9-0f948270525b", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1519, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fd5fc36-c4f7-4d5d-bc65-5d5865eaa3c1", + "parentUUID": "f4a64d2d-48bf-45ef-883b-e3f18e927759", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0126b39e-6e7a-427a-a0a1-03b1dafb6f48", + "39abb5a6-01fe-4905-ba8f-9b1298ef82cf", + "ded7317f-a1ac-41cf-9e71-2e16baaec10a", + "f066cefe-4411-4b9a-954a-f46ec37ae762", + "f970be8e-8596-428c-8012-9569520154da", + "1b6a491e-8191-4e33-a8d9-0f948270525b", + "3fd5fc36-c4f7-4d5d-bc65-5d5865eaa3c1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13030, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b03ccd2b-2d2e-4d03-8a0e-5807e0d0dc0c", + "title": "Update the Invoice number, Legal free text and Footer text", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Update the Invoice number, Legal free text and Footer text should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 4832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_goToInvoicesPageToEditOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPageToEditOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a66a56da-cd26-45f5-b8ad-5cf5750bf573", + "parentUUID": "b03ccd2b-2d2e-4d03-8a0e-5807e0d0dc0c", + "isHook": false, + "skipped": false + }, + { + "title": "should change the invoice number, the invoice legal free text and the invoice footer text", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Update the Invoice number, Legal free text and Footer text should change the invoice number, the invoice legal free text and the invoice footer text", + "timedOut": false, + "duration": 452, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_updateOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.setInputOptions(page, invoiceData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "093d9459-84eb-4e87-8a33-99a779bcb950", + "parentUUID": "b03ccd2b-2d2e-4d03-8a0e-5807e0d0dc0c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a66a56da-cd26-45f5-b8ad-5cf5750bf573", + "093d9459-84eb-4e87-8a33-99a779bcb950" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5284, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a2c9deb2-087a-4278-a1d6-62238b781aeb", + "title": "Create an invoice and check the updated data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Create an invoice and check the updated data should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_goToOrdersPageUpdatedOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageUpdatedOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cbf4e7d-0335-40d8-bacd-48861b336cda", + "parentUUID": "a2c9deb2-087a-4278-a1d6-62238b781aeb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Create an invoice and check the updated data should go to the first order page", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_goToFirstOrderPageUpdatedOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPageUpdatedOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec91c759-a5f1-42ce-bb4e-cee19576add0", + "parentUUID": "a2c9deb2-087a-4278-a1d6-62238b781aeb", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped'", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Create an invoice and check the updated data should change the order status to 'Shipped'", + "timedOut": false, + "duration": 1240, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_updateStatusUpdatedOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateStatusUpdatedOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e728702-713e-48d0-baf8-e4c941ef6479", + "parentUUID": "a2c9deb2-087a-4278-a1d6-62238b781aeb", + "isHook": false, + "skipped": false + }, + { + "title": "should download the invoice", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Create an invoice and check the updated data should download the invoice", + "timedOut": false, + "duration": 472, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_downloadInvoiceUpdatedOptions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadInvoiceUpdatedOptions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadInvoice(page)];\n case 2:\n // Download invoice\n filePath = _a.sent();\n (0, chai_1.expect)(filePath).to.not.eq(null);\n if (!filePath) return [3 /*break*/, 4];\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a171181-85c2-4f10-86ba-d4573929f8b6", + "parentUUID": "a2c9deb2-087a-4278-a1d6-62238b781aeb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice file name contain the 'Invoice number'", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Create an invoice and check the updated data should check that the invoice file name contain the 'Invoice number'", + "timedOut": false, + "duration": 48, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_checkUpdatedInvoiceNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedInvoiceNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n // Get file name\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.contains(invoiceData.invoiceNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51dbe689-d9d8-4c82-b3e7-dba4dca61b52", + "parentUUID": "a2c9deb2-087a-4278-a1d6-62238b781aeb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice contain the 'Legal free text'", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Create an invoice and check the updated data should check that the invoice contain the 'Legal free text'", + "timedOut": false, + "duration": 387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_checkUpdatedLegalFreeText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedLegalFreeText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, invoiceData.legalFreeText)];\n case 2:\n exist = _a.sent();\n (0, chai_1.expect)(exist, \"PDF does not contains this text : \".concat(invoiceData.legalFreeText)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0cec276-c39b-4d0e-94fc-65aae9eb56db", + "parentUUID": "a2c9deb2-087a-4278-a1d6-62238b781aeb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice contain the 'Footer text'", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Create an invoice and check the updated data should check that the invoice contain the 'Footer text'", + "timedOut": false, + "duration": 312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_checkUpdatedFooterText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedFooterText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, invoiceData.footerText)];\n case 2:\n exist = _a.sent();\n (0, chai_1.expect)(exist, \"PDF does not contains this text : \".concat(invoiceData.footerText)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a2425af-956e-4cb6-af2a-5bbc651c90dd", + "parentUUID": "a2c9deb2-087a-4278-a1d6-62238b781aeb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6cbf4e7d-0335-40d8-bacd-48861b336cda", + "ec91c759-a5f1-42ce-bb4e-cee19576add0", + "8e728702-713e-48d0-baf8-e4c941ef6479", + "2a171181-85c2-4f10-86ba-d4573929f8b6", + "51dbe689-d9d8-4c82-b3e7-dba4dca61b52", + "f0cec276-c39b-4d0e-94fc-65aae9eb56db", + "8a2425af-956e-4cb6-af2a-5bbc651c90dd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7144, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "411f6899-6e1a-412a-a17d-8a1f1b59a4d7", + "title": "Back to the default data value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "file": "/campaigns/functional/BO/02_orders/02_invoices/03_invoiceOptions/06_otherOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Invoices' page", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Back to the default data value should go to 'Orders > Invoices' page", + "timedOut": false, + "duration": 3774, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_goToInvoicesPageForDefaultData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInvoicesPageForDefaultData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.invoicesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(invoices_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af5ad061-ade0-4cc5-8be7-ce8207a8e8fb", + "parentUUID": "411f6899-6e1a-412a-a17d-8a1f1b59a4d7", + "isHook": false, + "skipped": false + }, + { + "title": "should change the Invoice number, legal free text and the footer text to default data", + "fullTitle": "BO - Orders - Invoices : Update 'Invoice number, Legal free text and Footer text' Back to the default data value should change the Invoice number, legal free text and the footer text to default data", + "timedOut": false, + "duration": 408, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_invoices_invoiceOptions_otherOptions_backToDefaultData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToDefaultData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.setInputOptions(page, invoiceDefaultData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.saveInvoiceOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(invoices_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c9553c4-d960-4db0-8988-616a1c0cc144", + "parentUUID": "411f6899-6e1a-412a-a17d-8a1f1b59a4d7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "af5ad061-ade0-4cc5-8be7-ce8207a8e8fb", + "2c9553c4-d960-4db0-8988-616a1c0cc144" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4182, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "0bdd7aa3-f13c-4c20-b9f2-84f2f214649b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1727, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "d45ad1de-da9c-4ef5-9ade-11175f934e58", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 435, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21abb4be-df63-4199-b25e-731e4fb74a27", + "parentUUID": "d45ad1de-da9c-4ef5-9ade-11175f934e58", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "260feae6-62f0-4b7a-84fb-908c9c60efdc", + "parentUUID": "d45ad1de-da9c-4ef5-9ade-11175f934e58", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90b84e10-bea2-4ddf-b952-ae381ef49528", + "parentUUID": "d45ad1de-da9c-4ef5-9ade-11175f934e58", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b32422ce-dfb7-4578-b982-a8a0cab2e4c7", + "title": "BO - Orders - Credit slips : Create, filter and check credit slips file", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Credit slips : Create, filter and check credit slips file\"", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file \"before all\" hook in \"BO - Orders - Credit slips : Create, filter and check credit slips file\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e564822-bc5b-4a1b-91a8-26b2c55a020e", + "parentUUID": "b32422ce-dfb7-4578-b982-a8a0cab2e4c7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Credit slips : Create, filter and check credit slips file\"", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file \"after all\" hook in \"BO - Orders - Credit slips : Create, filter and check credit slips file\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "862d9e25-1020-41a4-b21c-ba0f8e689b29", + "parentUUID": "b32422ce-dfb7-4578-b982-a8a0cab2e4c7", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8df8eb07-eaa2-4a36-a37b-252f493ba310", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9c70ed5b-bed9-403b-ae13-900a38effe9a", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3aa4a44d-d26f-4597-a157-d08cf30e761c", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4375f4e-1eb6-4c52-aa1e-709eee6b851b", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44e30cf5-40ff-4b61-896b-fe6e4c6777db", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7496, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85fad1fb-df7f-466d-8fc8-a4345622b84f", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1164, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6653aa70-5fe1-4862-b3d0-1e562236f696", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 339, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a4a2fb7-65ea-46aa-ae5b-917964fdbd4b", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1640, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21f30252-dc4b-4657-93c4-9efb8b97b00b", + "parentUUID": "3e914ee5-95ec-4b37-a190-d1ee9d928995", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3aa4a44d-d26f-4597-a157-d08cf30e761c", + "d4375f4e-1eb6-4c52-aa1e-709eee6b851b", + "44e30cf5-40ff-4b61-896b-fe6e4c6777db", + "85fad1fb-df7f-466d-8fc8-a4345622b84f", + "6653aa70-5fe1-4862-b3d0-1e562236f696", + "1a4a2fb7-65ea-46aa-ae5b-917964fdbd4b", + "21f30252-dc4b-4657-93c4-9efb8b97b00b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13914, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "title": "Create 2 credit slips for the same order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Create 2 credit slips for the same order should login in BO", + "timedOut": false, + "duration": 6650, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "debd87ef-e370-40bd-ab21-b3244fb98d7b", + "parentUUID": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Create 2 credit slips for the same order should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4471, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8eda5819-b1e1-411d-9e25-6253925a7412", + "parentUUID": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Create 2 credit slips for the same order should go to the first order page", + "timedOut": false, + "duration": 1138, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_goToCreatedOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreatedOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d43d303-1e83-4f6b-997b-d096aa52eb47", + "parentUUID": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Create 2 credit slips for the same order should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1394, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_updateCreatedOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCreatedOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "718f9f93-48be-4de6-9c90-46e8ddd375ad", + "parentUUID": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "isHook": false, + "skipped": false + }, + { + "title": "should create the partial refund n°1", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Create 2 credit slips for the same order should create the partial refund n°1", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_addPartialRefund1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, test.args.productID, test.args.quantity)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67117471-c9db-4f87-9d5c-6fe3f78d611d", + "parentUUID": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Create 2 credit slips for the same order should check the existence of the Credit slip document", + "timedOut": false, + "duration": 253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_checkCreditSlipDocument1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocument\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, test.args.documentRow)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Credit slip');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f6fa1de-8317-4242-bb1d-fd12bd248683", + "parentUUID": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "isHook": false, + "skipped": false + }, + { + "title": "should create the partial refund n°2", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Create 2 credit slips for the same order should create the partial refund n°2", + "timedOut": false, + "duration": 1364, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_addPartialRefund2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, test.args.productID, test.args.quantity)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "579cf7a7-043d-48cb-88be-2c0766e9de8f", + "parentUUID": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Create 2 credit slips for the same order should check the existence of the Credit slip document", + "timedOut": false, + "duration": 237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_checkCreditSlipDocument2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocument\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, test.args.documentRow)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Credit slip');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21a01760-3e45-4120-8bcd-854ce5eb3461", + "parentUUID": "ba85f702-8db9-40f8-a3e1-2253a366b8ce", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "debd87ef-e370-40bd-ab21-b3244fb98d7b", + "8eda5819-b1e1-411d-9e25-6253925a7412", + "9d43d303-1e83-4f6b-997b-d096aa52eb47", + "718f9f93-48be-4de6-9c90-46e8ddd375ad", + "67117471-c9db-4f87-9d5c-6fe3f78d611d", + "8f6fa1de-8317-4242-bb1d-fd12bd248683", + "579cf7a7-043d-48cb-88be-2c0766e9de8f", + "21a01760-3e45-4120-8bcd-854ce5eb3461" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16384, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "462fce33-5be9-4130-b529-fcec1b453681", + "title": "Filter Credit slips", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Credit slips page", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Filter Credit slips should go to Credit slips page", + "timedOut": false, + "duration": 5081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_goToCreditSlipsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreditSlipsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.creditSlipsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(creditSlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc37d59e-d72f-4554-9efa-a239d51f7882", + "parentUUID": "462fce33-5be9-4130-b529-fcec1b453681", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of credit slips", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Filter Credit slips should reset all filters and get number of credit slips", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCreditSlips = _a.sent();\n (0, chai_1.expect)(numberOfCreditSlips).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0c0233a-03b1-4116-a059-2c489816dad9", + "parentUUID": "462fce33-5be9-4130-b529-fcec1b453681", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by id_credit_slip '1'", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Filter Credit slips should filter by id_credit_slip '1'", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_filterIdCreditSlip\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCreditSlipsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.filterCreditSlips(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCreditSlipsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCreditSlipsAfterFilter).to.be.at.most(numberOfCreditSlips);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCreditSlipsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, creditSlips_1.default.getTextColumnFromTableCreditSlips(page, i, test.args.columnName)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "004e9dae-c07f-4255-98f2-2ae00defe68a", + "parentUUID": "462fce33-5be9-4130-b529-fcec1b453681", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Filter Credit slips should reset all filters", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_filterIdCreditSlipReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCreditSlipsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCreditSlipsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCreditSlipsAfterReset).to.be.equal(numberOfCreditSlips);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d729c3b5-149b-4762-b755-b5cc5a6eead5", + "parentUUID": "462fce33-5be9-4130-b529-fcec1b453681", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by id_order '4'", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Filter Credit slips should filter by id_order '4'", + "timedOut": false, + "duration": 906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_filterIdOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCreditSlipsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.filterCreditSlips(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCreditSlipsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCreditSlipsAfterFilter).to.be.at.most(numberOfCreditSlips);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCreditSlipsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, creditSlips_1.default.getTextColumnFromTableCreditSlips(page, i, test.args.columnName)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54dc52b9-3fae-4fb5-a994-19c173abf74b", + "parentUUID": "462fce33-5be9-4130-b529-fcec1b453681", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Filter Credit slips should reset all filters", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_filterIdOrderReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCreditSlipsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCreditSlipsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCreditSlipsAfterReset).to.be.equal(numberOfCreditSlips);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e7ed9d9-7857-4667-99d1-c71a0289d290", + "parentUUID": "462fce33-5be9-4130-b529-fcec1b453681", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Date issued 'From' and 'To'", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Filter Credit slips should filter by Date issued 'From' and 'To'", + "timedOut": false, + "duration": 988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_filterDateIssued\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCreditSlipsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterDateIssued', baseContext)];\n case 1:\n _a.sent();\n // Filter credit slips\n return [4 /*yield*/, creditSlips_1.default.filterCreditSlipsByDate(page, todayDate, todayDate)];\n case 2:\n // Filter credit slips\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCreditSlipsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCreditSlipsAfterFilter).to.be.at.most(numberOfCreditSlips);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCreditSlipsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, creditSlips_1.default.getTextColumnFromTableCreditSlips(page, i, 'date_add')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(todayDateToCheck);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fdae99a-273b-408d-920d-d6a279b99c13", + "parentUUID": "462fce33-5be9-4130-b529-fcec1b453681", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Filter Credit slips should reset all filters", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_filterDateIssuedReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCreditSlipsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterDateIssuedReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCreditSlipsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCreditSlipsAfterReset).to.be.equal(numberOfCreditSlips);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff4dc7d8-8bc4-4e8b-93a4-c85739c9ff9e", + "parentUUID": "462fce33-5be9-4130-b529-fcec1b453681", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cc37d59e-d72f-4554-9efa-a239d51f7882", + "d0c0233a-03b1-4116-a059-2c489816dad9", + "004e9dae-c07f-4255-98f2-2ae00defe68a", + "d729c3b5-149b-4762-b755-b5cc5a6eead5", + "54dc52b9-3fae-4fb5-a994-19c173abf74b", + "1e7ed9d9-7857-4667-99d1-c71a0289d290", + "3fdae99a-273b-408d-920d-d6a279b99c13", + "ff4dc7d8-8bc4-4e8b-93a4-c85739c9ff9e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10937, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "05bba445-01b1-4cdd-aaa3-353d75054b95", + "title": "Download the first Credit slips and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter credit slip by id '1'", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Download the first Credit slips and check it should filter credit slip by id '1'", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_filterToDownloadfirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDownload\".concat(creditSlip.args.number), baseContext)];\n case 1:\n _a.sent();\n // Filter credit slips\n return [4 /*yield*/, creditSlips_1.default.filterCreditSlips(page, 'id_credit_slip', creditSlip.args.id)];\n case 2:\n // Filter credit slips\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getTextColumnFromTableCreditSlips(page, 1, 'id_order_slip')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(creditSlip.args.id);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c1b9b0f-d523-4fd9-947b-c9ccf76b711d", + "parentUUID": "05bba445-01b1-4cdd-aaa3-353d75054b95", + "isHook": false, + "skipped": false + }, + { + "title": "should download the first credit slip and check the file existence", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Download the first Credit slips and check it should download the first credit slip and check the file existence", + "timedOut": false, + "duration": 361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_downloadfirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var filePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"download\".concat(creditSlip.args.number), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.downloadCreditSlip(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dd83c0f-169e-498f-b820-b9d50db3b870", + "parentUUID": "05bba445-01b1-4cdd-aaa3-353d75054b95", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c1b9b0f-d523-4fd9-947b-c9ccf76b711d", + "3dd83c0f-169e-498f-b820-b9d50db3b870" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1249, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d5545737-d173-4d7d-b492-508c273e03de", + "title": "Download the second Credit slips and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/01_createFilterCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter credit slip by id '2'", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Download the second Credit slips and check it should filter credit slip by id '2'", + "timedOut": false, + "duration": 980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_filterToDownloadsecond\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDownload\".concat(creditSlip.args.number), baseContext)];\n case 1:\n _a.sent();\n // Filter credit slips\n return [4 /*yield*/, creditSlips_1.default.filterCreditSlips(page, 'id_credit_slip', creditSlip.args.id)];\n case 2:\n // Filter credit slips\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getTextColumnFromTableCreditSlips(page, 1, 'id_order_slip')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(creditSlip.args.id);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eeb416d7-c3ca-4c93-8b1d-54c944e1663a", + "parentUUID": "d5545737-d173-4d7d-b492-508c273e03de", + "isHook": false, + "skipped": false + }, + { + "title": "should download the second credit slip and check the file existence", + "fullTitle": "BO - Orders - Credit slips : Create, filter and check credit slips file Download the second Credit slips and check it should download the second credit slip and check the file existence", + "timedOut": false, + "duration": 263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_createFilterCreditSlips_downloadsecond\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var filePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"download\".concat(creditSlip.args.number), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.downloadCreditSlip(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26d947a6-4985-446f-9f61-76545778e75d", + "parentUUID": "d5545737-d173-4d7d-b492-508c273e03de", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eeb416d7-c3ca-4c93-8b1d-54c944e1663a", + "26d947a6-4985-446f-9f61-76545778e75d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1243, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cc79bb57-99e3-43a6-971b-cf58e84f93e5", + "title": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips \"before all\" hook in \"BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d212361-41ff-4d28-ace5-95faa7edb5c0", + "parentUUID": "cc79bb57-99e3-43a6-971b-cf58e84f93e5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips \"after all\" hook in \"BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "35fb27c7-02db-4747-8d19-0a8800e76923", + "parentUUID": "cc79bb57-99e3-43a6-971b-cf58e84f93e5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips should login in BO", + "timedOut": false, + "duration": 1873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11f8740f-af72-4e7a-b09e-f1902b80ad08", + "parentUUID": "cc79bb57-99e3-43a6-971b-cf58e84f93e5", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8af23ed0-f26e-4a41-a355-79829e61e91b", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0a5f3c61-72df-4d3f-835c-6d44b1b839f2", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32472e6e-a41c-46cd-a948-b649eea66b16", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "317dc682-889f-4e58-ab32-d8ca734ae6ee", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 538, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "185cfaa3-d63c-4c4a-afd1-918df11d5f5e", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c578df54-1a15-4aef-a08b-8e13156091c7", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a8b22ae-c593-4439-84c5-44e8d070f4b1", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13edc994-6612-4350-a1af-bbdb3fba7133", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1574, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed680ef0-1476-4cdf-ab08-9eef4794aeba", + "parentUUID": "69729d03-2c1d-4578-9edd-b2027fb8f197", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "32472e6e-a41c-46cd-a948-b649eea66b16", + "317dc682-889f-4e58-ab32-d8ca734ae6ee", + "185cfaa3-d63c-4c4a-afd1-918df11d5f5e", + "c578df54-1a15-4aef-a08b-8e13156091c7", + "5a8b22ae-c593-4439-84c5-44e8d070f4b1", + "13edc994-6612-4350-a1af-bbdb3fba7133", + "ed680ef0-1476-4cdf-ab08-9eef4794aeba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13261, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "57edfd7a-00d4-4e9b-ab50-67a18dc72b42", + "title": "Create Credit slip n°1", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°1 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_goToOrdersPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "915e1d4a-3948-466e-94d5-1fd7b3e0f4ad", + "parentUUID": "57edfd7a-00d4-4e9b-ab50-67a18dc72b42", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°1 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_updateCreatedOrderStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58f67f71-8412-460a-9eb1-e921ce7c7014", + "parentUUID": "57edfd7a-00d4-4e9b-ab50-67a18dc72b42", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°1 should go to the first order page", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_goToCreatedOrderPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d923a93c-c21d-4e6b-9177-ed49aa258874", + "parentUUID": "57edfd7a-00d4-4e9b-ab50-67a18dc72b42", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°1 should add a partial refund", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_addPartialRefund0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16d6cea7-5a3d-4847-9d31-438941431e56", + "parentUUID": "57edfd7a-00d4-4e9b-ab50-67a18dc72b42", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°1 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_0_checkCreditSlipDocumentName0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abf273a4-7a02-4364-94d1-2fbd9f20c831", + "parentUUID": "57edfd7a-00d4-4e9b-ab50-67a18dc72b42", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "915e1d4a-3948-466e-94d5-1fd7b3e0f4ad", + "58f67f71-8412-460a-9eb1-e921ce7c7014", + "d923a93c-c21d-4e6b-9177-ed49aa258874", + "16d6cea7-5a3d-4847-9d31-438941431e56", + "abf273a4-7a02-4364-94d1-2fbd9f20c831" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7264, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ed8590b-076e-4e2b-a18b-9ce1cb0eb711", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ee5a7f50-0687-4483-b042-420f79928eec", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0d364ab-2b0a-48b7-87f1-29f527751bad", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d6d21c3-ecd2-482b-8af8-728c5f946a10", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 550, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fed927c-3b6b-4011-9102-34d3bc2880ec", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7276, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e007b004-85be-41d3-bfc0-1c5a00efcbff", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eac7987-d603-48c8-971c-44d93d990b40", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df4461c3-1eb5-48b9-8495-9a794c0ec09d", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1582, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a9d3374-1a1a-4584-b339-a61025edf790", + "parentUUID": "4ffc6f13-cba7-4ceb-b026-b575508d41ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b0d364ab-2b0a-48b7-87f1-29f527751bad", + "8d6d21c3-ecd2-482b-8af8-728c5f946a10", + "2fed927c-3b6b-4011-9102-34d3bc2880ec", + "e007b004-85be-41d3-bfc0-1c5a00efcbff", + "3eac7987-d603-48c8-971c-44d93d990b40", + "df4461c3-1eb5-48b9-8495-9a794c0ec09d", + "0a9d3374-1a1a-4584-b339-a61025edf790" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13233, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7371b6ee-167e-4594-9bf4-bc1f29ed6e82", + "title": "Create Credit slip n°2", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°2 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3a02fc3-6747-48aa-8221-713282efdbf0", + "parentUUID": "7371b6ee-167e-4594-9bf4-bc1f29ed6e82", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°2 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1276, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_updateCreatedOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5477a99e-9f8a-4b26-8094-513fdf403400", + "parentUUID": "7371b6ee-167e-4594-9bf4-bc1f29ed6e82", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°2 should go to the first order page", + "timedOut": false, + "duration": 892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_goToCreatedOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82b94f37-d0f0-44bf-b48b-6f8f57012cb6", + "parentUUID": "7371b6ee-167e-4594-9bf4-bc1f29ed6e82", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°2 should add a partial refund", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_addPartialRefund1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08a4393b-4fda-4d11-b2e8-2b685aaa5d87", + "parentUUID": "7371b6ee-167e-4594-9bf4-bc1f29ed6e82", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°2 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_1_checkCreditSlipDocumentName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c726670-9a13-4fc2-9c7e-3c8ee04ffcf3", + "parentUUID": "7371b6ee-167e-4594-9bf4-bc1f29ed6e82", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b3a02fc3-6747-48aa-8221-713282efdbf0", + "5477a99e-9f8a-4b26-8094-513fdf403400", + "82b94f37-d0f0-44bf-b48b-6f8f57012cb6", + "08a4393b-4fda-4d11-b2e8-2b685aaa5d87", + "9c726670-9a13-4fc2-9c7e-3c8ee04ffcf3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7189, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6dc02c4-9113-4163-a611-cb9d3c2e2a9c", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "954a68ec-e5a7-4a00-8de3-f08256c5eb57", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "874ee204-9d0c-436e-a1f1-37930a824ee9", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f8383c0-5e9b-47a9-92fc-b5779a1d1545", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 532, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1896ca29-ce68-4859-9a74-388cd9c66de5", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cf8d6e3-415f-4441-8399-af06053b470a", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e6c3f3f-7fa1-432e-9b6b-f974f804120d", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de6eb760-d340-448f-b8c0-7047bdff33b7", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1555, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e63e4ae-7aa0-420a-9349-6b75132fdd69", + "parentUUID": "55b2c3cb-d79a-4524-94fe-578bf96f7522", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "874ee204-9d0c-436e-a1f1-37930a824ee9", + "1f8383c0-5e9b-47a9-92fc-b5779a1d1545", + "1896ca29-ce68-4859-9a74-388cd9c66de5", + "5cf8d6e3-415f-4441-8399-af06053b470a", + "9e6c3f3f-7fa1-432e-9b6b-f974f804120d", + "de6eb760-d340-448f-b8c0-7047bdff33b7", + "6e63e4ae-7aa0-420a-9349-6b75132fdd69" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13134, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "58ba3842-51e0-42c2-9439-c16437d70030", + "title": "Create Credit slip n°3", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°3 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d5ba510-68da-4ea5-a015-51155a2bfdc8", + "parentUUID": "58ba3842-51e0-42c2-9439-c16437d70030", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°3 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_updateCreatedOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "583e17d1-42b0-4db8-b817-62dbc645f99d", + "parentUUID": "58ba3842-51e0-42c2-9439-c16437d70030", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°3 should go to the first order page", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_goToCreatedOrderPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67697d25-37d7-4dd8-9762-f6893a99417c", + "parentUUID": "58ba3842-51e0-42c2-9439-c16437d70030", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°3 should add a partial refund", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_addPartialRefund2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dc63e6a-7440-45d2-bff5-2cc2142d1dc7", + "parentUUID": "58ba3842-51e0-42c2-9439-c16437d70030", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°3 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_2_checkCreditSlipDocumentName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83c814df-2fda-43a9-a195-28586ff1a28a", + "parentUUID": "58ba3842-51e0-42c2-9439-c16437d70030", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8d5ba510-68da-4ea5-a015-51155a2bfdc8", + "583e17d1-42b0-4db8-b817-62dbc645f99d", + "67697d25-37d7-4dd8-9762-f6893a99417c", + "1dc63e6a-7440-45d2-bff5-2cc2142d1dc7", + "83c814df-2fda-43a9-a195-28586ff1a28a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7224, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7f1a132-5096-4fd9-8adf-1fc4052452af", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e73581ba-de1a-419c-ad10-ef157f28b44f", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ae69fe2-3775-4538-8762-7e84c6641e9c", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "469cce56-f36a-41a3-9384-34aca1f5bd5d", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 552, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f35107f9-8536-4f0f-a50c-57d086d858b2", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7272, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57c0059f-b864-4ff4-a7d1-0285ff5dc42a", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24b5c655-61a7-4596-a54b-a228d8ac8b2d", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d73a722c-3f81-4856-9abe-87ec3e8811bc", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1555, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "500a6ba8-b7e8-43b6-8127-34b3bea22df8", + "parentUUID": "62f52db5-28a9-40e6-a53e-5745546fdbbb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ae69fe2-3775-4538-8762-7e84c6641e9c", + "469cce56-f36a-41a3-9384-34aca1f5bd5d", + "f35107f9-8536-4f0f-a50c-57d086d858b2", + "57c0059f-b864-4ff4-a7d1-0285ff5dc42a", + "24b5c655-61a7-4596-a54b-a228d8ac8b2d", + "d73a722c-3f81-4856-9abe-87ec3e8811bc", + "500a6ba8-b7e8-43b6-8127-34b3bea22df8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13212, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bdd1d3f8-2afa-4cd2-941f-fb7da0053849", + "title": "Create Credit slip n°4", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°4 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_goToOrdersPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f3d8c52-fbf9-4966-896b-b13103675e2a", + "parentUUID": "bdd1d3f8-2afa-4cd2-941f-fb7da0053849", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°4 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_updateCreatedOrderStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f04676dd-e3ec-4fbe-94aa-8142b9064887", + "parentUUID": "bdd1d3f8-2afa-4cd2-941f-fb7da0053849", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°4 should go to the first order page", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_goToCreatedOrderPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13bd5036-bf24-4b7c-8c89-a78d9637112e", + "parentUUID": "bdd1d3f8-2afa-4cd2-941f-fb7da0053849", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°4 should add a partial refund", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_addPartialRefund3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c37853f1-2412-4e9d-a873-88f07b6c6e8e", + "parentUUID": "bdd1d3f8-2afa-4cd2-941f-fb7da0053849", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°4 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 247, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_3_checkCreditSlipDocumentName3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1d8125d-2099-4d11-b82e-28e33254d62f", + "parentUUID": "bdd1d3f8-2afa-4cd2-941f-fb7da0053849", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2f3d8c52-fbf9-4966-896b-b13103675e2a", + "f04676dd-e3ec-4fbe-94aa-8142b9064887", + "13bd5036-bf24-4b7c-8c89-a78d9637112e", + "c37853f1-2412-4e9d-a873-88f07b6c6e8e", + "c1d8125d-2099-4d11-b82e-28e33254d62f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7299, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "debbb4fb-95fc-4cff-acec-b4287056d698", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b8936397-26d0-46bc-b2b5-6135c7de4209", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09ea78b7-e180-441f-9ec3-97156e28b193", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab93ef16-5f0c-442c-b326-f55ddc693b35", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 561, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d2c7c96-54fe-4776-8590-ab5998e0be14", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7305, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f07b656-bfad-4c94-ae8a-0309d6fd5229", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1049, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6c2549a-7796-4627-8fce-313e1c6e1f0e", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e42acb48-4d75-4630-871c-21c5269a6ca1", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1554, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a8df449-d378-4417-914c-ccd9fb8175b8", + "parentUUID": "7eb99ce7-67c9-4166-84eb-86257aab3d40", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "09ea78b7-e180-441f-9ec3-97156e28b193", + "ab93ef16-5f0c-442c-b326-f55ddc693b35", + "5d2c7c96-54fe-4776-8590-ab5998e0be14", + "2f07b656-bfad-4c94-ae8a-0309d6fd5229", + "e6c2549a-7796-4627-8fce-313e1c6e1f0e", + "e42acb48-4d75-4630-871c-21c5269a6ca1", + "8a8df449-d378-4417-914c-ccd9fb8175b8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13238, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9fbc6a57-802d-4158-b2dc-c7f04fcc7189", + "title": "Create Credit slip n°5", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°5 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3971, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_goToOrdersPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a233ddd-4011-458a-a5a7-4f73c6616c68", + "parentUUID": "9fbc6a57-802d-4158-b2dc-c7f04fcc7189", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°5 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_updateCreatedOrderStatus4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7a2eef6-f320-41e2-9af1-db540a77dabc", + "parentUUID": "9fbc6a57-802d-4158-b2dc-c7f04fcc7189", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°5 should go to the first order page", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_goToCreatedOrderPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b59ee4ad-76fb-48b7-b916-930b42e245f0", + "parentUUID": "9fbc6a57-802d-4158-b2dc-c7f04fcc7189", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°5 should add a partial refund", + "timedOut": false, + "duration": 852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_addPartialRefund4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "473b0c5f-a537-47ec-b15d-ef9fdc14fc81", + "parentUUID": "9fbc6a57-802d-4158-b2dc-c7f04fcc7189", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°5 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_4_checkCreditSlipDocumentName4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f0078d8-0d63-43d9-8733-6ac3ce32f641", + "parentUUID": "9fbc6a57-802d-4158-b2dc-c7f04fcc7189", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6a233ddd-4011-458a-a5a7-4f73c6616c68", + "b7a2eef6-f320-41e2-9af1-db540a77dabc", + "b59ee4ad-76fb-48b7-b916-930b42e245f0", + "473b0c5f-a537-47ec-b15d-ef9fdc14fc81", + "8f0078d8-0d63-43d9-8733-6ac3ce32f641" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7269, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "37c2b476-93de-472e-aa1d-1074e14da67a", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19de00be-cba5-4c26-bb6d-e0cd665f41bc", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cc9042b6-cd2d-447e-ae0f-56aff3a535f0", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29382ac9-3115-47e5-8363-76f21380ad27", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c466d1c6-b441-44bd-a06c-6b1fdc38dc7c", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 542, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e3fc4bb-8666-4f53-8778-5eeb063c1aa0", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ddbe915-2f4e-4b1c-8578-bfa8eda0784f", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea104034-39c3-43ba-b399-941a8b9de432", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4171dcb5-ff14-4bdc-9024-2475ce388aa9", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1569, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1f5352f-d1fd-4a2b-aed4-96bd48e30898", + "parentUUID": "37c2b476-93de-472e-aa1d-1074e14da67a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "29382ac9-3115-47e5-8363-76f21380ad27", + "c466d1c6-b441-44bd-a06c-6b1fdc38dc7c", + "5e3fc4bb-8666-4f53-8778-5eeb063c1aa0", + "1ddbe915-2f4e-4b1c-8578-bfa8eda0784f", + "ea104034-39c3-43ba-b399-941a8b9de432", + "4171dcb5-ff14-4bdc-9024-2475ce388aa9", + "e1f5352f-d1fd-4a2b-aed4-96bd48e30898" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13179, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "17d1e9b6-bf38-41eb-baec-92d2d346da52", + "title": "Create Credit slip n°6", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°6 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_goToOrdersPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb51e34e-4555-46c7-a742-59d4434ed73f", + "parentUUID": "17d1e9b6-bf38-41eb-baec-92d2d346da52", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°6 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_updateCreatedOrderStatus5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e14aea4-18a6-4255-af95-d30af0e674cc", + "parentUUID": "17d1e9b6-bf38-41eb-baec-92d2d346da52", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°6 should go to the first order page", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_goToCreatedOrderPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8391551-e1db-4bec-976f-85a3691260ff", + "parentUUID": "17d1e9b6-bf38-41eb-baec-92d2d346da52", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°6 should add a partial refund", + "timedOut": false, + "duration": 884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_addPartialRefund5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c9de761-06de-46da-9f35-611f7af4cdf8", + "parentUUID": "17d1e9b6-bf38-41eb-baec-92d2d346da52", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°6 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 247, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_5_checkCreditSlipDocumentName5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f16d7997-0ac0-4c39-b5ac-e305b80eb371", + "parentUUID": "17d1e9b6-bf38-41eb-baec-92d2d346da52", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eb51e34e-4555-46c7-a742-59d4434ed73f", + "4e14aea4-18a6-4255-af95-d30af0e674cc", + "c8391551-e1db-4bec-976f-85a3691260ff", + "2c9de761-06de-46da-9f35-611f7af4cdf8", + "f16d7997-0ac0-4c39-b5ac-e305b80eb371" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7252, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ac44fe15-ff0d-4524-882e-911419df4b61", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b941fa2-2273-4360-9a9c-68eb6782c2f0", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cf8423ad-0715-472c-bdc5-29c5b833fb58", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c289781-5adb-4842-b8d2-b1679cd343c5", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4aac6a68-70d2-4a94-bec5-ec8f2e9fb8d2", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 543, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "715bb7d5-daa5-499d-b8c1-3a9f11cf1feb", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1285f34-5a9d-4fb2-ace7-14a4fb048af9", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f00b2bb0-2b3c-43bf-a46c-2da9a750125f", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6af17da-5a83-4be6-b819-20d240f791ef", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1553, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bb1f49d-f1b7-4de1-bc53-8b300be0b719", + "parentUUID": "ac44fe15-ff0d-4524-882e-911419df4b61", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3c289781-5adb-4842-b8d2-b1679cd343c5", + "4aac6a68-70d2-4a94-bec5-ec8f2e9fb8d2", + "715bb7d5-daa5-499d-b8c1-3a9f11cf1feb", + "d1285f34-5a9d-4fb2-ace7-14a4fb048af9", + "f00b2bb0-2b3c-43bf-a46c-2da9a750125f", + "d6af17da-5a83-4be6-b819-20d240f791ef", + "9bb1f49d-f1b7-4de1-bc53-8b300be0b719" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13206, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "49aec7ba-b1ab-4474-8082-ee664b1e910b", + "title": "Create Credit slip n°7", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°7 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_goToOrdersPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0f9b0ef-93d6-44a9-bd32-a83dbcf85b0c", + "parentUUID": "49aec7ba-b1ab-4474-8082-ee664b1e910b", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°7 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_updateCreatedOrderStatus6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c97b7c50-d357-4bcf-91b8-4ade3e7e97b6", + "parentUUID": "49aec7ba-b1ab-4474-8082-ee664b1e910b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°7 should go to the first order page", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_goToCreatedOrderPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "494d76f7-06f2-4bf9-9f92-0575d505dfc1", + "parentUUID": "49aec7ba-b1ab-4474-8082-ee664b1e910b", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°7 should add a partial refund", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_addPartialRefund6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdaaf5a5-ce7c-40b0-8ce9-3873b51edaff", + "parentUUID": "49aec7ba-b1ab-4474-8082-ee664b1e910b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°7 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_6_checkCreditSlipDocumentName6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae102f62-f0cd-4396-8163-a33e57a78c55", + "parentUUID": "49aec7ba-b1ab-4474-8082-ee664b1e910b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f0f9b0ef-93d6-44a9-bd32-a83dbcf85b0c", + "c97b7c50-d357-4bcf-91b8-4ade3e7e97b6", + "494d76f7-06f2-4bf9-9f92-0575d505dfc1", + "cdaaf5a5-ce7c-40b0-8ce9-3873b51edaff", + "ae102f62-f0cd-4396-8163-a33e57a78c55" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7116, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "35236aad-00a2-4201-a546-a7bec620825f", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a987d90-635b-47d1-b071-5ece0dfb7fcf", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3f849b47-8280-4b36-9732-c30c61f6358f", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9915d2a-05e6-4c41-b86d-1628b9c05974", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f615bac9-d530-40e8-b4e6-7eafe9367047", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 541, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19ff602f-f253-42fa-bb4d-1f0cce0018ca", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5acae2de-45ab-42dc-b482-9951af35b304", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa75706a-c378-4699-8c03-75d62a7b4f4e", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16f7b4d6-f01d-4c98-8fe7-41d3b4231da4", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1568, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7a239ec-84a7-4ed5-adf2-8a6e54a894a9", + "parentUUID": "35236aad-00a2-4201-a546-a7bec620825f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a9915d2a-05e6-4c41-b86d-1628b9c05974", + "f615bac9-d530-40e8-b4e6-7eafe9367047", + "19ff602f-f253-42fa-bb4d-1f0cce0018ca", + "5acae2de-45ab-42dc-b482-9951af35b304", + "aa75706a-c378-4699-8c03-75d62a7b4f4e", + "16f7b4d6-f01d-4c98-8fe7-41d3b4231da4", + "a7a239ec-84a7-4ed5-adf2-8a6e54a894a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13167, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4192d472-fc62-42b4-bcee-3e9aa0983109", + "title": "Create Credit slip n°8", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°8 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_goToOrdersPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8ad087f-c1bb-4389-89c1-3186e1745db0", + "parentUUID": "4192d472-fc62-42b4-bcee-3e9aa0983109", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°8 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_updateCreatedOrderStatus7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de680303-5475-4fbf-941a-8add593b9fcf", + "parentUUID": "4192d472-fc62-42b4-bcee-3e9aa0983109", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°8 should go to the first order page", + "timedOut": false, + "duration": 930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_goToCreatedOrderPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eec92090-c1a8-421e-82f9-ceb027bc19c4", + "parentUUID": "4192d472-fc62-42b4-bcee-3e9aa0983109", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°8 should add a partial refund", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_addPartialRefund7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "119ee219-189c-4099-a03b-0368f36199a4", + "parentUUID": "4192d472-fc62-42b4-bcee-3e9aa0983109", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°8 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_7_checkCreditSlipDocumentName7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3e40b50-6d3a-414c-b826-3ba7bceb589a", + "parentUUID": "4192d472-fc62-42b4-bcee-3e9aa0983109", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b8ad087f-c1bb-4389-89c1-3186e1745db0", + "de680303-5475-4fbf-941a-8add593b9fcf", + "eec92090-c1a8-421e-82f9-ceb027bc19c4", + "119ee219-189c-4099-a03b-0368f36199a4", + "a3e40b50-6d3a-414c-b826-3ba7bceb589a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7367, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "260dd544-516e-416a-8f0a-975fcf584584", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "931ede48-40ad-40db-a3ee-303ec96432cd", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "390b4df6-2d8b-4529-9a9e-2407b1209b62", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a84dc2bf-b362-4c59-83eb-727715826705", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 600, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bafe678-92b5-4568-af9d-3e55454fe5e4", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "661a7dab-30db-4c91-bcf8-af31c254c21f", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca59fa0c-72b0-4f67-bf49-ffbfb1f827e4", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a573967f-1ac1-4b75-9bc1-6f2da224a491", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1567, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e971f3d-3800-453b-b41e-6ec73004b8d1", + "parentUUID": "fa01a943-0f01-4c6f-91fd-d89d52d602c7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "390b4df6-2d8b-4529-9a9e-2407b1209b62", + "a84dc2bf-b362-4c59-83eb-727715826705", + "6bafe678-92b5-4568-af9d-3e55454fe5e4", + "661a7dab-30db-4c91-bcf8-af31c254c21f", + "ca59fa0c-72b0-4f67-bf49-ffbfb1f827e4", + "a573967f-1ac1-4b75-9bc1-6f2da224a491", + "0e971f3d-3800-453b-b41e-6ec73004b8d1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13264, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c9b11d2b-6ff1-4ed7-897b-7fc89d172f37", + "title": "Create Credit slip n°9", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°9 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_goToOrdersPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99439248-9977-4ac7-85f5-3175a7a54e41", + "parentUUID": "c9b11d2b-6ff1-4ed7-897b-7fc89d172f37", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°9 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_updateCreatedOrderStatus8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad3cef8f-88db-4dcd-8be7-d7a11de3df44", + "parentUUID": "c9b11d2b-6ff1-4ed7-897b-7fc89d172f37", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°9 should go to the first order page", + "timedOut": false, + "duration": 882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_goToCreatedOrderPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98b07186-32f7-4230-9c04-6a914c67b5a1", + "parentUUID": "c9b11d2b-6ff1-4ed7-897b-7fc89d172f37", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°9 should add a partial refund", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_addPartialRefund8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38668ac8-f3ff-4945-b850-b5ef91dcbef6", + "parentUUID": "c9b11d2b-6ff1-4ed7-897b-7fc89d172f37", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°9 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_8_checkCreditSlipDocumentName8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34fb1fd9-97ac-4aca-a4c2-68f2070b32c6", + "parentUUID": "c9b11d2b-6ff1-4ed7-897b-7fc89d172f37", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99439248-9977-4ac7-85f5-3175a7a54e41", + "ad3cef8f-88db-4dcd-8be7-d7a11de3df44", + "98b07186-32f7-4230-9c04-6a914c67b5a1", + "38668ac8-f3ff-4945-b850-b5ef91dcbef6", + "34fb1fd9-97ac-4aca-a4c2-68f2070b32c6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7091, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "873f06eb-d45a-4ee3-9cf6-c98c3f302946", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2edbb840-aa33-4114-b8f6-564d2e369feb", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d348a3f-be7e-4f9d-9c99-9453725f06d0", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5144902-614b-4864-829f-fd1834f68325", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 549, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dddd9a2-5d3c-4d3c-85b6-4a6cdb1a35e5", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "727cc1bd-50b1-4419-a2af-d874c7916bbe", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1031, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e672547d-e36b-471d-b25d-049da5b72cc3", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "239a3fe2-54bd-4664-9210-26d97b46bf16", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1555, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96c6653e-fbe7-41b9-83e5-1f5677ff202c", + "parentUUID": "bfe7a278-4c28-4c83-988f-06ee1dd9c1f5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3d348a3f-be7e-4f9d-9c99-9453725f06d0", + "d5144902-614b-4864-829f-fd1834f68325", + "2dddd9a2-5d3c-4d3c-85b6-4a6cdb1a35e5", + "727cc1bd-50b1-4419-a2af-d874c7916bbe", + "e672547d-e36b-471d-b25d-049da5b72cc3", + "239a3fe2-54bd-4664-9210-26d97b46bf16", + "96c6653e-fbe7-41b9-83e5-1f5677ff202c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13136, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8be122ae-84f4-4784-9c0d-2471eac4aadd", + "title": "Create Credit slip n°10", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°10 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3968, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_goToOrdersPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cd0b7a3-389f-4661-96ca-1f56d6a416db", + "parentUUID": "8be122ae-84f4-4784-9c0d-2471eac4aadd", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°10 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_updateCreatedOrderStatus9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48e5034d-6572-40d8-8bd9-575d4cc153bb", + "parentUUID": "8be122ae-84f4-4784-9c0d-2471eac4aadd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°10 should go to the first order page", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_goToCreatedOrderPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5c0e274-3ad9-4ed4-9e6d-32371e53a7bc", + "parentUUID": "8be122ae-84f4-4784-9c0d-2471eac4aadd", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°10 should add a partial refund", + "timedOut": false, + "duration": 883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_addPartialRefund9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d6232e0-7ee4-4b3a-8126-6589368d7d35", + "parentUUID": "8be122ae-84f4-4784-9c0d-2471eac4aadd", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°10 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_9_checkCreditSlipDocumentName9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f431868-2250-4e5f-a13e-eb1c1fb5aadf", + "parentUUID": "8be122ae-84f4-4784-9c0d-2471eac4aadd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1cd0b7a3-389f-4661-96ca-1f56d6a416db", + "48e5034d-6572-40d8-8bd9-575d4cc153bb", + "e5c0e274-3ad9-4ed4-9e6d-32371e53a7bc", + "0d6232e0-7ee4-4b3a-8126-6589368d7d35", + "3f431868-2250-4e5f-a13e-eb1c1fb5aadf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7311, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07e991c9-8902-468b-a7e5-2409f43a5ab2", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "28cc7245-c839-458e-b2b5-fbcbeff504be", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0ef7ebd-e211-4051-b80f-b7977051fea9", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c86d2d87-07a2-41af-9961-0471fb617626", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 550, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d4cbbfe-fbdd-4b9e-b145-2321d744bbb6", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "334f7993-17ed-48f2-b599-ea6a3b67b9ee", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9977c054-8261-410d-aabb-e1894bd0361e", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "395028ad-74af-4192-b8fd-6cf367d9bb88", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1560, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75b71a1d-df43-429f-a410-63846c9edbb1", + "parentUUID": "f6ec3a12-c31f-45fa-9b30-cae1340be2f9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b0ef7ebd-e211-4051-b80f-b7977051fea9", + "c86d2d87-07a2-41af-9961-0471fb617626", + "2d4cbbfe-fbdd-4b9e-b145-2321d744bbb6", + "334f7993-17ed-48f2-b599-ea6a3b67b9ee", + "9977c054-8261-410d-aabb-e1894bd0361e", + "395028ad-74af-4192-b8fd-6cf367d9bb88", + "75b71a1d-df43-429f-a410-63846c9edbb1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13167, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3cd66ce1-b20d-4558-993b-59b4306e4e59", + "title": "Create Credit slip n°11", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°11 should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 3887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_goToOrdersPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b9e71f4-0acf-4a3d-ae2d-1fe36677d34e", + "parentUUID": "3cd66ce1-b20d-4558-993b-59b4306e4e59", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°11 should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_updateCreatedOrderStatus10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateCreatedOrderStatus\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.shipped)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70b704f0-8cc9-4733-bec7-17a5021fa212", + "parentUUID": "3cd66ce1-b20d-4558-993b-59b4306e4e59", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°11 should go to the first order page", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_goToCreatedOrderPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52a9fc42-71e8-4cfd-86c1-52c1d410a6da", + "parentUUID": "3cd66ce1-b20d-4558-993b-59b4306e4e59", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°11 should add a partial refund", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_addPartialRefund10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addPartialRefund\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3beb6c12-0118-4c53-a142-e98f5891e067", + "parentUUID": "3cd66ce1-b20d-4558-993b-59b4306e4e59", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Create Credit slip n°11 should check the existence of the Credit slip document", + "timedOut": false, + "duration": 254, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_preTest_10_checkCreditSlipDocumentName10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCreditSlipDocumentName\".concat(i), \"\".concat(baseContext, \"_preTest_\").concat(i))];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "174a80e5-4c34-4540-b295-c1337ab03a30", + "parentUUID": "3cd66ce1-b20d-4558-993b-59b4306e4e59", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8b9e71f4-0acf-4a3d-ae2d-1fe36677d34e", + "70b704f0-8cc9-4733-bec7-17a5021fa212", + "52a9fc42-71e8-4cfd-86c1-52c1d410a6da", + "3beb6c12-0118-4c53-a142-e98f5891e067", + "174a80e5-4c34-4540-b295-c1337ab03a30" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7225, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5f541230-400e-41ce-a787-01343a1b2e25", + "title": "Sort Credit Slip Table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Credit slips page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should go to Credit slips page", + "timedOut": false, + "duration": 4786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_goToCreditSlipsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreditSlipsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.creditSlipsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(creditSlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "861f2396-fd7f-44ed-a440-dfbf7ace3d9a", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of credit slips", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should reset all filters and get number of credit slips", + "timedOut": false, + "duration": 320, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCreditSlips = _a.sent();\n (0, chai_1.expect)(numberOfCreditSlips).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff529182-66d3-405a-88f6-64350d8c4073", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 100 per page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should change the items number to 100 per page", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_changeItemssNumberTo100\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemssNumberTo100', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.selectPaginationLimit(page, 100)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, 'Number of pages is not correct').to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20a93668-909d-4977-a6f6-0815eb44fd71", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by id_order asc", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should sort by id_order asc", + "timedOut": false, + "duration": 3013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_sortByOrderIDAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, creditSlips_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a83eeb8c-0ade-4d36-a990-d8829a5b5d9f", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by id_order desc", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should sort by id_order desc", + "timedOut": false, + "duration": 3065, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_sortByOrderIDDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, creditSlips_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95c7f4d9-cb36-4d6e-b8fd-86317079f04a", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by date_add desc", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should sort by date_add desc", + "timedOut": false, + "duration": 4014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_sortByDateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, creditSlips_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76adf31e-d091-468d-9776-687c5b50ce7b", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by date_add asc", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should sort by date_add asc", + "timedOut": false, + "duration": 3069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_sortByDateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, creditSlips_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c7a9278-ae59-4cac-a5a9-125b6cdc6fba", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by id_order_slip desc", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should sort by id_order_slip desc", + "timedOut": false, + "duration": 3917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, creditSlips_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ea9a9ae-7a49-4ea3-97c9-52560de71df5", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by id_order_slip asc", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Sort Credit Slip Table should sort by id_order_slip asc", + "timedOut": false, + "duration": 3025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, creditSlips_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f41fc409-0845-4c04-86dd-d738dadc0ea5", + "parentUUID": "5f541230-400e-41ce-a787-01343a1b2e25", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "861f2396-fd7f-44ed-a440-dfbf7ace3d9a", + "ff529182-66d3-405a-88f6-64350d8c4073", + "20a93668-909d-4977-a6f6-0815eb44fd71", + "a83eeb8c-0ade-4d36-a990-d8829a5b5d9f", + "95c7f4d9-cb36-4d6e-b8fd-86317079f04a", + "76adf31e-d091-468d-9776-687c5b50ce7b", + "2c7a9278-ae59-4cac-a5a9-125b6cdc6fba", + "6ea9a9ae-7a49-4ea3-97c9-52560de71df5", + "f41fc409-0845-4c04-86dd-d738dadc0ea5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 26064, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "33ee7541-3ec4-4d67-9310-c6730df4f0b8", + "title": "Pagination credit slip table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/02_sortAndPaginationCreditSlips.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Pagination credit slip table should change the items number to 10 per page", + "timedOut": false, + "duration": 2792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_changeItemssNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCreditSlips, paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemssNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCreditSlips = _a.sent();\n return [4 /*yield*/, creditSlips_1.default.selectPaginationLimit(page, 10)];\n case 3:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not correct (page 1 / \".concat(Math.ceil(numberOfCreditSlips / 10), \")\"))\n .to.contains(\"(page 1 / \".concat(Math.ceil(numberOfCreditSlips / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6dcca146-15d6-469e-914a-e38685d3aad4", + "parentUUID": "33ee7541-3ec4-4d67-9310-c6730df4f0b8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Pagination credit slip table should click on next", + "timedOut": false, + "duration": 2792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCreditSlips, paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCreditSlips = _a.sent();\n return [4 /*yield*/, creditSlips_1.default.paginationNext(page)];\n case 3:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not (page 2 / \".concat(Math.ceil(numberOfCreditSlips / 10), \")\"))\n .to.contains(\"(page 2 / \".concat(Math.ceil(numberOfCreditSlips / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "549e766d-d358-4711-8cfa-fea8f671210c", + "parentUUID": "33ee7541-3ec4-4d67-9310-c6730df4f0b8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Pagination credit slip table should click on previous", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, \"Number of pages is not (page 1 / \".concat(Math.ceil(numberOfCreditSlips / 10), \")\"))\n .to.contains(\"(page 1 / \".concat(Math.ceil(numberOfCreditSlips / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7838317-fd87-466d-9c7d-605345b00eac", + "parentUUID": "33ee7541-3ec4-4d67-9310-c6730df4f0b8", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Orders - Credit slips : Sort (by ID, Date and OrderID) and Pagination of Credit Slips Pagination credit slip table should change the items number to 50 per page", + "timedOut": false, + "duration": 778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_sortAndPaginationCreditSlips_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber, 'Number of pages is not correct').to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee7a7cc8-a7b4-4313-8457-39600e2756dc", + "parentUUID": "33ee7541-3ec4-4d67-9310-c6730df4f0b8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6dcca146-15d6-469e-914a-e38685d3aad4", + "549e766d-d358-4711-8cfa-fea8f671210c", + "b7838317-fd87-466d-9c7d-605345b00eac", + "ee7a7cc8-a7b4-4313-8457-39600e2756dc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7171, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "11f8740f-af72-4e7a-b09e-f1902b80ad08" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1873, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7882746c-87cf-4976-9e29-e66b8f5e6c50", + "title": "BO - Orders - Credit slips : Generate Credit slip file by date", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/03_generateCreditSlipsByDate.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/03_generateCreditSlipsByDate.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Credit slips : Generate Credit slip file by date\"", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date \"before all\" hook in \"BO - Orders - Credit slips : Generate Credit slip file by date\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8fedf41-3145-48eb-8897-5fadeb444518", + "parentUUID": "7882746c-87cf-4976-9e29-e66b8f5e6c50", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Credit slips : Generate Credit slip file by date\"", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date \"after all\" hook in \"BO - Orders - Credit slips : Generate Credit slip file by date\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d67aa0ac-35da-4a35-a798-ec7e8719d334", + "parentUUID": "7882746c-87cf-4976-9e29-e66b8f5e6c50", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/03_generateCreditSlipsByDate.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/03_generateCreditSlipsByDate.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a4ebfe3-97a0-4c7b-baf1-319c6c51ef7c", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2827a9b6-f712-429a-a4bb-1611b5ece5b2", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f42ede5d-7e5f-41ae-9ee1-0276c8e7862a", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75a50123-6700-4db2-940f-99783c57ed76", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 539, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc0e9632-8c04-4700-8e26-8898e0bfcecd", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73ad7d38-2dce-432f-a683-889ccd7fd736", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1033, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e304b40-efbf-4c00-890d-2695ee527769", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7712d2af-8169-4900-a828-781b1e8d7555", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1558, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9854c82d-b5b0-4769-a75c-1004d240c206", + "parentUUID": "e4d15772-ce29-4d7d-ac6a-cd709baf7787", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f42ede5d-7e5f-41ae-9ee1-0276c8e7862a", + "75a50123-6700-4db2-940f-99783c57ed76", + "cc0e9632-8c04-4700-8e26-8898e0bfcecd", + "73ad7d38-2dce-432f-a683-889ccd7fd736", + "2e304b40-efbf-4c00-890d-2695ee527769", + "7712d2af-8169-4900-a828-781b1e8d7555", + "9854c82d-b5b0-4769-a75c-1004d240c206" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13275, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "957d8477-4f60-4b9a-93f2-2c7e186f381d", + "title": "Create Credit slip ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/03_generateCreditSlipsByDate.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/03_generateCreditSlipsByDate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Create Credit slip should login in BO", + "timedOut": false, + "duration": 1794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3806f38-648e-4643-aac3-9b5d9d3bf5da", + "parentUUID": "957d8477-4f60-4b9a-93f2-2c7e186f381d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page'", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Create Credit slip should go to 'Orders > Orders' page'", + "timedOut": false, + "duration": 4015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2d3ea92-2d40-4d40-a334-0dbb63bb285c", + "parentUUID": "957d8477-4f60-4b9a-93f2-2c7e186f381d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Create Credit slip should go to the first order page", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_goToCreatedOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreatedOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e8003c2-6c16-4374-893f-275ac307363d", + "parentUUID": "957d8477-4f60-4b9a-93f2-2c7e186f381d", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Create Credit slip should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1305, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_updateCreatedOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCreatedOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1370385b-38e2-4b2d-aee0-1cf662161d42", + "parentUUID": "957d8477-4f60-4b9a-93f2-2c7e186f381d", + "isHook": false, + "skipped": false + }, + { + "title": "should add a partial refund", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Create Credit slip should add a partial refund", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_addPartialRefund\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPartialRefund', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e83c0377-274d-4d9c-8c45-b25b5a582432", + "parentUUID": "957d8477-4f60-4b9a-93f2-2c7e186f381d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Create Credit slip should check the existence of the Credit slip document", + "timedOut": false, + "duration": 249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_checkCreditSlipDocumentName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreditSlipDocumentName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal(creditSlipDocumentName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec414a1f-1ed8-449a-97ee-464198072b1a", + "parentUUID": "957d8477-4f60-4b9a-93f2-2c7e186f381d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b3806f38-648e-4643-aac3-9b5d9d3bf5da", + "f2d3ea92-2d40-4d40-a334-0dbb63bb285c", + "4e8003c2-6c16-4374-893f-275ac307363d", + "1370385b-38e2-4b2d-aee0-1cf662161d42", + "e83c0377-274d-4d9c-8c45-b25b5a582432", + "ec414a1f-1ed8-449a-97ee-464198072b1a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9188, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5bd792f8-33f0-4779-8916-98c5aa2cfdd5", + "title": "Generate Credit slip file by date", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/03_generateCreditSlipsByDate.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/03_generateCreditSlipsByDate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Credit slips page", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Generate Credit slip file by date should go to Credit slips page", + "timedOut": false, + "duration": 4792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_goToCreditSlipsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreditSlipsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.creditSlipsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(creditSlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d56577f6-d29c-43d1-807b-13293bd9e25f", + "parentUUID": "5bd792f8-33f0-4779-8916-98c5aa2cfdd5", + "isHook": false, + "skipped": false + }, + { + "title": "should generate PDF file by date and check the file existence", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Generate Credit slip file by date should generate PDF file by date and check the file existence", + "timedOut": false, + "duration": 689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_generatePdfFileExistence\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var filePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generatePdfFileExistence', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.generatePDFByDateAndDownload(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30184ae0-37c2-4b73-a6cf-a42cc0605903", + "parentUUID": "5bd792f8-33f0-4779-8916-98c5aa2cfdd5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error message when there is no credit slip in the entered date", + "fullTitle": "BO - Orders - Credit slips : Generate Credit slip file by date Generate Credit slip file by date should check the error message when there is no credit slip in the entered date", + "timedOut": false, + "duration": 491, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_generateCreditSlipsByDate_checkErrorMessageNonexistentCreditSlip\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorMessageNonexistentCreditSlip', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.generatePDFByDateAndFail(page, futureDate, futureDate)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(creditSlips_1.default.errorMessageWhenGenerateFileByDate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f09e480c-f783-4c11-8ab7-402aaaf1b89f", + "parentUUID": "5bd792f8-33f0-4779-8916-98c5aa2cfdd5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d56577f6-d29c-43d1-807b-13293bd9e25f", + "30184ae0-37c2-4b73-a6cf-a42cc0605903", + "f09e480c-f783-4c11-8ab7-402aaaf1b89f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5972, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "72dde9f2-a842-41e9-836f-c711499732ab", + "title": "BO - Orders - Credit slips: Credit slip options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Credit slips: Credit slip options\"", + "fullTitle": "BO - Orders - Credit slips: Credit slip options \"before all\" hook in \"BO - Orders - Credit slips: Credit slip options\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c90baf3e-f7ab-48ed-9cbb-2e99d6aa7ce8", + "parentUUID": "72dde9f2-a842-41e9-836f-c711499732ab", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Credit slips: Credit slip options\"", + "fullTitle": "BO - Orders - Credit slips: Credit slip options \"after all\" hook in \"BO - Orders - Credit slips: Credit slip options\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "33e09db4-b0fe-47f8-b88f-6719f2e42c28", + "parentUUID": "72dde9f2-a842-41e9-836f-c711499732ab", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Credit slips: Credit slip options should login in BO", + "timedOut": false, + "duration": 1769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de3a8084-7383-42d9-808e-bf3a6081451d", + "parentUUID": "72dde9f2-a842-41e9-836f-c711499732ab", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "89494462-64cb-4f2e-b27b-ba8c76f70b87", + "title": "PRE-TEST: Create product 'New product'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'New product'\"", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create product 'New product' \"before all\" hook in \"PRE-TEST: Create product 'New product'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3689adf4-157f-4a9d-b6c4-3cc2063687e2", + "parentUUID": "89494462-64cb-4f2e-b27b-ba8c76f70b87", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'New product'\"", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create product 'New product' \"after all\" hook in \"PRE-TEST: Create product 'New product'\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "087dd909-ee8a-4548-b45d-bceca278d929", + "parentUUID": "89494462-64cb-4f2e-b27b-ba8c76f70b87", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create product 'New product' should login in BO", + "timedOut": false, + "duration": 1807, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b9c5d6b-c816-44d0-be71-0e4665b7f3df", + "parentUUID": "89494462-64cb-4f2e-b27b-ba8c76f70b87", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create product 'New product' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4c7a2f2-cf9c-45bb-975b-15baad800db1", + "parentUUID": "89494462-64cb-4f2e-b27b-ba8c76f70b87", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create product 'New product' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ab49775-d47b-4696-b49f-8388a3b60d7b", + "parentUUID": "89494462-64cb-4f2e-b27b-ba8c76f70b87", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create product 'New product' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f5f3b33-fb8d-43f1-a773-01f1ccb6210f", + "parentUUID": "89494462-64cb-4f2e-b27b-ba8c76f70b87", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create product 'New product' should create product", + "timedOut": false, + "duration": 6100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb3597c4-ad7e-4c5d-9634-d789a5e9fd1b", + "parentUUID": "89494462-64cb-4f2e-b27b-ba8c76f70b87", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5b9c5d6b-c816-44d0-be71-0e4665b7f3df", + "a4c7a2f2-cf9c-45bb-975b-15baad800db1", + "0ab49775-d47b-4696-b49f-8388a3b60d7b", + "1f5f3b33-fb8d-43f1-a773-01f1ccb6210f", + "bb3597c4-ad7e-4c5d-9634-d789a5e9fd1b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14097, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "title": "PRE-TEST: Create order contain 'New product' by default customer in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order contain 'New product' by default customer in FO\"", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO \"before all\" hook in \"PRE-TEST: Create order contain 'New product' by default customer in FO\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5f4cab2-69dc-4797-83e7-288947a84c67", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order contain 'New product' by default customer in FO\"", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO \"after all\" hook in \"PRE-TEST: Create order contain 'New product' by default customer in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "173af40f-daee-4507-ba40-07710d6a2ea5", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO should open FO page", + "timedOut": false, + "duration": 1879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4006fb79-f204-4163-b193-f4fc275e3a38", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO should go to login page", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff945a9b-3677-4a0a-af51-7dcfcee1d853", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO should sign in with default customer", + "timedOut": false, + "duration": 660, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "021f337d-e78f-4f5e-891a-41399d9207ec", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product New product", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO should search for the product New product", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_searchForProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, orderData.products[0].product.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "375a600f-a1f8-4489-afc6-3b0eefdbd3f5", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO should add product to cart", + "timedOut": false, + "duration": 6517, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38648dd0-b4ae-4f49-ae4e-81b518a9d3b9", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO should go to delivery step", + "timedOut": false, + "duration": 1010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0048f6fa-24e0-4e6e-994c-f2cf1bfb87c0", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO should go to payment step", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f043c943-d84f-44de-9bbd-add001560b39", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Credit slips: Credit slip options PRE-TEST: Create order contain 'New product' by default customer in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17d76936-e2c2-44e9-ae38-7ac4ee258386", + "parentUUID": "ae39d2fe-8680-4eb6-addf-ccd63eb3d806", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4006fb79-f204-4163-b193-f4fc275e3a38", + "ff945a9b-3677-4a0a-af51-7dcfcee1d853", + "021f337d-e78f-4f5e-891a-41399d9207ec", + "375a600f-a1f8-4489-afc6-3b0eefdbd3f5", + "38648dd0-b4ae-4f49-ae4e-81b518a9d3b9", + "0048f6fa-24e0-4e6e-994c-f2cf1bfb87c0", + "f043c943-d84f-44de-9bbd-add001560b39", + "17d76936-e2c2-44e9-ae38-7ac4ee258386" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13409, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b0f1221d-fa6d-454c-a5fd-6e2ad94aa8de", + "title": "Change the credit slip prefix to 'CreSlip'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Credit slips' page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Change the credit slip prefix to 'CreSlip' should go to 'Orders > Credit slips' page", + "timedOut": false, + "duration": 4883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToCreditSlipsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreditSlipsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.creditSlipsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(creditSlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce301ef4-950b-4dbe-bb12-e4a09c03d965", + "parentUUID": "b0f1221d-fa6d-454c-a5fd-6e2ad94aa8de", + "isHook": false, + "skipped": false + }, + { + "title": "should change the credit slip prefix to CreSlip", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Change the credit slip prefix to 'CreSlip' should change the credit slip prefix to CreSlip", + "timedOut": false, + "duration": 545, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_changePrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changePrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.changePrefix(page, prefixToEdit)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.saveCreditSlipOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(creditSlips_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80cbffc2-ca9a-4d30-a6a9-1505b4a5291e", + "parentUUID": "b0f1221d-fa6d-454c-a5fd-6e2ad94aa8de", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ce301ef4-950b-4dbe-bb12-e4a09c03d965", + "80cbffc2-ca9a-4d30-a6a9-1505b4a5291e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5428, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0777b5c7-8819-4d7e-a701-bd7e63bb4336", + "title": "Check the new credit slip prefix", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check the new credit slip prefix should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.goToSubMenu(page, creditSlips_1.default.ordersParentLink, creditSlips_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6545acad-0080-4503-ba23-73d9c8450a9e", + "parentUUID": "0777b5c7-8819-4d7e-a701-bd7e63bb4336", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the last order page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check the new credit slip prefix should go to the last order page", + "timedOut": false, + "duration": 929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00072b01-493f-4b9a-b255-202b5b4dc02d", + "parentUUID": "0777b5c7-8819-4d7e-a701-bd7e63bb4336", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check the new credit slip prefix should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1324, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91a4d0c2-aa3d-4b4f-b8a8-401d2484ba94", + "parentUUID": "0777b5c7-8819-4d7e-a701-bd7e63bb4336", + "isHook": false, + "skipped": false + }, + { + "title": "should create a partial refund", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check the new credit slip prefix should create a partial refund", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_addPartialRefund\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPartialRefund', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b8ce1be-0b8a-4fe9-9a44-787b7004bc92", + "parentUUID": "0777b5c7-8819-4d7e-a701-bd7e63bb4336", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the Credit slip document", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check the new credit slip prefix should check the existence of the Credit slip document", + "timedOut": false, + "duration": 263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_checkCreditSlipDocument\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreditSlipDocument', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 4)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Credit slip');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "540028b4-2b9f-44b0-b9d6-06a0e4efbded", + "parentUUID": "0777b5c7-8819-4d7e-a701-bd7e63bb4336", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the credit slip file name contain the prefix 'CreSlip'", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check the new credit slip prefix should check that the credit slip file name contain the prefix 'CreSlip'", + "timedOut": false, + "duration": 76, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_checkUpdatedPrefixOnFileName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUpdatedPrefixOnFileName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page, 4)];\n case 2:\n // Get file name\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.contains(prefixToEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "045d86b1-2b80-4670-b887-e4a9051b24f7", + "parentUUID": "0777b5c7-8819-4d7e-a701-bd7e63bb4336", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6545acad-0080-4503-ba23-73d9c8450a9e", + "00072b01-493f-4b9a-b255-202b5b4dc02d", + "91a4d0c2-aa3d-4b4f-b8a8-401d2484ba94", + "2b8ce1be-0b8a-4fe9-9a44-787b7004bc92", + "540028b4-2b9f-44b0-b9d6-06a0e4efbded", + "045d86b1-2b80-4670-b887-e4a9051b24f7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7287, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1b4bbf87-c1eb-44fc-bc7a-e64d4bd45c50", + "title": "Back to the default credit slip prefix value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Credit slips' page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Back to the default credit slip prefix value should go to 'Orders > Credit slips' page", + "timedOut": false, + "duration": 3791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToCreditSlipsPageToResetPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreditSlipsPageToResetPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.creditSlipsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(creditSlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac277f1f-3625-476c-bf40-4808eb18c368", + "parentUUID": "1b4bbf87-c1eb-44fc-bc7a-e64d4bd45c50", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the credit slip prefix", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Back to the default credit slip prefix value should delete the credit slip prefix", + "timedOut": false, + "duration": 446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_deletePrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deletePrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.deletePrefix(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.saveCreditSlipOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(creditSlips_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2305e48b-07ee-42b9-862c-b319af7fac1b", + "parentUUID": "1b4bbf87-c1eb-44fc-bc7a-e64d4bd45c50", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ac277f1f-3625-476c-bf40-4808eb18c368", + "2305e48b-07ee-42b9-862c-b319af7fac1b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4237, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "50a7a656-c026-4943-afc1-6061c332b1f6", + "title": "Check that the new prefix does not exist in the credit slip file name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check that the new prefix does not exist in the credit slip file name should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToOrdersPageToCheckDeletedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageToCheckDeletedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.default.goToSubMenu(page, creditSlips_1.default.ordersParentLink, creditSlips_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2bf12dd-237d-4aad-ae02-cfac69ea08fb", + "parentUUID": "50a7a656-c026-4943-afc1-6061c332b1f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check that the new prefix does not exist in the credit slip file name should go to the first order page", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToFirstOrderToCheckDeletedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderToCheckDeletedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7d93fbe-dd3e-4bfe-940a-ddeedca1ffcd", + "parentUUID": "50a7a656-c026-4943-afc1-6061c332b1f6", + "isHook": false, + "skipped": false + }, + { + "title": "should check the credit slip file name", + "fullTitle": "BO - Orders - Credit slips: Credit slip options Check that the new prefix does not exist in the credit slip file name should check the credit slip file name", + "timedOut": false, + "duration": 288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_checkDeletedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeletedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page, 4)];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName, 'Credit slip file name is not changed to default!').to.not.contains(prefixToEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0227659-b681-4050-b2d5-a23b50b03d89", + "parentUUID": "50a7a656-c026-4943-afc1-6061c332b1f6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a2bf12dd-237d-4aad-ae02-cfac69ea08fb", + "e7d93fbe-dd3e-4bfe-940a-ddeedca1ffcd", + "b0227659-b681-4050-b2d5-a23b50b03d89" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5032, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "title": "POST-TEST: Delete product 'New product'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "file": "/campaigns/functional/BO/02_orders/03_creditSlips/04_creditSlipOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'New product'\"", + "fullTitle": "BO - Orders - Credit slips: Credit slip options POST-TEST: Delete product 'New product' \"before all\" hook in \"POST-TEST: Delete product 'New product'\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95a3fe7a-eae0-427f-8d12-7a8dc4f3ad96", + "parentUUID": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'New product'\"", + "fullTitle": "BO - Orders - Credit slips: Credit slip options POST-TEST: Delete product 'New product' \"after all\" hook in \"POST-TEST: Delete product 'New product'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8c004231-8a26-491d-9759-c12a22bb33d7", + "parentUUID": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Credit slips: Credit slip options POST-TEST: Delete product 'New product' should login in BO", + "timedOut": false, + "duration": 1841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbf6e7de-1d8b-4488-aea9-6c05b8bdcb0d", + "parentUUID": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Orders - Credit slips: Credit slip options POST-TEST: Delete product 'New product' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "425a8345-da00-4483-9575-835a57ef0fb8", + "parentUUID": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Credit slips: Credit slip options POST-TEST: Delete product 'New product' should reset all filters", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ba777ce-4a8d-46c7-aad0-310c70101d55", + "parentUUID": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Orders - Credit slips: Credit slip options POST-TEST: Delete product 'New product' should click on delete product button", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "883a8ecf-5728-42bf-84bf-dea695192f3f", + "parentUUID": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Orders - Credit slips: Credit slip options POST-TEST: Delete product 'New product' should delete product", + "timedOut": false, + "duration": 720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c16a3c7a-4c2b-4fe9-ae01-213b1f1732d0", + "parentUUID": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Orders - Credit slips: Credit slip options POST-TEST: Delete product 'New product' should reset filter", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_creditSlips_creditSlipOptions_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb3f695c-744c-40f3-be33-b1e4dd9bf4f0", + "parentUUID": "8047d544-9036-43f8-a322-7f89ec69d6bf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dbf6e7de-1d8b-4488-aea9-6c05b8bdcb0d", + "425a8345-da00-4483-9575-835a57ef0fb8", + "1ba777ce-4a8d-46c7-aad0-310c70101d55", + "883a8ecf-5728-42bf-84bf-dea695192f3f", + "c16a3c7a-4c2b-4fe9-ae01-213b1f1732d0", + "bb3f695c-744c-40f3-be33-b1e4dd9bf4f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6930, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "de3a8084-7383-42d9-808e-bf3a6081451d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1769, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7f8ff7b4-ac07-475a-a625-8d72817a3e49", + "title": "BO - Orders - Delivery slips : Generate Delivery slip file by date", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/01_generateDeliverySlipByDate.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/01_generateDeliverySlipByDate.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Delivery slips : Generate Delivery slip file by date\"", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date \"before all\" hook in \"BO - Orders - Delivery slips : Generate Delivery slip file by date\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2db95d6-02a3-499d-a140-101ff4e2227e", + "parentUUID": "7f8ff7b4-ac07-475a-a625-8d72817a3e49", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Delivery slips : Generate Delivery slip file by date\"", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date \"after all\" hook in \"BO - Orders - Delivery slips : Generate Delivery slip file by date\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4e91d8d7-09c9-479b-90f3-f0bb35191f7a", + "parentUUID": "7f8ff7b4-ac07-475a-a625-8d72817a3e49", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date should login in BO", + "timedOut": false, + "duration": 1859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a65346ba-a365-4894-b5d2-eded3e427731", + "parentUUID": "7f8ff7b4-ac07-475a-a625-8d72817a3e49", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "709f8f57-bcf5-4644-b1d7-a487363aed1f", + "title": "Create delivery slip", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/01_generateDeliverySlipByDate.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/01_generateDeliverySlipByDate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date Create delivery slip should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_generateDeliverySlipByDate_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1df46c7-2bab-4a52-8709-3493e5fe2d76", + "parentUUID": "709f8f57-bcf5-4644-b1d7-a487363aed1f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the last order page", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date Create delivery slip should go to the last order page", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_generateDeliverySlipByDate_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c41023c9-53b7-40ef-b1f3-48c4e61f0c53", + "parentUUID": "709f8f57-bcf5-4644-b1d7-a487363aed1f", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date Create delivery slip should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_generateDeliverySlipByDate_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c6ef4e3-8c2a-4acf-a1d0-c01cd8755007", + "parentUUID": "709f8f57-bcf5-4644-b1d7-a487363aed1f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the delivery slip document name", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date Create delivery slip should check the delivery slip document name", + "timedOut": false, + "duration": 248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_generateDeliverySlipByDate_checkDocumentName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 3)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Delivery slip');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df21d261-26c9-4d4b-a026-cd4438168ad0", + "parentUUID": "709f8f57-bcf5-4644-b1d7-a487363aed1f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b1df46c7-2bab-4a52-8709-3493e5fe2d76", + "c41023c9-53b7-40ef-b1f3-48c4e61f0c53", + "3c6ef4e3-8c2a-4acf-a1d0-c01cd8755007", + "df21d261-26c9-4d4b-a026-cd4438168ad0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6157, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "45a3c64f-d242-40a1-a967-d94563d530b0", + "title": "Generate delivery slip by date", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/01_generateDeliverySlipByDate.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/01_generateDeliverySlipByDate.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Delivery slips' page", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date Generate delivery slip by date should go to 'Orders > Delivery slips' page", + "timedOut": false, + "duration": 3793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_generateDeliverySlipByDate_goToDeliverySlipsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliverySlipsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.deliverySlipslink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(deliverySlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d442e20-0b91-445f-b042-79538f66ef3d", + "parentUUID": "45a3c64f-d242-40a1-a967-d94563d530b0", + "isHook": false, + "skipped": false + }, + { + "title": "should generate PDF file by date and check the file existence", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date Generate delivery slip by date should generate PDF file by date and check the file existence", + "timedOut": false, + "duration": 620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_generateDeliverySlipByDate_generateDeliverySlips\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var filePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateDeliverySlips', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.generatePDFByDateAndDownload(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9fa0810-1bea-4e2a-994c-72c09ef7ab72", + "parentUUID": "45a3c64f-d242-40a1-a967-d94563d530b0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error message when there is no delivery slip at the entered date", + "fullTitle": "BO - Orders - Delivery slips : Generate Delivery slip file by date Generate delivery slip by date should check the error message when there is no delivery slip at the entered date", + "timedOut": false, + "duration": 467, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_generateDeliverySlipByDate_checkNoDeliverySlipsErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoDeliverySlipsErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.generatePDFByDateAndFail(page, futureDate, futureDate)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(deliverySlips_1.default.errorMessageWhenGenerateFileByDate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "832edb6d-5c09-4e92-b74d-b5dc394ac87f", + "parentUUID": "45a3c64f-d242-40a1-a967-d94563d530b0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7d442e20-0b91-445f-b042-79538f66ef3d", + "f9fa0810-1bea-4e2a-994c-72c09ef7ab72", + "832edb6d-5c09-4e92-b74d-b5dc394ac87f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4880, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a65346ba-a365-4894-b5d2-eded3e427731" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1859, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5c34a575-d5b7-46b4-9e47-2c9f78de2afb", + "title": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/01_deliverySlipPrefix.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/01_deliverySlipPrefix.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name\"", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name \"before all\" hook in \"BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c10cfc53-7c81-4cec-937c-b779f5d4a387", + "parentUUID": "5c34a575-d5b7-46b4-9e47-2c9f78de2afb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name\"", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name \"after all\" hook in \"BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "51aaa81e-c154-4943-8e69-f17d5c1cc783", + "parentUUID": "5c34a575-d5b7-46b4-9e47-2c9f78de2afb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name should login in BO", + "timedOut": false, + "duration": 1797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "025feea7-0fe6-4ee8-905e-9d29a7332059", + "parentUUID": "5c34a575-d5b7-46b4-9e47-2c9f78de2afb", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "807ac44b-e02b-4e9f-acf5-f8ae6fd3f68e", + "title": "Update the delivery slip prefix", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/01_deliverySlipPrefix.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/01_deliverySlipPrefix.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Delivery slip' page", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name Update the delivery slip prefix should go to 'Orders > Delivery slip' page", + "timedOut": false, + "duration": 4852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipPrefix_goToDeliverySlipsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliverySlipsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.deliverySlipslink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(deliverySlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48075fcd-d7cc-4ce8-aa48-78bbf2780f65", + "parentUUID": "807ac44b-e02b-4e9f-acf5-f8ae6fd3f68e", + "isHook": false, + "skipped": false + }, + { + "title": "should update the delivery slip prefix to #defungo", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name Update the delivery slip prefix should update the delivery slip prefix to #defungo", + "timedOut": false, + "duration": 369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipPrefix_updateDeliverySlipsPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateDeliverySlipsPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.changePrefix(page, deliverySlipData.prefix)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.saveDeliverySlipOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(deliverySlips_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bed3a835-aff2-423d-8847-cf83f5ffd498", + "parentUUID": "807ac44b-e02b-4e9f-acf5-f8ae6fd3f68e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "48075fcd-d7cc-4ce8-aa48-78bbf2780f65", + "bed3a835-aff2-423d-8847-cf83f5ffd498" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5221, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "33b48d4e-3cb6-40e9-a35e-c0be948044e8", + "title": "Update the order status to 'Shipped' and check the file name", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/01_deliverySlipPrefix.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/01_deliverySlipPrefix.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name Update the order status to 'Shipped' and check the file name should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipPrefix_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.goToSubMenu(page, deliverySlips_1.default.ordersParentLink, deliverySlips_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52f85653-44a7-437b-b923-a996b4d29ead", + "parentUUID": "33b48d4e-3cb6-40e9-a35e-c0be948044e8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name Update the order status to 'Shipped' and check the file name should go to the first order page", + "timedOut": false, + "duration": 945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipPrefix_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e75b1b22-e682-4069-8930-f6f95a520675", + "parentUUID": "33b48d4e-3cb6-40e9-a35e-c0be948044e8", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name Update the order status to 'Shipped' and check the file name should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipPrefix_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c23a013-75fd-4f4d-85e9-006a52df15a8", + "parentUUID": "33b48d4e-3cb6-40e9-a35e-c0be948044e8", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the delivery slip file name contain '#defungo'", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name Update the order status to 'Shipped' and check the file name should check that the delivery slip file name contain '#defungo'", + "timedOut": false, + "duration": 271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipPrefix_checkDocumentNamePrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDocumentNamePrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page, 3)];\n case 2:\n // Get delivery slips filename\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.contains(deliverySlipData.prefix.replace('#', '').trim());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e11e0c0-d9df-4ace-b6ca-7a440d3aec31", + "parentUUID": "33b48d4e-3cb6-40e9-a35e-c0be948044e8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "52f85653-44a7-437b-b923-a996b4d29ead", + "e75b1b22-e682-4069-8930-f6f95a520675", + "2c23a013-75fd-4f4d-85e9-006a52df15a8", + "4e11e0c0-d9df-4ace-b6ca-7a440d3aec31" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5100, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "04be64ee-f6ba-4930-9b99-d90c60d3c3a4", + "title": "Back to the default delivery slip prefix value '#DE'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/01_deliverySlipPrefix.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/01_deliverySlipPrefix.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Delivery slips' page", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name Back to the default delivery slip prefix value '#DE' should go to 'Orders > Delivery slips' page", + "timedOut": false, + "duration": 4765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipPrefix_goToDeliverySlipsPageBackToDefaultValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliverySlipsPageBackToDefaultValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToSubMenu(page, tabListBlock_1.default.ordersParentLink, tabListBlock_1.default.deliverySlipslink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(deliverySlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fbbb77e-61ed-4ddb-9a82-49ca9d608c58", + "parentUUID": "04be64ee-f6ba-4930-9b99-d90c60d3c3a4", + "isHook": false, + "skipped": false + }, + { + "title": "should update the delivery slip prefix to '#DE'", + "fullTitle": "BO - Orders - Delivery slips : Update delivery slip prefix and check the generated file name Back to the default delivery slip prefix value '#DE' should update the delivery slip prefix to '#DE'", + "timedOut": false, + "duration": 332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipPrefix_backToDefaultPrefixValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToDefaultPrefixValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.changePrefix(page, defaultPrefix)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.saveDeliverySlipOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(deliverySlips_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c26b615-992d-4f73-8224-ef1658a326db", + "parentUUID": "04be64ee-f6ba-4930-9b99-d90c60d3c3a4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6fbbb77e-61ed-4ddb-9a82-49ca9d608c58", + "9c26b615-992d-4f73-8224-ef1658a326db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5097, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "025feea7-0fe6-4ee8-905e-9d29a7332059" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1797, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "142599c7-68eb-4b81-9df6-786422ece0e1", + "title": "BO - Orders - Delivery slips : Update 'Delivery slip number'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/02_deliverySlipNumber.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/02_deliverySlipNumber.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Delivery slips : Update 'Delivery slip number'\"", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' \"before all\" hook in \"BO - Orders - Delivery slips : Update 'Delivery slip number'\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e358d68-b60b-4f06-bcf8-6dc0d985eedb", + "parentUUID": "142599c7-68eb-4b81-9df6-786422ece0e1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Delivery slips : Update 'Delivery slip number'\"", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' \"after all\" hook in \"BO - Orders - Delivery slips : Update 'Delivery slip number'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e6d4915b-7267-4481-9737-997d04986f1a", + "parentUUID": "142599c7-68eb-4b81-9df6-786422ece0e1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' should login in BO", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e81aaeec-26be-4cd7-853a-6a76c872b3f2", + "parentUUID": "142599c7-68eb-4b81-9df6-786422ece0e1", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/02_deliverySlipNumber.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/02_deliverySlipNumber.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84421de2-5ea5-4b8d-b7b1-79561eae08e0", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9c2f63de-3496-42f5-ba36-7c2a685d87c1", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99a0df93-0220-4668-bd85-c2874cb8c368", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f69463b8-e513-4063-b2d6-b30ed210d31e", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeb26fab-ee28-41bd-8274-ac100294f364", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2ebb0ef-7782-4412-995d-7a24c5034435", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62d1ed1d-577e-47aa-b756-db7fe62b4b07", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e56c52a-b9b0-4e04-ac06-946148f4a646", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1553, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06be3bf4-a0f8-49c7-bf61-06538729a996", + "parentUUID": "9eb5785c-6afb-400d-b0e4-dd8839eb81ad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99a0df93-0220-4668-bd85-c2874cb8c368", + "f69463b8-e513-4063-b2d6-b30ed210d31e", + "aeb26fab-ee28-41bd-8274-ac100294f364", + "a2ebb0ef-7782-4412-995d-7a24c5034435", + "62d1ed1d-577e-47aa-b756-db7fe62b4b07", + "5e56c52a-b9b0-4e04-ac06-946148f4a646", + "06be3bf4-a0f8-49c7-bf61-06538729a996" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13468, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9bacb258-50af-4148-b037-68e5415f348f", + "title": "Update the Delivery slip number", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/02_deliverySlipNumber.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/02_deliverySlipNumber.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Delivery slips' page", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' Update the Delivery slip number should go to 'Orders > Delivery slips' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_goToDeliverySlipsPageToUpdateNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliverySlipsPageToUpdateNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.deliverySlipslink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(deliverySlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "121e23a5-4fc1-44c1-9acb-8f501652b484", + "parentUUID": "9bacb258-50af-4148-b037-68e5415f348f", + "isHook": false, + "skipped": false + }, + { + "title": "should change the Delivery slip number", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' Update the Delivery slip number should change the Delivery slip number", + "timedOut": false, + "duration": 374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_updateDeliverySlipsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateDeliverySlipsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.changeNumber(page, deliverySlipData.number)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.saveDeliverySlipOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(deliverySlips_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21df6d56-dde5-4ff8-83a0-794f154f85cb", + "parentUUID": "9bacb258-50af-4148-b037-68e5415f348f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "121e23a5-4fc1-44c1-9acb-8f501652b484", + "21df6d56-dde5-4ff8-83a0-794f154f85cb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5218, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1f216cef-58c0-4409-967a-24c1a91e3e4c", + "title": "Create a delivery slip and check the update data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/02_deliverySlipNumber.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/02_deliverySlipNumber.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the 'Orders > Orders' page", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' Create a delivery slip and check the update data should go to the 'Orders > Orders' page", + "timedOut": false, + "duration": 3853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.goToSubMenu(page, deliverySlips_1.default.ordersParentLink, deliverySlips_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4139711-413f-4876-bc73-0bebfeda7496", + "parentUUID": "1f216cef-58c0-4409-967a-24c1a91e3e4c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' Create a delivery slip and check the update data should go to the first order page", + "timedOut": false, + "duration": 927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "312ffd81-5f40-4c22-b2bc-7e23fbb8f076", + "parentUUID": "1f216cef-58c0-4409-967a-24c1a91e3e4c", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped'", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' Create a delivery slip and check the update data should change the order status to 'Shipped'", + "timedOut": false, + "duration": 1318, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc902a1a-a766-4ef4-9579-ce4f60a01596", + "parentUUID": "1f216cef-58c0-4409-967a-24c1a91e3e4c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the delivery slip file name contain the 'Delivery slip number'", + "fullTitle": "BO - Orders - Delivery slips : Update 'Delivery slip number' Create a delivery slip and check the update data should check that the delivery slip file name contain the 'Delivery slip number'", + "timedOut": false, + "duration": 279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_deliverySlipNumber_checkDeliverySlipsDocumentName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliverySlipsDocumentName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page, 3)];\n case 2:\n // Get delivery slips filename\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.contains(deliverySlipData.number);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c139f7db-18f9-4af0-b5f7-afbfa91e6321", + "parentUUID": "1f216cef-58c0-4409-967a-24c1a91e3e4c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e4139711-413f-4876-bc73-0bebfeda7496", + "312ffd81-5f40-4c22-b2bc-7e23fbb8f076", + "bc902a1a-a766-4ef4-9579-ce4f60a01596", + "c139f7db-18f9-4af0-b5f7-afbfa91e6321" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6377, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e81aaeec-26be-4cd7-853a-6a76c872b3f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1784, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ddcb6d1e-85ed-4c85-84b2-355d74947c0f", + "title": "BO - Orders - Delivery slips : Enable/Disable product image", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Delivery slips : Enable/Disable product image\"", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image \"before all\" hook in \"BO - Orders - Delivery slips : Enable/Disable product image\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c99700f9-f8ae-49fb-bd1c-b799fdbd4d18", + "parentUUID": "ddcb6d1e-85ed-4c85-84b2-355d74947c0f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Delivery slips : Enable/Disable product image\"", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image \"after all\" hook in \"BO - Orders - Delivery slips : Enable/Disable product image\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "974156b8-79f4-4445-902c-3d7ecac9416e", + "parentUUID": "ddcb6d1e-85ed-4c85-84b2-355d74947c0f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image should login in BO", + "timedOut": false, + "duration": 1813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b80d39a-810e-4bc3-b030-0c877e9a47fa", + "parentUUID": "ddcb6d1e-85ed-4c85-84b2-355d74947c0f", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "801480d4-4463-46fc-b6ef-85af92efdb8b", + "title": "Enable product image in delivery slip then check the file created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Delivery slips' page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created should go to 'Orders > Delivery slips' page", + "timedOut": false, + "duration": 4835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToDeliverySlipsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliverySlipsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.deliverySlipslink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(deliverySlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0e2b1e2-bd2c-490e-afd7-b294187d909e", + "parentUUID": "801480d4-4463-46fc-b6ef-85af92efdb8b", + "isHook": false, + "skipped": false + }, + { + "title": "should Enable product image", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created should Enable product image", + "timedOut": false, + "duration": 377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_EnableProductImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ProductImage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.setEnableProductImage(page, test.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.saveDeliverySlipOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(deliverySlips_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ee5a925-8827-48e6-b308-7c51fd62419c", + "parentUUID": "801480d4-4463-46fc-b6ef-85af92efdb8b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "title": "Create new order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should go to FO page", + "timedOut": false, + "duration": 1742, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08943c50-ceaa-4cc1-a447-95f54cac66b7", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should go to login page", + "timedOut": false, + "duration": 699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToLoginPageFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginPageFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3528c81-327f-4b79-aeca-00d968e916b2", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should sign in with default customer", + "timedOut": false, + "duration": 534, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_signInFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"signInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15c8b3e7-9bac-4fcb-ba59-d0bdeb068ede", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should add product to cart", + "timedOut": false, + "duration": 7253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c9e86a7-05e8-4433-bfe7-a7e26b87e181", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should go to delivery step", + "timedOut": false, + "duration": 1015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToDeliveryStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65166001-ec10-4c64-b295-0c3e93dfa602", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should go to payment step", + "timedOut": false, + "duration": 317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToPaymentStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6da2293-dd60-41d0-b5d7-8801a282fea8", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1555, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_confirmOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0207cbe-077d-4998-88b2-fbcb7bafdd9d", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should sign out from FO", + "timedOut": false, + "duration": 1199, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_signOutFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"signOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e074c1f-d779-44bb-8802-146724033191", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Create new order in FO should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(deliverySlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73b0511e-dfe8-4364-9a80-a8009ef4ec1b", + "parentUUID": "4a9a5ccd-77f0-4a2b-b1f6-586414261563", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "08943c50-ceaa-4cc1-a447-95f54cac66b7", + "e3528c81-327f-4b79-aeca-00d968e916b2", + "15c8b3e7-9bac-4fcb-ba59-d0bdeb068ede", + "2c9e86a7-05e8-4433-bfe7-a7e26b87e181", + "65166001-ec10-4c64-b295-0c3e93dfa602", + "d6da2293-dd60-41d0-b5d7-8801a282fea8", + "e0207cbe-077d-4998-88b2-fbcb7bafdd9d", + "0e074c1f-d779-44bb-8802-146724033191", + "73b0511e-dfe8-4364-9a80-a8009ef4ec1b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14321, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "67d0f771-3a94-4077-8bc5-8bd71ba92aef", + "title": "Generate the delivery slip and check that there is a product image displayed", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Generate the delivery slip and check that there is a product image displayed should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToOrderPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.goToSubMenu(page, deliverySlips_1.default.ordersParentLink, deliverySlips_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b046f5c6-e0a5-4aa8-9cfb-413102ad4a72", + "parentUUID": "67d0f771-3a94-4077-8bc5-8bd71ba92aef", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created order page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Generate the delivery slip and check that there is a product image displayed should go to the created order page", + "timedOut": false, + "duration": 924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToCreatedOrderPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffaf4d5c-96e8-42b7-a7ec-ef11164e5767", + "parentUUID": "67d0f771-3a94-4077-8bc5-8bd71ba92aef", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Generate the delivery slip and check that there is a product image displayed should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_updateOrderStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de4b8eac-5e01-4361-9486-26e8346e509d", + "parentUUID": "67d0f771-3a94-4077-8bc5-8bd71ba92aef", + "isHook": false, + "skipped": false + }, + { + "title": "should download the delivery slip", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Generate the delivery slip and check that there is a product image displayed should download the delivery slip", + "timedOut": false, + "duration": 468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_downloadDeliverySlips0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"downloadDeliverySlips\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadDeliverySlip(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "326e4b95-7131-45e2-b823-228f9b4dbbab", + "parentUUID": "67d0f771-3a94-4077-8bc5-8bd71ba92aef", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is a product image displayed in the PDF File", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Enable product image in delivery slip then check the file created Generate the delivery slip and check that there is a product image displayed should check that there is a product image displayed in the PDF File", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_checkProductImage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imageNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getImageNumberInPDF(filePath)];\n case 2:\n imageNumber = _a.sent();\n (0, chai_1.expect)(imageNumber).to.be.equal(test.args.imageNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e33b2346-8e41-4c72-821d-541d1c29dde2", + "parentUUID": "67d0f771-3a94-4077-8bc5-8bd71ba92aef", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b046f5c6-e0a5-4aa8-9cfb-413102ad4a72", + "ffaf4d5c-96e8-42b7-a7ec-ef11164e5767", + "de4b8eac-5e01-4361-9486-26e8346e509d", + "326e4b95-7131-45e2-b823-228f9b4dbbab", + "e33b2346-8e41-4c72-821d-541d1c29dde2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7441, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "d0e2b1e2-bd2c-490e-afd7-b294187d909e", + "7ee5a925-8827-48e6-b308-7c51fd62419c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5212, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b7380483-d01f-4e88-ac00-ec1815c4f711", + "title": "Disable product image in delivery slip then check the file created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Delivery slips' page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created should go to 'Orders > Delivery slips' page", + "timedOut": false, + "duration": 4782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToDeliverySlipsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliverySlipsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.deliverySlipslink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(deliverySlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "953a5dff-a563-46b3-849f-312f50895034", + "parentUUID": "b7380483-d01f-4e88-ac00-ec1815c4f711", + "isHook": false, + "skipped": false + }, + { + "title": "should Disable product image", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created should Disable product image", + "timedOut": false, + "duration": 325, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_DisableProductImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ProductImage\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.setEnableProductImage(page, test.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.saveDeliverySlipOptions(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(deliverySlips_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6e657de-2ee6-412e-a878-550e6cb47e60", + "parentUUID": "b7380483-d01f-4e88-ac00-ec1815c4f711", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "fe10e763-b3e8-431c-a901-6df7befad936", + "title": "Create new order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should go to FO page", + "timedOut": false, + "duration": 1829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "011617e2-e46c-488a-bcbe-42b5ef79180f", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should go to login page", + "timedOut": false, + "duration": 710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToLoginPageFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginPageFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42d6dc04-9ec8-4d61-a499-f8d9bf26ee3e", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should sign in with default customer", + "timedOut": false, + "duration": 547, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_signInFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"signInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c3bcf27-dbd5-4339-aa28-bb995060118a", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should add product to cart", + "timedOut": false, + "duration": 7271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea7aaef7-f3dc-4bb1-921d-c1540cb2ccad", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should go to delivery step", + "timedOut": false, + "duration": 1023, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToDeliveryStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b52856c0-8609-4662-bfd4-cd7aa818c8a6", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should go to payment step", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToPaymentStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cc5c0e8-640a-4e36-a250-0b0ee7f500a4", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1533, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_confirmOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f97ede48-bb9b-4b5f-99cc-1949f94ba6a0", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should sign out from FO", + "timedOut": false, + "duration": 1206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_signOutFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"signOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c85c228a-2f90-4845-815c-a849b2a12944", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Create new order in FO should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(deliverySlips_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "495df7a5-9114-404c-a638-9cb3659376fd", + "parentUUID": "fe10e763-b3e8-431c-a901-6df7befad936", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "011617e2-e46c-488a-bcbe-42b5ef79180f", + "42d6dc04-9ec8-4d61-a499-f8d9bf26ee3e", + "9c3bcf27-dbd5-4339-aa28-bb995060118a", + "ea7aaef7-f3dc-4bb1-921d-c1540cb2ccad", + "b52856c0-8609-4662-bfd4-cd7aa818c8a6", + "0cc5c0e8-640a-4e36-a250-0b0ee7f500a4", + "f97ede48-bb9b-4b5f-99cc-1949f94ba6a0", + "c85c228a-2f90-4845-815c-a849b2a12944", + "495df7a5-9114-404c-a638-9cb3659376fd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14429, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e9644a53-cd49-4336-9b8a-ce2d9e70d5e7", + "title": "Generate the delivery slip and check that there is no product image displayed", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "file": "/campaigns/functional/BO/02_orders/04_deliverySlips/02_deliverySlipOptions/03_enableDisableProductImage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Generate the delivery slip and check that there is no product image displayed should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, deliverySlips_1.default.goToSubMenu(page, deliverySlips_1.default.ordersParentLink, deliverySlips_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c843fd4-9d05-44bc-979a-34ae6cd30325", + "parentUUID": "e9644a53-cd49-4336-9b8a-ce2d9e70d5e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created order page", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Generate the delivery slip and check that there is no product image displayed should go to the created order page", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_goToCreatedOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedOrderPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c56cb21-6fd2-4585-a42f-36e598951005", + "parentUUID": "e9644a53-cd49-4336-9b8a-ce2d9e70d5e7", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Generate the delivery slip and check that there is no product image displayed should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_updateOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db85f329-d21b-44c1-b7e5-de5d7e49f653", + "parentUUID": "e9644a53-cd49-4336-9b8a-ce2d9e70d5e7", + "isHook": false, + "skipped": false + }, + { + "title": "should download the delivery slip", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Generate the delivery slip and check that there is no product image displayed should download the delivery slip", + "timedOut": false, + "duration": 456, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_downloadDeliverySlips1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"downloadDeliverySlips\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.downloadDeliverySlip(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d873a4bf-870c-4c52-bae2-185cfb5c424b", + "parentUUID": "e9644a53-cd49-4336-9b8a-ce2d9e70d5e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that there is no product image displayed in the PDF File", + "fullTitle": "BO - Orders - Delivery slips : Enable/Disable product image Disable product image in delivery slip then check the file created Generate the delivery slip and check that there is no product image displayed should check that there is no product image displayed in the PDF File", + "timedOut": false, + "duration": 438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_deliverySlips_deliverySlipOptions_enableDisableProductImage_checkProductImage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var imageNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductImage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.getImageNumberInPDF(filePath)];\n case 2:\n imageNumber = _a.sent();\n (0, chai_1.expect)(imageNumber).to.be.equal(test.args.imageNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f5bd472-f3ca-42c6-944a-3c2a4f9e7950", + "parentUUID": "e9644a53-cd49-4336-9b8a-ce2d9e70d5e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0c843fd4-9d05-44bc-979a-34ae6cd30325", + "5c56cb21-6fd2-4585-a42f-36e598951005", + "db85f329-d21b-44c1-b7e5-de5d7e49f653", + "d873a4bf-870c-4c52-bae2-185cfb5c424b", + "5f5bd472-f3ca-42c6-944a-3c2a4f9e7950" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7007, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "953a5dff-a563-46b3-849f-312f50895034", + "b6e657de-2ee6-412e-a878-550e6cb47e60" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5107, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "8b80d39a-810e-4bc3-b030-0c877e9a47fa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1813, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "title": "BO - Orders - Shopping carts : Filter the Shopping carts table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/01_filterShoppingCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/01_filterShoppingCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Shopping carts : Filter the Shopping carts table\"", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table \"before all\" hook in \"BO - Orders - Shopping carts : Filter the Shopping carts table\"", + "timedOut": false, + "duration": 77, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca5644fb-2694-43f0-b917-4262d8c364b3", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Shopping carts : Filter the Shopping carts table\"", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table \"after all\" hook in \"BO - Orders - Shopping carts : Filter the Shopping carts table\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "afed794c-0d1b-4a41-b64e-78667a775939", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should login in BO", + "timedOut": false, + "duration": 1806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e45ba624-3559-4c13-bed3-3b195b6d6e4c", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_goToShoppingCartsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05b8f5db-0d4d-4c4a-a4a8-f488a131aed6", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of shopping carts", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should reset all filters and get number of shopping carts", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCarts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69ced2ec-c373-481c-9f62-af9bba4751ca", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should search the non ordered shopping carts and delete them if exist", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should search the non ordered shopping carts and delete them if exist", + "timedOut": false, + "duration": 360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_searchNonOrderedShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn, deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonOrderedShoppingCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'status', 'Non ordered')];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.most(numberOfShoppingCarts);\n numberOfShoppingCarts -= numberOfShoppingCartsAfterFilter;\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, 'status')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('Non ordered');\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7:\n if (!(numberOfShoppingCartsAfterFilter > 0)) return [3 /*break*/, 9];\n return [4 /*yield*/, shoppingCarts_1.default.bulkDeleteShoppingCarts(page)];\n case 8:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(shoppingCarts_1.default.successfulMultiDeleteMessage);\n _a.label = 9;\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33bd2948-ff82-40d0-a433-bb8097c4a456", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should reset all filters", + "timedOut": false, + "duration": 3041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_resetAfterDeleteNonOrderedCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteNonOrderedCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4eb11440-1630-4975-a34b-a23e9840cb26", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should change pagination to 300 items per page", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should change pagination to 300 items per page", + "timedOut": false, + "duration": 483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_changeItemNumberTo300\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo300', baseContext)];\n case 1:\n _a.sent();\n paginationNumber = '0';\n if (!(numberOfShoppingCarts >= 21)) return [3 /*break*/, 3];\n return [4 /*yield*/, shoppingCarts_1.default.selectPaginationLimit(page, 300)];\n case 2:\n paginationNumber = _a.sent();\n _a.label = 3;\n case 3:\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef1e2fd9-7218-4fc7-841c-caf9ab47588e", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by id_cart '2'", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should filter by id_cart '2'", + "timedOut": false, + "duration": 496, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.most(numberOfShoppingCarts);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.args.filterBy === 'id_guest') {\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue === '1' ? 'Yes' : 'No');\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6c4aae8-f612-41d2-828d-a99293a30b92", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should reset all filters", + "timedOut": false, + "duration": 3043, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0afb56c7-5c71-4a70-847b-a3925d586056", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by status '3'", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should filter by status '3'", + "timedOut": false, + "duration": 445, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterOrderID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.most(numberOfShoppingCarts);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.args.filterBy === 'id_guest') {\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue === '1' ? 'Yes' : 'No');\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1aba9872-c43d-4ad7-85ad-1a3a4fc6e615", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should reset all filters", + "timedOut": false, + "duration": 3029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterOrderIDReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9993f8db-d5b2-4be4-8e0e-8535d74a7559", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by c!lastname 'DOE'", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should filter by c!lastname 'DOE'", + "timedOut": false, + "duration": 680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.most(numberOfShoppingCarts);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.args.filterBy === 'id_guest') {\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue === '1' ? 'Yes' : 'No');\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60f8913c-ca9c-4cea-b43a-1f17b0ba2699", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should reset all filters", + "timedOut": false, + "duration": 3014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterCustomerReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c157d946-4962-4753-b12f-17f1a1048318", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by ca!name 'My carrier'", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should filter by ca!name 'My carrier'", + "timedOut": false, + "duration": 500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.most(numberOfShoppingCarts);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.args.filterBy === 'id_guest') {\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue === '1' ? 'Yes' : 'No');\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee478a47-3742-445e-8b69-02f588d2bde9", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should reset all filters", + "timedOut": false, + "duration": 3012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterCarrierReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "956f887d-c209-428f-9402-05aaa4c0dfae", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by id_guest '1'", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should filter by id_guest '1'", + "timedOut": false, + "duration": 1193, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterOnline\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.most(numberOfShoppingCarts);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.args.filterBy === 'id_guest') {\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue === '1' ? 'Yes' : 'No');\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34b63e2d-ca9c-42fc-aedd-1039b3495732", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should reset all filters", + "timedOut": false, + "duration": 3040, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterOnlineReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2e67c67-76c6-4468-b359-0ccd1521aa69", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by date 'From' and 'To'", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should filter by date 'From' and 'To'", + "timedOut": false, + "duration": 1267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_filterByDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByDate', baseContext)];\n case 1:\n _a.sent();\n // Filter by date\n return [4 /*yield*/, shoppingCarts_1.default.filterByDate(page, todayDate, todayDate)];\n case 2:\n // Filter by date\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.most(numberOfShoppingCarts);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, 'date')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(todayDate);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c0e8730-f22c-466f-be7b-2a79bc1cea38", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Filter the Shopping carts table should reset all filters", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_filterShoppingCarts_resetAfterFilterDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterFilterDate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8b21375-0c70-4c85-89d3-ad7aee3aabf6", + "parentUUID": "2d15a64a-6d20-4a17-84c8-32fbb6640a94", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e45ba624-3559-4c13-bed3-3b195b6d6e4c", + "05b8f5db-0d4d-4c4a-a4a8-f488a131aed6", + "69ced2ec-c373-481c-9f62-af9bba4751ca", + "33bd2948-ff82-40d0-a433-bb8097c4a456", + "4eb11440-1630-4975-a34b-a23e9840cb26", + "ef1e2fd9-7218-4fc7-841c-caf9ab47588e", + "d6c4aae8-f612-41d2-828d-a99293a30b92", + "0afb56c7-5c71-4a70-847b-a3925d586056", + "1aba9872-c43d-4ad7-85ad-1a3a4fc6e615", + "9993f8db-d5b2-4be4-8e0e-8535d74a7559", + "60f8913c-ca9c-4cea-b43a-1f17b0ba2699", + "c157d946-4962-4753-b12f-17f1a1048318", + "ee478a47-3742-445e-8b69-02f588d2bde9", + "956f887d-c209-428f-9402-05aaa4c0dfae", + "34b63e2d-ca9c-42fc-aedd-1039b3495732", + "f2e67c67-76c6-4468-b359-0ccd1521aa69", + "9c0e8730-f22c-466f-be7b-2a79bc1cea38", + "a8b21375-0c70-4c85-89d3-ad7aee3aabf6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29284, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ec91cbe0-b165-4f8f-a172-457425d5a41e", + "title": "BO - Orders - Shopping carts : Sort and pagination shopping carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Shopping carts : Sort and pagination shopping carts\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts \"before all\" hook in \"BO - Orders - Shopping carts : Sort and pagination shopping carts\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d9758b0-f657-4284-9949-da2a390ad1c7", + "parentUUID": "ec91cbe0-b165-4f8f-a172-457425d5a41e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Shopping carts : Sort and pagination shopping carts\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts \"after all\" hook in \"BO - Orders - Shopping carts : Sort and pagination shopping carts\"", + "timedOut": false, + "duration": 20, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "81c071f9-d193-442e-af2c-8067012b8dda", + "parentUUID": "ec91cbe0-b165-4f8f-a172-457425d5a41e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "907c4eae-a850-4b1d-94e1-bdd933848693", + "title": "PRE-TEST: Create 16 orders by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "28286c1d-8e01-4218-8e3e-378e8a4e3be2", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14f9f3bc-1124-4859-a923-a594c7addb29", + "parentUUID": "28286c1d-8e01-4218-8e3e-378e8a4e3be2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "137ef38a-94b0-4bf2-a65e-605a9cbacadb", + "parentUUID": "28286c1d-8e01-4218-8e3e-378e8a4e3be2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_0_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "165409e1-7801-4afe-a88f-b70158ff1c31", + "parentUUID": "28286c1d-8e01-4218-8e3e-378e8a4e3be2", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_0_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf1111ba-0163-4f6b-81e1-7836671c24e2", + "parentUUID": "28286c1d-8e01-4218-8e3e-378e8a4e3be2", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_0_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0187551f-07f9-4fbb-8b37-dedd7da7e4f2", + "parentUUID": "28286c1d-8e01-4218-8e3e-378e8a4e3be2", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_0_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "506704e1-45cd-4e68-af9f-6359ab3c26dd", + "parentUUID": "28286c1d-8e01-4218-8e3e-378e8a4e3be2", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2420, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_0_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec7a970b-120e-4191-a0bb-ae5d4a61abaf", + "parentUUID": "28286c1d-8e01-4218-8e3e-378e8a4e3be2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "165409e1-7801-4afe-a88f-b70158ff1c31", + "bf1111ba-0163-4f6b-81e1-7836671c24e2", + "0187551f-07f9-4fbb-8b37-dedd7da7e4f2", + "506704e1-45cd-4e68-af9f-6359ab3c26dd", + "ec7a970b-120e-4191-a0bb-ae5d4a61abaf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11453, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0aec0b25-c5b0-4bf1-a072-4b131cda8c68", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b919e094-68dd-4c39-b688-e2a038345a64", + "parentUUID": "0aec0b25-c5b0-4bf1-a072-4b131cda8c68", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ed72e7a2-5f90-4b7c-bd56-33ed9cada9ef", + "parentUUID": "0aec0b25-c5b0-4bf1-a072-4b131cda8c68", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c3921b4-872f-4b78-a6c7-eda5898ab1c6", + "parentUUID": "0aec0b25-c5b0-4bf1-a072-4b131cda8c68", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e730a041-4e4a-416a-8068-76148ee28481", + "parentUUID": "0aec0b25-c5b0-4bf1-a072-4b131cda8c68", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_1_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d203c24c-2026-4e0c-abfc-c746e4718a09", + "parentUUID": "0aec0b25-c5b0-4bf1-a072-4b131cda8c68", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1584, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_1_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e9356e0-747b-40ae-869a-4fcb4132b2ef", + "parentUUID": "0aec0b25-c5b0-4bf1-a072-4b131cda8c68", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2416, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_1_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2b6d0ff-1cbc-4eff-ab5f-d1b74897d268", + "parentUUID": "0aec0b25-c5b0-4bf1-a072-4b131cda8c68", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3c3921b4-872f-4b78-a6c7-eda5898ab1c6", + "e730a041-4e4a-416a-8068-76148ee28481", + "d203c24c-2026-4e0c-abfc-c746e4718a09", + "1e9356e0-747b-40ae-869a-4fcb4132b2ef", + "f2b6d0ff-1cbc-4eff-ab5f-d1b74897d268" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11257, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8504ffb3-d088-454b-bab8-9e745847663e", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "676f83a2-5cac-467f-a8c1-5984ba95deae", + "parentUUID": "8504ffb3-d088-454b-bab8-9e745847663e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "39ae1d23-26fd-4c4e-952e-fff3ec54821a", + "parentUUID": "8504ffb3-d088-454b-bab8-9e745847663e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1742, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd22a1aa-1028-4904-aaaa-cd1fee982903", + "parentUUID": "8504ffb3-d088-454b-bab8-9e745847663e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c301cd7e-3e41-4241-9015-a16ff33ac9f5", + "parentUUID": "8504ffb3-d088-454b-bab8-9e745847663e", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_2_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0733e07a-fd01-46f0-aa16-3a631237ceec", + "parentUUID": "8504ffb3-d088-454b-bab8-9e745847663e", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1590, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_2_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82ef302d-4705-4503-97b0-349946aa333b", + "parentUUID": "8504ffb3-d088-454b-bab8-9e745847663e", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_2_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90ed82bd-2b32-4de1-9b23-ce2205a2bc61", + "parentUUID": "8504ffb3-d088-454b-bab8-9e745847663e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd22a1aa-1028-4904-aaaa-cd1fee982903", + "c301cd7e-3e41-4241-9015-a16ff33ac9f5", + "0733e07a-fd01-46f0-aa16-3a631237ceec", + "82ef302d-4705-4503-97b0-349946aa333b", + "90ed82bd-2b32-4de1-9b23-ce2205a2bc61" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11469, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "db353494-b43a-4746-ba17-21bc4ae93925", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c5c7bac-82b0-4d0c-b06f-9388f5f64e98", + "parentUUID": "db353494-b43a-4746-ba17-21bc4ae93925", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b3cceede-e9f3-435d-af39-d6dccca883df", + "parentUUID": "db353494-b43a-4746-ba17-21bc4ae93925", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e867635-bc40-4d91-8b41-fda097b57191", + "parentUUID": "db353494-b43a-4746-ba17-21bc4ae93925", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ab12128-e4c3-4567-b2d6-eca9bc5a44ed", + "parentUUID": "db353494-b43a-4746-ba17-21bc4ae93925", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_3_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d90da9b3-34e5-4fc3-8f72-cec11f71d3be", + "parentUUID": "db353494-b43a-4746-ba17-21bc4ae93925", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1587, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_3_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec86da2b-cc94-4e7d-b2a0-9fff0c29483b", + "parentUUID": "db353494-b43a-4746-ba17-21bc4ae93925", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_3_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d0270b1-7e2d-41d7-9ff4-f160831aaaf9", + "parentUUID": "db353494-b43a-4746-ba17-21bc4ae93925", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6e867635-bc40-4d91-8b41-fda097b57191", + "4ab12128-e4c3-4567-b2d6-eca9bc5a44ed", + "d90da9b3-34e5-4fc3-8f72-cec11f71d3be", + "ec86da2b-cc94-4e7d-b2a0-9fff0c29483b", + "1d0270b1-7e2d-41d7-9ff4-f160831aaaf9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11464, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f2f517cc-d561-41c4-91b4-e3c9068d7030", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2687691b-6145-438d-94ad-ad573a63f7bc", + "parentUUID": "f2f517cc-d561-41c4-91b4-e3c9068d7030", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8dc85798-b3cf-457b-b53f-235f3da81e27", + "parentUUID": "f2f517cc-d561-41c4-91b4-e3c9068d7030", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_4_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c14b6e0-74b5-4635-a6c1-894f85f7b725", + "parentUUID": "f2f517cc-d561-41c4-91b4-e3c9068d7030", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_4_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ce092df-d4cc-49b5-83f6-7b74b5ee30d7", + "parentUUID": "f2f517cc-d561-41c4-91b4-e3c9068d7030", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_4_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "044ddf34-05c8-4c77-a384-69015322292b", + "parentUUID": "f2f517cc-d561-41c4-91b4-e3c9068d7030", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_4_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ad2cb34-4075-4d89-bd30-2f6610a9e6bd", + "parentUUID": "f2f517cc-d561-41c4-91b4-e3c9068d7030", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2424, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_4_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acef7f86-3762-472a-845f-aca5249e7b4e", + "parentUUID": "f2f517cc-d561-41c4-91b4-e3c9068d7030", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9c14b6e0-74b5-4635-a6c1-894f85f7b725", + "4ce092df-d4cc-49b5-83f6-7b74b5ee30d7", + "044ddf34-05c8-4c77-a384-69015322292b", + "5ad2cb34-4075-4d89-bd30-2f6610a9e6bd", + "acef7f86-3762-472a-845f-aca5249e7b4e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11480, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b780dc72-746c-4568-b025-414c06ba3817", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1a39b6c-c476-4283-80e0-9f9f557cbea2", + "parentUUID": "b780dc72-746c-4568-b025-414c06ba3817", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1d72dcaf-cc4f-45e5-82ae-d4ca97069e12", + "parentUUID": "b780dc72-746c-4568-b025-414c06ba3817", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_5_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f39fcfd-dc97-4621-bead-bd7e6d34db11", + "parentUUID": "b780dc72-746c-4568-b025-414c06ba3817", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_5_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4dc11fb-81b9-46ef-8713-30874d27ff24", + "parentUUID": "b780dc72-746c-4568-b025-414c06ba3817", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_5_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36c34516-6e13-4702-a06c-d5923595acae", + "parentUUID": "b780dc72-746c-4568-b025-414c06ba3817", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1579, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_5_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c360448-8a89-4692-8e2f-2edef76c096b", + "parentUUID": "b780dc72-746c-4568-b025-414c06ba3817", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_5_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14b81f57-1c08-4675-92f2-20765c747f86", + "parentUUID": "b780dc72-746c-4568-b025-414c06ba3817", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f39fcfd-dc97-4621-bead-bd7e6d34db11", + "d4dc11fb-81b9-46ef-8713-30874d27ff24", + "36c34516-6e13-4702-a06c-d5923595acae", + "1c360448-8a89-4692-8e2f-2edef76c096b", + "14b81f57-1c08-4675-92f2-20765c747f86" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11220, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "94716cdd-db46-4ebe-8e89-08195ad3b9cb", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1c14404-b0cf-4508-bd0e-b21d05236ecb", + "parentUUID": "94716cdd-db46-4ebe-8e89-08195ad3b9cb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "63eb6b75-ca21-4a27-89ef-9cff02b7ff57", + "parentUUID": "94716cdd-db46-4ebe-8e89-08195ad3b9cb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_6_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a718d67b-2a9a-492b-879a-1967bdd2163c", + "parentUUID": "94716cdd-db46-4ebe-8e89-08195ad3b9cb", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_6_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47335a83-d581-4c31-ba04-57b84401eb44", + "parentUUID": "94716cdd-db46-4ebe-8e89-08195ad3b9cb", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_6_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf29919f-1a8b-49ef-a69f-8dd5660a1270", + "parentUUID": "94716cdd-db46-4ebe-8e89-08195ad3b9cb", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1617, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_6_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6246b3d-602d-4268-ba99-280ef7a2ac6f", + "parentUUID": "94716cdd-db46-4ebe-8e89-08195ad3b9cb", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2407, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_6_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "626d7385-8d52-4682-b714-6f277aab0c28", + "parentUUID": "94716cdd-db46-4ebe-8e89-08195ad3b9cb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a718d67b-2a9a-492b-879a-1967bdd2163c", + "47335a83-d581-4c31-ba04-57b84401eb44", + "bf29919f-1a8b-49ef-a69f-8dd5660a1270", + "b6246b3d-602d-4268-ba99-280ef7a2ac6f", + "626d7385-8d52-4682-b714-6f277aab0c28" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11549, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b595d732-0c1e-423b-b0dd-253dda7317d2", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79077780-48ee-400f-b3e3-cd0c73f37af9", + "parentUUID": "b595d732-0c1e-423b-b0dd-253dda7317d2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c4a0f848-687d-4457-84b2-62e8c78f2a2c", + "parentUUID": "b595d732-0c1e-423b-b0dd-253dda7317d2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_7_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db0c761d-e7e6-4aa2-939c-6a89d102b190", + "parentUUID": "b595d732-0c1e-423b-b0dd-253dda7317d2", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_7_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "148c604a-426d-4ac7-944a-ee06ba5d4f19", + "parentUUID": "b595d732-0c1e-423b-b0dd-253dda7317d2", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_7_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "596ebc4e-bd32-463c-8c66-8555c67536da", + "parentUUID": "b595d732-0c1e-423b-b0dd-253dda7317d2", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_7_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fff3d7d-ca15-4473-b0e8-852925a9f717", + "parentUUID": "b595d732-0c1e-423b-b0dd-253dda7317d2", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_7_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e087f291-42b6-4a72-9545-9aa6d6c25aac", + "parentUUID": "b595d732-0c1e-423b-b0dd-253dda7317d2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db0c761d-e7e6-4aa2-939c-6a89d102b190", + "148c604a-426d-4ac7-944a-ee06ba5d4f19", + "596ebc4e-bd32-463c-8c66-8555c67536da", + "7fff3d7d-ca15-4473-b0e8-852925a9f717", + "e087f291-42b6-4a72-9545-9aa6d6c25aac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11258, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ba75939d-0f4b-4a7a-844d-660387e94bc7", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "614621fa-81f9-42b3-a729-0f2cd9767d0f", + "parentUUID": "ba75939d-0f4b-4a7a-844d-660387e94bc7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "506320d6-35d2-4b1f-b15b-8562a3c48f4d", + "parentUUID": "ba75939d-0f4b-4a7a-844d-660387e94bc7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_8_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67ccc732-dfd6-4909-b02c-3cba838e0f3d", + "parentUUID": "ba75939d-0f4b-4a7a-844d-660387e94bc7", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_8_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb4ab96a-cb94-45bf-82eb-160e3e71ad33", + "parentUUID": "ba75939d-0f4b-4a7a-844d-660387e94bc7", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_8_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9915364-9528-4350-b9b3-9f2166246479", + "parentUUID": "ba75939d-0f4b-4a7a-844d-660387e94bc7", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1596, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_8_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ceb5063-faa8-4bbf-ba96-e2995d0a2199", + "parentUUID": "ba75939d-0f4b-4a7a-844d-660387e94bc7", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2442, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_8_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79fef245-436a-47e0-8b7a-1526a6bb0662", + "parentUUID": "ba75939d-0f4b-4a7a-844d-660387e94bc7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "67ccc732-dfd6-4909-b02c-3cba838e0f3d", + "fb4ab96a-cb94-45bf-82eb-160e3e71ad33", + "e9915364-9528-4350-b9b3-9f2166246479", + "0ceb5063-faa8-4bbf-ba96-e2995d0a2199", + "79fef245-436a-47e0-8b7a-1526a6bb0662" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11293, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "35bb9d31-5afe-42a2-826d-168de96d6d2f", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27dd3c36-3a6f-4fb8-9a92-f3b59e43069a", + "parentUUID": "35bb9d31-5afe-42a2-826d-168de96d6d2f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "722c31da-c91f-455d-ba1f-f3ace996acf1", + "parentUUID": "35bb9d31-5afe-42a2-826d-168de96d6d2f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_9_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd41494d-ffa2-4075-8e12-30262d14a010", + "parentUUID": "35bb9d31-5afe-42a2-826d-168de96d6d2f", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_9_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93bf3e61-0538-4292-b2bf-1375cb29371e", + "parentUUID": "35bb9d31-5afe-42a2-826d-168de96d6d2f", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_9_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2414e76-1e8b-4821-a80c-ff8c9fb652a3", + "parentUUID": "35bb9d31-5afe-42a2-826d-168de96d6d2f", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1591, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_9_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b7b9f8e-0d15-473c-a0c7-629d443f80eb", + "parentUUID": "35bb9d31-5afe-42a2-826d-168de96d6d2f", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2456, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_9_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3437816-4ba4-4357-a347-d6fd53e64f2a", + "parentUUID": "35bb9d31-5afe-42a2-826d-168de96d6d2f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd41494d-ffa2-4075-8e12-30262d14a010", + "93bf3e61-0538-4292-b2bf-1375cb29371e", + "f2414e76-1e8b-4821-a80c-ff8c9fb652a3", + "7b7b9f8e-0d15-473c-a0c7-629d443f80eb", + "f3437816-4ba4-4357-a347-d6fd53e64f2a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11253, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "03ebf8d6-762f-4087-8ef6-bf9b0dd9317b", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0b122e2-3c55-4bb4-900a-f0102e968b10", + "parentUUID": "03ebf8d6-762f-4087-8ef6-bf9b0dd9317b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cf7893d8-0fff-40a4-bbe9-5b8955540ba8", + "parentUUID": "03ebf8d6-762f-4087-8ef6-bf9b0dd9317b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_10_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ac1575b-0990-417c-b2ef-0ce30db1ce0f", + "parentUUID": "03ebf8d6-762f-4087-8ef6-bf9b0dd9317b", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_10_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7edde5f4-73d8-478f-95aa-044d13888fa4", + "parentUUID": "03ebf8d6-762f-4087-8ef6-bf9b0dd9317b", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_10_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d89f065-d092-4744-8df5-357937d66655", + "parentUUID": "03ebf8d6-762f-4087-8ef6-bf9b0dd9317b", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1577, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_10_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff4f8405-1c7e-4fd0-8e3c-292d7577f503", + "parentUUID": "03ebf8d6-762f-4087-8ef6-bf9b0dd9317b", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2424, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_10_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d462be98-51f3-4014-a0f1-69654e5dd8d3", + "parentUUID": "03ebf8d6-762f-4087-8ef6-bf9b0dd9317b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ac1575b-0990-417c-b2ef-0ce30db1ce0f", + "7edde5f4-73d8-478f-95aa-044d13888fa4", + "8d89f065-d092-4744-8df5-357937d66655", + "ff4f8405-1c7e-4fd0-8e3c-292d7577f503", + "d462be98-51f3-4014-a0f1-69654e5dd8d3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11255, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e1f46e57-e6f7-4d23-b907-01dce865859f", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87a2c0a8-a568-4dc6-8eef-6f33615d1ad1", + "parentUUID": "e1f46e57-e6f7-4d23-b907-01dce865859f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2e4ddee5-7112-40be-941c-1881abce2f27", + "parentUUID": "e1f46e57-e6f7-4d23-b907-01dce865859f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_11_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d183962b-e931-4705-a1c4-a1aef8eb7f6e", + "parentUUID": "e1f46e57-e6f7-4d23-b907-01dce865859f", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_11_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f96de851-e5dc-4796-b93f-803f886a55cf", + "parentUUID": "e1f46e57-e6f7-4d23-b907-01dce865859f", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_11_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e05a12c6-390a-4432-82ec-15416c34d39c", + "parentUUID": "e1f46e57-e6f7-4d23-b907-01dce865859f", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1565, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_11_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c93d4ad0-73c2-4cfb-bd2e-296ebcdff2d1", + "parentUUID": "e1f46e57-e6f7-4d23-b907-01dce865859f", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_11_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dcd73fc-55d2-42e9-ad48-b040ad1f3288", + "parentUUID": "e1f46e57-e6f7-4d23-b907-01dce865859f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d183962b-e931-4705-a1c4-a1aef8eb7f6e", + "f96de851-e5dc-4796-b93f-803f886a55cf", + "e05a12c6-390a-4432-82ec-15416c34d39c", + "c93d4ad0-73c2-4cfb-bd2e-296ebcdff2d1", + "2dcd73fc-55d2-42e9-ad48-b040ad1f3288" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9bc90673-d09f-4ebc-8565-3865c07857da", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "533a24de-5bde-43f8-979c-c68a406ca29e", + "parentUUID": "9bc90673-d09f-4ebc-8565-3865c07857da", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6b043322-bac6-439f-9ffe-44fb618fd8e9", + "parentUUID": "9bc90673-d09f-4ebc-8565-3865c07857da", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_12_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdadcac3-e58d-4753-9d3f-dbeb182631a4", + "parentUUID": "9bc90673-d09f-4ebc-8565-3865c07857da", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_12_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf957c41-6c90-472c-88a3-ec1ffab6499e", + "parentUUID": "9bc90673-d09f-4ebc-8565-3865c07857da", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_12_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "792cc6a9-ed94-4f76-88da-c3b8fd1c9ef0", + "parentUUID": "9bc90673-d09f-4ebc-8565-3865c07857da", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_12_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63ce9b02-9203-4165-960c-7200437d8e6e", + "parentUUID": "9bc90673-d09f-4ebc-8565-3865c07857da", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_12_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e745472a-93c1-4d94-9307-8cb82279344f", + "parentUUID": "9bc90673-d09f-4ebc-8565-3865c07857da", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fdadcac3-e58d-4753-9d3f-dbeb182631a4", + "bf957c41-6c90-472c-88a3-ec1ffab6499e", + "792cc6a9-ed94-4f76-88da-c3b8fd1c9ef0", + "63ce9b02-9203-4165-960c-7200437d8e6e", + "e745472a-93c1-4d94-9307-8cb82279344f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11455, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3c7d688d-24dd-46cb-a703-e423902af63b", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07d90f63-7ec6-4ccc-96f2-f26e542e9188", + "parentUUID": "3c7d688d-24dd-46cb-a703-e423902af63b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "42ad4c8d-a992-4970-86c2-408cb35af2a1", + "parentUUID": "3c7d688d-24dd-46cb-a703-e423902af63b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_13_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93f78f23-d5a6-4eea-9870-00bc018e57cb", + "parentUUID": "3c7d688d-24dd-46cb-a703-e423902af63b", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_13_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85b50d4f-8880-4034-a9c2-5b361c480845", + "parentUUID": "3c7d688d-24dd-46cb-a703-e423902af63b", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_13_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2384f426-c879-4ef2-bc16-52a711d54dc4", + "parentUUID": "3c7d688d-24dd-46cb-a703-e423902af63b", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1593, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_13_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57c83a81-1738-4478-9f3e-5926678f7d4b", + "parentUUID": "3c7d688d-24dd-46cb-a703-e423902af63b", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_13_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63fb2b9b-17ca-41e9-b20b-8ec103946961", + "parentUUID": "3c7d688d-24dd-46cb-a703-e423902af63b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "93f78f23-d5a6-4eea-9870-00bc018e57cb", + "85b50d4f-8880-4034-a9c2-5b361c480845", + "2384f426-c879-4ef2-bc16-52a711d54dc4", + "57c83a81-1738-4478-9f3e-5926678f7d4b", + "63fb2b9b-17ca-41e9-b20b-8ec103946961" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11453, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f8068e28-c852-4d89-a189-f1ee9b5749f3", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db95d62e-6976-465d-a81d-1d982bfdd312", + "parentUUID": "f8068e28-c852-4d89-a189-f1ee9b5749f3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "213a165c-1c53-4b6c-8028-a1f6d5a09a9d", + "parentUUID": "f8068e28-c852-4d89-a189-f1ee9b5749f3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_14_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0243feb-f35b-4995-83ba-b8da4de67330", + "parentUUID": "f8068e28-c852-4d89-a189-f1ee9b5749f3", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_14_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e5cd50f-9c43-4538-a24c-f7dd0b4d2a91", + "parentUUID": "f8068e28-c852-4d89-a189-f1ee9b5749f3", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_14_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ec1a695-6469-4c2a-bb57-695560f22aa8", + "parentUUID": "f8068e28-c852-4d89-a189-f1ee9b5749f3", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1600, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_14_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7bb37d1-2e1f-4757-bfbc-bc5273b4a9a6", + "parentUUID": "f8068e28-c852-4d89-a189-f1ee9b5749f3", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_14_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3047fe14-b504-489c-afd3-6a279b84726d", + "parentUUID": "f8068e28-c852-4d89-a189-f1ee9b5749f3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d0243feb-f35b-4995-83ba-b8da4de67330", + "2e5cd50f-9c43-4538-a24c-f7dd0b4d2a91", + "3ec1a695-6469-4c2a-bb57-695560f22aa8", + "f7bb37d1-2e1f-4757-bfbc-bc5273b4a9a6", + "3047fe14-b504-489c-afd3-6a279b84726d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11475, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "17035304-5491-4ea3-b5c7-73ea5c97add4", + "title": "PRE-TEST: Create order by guest in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"before all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36d5c7d9-2211-427c-99f9-1b04ead9226b", + "parentUUID": "17035304-5491-4ea3-b5c7-73ea5c97add4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO \"after all\" hook in \"PRE-TEST: Create order by guest in FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4173acb0-8a39-4c83-9ad0-1afc21f01430", + "parentUUID": "17035304-5491-4ea3-b5c7-73ea5c97add4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should open FO page", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_15_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb274b80-c690-4fce-b97e-4b2402dc880c", + "parentUUID": "17035304-5491-4ea3-b5c7-73ea5c97add4", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 4709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_15_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the fourth product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 6:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "026e9229-6090-4903-bd0d-c7974725307b", + "parentUUID": "17035304-5491-4ea3-b5c7-73ea5c97add4", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill guest personal information", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_15_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, orderData.customer)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec1bcc0a-ae3c-4532-ae14-57e0ef7c89f6", + "parentUUID": "17035304-5491-4ea3-b5c7-73ea5c97add4", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1578, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_15_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, orderData.deliveryAddress)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9ab8b40-1005-4319-916a-8c9626bdbc28", + "parentUUID": "17035304-5491-4ea3-b5c7-73ea5c97add4", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts PRE-TEST: Create 16 orders by guest in FO PRE-TEST: Create order by guest in FO should validate the order", + "timedOut": false, + "duration": 2426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_preTest_15_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "054ca04e-d56a-4aca-8ab5-42b9fdc416a2", + "parentUUID": "17035304-5491-4ea3-b5c7-73ea5c97add4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eb274b80-c690-4fce-b97e-4b2402dc880c", + "026e9229-6090-4903-bd0d-c7974725307b", + "ec1bcc0a-ae3c-4532-ae14-57e0ef7c89f6", + "c9ab8b40-1005-4319-916a-8c9626bdbc28", + "054ca04e-d56a-4aca-8ab5-42b9fdc416a2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11254, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ec491587-fe25-47f9-b82b-5571590379db", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Pagination next and previous should login in BO", + "timedOut": false, + "duration": 1817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6b05f22-65d4-4259-a1bb-5ddb28130d4b", + "parentUUID": "ec491587-fe25-47f9-b82b-5571590379db", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Pagination next and previous should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_goToShoppingCartsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3f0eec8-ae85-4d7f-8d9e-75e58985944f", + "parentUUID": "ec491587-fe25-47f9-b82b-5571590379db", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d53fed4-1bc9-4ac6-b003-023ee31f8665", + "parentUUID": "ec491587-fe25-47f9-b82b-5571590379db", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Pagination next and previous should click on next", + "timedOut": false, + "duration": 1034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3892e565-bccd-4c5e-8e6d-e63625ada473", + "parentUUID": "ec491587-fe25-47f9-b82b-5571590379db", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Pagination next and previous should click on previous", + "timedOut": false, + "duration": 1046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b66fab0a-6738-48e6-bedc-832195951676", + "parentUUID": "ec491587-fe25-47f9-b82b-5571590379db", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 300 per page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Pagination next and previous should change the items number to 300 per page", + "timedOut": false, + "duration": 535, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_changeItemNumberTo300\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo300', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.selectPaginationLimit(page, 300)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40d7a082-3ab3-47d2-a85f-5acf0eed3a24", + "parentUUID": "ec491587-fe25-47f9-b82b-5571590379db", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f6b05f22-65d4-4259-a1bb-5ddb28130d4b", + "d3f0eec8-ae85-4d7f-8d9e-75e58985944f", + "1d53fed4-1bc9-4ac6-b003-023ee31f8665", + "3892e565-bccd-4c5e-8e6d-e63625ada473", + "b66fab0a-6738-48e6-bedc-832195951676", + "40d7a082-3ab3-47d2-a85f-5acf0eed3a24" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8742, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f6259e27-7339-4436-a408-2b39d646bf59", + "title": "Sort shopping cart table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by customer lastName start by 'guest'", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should filter by customer lastName start by 'guest'", + "timedOut": false, + "duration": 489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_filterToSort\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToSort', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'c!lastname', 'guest')];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'c!lastname')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customerData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed027706-fed5-4435-bd95-626509eb9819", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_cart' 'down' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'id_cart' 'down' and check result", + "timedOut": false, + "duration": 1227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "635dc48d-8e24-42e7-b50e-2e9c1e17f388", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'status' 'up' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'status' 'up' and check result", + "timedOut": false, + "duration": 1234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByOrderIDAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcbc97d3-6eaf-4cd1-9960-92ccd2863f01", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'status' 'down' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'status' 'down' and check result", + "timedOut": false, + "duration": 1185, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByOrderIDDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91bb7ecb-e932-44d9-8080-5643eeadbb09", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'ca!name' 'up' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'ca!name' 'up' and check result", + "timedOut": false, + "duration": 1198, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByCarrierAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6f1dfe7-d82f-4e48-89da-3e7c8fd2da1d", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'ca!name' 'down' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'ca!name' 'down' and check result", + "timedOut": false, + "duration": 1176, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByCarrierDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fabe54fc-027c-4b77-9b69-7a3ad78778f3", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date' 'up' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'date' 'up' and check result", + "timedOut": false, + "duration": 1244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByDateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed2116ee-3f83-481e-9f64-529bfb6cb4a3", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date' 'down' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'date' 'down' and check result", + "timedOut": false, + "duration": 1205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByDateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b86933db-e5e4-41e2-ba63-39524bf747b8", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_guest' 'up' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'id_guest' 'up' and check result", + "timedOut": false, + "duration": 1179, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByOnlineAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3272c5bf-415c-471d-9a9c-251c389254ab", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_guest' 'down' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'id_guest' 'down' and check result", + "timedOut": false, + "duration": 1183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByOnlineDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1eb23ae5-8f53-4d97-9dfa-13649ed893b4", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_cart' 'up' and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should sort by 'id_cart' 'up' and check result", + "timedOut": false, + "duration": 1211, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ef3705c-5665-4797-8a34-b3a1d94cb949", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts Sort shopping cart table should reset all filters", + "timedOut": false, + "duration": 3105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_resetAfterSort\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterSort', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "791c287d-b9aa-4570-9644-c9981b8766f7", + "parentUUID": "f6259e27-7339-4436-a408-2b39d646bf59", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ed027706-fed5-4435-bd95-626509eb9819", + "635dc48d-8e24-42e7-b50e-2e9c1e17f388", + "fcbc97d3-6eaf-4cd1-9960-92ccd2863f01", + "91bb7ecb-e932-44d9-8080-5643eeadbb09", + "b6f1dfe7-d82f-4e48-89da-3e7c8fd2da1d", + "fabe54fc-027c-4b77-9b69-7a3ad78778f3", + "ed2116ee-3f83-481e-9f64-529bfb6cb4a3", + "b86933db-e5e4-41e2-ba63-39524bf747b8", + "3272c5bf-415c-471d-9a9c-251c389254ab", + "1eb23ae5-8f53-4d97-9dfa-13649ed893b4", + "3ef3705c-5665-4797-8a34-b3a1d94cb949", + "791c287d-b9aa-4570-9644-c9981b8766f7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15636, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "title": "POST-TEST: Delete customers by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/02_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts POST-TEST: Delete customers by bulk actions \"before all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5944125d-72a6-4ab7-b77e-73dc8eca3b9a", + "parentUUID": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts POST-TEST: Delete customers by bulk actions \"after all\" hook in \"POST-TEST: Delete customers by bulk actions\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f10dad95-9542-4f93-a48d-b5c6936e8b48", + "parentUUID": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts POST-TEST: Delete customers by bulk actions should login in BO", + "timedOut": false, + "duration": 1786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68048824-0a35-457c-9517-30f1a5a3666b", + "parentUUID": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts POST-TEST: Delete customers by bulk actions should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5129, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a754550-7d8b-4b18-8eba-db5166a08fda", + "parentUUID": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 2023, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a10a9bd-2acf-468b-a18c-6d3a59a26c67", + "parentUUID": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'email'", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts POST-TEST: Delete customers by bulk actions should filter list by 'email'", + "timedOut": false, + "duration": 1275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_postTest_1_filterToBulkEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', filterBy, value)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, filterBy)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6407da9d-232f-40f7-beed-7c6ce917d2b9", + "parentUUID": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customers with Bulk Actions and check result", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts POST-TEST: Delete customers by bulk actions should delete customers with Bulk Actions and check result", + "timedOut": false, + "duration": 1757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_postTest_1_bulkDeleteCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomersBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9ad5e3c-5072-4bae-a14c-2c4694221d71", + "parentUUID": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : Sort and pagination shopping carts POST-TEST: Delete customers by bulk actions should reset all filters", + "timedOut": false, + "duration": 391, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_sortAndPagination_postTest_1_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.below(numberOfCustomers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "089f446a-a356-4f87-8fa1-a7f84fe23f75", + "parentUUID": "ba576904-2d76-4d47-bdba-0338cce48ac8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "68048824-0a35-457c-9517-30f1a5a3666b", + "3a754550-7d8b-4b18-8eba-db5166a08fda", + "4a10a9bd-2acf-468b-a18c-6d3a59a26c67", + "6407da9d-232f-40f7-beed-7c6ce917d2b9", + "a9ad5e3c-5072-4bae-a14c-2c4694221d71", + "089f446a-a356-4f87-8fa1-a7f84fe23f75" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12361, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ab13383-6c6c-4818-8ea5-c40be715a875", + "title": "BO - Orders - Shopping carts : View carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Shopping carts : View carts\"", + "fullTitle": "BO - Orders - Shopping carts : View carts \"before all\" hook in \"BO - Orders - Shopping carts : View carts\"", + "timedOut": false, + "duration": 71, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46f63ea0-2770-4acb-9ee2-c349af4d069f", + "parentUUID": "1ab13383-6c6c-4818-8ea5-c40be715a875", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Shopping carts : View carts\"", + "fullTitle": "BO - Orders - Shopping carts : View carts \"after all\" hook in \"BO - Orders - Shopping carts : View carts\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "90ce7cb4-bdcd-4900-a5b5-f8e3b16b0772", + "parentUUID": "1ab13383-6c6c-4818-8ea5-c40be715a875", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "278aac37-d933-4e9a-ba05-960d12c7f1cb", + "title": "PRE-TEST: Create customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create customer\"", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create customer \"before all\" hook in \"PRE-TEST: Create customer\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42f112b0-311a-4ab0-8bc0-473534941208", + "parentUUID": "278aac37-d933-4e9a-ba05-960d12c7f1cb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create customer\"", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create customer \"after all\" hook in \"PRE-TEST: Create customer\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "47de80fe-a3d4-4220-8438-7b7dd092eaff", + "parentUUID": "278aac37-d933-4e9a-ba05-960d12c7f1cb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create customer should login in BO", + "timedOut": false, + "duration": 1815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a085e6f3-0088-41c7-909c-93e1fd717ba9", + "parentUUID": "278aac37-d933-4e9a-ba05-960d12c7f1cb", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d9855ef-832c-4397-a81c-77a1976817b2", + "parentUUID": "278aac37-d933-4e9a-ba05-960d12c7f1cb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create customer should go to add new customer page", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_1_goToAddNewCustomerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCustomerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "328b1d20-7a7a-4990-8081-9fbbc891885a", + "parentUUID": "278aac37-d933-4e9a-ba05-960d12c7f1cb", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer and check result", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create customer should create customer and check result", + "timedOut": false, + "duration": 1658, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_1_createCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14a203f9-2268-4619-a73e-bc932121e0de", + "parentUUID": "278aac37-d933-4e9a-ba05-960d12c7f1cb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a085e6f3-0088-41c7-909c-93e1fd717ba9", + "7d9855ef-832c-4397-a81c-77a1976817b2", + "328b1d20-7a7a-4990-8081-9fbbc891885a", + "14a203f9-2268-4619-a73e-bc932121e0de" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9434, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "faf6525f-015a-4a40-8d87-bc20c8e30c09", + "title": "PRE-TEST: Create address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create address \"before all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b28fcac9-2fac-4cae-84aa-9b789d211f28", + "parentUUID": "faf6525f-015a-4a40-8d87-bc20c8e30c09", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create address \"after all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5fec2622-0a13-493a-a05b-d61d9e6f028f", + "parentUUID": "faf6525f-015a-4a40-8d87-bc20c8e30c09", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create address should login in BO", + "timedOut": false, + "duration": 1785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dad23f7-cf06-4a35-9ce8-f066b4486e6b", + "parentUUID": "faf6525f-015a-4a40-8d87-bc20c8e30c09", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create address should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_2_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd70caf8-85c6-40b6-9898-1efc56ad38bc", + "parentUUID": "faf6525f-015a-4a40-8d87-bc20c8e30c09", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create address should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_2_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68d42027-7695-40d3-b258-baae913cc92c", + "parentUUID": "faf6525f-015a-4a40-8d87-bc20c8e30c09", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create address should go to add new address page", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_2_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5ffcec2-e2fa-4841-aa88-ed18f9b376a9", + "parentUUID": "faf6525f-015a-4a40-8d87-bc20c8e30c09", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create address should create address and check result", + "timedOut": false, + "duration": 2552, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_2_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dd76daa-084a-428b-a9fa-25129277ab5a", + "parentUUID": "faf6525f-015a-4a40-8d87-bc20c8e30c09", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5dad23f7-cf06-4a35-9ce8-f066b4486e6b", + "fd70caf8-85c6-40b6-9898-1efc56ad38bc", + "68d42027-7695-40d3-b258-baae913cc92c", + "d5ffcec2-e2fa-4841-aa88-ed18f9b376a9", + "8dd76daa-084a-428b-a9fa-25129277ab5a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12121, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "88c471df-df5c-4f95-9517-236671b4cfcd", + "title": "PRE-TEST: Create a non-ordered shopping cart being connected in the FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create a non-ordered shopping cart being connected in the FO \"before all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7878d9b2-fec7-452f-9df7-eb4f6ab149ee", + "parentUUID": "88c471df-df5c-4f95-9517-236671b4cfcd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create a non-ordered shopping cart being connected in the FO \"after all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d63efe19-7984-459a-90dc-15cb740bbcf3", + "parentUUID": "88c471df-df5c-4f95-9517-236671b4cfcd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create a non-ordered shopping cart being connected in the FO should open FO page", + "timedOut": false, + "duration": 1729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5721a85f-ffac-46b8-a508-29fd25f3a5ad", + "parentUUID": "88c471df-df5c-4f95-9517-236671b4cfcd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create a non-ordered shopping cart being connected in the FO should go to login page", + "timedOut": false, + "duration": 700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31644fe2-c694-47d4-9c47-aa43c391129f", + "parentUUID": "88c471df-df5c-4f95-9517-236671b4cfcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create a non-ordered shopping cart being connected in the FO should sign in with customer", + "timedOut": false, + "duration": 635, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2c8ccd7-a9d0-4514-83c6-010e1b6c593d", + "parentUUID": "88c471df-df5c-4f95-9517-236671b4cfcd", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product Hummingbird printed t-shirt", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create a non-ordered shopping cart being connected in the FO should search for the product Hummingbird printed t-shirt", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_3_searchForProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, orderData.products[0].product.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "048bd9e9-63d7-4eef-8fe5-bb3cc0368bea", + "parentUUID": "88c471df-df5c-4f95-9517-236671b4cfcd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create a non-ordered shopping cart being connected in the FO should add product to cart", + "timedOut": false, + "duration": 6489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a37a73ce-2b31-4139-9675-618b00555a57", + "parentUUID": "88c471df-df5c-4f95-9517-236671b4cfcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders - Shopping carts : View carts PRE-TEST: Create a non-ordered shopping cart being connected in the FO should sign out from FO", + "timedOut": false, + "duration": 3159, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_preTest_3_signOutFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 4:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "275f72a1-3437-49f9-8e1d-51a2e0e87c68", + "parentUUID": "88c471df-df5c-4f95-9517-236671b4cfcd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5721a85f-ffac-46b8-a508-29fd25f3a5ad", + "31644fe2-c694-47d4-9c47-aa43c391129f", + "b2c8ccd7-a9d0-4514-83c6-010e1b6c593d", + "048bd9e9-63d7-4eef-8fe5-bb3cc0368bea", + "a37a73ce-2b31-4139-9675-618b00555a57", + "275f72a1-3437-49f9-8e1d-51a2e0e87c68" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13532, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "title": "View carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should login in BO", + "timedOut": false, + "duration": 1820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "830bbe54-cc0a-4e31-9b66-af9376ea2aff", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_goToShoppingCartsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70fe358c-3d2a-4845-ab36-005d87a0cd58", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of shopping carts", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should reset all filters and get number of shopping carts", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCarts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8778dd08-c8a8-47ed-a2d8-554ed293ac26", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should search the non ordered shopping cart", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should search the non ordered shopping cart", + "timedOut": false, + "duration": 410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_searchNonOrderedShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonOrderedShoppingCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'status', 'Non ordered')];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.equal(1);\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'status')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('Non ordered');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5c142b0-872b-4982-9232-0de8a7687c3d", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should go the Shopping Cart details page", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should go the Shopping Cart details page", + "timedOut": false, + "duration": 1219, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_goToShoppingCartDetailPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastShoppingCartId, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartDetailPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'id_cart')];\n case 2:\n lastShoppingCartId = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToViewPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(lastShoppingCartId));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5084369e-324e-4481-8baa-b0df45428575", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart total", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the cart total", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkCardTotal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartTotal;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCardTotal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getCartTotal(page)];\n case 2:\n cartTotal = _a.sent();\n (0, chai_1.expect)(cartTotal.toString())\n .to.be.equal((products_1.default.demo_1.finalPrice).toFixed(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8c4f5aa-9c7c-49ad-a6a5-781f05ec773d", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the customer Information Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the customer Information Block", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkCustomerInformationBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerInformationBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getCustomerInformation(page)];\n case 2:\n customerInformation = _a.sent();\n (0, chai_1.expect)(customerInformation)\n .to.contains(\"\".concat(customerData.socialTitle, \" \").concat(customerData.firstName, \" \").concat(customerData.lastName))\n .and.to.contains(customerData.email)\n .and.to.contains(todayCartFormat);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3a70518-18f4-4b00-8356-14521d28b4d4", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order Information Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the order Information Block", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkOrderInformationBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderInformation, hasButtonCreateOrderFromCart;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderInformationBlock1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getOrderInformation(page)];\n case 2:\n orderInformation = _a.sent();\n (0, chai_1.expect)(orderInformation).to.contains('No order was created from this cart.');\n return [4 /*yield*/, view_1.default.hasButtonCreateOrderFromCart(page)];\n case 3:\n hasButtonCreateOrderFromCart = _a.sent();\n (0, chai_1.expect)(hasButtonCreateOrderFromCart).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b2e02f9-dd28-4373-bf7f-12fdb0b9766d", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's image in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's image in cart Summary Block", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProductimageInCartSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "028bca9e-717a-415e-ac37-b910fca2a1fd", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's title in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's title in cart Summary Block", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProducttitleInCartSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93351e59-37b6-4aef-adcb-040b2734b40b", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's unit_price in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's unit_price in cart Summary Block", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProductunit_priceInCartSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f6e64ad-8cc8-4a86-aacc-c55adf1a8f92", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's quantity in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's quantity in cart Summary Block", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProductquantityInCartSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63ed9110-28a3-413f-a1ad-fd1891d7ecb8", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's total in cart Summary Block", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProducttotalInCartSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "659f380c-67bb-4d1c-91e1-723a28deb599", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total_cost_products in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's total_cost_products in cart Summary Block", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProducttotal_cost_productsInCartSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fc6aca8-cf90-41ca-843b-335bd1e38663", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total_cart in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's total_cart in cart Summary Block", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProducttotal_cartInCartSummaryBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock1\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91c9ef97-68df-4990-b526-ced0af427039", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on \"Create an order from this cart.\" button", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should click on \"Create an order from this cart.\" button", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_clickCreateOrderFromCartButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickCreateOrderFromCartButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.createOrderFromThisCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d558c5ee-7493-469e-82eb-7e760f146906", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the order and create it", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should fill the order and create it", + "timedOut": false, + "duration": 1886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_fillAndCreateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillAndCreateOrder', baseContext)];\n case 1:\n _a.sent();\n // Choose payment method\n return [4 /*yield*/, add_1.default.setPaymentMethod(page, paymentMethods_1.default.checkPayment.moduleName)];\n case 2:\n // Choose payment method\n _a.sent();\n // Set order status\n return [4 /*yield*/, add_1.default.setOrderStatus(page, orderStatuses_1.default.paymentAccepted)];\n case 3:\n // Set order status\n _a.sent();\n // Create the order\n return [4 /*yield*/, add_1.default.clickOnCreateOrderButton(page)];\n case 4:\n // Create the order\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(productsBlock_1.default.pageTitle);\n return [4 /*yield*/, productsBlock_1.default.getOrderID(page)];\n case 6:\n orderId = _a.sent();\n (0, chai_1.expect)(orderId).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af40a721-4216-4101-903a-091c80113713", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_goToShoppingCartsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ec794d6-1d63-4a3f-a0cd-283a659cb27d", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should search a shopping cart with a specific order Id", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should search a shopping cart with a specific order Id", + "timedOut": false, + "duration": 403, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_searchSpecificOrderShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchSpecificOrderShoppingCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'status', orderId.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.equal(1);\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'status')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(orderId);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5eb0122b-f2f6-483d-8d9b-e6b02e7dc717", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should go the Shopping Cart details page", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should go the Shopping Cart details page", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_goToShoppingCartDetailPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastShoppingCartId, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartDetailPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'id_cart')];\n case 2:\n lastShoppingCartId = _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.goToViewPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle(lastShoppingCartId));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5446c958-319a-4dbf-95f0-7c18a7cbf948", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the customer Information Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the customer Information Block", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkCustomerInformationBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerInformationBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getCustomerInformation(page)];\n case 2:\n customerInformation = _a.sent();\n (0, chai_1.expect)(customerInformation)\n .to.contains(\"\".concat(customerData.socialTitle, \" \").concat(customerData.firstName, \" \").concat(customerData.lastName))\n .and.to.contains(customerData.email)\n .and.to.contains(todayCartFormat);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a4b5b1d-ae18-4b37-9b42-1d12812ed8dd", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order Information Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the order Information Block", + "timedOut": false, + "duration": 1012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkOrderInformationBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderInformation, hasButtonCreateOrderFromCart;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderInformationBlock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getOrderInformation(page)];\n case 2:\n orderInformation = _a.sent();\n (0, chai_1.expect)(orderInformation).to.contains(\"Order #\".concat(orderId));\n return [4 /*yield*/, view_1.default.hasButtonCreateOrderFromCart(page)];\n case 3:\n hasButtonCreateOrderFromCart = _a.sent();\n (0, chai_1.expect)(hasButtonCreateOrderFromCart).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb1b5d00-4b92-4e59-ace3-eb0eeb85caba", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's image in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's image in cart Summary Block", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProductimageInCartSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f963db2-71b7-4b03-ba97-7673029c74e8", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's title in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's title in cart Summary Block", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProducttitleInCartSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "302dc3fd-7815-4957-a7de-ed9ed571eead", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's unit_price in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's unit_price in cart Summary Block", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProductunit_priceInCartSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54c4f701-0afb-4944-bdca-e36e1059cfc0", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's quantity in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's quantity in cart Summary Block", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProductquantityInCartSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10f221b5-de1a-4d56-9eea-7901171109ae", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's total in cart Summary Block", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProducttotalInCartSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "328ff71e-d6b9-4e73-a1e9-19694c7d5d2c", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total_cost_products in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's total_cost_products in cart Summary Block", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProducttotal_cost_productsInCartSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bdc6e87-826e-428a-bcf1-df36ae4ae13b", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product's total_cart in cart Summary Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should check the product's total_cart in cart Summary Block", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_checkProducttotal_cartInCartSummaryBlock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartSummary;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default\n .addContextItem(this, 'testIdentifier', \"checkProduct\".concat(test.args.columnName, \"InCartSummaryBlock2\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, test.args.columnName, test.args.row === undefined ? 1 : test.args.row)];\n case 2:\n cartSummary = _a.sent();\n if (test.args.columnName === 'title') {\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result).and.to.contains(test.args.result_2);\n }\n (0, chai_1.expect)(cartSummary).to.contains(test.args.result);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ea0d875-4a3e-445f-be18-870c2195fc5a", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the order Link in the order Information Block", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should click on the order Link in the order Information Block", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_clickOrderLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, orderDetailId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOrderLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.goToOrderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(productsBlock_1.default.pageTitle);\n return [4 /*yield*/, productsBlock_1.default.getOrderID(page)];\n case 4:\n orderDetailId = _a.sent();\n (0, chai_1.expect)(orderDetailId).to.be.eq(orderId);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51b02d8d-b28a-4b7a-aad8-d4d5bb774ef1", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_goToShoppingCartsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "576760d4-c542-4a65-91c6-9cc9d048de78", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and check number of shopping carts", + "fullTitle": "BO - Orders - Shopping carts : View carts View carts should reset all filters and check number of shopping carts", + "timedOut": false, + "duration": 3080, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dca5326c-a6c6-4b8c-95ad-126ac58450cd", + "parentUUID": "a9d084b2-78ed-4b40-8536-e80e9350d33b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "830bbe54-cc0a-4e31-9b66-af9376ea2aff", + "70fe358c-3d2a-4845-ab36-005d87a0cd58", + "8778dd08-c8a8-47ed-a2d8-554ed293ac26", + "e5c142b0-872b-4982-9232-0de8a7687c3d", + "5084369e-324e-4481-8baa-b0df45428575", + "a8c4f5aa-9c7c-49ad-a6a5-781f05ec773d", + "d3a70518-18f4-4b00-8356-14521d28b4d4", + "8b2e02f9-dd28-4373-bf7f-12fdb0b9766d", + "028bca9e-717a-415e-ac37-b910fca2a1fd", + "93351e59-37b6-4aef-adcb-040b2734b40b", + "7f6e64ad-8cc8-4a86-aacc-c55adf1a8f92", + "63ed9110-28a3-413f-a1ad-fd1891d7ecb8", + "659f380c-67bb-4d1c-91e1-723a28deb599", + "6fc6aca8-cf90-41ca-843b-335bd1e38663", + "91c9ef97-68df-4990-b526-ced0af427039", + "d558c5ee-7493-469e-82eb-7e760f146906", + "af40a721-4216-4101-903a-091c80113713", + "4ec794d6-1d63-4a3f-a0cd-283a659cb27d", + "5eb0122b-f2f6-483d-8d9b-e6b02e7dc717", + "5446c958-319a-4dbf-95f0-7c18a7cbf948", + "0a4b5b1d-ae18-4b37-9b42-1d12812ed8dd", + "eb1b5d00-4b92-4e59-ace3-eb0eeb85caba", + "0f963db2-71b7-4b03-ba97-7673029c74e8", + "302dc3fd-7815-4957-a7de-ed9ed571eead", + "54c4f701-0afb-4944-bdca-e36e1059cfc0", + "10f221b5-de1a-4d56-9eea-7901171109ae", + "328ff71e-d6b9-4e73-a1e9-19694c7d5d2c", + "2bdc6e87-826e-428a-bcf1-df36ae4ae13b", + "7ea0d875-4a3e-445f-be18-870c2195fc5a", + "51b02d8d-b28a-4b7a-aad8-d4d5bb774ef1", + "576760d4-c542-4a65-91c6-9cc9d048de78", + "dca5326c-a6c6-4b8c-95ad-126ac58450cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 24244, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/03_viewCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Shopping carts : View carts POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "745d9f31-f5bf-4fd9-83fb-3f092215ccc1", + "parentUUID": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "BO - Orders - Shopping carts : View carts POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "57fa7521-fc19-4d0f-8cb9-d7b28c9692d3", + "parentUUID": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Shopping carts : View carts POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5642506-fec1-446e-8b89-531cc785f349", + "parentUUID": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "BO - Orders - Shopping carts : View carts POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5075, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "320a828a-ca28-44f4-ac69-6aa82655a22b", + "parentUUID": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Shopping carts : View carts POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "009ecbc3-d76f-46e1-8144-1cbd9db2e003", + "parentUUID": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "BO - Orders - Shopping carts : View carts POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1149, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aecac7e3-16c0-4cc6-8bbd-9aa05b739f5a", + "parentUUID": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "BO - Orders - Shopping carts : View carts POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1629, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "007fb4fa-233a-4627-9342-89963c829b1f", + "parentUUID": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "BO - Orders - Shopping carts : View carts POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_viewCarts_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4051a61-5e4b-46c3-99e7-dec019d6fb15", + "parentUUID": "f508e7bc-255a-4e29-a1f3-11a6f9cf4cf0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c5642506-fec1-446e-8b89-531cc785f349", + "320a828a-ca28-44f4-ac69-6aa82655a22b", + "009ecbc3-d76f-46e1-8144-1cbd9db2e003", + "aecac7e3-16c0-4cc6-8bbd-9aa05b739f5a", + "007fb4fa-233a-4627-9342-89963c829b1f", + "f4051a61-5e4b-46c3-99e7-dec019d6fb15" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12071, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "title": "BO - Orders - Shopping carts: Export carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/04_exportCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/04_exportCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Shopping carts: Export carts\"", + "fullTitle": "BO - Orders - Shopping carts: Export carts \"before all\" hook in \"BO - Orders - Shopping carts: Export carts\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ae0a208-cbf4-4b28-bd46-5722d4fafd39", + "parentUUID": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Shopping carts: Export carts\"", + "fullTitle": "BO - Orders - Shopping carts: Export carts \"after all\" hook in \"BO - Orders - Shopping carts: Export carts\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c6ade4a0-1ac6-4a52-ad9d-4e30c005a1ef", + "parentUUID": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Shopping carts: Export carts should login in BO", + "timedOut": false, + "duration": 1823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d29f7431-e046-4b4d-98e2-d4253a0c5722", + "parentUUID": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders - Shopping carts: Export carts should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_exportCarts_goToShoppingCartsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8e64a34-66b2-4b80-a588-0b95da495e4c", + "parentUUID": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 300 per page", + "fullTitle": "BO - Orders - Shopping carts: Export carts should change the items number to 300 per page", + "timedOut": false, + "duration": 474, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_exportCarts_changeItemNumberTo300\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo300', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.selectPaginationLimit(page, 300)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b633030-80e2-4586-9944-8337760fa7ec", + "parentUUID": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "isHook": false, + "skipped": false + }, + { + "title": "should export carts to a csv file", + "fullTitle": "BO - Orders - Shopping carts: Export carts should export carts to a csv file", + "timedOut": false, + "duration": 370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_exportCarts_exportCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var doesFileExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'exportCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.exportDataToCsv(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'Export of data has failed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d5679c7-019d-4c47-bdb9-c687cb608aba", + "parentUUID": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "isHook": false, + "skipped": false + }, + { + "title": "should check existence of carts data in csv file", + "fullTitle": "BO - Orders - Shopping carts: Export carts should check existence of carts data in csv file", + "timedOut": false, + "duration": 1310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_exportCarts_checkAllCartsInCsvFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders, row, cartInCsvFormat, textExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllCartsInCsvFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 2:\n numberOfOrders = _a.sent();\n row = 1;\n _a.label = 3;\n case 3:\n if (!(row <= numberOfOrders)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getCartInCsvFormat(page, row)];\n case 4:\n cartInCsvFormat = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInFile(filePath, cartInCsvFormat, true, true)];\n case 5:\n textExist = _a.sent();\n (0, chai_1.expect)(textExist, \"\".concat(cartInCsvFormat, \" was not found in the file\")).to.eq(true);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 3];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b425602-27c3-42dd-a7fb-8ec1e168b048", + "parentUUID": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to default pagination number", + "fullTitle": "BO - Orders - Shopping carts: Export carts should go back to default pagination number", + "timedOut": false, + "duration": 472, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_exportCarts_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.selectPaginationLimit(page, 50)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8224750-ebb2-4068-9db1-dabd703ac5ac", + "parentUUID": "65301c0b-7504-4b12-92a0-2bc8cc11b03c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d29f7431-e046-4b4d-98e2-d4253a0c5722", + "b8e64a34-66b2-4b80-a588-0b95da495e4c", + "8b633030-80e2-4586-9944-8337760fa7ec", + "9d5679c7-019d-4c47-bdb9-c687cb608aba", + "6b425602-27c3-42dd-a7fb-8ec1e168b048", + "a8224750-ebb2-4068-9db1-dabd703ac5ac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8266, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "68cafc18-ab22-4094-9ee6-614505efb285", + "title": "BO - Orders : Create shopping cart and delete abandoned one", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/05_deleteAbandonedCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/05_deleteAbandonedCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders : Create shopping cart and delete abandoned one\"", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one \"before all\" hook in \"BO - Orders : Create shopping cart and delete abandoned one\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9b0489f-82f8-4367-b10d-eacf58459bdb", + "parentUUID": "68cafc18-ab22-4094-9ee6-614505efb285", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders : Create shopping cart and delete abandoned one\"", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one \"after all\" hook in \"BO - Orders : Create shopping cart and delete abandoned one\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6e064b25-077f-47f4-b18a-5c7151fe682a", + "parentUUID": "68cafc18-ab22-4094-9ee6-614505efb285", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "title": "PRE-TEST: Create a non-ordered shopping cart being connected in the FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/05_deleteAbandonedCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/05_deleteAbandonedCarts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one PRE-TEST: Create a non-ordered shopping cart being connected in the FO \"before all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9e11acd-5b7a-45fb-875a-d2f29066004c", + "parentUUID": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one PRE-TEST: Create a non-ordered shopping cart being connected in the FO \"after all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "060adb29-2376-4e0f-8a4b-c9d787d49c35", + "parentUUID": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one PRE-TEST: Create a non-ordered shopping cart being connected in the FO should open FO page", + "timedOut": false, + "duration": 1859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3315c97a-d4ef-4131-9047-475aa5da4329", + "parentUUID": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one PRE-TEST: Create a non-ordered shopping cart being connected in the FO should go to login page", + "timedOut": false, + "duration": 700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e67cb1e5-3900-4c06-a9b4-9e424222e69c", + "parentUUID": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one PRE-TEST: Create a non-ordered shopping cart being connected in the FO should sign in with customer", + "timedOut": false, + "duration": 573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55439a66-d2ad-42b2-bbcb-301bd55c3c67", + "parentUUID": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product Hummingbird printed t-shirt", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one PRE-TEST: Create a non-ordered shopping cart being connected in the FO should search for the product Hummingbird printed t-shirt", + "timedOut": false, + "duration": 857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_preTest_1_searchForProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, orderData.products[0].product.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cecd7f31-767c-435e-a318-fec6e771188c", + "parentUUID": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one PRE-TEST: Create a non-ordered shopping cart being connected in the FO should add product to cart", + "timedOut": false, + "duration": 6516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dbe39fe-bf50-483b-b17a-fcccb9a3a1ad", + "parentUUID": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one PRE-TEST: Create a non-ordered shopping cart being connected in the FO should sign out from FO", + "timedOut": false, + "duration": 3172, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_preTest_1_signOutFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 4:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f661e9f8-b7e3-4583-8fd3-70fc73b8219e", + "parentUUID": "1a2df3a2-84d2-4df3-a752-6b5febbabc48", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3315c97a-d4ef-4131-9047-475aa5da4329", + "e67cb1e5-3900-4c06-a9b4-9e424222e69c", + "55439a66-d2ad-42b2-bbcb-301bd55c3c67", + "cecd7f31-767c-435e-a318-fec6e771188c", + "8dbe39fe-bf50-483b-b17a-fcccb9a3a1ad", + "f661e9f8-b7e3-4583-8fd3-70fc73b8219e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13677, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aa139bbc-289a-48c0-9caf-65178f1b2b1f", + "title": "Delete abandoned carts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/02_orders/05_shoppingCarts/05_deleteAbandonedCarts.ts", + "file": "/campaigns/functional/BO/02_orders/05_shoppingCarts/05_deleteAbandonedCarts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one Delete abandoned carts should login in BO", + "timedOut": false, + "duration": 1768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "367f6acc-16f3-4791-88d1-1e9f8709f60c", + "parentUUID": "aa139bbc-289a-48c0-9caf-65178f1b2b1f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one Delete abandoned carts should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_goToShoppingCartsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d546ffd-4e97-4bd2-8758-70017cbd4cf5", + "parentUUID": "aa139bbc-289a-48c0-9caf-65178f1b2b1f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of shopping carts", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one Delete abandoned carts should reset all filters and get number of shopping carts", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCarts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b418fdb-cf07-4cb2-90d2-d61475f9b71e", + "parentUUID": "aa139bbc-289a-48c0-9caf-65178f1b2b1f", + "isHook": false, + "skipped": false + }, + { + "title": "should search the non ordered shopping carts", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one Delete abandoned carts should search the non ordered shopping carts", + "timedOut": false, + "duration": 396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_searchNonOrderedShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonOrderedShoppingCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'status', 'Non ordered')];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.be.at.most(numberOfShoppingCarts);\n numberOfShoppingCarts -= numberOfShoppingCartsAfterFilter;\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfShoppingCartsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, row, 'status')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('Non ordered');\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b3c59bf-6d2f-4a68-9f81-d32b2e64f5ab", + "parentUUID": "aa139bbc-289a-48c0-9caf-65178f1b2b1f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the non ordered shopping carts", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one Delete abandoned carts should delete the non ordered shopping carts", + "timedOut": false, + "duration": 1191, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_deleteNonOrderedShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteNonOrderedShoppingCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.bulkDeleteShoppingCarts(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(shoppingCarts_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9517675d-31c1-4f80-a4e3-2ae022c00dd8", + "parentUUID": "aa139bbc-289a-48c0-9caf-65178f1b2b1f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders : Create shopping cart and delete abandoned one Delete abandoned carts should reset all filters", + "timedOut": false, + "duration": 3003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_orders_shoppingCarts_deleteAbandonedCarts_resetAfterDeleteNonOrderedCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteNonOrderedCarts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCartsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterReset).to.be.equal(numberOfShoppingCarts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "feffc96b-8618-47b9-93c6-b61d4ad68917", + "parentUUID": "aa139bbc-289a-48c0-9caf-65178f1b2b1f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "367f6acc-16f3-4791-88d1-1e9f8709f60c", + "7d546ffd-4e97-4bd2-8758-70017cbd4cf5", + "8b418fdb-cf07-4cb2-90d2-d61475f9b71e", + "7b3c59bf-6d2f-4a68-9f81-d32b2e64f5ab", + "9517675d-31c1-4f80-a4e3-2ae022c00dd8", + "feffc96b-8618-47b9-93c6-b61d4ad68917" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10136, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "5be69be8-f39c-4bab-ad0c-24ef2218bd2e", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 397, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a55eebf-db0b-48d8-b1ce-e8174db072e8", + "parentUUID": "5be69be8-f39c-4bab-ad0c-24ef2218bd2e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8599ece6-528f-44fb-8b53-d4d5ff5febb3", + "parentUUID": "5be69be8-f39c-4bab-ad0c-24ef2218bd2e", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2169899-9461-41f1-a565-5879acb60298", + "parentUUID": "5be69be8-f39c-4bab-ad0c-24ef2218bd2e", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "title": "BO - Payment - Preferences : Configure currency restrictions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/01_currencyRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/01_currencyRestrictions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Payment - Preferences : Configure currency restrictions\"", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions \"before all\" hook in \"BO - Payment - Preferences : Configure currency restrictions\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "403354b3-1913-4e53-9847-1d7a299460bb", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Payment - Preferences : Configure currency restrictions\"", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions \"after all\" hook in \"BO - Payment - Preferences : Configure currency restrictions\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3c062bd6-f09e-4170-a9c6-88d8847e4f0e", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should login in BO", + "timedOut": false, + "duration": 6446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65400736-00db-452f-90fb-eab789d8ed63", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Payment > Preferences' page", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should go to 'Payment > Preferences' page", + "timedOut": false, + "duration": 6649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_goToPreferencesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPreferencesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.paymentParentLink, dashboard_1.default.preferencesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b81f7af-6203-4e30-b52f-a018dcadff3d", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck the euro currency for 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should uncheck the euro currency for 'ps_wirepayment'", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_uncheckps_wirepayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCurrencyRestriction(page, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84507874-87a4-4ed6-a88b-c512215713e7", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should view my shop", + "timedOut": false, + "duration": 1666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56023667-0149-4424-9dfc-4566ed509606", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order and go to payment step", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should create the order and go to payment step", + "timedOut": false, + "duration": 7229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_createOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 9:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9c81eb7-d620-4bdf-be08-649632a67e20", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'ps_wirepayment' payment module", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should check the 'ps_wirepayment' payment module", + "timedOut": false, + "duration": 2003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_checkPaymentModule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be6fa77b-0890-4e7b-9934-3e8220a4be05", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5559a50c-1535-4051-9721-9ca96868484a", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should check the euro currency for 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should check the euro currency for 'ps_wirepayment'", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_checkps_wirepayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCurrencyRestriction(page, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "264d4a84-ee1a-419d-8f59-14439f116f05", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should view my shop", + "timedOut": false, + "duration": 1869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc86c7c2-793c-462d-9577-335ace8c37d9", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order and go to payment step", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should create the order and go to payment step", + "timedOut": false, + "duration": 5885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_createOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 9:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e075686c-deea-4f33-8355-e0fae512dc08", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'ps_wirepayment' payment module", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should check the 'ps_wirepayment' payment module", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_checkPaymentModule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75919f89-cd04-417d-9a11-938ffbbebde6", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dd90031-5f4a-41c3-bdfd-ef342ff8c172", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck the euro currency for 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should uncheck the euro currency for 'ps_checkpayment'", + "timedOut": false, + "duration": 903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_uncheckps_checkpayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCurrencyRestriction(page, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49a71716-668c-48d3-b4f6-2f43a78292bd", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should view my shop", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "750d3914-b95c-4765-87e7-158c0f77c26c", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order and go to payment step", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should create the order and go to payment step", + "timedOut": false, + "duration": 5901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_createOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 9:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "913f5f2d-7cd2-462c-a981-f6ccde8a5846", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'ps_checkpayment' payment module", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should check the 'ps_checkpayment' payment module", + "timedOut": false, + "duration": 2002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_checkPaymentModule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63832f0b-586d-46f4-a916-937ab0243798", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95c7d52e-2974-4c0a-adca-34d8fa18c501", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should check the euro currency for 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should check the euro currency for 'ps_checkpayment'", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_checkps_checkpayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCurrencyRestriction(page, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2d05ac4-b394-46c3-817c-9b18b16bcc8e", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should view my shop", + "timedOut": false, + "duration": 1713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e0e3e9a-2497-45ad-aa8a-c14a7cdf0627", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should create the order and go to payment step", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should create the order and go to payment step", + "timedOut": false, + "duration": 5867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_createOrder3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 9:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ae4a101-6baf-4a0a-af9f-155f9247fe39", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'ps_checkpayment' payment module", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should check the 'ps_checkpayment' payment module", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_checkPaymentModule3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f000946e-cdd6-4d87-840a-a0b535951bab", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure currency restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_currencyRestrictions_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "079ae414-2074-47c6-8eb8-5f044ae3ae0e", + "parentUUID": "d2c15bca-4f0f-411d-ae0c-63c1e41b3172", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "65400736-00db-452f-90fb-eab789d8ed63", + "2b81f7af-6203-4e30-b52f-a018dcadff3d", + "84507874-87a4-4ed6-a88b-c512215713e7", + "56023667-0149-4424-9dfc-4566ed509606", + "e9c81eb7-d620-4bdf-be08-649632a67e20", + "be6fa77b-0890-4e7b-9934-3e8220a4be05", + "5559a50c-1535-4051-9721-9ca96868484a", + "264d4a84-ee1a-419d-8f59-14439f116f05", + "fc86c7c2-793c-462d-9577-335ace8c37d9", + "e075686c-deea-4f33-8355-e0fae512dc08", + "75919f89-cd04-417d-9a11-938ffbbebde6", + "1dd90031-5f4a-41c3-bdfd-ef342ff8c172", + "49a71716-668c-48d3-b4f6-2f43a78292bd", + "750d3914-b95c-4765-87e7-158c0f77c26c", + "913f5f2d-7cd2-462c-a981-f6ccde8a5846", + "63832f0b-586d-46f4-a916-937ab0243798", + "95c7d52e-2974-4c0a-adca-34d8fa18c501", + "a2d05ac4-b394-46c3-817c-9b18b16bcc8e", + "9e0e3e9a-2497-45ad-aa8a-c14a7cdf0627", + "8ae4a101-6baf-4a0a-af9f-155f9247fe39", + "f000946e-cdd6-4d87-840a-a0b535951bab", + "079ae414-2074-47c6-8eb8-5f044ae3ae0e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 52421, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7fb335d7-5854-4283-9d52-7052eb5aceac", + "title": "BO - Payment - Preferences : Configure group restrictions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Payment - Preferences : Configure group restrictions\"", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions \"before all\" hook in \"BO - Payment - Preferences : Configure group restrictions\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96f6dca2-de0f-4f56-8356-ad1f47fecd59", + "parentUUID": "7fb335d7-5854-4283-9d52-7052eb5aceac", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Payment - Preferences : Configure group restrictions\"", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions \"after all\" hook in \"BO - Payment - Preferences : Configure group restrictions\"", + "timedOut": false, + "duration": 17, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5591f073-6b48-46b5-93c1-a018b257feff", + "parentUUID": "7fb335d7-5854-4283-9d52-7052eb5aceac", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions should login in BO", + "timedOut": false, + "duration": 1752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3136c64-3941-4899-83eb-6d444e0a5d93", + "parentUUID": "7fb335d7-5854-4283-9d52-7052eb5aceac", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "44b93e65-7faa-4381-a0ac-d17f6be7e4a2", + "title": "Create two customers in visitor and guest groups", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Create two customers in visitor and guest groups should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 5262, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToCustomersPageToCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPageToCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4598460-5710-4f40-88ba-1429ec3c8c07", + "parentUUID": "44b93e65-7faa-4381-a0ac-d17f6be7e4a2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Create two customers in visitor and guest groups should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_resetBeforeCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetBeforeCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4653dc47-5d80-4dcd-becc-c2ec7fa214ba", + "parentUUID": "44b93e65-7faa-4381-a0ac-d17f6be7e4a2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Create two customers in visitor and guest groups should go to add new customer page", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToAddNewCustomerPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCustomerPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7297f893-4086-4283-afcc-e10b6515fd53", + "parentUUID": "44b93e65-7faa-4381-a0ac-d17f6be7e4a2", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer n°1 and check result", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Create two customers in visitor and guest groups should create customer n°1 and check result", + "timedOut": false, + "duration": 1546, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_createCustomer0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCustomer\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, test.args.customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterCreation).to.be.equal(numberOfCustomers + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5653873-3b5e-4828-babb-bf8beb05851d", + "parentUUID": "44b93e65-7faa-4381-a0ac-d17f6be7e4a2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new customer page", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Create two customers in visitor and guest groups should go to add new customer page", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToAddNewCustomerPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewCustomerPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToAddNewCustomerPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a57b768f-859d-442e-80f8-a97a6464e6ff", + "parentUUID": "44b93e65-7faa-4381-a0ac-d17f6be7e4a2", + "isHook": false, + "skipped": false + }, + { + "title": "should create customer n°2 and check result", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Create two customers in visitor and guest groups should create customer n°2 and check result", + "timedOut": false, + "duration": 1506, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_createCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCustomer\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCustomer(page, test.args.customerData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulCreationMessage);\n return [4 /*yield*/, customers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCustomersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterCreation).to.be.equal(numberOfCustomers + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7bb10cd-2fe1-4506-b401-b6121bdb84ba", + "parentUUID": "44b93e65-7faa-4381-a0ac-d17f6be7e4a2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f4598460-5710-4f40-88ba-1429ec3c8c07", + "4653dc47-5d80-4dcd-becc-c2ec7fa214ba", + "7297f893-4086-4283-afcc-e10b6515fd53", + "f5653873-3b5e-4828-babb-bf8beb05851d", + "a57b768f-859d-442e-80f8-a97a6464e6ff", + "d7bb10cd-2fe1-4506-b401-b6121bdb84ba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12023, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "267d3954-edc7-4b83-b4bd-bf5065f75e95", + "title": "Configure group restrictions and check in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Payment > Preferences' page", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO should go to 'Payment > Preferences' page", + "timedOut": false, + "duration": 3848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPreferencesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPreferencesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.goToSubMenu(page, customers_1.default.paymentParentLink, customers_1.default.preferencesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2166c501-2682-46be-a22d-ca211b83d1ae", + "parentUUID": "267d3954-edc7-4b83-b4bd-bf5065f75e95", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "title": "Configure 'Visitor' group restrictions then check in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should uncheck 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should uncheck 'ps_wirepayment'", + "timedOut": false, + "duration": 723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_uncheck_ps_wirepaymentFromVisitorGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c3f71e7-1f01-4859-86a9-19aef1c735fc", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3b176a2-2efe-464e-8bbb-f6ab04cef8db", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f90be13d-9155-42a8-9809-124eeba76c80", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should login and go to address step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should login and go to address step", + "timedOut": false, + "duration": 1079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_loginToFO00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepLoginComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginToFO\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, group.args.customer)];\n case 3:\n isStepLoginComplete = _a.sent();\n (0, chai_1.expect)(isStepLoginComplete, 'Step Personal information is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4a62710-991d-483b-9678-33a07bc65b12", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should create address then continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should create address then continue to delivery step", + "timedOut": false, + "duration": 1593, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_createAddress00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, address)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8891ba95-4114-40c8-b50b-5705ce65d3cc", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b12a99cb-0eaf-4e73-9c94-0d7ec84950ee", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo00\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "548b0e17-6e66-4e3a-a7f7-f39189279eab", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should uncheck 'ps_checkpayment'", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_uncheck_ps_checkpaymentFromVisitorGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89a79797-5fc8-4a99-978f-bb51e06ac1eb", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4247acbb-cad2-444c-b141-8e1f854c5dc1", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a133d2a-285e-4e6e-a4ca-129cccfc3fca", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4814a578-9a13-4366-b1da-b93a4542ac6c", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 4298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccebd2e2-a601-4d2d-a8e1-b6095c62404c", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15a35914-9a41-4b83-9045-1f191306e3d5", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should check 'ps_wirepayment'", + "timedOut": false, + "duration": 734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_check_ps_wirepaymentFromVisitorGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00f73b01-a27a-4c41-9116-e767d978027b", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c917d0a-e83d-48e3-be28-d3b2a0b55ff5", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3814e72b-7e6b-4935-8cf3-64061af21c38", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "068983b0-6202-4b5d-a247-b2c388416db5", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f0cfae8-e0e9-41f3-b348-6c4ba9e0a516", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95b96cea-5e12-4560-af42-049d0b4273af", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should check 'ps_checkpayment'", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_check_ps_checkpaymentFromVisitorGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e50d7d43-4820-4762-8126-90924b670d5e", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afc4eee8-fe5f-47c1-942e-46728643bf36", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4574, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65f69322-33e4-4db2-8a2a-b6bc61eade34", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd029c17-c858-4a03-84a0-851eec28216d", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1297208b-5932-4b5b-987d-41d40209c02b", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Visitor' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 40, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fd3ec5b-0049-4a98-9b5b-65fa8f90521d", + "parentUUID": "7ef4c6a9-c683-4f50-aeb6-fe456e3767f6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0c3f71e7-1f01-4859-86a9-19aef1c735fc", + "b3b176a2-2efe-464e-8bbb-f6ab04cef8db", + "f90be13d-9155-42a8-9809-124eeba76c80", + "f4a62710-991d-483b-9678-33a07bc65b12", + "8891ba95-4114-40c8-b50b-5705ce65d3cc", + "b12a99cb-0eaf-4e73-9c94-0d7ec84950ee", + "548b0e17-6e66-4e3a-a7f7-f39189279eab", + "89a79797-5fc8-4a99-978f-bb51e06ac1eb", + "4247acbb-cad2-444c-b141-8e1f854c5dc1", + "3a133d2a-285e-4e6e-a4ca-129cccfc3fca", + "4814a578-9a13-4366-b1da-b93a4542ac6c", + "ccebd2e2-a601-4d2d-a8e1-b6095c62404c", + "15a35914-9a41-4b83-9045-1f191306e3d5", + "00f73b01-a27a-4c41-9116-e767d978027b", + "4c917d0a-e83d-48e3-be28-d3b2a0b55ff5", + "3814e72b-7e6b-4935-8cf3-64061af21c38", + "068983b0-6202-4b5d-a247-b2c388416db5", + "2f0cfae8-e0e9-41f3-b348-6c4ba9e0a516", + "95b96cea-5e12-4560-af42-049d0b4273af", + "e50d7d43-4820-4762-8126-90924b670d5e", + "afc4eee8-fe5f-47c1-942e-46728643bf36", + "65f69322-33e4-4db2-8a2a-b6bc61eade34", + "cd029c17-c858-4a03-84a0-851eec28216d", + "1297208b-5932-4b5b-987d-41d40209c02b", + "1fd3ec5b-0049-4a98-9b5b-65fa8f90521d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 43292, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "title": "Configure 'Guest' group restrictions then check in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should uncheck 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should uncheck 'ps_wirepayment'", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_uncheck_ps_wirepaymentFromGuestGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0605dab7-e490-46f0-a89e-c9b01acda26f", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 2525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8360f84c-6807-4ebb-a2ea-933719c81d28", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d072ab9c-dd9f-4757-86d9-ac81d95c7a3b", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should login and go to address step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should login and go to address step", + "timedOut": false, + "duration": 1076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_loginToFO01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepLoginComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginToFO\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, group.args.customer)];\n case 3:\n isStepLoginComplete = _a.sent();\n (0, chai_1.expect)(isStepLoginComplete, 'Step Personal information is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16b90b8f-6f3c-4f96-a4c4-708242677889", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should create address then continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should create address then continue to delivery step", + "timedOut": false, + "duration": 1585, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_createAddress01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAddress\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, address)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "428c0e1c-fd74-47ed-80cf-9c4a62e46f74", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a392c63a-894c-417f-9ff9-c2642c19be9e", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo01\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1ee5d67-8fd4-4929-a438-328de835bdf9", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should uncheck 'ps_checkpayment'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_uncheck_ps_checkpaymentFromGuestGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6d4186f-52fe-4c61-aeda-f3693c19a342", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc0dbcbf-d954-4bb9-891a-b939ff8d2d3a", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdbc6431-2ceb-4eb2-a92c-c2328f4a31f0", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8d08f59-76aa-416c-bb73-a381adb399bd", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 4292, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cfbfc85-dd2c-4f01-929f-5b01efd0b8c9", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a23ad2a-2f0f-4d88-be39-42f5d648ae57", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should check 'ps_wirepayment'", + "timedOut": false, + "duration": 746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_check_ps_wirepaymentFromGuestGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b1b2a4b-a65c-4907-a182-b0af679bb84f", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77eb3d26-09f5-4ba2-b17a-5d2c17d84dbd", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4534, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55e0996e-3e0c-4446-b62e-d42deb9a2180", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7eb4c4ac-19c7-4b47-b5ac-ace07a83f880", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fbb2ff0-fab3-482e-be3d-2161f2806f91", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a6a3ed5-97bd-4836-96b9-059739c9947b", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should check 'ps_checkpayment'", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_check_ps_checkpaymentFromGuestGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92b8dfc1-d0ec-430e-b61f-53cf0eaf9fb5", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e57f650-4b4c-4c85-b7af-c5d334dd3e07", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fc354f5-2712-495b-ba29-5c3c15f77289", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93fb4276-a3e4-48e9-80da-742405e8858c", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 304, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8257397b-bb10-4bea-8b8b-936462c4aa63", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Guest' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52335168-bd57-460d-b781-ad504ed31aad", + "parentUUID": "2fbb855e-5632-4256-afe8-820c21c0f60f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0605dab7-e490-46f0-a89e-c9b01acda26f", + "8360f84c-6807-4ebb-a2ea-933719c81d28", + "d072ab9c-dd9f-4757-86d9-ac81d95c7a3b", + "16b90b8f-6f3c-4f96-a4c4-708242677889", + "428c0e1c-fd74-47ed-80cf-9c4a62e46f74", + "a392c63a-894c-417f-9ff9-c2642c19be9e", + "c1ee5d67-8fd4-4929-a438-328de835bdf9", + "f6d4186f-52fe-4c61-aeda-f3693c19a342", + "fc0dbcbf-d954-4bb9-891a-b939ff8d2d3a", + "fdbc6431-2ceb-4eb2-a92c-c2328f4a31f0", + "c8d08f59-76aa-416c-bb73-a381adb399bd", + "5cfbfc85-dd2c-4f01-929f-5b01efd0b8c9", + "2a23ad2a-2f0f-4d88-be39-42f5d648ae57", + "4b1b2a4b-a65c-4907-a182-b0af679bb84f", + "77eb3d26-09f5-4ba2-b17a-5d2c17d84dbd", + "55e0996e-3e0c-4446-b62e-d42deb9a2180", + "7eb4c4ac-19c7-4b47-b5ac-ace07a83f880", + "8fbb2ff0-fab3-482e-be3d-2161f2806f91", + "6a6a3ed5-97bd-4836-96b9-059739c9947b", + "92b8dfc1-d0ec-430e-b61f-53cf0eaf9fb5", + "4e57f650-4b4c-4c85-b7af-c5d334dd3e07", + "5fc354f5-2712-495b-ba29-5c3c15f77289", + "93fb4276-a3e4-48e9-80da-742405e8858c", + "8257397b-bb10-4bea-8b8b-936462c4aa63", + "52335168-bd57-460d-b781-ad504ed31aad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 44275, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "faee7e08-3638-4b80-95e6-0a74ca920059", + "title": "Configure 'Customer' group restrictions then check in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should uncheck 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should uncheck 'ps_wirepayment'", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_uncheck_ps_wirepaymentFromCustomerGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cf5c365-fac1-4738-8169-e87e64a246b5", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 2566, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9ed4994-4133-47b3-9e7b-effc3715643c", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e4ce24b-9440-4e01-8c8a-24d87f51e3ec", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should login and go to address step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should login and go to address step", + "timedOut": false, + "duration": 1070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_loginToFO02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepLoginComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginToFO\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, group.args.customer)];\n case 3:\n isStepLoginComplete = _a.sent();\n (0, chai_1.expect)(isStepLoginComplete, 'Step Personal information is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "321e7181-34a5-4c8d-b239-228937eff512", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "973d2a15-ca9f-427b-99ed-d6c063ffff25", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a05045e0-dc89-42e7-b3be-74ba471dbca1", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo02\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed2f7a07-4726-4574-8cf3-cdfd2cef5cbb", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should uncheck 'ps_checkpayment'", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_uncheck_ps_checkpaymentFromCustomerGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80fc4435-4390-4a15-9351-43f4271d8c92", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf230f1f-e677-45bd-a24d-5c98bbe72017", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1771f932-9936-4d19-8683-bb29dbd01a45", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c60713ee-58a0-41ae-9682-95cc560669ad", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 4287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83fbec65-6398-484a-b7b8-57bec80a8122", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa2135bd-5380-4060-9875-2df84977a138", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should check 'ps_wirepayment'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_check_ps_wirepaymentFromCustomerGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "563040fe-9828-4c48-9533-c9b3b31e92ae", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "612c40e9-bf7c-4e20-927d-37dbb717f2a7", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba944651-7ebe-46a4-9d15-0877dcf2b141", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "267c9a21-cee3-4323-a50d-b5ed66cdd503", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51320d78-435c-445d-a734-e23e7c28645a", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1d39e1f-2f9b-4a34-9e76-4849d2587a24", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should check 'ps_checkpayment'", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_check_ps_checkpaymentFromCustomerGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"_\").concat(test.args.paymentModuleToEdit, \"From\").concat(group.args.groupName, \"Group\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setGroupRestrictions(page, group.args.id, test.args.paymentModuleToEdit, test.args.check)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2639bd5f-eefb-4a7f-84c7-faba223b6b8b", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should view my shop", + "timedOut": false, + "duration": 1705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_viewMyShop32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n if (!(index === 0 && groupIndex !== 0)) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: \n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 5:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2083ba7-b2a0-480b-939c-9eb806c7027a", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_addFirstProductToCart32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eacf44ca-6cec-4298-95ac-ed0c482c6209", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should continue to delivery step", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToDeliveryStep32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "318f64f2-9062-41b7-a705-5a65ac93735f", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToPaymentStep32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModuleToEdit)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.wirePaymentExist);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.defaultPaymentModule)];\n case 4:\n // Check Payment block\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.checkPaymentExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9fefdf7-d7c3-4b85-91d9-b334f45727dd", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Configure group restrictions and check in FO Configure 'Customer' group restrictions then check in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goBackToBo32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index).concat(groupIndex), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01429708-7a2c-46ad-8634-988a34207f91", + "parentUUID": "faee7e08-3638-4b80-95e6-0a74ca920059", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0cf5c365-fac1-4738-8169-e87e64a246b5", + "c9ed4994-4133-47b3-9e7b-effc3715643c", + "2e4ce24b-9440-4e01-8c8a-24d87f51e3ec", + "321e7181-34a5-4c8d-b239-228937eff512", + "973d2a15-ca9f-427b-99ed-d6c063ffff25", + "a05045e0-dc89-42e7-b3be-74ba471dbca1", + "ed2f7a07-4726-4574-8cf3-cdfd2cef5cbb", + "80fc4435-4390-4a15-9351-43f4271d8c92", + "cf230f1f-e677-45bd-a24d-5c98bbe72017", + "1771f932-9936-4d19-8683-bb29dbd01a45", + "c60713ee-58a0-41ae-9682-95cc560669ad", + "83fbec65-6398-484a-b7b8-57bec80a8122", + "fa2135bd-5380-4060-9875-2df84977a138", + "563040fe-9828-4c48-9533-c9b3b31e92ae", + "612c40e9-bf7c-4e20-927d-37dbb717f2a7", + "ba944651-7ebe-46a4-9d15-0877dcf2b141", + "267c9a21-cee3-4323-a50d-b5ed66cdd503", + "51320d78-435c-445d-a734-e23e7c28645a", + "c1d39e1f-2f9b-4a34-9e76-4849d2587a24", + "2639bd5f-eefb-4a7f-84c7-faba223b6b8b", + "b2083ba7-b2a0-480b-939c-9eb806c7027a", + "eacf44ca-6cec-4298-95ac-ed0c482c6209", + "318f64f2-9062-41b7-a705-5a65ac93735f", + "f9fefdf7-d7c3-4b85-91d9-b334f45727dd", + "01429708-7a2c-46ad-8634-988a34207f91" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 42988, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "2166c501-2682-46be-a22d-ca211b83d1ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3848, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1f3f3ea0-3324-47b3-af03-9ec26a4a663e", + "title": "Delete the two created customers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/02_groupRestrictions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Delete the two created customers should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_goToCustomersPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.goToSubMenu(page, preferences_1.default.customersParentLink, preferences_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4003396-a4b9-4629-a8f4-b952945602c2", + "parentUUID": "1f3f3ea0-3324-47b3-af03-9ec26a4a663e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Delete the two created customers should filter list by email", + "timedOut": false, + "duration": 3171, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_filterToDelete0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Reset before filter\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n // Reset before filter\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', test.args.customerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(test.args.customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb77ba5a-df33-462e-9e69-a8e44ee9d5f7", + "parentUUID": "1f3f3ea0-3324-47b3-af03-9ec26a4a663e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer n°1", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Delete the two created customers should delete customer n°1", + "timedOut": false, + "duration": 2020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_deleteCustomer0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCustomer\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulDeleteMessage);\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomersAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterDelete).to.be.equal(numberOfCustomers - index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f7310b3-3e3b-44ba-812f-687813386656", + "parentUUID": "1f3f3ea0-3324-47b3-af03-9ec26a4a663e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Delete the two created customers should filter list by email", + "timedOut": false, + "duration": 3078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_filterToDelete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Reset before filter\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n // Reset before filter\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', test.args.customerData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(test.args.customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f263e0d-41fd-4de2-aed9-19554a625468", + "parentUUID": "1f3f3ea0-3324-47b3-af03-9ec26a4a663e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer n°2", + "fullTitle": "BO - Payment - Preferences : Configure group restrictions Delete the two created customers should delete customer n°2", + "timedOut": false, + "duration": 1978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_groupRestrictions_deleteCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCustomer\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulDeleteMessage);\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomersAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterDelete).to.be.equal(numberOfCustomers - index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "724f7652-dc06-40a2-b654-96471fea09bf", + "parentUUID": "1f3f3ea0-3324-47b3-af03-9ec26a4a663e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b4003396-a4b9-4629-a8f4-b952945602c2", + "eb77ba5a-df33-462e-9e69-a8e44ee9d5f7", + "3f7310b3-3e3b-44ba-812f-687813386656", + "6f263e0d-41fd-4de2-aed9-19554a625468", + "724f7652-dc06-40a2-b654-96471fea09bf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14045, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a3136c64-3941-4899-83eb-6d444e0a5d93" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1752, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "title": "BO - Payment - Preferences : Configure country restrictions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/03_countryRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/03_countryRestrictions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Payment - Preferences : Configure country restrictions\"", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions \"before all\" hook in \"BO - Payment - Preferences : Configure country restrictions\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "424060fd-eb3d-4e86-96a3-143abdaf0d2e", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Payment - Preferences : Configure country restrictions\"", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions \"after all\" hook in \"BO - Payment - Preferences : Configure country restrictions\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ecb37580-9b92-4b33-a42c-4ee4917805c3", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should login in BO", + "timedOut": false, + "duration": 1721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "641ea7c8-f910-4abb-b5cf-0257a472828a", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Payment > Preferences' page", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should go to 'Payment > Preferences' page", + "timedOut": false, + "duration": 5071, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToPreferencesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPreferencesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.paymentParentLink, dashboard_1.default.preferencesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afcd4961-5338-4f03-a7d5-9d7e3a6b1577", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck the France country for 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should uncheck the France country for 'ps_wirepayment'", + "timedOut": false, + "duration": 689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_uncheckps_wirepayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCountryRestriction(page, countryID, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90021f25-b5cc-4bb7-9167-ea83f1e95842", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should view my shop", + "timedOut": false, + "duration": 1632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b0feea0-1d41-4071-a88e-cd2059c3a6ea", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and checkout", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should add the first product to the cart and checkout", + "timedOut": false, + "duration": 4470, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_addFirstProductToCartps_wirepayment_false\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(test.args.paymentModule, \"_\").concat(test.args.exist), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3066efa0-fa6a-420c-a70d-83f8bb5099c7", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should login and go to address step", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should login and go to address step", + "timedOut": false, + "duration": 1050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_loginToFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepLoginComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 4];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isStepLoginComplete = _a.sent();\n (0, chai_1.expect)(isStepLoginComplete, 'Step Personal information is not complete').to.eq(true);\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a5f441e-378e-4618-af45-03591dbda7b0", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should continue to delivery step", + "timedOut": false, + "duration": 312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToDeliveryStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0c8228f-0da6-4dc6-b95e-f51bb64b7d87", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToPaymentStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86681444-4b36-4ad4-8d5f-586f7a7641cc", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c16dcc7b-9474-448a-8029-b8bbf0efd8c1", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should check the France country for 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should check the France country for 'ps_wirepayment'", + "timedOut": false, + "duration": 665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_checkps_wirepayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCountryRestriction(page, countryID, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b1ea367-4d4d-4d12-b8fd-bd330cffd9db", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should view my shop", + "timedOut": false, + "duration": 1689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6ddb357-707d-469d-81ff-c008a53f864a", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and checkout", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should add the first product to the cart and checkout", + "timedOut": false, + "duration": 4729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_addFirstProductToCartps_wirepayment_true\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(test.args.paymentModule, \"_\").concat(test.args.exist), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a4a050d-151a-40b8-8830-f7f20c469903", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should login and go to address step", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should login and go to address step", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_loginToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepLoginComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 4];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isStepLoginComplete = _a.sent();\n (0, chai_1.expect)(isStepLoginComplete, 'Step Personal information is not complete').to.eq(true);\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ba4e42a-554d-482f-8099-8f5d8fb6eeb7", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should continue to delivery step", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToDeliveryStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc302d9f-ec9a-4612-86da-f84f84db0392", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToPaymentStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0ad0344-6752-4176-81b3-b421c16f5354", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63d6c922-cb6c-40b1-ad75-dd296120a319", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck the France country for 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should uncheck the France country for 'ps_checkpayment'", + "timedOut": false, + "duration": 668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_uncheckps_checkpayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCountryRestriction(page, countryID, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f845af0d-ae01-430e-a2fd-8c5c8e58c33b", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should view my shop", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb0451d8-180a-4631-af37-2ce916deb9b0", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and checkout", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should add the first product to the cart and checkout", + "timedOut": false, + "duration": 4751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_addFirstProductToCartps_checkpayment_false\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(test.args.paymentModule, \"_\").concat(test.args.exist), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0dc3fdbd-0c10-4b15-a8c7-0b908b120e20", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should login and go to address step", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should login and go to address step", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_loginToFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepLoginComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 4];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isStepLoginComplete = _a.sent();\n (0, chai_1.expect)(isStepLoginComplete, 'Step Personal information is not complete').to.eq(true);\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2601773-3946-4ec6-a9cf-b9cff0db3247", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should continue to delivery step", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToDeliveryStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "027a5e84-a87b-4ee5-b0bf-91b8dc0a1cf9", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToPaymentStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b28ff2e9-6335-4469-8a10-697ecfbbb478", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6220a851-da0f-455c-b81e-c9053f8fdf5f", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should check the France country for 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should check the France country for 'ps_checkpayment'", + "timedOut": false, + "duration": 822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_checkps_checkpayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCountryRestriction(page, countryID, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b7ec287-3cc4-43c4-b636-729b46e57b44", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should view my shop", + "timedOut": false, + "duration": 1696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed99d347-7e56-45c0-a9d2-09bf1cf7b101", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and checkout", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should add the first product to the cart and checkout", + "timedOut": false, + "duration": 4785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_addFirstProductToCartps_checkpayment_true\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addFirstProductToCart\".concat(test.args.paymentModule, \"_\").concat(test.args.exist), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d05fe38-3dfd-400a-b4d0-7f9b3e7a267b", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should login and go to address step", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should login and go to address step", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_loginToFO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepLoginComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 4];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isStepLoginComplete = _a.sent();\n (0, chai_1.expect)(isStepLoginComplete, 'Step Personal information is not complete').to.eq(true);\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db791bc2-645f-48b7-9cd1-b61ccd928283", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should continue to delivery step", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToDeliveryStep3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f643ee82-b0a7-40b0-ad64-f36923074d23", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goToPaymentStep3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "153198cd-7839-4086-be93-0e17a02fa307", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure country restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_countryRestrictions_goBackToBo3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2522fd7f-4f4a-4ba2-93ba-f694634f7038", + "parentUUID": "12183a39-b6a1-4103-a0dc-1bccdf0cff57", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "641ea7c8-f910-4abb-b5cf-0257a472828a", + "afcd4961-5338-4f03-a7d5-9d7e3a6b1577", + "90021f25-b5cc-4bb7-9167-ea83f1e95842", + "3b0feea0-1d41-4071-a88e-cd2059c3a6ea", + "3066efa0-fa6a-420c-a70d-83f8bb5099c7", + "3a5f441e-378e-4618-af45-03591dbda7b0", + "a0c8228f-0da6-4dc6-b95e-f51bb64b7d87", + "86681444-4b36-4ad4-8d5f-586f7a7641cc", + "c16dcc7b-9474-448a-8029-b8bbf0efd8c1", + "9b1ea367-4d4d-4d12-b8fd-bd330cffd9db", + "c6ddb357-707d-469d-81ff-c008a53f864a", + "4a4a050d-151a-40b8-8830-f7f20c469903", + "8ba4e42a-554d-482f-8099-8f5d8fb6eeb7", + "dc302d9f-ec9a-4612-86da-f84f84db0392", + "e0ad0344-6752-4176-81b3-b421c16f5354", + "63d6c922-cb6c-40b1-ad75-dd296120a319", + "f845af0d-ae01-430e-a2fd-8c5c8e58c33b", + "cb0451d8-180a-4631-af37-2ce916deb9b0", + "0dc3fdbd-0c10-4b15-a8c7-0b908b120e20", + "f2601773-3946-4ec6-a9cf-b9cff0db3247", + "027a5e84-a87b-4ee5-b0bf-91b8dc0a1cf9", + "b28ff2e9-6335-4469-8a10-697ecfbbb478", + "6220a851-da0f-455c-b81e-c9053f8fdf5f", + "3b7ec287-3cc4-43c4-b636-729b46e57b44", + "ed99d347-7e56-45c0-a9d2-09bf1cf7b101", + "5d05fe38-3dfd-400a-b4d0-7f9b3e7a267b", + "db791bc2-645f-48b7-9cd1-b61ccd928283", + "f643ee82-b0a7-40b0-ad64-f36923074d23", + "153198cd-7839-4086-be93-0e17a02fa307", + "2522fd7f-4f4a-4ba2-93ba-f694634f7038" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 44545, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e34faef8-ede1-4a21-8a13-8c3a1ad59cf6", + "title": "BO - Payment - Preferences : Configure carrier restrictions and check FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/04_carrierRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/04_carrierRestrictions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Payment - Preferences : Configure carrier restrictions and check FO\"", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO \"before all\" hook in \"BO - Payment - Preferences : Configure carrier restrictions and check FO\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7941c9c-b0d5-4ce5-914d-ecfaad73dc04", + "parentUUID": "e34faef8-ede1-4a21-8a13-8c3a1ad59cf6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Payment - Preferences : Configure carrier restrictions and check FO\"", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO \"after all\" hook in \"BO - Payment - Preferences : Configure carrier restrictions and check FO\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "74bdc52b-8167-488e-b53f-b05dea600733", + "parentUUID": "e34faef8-ede1-4a21-8a13-8c3a1ad59cf6", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5a3937b7-e45b-47b6-82a8-54fc3d7cbe93", + "title": "Login into FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/04_carrierRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/04_carrierRestrictions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Login into FO should go to FO page", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "353882f8-5094-47b2-92df-f6321a9986cc", + "parentUUID": "5a3937b7-e45b-47b6-82a8-54fc3d7cbe93", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Login into FO should go to login page", + "timedOut": false, + "duration": 686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "644b4c44-9688-417a-a397-7f3a5872b832", + "parentUUID": "5a3937b7-e45b-47b6-82a8-54fc3d7cbe93", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Login into FO should sign in with default customer", + "timedOut": false, + "duration": 476, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_sighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c9bc0f8-4716-45c7-ad35-75f42e1027a8", + "parentUUID": "5a3937b7-e45b-47b6-82a8-54fc3d7cbe93", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "353882f8-5094-47b2-92df-f6321a9986cc", + "644b4c44-9688-417a-a397-7f3a5872b832", + "7c9bc0f8-4716-45c7-ad35-75f42e1027a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2827, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "78829c5b-682d-4801-a6e9-c28d105eda48", + "title": "Configure carrier restrictions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/10_payment/02_preferences/04_carrierRestrictions.ts", + "file": "/campaigns/functional/BO/10_payment/02_preferences/04_carrierRestrictions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should login in BO", + "timedOut": false, + "duration": 1688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec771490-d49c-4d12-84e4-f57c0a5acedf", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Payment > Preferences' page", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should go to 'Payment > Preferences' page", + "timedOut": false, + "duration": 5076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goToPreferencesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPreferencesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.paymentParentLink, dashboard_1.default.preferencesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c12ed8df-d783-4160-a3ef-4f75deabb494", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck free prestashop carrier for 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should uncheck free prestashop carrier for 'ps_wirepayment'", + "timedOut": false, + "duration": 716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_uncheckps_wirepayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCarrierRestriction(page, 0, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25ad6ce0-1080-485f-bea1-fa6b57fd4e91", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should view my shop", + "timedOut": false, + "duration": 1599, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "721760c5-875e-40c4-9e55-9252fb6886a1", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4524, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45e004c1-a1d6-43f4-a1fd-c8e8b5843087", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should continue to delivery step", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goToDeliveryStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb5f6632-faf1-4f97-9f65-27771ba1b11d", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_checkPaymentMethod0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMethod\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dacc70d-5d9a-4391-9c90-8d948d344b85", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efa8db20-e331-4ac1-b6ec-ddc96d42910d", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should check free prestashop carrier for 'ps_wirepayment'", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should check free prestashop carrier for 'ps_wirepayment'", + "timedOut": false, + "duration": 680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_checkps_wirepayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCarrierRestriction(page, 0, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7687fda1-687d-4717-9fb8-338b0911986e", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should view my shop", + "timedOut": false, + "duration": 1696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13e5b176-b686-4538-a0bd-7d58f0f5657b", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "040d6019-9ed5-426a-9730-0cf6df6228bf", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should continue to delivery step", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goToDeliveryStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d251614-2c15-4132-8ead-1ecc4807aab8", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_checkPaymentMethod1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMethod\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8999073-dd89-4fcb-a4a4-a3874ab43ee6", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "488c63e9-5003-4cd0-bbbd-43eb08829c4e", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should uncheck free prestashop carrier for 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should uncheck free prestashop carrier for 'ps_checkpayment'", + "timedOut": false, + "duration": 683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_uncheckps_checkpayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCarrierRestriction(page, 0, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2d3d577-23bc-48a8-a3bd-3909f4b15021", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should view my shop", + "timedOut": false, + "duration": 1687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee2eb950-7dad-447b-ac2a-363756a2b427", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "508391f8-cd35-4eef-835b-53b1de2b921f", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should continue to delivery step", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goToDeliveryStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4e0f2fd-eb16-45c2-9ebe-564a71754b1f", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 2305, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_checkPaymentMethod2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMethod\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd200ccc-338f-46be-b014-3196cbd77db0", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should go back to BO", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22fe6556-360b-4bac-bbff-08341602f92d", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should check free prestashop carrier for 'ps_checkpayment'", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should check free prestashop carrier for 'ps_checkpayment'", + "timedOut": false, + "duration": 706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_checkps_checkpayment\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.action + test.args.paymentModule, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCarrierRestriction(page, 0, test.args.paymentModule, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9fd728e-4208-4325-8467-89ca7c260396", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should view my shop", + "timedOut": false, + "duration": 1749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language in FO\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language in FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83c0c109-4b74-4052-9c75-54ae0543fb9e", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart and proceed to checkout", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should add the first product to the cart and proceed to checkout", + "timedOut": false, + "duration": 4759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_addProductToCart3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 5:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bca9f87-51ab-428d-ba28-d26f82d26cc6", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to delivery step", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should continue to delivery step", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goToDeliveryStep3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7692fe18-76f4-480e-959e-d03b9ff22c99", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment step and check the existence of payment method", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should continue to payment step and check the existence of payment method", + "timedOut": false, + "duration": 298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_checkPaymentMethod3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMethod\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, test.args.paymentModule)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dfbb056-1db3-48f8-8681-b0e03e20ce05", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Payment - Preferences : Configure carrier restrictions and check FO Configure carrier restrictions should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_payment_preferences_carrierRestrictions_goBackToBo3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close current tab\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa96a9b4-57c6-4a4a-8b32-13630ebbe243", + "parentUUID": "78829c5b-682d-4801-a6e9-c28d105eda48", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ec771490-d49c-4d12-84e4-f57c0a5acedf", + "c12ed8df-d783-4160-a3ef-4f75deabb494", + "25ad6ce0-1080-485f-bea1-fa6b57fd4e91", + "721760c5-875e-40c4-9e55-9252fb6886a1", + "45e004c1-a1d6-43f4-a1fd-c8e8b5843087", + "eb5f6632-faf1-4f97-9f65-27771ba1b11d", + "8dacc70d-5d9a-4391-9c90-8d948d344b85", + "efa8db20-e331-4ac1-b6ec-ddc96d42910d", + "7687fda1-687d-4717-9fb8-338b0911986e", + "13e5b176-b686-4538-a0bd-7d58f0f5657b", + "040d6019-9ed5-426a-9730-0cf6df6228bf", + "1d251614-2c15-4132-8ead-1ecc4807aab8", + "e8999073-dd89-4fcb-a4a4-a3874ab43ee6", + "488c63e9-5003-4cd0-bbbd-43eb08829c4e", + "a2d3d577-23bc-48a8-a3bd-3909f4b15021", + "ee2eb950-7dad-447b-ac2a-363756a2b427", + "508391f8-cd35-4eef-835b-53b1de2b921f", + "d4e0f2fd-eb16-45c2-9ebe-564a71754b1f", + "dd200ccc-338f-46be-b014-3196cbd77db0", + "22fe6556-360b-4bac-bbff-08341602f92d", + "b9fd728e-4208-4325-8467-89ca7c260396", + "83c0c109-4b74-4052-9c75-54ae0543fb9e", + "7bca9f87-51ab-428d-ba28-d26f82d26cc6", + "7692fe18-76f4-480e-959e-d03b9ff22c99", + "5dfbb056-1db3-48f8-8681-b0e03e20ce05", + "fa96a9b4-57c6-4a4a-8b32-13630ebbe243" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 43495, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "472ceb43-de1d-4d44-9169-a454b6cfbbaa", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 2030, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "975ff5ce-c2f3-43af-8a27-6a99d88ea942", + "parentUUID": "472ceb43-de1d-4d44-9169-a454b6cfbbaa", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cefb569-9acd-4359-81e4-7b6df698cae7", + "parentUUID": "472ceb43-de1d-4d44-9169-a454b6cfbbaa", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3765dba1-5193-4a70-978a-e5d2a1123c8d", + "parentUUID": "472ceb43-de1d-4d44-9169-a454b6cfbbaa", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "baaba67a-1483-4aa6-bdf2-736b94775eff", + "title": "BO - Shipping - Carriers : CRUD carrier in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shipping - Carriers : CRUD carrier in BO\"", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO \"before all\" hook in \"BO - Shipping - Carriers : CRUD carrier in BO\"", + "timedOut": false, + "duration": 153, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(\"\".concat(createCarrierData.name, \".jpg\")),\n files_1.default.generateImage(\"\".concat(editCarrierData.name, \".jpg\")),\n ])];\n case 3:\n // Create images\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a49a8a33-e816-431f-9d05-f00bed76a654", + "parentUUID": "baaba67a-1483-4aa6-bdf2-736b94775eff", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shipping - Carriers : CRUD carrier in BO\"", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO \"after all\" hook in \"BO - Shipping - Carriers : CRUD carrier in BO\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n /* Delete the generated images */\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(\"\".concat(createCarrierData.name, \".jpg\")),\n files_1.default.deleteFile(\"\".concat(editCarrierData.name, \".jpg\")),\n ])];\n case 2:\n /* Delete the generated images */\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c935bce2-fdf1-4e5a-ba2d-61fd66f7bb09", + "parentUUID": "baaba67a-1483-4aa6-bdf2-736b94775eff", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO should login in BO", + "timedOut": false, + "duration": 6682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "155737cc-e72c-4c03-975e-feb551159bd4", + "parentUUID": "baaba67a-1483-4aa6-bdf2-736b94775eff", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shipping > Carriers' page", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO should go to 'Shipping > Carriers' page", + "timedOut": false, + "duration": 3741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_goToCarriersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCarriersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.carriersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6d83b84-e431-4f3b-ac25-1d4d2a13d20a", + "parentUUID": "baaba67a-1483-4aa6-bdf2-736b94775eff", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of carriers in BO", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO should reset all filters and get number of carriers in BO", + "timedOut": false, + "duration": 32, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriers = _a.sent();\n (0, chai_1.expect)(numberOfCarriers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36a2a14a-856f-44df-94e7-d4a8fb037726", + "parentUUID": "baaba67a-1483-4aa6-bdf2-736b94775eff", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "efc711ff-ed99-484d-84d2-98b07e8ecc2e", + "title": "Create carrier in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Create carrier in BO should go to add new carrier page", + "timedOut": false, + "duration": 1025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_goToAddCarrierPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddCarrierPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e9bd664-a83e-42dd-b4cc-e937b892fe25", + "parentUUID": "efc711ff-ed99-484d-84d2-98b07e8ecc2e", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier and check result", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Create carrier in BO should create carrier and check result", + "timedOut": false, + "duration": 1810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_createCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, createCarrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberCarriersAfterCreation).to.be.equal(numberOfCarriers + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5651c0b-b392-40b3-843b-e4e00fea8645", + "parentUUID": "efc711ff-ed99-484d-84d2-98b07e8ecc2e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name and get the new carrier ID", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Create carrier in BO should filter list by name and get the new carrier ID", + "timedOut": false, + "duration": 974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_filterToCheckNewCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, name;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToCheckNewCarrier', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, carriers_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', createCarrierData.name)];\n case 3:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'id_carrier')];\n case 4:\n carrierID = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 5:\n name = _b.sent();\n (0, chai_1.expect)(name).to.contains(createCarrierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e60ca54-cc15-41a2-8768-c9e5c2a289ed", + "parentUUID": "efc711ff-ed99-484d-84d2-98b07e8ecc2e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3e9bd664-a83e-42dd-b4cc-e937b892fe25", + "b5651c0b-b392-40b3-843b-e4e00fea8645", + "5e60ca54-cc15-41a2-8768-c9e5c2a289ed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3809, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a1ec0d3a-cce7-48a7-9d7f-d983d108abc0", + "title": "View the created carrier in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the created carrier in FO should view my shop", + "timedOut": false, + "duration": 1774, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_firstViewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstViewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c67a690-c295-4a3b-8cba-8e569a79982c", + "parentUUID": "a1ec0d3a-cce7-48a7-9d7f-d983d108abc0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the created carrier in FO should go to login page", + "timedOut": false, + "duration": 731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_firstGoToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstGoToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af9e601b-4573-4254-8884-3234b1a53c4d", + "parentUUID": "a1ec0d3a-cce7-48a7-9d7f-d983d108abc0", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the created carrier in FO should sign in with default customer", + "timedOut": false, + "duration": 663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_firstSighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstSighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b55cb47-5935-443a-a3c9-ca3d9674c9d0", + "parentUUID": "a1ec0d3a-cce7-48a7-9d7f-d983d108abc0", + "isHook": false, + "skipped": false + }, + { + "title": "should create an order", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the created carrier in FO should create an order", + "timedOut": false, + "duration": 6419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_firstCreateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstCreateOrder', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25002055-d4eb-48b9-8cf3-cdf7fd5a67e5", + "parentUUID": "a1ec0d3a-cce7-48a7-9d7f-d983d108abc0", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new carrier is not visible", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the created carrier in FO should check that the new carrier is not visible", + "timedOut": false, + "duration": 2002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_checkNewCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isShippingMethodVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isShippingMethodVisible(page, carrierID)];\n case 2:\n isShippingMethodVisible = _a.sent();\n (0, chai_1.expect)(isShippingMethodVisible, 'The carrier is visible').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce53a71a-28b3-40ef-a9c4-f3335868514a", + "parentUUID": "a1ec0d3a-cce7-48a7-9d7f-d983d108abc0", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the created carrier in FO should sign out from FO", + "timedOut": false, + "duration": 2044, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_firstSighOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstSighOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "057ec1b5-d120-44b3-bdc1-51fef3fbb39e", + "parentUUID": "a1ec0d3a-cce7-48a7-9d7f-d983d108abc0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8c67a690-c295-4a3b-8cba-8e569a79982c", + "af9e601b-4573-4254-8884-3234b1a53c4d", + "9b55cb47-5935-443a-a3c9-ca3d9674c9d0", + "25002055-d4eb-48b9-8cf3-cdf7fd5a67e5", + "ce53a71a-28b3-40ef-a9c4-f3335868514a", + "057ec1b5-d120-44b3-bdc1-51fef3fbb39e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13633, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "db5a6ff3-fbd4-4fc5-b63b-2daeb212465f", + "title": "Update carrier created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Update carrier created should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_firstGoBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstGoBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4f46c11-eb25-4b60-b15d-fc506b4e2d84", + "parentUUID": "db5a6ff3-fbd4-4fc5-b63b-2daeb212465f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Update carrier created should filter list by name", + "timedOut": false, + "duration": 3905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carrierName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', createCarrierData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n carrierName = _a.sent();\n (0, chai_1.expect)(carrierName).to.contains(createCarrierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c3e9638-8548-4eba-8794-c0363d7ded6f", + "parentUUID": "db5a6ff3-fbd4-4fc5-b63b-2daeb212465f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit carrier page", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Update carrier created should go to edit carrier page", + "timedOut": false, + "duration": 987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_goToEditCarrierPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCarrierPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.gotoEditCarrierPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97ce4d31-1542-47d5-a2b5-731bb5a67a54", + "parentUUID": "db5a6ff3-fbd4-4fc5-b63b-2daeb212465f", + "isHook": false, + "skipped": false + }, + { + "title": "should update carrier", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Update carrier created should update carrier", + "timedOut": false, + "duration": 4252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_updateCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, editCarrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulUpdateMessage);\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCarriersAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterUpdate).to.be.equal(numberOfCarriers + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e9d9eb6-c0f0-4dd2-a07f-edf787b7bc15", + "parentUUID": "db5a6ff3-fbd4-4fc5-b63b-2daeb212465f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name and get the edited carrier ID", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Update carrier created should filter list by name and get the edited carrier ID", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_filterToCheckEditedCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, name;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToCheckEditedCarrier', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, carriers_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', editCarrierData.name)];\n case 3:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'id_carrier')];\n case 4:\n carrierID = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 5:\n name = _b.sent();\n (0, chai_1.expect)(name).to.contains(editCarrierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67795155-c2dc-4640-a1af-b2f6ecad1b97", + "parentUUID": "db5a6ff3-fbd4-4fc5-b63b-2daeb212465f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f4f46c11-eb25-4b60-b15d-fc506b4e2d84", + "2c3e9638-8548-4eba-8794-c0363d7ded6f", + "97ce4d31-1542-47d5-a2b5-731bb5a67a54", + "7e9d9eb6-c0f0-4dd2-a07f-edf787b7bc15", + "67795155-c2dc-4640-a1af-b2f6ecad1b97" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10077, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "835c3ab7-0236-4c58-a9b5-103ada215dc1", + "title": "View the updated carrier in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the updated carrier in FO should view my shop", + "timedOut": false, + "duration": 1696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_secondViewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'secondViewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "378f0b32-1734-43dd-89cc-0a778fffab9f", + "parentUUID": "835c3ab7-0236-4c58-a9b5-103ada215dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the updated carrier in FO should go to login page", + "timedOut": false, + "duration": 726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_secondGoToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'secondGoToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c4d2934-3c69-4617-a703-10aada09d05d", + "parentUUID": "835c3ab7-0236-4c58-a9b5-103ada215dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the updated carrier in FO should sign in with default customer", + "timedOut": false, + "duration": 523, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_secondSighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'secondSighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a290d105-916c-48b9-ab10-29d8a18f510c", + "parentUUID": "835c3ab7-0236-4c58-a9b5-103ada215dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should create an order", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the updated carrier in FO should create an order", + "timedOut": false, + "duration": 6281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_secondCreateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'secondCreateOrder', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "314b6d43-0120-485b-a982-c7e4534944b0", + "parentUUID": "835c3ab7-0236-4c58-a9b5-103ada215dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the updated carrier is visible", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the updated carrier in FO should check that the updated carrier is visible", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_checkEditedCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isShippingMethodVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isShippingMethodVisible(page, carrierID)];\n case 2:\n isShippingMethodVisible = _a.sent();\n (0, chai_1.expect)(isShippingMethodVisible, 'The carrier is not visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "557578dd-4061-4c7d-bb05-dcdf10419e8b", + "parentUUID": "835c3ab7-0236-4c58-a9b5-103ada215dc1", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO View the updated carrier in FO should sign out from FO", + "timedOut": false, + "duration": 2038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_secondSighOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'secondSighOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1a8c25f-2e1c-4c98-afeb-4b1dd63b3ee4", + "parentUUID": "835c3ab7-0236-4c58-a9b5-103ada215dc1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "378f0b32-1734-43dd-89cc-0a778fffab9f", + "8c4d2934-3c69-4617-a703-10aada09d05d", + "a290d105-916c-48b9-ab10-29d8a18f510c", + "314b6d43-0120-485b-a982-c7e4534944b0", + "557578dd-4061-4c7d-bb05-dcdf10419e8b", + "c1a8c25f-2e1c-4c98-afeb-4b1dd63b3ee4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11272, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f3c70cd5-f957-4d05-960d-69185ba1be7e", + "title": "Delete carrier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/01_CRUDCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Delete carrier should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_secondGoBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'secondGoBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55a441c4-1e92-4e8a-84de-2b6bbca23594", + "parentUUID": "f3c70cd5-f957-4d05-960d-69185ba1be7e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Delete carrier should filter list by name", + "timedOut": false, + "duration": 3860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carrierName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', editCarrierData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n carrierName = _a.sent();\n (0, chai_1.expect)(carrierName).to.contains(editCarrierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8c076cb-233e-45b5-b999-94caa0a92be5", + "parentUUID": "f3c70cd5-f957-4d05-960d-69185ba1be7e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete carrier", + "fullTitle": "BO - Shipping - Carriers : CRUD carrier in BO Delete carrier should delete carrier", + "timedOut": false, + "duration": 3915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_CRUDCarrier_deleteCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.deleteCarrier(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulDeleteMessage);\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCarriersAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterDelete).to.be.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7af795c-f58e-4f69-bbc6-a297e598d65e", + "parentUUID": "f3c70cd5-f957-4d05-960d-69185ba1be7e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "55a441c4-1e92-4e8a-84de-2b6bbca23594", + "a8c076cb-233e-45b5-b999-94caa0a92be5", + "e7af795c-f58e-4f69-bbc6-a297e598d65e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7782, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "155737cc-e72c-4c03-975e-feb551159bd4", + "d6d83b84-e431-4f3b-ac25-1d4d2a13d20a", + "36a2a14a-856f-44df-94e7-d4a8fb037726" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10455, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b7a73004-bd0c-48fc-bd7c-bc01fdc4d1d9", + "title": "BO - Shipping - Carriers : Filter, sort and pagination carriers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shipping - Carriers : Filter, sort and pagination carriers\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers \"before all\" hook in \"BO - Shipping - Carriers : Filter, sort and pagination carriers\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfdccd52-8d68-42d5-8a1b-834f0ae0e25c", + "parentUUID": "b7a73004-bd0c-48fc-bd7c-bc01fdc4d1d9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shipping - Carriers : Filter, sort and pagination carriers\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers \"after all\" hook in \"BO - Shipping - Carriers : Filter, sort and pagination carriers\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c92cde4e-e6e8-4fcc-9ced-2a9b48c87d3f", + "parentUUID": "b7a73004-bd0c-48fc-bd7c-bc01fdc4d1d9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers should login in BO", + "timedOut": false, + "duration": 1775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58ea4398-42c9-4090-8464-83610b37af7d", + "parentUUID": "b7a73004-bd0c-48fc-bd7c-bc01fdc4d1d9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shipping > Carriers' page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers should go to 'Shipping > Carriers' page", + "timedOut": false, + "duration": 3627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToCarriersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCarriersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.carriersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c0e26c0-ac39-4141-94bd-d8051b822d51", + "parentUUID": "b7a73004-bd0c-48fc-bd7c-bc01fdc4d1d9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of carriers in BO", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers should reset all filters and get number of carriers in BO", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriers = _a.sent();\n (0, chai_1.expect)(numberOfCarriers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3e6ec82-b9a3-406c-a9d9-065cfe681a2e", + "parentUUID": "b7a73004-bd0c-48fc-bd7c-bc01fdc4d1d9", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "title": "Filter carriers table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_carrier '3'", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should filter by id_carrier '3'", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterFilter).to.be.at.most(numberOfCarriers);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97d59501-f0d7-4f12-b04e-9ba504d6639a", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should reset all filters", + "timedOut": false, + "duration": 2863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "394174cf-1cb6-4ff8-a498-6ebafd81270c", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'My carrier'", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should filter by name 'My carrier'", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterFilter).to.be.at.most(numberOfCarriers);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcbe1ee3-a2a4-45b8-8946-a222ee303392", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should reset all filters", + "timedOut": false, + "duration": 2867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c5f84d2-18a0-459c-9f09-f8c98e5a9d16", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by delay 'Pick up in-store'", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should filter by delay 'Pick up in-store'", + "timedOut": false, + "duration": 936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByDelay\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterFilter).to.be.at.most(numberOfCarriers);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb6581bc-d306-4be3-970a-cf3e9f7e71be", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should reset all filters", + "timedOut": false, + "duration": 2866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByDelayReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2477940c-071d-4913-bc4e-844e958d7ecc", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active '1'", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should filter by active '1'", + "timedOut": false, + "duration": 852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterFilter).to.be.at.most(numberOfCarriers);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1849046-7da9-412b-ba0f-35a0e8fec978", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should reset all filters", + "timedOut": false, + "duration": 2863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByStatusReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13f20f17-9b8e-467f-9830-381bd8c58ed7", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by is_free '0'", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should filter by is_free '0'", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByFreeShipping\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterFilter).to.be.at.most(numberOfCarriers);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31c1c01e-084f-44d2-b223-0f96735e6ce7", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should reset all filters", + "timedOut": false, + "duration": 2883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByFreeShippingReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b80888a2-00ee-427f-8bda-ae0412cb10a3", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by a!position '4'", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should filter by a!position '4'", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterFilter).to.be.at.most(numberOfCarriers);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6596088a-a31c-4fa4-9c20-98123b4f8671", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Filter carriers table should reset all filters", + "timedOut": false, + "duration": 2871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterByPositionReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94aeff7b-7b71-4b5d-b65e-508aa20e205f", + "parentUUID": "909873ca-7441-4bf8-a9e7-2c519002e4e8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97d59501-f0d7-4f12-b04e-9ba504d6639a", + "394174cf-1cb6-4ff8-a498-6ebafd81270c", + "bcbe1ee3-a2a4-45b8-8946-a222ee303392", + "4c5f84d2-18a0-459c-9f09-f8c98e5a9d16", + "cb6581bc-d306-4be3-970a-cf3e9f7e71be", + "2477940c-071d-4913-bc4e-844e958d7ecc", + "f1849046-7da9-412b-ba0f-35a0e8fec978", + "13f20f17-9b8e-467f-9830-381bd8c58ed7", + "31c1c01e-084f-44d2-b223-0f96735e6ce7", + "b80888a2-00ee-427f-8bda-ae0412cb10a3", + "6596088a-a31c-4fa4-9c20-98123b4f8671", + "94aeff7b-7b71-4b5d-b65e-508aa20e205f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22551, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52058fb5-2ef3-4967-a77c-b5ac5cad09c3", + "title": "Sort carriers table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_carrier' 'down' and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Sort carriers table should sort by 'id_carrier' 'down' and check result", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, carriers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d4ce32f-07c0-42d2-99d8-2864f4cf0590", + "parentUUID": "52058fb5-2ef3-4967-a77c-b5ac5cad09c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'down' and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Sort carriers table should sort by 'name' 'down' and check result", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, carriers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96731360-4817-4387-b2f2-72eadc66b6a5", + "parentUUID": "52058fb5-2ef3-4967-a77c-b5ac5cad09c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'up' and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Sort carriers table should sort by 'name' 'up' and check result", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, carriers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee67221c-cf20-4763-8487-226e762a47ae", + "parentUUID": "52058fb5-2ef3-4967-a77c-b5ac5cad09c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!position' 'up' and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Sort carriers table should sort by 'a!position' 'up' and check result", + "timedOut": false, + "duration": 892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_sortByPositionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, carriers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93c47a7b-5fd3-4135-97be-5fc4bc62a2a3", + "parentUUID": "52058fb5-2ef3-4967-a77c-b5ac5cad09c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!position' 'down' and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Sort carriers table should sort by 'a!position' 'down' and check result", + "timedOut": false, + "duration": 864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_sortByPositionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, carriers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3e71c58-24e3-4e03-b9af-5831a9dac36b", + "parentUUID": "52058fb5-2ef3-4967-a77c-b5ac5cad09c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_carrier' 'up' and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Sort carriers table should sort by 'id_carrier' 'up' and check result", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, carriers_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bb6a955-540c-4d76-863b-ec2f57dcac5b", + "parentUUID": "52058fb5-2ef3-4967-a77c-b5ac5cad09c3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6d4ce32f-07c0-42d2-99d8-2864f4cf0590", + "96731360-4817-4387-b2f2-72eadc66b6a5", + "ee67221c-cf20-4763-8487-226e762a47ae", + "93c47a7b-5fd3-4135-97be-5fc4bc62a2a3", + "b3e71c58-24e3-4e03-b9af-5831a9dac36b", + "1bb6a955-540c-4d76-863b-ec2f57dcac5b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5325, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "title": "Create 16 carriers in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "ab14e760-20bb-4541-a321-0dcfd50d0ed3", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "f4f21ce9-3bc8-4e7d-b5a2-675f680af703", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 24, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "de151c23-5f53-40a2-867d-3c1a8a7d1756", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "e429a300-094e-460d-8ed1-e4a532456aa6", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "371c362a-305a-47c6-9f84-ebf2cd237cb0", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 25, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "d7ed2d71-d949-4680-a68c-3d0c46629048", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "98c7e76c-6d59-4fe1-9523-bea109109379", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "0684b3e1-198e-48db-9710-70d4e9dfe2da", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "69f254b4-27f4-4c83-9fb5-40fe1b04752e", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 25, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "934e4f32-4981-4f7c-a5b5-9e474298fda3", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 17, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "cf8e0392-c106-4f7b-b09f-61988f7bda94", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 21, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "4f3689f1-4dbd-4d2d-970f-0aeadc6f7d5c", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 20, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "cc556727-7cbe-4168-ba9a-bce580c278ac", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "64208317-cd65-4759-b725-3a5d388b7ed5", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "ffe94e5c-3cc9-4f2a-9ec2-bc9d48f52cb4", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "0604ea90-6687-4b35-9c7f-aa18cfe82c1c", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"before all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 22, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "4e84542d-da27-4714-b205-28b627bdac79", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "0a027f61-6b3a-4dfb-a903-b03a79c5e7d7", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "de1e8d77-eb73-4894-b783-cf83d05a4b94", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "cdcfdd05-2141-4466-bdcb-643477f4b1d3", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "9ad42120-b840-4c0e-a99c-22f227e87615", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "ac21cd82-e5b6-4c2d-bfff-c0e5ac8db083", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "db5e410e-0d1f-4200-8c9c-a32a7da60f92", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "67c5f85a-d494-4dfe-b392-9704143bbf91", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "7bbfd8ff-3f06-4f06-975c-457d754bc36e", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "5be53c51-40f3-4400-b501-354d0710a6e3", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "f7ee5756-64e8-48d5-bae5-86c0e0c3dc12", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "09748022-7c07-4f74-8507-735658162178", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 1, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "aaa3e6bb-cfc1-4c56-a116-c1b195f5cbc6", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "2eeaf525-e569-44d5-95a7-96654642afea", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "330fd4db-8c29-4c6d-8edd-5878122ece67", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "3e27ddfc-920c-4b07-8207-36b3afad2553", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "be6b03a1-c6c8-4250-89ea-ac3c560f54c7", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 16 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO \"after all\" hook in \"Create 16 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "7dfc67ef-5b4e-427b-a3ed-701af73f8d64", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "443bd476-3dfe-4089-8a0b-34a950442c2a", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°1 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°1 and check result", + "timedOut": false, + "duration": 1551, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "153cee98-d26f-4388-aa5a-87d551a95570", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74836f29-5305-44cf-8c1b-0f4edf87f33f", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°2 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°2 and check result", + "timedOut": false, + "duration": 1568, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bab1c250-59bd-45c9-9c6e-bae7617ff1c7", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e1443ea-df5e-4fd7-8c26-3cefb5ab53eb", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°3 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°3 and check result", + "timedOut": false, + "duration": 1589, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97fe8462-6550-4d1b-af94-86d05aab93ea", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1ec0bea-ebea-4234-a26f-69dcd4c40e66", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°4 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°4 and check result", + "timedOut": false, + "duration": 1598, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3cc7965-5a77-4bda-b0a6-d9f3975920bf", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50df8ec7-8c34-44ca-89a6-b2619f8f773b", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°5 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°5 and check result", + "timedOut": false, + "duration": 1583, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "625f52ae-ed6c-450e-97c1-5433d7fdd5b9", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03418dc7-3f45-420c-bfe7-0f901dd6bd16", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°6 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°6 and check result", + "timedOut": false, + "duration": 1568, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "902470cb-fdf7-4bf8-a068-fe9d60bb8c85", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18649e5e-46b0-4044-aec6-5eb86086d1e6", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°7 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°7 and check result", + "timedOut": false, + "duration": 1577, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1981e0cc-36a6-4e16-8ca0-6a0b35334780", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4a4c026-aa49-42cf-893d-f9f0acbb0cf1", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°8 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°8 and check result", + "timedOut": false, + "duration": 1627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3f6db1f-32f9-4374-9acb-bb6d48518bf4", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eb92ee0-a118-4fc3-bb04-8d13c67aaa0a", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°9 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°9 and check result", + "timedOut": false, + "duration": 1551, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bf7d46b-c80c-4fbd-a55c-a32a7082fbd0", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "564d43ac-e6f2-4a4c-833d-7e86d5616145", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°10 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°10 and check result", + "timedOut": false, + "duration": 1584, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3dfe67e-c221-4cbf-bbf6-fbea3fa4c262", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "537bf092-1817-4688-8d76-e499f0caff89", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°11 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°11 and check result", + "timedOut": false, + "duration": 1602, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e02621d3-6df3-4d82-af4f-7dd48bde4e39", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1060ac93-075d-40ff-93df-7e081655ef1f", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°12 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°12 and check result", + "timedOut": false, + "duration": 1649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7e5f62a-01a7-4b8d-9f5e-b92482f9cb24", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6431483-8443-4ed3-98f9-9a55d3808e69", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°13 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°13 and check result", + "timedOut": false, + "duration": 1625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a0ab4b7-e2f8-400c-ad72-189c643b394e", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 968, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f40f95ac-75c4-4d2a-94e4-761d79145449", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°14 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°14 and check result", + "timedOut": false, + "duration": 1617, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27399ed2-3919-4147-9149-0522b7a49eae", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32b9c495-fdb5-4df9-8baa-50ca9eed5f59", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°15 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°15 and check result", + "timedOut": false, + "duration": 1583, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "761d3a0a-7d0d-462d-b60a-d2441fb068f0", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 973, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83c08d1c-ddb3-40c3-833b-3aada00b2e96", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°16 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°16 and check result", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "053bc281-3bdb-4acb-90b1-14b33635b477", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 992, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_goToAddCarrierPage16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dcfb4bd-6682-48d2-9d8c-8646ebf2a98c", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°17 and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Create 16 carriers in BO should create carrier n°17 and check result", + "timedOut": false, + "duration": 1622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_createCarrier16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a036ff92-3373-4e9d-bc9d-f53fc8e3063d", + "parentUUID": "1e13cb9d-f23c-4dff-978b-1726a2ea9503", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "443bd476-3dfe-4089-8a0b-34a950442c2a", + "153cee98-d26f-4388-aa5a-87d551a95570", + "74836f29-5305-44cf-8c1b-0f4edf87f33f", + "bab1c250-59bd-45c9-9c6e-bae7617ff1c7", + "7e1443ea-df5e-4fd7-8c26-3cefb5ab53eb", + "97fe8462-6550-4d1b-af94-86d05aab93ea", + "b1ec0bea-ebea-4234-a26f-69dcd4c40e66", + "f3cc7965-5a77-4bda-b0a6-d9f3975920bf", + "50df8ec7-8c34-44ca-89a6-b2619f8f773b", + "625f52ae-ed6c-450e-97c1-5433d7fdd5b9", + "03418dc7-3f45-420c-bfe7-0f901dd6bd16", + "902470cb-fdf7-4bf8-a068-fe9d60bb8c85", + "18649e5e-46b0-4044-aec6-5eb86086d1e6", + "1981e0cc-36a6-4e16-8ca0-6a0b35334780", + "b4a4c026-aa49-42cf-893d-f9f0acbb0cf1", + "e3f6db1f-32f9-4374-9acb-bb6d48518bf4", + "3eb92ee0-a118-4fc3-bb04-8d13c67aaa0a", + "9bf7d46b-c80c-4fbd-a55c-a32a7082fbd0", + "564d43ac-e6f2-4a4c-833d-7e86d5616145", + "f3dfe67e-c221-4cbf-bbf6-fbea3fa4c262", + "537bf092-1817-4688-8d76-e499f0caff89", + "e02621d3-6df3-4d82-af4f-7dd48bde4e39", + "1060ac93-075d-40ff-93df-7e081655ef1f", + "d7e5f62a-01a7-4b8d-9f5e-b92482f9cb24", + "c6431483-8443-4ed3-98f9-9a55d3808e69", + "7a0ab4b7-e2f8-400c-ad72-189c643b394e", + "f40f95ac-75c4-4d2a-94e4-761d79145449", + "27399ed2-3919-4147-9149-0522b7a49eae", + "32b9c495-fdb5-4df9-8baa-50ca9eed5f59", + "761d3a0a-7d0d-462d-b60a-d2441fb068f0", + "83c08d1c-ddb3-40c3-833b-3aada00b2e96", + "053bc281-3bdb-4acb-90b1-14b33635b477", + "4dcfb4bd-6682-48d2-9d8c-8646ebf2a98c", + "a036ff92-3373-4e9d-bc9d-f53fc8e3063d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 43852, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0f9c5ee5-ba7b-4343-94dd-76d78d0da0db", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_changeItemsNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11e3eb82-918c-44c4-848c-a25c665601db", + "parentUUID": "0f9c5ee5-ba7b-4343-94dd-76d78d0da0db", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Pagination next and previous should click on next", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "853f6005-24e3-44d5-828c-dfded07c91f5", + "parentUUID": "0f9c5ee5-ba7b-4343-94dd-76d78d0da0db", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Pagination next and previous should click on previous", + "timedOut": false, + "duration": 937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac847944-ba01-4f99-86ca-1b0b5149c872", + "parentUUID": "0f9c5ee5-ba7b-4343-94dd-76d78d0da0db", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_changeItemsNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemsNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae76b287-19c6-4279-9ce4-f29e40ca13e6", + "parentUUID": "0f9c5ee5-ba7b-4343-94dd-76d78d0da0db", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "11e3eb82-918c-44c4-848c-a25c665601db", + "853f6005-24e3-44d5-828c-dfded07c91f5", + "ac847944-ba01-4f99-86ca-1b0b5149c872", + "ae76b287-19c6-4279-9ce4-f29e40ca13e6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2563, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a9b8835d-27ef-466f-9d8a-559e38459947", + "title": "Delete carriers with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Delete carriers with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 1125, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c7fe477-a253-473d-982f-7b73014c7f8f", + "parentUUID": "a9b8835d-27ef-466f-9d8a-559e38459947", + "isHook": false, + "skipped": false + }, + { + "title": "should delete carriers with Bulk Actions and check result", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Delete carriers with Bulk Actions should delete carriers with Bulk Actions and check result", + "timedOut": false, + "duration": 674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_bulkDeleteCarriers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCarriers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.bulkDeleteCarriers(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(carriers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30a6a364-21bd-4eba-88bf-73b848749306", + "parentUUID": "a9b8835d-27ef-466f-9d8a-559e38459947", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Filter, sort and pagination carriers Delete carriers with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 2873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_filterSortAndPagination_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.be.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88e1d300-b09b-41ef-b253-fb37c71f8104", + "parentUUID": "a9b8835d-27ef-466f-9d8a-559e38459947", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3c7fe477-a253-473d-982f-7b73014c7f8f", + "30a6a364-21bd-4eba-88bf-73b848749306", + "88e1d300-b09b-41ef-b253-fb37c71f8104" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4672, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "58ea4398-42c9-4090-8464-83610b37af7d", + "4c0e26c0-ac39-4141-94bd-d8051b822d51", + "a3e6ec82-b9a3-406c-a9d9-065cfe681a2e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5415, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b0730995-fac7-48ff-bd26-20f11102e075", + "title": "BO - Shipping - Carriers : Quick edit and bulk actions carriers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shipping - Carriers : Quick edit and bulk actions carriers\"", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers \"before all\" hook in \"BO - Shipping - Carriers : Quick edit and bulk actions carriers\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2277536b-2deb-42d6-9c25-bd87aa7366c9", + "parentUUID": "b0730995-fac7-48ff-bd26-20f11102e075", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shipping - Carriers : Quick edit and bulk actions carriers\"", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers \"after all\" hook in \"BO - Shipping - Carriers : Quick edit and bulk actions carriers\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "78798d9c-b372-4fa0-a2f0-d12ef7a053a7", + "parentUUID": "b0730995-fac7-48ff-bd26-20f11102e075", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "444b5b79-f102-46c1-8065-e1990a51ff12", + "parentUUID": "b0730995-fac7-48ff-bd26-20f11102e075", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shipping> Carriers' page", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers should go to 'Shipping> Carriers' page", + "timedOut": false, + "duration": 3622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_goToCarriersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCarriersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.carriersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e015434-d6ab-409c-9579-f130cd4149f6", + "parentUUID": "b0730995-fac7-48ff-bd26-20f11102e075", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of carriers in BO", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers should reset all filters and get number of carriers in BO", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriers = _a.sent();\n (0, chai_1.expect)(numberOfCarriers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfb1ebed-819b-4378-bd43-c8383361962b", + "parentUUID": "b0730995-fac7-48ff-bd26-20f11102e075", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "89985b8b-d481-4076-9b7f-927c9f244948", + "title": "Create 2 carriers in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Create 2 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Create 2 carriers in BO \"before all\" hook in \"Create 2 carriers in BO\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "d856bacf-2476-4d7c-94e6-640af7b83f66", + "parentUUID": "89985b8b-d481-4076-9b7f-927c9f244948", + "isHook": true, + "skipped": false + }, + { + "title": "\"before all\" hook in \"Create 2 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Create 2 carriers in BO \"before all\" hook in \"Create 2 carriers in BO\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "e2a3fa28-158a-434d-80c4-364a7ec92db6", + "parentUUID": "89985b8b-d481-4076-9b7f-927c9f244948", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Create 2 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Create 2 carriers in BO \"after all\" hook in \"Create 2 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "41c63855-656f-40f6-ba98-841cbcb62b98", + "parentUUID": "89985b8b-d481-4076-9b7f-927c9f244948", + "isHook": true, + "skipped": false + }, + { + "title": "\"after all\" hook in \"Create 2 carriers in BO\"", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Create 2 carriers in BO \"after all\" hook in \"Create 2 carriers in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "76015b64-973c-4561-9377-3808bede1ad4", + "parentUUID": "89985b8b-d481-4076-9b7f-927c9f244948", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Create 2 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_goToAddCarrierPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ce94fe1-6b23-4772-9aaf-005805a327e6", + "parentUUID": "89985b8b-d481-4076-9b7f-927c9f244948", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°1 and check result", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Create 2 carriers in BO should create carrier n°1 and check result", + "timedOut": false, + "duration": 1569, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_createCarrier0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfaa8bb2-3224-4a91-8af1-b69c9f8d3a65", + "parentUUID": "89985b8b-d481-4076-9b7f-927c9f244948", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Create 2 carriers in BO should go to add new carrier page", + "timedOut": false, + "duration": 981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_goToAddCarrierPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddCarrierPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "944b364f-df51-4da9-a5c7-71040f7308e3", + "parentUUID": "89985b8b-d481-4076-9b7f-927c9f244948", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier n°2 and check result", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Create 2 carriers in BO should create carrier n°2 and check result", + "timedOut": false, + "duration": 1532, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_createCarrier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCarriersAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterCreation).to.be.equal(numberOfCarriers + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4558c314-743f-44e7-ad99-f4706704eb3e", + "parentUUID": "89985b8b-d481-4076-9b7f-927c9f244948", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ce94fe1-6b23-4772-9aaf-005805a327e6", + "cfaa8bb2-3224-4a91-8af1-b69c9f8d3a65", + "944b364f-df51-4da9-a5c7-71040f7308e3", + "4558c314-743f-44e7-ad99-f4706704eb3e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5060, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d5be86f7-d4b1-499c-a994-57125ac58821", + "title": "Quick edit first carrier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Quick edit first carrier should filter list by name", + "timedOut": false, + "duration": 929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_filterForEnableDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForEnableDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ab98bea-3f11-4431-a963-1e4ec25aaac0", + "parentUUID": "d5be86f7-d4b1-499c-a994-57125ac58821", + "isHook": false, + "skipped": false + }, + { + "title": "should disable first carrier", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Quick edit first carrier should disable first carrier", + "timedOut": false, + "duration": 446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_disableCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Carrier\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, carriers_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(carriers_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, carriers_1.default.getStatus(page, 1)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a3a088a-6855-4340-b95d-15c78e3ccb37", + "parentUUID": "d5be86f7-d4b1-499c-a994-57125ac58821", + "isHook": false, + "skipped": false + }, + { + "title": "should enable first carrier", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Quick edit first carrier should enable first carrier", + "timedOut": false, + "duration": 456, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_enableCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Carrier\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.setStatus(page, 1, test.args.enabledValue)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, carriers_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(carriers_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, carriers_1.default.getStatus(page, 1)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.be.equal(test.args.enabledValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b379a43-9223-4305-9612-52d5170cf246", + "parentUUID": "d5be86f7-d4b1-499c-a994-57125ac58821", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Quick edit first carrier should reset all filters", + "timedOut": false, + "duration": 2870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_resetFilterAfterEnableDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterEnableDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.be.equal(numberOfCarriers + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74d94749-0729-4d06-9d01-0f6cd0695aa8", + "parentUUID": "d5be86f7-d4b1-499c-a994-57125ac58821", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8ab98bea-3f11-4431-a963-1e4ec25aaac0", + "4a3a088a-6855-4340-b95d-15c78e3ccb37", + "2b379a43-9223-4305-9612-52d5170cf246", + "74d94749-0729-4d06-9d01-0f6cd0695aa8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4701, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ea628cbc-678d-463b-9f75-535103cc173a", + "title": "Enable/Disable carriers with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Enable/Disable carriers with bulk actions should filter list by name", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_filterForBulkEnableDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkEnableDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78f5a246-8afa-4a08-83e7-55fe08f30f23", + "parentUUID": "ea628cbc-678d-463b-9f75-535103cc173a", + "isHook": false, + "skipped": false + }, + { + "title": "should Disable carriers with Bulk Actions and check result", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Enable/Disable carriers with bulk actions should Disable carriers with Bulk Actions and check result", + "timedOut": false, + "duration": 575, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_DisableByBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ByBulkActions\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.bulkSetStatus(page, test.args.action)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(carriers_1.default.successfulUpdateStatusMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5c251ba-e3fb-4b53-97fb-993d7b4162d3", + "parentUUID": "ea628cbc-678d-463b-9f75-535103cc173a", + "isHook": false, + "skipped": false + }, + { + "title": "should Enable carriers with Bulk Actions and check result", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Enable/Disable carriers with bulk actions should Enable carriers with Bulk Actions and check result", + "timedOut": false, + "duration": 1140, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_EnableByBulkActions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"ByBulkActions\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.bulkSetStatus(page, test.args.action)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(carriers_1.default.successfulUpdateStatusMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3efd6efc-b7fb-4433-9551-a3a5fe6de779", + "parentUUID": "ea628cbc-678d-463b-9f75-535103cc173a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "78f5a246-8afa-4a08-83e7-55fe08f30f23", + "d5c251ba-e3fb-4b53-97fb-993d7b4162d3", + "3efd6efc-b7fb-4433-9551-a3a5fe6de779" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2641, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3e48a2d0-d673-49c2-8a8e-338763b16aeb", + "title": "Delete the created carriers with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/03_quickEditAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Delete the created carriers with bulk actions should filter list by name", + "timedOut": false, + "duration": 923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCarriersAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfCarriersAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc7d9134-3285-433d-8ce6-78b8f3bd80ae", + "parentUUID": "3e48a2d0-d673-49c2-8a8e-338763b16aeb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete carriers with Bulk Actions and check result", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Delete the created carriers with bulk actions should delete carriers with Bulk Actions and check result", + "timedOut": false, + "duration": 588, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_bulkDeleteCarriers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteCarriers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.bulkDeleteCarriers(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(carriers_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "341d8152-13ba-4e2c-b134-924d85c4a0d5", + "parentUUID": "3e48a2d0-d673-49c2-8a8e-338763b16aeb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Carriers : Quick edit and bulk actions carriers Delete the created carriers with bulk actions should reset all filters", + "timedOut": false, + "duration": 2863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_quickEditAndBulkActions_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.be.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7513c23c-d32a-4b90-b830-b59b1a3dcfb2", + "parentUUID": "3e48a2d0-d673-49c2-8a8e-338763b16aeb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bc7d9134-3285-433d-8ce6-78b8f3bd80ae", + "341d8152-13ba-4e2c-b134-924d85c4a0d5", + "7513c23c-d32a-4b90-b830-b59b1a3dcfb2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4374, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "444b5b79-f102-46c1-8065-e1990a51ff12", + "6e015434-d6ab-409c-9579-f130cd4149f6", + "dfb1ebed-819b-4378-bd43-c8383361962b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5367, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "924a5a90-3ea2-47ca-b1d9-1473505f5541", + "title": "BO - Shipping - Carriers : Change carrier position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/04_changePosition.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/04_changePosition.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shipping - Carriers : Change carrier position\"", + "fullTitle": "BO - Shipping - Carriers : Change carrier position \"before all\" hook in \"BO - Shipping - Carriers : Change carrier position\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e08a3ad-d9a8-4df5-91c8-9a8e5dd916b0", + "parentUUID": "924a5a90-3ea2-47ca-b1d9-1473505f5541", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shipping - Carriers : Change carrier position\"", + "fullTitle": "BO - Shipping - Carriers : Change carrier position \"after all\" hook in \"BO - Shipping - Carriers : Change carrier position\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1bd12c06-a188-48ab-a07d-1f54159040b6", + "parentUUID": "924a5a90-3ea2-47ca-b1d9-1473505f5541", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shipping - Carriers : Change carrier position should login in BO", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "daa31a5b-2c96-43cc-bd44-7bd4a0dfabd7", + "parentUUID": "924a5a90-3ea2-47ca-b1d9-1473505f5541", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shipping > Carriers' page", + "fullTitle": "BO - Shipping - Carriers : Change carrier position should go to 'Shipping > Carriers' page", + "timedOut": false, + "duration": 3615, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_changePosition_goToCarriersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCarriersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.carriersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7e3cb4a-ca72-406d-9e2a-d9cc7a3c2396", + "parentUUID": "924a5a90-3ea2-47ca-b1d9-1473505f5541", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "d6bd7475-7d3a-41ff-85a3-3474df0144cf", + "title": "Change carrier position", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/01_carriers/04_changePosition.ts", + "file": "/campaigns/functional/BO/09_shipping/01_carriers/04_changePosition.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should reset all filters and get number of carriers in BO", + "fullTitle": "BO - Shipping - Carriers : Change carrier position Change carrier position should reset all filters and get number of carriers in BO", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_changePosition_resetCarriersFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCarriersFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriers = _a.sent();\n (0, chai_1.expect)(numberOfCarriers).to.be.above(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bc4fb1d-c682-4678-af8f-1610d89a9c2e", + "parentUUID": "d6bd7475-7d3a-41ff-85a3-3474df0144cf", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'position' 'asc' And check result", + "fullTitle": "BO - Shipping - Carriers : Change carrier position Change carrier position should sort by 'position' 'asc' And check result", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_changePosition_sortByPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sortByPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, 'a!position')];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, carriers_1.default.sortTable(page, 'a!position', 'up')];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getAllRowsColumnContent(page, 'a!position')];\n case 4:\n sortedTable = _a.sent();\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text !== null && text !== void 0 ? text : ''); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text !== null && text !== void 0 ? text : ''); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a47be6f0-7ef8-40fa-bfbb-05b4391c3077", + "parentUUID": "d6bd7475-7d3a-41ff-85a3-3474df0144cf", + "isHook": false, + "skipped": false + }, + { + "title": "should change first carrier position to 3", + "fullTitle": "BO - Shipping - Carriers : Change carrier position Change carrier position should change first carrier position to 3", + "timedOut": false, + "duration": 237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_changePosition_changeCarrierPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstRowCarrierName, textResult, thirdRowCarrierName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeCarrierPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 2:\n firstRowCarrierName = _a.sent();\n return [4 /*yield*/, carriers_1.default.changePosition(page, 1, 3)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Unable to change position').to.contains(carriers_1.default.successfulUpdateMessage);\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 3, 'name')];\n case 4:\n thirdRowCarrierName = _a.sent();\n (0, chai_1.expect)(thirdRowCarrierName, 'Changing position was done wrongly').to.equal(firstRowCarrierName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef788924-7893-4f47-8808-2945592fb1ad", + "parentUUID": "d6bd7475-7d3a-41ff-85a3-3474df0144cf", + "isHook": false, + "skipped": false + }, + { + "title": "should reset third carrier position to 1", + "fullTitle": "BO - Shipping - Carriers : Change carrier position Change carrier position should reset third carrier position to 1", + "timedOut": false, + "duration": 370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_carriers_changePosition_resetCarrierPosition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var thirdRowCarrierName, textResult, firstRowCarrierName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCarrierPosition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 3, 'name')];\n case 2:\n thirdRowCarrierName = _a.sent();\n return [4 /*yield*/, carriers_1.default.changePosition(page, 3, 1)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Unable to change position').to.contains(carriers_1.default.successfulUpdateMessage);\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n firstRowCarrierName = _a.sent();\n (0, chai_1.expect)(firstRowCarrierName, 'Changing position was done wrongly').to.equal(thirdRowCarrierName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58e6f8db-8c98-46b0-87ca-e81c79957a11", + "parentUUID": "d6bd7475-7d3a-41ff-85a3-3474df0144cf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7bc4fb1d-c682-4678-af8f-1610d89a9c2e", + "a47be6f0-7ef8-40fa-bfbb-05b4391c3077", + "ef788924-7893-4f47-8808-2945592fb1ad", + "58e6f8db-8c98-46b0-87ca-e81c79957a11" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1477, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "daa31a5b-2c96-43cc-bd44-7bd4a0dfabd7", + "a7e3cb4a-ca72-406d-9e2a-d9cc7a3c2396" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5343, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c45847af-a3aa-4fd5-a8c0-6cb8f4b85e14", + "title": "BO - Shipping - Preferences : Test handling charges for carriers in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shipping - Preferences : Test handling charges for carriers in FO\"", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO \"before all\" hook in \"BO - Shipping - Preferences : Test handling charges for carriers in FO\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create image\n return [4 /*yield*/, files_1.default.generateImage(\"\".concat(createCarrierData.name, \".jpg\"))];\n case 3:\n // Create image\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a1c07db-3b4e-4f6a-8bb4-841b7859e374", + "parentUUID": "c45847af-a3aa-4fd5-a8c0-6cb8f4b85e14", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shipping - Preferences : Test handling charges for carriers in FO\"", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO \"after all\" hook in \"BO - Shipping - Preferences : Test handling charges for carriers in FO\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Delete image\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(createCarrierData.name, \".jpg\"))];\n case 2:\n // Delete image\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4e063c93-6d93-4df0-8bfe-23ef16ebf15b", + "parentUUID": "c45847af-a3aa-4fd5-a8c0-6cb8f4b85e14", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO should login in BO", + "timedOut": false, + "duration": 1753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d4ffdc4-e8bc-47c5-9f70-a3def72a368d", + "parentUUID": "c45847af-a3aa-4fd5-a8c0-6cb8f4b85e14", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b4af7e7b-191c-45c8-8761-60d3e8ae7066", + "title": "Choose Price display method: tax excluded", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 5262, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToCustomerSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22205aef-50c0-4290-a896-c2d54799a4fa", + "parentUUID": "b4af7e7b-191c-45c8-8761-60d3e8ae7066", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Groups page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should go to Groups page", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToGroupsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGroupsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToGroupsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(groups_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7e998c1-e357-48e9-b2a6-6acfdf7dec20", + "parentUUID": "b4af7e7b-191c-45c8-8761-60d3e8ae7066", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by 'Customer'", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should filter by 'Customer'", + "timedOut": false, + "duration": 942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_filterByGroupName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByGroupName1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, 'input', 'b!name', groups_2.default.customer.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(groups_2.default.customer.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "befae767-2ac0-4f04-88b5-33efd39baa6a", + "parentUUID": "b4af7e7b-191c-45c8-8761-60d3e8ae7066", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit group page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should go to edit group page", + "timedOut": false, + "duration": 1624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToEditGroupPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditGroupPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.gotoEditGroupPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63fdbeac-2354-4d16-b702-97ad35ca1247", + "parentUUID": "b4af7e7b-191c-45c8-8761-60d3e8ae7066", + "isHook": false, + "skipped": false + }, + { + "title": "should update group by choosing 'Tax excluded'", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should update group by choosing 'Tax excluded'", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_updateGroup1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateGroup1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setPriceDisplayMethod(page, priceDisplayMethod[0])];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acca792b-c3f3-462e-96ee-f4208a68a1e4", + "parentUUID": "b4af7e7b-191c-45c8-8761-60d3e8ae7066", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "22205aef-50c0-4290-a896-c2d54799a4fa", + "c7e998c1-e357-48e9-b2a6-6acfdf7dec20", + "befae767-2ac0-4f04-88b5-33efd39baa6a", + "63fdbeac-2354-4d16-b702-97ad35ca1247", + "acca792b-c3f3-462e-96ee-f4208a68a1e4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9667, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "28a7ffa1-a652-40fb-b3db-ad748d8df4c6", + "title": "Create new carrier and enable 'Add handling costs'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shipping > Carriers' page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Create new carrier and enable 'Add handling costs' should go to 'Shipping > Carriers' page", + "timedOut": false, + "duration": 3583, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToCarriersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCarriersPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.carriersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f18ab4b6-3bc9-4eb4-8c6b-c49e53c8e334", + "parentUUID": "28a7ffa1-a652-40fb-b3db-ad748d8df4c6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new carrier page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Create new carrier and enable 'Add handling costs' should go to add new carrier page", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToAddCarrierPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddCarrierPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.goToAddNewCarrierPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e85e48e-4759-42d8-84d7-04c2422d728c", + "parentUUID": "28a7ffa1-a652-40fb-b3db-ad748d8df4c6", + "isHook": false, + "skipped": false + }, + { + "title": "should create carrier and check result", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Create new carrier and enable 'Add handling costs' should create carrier and check result", + "timedOut": false, + "duration": 1623, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_createCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCarrier(page, createCarrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f57e2a3-df64-41cb-9224-a4c9e26263f9", + "parentUUID": "28a7ffa1-a652-40fb-b3db-ad748d8df4c6", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name and get the new carrier ID", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Create new carrier and enable 'Add handling costs' should filter list by name and get the new carrier ID", + "timedOut": false, + "duration": 937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_filterToCheckNewCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, name;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToCheckNewCarrier', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, carriers_1.default.resetFilter(page)];\n case 2:\n _b.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', createCarrierData.name)];\n case 3:\n _b.sent();\n _a = parseInt;\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'id_carrier')];\n case 4:\n newCarrierID = _a.apply(void 0, [_b.sent(), 10]);\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 5:\n name = _b.sent();\n (0, chai_1.expect)(name).to.contains(createCarrierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59d85f82-0f5e-4788-bdcd-b15dbf9eb5b0", + "parentUUID": "28a7ffa1-a652-40fb-b3db-ad748d8df4c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f18ab4b6-3bc9-4eb4-8c6b-c49e53c8e334", + "7e85e48e-4759-42d8-84d7-04c2422d728c", + "1f57e2a3-df64-41cb-9224-a4c9e26263f9", + "59d85f82-0f5e-4788-bdcd-b15dbf9eb5b0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7109, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "65d03a56-a524-4e01-99a4-4fda300bbad4", + "title": "Check shipping costs for the carrier 'Denesik Inc' in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should view my shop", + "timedOut": false, + "duration": 1788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_firstViewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstViewMyShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d51ba262-77ae-4294-a84e-9200d3007711", + "parentUUID": "65d03a56-a524-4e01-99a4-4fda300bbad4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should go to login page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_firstGoToLoginPageFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstGoToLoginPageFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd29f3ab-f19a-4f02-acfc-e0e331b1542a", + "parentUUID": "65d03a56-a524-4e01-99a4-4fda300bbad4", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should sign in with default customer", + "timedOut": false, + "duration": 567, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_firstSighInFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstSighInFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3417c3e-133a-4cfe-8f51-1fce2bbc46b8", + "parentUUID": "65d03a56-a524-4e01-99a4-4fda300bbad4", + "isHook": false, + "skipped": false + }, + { + "title": "should create an order", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should create an order", + "timedOut": false, + "duration": 6359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_firstCreateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstCreateOrder', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "188dd867-2193-45fe-aa78-789b9e08af67", + "parentUUID": "65d03a56-a524-4e01-99a4-4fda300bbad4", + "isHook": false, + "skipped": false + }, + { + "title": "should select the new carrier and check the chipping costs", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should select the new carrier and check the chipping costs", + "timedOut": false, + "duration": 2432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_checkShippingCost1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingCost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingCost1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethodAndAddComment(page, newCarrierID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getShippingCost(page)];\n case 3:\n shippingCost = _a.sent();\n (0, chai_1.expect)(shippingCost).to.contains(defaultHandlingChargesValue + createCarrierData.allZonesValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01c48d68-7ccb-42ea-ae7d-da783538421f", + "parentUUID": "65d03a56-a524-4e01-99a4-4fda300bbad4", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should sign out from FO", + "timedOut": false, + "duration": 2072, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_signOutFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcaa73ac-3bdb-4f2c-a872-e89b552e3e77", + "parentUUID": "65d03a56-a524-4e01-99a4-4fda300bbad4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d51ba262-77ae-4294-a84e-9200d3007711", + "cd29f3ab-f19a-4f02-acfc-e0e331b1542a", + "a3417c3e-133a-4cfe-8f51-1fce2bbc46b8", + "188dd867-2193-45fe-aa78-789b9e08af67", + "01c48d68-7ccb-42ea-ae7d-da783538421f", + "fcaa73ac-3bdb-4f2c-a872-e89b552e3e77" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13911, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c208c5dd-f482-4c64-bf01-e245824e5c12", + "title": "Update handling charges", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Update handling charges should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9868560b-ba53-411d-be30-6ac772ff2b51", + "parentUUID": "c208c5dd-f482-4c64-bf01-e245824e5c12", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shipping > Preferences' page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Update handling charges should go to 'Shipping > Preferences' page", + "timedOut": false, + "duration": 3898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToPreferencesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPreferencesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.shippingPreferencesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfd83f8a-7628-4365-914b-7086e2d0f73c", + "parentUUID": "c208c5dd-f482-4c64-bf01-e245824e5c12", + "isHook": false, + "skipped": false + }, + { + "title": "should update 'Handling charges' value", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Update handling charges should update 'Handling charges' value", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_updateHandlingCharges1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateHandlingCharges1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setHandlingCharges(page, updateHandlingChargesValue.toString())];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "747ea9a3-4677-48c4-8057-4ab263d55748", + "parentUUID": "c208c5dd-f482-4c64-bf01-e245824e5c12", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9868560b-ba53-411d-be30-6ac772ff2b51", + "cfd83f8a-7628-4365-914b-7086e2d0f73c", + "747ea9a3-4677-48c4-8057-4ab263d55748" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4292, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5eedb454-16d4-4798-8578-b94b781ac5ff", + "title": "Check shipping costs for the carrier 'Denesik Inc' in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should view my shop", + "timedOut": false, + "duration": 1692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_firstViewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstViewMyShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1b60197-c171-4dee-8357-6652da5d9d5c", + "parentUUID": "5eedb454-16d4-4798-8578-b94b781ac5ff", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should go to login page", + "timedOut": false, + "duration": 704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_firstGoToLoginPageFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstGoToLoginPageFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "311b99c9-de40-4568-999d-5510e0c8376d", + "parentUUID": "5eedb454-16d4-4798-8578-b94b781ac5ff", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should sign in with default customer", + "timedOut": false, + "duration": 500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_firstSighInFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstSighInFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ad37d43-b44d-4688-adce-790e858a40e7", + "parentUUID": "5eedb454-16d4-4798-8578-b94b781ac5ff", + "isHook": false, + "skipped": false + }, + { + "title": "should create an order", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should create an order", + "timedOut": false, + "duration": 6256, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_secondCreateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'secondCreateOrder', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "906134a7-c131-4aa6-9fc0-fea47f3a0977", + "parentUUID": "5eedb454-16d4-4798-8578-b94b781ac5ff", + "isHook": false, + "skipped": false + }, + { + "title": "should select the new carrier and check the chipping costs", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should select the new carrier and check the chipping costs", + "timedOut": false, + "duration": 2408, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_checkShippingCost2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingCost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingCost2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethodAndAddComment(page, newCarrierID)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getShippingCost(page)];\n case 3:\n shippingCost = _a.sent();\n (0, chai_1.expect)(shippingCost).to.contains(updateHandlingChargesValue + createCarrierData.allZonesValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c816f3e-4a25-4425-bdd7-e263363336f6", + "parentUUID": "5eedb454-16d4-4798-8578-b94b781ac5ff", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Check shipping costs for the carrier 'Denesik Inc' in FO should sign out from FO", + "timedOut": false, + "duration": 2037, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_signOutFo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFo2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a033787-cb0f-4ae7-866b-a31fa3883462", + "parentUUID": "5eedb454-16d4-4798-8578-b94b781ac5ff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e1b60197-c171-4dee-8357-6652da5d9d5c", + "311b99c9-de40-4568-999d-5510e0c8376d", + "6ad37d43-b44d-4688-adce-790e858a40e7", + "906134a7-c131-4aa6-9fc0-fea47f3a0977", + "8c816f3e-4a25-4425-bdd7-e263363336f6", + "7a033787-cb0f-4ae7-866b-a31fa3883462" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13597, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0bbc9841-595b-40cf-b795-2dfedf64a298", + "title": "Go back to default handling cost value", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Go back to default handling cost value should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d9367fa-3561-43b6-a0a0-fef51958499f", + "parentUUID": "0bbc9841-595b-40cf-b795-2dfedf64a298", + "isHook": false, + "skipped": false + }, + { + "title": "should update 'Handling charges' value", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Go back to default handling cost value should update 'Handling charges' value", + "timedOut": false, + "duration": 428, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_updateHandlingCharges2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateHandlingCharges2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setHandlingCharges(page, defaultHandlingChargesValue.toString())];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0dfd1029-cfd8-4bc4-852c-1e17c41c443b", + "parentUUID": "0bbc9841-595b-40cf-b795-2dfedf64a298", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2d9367fa-3561-43b6-a0a0-fef51958499f", + "0dfd1029-cfd8-4bc4-852c-1e17c41c443b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 433, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "30b899d8-107c-4c71-a72d-0dd9736127a0", + "title": "Delete carrier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shipping > Carriers' page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Delete carrier should go to 'Shipping > Carriers' page", + "timedOut": false, + "duration": 3830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToCarriersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCarriersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.carriersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "332a0186-7789-4c90-8050-6b44de858eaf", + "parentUUID": "30b899d8-107c-4c71-a72d-0dd9736127a0", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Delete carrier should filter list by name", + "timedOut": false, + "duration": 3831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carrierName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', createCarrierData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n carrierName = _a.sent();\n (0, chai_1.expect)(carrierName).to.contains(createCarrierData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d16ceaac-cb3f-418b-aa24-f65f34f7a18a", + "parentUUID": "30b899d8-107c-4c71-a72d-0dd9736127a0", + "isHook": false, + "skipped": false + }, + { + "title": "should delete carrier", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Delete carrier should delete carrier", + "timedOut": false, + "duration": 3904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_deleteCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.deleteCarrier(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(carriers_1.default.successfulDeleteMessage);\n return [4 /*yield*/, carriers_1.default.resetFilter(page)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7de01b4-53e5-4d34-a93c-58ce4994b169", + "parentUUID": "30b899d8-107c-4c71-a72d-0dd9736127a0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "332a0186-7789-4c90-8050-6b44de858eaf", + "d16ceaac-cb3f-418b-aa24-f65f34f7a18a", + "a7de01b4-53e5-4d34-a93c-58ce4994b169" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11565, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60857ec2-67f9-48c8-9c3f-788c530995cd", + "title": "Choose Price display method: tax excluded", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/01_handling/01_handlingCharges.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToCustomerSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3c290da-401f-4f0d-aa99-74dbdaa302e3", + "parentUUID": "60857ec2-67f9-48c8-9c3f-788c530995cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Groups page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should go to Groups page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToGroupsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGroupsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToGroupsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(groups_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de286efa-0807-4f50-ad6d-6eeb5f40b765", + "parentUUID": "60857ec2-67f9-48c8-9c3f-788c530995cd", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by 'Customer'", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should filter by 'Customer'", + "timedOut": false, + "duration": 963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_filterByGroupName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByGroupName2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, 'input', 'b!name', groups_2.default.customer.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getTextColumn(page, 1, 'b!name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(groups_2.default.customer.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0133e8b-4003-4e8e-8cf5-60398be2c6a2", + "parentUUID": "60857ec2-67f9-48c8-9c3f-788c530995cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit group page", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should go to edit group page", + "timedOut": false, + "duration": 930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_goToEditGroupPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditGroupPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.gotoEditGroupPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c713eae8-79e0-4fe0-a972-4c8cfd3e9666", + "parentUUID": "60857ec2-67f9-48c8-9c3f-788c530995cd", + "isHook": false, + "skipped": false + }, + { + "title": "should update group by choosing 'Tax included'", + "fullTitle": "BO - Shipping - Preferences : Test handling charges for carriers in FO Choose Price display method: tax excluded should update group by choosing 'Tax included'", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_handling_handlingCharges_updateGroup2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateGroup2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.setPriceDisplayMethod(page, priceDisplayMethod[1])];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac3ebcb4-3210-49d6-b04c-51334b2ec521", + "parentUUID": "60857ec2-67f9-48c8-9c3f-788c530995cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b3c290da-401f-4f0d-aa99-74dbdaa302e3", + "de286efa-0807-4f50-ad6d-6eeb5f40b765", + "b0133e8b-4003-4e8e-8cf5-60398be2c6a2", + "c713eae8-79e0-4fe0-a972-4c8cfd3e9666", + "ac3ebcb4-3210-49d6-b04c-51334b2ec521" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8288, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "4d4ffdc4-e8bc-47c5-9f70-a3def72a368d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1753, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b8caae1a-0f6e-43a9-b28b-cb613e5b37ff", + "title": "BO - Shipping - Preferences : Update default carrier and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/01_defaultCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/01_defaultCarrier.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shipping - Preferences : Update default carrier and check it in FO\"", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO \"before all\" hook in \"BO - Shipping - Preferences : Update default carrier and check it in FO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58604c21-b8ef-46f7-a4e6-f68f0b4efc06", + "parentUUID": "b8caae1a-0f6e-43a9-b28b-cb613e5b37ff", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shipping - Preferences : Update default carrier and check it in FO\"", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO \"after all\" hook in \"BO - Shipping - Preferences : Update default carrier and check it in FO\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "50d30a86-046e-487b-8b89-9e1fe1754746", + "parentUUID": "b8caae1a-0f6e-43a9-b28b-cb613e5b37ff", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO should login in BO", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a07a226c-0e8c-49ac-9047-788db4b2443a", + "parentUUID": "b8caae1a-0f6e-43a9-b28b-cb613e5b37ff", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shipping > Preferences' page", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO should go to 'Shipping > Preferences' page", + "timedOut": false, + "duration": 4833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_goToPreferencesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPreferencesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.shippingPreferencesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92529830-9bb3-42ae-add1-93f7cd120654", + "parentUUID": "b8caae1a-0f6e-43a9-b28b-cb613e5b37ff", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "92cc4546-775e-4136-9609-9c838e095da4", + "title": "Set default carrier to 'My carrier' and check result in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/01_defaultCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/01_defaultCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set default carrier to My carrier in BO", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'My carrier' and check result in FO should set default carrier to My carrier in BO", + "timedOut": false, + "duration": 347, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_setDefaultCarrier0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setDefaultCarrier(page, carrier)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d7791de-d28d-44d9-a48a-a687190065d4", + "parentUUID": "92cc4546-775e-4136-9609-9c838e095da4", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'My carrier' and check result in FO should view my shop", + "timedOut": false, + "duration": 1794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aed47c75-46d9-4f40-be12-baacd3947077", + "parentUUID": "92cc4546-775e-4136-9609-9c838e095da4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to shipping step in checkout", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'My carrier' and check result in FO should go to shipping step in checkout", + "timedOut": false, + "duration": 5798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_checkFinalSummary0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFinalSummary\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "815f1d55-76d6-4e80-81b8-52cc53512d6f", + "parentUUID": "92cc4546-775e-4136-9609-9c838e095da4", + "isHook": false, + "skipped": false + }, + { + "title": "should verify default carrier", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'My carrier' and check result in FO should verify default carrier", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_checkDefaultCarrier0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedShippingMethod;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkDefaultCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getSelectedShippingMethod(page)];\n case 2:\n selectedShippingMethod = _a.sent();\n (0, chai_1.expect)(selectedShippingMethod, 'Wrong carrier was selected in FO').to.equal(carrier.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11504ff2-7bb6-402e-841e-aaad92c97e1b", + "parentUUID": "92cc4546-775e-4136-9609-9c838e095da4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'My carrier' and check result in FO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7fd51cc-1b1a-48e2-bc2b-88ddeb7640a3", + "parentUUID": "92cc4546-775e-4136-9609-9c838e095da4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2d7791de-d28d-44d9-a48a-a687190065d4", + "aed47c75-46d9-4f40-be12-baacd3947077", + "815f1d55-76d6-4e80-81b8-52cc53512d6f", + "11504ff2-7bb6-402e-841e-aaad92c97e1b", + "f7fd51cc-1b1a-48e2-bc2b-88ddeb7640a3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7959, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cc1a0bc2-ecce-4620-af6f-514f4537c8ba", + "title": "Set default carrier to 'Click and collect' and check result in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/01_defaultCarrier.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/01_defaultCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set default carrier to Click and collect in BO", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'Click and collect' and check result in FO should set default carrier to Click and collect in BO", + "timedOut": false, + "duration": 307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_setDefaultCarrier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setDefaultCarrier(page, carrier)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f946829-ccd4-407b-b270-b2a6bd8bd4b0", + "parentUUID": "cc1a0bc2-ecce-4620-af6f-514f4537c8ba", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'Click and collect' and check result in FO should view my shop", + "timedOut": false, + "duration": 1846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c68fcc22-75c1-4f41-8a5d-f09a17e1a324", + "parentUUID": "cc1a0bc2-ecce-4620-af6f-514f4537c8ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to shipping step in checkout", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'Click and collect' and check result in FO should go to shipping step in checkout", + "timedOut": false, + "duration": 5514, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_checkFinalSummary1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFinalSummary\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "060818b4-a4fd-4231-850d-0f0aad12b5ad", + "parentUUID": "cc1a0bc2-ecce-4620-af6f-514f4537c8ba", + "isHook": false, + "skipped": false + }, + { + "title": "should verify default carrier", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'Click and collect' and check result in FO should verify default carrier", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_checkDefaultCarrier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedShippingMethod;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkDefaultCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getSelectedShippingMethod(page)];\n case 2:\n selectedShippingMethod = _a.sent();\n (0, chai_1.expect)(selectedShippingMethod, 'Wrong carrier was selected in FO').to.equal(carrier.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6003842-02e7-405b-a789-4770d205ca1c", + "parentUUID": "cc1a0bc2-ecce-4620-af6f-514f4537c8ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Preferences : Update default carrier and check it in FO Set default carrier to 'Click and collect' and check result in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_defaultCarrier_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3dde239-4faf-4f57-aab8-e89053e19c38", + "parentUUID": "cc1a0bc2-ecce-4620-af6f-514f4537c8ba", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9f946829-ccd4-407b-b270-b2a6bd8bd4b0", + "c68fcc22-75c1-4f41-8a5d-f09a17e1a324", + "060818b4-a4fd-4231-850d-0f0aad12b5ad", + "a6003842-02e7-405b-a789-4770d205ca1c", + "f3dde239-4faf-4f57-aab8-e89053e19c38" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7687, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a07a226c-0e8c-49ac-9047-788db4b2443a", + "92529830-9bb3-42ae-add1-93f7cd120654" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6561, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e56112fc-66d4-46d4-b44d-28e31fb4a4a0", + "title": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/02_updateCarriersSortOption.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/02_updateCarriersSortOption.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by'\"", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' \"before all\" hook in \"BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by'\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5149a11-ee2a-4654-9a5a-aa673f391da7", + "parentUUID": "e56112fc-66d4-46d4-b44d-28e31fb4a4a0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by'\"", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' \"after all\" hook in \"BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2aa12164-996b-41b5-8977-92973620ff67", + "parentUUID": "e56112fc-66d4-46d4-b44d-28e31fb4a4a0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' should login in BO", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb2c33ed-dc9d-41db-9e07-f907c43e73f0", + "parentUUID": "e56112fc-66d4-46d4-b44d-28e31fb4a4a0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shipping > Carriers' page", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' should go to 'Shipping > Carriers' page", + "timedOut": false, + "duration": 3620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_goToCarriersPageToEnable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCarriersPageToEnable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.carriersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6c7acfd-0ab6-45f9-8d96-647ba563fab4", + "parentUUID": "e56112fc-66d4-46d4-b44d-28e31fb4a4a0", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "424101cc-53c1-4137-8e8c-e3fc43001676", + "title": "Enable the 2 carriers 'My cheap carrier' and 'My light carrier'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/02_updateCarriersSortOption.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/02_updateCarriersSortOption.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should reset all filters and get number of carriers in BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Enable the 2 carriers 'My cheap carrier' and 'My light carrier' should reset all filters and get number of carriers in BO", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriers = _a.sent();\n (0, chai_1.expect)(numberOfCarriers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0d6535c-e066-4acf-9fb4-5931307ad51c", + "parentUUID": "424101cc-53c1-4137-8e8c-e3fc43001676", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name My cheap carrier", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Enable the 2 carriers 'My cheap carrier' and 'My light carrier' should filter list by name My cheap carrier", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_filterByName0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', carrierName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(carrierName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0817e360-8bfb-40da-a2c0-e60603814505", + "parentUUID": "424101cc-53c1-4137-8e8c-e3fc43001676", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the carrier", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Enable the 2 carriers 'My cheap carrier' and 'My light carrier' should enable the carrier", + "timedOut": false, + "duration": 448, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_enableCarrier0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"enableCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.setStatus(page, 1, true)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, carriers_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(carriers_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, carriers_1.default.getStatus(page, 1)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df648032-96fb-4ce0-80e5-e0532b7a8aba", + "parentUUID": "424101cc-53c1-4137-8e8c-e3fc43001676", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Enable the 2 carriers 'My cheap carrier' and 'My light carrier' should reset all filters", + "timedOut": false, + "duration": 2845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_resetFilterAfterEnable0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterEnable\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.be.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "610bf9c0-838f-47ac-91fd-491391f3e3b4", + "parentUUID": "424101cc-53c1-4137-8e8c-e3fc43001676", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name My light carrier", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Enable the 2 carriers 'My cheap carrier' and 'My light carrier' should filter list by name My light carrier", + "timedOut": false, + "duration": 921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_filterByName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', carrierName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(carrierName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d58a1d2c-cd8c-41b8-9d72-dfa407aed01b", + "parentUUID": "424101cc-53c1-4137-8e8c-e3fc43001676", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the carrier", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Enable the 2 carriers 'My cheap carrier' and 'My light carrier' should enable the carrier", + "timedOut": false, + "duration": 455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_enableCarrier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"enableCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.setStatus(page, 1, true)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, carriers_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(carriers_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, carriers_1.default.getStatus(page, 1)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3e98245-d1c5-408b-9747-65a36075b93b", + "parentUUID": "424101cc-53c1-4137-8e8c-e3fc43001676", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Enable the 2 carriers 'My cheap carrier' and 'My light carrier' should reset all filters", + "timedOut": false, + "duration": 2904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_resetFilterAfterEnable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterEnable\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.be.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2b464a1-ed32-4905-a1fd-f6668c5f8db6", + "parentUUID": "424101cc-53c1-4137-8e8c-e3fc43001676", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e0d6535c-e066-4acf-9fb4-5931307ad51c", + "0817e360-8bfb-40da-a2c0-e60603814505", + "df648032-96fb-4ce0-80e5-e0532b7a8aba", + "610bf9c0-838f-47ac-91fd-491391f3e3b4", + "d58a1d2c-cd8c-41b8-9d72-dfa407aed01b", + "a3e98245-d1c5-408b-9747-65a36075b93b", + "a2b464a1-ed32-4905-a1fd-f6668c5f8db6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8502, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "title": "Choose the sort option in BO and check it in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/02_updateCarriersSortOption.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/02_updateCarriersSortOption.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shipping > Preferences' page", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go to 'Shipping > Preferences' page", + "timedOut": false, + "duration": 5022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_goToPreferencesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPreferencesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.shippingPreferencesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0d20986-d44b-456f-8cd0-e096d5e1f462", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should set sort by 'Position' and order by 'Ascending' in BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should set sort by 'Position' and order by 'Ascending' in BO", + "timedOut": false, + "duration": 328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_setDefaultCarrier0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCarrierSortOrderBy(page, test.args.sortBy, test.args.orderBy)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfc7402d-1fac-4a40-8df1-1d5d6a364c3c", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should view my shop", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1710477-1450-42fb-928d-43b5ec95a450", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to shipping step in checkout", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go to shipping step in checkout", + "timedOut": false, + "duration": 6143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_checkFinalSummary0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFinalSummary\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4e8196c-33cf-464d-b840-367744cee21f", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the sort of carriers", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should verify the sort of carriers", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_checkSort0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sortedCarriers, expectedResult, sortedCarriers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSort\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.sortBy === 'Price')) return [3 /*break*/, 4];\n return [4 /*yield*/, checkout_1.default.getAllCarriersPrices(page)];\n case 2:\n sortedCarriers = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(sortedCarriers)];\n case 3:\n expectedResult = _a.sent();\n if (test.args.orderBy === 'Ascending') {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 6];\n case 4:\n if (!(test.args.sortBy === 'Position')) return [3 /*break*/, 6];\n return [4 /*yield*/, checkout_1.default.getAllCarriersNames(page)];\n case 5:\n sortedCarriers = _a.sent();\n if (test.args.orderBy === 'Ascending') {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(sortByPosition);\n }\n else {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(sortByPosition.reverse());\n }\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7925264e-cafb-4ffc-95b3-06aac021f445", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8905b2b-d1e9-4a93-a995-f27c20848436", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should set sort by 'Position' and order by 'Descending' in BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should set sort by 'Position' and order by 'Descending' in BO", + "timedOut": false, + "duration": 325, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_setDefaultCarrier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCarrierSortOrderBy(page, test.args.sortBy, test.args.orderBy)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4541a783-af19-405f-8fbc-b17aad7cfb5e", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should view my shop", + "timedOut": false, + "duration": 1795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bcb589d-693e-421e-a34b-6053ea2554fb", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to shipping step in checkout", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go to shipping step in checkout", + "timedOut": false, + "duration": 5510, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_checkFinalSummary1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFinalSummary\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b68d1e91-c5d6-4f5e-80bf-b5e5245b36fd", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the sort of carriers", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should verify the sort of carriers", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_checkSort1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sortedCarriers, expectedResult, sortedCarriers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSort\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.sortBy === 'Price')) return [3 /*break*/, 4];\n return [4 /*yield*/, checkout_1.default.getAllCarriersPrices(page)];\n case 2:\n sortedCarriers = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(sortedCarriers)];\n case 3:\n expectedResult = _a.sent();\n if (test.args.orderBy === 'Ascending') {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 6];\n case 4:\n if (!(test.args.sortBy === 'Position')) return [3 /*break*/, 6];\n return [4 /*yield*/, checkout_1.default.getAllCarriersNames(page)];\n case 5:\n sortedCarriers = _a.sent();\n if (test.args.orderBy === 'Ascending') {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(sortByPosition);\n }\n else {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(sortByPosition.reverse());\n }\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab8f5f28-67ff-4401-aad8-575897130e4e", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7eeb7f13-fda2-48a3-9059-ba524db6b7e3", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should set sort by 'Price' and order by 'Descending' in BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should set sort by 'Price' and order by 'Descending' in BO", + "timedOut": false, + "duration": 325, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_setDefaultCarrier2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCarrierSortOrderBy(page, test.args.sortBy, test.args.orderBy)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a36c6cb5-c20d-4711-8937-2ffe9fb8f0df", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should view my shop", + "timedOut": false, + "duration": 1786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0679dde3-b838-4681-8e0d-fc55c27e9389", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to shipping step in checkout", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go to shipping step in checkout", + "timedOut": false, + "duration": 5500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_checkFinalSummary2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFinalSummary\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "461c7ba1-fd1a-4fda-a79b-a63bcd425ff3", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the sort of carriers", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should verify the sort of carriers", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_checkSort2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sortedCarriers, expectedResult, sortedCarriers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSort\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.sortBy === 'Price')) return [3 /*break*/, 4];\n return [4 /*yield*/, checkout_1.default.getAllCarriersPrices(page)];\n case 2:\n sortedCarriers = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(sortedCarriers)];\n case 3:\n expectedResult = _a.sent();\n if (test.args.orderBy === 'Ascending') {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 6];\n case 4:\n if (!(test.args.sortBy === 'Position')) return [3 /*break*/, 6];\n return [4 /*yield*/, checkout_1.default.getAllCarriersNames(page)];\n case 5:\n sortedCarriers = _a.sent();\n if (test.args.orderBy === 'Ascending') {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(sortByPosition);\n }\n else {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(sortByPosition.reverse());\n }\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "899e6237-4293-470c-8059-ee508a8510c6", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7b80c54-59e3-424f-b905-3cd4e2351992", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should set sort by 'Price' and order by 'Ascending' in BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should set sort by 'Price' and order by 'Ascending' in BO", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_setDefaultCarrier3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDefaultCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.setCarrierSortOrderBy(page, test.args.sortBy, test.args.orderBy)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contain(preferences_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3350f27-52e5-4222-b6fd-9b3c0ebb6759", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should view my shop", + "timedOut": false, + "duration": 1803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, preferences_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "814e65dc-3a15-4012-bdc5-9fda8328255c", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to shipping step in checkout", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go to shipping step in checkout", + "timedOut": false, + "duration": 5525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_checkFinalSummary3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFinalSummary\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 4:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 7];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 5:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 6:\n _a.sent();\n _a.label = 7;\n case 7: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 8:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08c0f129-eb73-4b9a-a8d6-f5982179e36c", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the sort of carriers", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should verify the sort of carriers", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_checkSort3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sortedCarriers, expectedResult, sortedCarriers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSort\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(test.args.sortBy === 'Price')) return [3 /*break*/, 4];\n return [4 /*yield*/, checkout_1.default.getAllCarriersPrices(page)];\n case 2:\n sortedCarriers = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(sortedCarriers)];\n case 3:\n expectedResult = _a.sent();\n if (test.args.orderBy === 'Ascending') {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 6];\n case 4:\n if (!(test.args.sortBy === 'Position')) return [3 /*break*/, 6];\n return [4 /*yield*/, checkout_1.default.getAllCarriersNames(page)];\n case 5:\n sortedCarriers = _a.sent();\n if (test.args.orderBy === 'Ascending') {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(sortByPosition);\n }\n else {\n (0, chai_1.expect)(sortedCarriers).to.deep.equal(sortByPosition.reverse());\n }\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5211d14e-3400-4735-9adc-9eb0d14a07ad", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Choose the sort option in BO and check it in FO should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, preferences_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(preferences_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "693a8975-c95a-46fa-93dc-271d89b52724", + "parentUUID": "527e4f82-f09f-41d7-982b-cccae275a2b7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d0d20986-d44b-456f-8cd0-e096d5e1f462", + "dfc7402d-1fac-4a40-8df1-1d5d6a364c3c", + "d1710477-1450-42fb-928d-43b5ec95a450", + "d4e8196c-33cf-464d-b840-367744cee21f", + "7925264e-cafb-4ffc-95b3-06aac021f445", + "c8905b2b-d1e9-4a93-a995-f27c20848436", + "4541a783-af19-405f-8fbc-b17aad7cfb5e", + "0bcb589d-693e-421e-a34b-6053ea2554fb", + "b68d1e91-c5d6-4f5e-80bf-b5e5245b36fd", + "ab8f5f28-67ff-4401-aad8-575897130e4e", + "7eeb7f13-fda2-48a3-9059-ba524db6b7e3", + "a36c6cb5-c20d-4711-8937-2ffe9fb8f0df", + "0679dde3-b838-4681-8e0d-fc55c27e9389", + "461c7ba1-fd1a-4fda-a79b-a63bcd425ff3", + "899e6237-4293-470c-8059-ee508a8510c6", + "d7b80c54-59e3-424f-b905-3cd4e2351992", + "a3350f27-52e5-4222-b6fd-9b3c0ebb6759", + "814e65dc-3a15-4012-bdc5-9fda8328255c", + "08c0f129-eb73-4b9a-a8d6-f5982179e36c", + "5211d14e-3400-4735-9adc-9eb0d14a07ad", + "693a8975-c95a-46fa-93dc-271d89b52724" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 36178, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9defb5e8-7fb0-4d4a-9e91-208978a2056a", + "title": "Disable the 2 carriers 'My cheap carrier' and 'My light carrier'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/02_updateCarriersSortOption.ts", + "file": "/campaigns/functional/BO/09_shipping/02_preferences/02_carrierOptions/02_updateCarriersSortOption.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shipping > Carriers' page", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Disable the 2 carriers 'My cheap carrier' and 'My light carrier' should go to 'Shipping > Carriers' page", + "timedOut": false, + "duration": 3833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_goToCarriersPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCarriersPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shippingLink, dashboard_1.default.carriersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(carriers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d010c6d-3f7f-4e59-84c0-50187d2679ff", + "parentUUID": "9defb5e8-7fb0-4d4a-9e91-208978a2056a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name My cheap carrier", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Disable the 2 carriers 'My cheap carrier' and 'My light carrier' should filter list by name My cheap carrier", + "timedOut": false, + "duration": 930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_filterByName0ToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByName\".concat(index, \"ToDisable\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', carrierName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(carrierName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e2792c3-d08b-4784-b436-8d046cad7b98", + "parentUUID": "9defb5e8-7fb0-4d4a-9e91-208978a2056a", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the carrier", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Disable the 2 carriers 'My cheap carrier' and 'My light carrier' should disable the carrier", + "timedOut": false, + "duration": 485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_disableCarrier0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"disableCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.setStatus(page, 1, false)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, carriers_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(carriers_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, carriers_1.default.getStatus(page, 1)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55f35cfd-4ec6-4123-aabc-3024b45a3806", + "parentUUID": "9defb5e8-7fb0-4d4a-9e91-208978a2056a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Disable the 2 carriers 'My cheap carrier' and 'My light carrier' should reset all filters", + "timedOut": false, + "duration": 2848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_resetFilterAfterDisable0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDisable\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.be.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b633ef5-983d-4148-8723-3deedac9b689", + "parentUUID": "9defb5e8-7fb0-4d4a-9e91-208978a2056a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name My light carrier", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Disable the 2 carriers 'My cheap carrier' and 'My light carrier' should filter list by name My light carrier", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_filterByName1ToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterByName\".concat(index, \"ToDisable\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.filterTable(page, 'input', 'name', carrierName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.getTextColumn(page, 1, 'name')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(carrierName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dba2b510-1a90-46df-9349-1c593dbbbe67", + "parentUUID": "9defb5e8-7fb0-4d4a-9e91-208978a2056a", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the carrier", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Disable the 2 carriers 'My cheap carrier' and 'My light carrier' should disable the carrier", + "timedOut": false, + "duration": 467, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_disableCarrier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, carrierStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"disableCarrier\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.setStatus(page, 1, false)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, carriers_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(carriers_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, carriers_1.default.getStatus(page, 1)];\n case 5:\n carrierStatus = _a.sent();\n (0, chai_1.expect)(carrierStatus).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "283133ba-690a-4f35-b015-431413071a19", + "parentUUID": "9defb5e8-7fb0-4d4a-9e91-208978a2056a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shipping - Preferences : Update 'sort carriers by' and 'Order carriers by' Disable the 2 carriers 'My cheap carrier' and 'My light carrier' should reset all filters", + "timedOut": false, + "duration": 2859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shipping_preferences_carrierOptions_updateCarriersSortOption_resetFilterAfterDisable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCarriersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfterDisable\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, carriers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCarriersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCarriersAfterReset).to.be.equal(numberOfCarriers);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4aff7584-6b64-4ae9-af62-f378d5b8e80d", + "parentUUID": "9defb5e8-7fb0-4d4a-9e91-208978a2056a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8d010c6d-3f7f-4e59-84c0-50187d2679ff", + "6e2792c3-d08b-4784-b436-8d046cad7b98", + "55f35cfd-4ec6-4123-aabc-3024b45a3806", + "7b633ef5-983d-4148-8723-3deedac9b689", + "dba2b510-1a90-46df-9349-1c593dbbbe67", + "283133ba-690a-4f35-b015-431413071a19", + "4aff7584-6b64-4ae9-af62-f378d5b8e80d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12353, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "eb2c33ed-dc9d-41db-9e07-f907c43e73f0", + "a6c7acfd-0ab6-45f9-8d96-647ba563fab4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5368, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "7e72974d-5ee2-49a4-b847-f22a3a5b6163", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 888, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e73b72a9-b9e1-4891-82eb-18ff6a49f0a7", + "parentUUID": "7e72974d-5ee2-49a4-b847-f22a3a5b6163", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1a95e26-6e02-4cab-a945-b5284f169f1d", + "parentUUID": "7e72974d-5ee2-49a4-b847-f22a3a5b6163", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "183bf0e3-926c-48fe-89ce-2f152ef17b55", + "parentUUID": "7e72974d-5ee2-49a4-b847-f22a3a5b6163", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "cc76bad4-c2b5-4578-ab4e-f93a722af301", + "title": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/03_allowIframes.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/03_allowIframes.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field \"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field\"", + "timedOut": false, + "duration": 54, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "629a9280-6e0a-4d14-921f-2a2d06ac7f32", + "parentUUID": "cc76bad4-c2b5-4578-ab4e-f93a722af301", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field \"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "91a787bf-88f5-4a77-be3c-6debcde31374", + "parentUUID": "cc76bad4-c2b5-4578-ab4e-f93a722af301", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field should login in BO", + "timedOut": false, + "duration": 6778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e2a566a-ea7f-4e47-8a9e-f92a356ba909", + "parentUUID": "cc76bad4-c2b5-4578-ab4e-f93a722af301", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "title": "Disable Allow iframes on HTML fields", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/03_allowIframes.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/03_allowIframes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Disable Allow iframes on HTML fields should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 5290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goToGeneralPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af802fa6-d308-4767-86a0-10914a3f1456", + "parentUUID": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "isHook": false, + "skipped": false + }, + { + "title": "should Disable allow iframes", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Disable Allow iframes on HTML fields should Disable allow iframes", + "timedOut": false, + "duration": 1069, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_DisableAllowIframes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AllowIframes\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setAllowIframes(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "761555db-e9e5-4ae9-b80c-c4b27e4262a0", + "parentUUID": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Products page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Disable Allow iframes on HTML fields should go to Products page", + "timedOut": false, + "duration": 4849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goToProductsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f0673a4-eab5-49ef-8fe8-ba4030637738", + "parentUUID": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to first product page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Disable Allow iframes on HTML fields should go to first product page", + "timedOut": false, + "duration": 1488, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goToFirstProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0c397b1-425e-402c-93c2-7364be2cabf9", + "parentUUID": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "isHook": false, + "skipped": false + }, + { + "title": "should add an iframe in the product description", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Disable Allow iframes on HTML fields should add an iframe in the product description", + "timedOut": false, + "duration": 1321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_editDescription0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editDescription\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setIframeInDescription(page, description)];\n case 2:\n _a.sent();\n if (!(test.args.action === 'Disable')) return [3 /*break*/, 4];\n return [4 /*yield*/, add_1.default.clickOnSaveProductButton(page)];\n case 3:\n _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 5:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4eed3df4-b9a0-420d-af61-4c9acc95cd49", + "parentUUID": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "isHook": false, + "skipped": false + }, + { + "title": "should preview the product", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Disable Allow iframes on HTML fields should preview the product", + "timedOut": false, + "duration": 2347, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_previewProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_14.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1b3ea6d-21ae-4fa8-ada2-719e3ea4b303", + "parentUUID": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the iframe in the product description", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Disable Allow iframes on HTML fields should check the existence of the iframe in the product description", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_checkIframe0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible, youtubeURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIframe\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isIframeVisibleInProductDescription(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible).to.equal(test.args.exist);\n if (!test.args.exist) return [3 /*break*/, 4];\n return [4 /*yield*/, product_1.default.getURLInProductDescription(page)];\n case 3:\n youtubeURL = _a.sent();\n (0, chai_1.expect)(youtubeURL).to.equal('https://www.youtube.com/embed/3qcApq8NMhw?si=0O8BBWjbJ7gJRkoi');\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3736ce0c-8209-461e-8f2f-d42a09613cfa", + "parentUUID": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Disable Allow iframes on HTML fields should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33528c5b-2e0d-41b2-9e16-c5ff27a2e25f", + "parentUUID": "650b9f23-c5e2-475a-9444-9b5de63dd4e4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "af802fa6-d308-4767-86a0-10914a3f1456", + "761555db-e9e5-4ae9-b80c-c4b27e4262a0", + "0f0673a4-eab5-49ef-8fe8-ba4030637738", + "c0c397b1-425e-402c-93c2-7364be2cabf9", + "4eed3df4-b9a0-420d-af61-4c9acc95cd49", + "a1b3ea6d-21ae-4fa8-ada2-719e3ea4b303", + "3736ce0c-8209-461e-8f2f-d42a09613cfa", + "33528c5b-2e0d-41b2-9e16-c5ff27a2e25f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17376, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "476937e1-4436-4981-8bea-5b7535037ff9", + "title": "Enable Allow iframes on HTML fields", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/03_allowIframes.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/03_allowIframes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Enable Allow iframes on HTML fields should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4604, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goToGeneralPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be9686de-aea7-4d64-866d-81e0c5afe8da", + "parentUUID": "476937e1-4436-4981-8bea-5b7535037ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should Enable allow iframes", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Enable Allow iframes on HTML fields should Enable allow iframes", + "timedOut": false, + "duration": 452, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_EnableAllowIframes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AllowIframes\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setAllowIframes(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ff2b84e-ac9f-4add-863f-947151b65d91", + "parentUUID": "476937e1-4436-4981-8bea-5b7535037ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Products page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Enable Allow iframes on HTML fields should go to Products page", + "timedOut": false, + "duration": 4743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goToProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1357f768-5dd2-4ad6-8305-56cf212a5acc", + "parentUUID": "476937e1-4436-4981-8bea-5b7535037ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to first product page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Enable Allow iframes on HTML fields should go to first product page", + "timedOut": false, + "duration": 1154, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "101cfc17-b164-4383-a9d4-f891075531df", + "parentUUID": "476937e1-4436-4981-8bea-5b7535037ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should add an iframe in the product description", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Enable Allow iframes on HTML fields should add an iframe in the product description", + "timedOut": false, + "duration": 2369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_editDescription1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editDescription\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setIframeInDescription(page, description)];\n case 2:\n _a.sent();\n if (!(test.args.action === 'Disable')) return [3 /*break*/, 4];\n return [4 /*yield*/, add_1.default.clickOnSaveProductButton(page)];\n case 3:\n _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 5:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e176c543-bec6-4877-9f48-886a92c492e4", + "parentUUID": "476937e1-4436-4981-8bea-5b7535037ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should preview the product", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Enable Allow iframes on HTML fields should preview the product", + "timedOut": false, + "duration": 2214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_previewProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"previewProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_14.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6256e7eb-3491-4ce9-866d-de63f726ffe1", + "parentUUID": "476937e1-4436-4981-8bea-5b7535037ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the iframe in the product description", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Enable Allow iframes on HTML fields should check the existence of the iframe in the product description", + "timedOut": false, + "duration": 257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_checkIframe1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible, youtubeURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIframe\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isIframeVisibleInProductDescription(page)];\n case 2:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible).to.equal(test.args.exist);\n if (!test.args.exist) return [3 /*break*/, 4];\n return [4 /*yield*/, product_1.default.getURLInProductDescription(page)];\n case 3:\n youtubeURL = _a.sent();\n (0, chai_1.expect)(youtubeURL).to.equal('https://www.youtube.com/embed/3qcApq8NMhw?si=0O8BBWjbJ7gJRkoi');\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6186736c-bfcb-4bed-8480-57a272ff065f", + "parentUUID": "476937e1-4436-4981-8bea-5b7535037ff9", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field Enable Allow iframes on HTML fields should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29e1f045-36d9-46cd-a69b-3163b926d9e4", + "parentUUID": "476937e1-4436-4981-8bea-5b7535037ff9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "be9686de-aea7-4d64-866d-81e0c5afe8da", + "5ff2b84e-ac9f-4add-863f-947151b65d91", + "1357f768-5dd2-4ad6-8305-56cf212a5acc", + "101cfc17-b164-4383-a9d4-f891075531df", + "e176c543-bec6-4877-9f48-886a92c492e4", + "6256e7eb-3491-4ce9-866d-de63f726ffe1", + "6186736c-bfcb-4bed-8480-57a272ff065f", + "29e1f045-36d9-46cd-a69b-3163b926d9e4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15799, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9dcbcb37-9ca8-43b0-93a5-3ddc9325aae4", + "title": "POST-TEST : Reset product description", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/03_allowIframes.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/03_allowIframes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Products page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field POST-TEST : Reset product description should go to Products page", + "timedOut": false, + "duration": 4970, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "037b408c-d826-4b56-a9f0-53b37aad0526", + "parentUUID": "9dcbcb37-9ca8-43b0-93a5-3ddc9325aae4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to first product page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field POST-TEST : Reset product description should go to first product page", + "timedOut": false, + "duration": 1247, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_goToFirstProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3510a65-804e-4e83-8163-3e1518ad582a", + "parentUUID": "9dcbcb37-9ca8-43b0-93a5-3ddc9325aae4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the product description", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable Allow iframes on HTML field POST-TEST : Reset product description should reset the product description", + "timedOut": false, + "duration": 2109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_allowIframes_resetDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setIframeInDescription(page, '')];\n case 2:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setDescription(page, products_2.default.demo_14.description)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "600fda35-f275-47b0-a8d1-7490d29cfbfc", + "parentUUID": "9dcbcb37-9ca8-43b0-93a5-3ddc9325aae4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "037b408c-d826-4b56-a9f0-53b37aad0526", + "f3510a65-804e-4e83-8163-3e1518ad582a", + "600fda35-f275-47b0-a8d1-7490d29cfbfc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8326, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "2e2a566a-ea7f-4e47-8a9e-f92a356ba909" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6778, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "59c15dca-faad-4ac5-8196-c2edeb442968", + "title": "BO - Shop Parameters - General : Round mode", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - General : Round mode\"", + "fullTitle": "BO - Shop Parameters - General : Round mode \"before all\" hook in \"BO - Shop Parameters - General : Round mode\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e0e6269-cd7d-4e57-8c8a-7cf9d09852a5", + "parentUUID": "59c15dca-faad-4ac5-8196-c2edeb442968", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - General : Round mode\"", + "fullTitle": "BO - Shop Parameters - General : Round mode \"after all\" hook in \"BO - Shop Parameters - General : Round mode\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3abbb325-ccac-469e-aeee-de443b15b0a2", + "parentUUID": "59c15dca-faad-4ac5-8196-c2edeb442968", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General : Round mode should login in BO", + "timedOut": false, + "duration": 1804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac59ce24-dfc0-455b-8ca1-0bde3cec52aa", + "parentUUID": "59c15dca-faad-4ac5-8196-c2edeb442968", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "d02dbe75-5126-44ba-9332-182d6311f458", + "title": "PRE-TEST: Create product 'Product round mode'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'Product round mode'\"", + "fullTitle": "BO - Shop Parameters - General : Round mode PRE-TEST: Create product 'Product round mode' \"before all\" hook in \"PRE-TEST: Create product 'Product round mode'\"", + "timedOut": false, + "duration": 65, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26a0865a-f8fb-449d-8c6c-ae42f3eadc37", + "parentUUID": "d02dbe75-5126-44ba-9332-182d6311f458", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'Product round mode'\"", + "fullTitle": "BO - Shop Parameters - General : Round mode PRE-TEST: Create product 'Product round mode' \"after all\" hook in \"PRE-TEST: Create product 'Product round mode'\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8584ccb8-04ff-4e9b-a4b5-7556fbe446de", + "parentUUID": "d02dbe75-5126-44ba-9332-182d6311f458", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General : Round mode PRE-TEST: Create product 'Product round mode' should login in BO", + "timedOut": false, + "duration": 1757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f216be9-34d1-4d44-920c-6ec4b12abcd9", + "parentUUID": "d02dbe75-5126-44ba-9332-182d6311f458", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - General : Round mode PRE-TEST: Create product 'Product round mode' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_preTest_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42d5647e-0752-4bb8-9479-1742895f97a0", + "parentUUID": "d02dbe75-5126-44ba-9332-182d6311f458", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - General : Round mode PRE-TEST: Create product 'Product round mode' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_preTest_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2695722a-6578-4719-b5bd-7e8532703a2a", + "parentUUID": "d02dbe75-5126-44ba-9332-182d6311f458", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "BO - Shop Parameters - General : Round mode PRE-TEST: Create product 'Product round mode' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_preTest_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84aa9da8-a64b-4776-a849-3c70b4075d3d", + "parentUUID": "d02dbe75-5126-44ba-9332-182d6311f458", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Shop Parameters - General : Round mode PRE-TEST: Create product 'Product round mode' should create product", + "timedOut": false, + "duration": 5676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_preTest_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20aacc95-71f0-4f46-9269-d05be2185c09", + "parentUUID": "d02dbe75-5126-44ba-9332-182d6311f458", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4f216be9-34d1-4d44-920c-6ec4b12abcd9", + "42d5647e-0752-4bb8-9479-1742895f97a0", + "2695722a-6578-4719-b5bd-7e8532703a2a", + "84aa9da8-a64b-4776-a849-3c70b4075d3d", + "20aacc95-71f0-4f46-9269-d05be2185c09" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13523, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "88e4acd1-d55b-4491-952d-175a06444fb7", + "title": "Test round mode when the last digit of the price = 5", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "a93cbbc2-4064-4a11-abc3-f9af7c90d716", + "title": "Test the option 'Round up away from zero, when it is half way there (recommended)'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a351bb0-2752-45cc-b9c1-8829edddad14", + "parentUUID": "a93cbbc2-4064-4a11-abc3-f9af7c90d716", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round up away from zero, when it is half way there (recommended)'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should select the round mode 'Round up away from zero, when it is half way there (recommended)'", + "timedOut": false, + "duration": 377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea88dc07-0e40-4516-8af8-a0c9e70ce8c9", + "parentUUID": "a93cbbc2-4064-4a11-abc3-f9af7c90d716", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should view my shop", + "timedOut": false, + "duration": 1869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fde8a528-e5b7-4f97-9e6e-7a9d90e20d86", + "parentUUID": "a93cbbc2-4064-4a11-abc3-f9af7c90d716", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should search for the created product", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b0f4e4b-23e0-4818-8d3a-57ca8543e0c7", + "parentUUID": "a93cbbc2-4064-4a11-abc3-f9af7c90d716", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go to the product page", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f33a5a5a-eba2-4550-ac6c-f313010c5dde", + "parentUUID": "a93cbbc2-4064-4a11-abc3-f9af7c90d716", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should check the product price", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3255a07-c54c-4d2d-9311-7eae88a0461d", + "parentUUID": "a93cbbc2-4064-4a11-abc3-f9af7c90d716", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8521f031-30e2-4be0-a967-857e5a2c1ddf", + "parentUUID": "a93cbbc2-4064-4a11-abc3-f9af7c90d716", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4a351bb0-2752-45cc-b9c1-8829edddad14", + "ea88dc07-0e40-4516-8af8-a0c9e70ce8c9", + "fde8a528-e5b7-4f97-9e6e-7a9d90e20d86", + "1b0f4e4b-23e0-4818-8d3a-57ca8543e0c7", + "f33a5a5a-eba2-4550-ac6c-f313010c5dde", + "e3255a07-c54c-4d2d-9311-7eae88a0461d", + "8521f031-30e2-4be0-a967-857e5a2c1ddf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8863, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f542a76b-cb0a-4abe-866a-21407169f25d", + "title": "Test the option 'Round down towards zero, when it is half way there'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down towards zero, when it is half way there' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "382d3fff-1635-4903-80f7-96d553d25525", + "parentUUID": "f542a76b-cb0a-4abe-866a-21407169f25d", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round down towards zero, when it is half way there'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down towards zero, when it is half way there' should select the round mode 'Round down towards zero, when it is half way there'", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cebe48de-6bae-4702-923d-527bf0490f8c", + "parentUUID": "f542a76b-cb0a-4abe-866a-21407169f25d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down towards zero, when it is half way there' should view my shop", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adf99b35-2a1e-4d16-bd45-fbc1014bf659", + "parentUUID": "f542a76b-cb0a-4abe-866a-21407169f25d", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down towards zero, when it is half way there' should search for the created product", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "713a51a3-b1dd-4dd5-8207-7424e0be40b8", + "parentUUID": "f542a76b-cb0a-4abe-866a-21407169f25d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down towards zero, when it is half way there' should go to the product page", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d0e6add-4380-4d36-b449-f83642381028", + "parentUUID": "f542a76b-cb0a-4abe-866a-21407169f25d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down towards zero, when it is half way there' should check the product price", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "999ee0fa-fd17-49b7-b73b-31329a2560fe", + "parentUUID": "f542a76b-cb0a-4abe-866a-21407169f25d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down towards zero, when it is half way there' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c35d85c-10e2-4f2b-b1c2-724669cff416", + "parentUUID": "f542a76b-cb0a-4abe-866a-21407169f25d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "382d3fff-1635-4903-80f7-96d553d25525", + "cebe48de-6bae-4702-923d-527bf0490f8c", + "adf99b35-2a1e-4d16-bd45-fbc1014bf659", + "713a51a3-b1dd-4dd5-8207-7424e0be40b8", + "8d0e6add-4380-4d36-b449-f83642381028", + "999ee0fa-fd17-49b7-b73b-31329a2560fe", + "1c35d85c-10e2-4f2b-b1c2-724669cff416" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8468, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cb6e8e41-dfcf-4dd6-ab7a-dbf0a234aa98", + "title": "Test the option 'Round towards the next even value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next even value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee9b2c2a-149d-4b13-b6d6-a207be2c304e", + "parentUUID": "cb6e8e41-dfcf-4dd6-ab7a-dbf0a234aa98", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round towards the next even value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next even value' should select the round mode 'Round towards the next even value'", + "timedOut": false, + "duration": 361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff364d8a-45e4-4ad1-b325-b69b7baecde6", + "parentUUID": "cb6e8e41-dfcf-4dd6-ab7a-dbf0a234aa98", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next even value' should view my shop", + "timedOut": false, + "duration": 1780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38b64950-06db-4736-8afc-0544308c5a23", + "parentUUID": "cb6e8e41-dfcf-4dd6-ab7a-dbf0a234aa98", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next even value' should search for the created product", + "timedOut": false, + "duration": 770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40e4aa74-6fa4-4abe-9af9-d09bdded3821", + "parentUUID": "cb6e8e41-dfcf-4dd6-ab7a-dbf0a234aa98", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next even value' should go to the product page", + "timedOut": false, + "duration": 840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e87b494-48bf-4aa1-b704-acb1872cd0bb", + "parentUUID": "cb6e8e41-dfcf-4dd6-ab7a-dbf0a234aa98", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next even value' should check the product price", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3af96bf0-0920-4ea8-b627-c67ab1b7f12b", + "parentUUID": "cb6e8e41-dfcf-4dd6-ab7a-dbf0a234aa98", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next even value' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d55f39b-bbda-46c6-bd2c-dceab95e8fa5", + "parentUUID": "cb6e8e41-dfcf-4dd6-ab7a-dbf0a234aa98", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ee9b2c2a-149d-4b13-b6d6-a207be2c304e", + "ff364d8a-45e4-4ad1-b325-b69b7baecde6", + "38b64950-06db-4736-8afc-0544308c5a23", + "40e4aa74-6fa4-4abe-9af9-d09bdded3821", + "2e87b494-48bf-4aa1-b704-acb1872cd0bb", + "3af96bf0-0920-4ea8-b627-c67ab1b7f12b", + "9d55f39b-bbda-46c6-bd2c-dceab95e8fa5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8658, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d27d2de4-8e1f-4fee-b08e-e415b449bdee", + "title": "Test the option 'Round towards the next odd value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next odd value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68954cbd-6668-489e-8349-805726635333", + "parentUUID": "d27d2de4-8e1f-4fee-b08e-e415b449bdee", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round towards the next odd value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next odd value' should select the round mode 'Round towards the next odd value'", + "timedOut": false, + "duration": 335, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61cbf427-c2f6-4ca6-ad52-41d7e59e16b7", + "parentUUID": "d27d2de4-8e1f-4fee-b08e-e415b449bdee", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next odd value' should view my shop", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "365e8ba3-4aaa-4e00-9ff4-4edc1532533d", + "parentUUID": "d27d2de4-8e1f-4fee-b08e-e415b449bdee", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next odd value' should search for the created product", + "timedOut": false, + "duration": 771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cf037f8-c7f4-4e52-b42c-186a56c1b931", + "parentUUID": "d27d2de4-8e1f-4fee-b08e-e415b449bdee", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next odd value' should go to the product page", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f67ccd0-5a47-4ed9-8e6e-c6c773140c0a", + "parentUUID": "d27d2de4-8e1f-4fee-b08e-e415b449bdee", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next odd value' should check the product price", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01aa6b81-84a7-4358-bfdc-b13c781a69fe", + "parentUUID": "d27d2de4-8e1f-4fee-b08e-e415b449bdee", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round towards the next odd value' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0138e63-294e-449a-960d-b361c9c72728", + "parentUUID": "d27d2de4-8e1f-4fee-b08e-e415b449bdee", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "68954cbd-6668-489e-8349-805726635333", + "61cbf427-c2f6-4ca6-ad52-41d7e59e16b7", + "365e8ba3-4aaa-4e00-9ff4-4edc1532533d", + "0cf037f8-c7f4-4e52-b42c-186a56c1b931", + "8f67ccd0-5a47-4ed9-8e6e-c6c773140c0a", + "01aa6b81-84a7-4358-bfdc-b13c781a69fe", + "e0138e63-294e-449a-960d-b361c9c72728" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8453, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c2f59a10-6744-4298-bd07-7178c2a039ee", + "title": "Test the option 'Round up to the nearest value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up to the nearest value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af68e300-ddbb-41f9-b36f-74b7513e751c", + "parentUUID": "c2f59a10-6744-4298-bd07-7178c2a039ee", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round up to the nearest value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up to the nearest value' should select the round mode 'Round up to the nearest value'", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4582cfd-119a-476f-b223-4d1c62b03c98", + "parentUUID": "c2f59a10-6744-4298-bd07-7178c2a039ee", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up to the nearest value' should view my shop", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "047f4c21-35b8-42f9-a981-3305044f2837", + "parentUUID": "c2f59a10-6744-4298-bd07-7178c2a039ee", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up to the nearest value' should search for the created product", + "timedOut": false, + "duration": 758, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dc916fb-078b-45f1-9ec4-f4995e69ce79", + "parentUUID": "c2f59a10-6744-4298-bd07-7178c2a039ee", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up to the nearest value' should go to the product page", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5040e82f-3a6a-49a4-8e48-98933946c4dd", + "parentUUID": "c2f59a10-6744-4298-bd07-7178c2a039ee", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up to the nearest value' should check the product price", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe985a72-3c3b-4edb-be63-f75b91a22f42", + "parentUUID": "c2f59a10-6744-4298-bd07-7178c2a039ee", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round up to the nearest value' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57384416-871b-4d34-babc-65bb44e0420c", + "parentUUID": "c2f59a10-6744-4298-bd07-7178c2a039ee", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "af68e300-ddbb-41f9-b36f-74b7513e751c", + "f4582cfd-119a-476f-b223-4d1c62b03c98", + "047f4c21-35b8-42f9-a981-3305044f2837", + "8dc916fb-078b-45f1-9ec4-f4995e69ce79", + "5040e82f-3a6a-49a4-8e48-98933946c4dd", + "fe985a72-3c3b-4edb-be63-f75b91a22f42", + "57384416-871b-4d34-babc-65bb44e0420c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8541, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "54072cbe-4d19-40f3-9959-775a32ea6df0", + "title": "Test the option 'Round down to the nearest value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down to the nearest value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c3248de-0b47-4d51-9752-54e1f4e56364", + "parentUUID": "54072cbe-4d19-40f3-9959-775a32ea6df0", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round down to the nearest value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down to the nearest value' should select the round mode 'Round down to the nearest value'", + "timedOut": false, + "duration": 330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0442182b-dce8-4a86-902e-370ee9c7680d", + "parentUUID": "54072cbe-4d19-40f3-9959-775a32ea6df0", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down to the nearest value' should view my shop", + "timedOut": false, + "duration": 1686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f88160e2-0973-4b40-aeda-69a06210b5ad", + "parentUUID": "54072cbe-4d19-40f3-9959-775a32ea6df0", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down to the nearest value' should search for the created product", + "timedOut": false, + "duration": 764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d2d240f-c433-4a1a-b28d-678c47466adb", + "parentUUID": "54072cbe-4d19-40f3-9959-775a32ea6df0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down to the nearest value' should go to the product page", + "timedOut": false, + "duration": 836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fae78f50-d561-4199-a655-4d29c496b9d2", + "parentUUID": "54072cbe-4d19-40f3-9959-775a32ea6df0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down to the nearest value' should check the product price", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2736aa7-34c7-4500-8d41-679414af30f2", + "parentUUID": "54072cbe-4d19-40f3-9959-775a32ea6df0", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price = 5 Test the option 'Round down to the nearest value' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9a7b28b-e4b1-44da-84b8-e003136f0a1c", + "parentUUID": "54072cbe-4d19-40f3-9959-775a32ea6df0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5c3248de-0b47-4d51-9752-54e1f4e56364", + "0442182b-dce8-4a86-902e-370ee9c7680d", + "f88160e2-0973-4b40-aeda-69a06210b5ad", + "3d2d240f-c433-4a1a-b28d-678c47466adb", + "fae78f50-d561-4199-a655-4d29c496b9d2", + "c2736aa7-34c7-4500-8d41-679414af30f2", + "a9a7b28b-e4b1-44da-84b8-e003136f0a1c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8432, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "44ec3703-1e0c-4339-a37d-667db0795f03", + "title": "Test round mode when the last digit of the price < 5", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "21ec22ea-2f56-468e-8224-04c4c1783708", + "title": "Update product price", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to products page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Update product price should go to products page", + "timedOut": false, + "duration": 4746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7b7bf32-55ae-4035-afb2-3eceda829bbf", + "parentUUID": "21ec22ea-2f56-468e-8224-04c4c1783708", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Update product price should go to the created product", + "timedOut": false, + "duration": 1347, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c9851ca-1449-4fd6-a02a-f27bab351db0", + "parentUUID": "21ec22ea-2f56-468e-8224-04c4c1783708", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Update product price should edit the product price", + "timedOut": false, + "duration": 1708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_editProductPrice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductPrice1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setProductPricing(page, pricingData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8a27a31-602d-4dde-8b9d-9d7f124d7d03", + "parentUUID": "21ec22ea-2f56-468e-8224-04c4c1783708", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e7b7bf32-55ae-4035-afb2-3eceda829bbf", + "0c9851ca-1449-4fd6-a02a-f27bab351db0", + "e8a27a31-602d-4dde-8b9d-9d7f124d7d03" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7801, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "30c8d071-6d16-4eed-8c67-d4d02327f6ce", + "title": "Test the option 'Round up away from zero, when it is half way there (recommended)'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4601, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4cdda01-0ec5-4499-88b7-700236f1a8b2", + "parentUUID": "30c8d071-6d16-4eed-8c67-d4d02327f6ce", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round up away from zero, when it is half way there (recommended)'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should select the round mode 'Round up away from zero, when it is half way there (recommended)'", + "timedOut": false, + "duration": 323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15aad9c6-d065-4e8a-8c30-c649556e3e96", + "parentUUID": "30c8d071-6d16-4eed-8c67-d4d02327f6ce", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should view my shop", + "timedOut": false, + "duration": 1817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86aa15d3-20bc-4a2d-b478-59b35e74453e", + "parentUUID": "30c8d071-6d16-4eed-8c67-d4d02327f6ce", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should search for the created product", + "timedOut": false, + "duration": 774, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea58d253-93df-4524-baf2-4d1eacf0f29e", + "parentUUID": "30c8d071-6d16-4eed-8c67-d4d02327f6ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go to the product page", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f5dbfde-c76d-4dc4-b6c7-885de21b8786", + "parentUUID": "30c8d071-6d16-4eed-8c67-d4d02327f6ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should check the product price", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a77a558-258f-4c07-936f-ff8a987f0c83", + "parentUUID": "30c8d071-6d16-4eed-8c67-d4d02327f6ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cca108c6-1f70-4208-8764-8c83a2d44f61", + "parentUUID": "30c8d071-6d16-4eed-8c67-d4d02327f6ce", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4cdda01-0ec5-4499-88b7-700236f1a8b2", + "15aad9c6-d065-4e8a-8c30-c649556e3e96", + "86aa15d3-20bc-4a2d-b478-59b35e74453e", + "ea58d253-93df-4524-baf2-4d1eacf0f29e", + "2f5dbfde-c76d-4dc4-b6c7-885de21b8786", + "2a77a558-258f-4c07-936f-ff8a987f0c83", + "cca108c6-1f70-4208-8764-8c83a2d44f61" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8363, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b7884067-14fd-47e4-aa03-1cbc9e1372cb", + "title": "Test the option 'Round down towards zero, when it is half way there'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down towards zero, when it is half way there' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70e3ce25-6467-4f69-ac29-d1ca85c53552", + "parentUUID": "b7884067-14fd-47e4-aa03-1cbc9e1372cb", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round down towards zero, when it is half way there'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down towards zero, when it is half way there' should select the round mode 'Round down towards zero, when it is half way there'", + "timedOut": false, + "duration": 339, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6837205e-75a2-4ddc-bd18-ada4215502c4", + "parentUUID": "b7884067-14fd-47e4-aa03-1cbc9e1372cb", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down towards zero, when it is half way there' should view my shop", + "timedOut": false, + "duration": 1669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a41345a-d5b4-4268-a33f-347e6319665a", + "parentUUID": "b7884067-14fd-47e4-aa03-1cbc9e1372cb", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down towards zero, when it is half way there' should search for the created product", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1fde42d-8a21-4d9c-b5ac-ec947117b738", + "parentUUID": "b7884067-14fd-47e4-aa03-1cbc9e1372cb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down towards zero, when it is half way there' should go to the product page", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e973db2-7931-4e53-b811-9bc2acc01e5f", + "parentUUID": "b7884067-14fd-47e4-aa03-1cbc9e1372cb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down towards zero, when it is half way there' should check the product price", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5dce40d-bdf5-4db4-8c16-4b413b233388", + "parentUUID": "b7884067-14fd-47e4-aa03-1cbc9e1372cb", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down towards zero, when it is half way there' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc94dfc9-ae61-4557-9684-9fbbce8cc8ca", + "parentUUID": "b7884067-14fd-47e4-aa03-1cbc9e1372cb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "70e3ce25-6467-4f69-ac29-d1ca85c53552", + "6837205e-75a2-4ddc-bd18-ada4215502c4", + "7a41345a-d5b4-4268-a33f-347e6319665a", + "d1fde42d-8a21-4d9c-b5ac-ec947117b738", + "8e973db2-7931-4e53-b811-9bc2acc01e5f", + "b5dce40d-bdf5-4db4-8c16-4b413b233388", + "dc94dfc9-ae61-4557-9684-9fbbce8cc8ca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8447, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "75a4733a-bb05-4758-b2c6-644db46aa708", + "title": "Test the option 'Round towards the next even value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next even value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33a0dc38-ac79-4ff1-a991-f1f4ad8147ee", + "parentUUID": "75a4733a-bb05-4758-b2c6-644db46aa708", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round towards the next even value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next even value' should select the round mode 'Round towards the next even value'", + "timedOut": false, + "duration": 369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2647c6da-cef3-4b86-8d69-564679aff4f8", + "parentUUID": "75a4733a-bb05-4758-b2c6-644db46aa708", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next even value' should view my shop", + "timedOut": false, + "duration": 1681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "543ad4dc-baea-402b-a356-8e5a0287b2d9", + "parentUUID": "75a4733a-bb05-4758-b2c6-644db46aa708", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next even value' should search for the created product", + "timedOut": false, + "duration": 758, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "372dbd41-7f28-43f4-8bbc-f3cde7fb5dac", + "parentUUID": "75a4733a-bb05-4758-b2c6-644db46aa708", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next even value' should go to the product page", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6968772-c335-4502-bf9c-8bf9f8118b02", + "parentUUID": "75a4733a-bb05-4758-b2c6-644db46aa708", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next even value' should check the product price", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a091d88-1054-4beb-9b48-01855752a076", + "parentUUID": "75a4733a-bb05-4758-b2c6-644db46aa708", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next even value' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f71014c8-c673-4992-87a4-f581eeee8eb0", + "parentUUID": "75a4733a-bb05-4758-b2c6-644db46aa708", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "33a0dc38-ac79-4ff1-a991-f1f4ad8147ee", + "2647c6da-cef3-4b86-8d69-564679aff4f8", + "543ad4dc-baea-402b-a356-8e5a0287b2d9", + "372dbd41-7f28-43f4-8bbc-f3cde7fb5dac", + "e6968772-c335-4502-bf9c-8bf9f8118b02", + "3a091d88-1054-4beb-9b48-01855752a076", + "f71014c8-c673-4992-87a4-f581eeee8eb0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8509, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ec803ab5-da30-478e-b7bd-25b1719de039", + "title": "Test the option 'Round towards the next odd value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next odd value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f4fecc4-dbee-4022-883b-839115a96ff3", + "parentUUID": "ec803ab5-da30-478e-b7bd-25b1719de039", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round towards the next odd value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next odd value' should select the round mode 'Round towards the next odd value'", + "timedOut": false, + "duration": 350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "490a306b-cc98-4a2e-93bf-88025da0fa6e", + "parentUUID": "ec803ab5-da30-478e-b7bd-25b1719de039", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next odd value' should view my shop", + "timedOut": false, + "duration": 1681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e61feaf-864d-4914-a2ce-7758cb721727", + "parentUUID": "ec803ab5-da30-478e-b7bd-25b1719de039", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next odd value' should search for the created product", + "timedOut": false, + "duration": 760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cf56fc8-939a-4003-ad33-27cff5e1ad64", + "parentUUID": "ec803ab5-da30-478e-b7bd-25b1719de039", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next odd value' should go to the product page", + "timedOut": false, + "duration": 822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07d42094-e37b-4700-99af-ce9a43d760f6", + "parentUUID": "ec803ab5-da30-478e-b7bd-25b1719de039", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next odd value' should check the product price", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffc93a9c-45a8-4306-aa28-0d8d8189d48f", + "parentUUID": "ec803ab5-da30-478e-b7bd-25b1719de039", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round towards the next odd value' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eea152d-3e0c-4f8f-8111-71f0933eee01", + "parentUUID": "ec803ab5-da30-478e-b7bd-25b1719de039", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4f4fecc4-dbee-4022-883b-839115a96ff3", + "490a306b-cc98-4a2e-93bf-88025da0fa6e", + "5e61feaf-864d-4914-a2ce-7758cb721727", + "2cf56fc8-939a-4003-ad33-27cff5e1ad64", + "07d42094-e37b-4700-99af-ce9a43d760f6", + "ffc93a9c-45a8-4306-aa28-0d8d8189d48f", + "3eea152d-3e0c-4f8f-8111-71f0933eee01" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8471, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e14fe5c1-72ca-42ad-88af-86c38a6dcf6e", + "title": "Test the option 'Round up to the nearest value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up to the nearest value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61c7d7dc-45d9-4586-a38d-1f7211e1fcf8", + "parentUUID": "e14fe5c1-72ca-42ad-88af-86c38a6dcf6e", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round up to the nearest value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up to the nearest value' should select the round mode 'Round up to the nearest value'", + "timedOut": false, + "duration": 346, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d150c357-2797-4378-8542-1a1604f9cc5f", + "parentUUID": "e14fe5c1-72ca-42ad-88af-86c38a6dcf6e", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up to the nearest value' should view my shop", + "timedOut": false, + "duration": 1666, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4882c91c-fc3f-4040-9934-daca093cab4f", + "parentUUID": "e14fe5c1-72ca-42ad-88af-86c38a6dcf6e", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up to the nearest value' should search for the created product", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e84c70c8-b4c7-4d50-a21f-0067b27df27b", + "parentUUID": "e14fe5c1-72ca-42ad-88af-86c38a6dcf6e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up to the nearest value' should go to the product page", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47785ac7-0c99-4409-a89b-7f48733ce562", + "parentUUID": "e14fe5c1-72ca-42ad-88af-86c38a6dcf6e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up to the nearest value' should check the product price", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b381f2d9-7e36-4fcf-84c8-f463dad0e8be", + "parentUUID": "e14fe5c1-72ca-42ad-88af-86c38a6dcf6e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round up to the nearest value' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8c3acdd-8be7-4669-adb6-326247496d69", + "parentUUID": "e14fe5c1-72ca-42ad-88af-86c38a6dcf6e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "61c7d7dc-45d9-4586-a38d-1f7211e1fcf8", + "d150c357-2797-4378-8542-1a1604f9cc5f", + "4882c91c-fc3f-4040-9934-daca093cab4f", + "e84c70c8-b4c7-4d50-a21f-0067b27df27b", + "47785ac7-0c99-4409-a89b-7f48733ce562", + "b381f2d9-7e36-4fcf-84c8-f463dad0e8be", + "e8c3acdd-8be7-4669-adb6-326247496d69" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8419, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d340d2c7-5c8c-4130-bdd8-b5c60809f07e", + "title": "Test the option 'Round down to the nearest value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down to the nearest value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "538d32fa-b8d6-4dd5-8533-798e7fe01c67", + "parentUUID": "d340d2c7-5c8c-4130-bdd8-b5c60809f07e", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round down to the nearest value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down to the nearest value' should select the round mode 'Round down to the nearest value'", + "timedOut": false, + "duration": 372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32396d1c-4591-4672-9821-ece0e27f09ac", + "parentUUID": "d340d2c7-5c8c-4130-bdd8-b5c60809f07e", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down to the nearest value' should view my shop", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f4aeb7d-976f-4855-9e84-b2928a9cb5d6", + "parentUUID": "d340d2c7-5c8c-4130-bdd8-b5c60809f07e", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down to the nearest value' should search for the created product", + "timedOut": false, + "duration": 761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8596ec09-a382-40b9-9d15-313e212df9aa", + "parentUUID": "d340d2c7-5c8c-4130-bdd8-b5c60809f07e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down to the nearest value' should go to the product page", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88460311-b073-45e6-81ab-b42e388f311d", + "parentUUID": "d340d2c7-5c8c-4130-bdd8-b5c60809f07e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down to the nearest value' should check the product price", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bccdb2a0-e2b3-47a7-8507-cd2b4f15cad9", + "parentUUID": "d340d2c7-5c8c-4130-bdd8-b5c60809f07e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price < 5 Test the option 'Round down to the nearest value' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f4a4ffa-759a-4547-8f75-7887443055a9", + "parentUUID": "d340d2c7-5c8c-4130-bdd8-b5c60809f07e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "538d32fa-b8d6-4dd5-8533-798e7fe01c67", + "32396d1c-4591-4672-9821-ece0e27f09ac", + "6f4aeb7d-976f-4855-9e84-b2928a9cb5d6", + "8596ec09-a382-40b9-9d15-313e212df9aa", + "88460311-b073-45e6-81ab-b42e388f311d", + "bccdb2a0-e2b3-47a7-8507-cd2b4f15cad9", + "6f4a4ffa-759a-4547-8f75-7887443055a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8549, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ff215662-d3ba-4238-a6f5-2986a6d70054", + "title": "Test round mode when the last digit of the price > 5", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "c3baaf76-b901-4147-a97a-81784393cbce", + "title": "Update product price", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to products page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Update product price should go to products page", + "timedOut": false, + "duration": 4716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca32a792-6547-4482-b71e-88652d56cbe5", + "parentUUID": "c3baaf76-b901-4147-a97a-81784393cbce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Update product price should go to the created product", + "timedOut": false, + "duration": 1166, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToFirstProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "879f11d0-f30c-4a80-9fc1-5d90a49a0d8b", + "parentUUID": "c3baaf76-b901-4147-a97a-81784393cbce", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Update product price should edit the product price", + "timedOut": false, + "duration": 1848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_editProductPrice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductPrice2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setProductPricing(page, pricingData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a8c66e4-4550-4af3-beb4-43037ee10cdf", + "parentUUID": "c3baaf76-b901-4147-a97a-81784393cbce", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca32a792-6547-4482-b71e-88652d56cbe5", + "879f11d0-f30c-4a80-9fc1-5d90a49a0d8b", + "2a8c66e4-4550-4af3-beb4-43037ee10cdf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7730, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "18404eba-61a0-4120-b902-1ccfcf61904e", + "title": "Test the option 'Round up away from zero, when it is half way there (recommended)'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4572, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ac4c33c-1dae-4526-bf93-f51288784eaf", + "parentUUID": "18404eba-61a0-4120-b902-1ccfcf61904e", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round up away from zero, when it is half way there (recommended)'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should select the round mode 'Round up away from zero, when it is half way there (recommended)'", + "timedOut": false, + "duration": 350, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e363bd2e-6dc1-4d59-bd11-f66d093068f6", + "parentUUID": "18404eba-61a0-4120-b902-1ccfcf61904e", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should view my shop", + "timedOut": false, + "duration": 1839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71597dd9-a9c5-48c6-885b-1c9a6105e7e8", + "parentUUID": "18404eba-61a0-4120-b902-1ccfcf61904e", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should search for the created product", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "979fe3b8-2661-49b1-9e65-4bdeccc466bc", + "parentUUID": "18404eba-61a0-4120-b902-1ccfcf61904e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go to the product page", + "timedOut": false, + "duration": 857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2bb4251-1cb3-4c0a-b4f1-6d1c3b84ebcc", + "parentUUID": "18404eba-61a0-4120-b902-1ccfcf61904e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should check the product price", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b568eea-f7d7-42db-b8c7-3329cadbb6e0", + "parentUUID": "18404eba-61a0-4120-b902-1ccfcf61904e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up away from zero, when it is half way there (recommended)' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bba5fd40-58c6-439b-b0f9-1c42abffddbd", + "parentUUID": "18404eba-61a0-4120-b902-1ccfcf61904e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4ac4c33c-1dae-4526-bf93-f51288784eaf", + "e363bd2e-6dc1-4d59-bd11-f66d093068f6", + "71597dd9-a9c5-48c6-885b-1c9a6105e7e8", + "979fe3b8-2661-49b1-9e65-4bdeccc466bc", + "e2bb4251-1cb3-4c0a-b4f1-6d1c3b84ebcc", + "0b568eea-f7d7-42db-b8c7-3329cadbb6e0", + "bba5fd40-58c6-439b-b0f9-1c42abffddbd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8437, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d6c77383-93e0-48ad-9f73-bd2d065391cd", + "title": "Test the option 'Round down towards zero, when it is half way there'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down towards zero, when it is half way there' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e0f2205-bd98-469b-8781-122719598f8a", + "parentUUID": "d6c77383-93e0-48ad-9f73-bd2d065391cd", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round down towards zero, when it is half way there'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down towards zero, when it is half way there' should select the round mode 'Round down towards zero, when it is half way there'", + "timedOut": false, + "duration": 372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57a3beed-e2a9-4ff6-a423-7b9a32156e82", + "parentUUID": "d6c77383-93e0-48ad-9f73-bd2d065391cd", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down towards zero, when it is half way there' should view my shop", + "timedOut": false, + "duration": 1696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ad77eee-cd44-4bac-a075-88b91db204ad", + "parentUUID": "d6c77383-93e0-48ad-9f73-bd2d065391cd", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down towards zero, when it is half way there' should search for the created product", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dc2e952-3c6c-4af3-b6f6-d6cb317ef69a", + "parentUUID": "d6c77383-93e0-48ad-9f73-bd2d065391cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down towards zero, when it is half way there' should go to the product page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95891a74-e4d9-47ae-b2b3-3c72704cabd1", + "parentUUID": "d6c77383-93e0-48ad-9f73-bd2d065391cd", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down towards zero, when it is half way there' should check the product price", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e85a2559-78b2-4b70-89c0-1c7f39861e90", + "parentUUID": "d6c77383-93e0-48ad-9f73-bd2d065391cd", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down towards zero, when it is half way there' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60eb0161-fb01-4771-aa26-50ccd585d096", + "parentUUID": "d6c77383-93e0-48ad-9f73-bd2d065391cd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6e0f2205-bd98-469b-8781-122719598f8a", + "57a3beed-e2a9-4ff6-a423-7b9a32156e82", + "8ad77eee-cd44-4bac-a075-88b91db204ad", + "2dc2e952-3c6c-4af3-b6f6-d6cb317ef69a", + "95891a74-e4d9-47ae-b2b3-3c72704cabd1", + "e85a2559-78b2-4b70-89c0-1c7f39861e90", + "60eb0161-fb01-4771-aa26-50ccd585d096" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8547, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6c60b96b-71d0-40d2-92e9-73a0725beb5a", + "title": "Test the option 'Round towards the next even value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next even value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f64e2864-44ed-4924-823a-b2b2dc20d00f", + "parentUUID": "6c60b96b-71d0-40d2-92e9-73a0725beb5a", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round towards the next even value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next even value' should select the round mode 'Round towards the next even value'", + "timedOut": false, + "duration": 343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2e9e15a-8418-4994-bb93-98dca0c399e5", + "parentUUID": "6c60b96b-71d0-40d2-92e9-73a0725beb5a", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next even value' should view my shop", + "timedOut": false, + "duration": 1680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83309191-9604-4629-9d60-f8d41c578c7d", + "parentUUID": "6c60b96b-71d0-40d2-92e9-73a0725beb5a", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next even value' should search for the created product", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "956571d0-7c32-49a9-83af-7046be239c7b", + "parentUUID": "6c60b96b-71d0-40d2-92e9-73a0725beb5a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next even value' should go to the product page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2eb90ab-2c26-467b-a200-ddd8e31dd915", + "parentUUID": "6c60b96b-71d0-40d2-92e9-73a0725beb5a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next even value' should check the product price", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a922f967-054d-4be2-aeda-1ae860bc2558", + "parentUUID": "6c60b96b-71d0-40d2-92e9-73a0725beb5a", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next even value' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8165f821-40b5-482f-b0bc-cbf92a722bc1", + "parentUUID": "6c60b96b-71d0-40d2-92e9-73a0725beb5a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f64e2864-44ed-4924-823a-b2b2dc20d00f", + "a2e9e15a-8418-4994-bb93-98dca0c399e5", + "83309191-9604-4629-9d60-f8d41c578c7d", + "956571d0-7c32-49a9-83af-7046be239c7b", + "d2eb90ab-2c26-467b-a200-ddd8e31dd915", + "a922f967-054d-4be2-aeda-1ae860bc2558", + "8165f821-40b5-482f-b0bc-cbf92a722bc1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8462, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7f9441fb-196c-47f1-a005-f4e20d7ecbe9", + "title": "Test the option 'Round towards the next odd value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next odd value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage33\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b288bcc-232f-472a-a9b1-39ffe1bb80fb", + "parentUUID": "7f9441fb-196c-47f1-a005-f4e20d7ecbe9", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round towards the next odd value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next odd value' should select the round mode 'Round towards the next odd value'", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode33\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e5fffae-3746-49e2-a7c5-3f87a5ed57b4", + "parentUUID": "7f9441fb-196c-47f1-a005-f4e20d7ecbe9", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next odd value' should view my shop", + "timedOut": false, + "duration": 1662, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop33\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f84871c8-8933-4b73-859a-a331222ff77a", + "parentUUID": "7f9441fb-196c-47f1-a005-f4e20d7ecbe9", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next odd value' should search for the created product", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct33\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17e0b51a-bb0b-4e46-b509-3992e2312138", + "parentUUID": "7f9441fb-196c-47f1-a005-f4e20d7ecbe9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next odd value' should go to the product page", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage33\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "805a4d7b-4ecd-4bf0-9270-0315f82de09c", + "parentUUID": "7f9441fb-196c-47f1-a005-f4e20d7ecbe9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next odd value' should check the product price", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice33\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d67f2e8-e7c0-4cf6-a8a6-9e2895242a48", + "parentUUID": "7f9441fb-196c-47f1-a005-f4e20d7ecbe9", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round towards the next odd value' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo33\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01ede530-e262-4449-90a0-9e27d18785c0", + "parentUUID": "7f9441fb-196c-47f1-a005-f4e20d7ecbe9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6b288bcc-232f-472a-a9b1-39ffe1bb80fb", + "4e5fffae-3746-49e2-a7c5-3f87a5ed57b4", + "f84871c8-8933-4b73-859a-a331222ff77a", + "17e0b51a-bb0b-4e46-b509-3992e2312138", + "805a4d7b-4ecd-4bf0-9270-0315f82de09c", + "5d67f2e8-e7c0-4cf6-a8a6-9e2895242a48", + "01ede530-e262-4449-90a0-9e27d18785c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8467, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1bcf4905-6199-4a69-b294-0c0a181e6522", + "title": "Test the option 'Round up to the nearest value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up to the nearest value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage34\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "052ddf8b-cac1-4c36-8155-3b8ebc014b2f", + "parentUUID": "1bcf4905-6199-4a69-b294-0c0a181e6522", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round up to the nearest value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up to the nearest value' should select the round mode 'Round up to the nearest value'", + "timedOut": false, + "duration": 421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode34\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8616d2cb-a887-4a26-88f4-18481a67d064", + "parentUUID": "1bcf4905-6199-4a69-b294-0c0a181e6522", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up to the nearest value' should view my shop", + "timedOut": false, + "duration": 1681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop34\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6da13b0a-8bdb-41f4-8b40-3652bd4140d2", + "parentUUID": "1bcf4905-6199-4a69-b294-0c0a181e6522", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up to the nearest value' should search for the created product", + "timedOut": false, + "duration": 765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct34\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "793d5a6d-9080-4c53-b806-9ffa31ab5572", + "parentUUID": "1bcf4905-6199-4a69-b294-0c0a181e6522", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up to the nearest value' should go to the product page", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage34\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b393b3d-ae44-4255-b952-fed1062c0e34", + "parentUUID": "1bcf4905-6199-4a69-b294-0c0a181e6522", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up to the nearest value' should check the product price", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice34\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee6415bf-4e22-4c3f-b481-a25d66f1596a", + "parentUUID": "1bcf4905-6199-4a69-b294-0c0a181e6522", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round up to the nearest value' should go back to BO", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo34\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b52a937-5ac8-415a-a5a9-68165c897c5f", + "parentUUID": "1bcf4905-6199-4a69-b294-0c0a181e6522", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "052ddf8b-cac1-4c36-8155-3b8ebc014b2f", + "8616d2cb-a887-4a26-88f4-18481a67d064", + "6da13b0a-8bdb-41f4-8b40-3652bd4140d2", + "793d5a6d-9080-4c53-b806-9ffa31ab5572", + "6b393b3d-ae44-4255-b952-fed1062c0e34", + "ee6415bf-4e22-4c3f-b481-a25d66f1596a", + "0b52a937-5ac8-415a-a5a9-68165c897c5f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8539, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3f21f62d-893c-4591-890f-2f504b5f8c92", + "title": "Test the option 'Round down to the nearest value'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down to the nearest value' should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToGeneralPage35\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a092a03e-0f4f-4329-9975-2f3175e0963e", + "parentUUID": "3f21f62d-893c-4591-890f-2f504b5f8c92", + "isHook": false, + "skipped": false + }, + { + "title": "should select the round mode 'Round down to the nearest value'", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down to the nearest value' should select the round mode 'Round down to the nearest value'", + "timedOut": false, + "duration": 343, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_selectRoundMode35\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectRoundMode3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.selectRoundMode(page, test.args.roundMode)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "042f7499-0107-475b-a15f-cc17e0c55d00", + "parentUUID": "3f21f62d-893c-4591-890f-2f504b5f8c92", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down to the nearest value' should view my shop", + "timedOut": false, + "duration": 1671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_viewMyShop35\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "640c131f-1bba-45d3-a33e-7d3f88f9ce0a", + "parentUUID": "3f21f62d-893c-4591-890f-2f504b5f8c92", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down to the nearest value' should search for the created product", + "timedOut": false, + "duration": 760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_searchProduct35\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchProduct3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc80f323-bda7-48d9-84b2-7f0cb63982a8", + "parentUUID": "3f21f62d-893c-4591-890f-2f504b5f8c92", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down to the nearest value' should go to the product page", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goToProductPage35\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0057610b-ba74-4ed0-84f4-1465f5c15e67", + "parentUUID": "3f21f62d-893c-4591-890f-2f504b5f8c92", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down to the nearest value' should check the product price", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_checkProductPrice35\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductPrice3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.equal(test.args.price);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70933a53-3b7d-45c1-8caf-a151f0d33732", + "parentUUID": "3f21f62d-893c-4591-890f-2f504b5f8c92", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Round mode Test round mode when the last digit of the price > 5 Test the option 'Round down to the nearest value' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_goBackToBo35\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b38009db-eeec-438a-92ad-e7acbbdd8e7e", + "parentUUID": "3f21f62d-893c-4591-890f-2f504b5f8c92", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a092a03e-0f4f-4329-9975-2f3175e0963e", + "042f7499-0107-475b-a15f-cc17e0c55d00", + "640c131f-1bba-45d3-a33e-7d3f88f9ce0a", + "dc80f323-bda7-48d9-84b2-7f0cb63982a8", + "0057610b-ba74-4ed0-84f4-1465f5c15e67", + "70933a53-3b7d-45c1-8caf-a151f0d33732", + "b38009db-eeec-438a-92ad-e7acbbdd8e7e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8457, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "title": "POST-TEST: Delete product 'Product round mode'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/05_roundMode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Product round mode'\"", + "fullTitle": "BO - Shop Parameters - General : Round mode POST-TEST: Delete product 'Product round mode' \"before all\" hook in \"POST-TEST: Delete product 'Product round mode'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "589d4975-c0a8-45a9-b12c-58dbdd6c1fe6", + "parentUUID": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Product round mode'\"", + "fullTitle": "BO - Shop Parameters - General : Round mode POST-TEST: Delete product 'Product round mode' \"after all\" hook in \"POST-TEST: Delete product 'Product round mode'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "59d3d022-b690-4339-9167-c8f7e064b330", + "parentUUID": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General : Round mode POST-TEST: Delete product 'Product round mode' should login in BO", + "timedOut": false, + "duration": 1918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31c92ac5-2c36-466c-aad9-3db7aef7b780", + "parentUUID": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - General : Round mode POST-TEST: Delete product 'Product round mode' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_postTest_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e861a709-1cf3-4fcb-8d9b-33929282f6f1", + "parentUUID": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - General : Round mode POST-TEST: Delete product 'Product round mode' should reset all filters", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_postTest_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "343ac6ae-a885-4f45-9b4a-658a3151deff", + "parentUUID": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Shop Parameters - General : Round mode POST-TEST: Delete product 'Product round mode' should click on delete product button", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_postTest_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6711fe80-693d-4ee9-9da6-43aa3b4e2178", + "parentUUID": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Shop Parameters - General : Round mode POST-TEST: Delete product 'Product round mode' should delete product", + "timedOut": false, + "duration": 717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_postTest_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3f6ff99-96a0-4b89-bc8a-b49dddaeba63", + "parentUUID": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Shop Parameters - General : Round mode POST-TEST: Delete product 'Product round mode' should reset filter", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_roundMode_postTest_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76ab5819-ca5b-452c-9853-f17ee6ec3772", + "parentUUID": "566d674c-30bf-4d4a-bfea-6201d36615ac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "31c92ac5-2c36-466c-aad9-3db7aef7b780", + "e861a709-1cf3-4fcb-8d9b-33929282f6f1", + "343ac6ae-a885-4f45-9b4a-658a3151deff", + "6711fe80-693d-4ee9-9da6-43aa3b4e2178", + "e3f6ff99-96a0-4b89-bc8a-b49dddaeba63", + "76ab5819-ca5b-452c-9853-f17ee6ec3772" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6926, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "ac59ce24-dfc0-455b-8ca1-0bde3cec52aa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1804, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dac43062-94e8-40f5-aec5-fd240f950567", + "title": "BO - Shop Parameters - General : Enable/Disable display suppliers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/08_enableDisableSuppliers.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/08_enableDisableSuppliers.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable display suppliers\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers \"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable display suppliers\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0286bc0c-a081-4bd3-be16-8475f46b84cf", + "parentUUID": "dac43062-94e8-40f5-aec5-fd240f950567", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable display suppliers\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers \"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable display suppliers\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "75bcb7d2-aff1-4a5e-acf2-a383b7063413", + "parentUUID": "dac43062-94e8-40f5-aec5-fd240f950567", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers should login in BO", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3e59048-96b4-449e-993e-2ab07b48622c", + "parentUUID": "dac43062-94e8-40f5-aec5-fd240f950567", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "56a368d9-8ae8-4472-9b73-36018516e801", + "title": "Enable Display suppliers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/08_enableDisableSuppliers.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/08_enableDisableSuppliers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Enable Display suppliers should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goToGeneralPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6027ae51-2f6d-4af2-b5a1-04a559654fde", + "parentUUID": "56a368d9-8ae8-4472-9b73-36018516e801", + "isHook": false, + "skipped": false + }, + { + "title": "should Enable display suppliers", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Enable Display suppliers should Enable display suppliers", + "timedOut": false, + "duration": 383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_EnableDisplaySuppliers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplaySuppliers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setDisplaySuppliers(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ac4e0a1-4196-4061-8cf6-04c047a177c0", + "parentUUID": "56a368d9-8ae8-4472-9b73-36018516e801", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Brands & Suppliers' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Enable Display suppliers should go to 'Brands & Suppliers' page", + "timedOut": false, + "duration": 3654, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goToBrandsPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBrandsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.goToSubMenu(page, general_1.default.catalogParentLink, general_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a098d9fa-f8ad-4db1-9f5d-808074516023", + "parentUUID": "56a368d9-8ae8-4472-9b73-36018516e801", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Suppliers' tab", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Enable Display suppliers should go to 'Suppliers' tab", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goToSuppliersTab_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToSuppliersTab_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToSubTabSuppliers(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "677d319a-fbd4-47f9-bb97-a48cf53fddca", + "parentUUID": "56a368d9-8ae8-4472-9b73-36018516e801", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the message alert contains 'Enable'", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Enable Display suppliers should check that the message alert contains 'Enable'", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_checkAlertContains_Enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAlertContains_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAlertInfoBlockParagraphContent(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains(test.args.action.toLowerCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d2144e5-2e27-4a0d-8ffc-6fa74fb0e64c", + "parentUUID": "56a368d9-8ae8-4472-9b73-36018516e801", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Enable Display suppliers should go to FO", + "timedOut": false, + "duration": 1837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goToFO_Enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change shop language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change shop language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3553bbda-f85a-4136-992f-5fe9d5a8a414", + "parentUUID": "56a368d9-8ae8-4472-9b73-36018516e801", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the existence of the suppliers page link", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Enable Display suppliers should verify the existence of the suppliers page link", + "timedOut": false, + "duration": 727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_checkSuppliersPage_Enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSuppliersPage_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.isSuppliersLinkVisible(page)];\n case 4:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d16a4360-0daa-4f4a-8553-ea3212c86b27", + "parentUUID": "56a368d9-8ae8-4472-9b73-36018516e801", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Enable Display suppliers should go back to BO", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goBackToBo_Enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4f627f6-af9a-42cc-95b8-1a6247776774", + "parentUUID": "56a368d9-8ae8-4472-9b73-36018516e801", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6027ae51-2f6d-4af2-b5a1-04a559654fde", + "2ac4e0a1-4196-4061-8cf6-04c047a177c0", + "a098d9fa-f8ad-4db1-9f5d-808074516023", + "677d319a-fbd4-47f9-bb97-a48cf53fddca", + "3d2144e5-2e27-4a0d-8ffc-6fa74fb0e64c", + "3553bbda-f85a-4136-992f-5fe9d5a8a414", + "d16a4360-0daa-4f4a-8553-ea3212c86b27", + "b4f627f6-af9a-42cc-95b8-1a6247776774" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12245, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "title": "Disable Display suppliers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/08_enableDisableSuppliers.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/08_enableDisableSuppliers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Disable Display suppliers should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4576, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goToGeneralPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04f24900-6a8a-49c9-8ec9-b64a3c203454", + "parentUUID": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "isHook": false, + "skipped": false + }, + { + "title": "should Disable display suppliers", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Disable Display suppliers should Disable display suppliers", + "timedOut": false, + "duration": 362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_DisableDisplaySuppliers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplaySuppliers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setDisplaySuppliers(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6aad159-6087-4887-9eed-53247353c1c4", + "parentUUID": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Brands & Suppliers' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Disable Display suppliers should go to 'Brands & Suppliers' page", + "timedOut": false, + "duration": 3618, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goToBrandsPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBrandsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.goToSubMenu(page, general_1.default.catalogParentLink, general_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a9e8220-de66-4bb0-a6b4-f751e69a34ea", + "parentUUID": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Suppliers' tab", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Disable Display suppliers should go to 'Suppliers' tab", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goToSuppliersTab_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToSuppliersTab_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.goToSubTabSuppliers(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e683a8f8-75ac-4b09-9eb2-d910fce0c729", + "parentUUID": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the message alert contains 'Disable'", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Disable Display suppliers should check that the message alert contains 'Disable'", + "timedOut": false, + "duration": 27, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_checkAlertContains_Disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAlertContains_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.getAlertInfoBlockParagraphContent(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains(test.args.action.toLowerCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecc81cd0-57c3-40ee-a557-3d4b20313824", + "parentUUID": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Disable Display suppliers should go to FO", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goToFO_Disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, suppliers_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change shop language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change shop language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b24e6f4-dc9d-461a-8456-f3b569b118f8", + "parentUUID": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the existence of the suppliers page link", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Disable Display suppliers should verify the existence of the suppliers page link", + "timedOut": false, + "duration": 2707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_checkSuppliersPage_Disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSuppliersPage_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.isSuppliersLinkVisible(page)];\n case 4:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79df5bd7-ab7e-4eab-97de-066f74abd55e", + "parentUUID": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display suppliers Disable Display suppliers should go back to BO", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableSuppliers_goBackToBo_Disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, suppliers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(suppliers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d79df5f-bf67-4d52-8363-5eb74ec82098", + "parentUUID": "04b9ae77-c505-40db-ba47-f2be8ef7e0ca", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "04f24900-6a8a-49c9-8ec9-b64a3c203454", + "d6aad159-6087-4887-9eed-53247353c1c4", + "1a9e8220-de66-4bb0-a6b4-f751e69a34ea", + "e683a8f8-75ac-4b09-9eb2-d910fce0c729", + "ecc81cd0-57c3-40ee-a557-3d4b20313824", + "3b24e6f4-dc9d-461a-8456-f3b569b118f8", + "79df5bd7-ab7e-4eab-97de-066f74abd55e", + "7d79df5f-bf67-4d52-8363-5eb74ec82098" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13743, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e3e59048-96b4-449e-993e-2ab07b48622c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1770, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "274a0b6e-cf2a-46ee-82ca-95dd7421d4b6", + "title": "BO - Shop Parameters - General : Enable/Disable display brands", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/09_enableDisableBrands.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/09_enableDisableBrands.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable display brands\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands \"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable display brands\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5250aa9c-2238-4430-baa3-c906f2a69bba", + "parentUUID": "274a0b6e-cf2a-46ee-82ca-95dd7421d4b6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable display brands\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands \"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable display brands\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ab845e93-892a-4fa4-b085-6b06f5fb920e", + "parentUUID": "274a0b6e-cf2a-46ee-82ca-95dd7421d4b6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c87906c3-9480-4d3e-95d7-bcdd32676c73", + "parentUUID": "274a0b6e-cf2a-46ee-82ca-95dd7421d4b6", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "12c5d50a-74eb-4c96-8208-395518d18a38", + "title": "Disable Display brands", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/09_enableDisableBrands.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/09_enableDisableBrands.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Disable Display brands should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_goToGeneralPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c79039ba-a436-4634-af92-3e5a639ed415", + "parentUUID": "12c5d50a-74eb-4c96-8208-395518d18a38", + "isHook": false, + "skipped": false + }, + { + "title": "should Disable display brands", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Disable Display brands should Disable display brands", + "timedOut": false, + "duration": 391, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_DisableDisplayBrands\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayBrands\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setDisplayBrands(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "886af796-a989-44ee-a300-66c987b7be25", + "parentUUID": "12c5d50a-74eb-4c96-8208-395518d18a38", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Brands & Suppliers' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Disable Display brands should go to 'Brands & Suppliers' page", + "timedOut": false, + "duration": 3622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_goToBrandsPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBrandsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.goToSubMenu(page, general_1.default.catalogParentLink, general_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd2a1300-4646-4b40-a4ea-da4321f458ce", + "parentUUID": "12c5d50a-74eb-4c96-8208-395518d18a38", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the message alert contains 'Disable'", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Disable Display brands should check that the message alert contains 'Disable'", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_checkAlertContains_Disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAlertContains_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAlertInfoBlockParagraphContent(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains(test.args.action.toLowerCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f05ab79c-30a8-4abd-aee5-2522f0d73041", + "parentUUID": "12c5d50a-74eb-4c96-8208-395518d18a38", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Disable Display brands should go to FO", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_goToFO_Disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80c4c0a6-b4c1-40a2-8794-df29220af79d", + "parentUUID": "12c5d50a-74eb-4c96-8208-395518d18a38", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the existence of the brands page link", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Disable Display brands should verify the existence of the brands page link", + "timedOut": false, + "duration": 2712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_checkBrandsPage_Disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkBrandsPage_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.isBrandsLinkVisible(page)];\n case 4:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "265f9524-3e1d-45ab-a319-87dc996dc3e0", + "parentUUID": "12c5d50a-74eb-4c96-8208-395518d18a38", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Disable Display brands should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_goBackToBo_Disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cab475a-f12d-4c31-ade0-d98e9cd4a2b2", + "parentUUID": "12c5d50a-74eb-4c96-8208-395518d18a38", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c79039ba-a436-4634-af92-3e5a639ed415", + "886af796-a989-44ee-a300-66c987b7be25", + "cd2a1300-4646-4b40-a4ea-da4321f458ce", + "f05ab79c-30a8-4abd-aee5-2522f0d73041", + "80c4c0a6-b4c1-40a2-8794-df29220af79d", + "265f9524-3e1d-45ab-a319-87dc996dc3e0", + "1cab475a-f12d-4c31-ade0-d98e9cd4a2b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13274, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ae12c54-82fe-4837-a576-8ad1dd7eb9a3", + "title": "Enable Display brands", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/09_enableDisableBrands.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/09_enableDisableBrands.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Enable Display brands should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4552, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_goToGeneralPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6be923ae-0cc4-4939-a257-40a8aa61275e", + "parentUUID": "1ae12c54-82fe-4837-a576-8ad1dd7eb9a3", + "isHook": false, + "skipped": false + }, + { + "title": "should Enable display brands", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Enable Display brands should Enable display brands", + "timedOut": false, + "duration": 356, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_EnableDisplayBrands\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayBrands\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setDisplayBrands(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35994d4c-e0f9-424a-b151-e09f7e45cd52", + "parentUUID": "1ae12c54-82fe-4837-a576-8ad1dd7eb9a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Brands & Suppliers' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Enable Display brands should go to 'Brands & Suppliers' page", + "timedOut": false, + "duration": 3661, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_goToBrandsPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBrandsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.goToSubMenu(page, general_1.default.catalogParentLink, general_1.default.brandsAndSuppliersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1eeebc9-56b5-41de-94ba-3ee905abc696", + "parentUUID": "1ae12c54-82fe-4837-a576-8ad1dd7eb9a3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the message alert contains 'Enable'", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Enable Display brands should check that the message alert contains 'Enable'", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_checkAlertContains_Enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAlertContains_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.getAlertInfoBlockParagraphContent(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text).to.contains(test.args.action.toLowerCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd531678-0390-4903-9792-855eca9f6817", + "parentUUID": "1ae12c54-82fe-4837-a576-8ad1dd7eb9a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Enable Display brands should go to FO", + "timedOut": false, + "duration": 1683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_goToFO_Enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, brands_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3b13fa2-65f0-48ea-9404-077de4c36fce", + "parentUUID": "1ae12c54-82fe-4837-a576-8ad1dd7eb9a3", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the existence of the brands page link", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Enable Display brands should verify the existence of the brands page link", + "timedOut": false, + "duration": 731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_checkBrandsPage_Enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkBrandsPage_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [4 /*yield*/, siteMap_1.siteMapPage.isBrandsLinkVisible(page)];\n case 4:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8b0cec7-0b0e-4939-aca5-71e976f06127", + "parentUUID": "1ae12c54-82fe-4837-a576-8ad1dd7eb9a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display brands Enable Display brands should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBrands_goBackToBo_Enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, brands_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(brands_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60242b4a-ef87-467c-bc7b-744d5dd52f85", + "parentUUID": "1ae12c54-82fe-4837-a576-8ad1dd7eb9a3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6be923ae-0cc4-4939-a257-40a8aa61275e", + "35994d4c-e0f9-424a-b151-e09f7e45cd52", + "a1eeebc9-56b5-41de-94ba-3ee905abc696", + "fd531678-0390-4903-9792-855eca9f6817", + "b3b13fa2-65f0-48ea-9404-077de4c36fce", + "d8b0cec7-0b0e-4939-aca5-71e976f06127", + "60242b4a-ef87-467c-bc7b-744d5dd52f85" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11003, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c87906c3-9480-4d3e-95d7-bcdd32676c73" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1740, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82c2e6fc-7d77-4b87-84dd-8a2e6488af28", + "title": "BO - Shop Parameters - General : Enable/Disable display best sellers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/10_enableDisableBestSellers.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/10_enableDisableBestSellers.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable display best sellers\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers \"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable display best sellers\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3732b43-aa5e-4398-934d-80d7982c5d1c", + "parentUUID": "82c2e6fc-7d77-4b87-84dd-8a2e6488af28", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable display best sellers\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers \"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable display best sellers\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8f4d6cea-23ad-4baf-ad29-a9576d2d7578", + "parentUUID": "82c2e6fc-7d77-4b87-84dd-8a2e6488af28", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers should login in BO", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7ea664b-57eb-490f-8d00-978cb33bf9d7", + "parentUUID": "82c2e6fc-7d77-4b87-84dd-8a2e6488af28", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "c7a4f3f4-cd80-4c02-8c3a-edfaa84e6fc1", + "title": "disable Display best sellers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/10_enableDisableBestSellers.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/10_enableDisableBestSellers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers disable Display best sellers should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_goToGeneralPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93102e8e-27f8-4a35-a18a-a3a0b23457f5", + "parentUUID": "c7a4f3f4-cd80-4c02-8c3a-edfaa84e6fc1", + "isHook": false, + "skipped": false + }, + { + "title": "should disable display best sellers", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers disable Display best sellers should disable display best sellers", + "timedOut": false, + "duration": 386, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_disableDisplayBestSellers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayBestSellers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setDisplayBestSellers(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b00429c-4b6f-4de5-a8d7-85b9c069d7d9", + "parentUUID": "c7a4f3f4-cd80-4c02-8c3a-edfaa84e6fc1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers disable Display best sellers should go to FO", + "timedOut": false, + "duration": 1692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_goToFO_disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change shop language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change shop language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3641acf9-b50e-45e9-988c-9e864c8d7abe", + "parentUUID": "c7a4f3f4-cd80-4c02-8c3a-edfaa84e6fc1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to site map page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers disable Display best sellers should go to site map page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_goToBestSellersPage_disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBestSellersPage_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01c58ca4-073f-4829-aced-429145329edf", + "parentUUID": "c7a4f3f4-cd80-4c02-8c3a-edfaa84e6fc1", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the existence of the best sellers page link", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers disable Display best sellers should verify the existence of the best sellers page link", + "timedOut": false, + "duration": 2001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_checkBestSellersPage_disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkBestSellersPage_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.isBestSellersLinkVisible(page)];\n case 2:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0448beaf-d822-45f8-bc62-4f311f587909", + "parentUUID": "c7a4f3f4-cd80-4c02-8c3a-edfaa84e6fc1", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers disable Display best sellers should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_goBackToBo_disable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "093f1b03-c38d-44c9-91d1-1533db12d9d5", + "parentUUID": "c7a4f3f4-cd80-4c02-8c3a-edfaa84e6fc1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "93102e8e-27f8-4a35-a18a-a3a0b23457f5", + "3b00429c-4b6f-4de5-a8d7-85b9c069d7d9", + "3641acf9-b50e-45e9-988c-9e864c8d7abe", + "01c58ca4-073f-4829-aced-429145329edf", + "0448beaf-d822-45f8-bc62-4f311f587909", + "093f1b03-c38d-44c9-91d1-1533db12d9d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9622, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9f305d09-8456-40a6-976c-a99ad055e8af", + "title": "enable Display best sellers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/10_enableDisableBestSellers.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/10_enableDisableBestSellers.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers enable Display best sellers should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_goToGeneralPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToGeneralPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c2313e6-2450-4799-b50a-043e8a56b3cf", + "parentUUID": "9f305d09-8456-40a6-976c-a99ad055e8af", + "isHook": false, + "skipped": false + }, + { + "title": "should enable display best sellers", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers enable Display best sellers should enable display best sellers", + "timedOut": false, + "duration": 349, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_enableDisplayBestSellers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayBestSellers\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setDisplayBestSellers(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f952b41-0130-403b-9451-330318ca44db", + "parentUUID": "9f305d09-8456-40a6-976c-a99ad055e8af", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers enable Display best sellers should go to FO", + "timedOut": false, + "duration": 1677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_goToFO_enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.viewMyShop(page)];\n case 2:\n // View shop\n page = _a.sent();\n // Change shop language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change shop language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5de9a81-4077-45e8-b2af-c9bcb1b038fd", + "parentUUID": "9f305d09-8456-40a6-976c-a99ad055e8af", + "isHook": false, + "skipped": false + }, + { + "title": "should go to site map page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers enable Display best sellers should go to site map page", + "timedOut": false, + "duration": 696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_goToBestSellersPage_enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBestSellersPage_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFooterLink(page, 'Sitemap')];\n case 2:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(siteMap_1.siteMapPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e87567de-21fb-45d9-babd-22ce11ee110a", + "parentUUID": "9f305d09-8456-40a6-976c-a99ad055e8af", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the existence of the best sellers page link", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers enable Display best sellers should verify the existence of the best sellers page link", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_checkBestSellersPage_enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkBestSellersPage_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.isBestSellersLinkVisible(page)];\n case 2:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c106539-c3ed-4dbd-adca-259028b555b9", + "parentUUID": "9f305d09-8456-40a6-976c-a99ad055e8af", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable display best sellers enable Display best sellers should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableBestSellers_goBackToBo_enable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo_\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, siteMap_1.siteMapPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06f3b454-bfdf-48f3-9104-771ff69f6d9b", + "parentUUID": "9f305d09-8456-40a6-976c-a99ad055e8af", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5c2313e6-2450-4799-b50a-043e8a56b3cf", + "4f952b41-0130-403b-9451-330318ca44db", + "d5de9a81-4077-45e8-b2af-c9bcb1b038fd", + "e87567de-21fb-45d9-babd-22ce11ee110a", + "2c106539-c3ed-4dbd-adca-259028b555b9", + "06f3b454-bfdf-48f3-9104-771ff69f6d9b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7529, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "e7ea664b-57eb-490f-8d00-978cb33bf9d7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1770, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "02fc9916-d37d-467b-9825-911a8afefa71", + "title": "BO - Shop Parameters - General : Enable/Disable multi store", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/11_enableDisableMultistore.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/11_enableDisableMultistore.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable multi store\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable multi store \"before all\" hook in \"BO - Shop Parameters - General : Enable/Disable multi store\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eeedac03-321e-437f-be61-73a3a17d6d45", + "parentUUID": "02fc9916-d37d-467b-9825-911a8afefa71", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable multi store\"", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable multi store \"after all\" hook in \"BO - Shop Parameters - General : Enable/Disable multi store\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1e4fff9c-218a-4465-a88e-d2cc896ae1e7", + "parentUUID": "02fc9916-d37d-467b-9825-911a8afefa71", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable multi store should login in BO", + "timedOut": false, + "duration": 1754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eae8d2b0-e5af-43bf-9ac2-9ac3e306e3db", + "parentUUID": "02fc9916-d37d-467b-9825-911a8afefa71", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable multi store should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableMultistore_goToGeneralPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGeneralPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b75226da-f64d-4bde-91c9-a755cac166a0", + "parentUUID": "02fc9916-d37d-467b-9825-911a8afefa71", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7aed6837-2b13-4421-ad19-07ae95170d8f", + "title": "Enable Display Multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/11_enableDisableMultistore.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/11_enableDisableMultistore.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should Enable multi store", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable multi store Enable Display Multistore should Enable multi store", + "timedOut": false, + "duration": 418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableMultistore_EnableMultiStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"MultiStore\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "330fe3ce-6d2a-4e1e-abcc-35e527460383", + "parentUUID": "7aed6837-2b13-4421-ad19-07ae95170d8f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable multi store Enable Display Multistore should check the existence of 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 1813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableMultistore_goToMultiStorePage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMultiStorePage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.isSubmenuVisible(page, general_1.default.advancedParametersLink, general_1.default.multistoreLink)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bf271e7-ecd3-4770-8988-dcb1a7703932", + "parentUUID": "7aed6837-2b13-4421-ad19-07ae95170d8f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "330fe3ce-6d2a-4e1e-abcc-35e527460383", + "8bf271e7-ecd3-4770-8988-dcb1a7703932" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2231, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9ad77f4a-72cc-4fa9-8878-46075c247893", + "title": "Disable Display Multistore", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/general/11_enableDisableMultistore.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/general/11_enableDisableMultistore.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should Disable multi store", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable multi store Disable Display Multistore should Disable multi store", + "timedOut": false, + "duration": 349, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableMultistore_DisableMultiStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"MultiStore\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.setMultiStoreStatus(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(general_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "baac5c2a-dfc1-4bf3-aee8-e8b03904b74c", + "parentUUID": "9ad77f4a-72cc-4fa9-8878-46075c247893", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of 'Advanced Parameters > Multistore' page", + "fullTitle": "BO - Shop Parameters - General : Enable/Disable multi store Disable Display Multistore should check the existence of 'Advanced Parameters > Multistore' page", + "timedOut": false, + "duration": 2818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_general_enableDisableMultistore_goToMultiStorePage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMultiStorePage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.isSubmenuVisible(page, general_1.default.advancedParametersLink, general_1.default.multistoreLink)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a4fcb23-6fea-4326-875d-142a3890b657", + "parentUUID": "9ad77f4a-72cc-4fa9-8878-46075c247893", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "baac5c2a-dfc1-4bf3-aee8-e8b03904b74c", + "2a4fcb23-6fea-4326-875d-142a3890b657" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3167, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "eae8d2b0-e5af-43bf-9ac2-9ac3e306e3db", + "b75226da-f64d-4bde-91c9-a755cac166a0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6588, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "title": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/01_general/maintenance/01_enableDisableShop.ts", + "file": "/campaigns/functional/BO/13_shopParameters/01_general/maintenance/01_enableDisableShop.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - General - Maintenance : Enable/Disable shop\"", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop \"before all\" hook in \"BO - Shop Parameters - General - Maintenance : Enable/Disable shop\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ada6480-30d3-4bee-84bf-87dc86ddde7c", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - General - Maintenance : Enable/Disable shop\"", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop \"after all\" hook in \"BO - Shop Parameters - General - Maintenance : Enable/Disable shop\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3e51a645-5684-4d69-8c3a-02846ad460ae", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should login in BO", + "timedOut": false, + "duration": 1762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17d7a68c-fd47-4044-a679-f39fb8611382", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > General' page", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should go to 'Shop parameters > General' page", + "timedOut": false, + "duration": 4841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_goToShopParamsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopParamsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.shopParametersGeneralLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, general_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, general_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(general_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6918b54-21f8-4e1a-b2fa-904ea8f779af", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Maintenance' tab", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should go to 'Maintenance' tab", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_goToMaintenancePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMaintenancePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, general_1.default.goToSubTabMaintenance(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(maintenance_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70983812-39d3-45dc-bbc1-632f7d900437", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the shop", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should disable the shop", + "timedOut": false, + "duration": 2303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_disableShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.changeShopStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(maintenance_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98dc8bc4-82f5-453c-866e-7f70d07f6d99", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should enable store for logged-in employees", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should enable store for logged-in employees", + "timedOut": false, + "duration": 2217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_enableStoreForLoggedInEmployees\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableStoreForLoggedInEmployees', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.changeStoreForLoggedInEmployees(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(maintenance_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5624b707-6d73-4490-89ae-08a0a06fc8d5", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should verify that the shop is enabled", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should verify that the shop is enabled", + "timedOut": false, + "duration": 1031, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_verifyEnabledShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageContent, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyEnabledShop0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getTextContent(page, home_1.homePage.content)];\n case 3:\n pageContent = _a.sent();\n (0, chai_1.expect)(pageContent).to.not.equal(maintenance_1.default.maintenanceText);\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9d61224-b357-4f82-8f91-eb780e0c98b8", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should disable store for logged-in employees", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should disable store for logged-in employees", + "timedOut": false, + "duration": 2282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_disableStoreForLoggedInEmployees\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableStoreForLoggedInEmployees', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, maintenance_1.default.changeStoreForLoggedInEmployees(page, false)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(maintenance_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f55c195-99fd-42a7-8628-5b4201f170c3", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the existence of the maintenance text", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should verify the existence of the maintenance text", + "timedOut": false, + "duration": 653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_verifyMaintenanceText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyMaintenanceText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getTextContent(page, home_1.homePage.content)];\n case 3:\n pageContent = _a.sent();\n (0, chai_1.expect)(pageContent).to.equal(maintenance_1.default.maintenanceText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d4a9b21-00cc-4386-9040-96502a4d14d3", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should update the maintenance text", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should update the maintenance text", + "timedOut": false, + "duration": 497, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_updateMaintenanceText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateMaintenanceText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, maintenance_1.default.changeMaintenanceTextShopStatus(page, newMaintenanceText)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(maintenance_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3310babc-3d63-4917-959d-22051a40f3ac", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should verify that the maintenance text is updated successfully", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should verify that the maintenance text is updated successfully", + "timedOut": false, + "duration": 671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_verifyNewMaintenanceText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyNewMaintenanceText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getTextContent(page, home_1.homePage.content)];\n case 3:\n pageContent = _a.sent();\n (0, chai_1.expect)(pageContent).to.equal(newMaintenanceText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54c0cac2-e6a8-4028-8512-176bf60e350a", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to the default maintenance text", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should go back to the default maintenance text", + "timedOut": false, + "duration": 458, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_backToDefaultMaintenanceText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToDefaultMaintenanceText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, maintenance_1.default.changeMaintenanceTextShopStatus(page, maintenance_1.default.maintenanceText)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(maintenance_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9620d72-e64d-489a-b9d2-9464c713e4fb", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should add my IP address in Maintenance ip input", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should add my IP address in Maintenance ip input", + "timedOut": false, + "duration": 441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_addMyIpAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addMyIpAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.addMyIpAddress(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(maintenance_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f87da1de-3668-4f1b-a45a-d58cd31f37d7", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should verify that the Home page is displayed successfully", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should verify that the Home page is displayed successfully", + "timedOut": false, + "duration": 1008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_verifyFOHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageContent, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyFOHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getTextContent(page, home_1.homePage.content)];\n case 3:\n pageContent = _a.sent();\n (0, chai_1.expect)(pageContent).to.not.equal(maintenance_1.default.maintenanceText);\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "872ae6f9-b405-4934-a6a0-dbb590265ddc", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the maintenance ip address", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should delete the maintenance ip address", + "timedOut": false, + "duration": 437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_deleteIpAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteIpAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, maintenance_1.default.addMaintenanceIPAddress(page, '')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(maintenance_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "863043f7-43fa-4182-ab71-bbd9c9df4c20", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the shop", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should enable the shop", + "timedOut": false, + "duration": 2974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_enableShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.changeShopStatus(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(maintenance_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4ee0d82-91bc-4497-a964-87f4c87f9c75", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + }, + { + "title": "should verify that the shop is enabled", + "fullTitle": "BO - Shop Parameters - General - Maintenance : Enable/Disable shop should verify that the shop is enabled", + "timedOut": false, + "duration": 992, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_general_maintenance_enableDisableShop_verifyEnabledShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageContent, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyEnabledShop1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, maintenance_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getTextContent(page, home_1.homePage.content)];\n case 3:\n pageContent = _a.sent();\n (0, chai_1.expect)(pageContent).to.not.equal(maintenance_1.default.maintenanceText);\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "580b022f-e9fc-42d6-8105-c5741ca278e3", + "parentUUID": "6d16f095-da50-46db-8f82-d18b4158a6ed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "17d7a68c-fd47-4044-a679-f39fb8611382", + "f6918b54-21f8-4e1a-b2fa-904ea8f779af", + "70983812-39d3-45dc-bbc1-632f7d900437", + "98dc8bc4-82f5-453c-866e-7f70d07f6d99", + "5624b707-6d73-4490-89ae-08a0a06fc8d5", + "e9d61224-b357-4f82-8f91-eb780e0c98b8", + "2f55c195-99fd-42a7-8628-5b4201f170c3", + "0d4a9b21-00cc-4386-9040-96502a4d14d3", + "3310babc-3d63-4917-959d-22051a40f3ac", + "54c0cac2-e6a8-4028-8512-176bf60e350a", + "f9620d72-e64d-489a-b9d2-9464c713e4fb", + "f87da1de-3668-4f1b-a45a-d58cd31f37d7", + "872ae6f9-b405-4934-a6a0-dbb590265ddc", + "863043f7-43fa-4182-ab71-bbd9c9df4c20", + "f4ee0d82-91bc-4497-a964-87f4c87f9c75", + "580b022f-e9fc-42d6-8105-c5741ca278e3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 23456, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "title": "BO - Shop Parameters - Order Settings : Enable/Disable final summary", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/01_enableFinalSummary.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/01_enableFinalSummary.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable final summary\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary \"before all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable final summary\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "601eaba0-bfae-4df2-98a2-cf8ba82ebafe", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable final summary\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary \"after all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable final summary\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a347c1d9-366a-43c4-9ba6-74e9bf582b56", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69fc56cd-0c53-426c-b4d5-ede5f0d72523", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77fb6126-0a1b-41e5-ba56-70550e51960e", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should enable final summary", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should enable final summary", + "timedOut": false, + "duration": 2303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_enableFinalSummary\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"FinalSummary\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setFinalSummaryStatus(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8168dc44-e097-4eba-88e8-bf44e894638a", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should view my shop", + "timedOut": false, + "duration": 1688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_enableAndViewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AndViewMyShop\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf9340ae-b8eb-4962-9736-4310eb615ac9", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should add product to cart", + "timedOut": false, + "duration": 6275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7b5b18e-edc2-4ca4-a56f-e3f153fffe4c", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and login", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should proceed to checkout and login", + "timedOut": false, + "duration": 1385, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_proceedToCheckout0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 5];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "717f736d-afe3-4e22-b54e-6a5106e8db47", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should go to delivery step", + "timedOut": false, + "duration": 311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_goToDeliveryStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70873c5b-0a72-4922-93c9-3d96a13f95cd", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should go to payment step", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_goToPaymentStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b63b27be-a3e5-4132-befd-4978d3cac014", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should check the final summary after checkout", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should check the final summary after checkout", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_checkFinalSummary0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFinalSummary\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isFinalSummaryVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47aa2e22-6f67-455a-80e9-bb5d70b0bd53", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_enableCheckAndBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"CheckAndBackToBO\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "299cf12e-bdbf-406d-b362-dfdf60454622", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should disable final summary", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should disable final summary", + "timedOut": false, + "duration": 2287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_disableFinalSummary\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"FinalSummary\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setFinalSummaryStatus(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13921800-8d4a-4761-9930-d96c24820f5b", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should view my shop", + "timedOut": false, + "duration": 1932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_disableAndViewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AndViewMyShop\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad112b30-5ba6-4873-aebf-0bfa1f330028", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should add product to cart", + "timedOut": false, + "duration": 6495, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b65735dc-1e4c-439b-b124-f5ff9c8c1d77", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and login", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should proceed to checkout and login", + "timedOut": false, + "duration": 224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_proceedToCheckout1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 5];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9578c02f-6105-4a1f-b723-64f89dc3fa1a", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should go to delivery step", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_goToDeliveryStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0375f693-9973-4444-abbe-cf4edd7c1fc5", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should go to payment step", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_goToPaymentStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2614406d-468f-44d2-b16f-3ec13a25dfd2", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should check the final summary after checkout", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should check the final summary after checkout", + "timedOut": false, + "duration": 2002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_checkFinalSummary1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkFinalSummary\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isFinalSummaryVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "514b64ef-9ce9-4a30-902b-8a3ca6c54b4a", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable final summary should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableFinalSummary_disableCheckAndBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"CheckAndBackToBO\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3da526a3-bbae-4e88-a19f-7f265531f61c", + "parentUUID": "f6d8ed95-81c1-4f87-8106-1abec5287819", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "69fc56cd-0c53-426c-b4d5-ede5f0d72523", + "77fb6126-0a1b-41e5-ba56-70550e51960e", + "8168dc44-e097-4eba-88e8-bf44e894638a", + "bf9340ae-b8eb-4962-9736-4310eb615ac9", + "a7b5b18e-edc2-4ca4-a56f-e3f153fffe4c", + "717f736d-afe3-4e22-b54e-6a5106e8db47", + "70873c5b-0a72-4922-93c9-3d96a13f95cd", + "b63b27be-a3e5-4132-befd-4978d3cac014", + "47aa2e22-6f67-455a-80e9-bb5d70b0bd53", + "299cf12e-bdbf-406d-b362-dfdf60454622", + "13921800-8d4a-4761-9930-d96c24820f5b", + "ad112b30-5ba6-4873-aebf-0bfa1f330028", + "b65735dc-1e4c-439b-b124-f5ff9c8c1d77", + "9578c02f-6105-4a1f-b723-64f89dc3fa1a", + "0375f693-9973-4444-abbe-cf4edd7c1fc5", + "2614406d-468f-44d2-b16f-3ec13a25dfd2", + "514b64ef-9ce9-4a30-902b-8a3ca6c54b4a", + "3da526a3-bbae-4e88-a19f-7f265531f61c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 33476, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "title": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/02_enableGuestCheckout.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/02_enableGuestCheckout.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable guest checkout\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout \"before all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable guest checkout\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7182be2-8cda-44b3-9fdb-22789a31397a", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable guest checkout\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout \"after all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable guest checkout\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d509f21c-f385-4ee7-9adb-a63b9e552e96", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should login in BO", + "timedOut": false, + "duration": 1735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d287e32c-0052-428b-bbd8-bfbe5b508ac1", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b20fbf1d-dff5-4163-9071-9428559f3fc0", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should disable guest checkout", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should disable guest checkout", + "timedOut": false, + "duration": 2284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_guestCheckout0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"guestCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGuestCheckoutStatus(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f321538a-7354-45df-ac7a-fb4d912ee257", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should view my shop", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd97966d-41a1-4f1d-8871-b95a1b62b23a", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should add product to cart", + "timedOut": false, + "duration": 6251, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd0cd2df-934d-47b9-a4bb-b8062b0b4315", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should check active link", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should check active link", + "timedOut": false, + "duration": 222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_checkIfNoticeVisible0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNoticeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIfNoticeVisible\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getActiveLinkFromPersonalInformationBlock(page)];\n case 3:\n isNoticeVisible = _a.sent();\n (0, chai_1.expect)(isNoticeVisible).to.be.equal(test.args.tabName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ede71a22-0e27-41b7-8ecf-3f1861bc1583", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the guest checkout", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should verify the guest checkout", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_checkGuestCheckout0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPasswordRequired;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGuestCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isPasswordRequired(page)];\n case 2:\n isPasswordRequired = _a.sent();\n (0, chai_1.expect)(isPasswordRequired).to.be.equal(test.args.pwdRequired);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "521a74e4-90c1-4f6e-b161-32edfb6333cb", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7aa2c38b-e6f0-42cf-a97b-3880d0c09a56", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should enable guest checkout", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should enable guest checkout", + "timedOut": false, + "duration": 2283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_guestCheckout1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"guestCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGuestCheckoutStatus(page, test.args.exist)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb224a8e-219f-4f55-b100-00a1f00671cc", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should view my shop", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d624796-1226-451e-a0af-fe1d756a8f28", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should add product to cart", + "timedOut": false, + "duration": 6242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec82552b-48a7-4be8-958d-05c93ab923d5", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should check active link", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should check active link", + "timedOut": false, + "duration": 215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_checkIfNoticeVisible1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNoticeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIfNoticeVisible\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getActiveLinkFromPersonalInformationBlock(page)];\n case 3:\n isNoticeVisible = _a.sent();\n (0, chai_1.expect)(isNoticeVisible).to.be.equal(test.args.tabName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecab70c1-3fbc-4777-a672-0c9b57a5f686", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the guest checkout", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should verify the guest checkout", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_checkGuestCheckout1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPasswordRequired;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGuestCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isPasswordRequired(page)];\n case 2:\n isPasswordRequired = _a.sent();\n (0, chai_1.expect)(isPasswordRequired).to.be.equal(test.args.pwdRequired);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ca1dc2b-1fe5-460c-a886-418778a6727b", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable guest checkout should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_enableGuestCheckout_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87ba7171-ef7c-49e5-bebd-3b78873bc2f7", + "parentUUID": "722e0e42-20ef-4d2c-8d43-c27362f81311", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d287e32c-0052-428b-bbd8-bfbe5b508ac1", + "b20fbf1d-dff5-4163-9071-9428559f3fc0", + "f321538a-7354-45df-ac7a-fb4d912ee257", + "fd97966d-41a1-4f1d-8871-b95a1b62b23a", + "cd0cd2df-934d-47b9-a4bb-b8062b0b4315", + "ede71a22-0e27-41b7-8ecf-3f1861bc1583", + "521a74e4-90c1-4f6e-b161-32edfb6333cb", + "7aa2c38b-e6f0-42cf-a97b-3880d0c09a56", + "bb224a8e-219f-4f55-b100-00a1f00671cc", + "3d624796-1226-451e-a0af-fe1d756a8f28", + "ec82552b-48a7-4be8-958d-05c93ab923d5", + "ecab70c1-3fbc-4777-a672-0c9b57a5f686", + "5ca1dc2b-1fe5-460c-a886-418778a6727b", + "87ba7171-ef7c-49e5-bebd-3b78873bc2f7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28525, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "title": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/03_disableReorderingOption.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/03_disableReorderingOption.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable reordering option\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option \"before all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable reordering option\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c18ec2e-ab06-407c-a5f8-4ce018d5aca2", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable reordering option\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option \"after all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable reordering option\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5ef548e7-7350-4467-ba93-7bd15376f481", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should login in BO", + "timedOut": false, + "duration": 1691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5199a04c-9cee-4904-b933-a3b048f524b3", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6a5e43f-fa0f-4778-ba37-1a5074e54c3b", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should enable reordering option", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should enable reordering option", + "timedOut": false, + "duration": 2271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_setReorderingOption0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setReorderingOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setReorderOptionStatus(page, test.args.status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19f26f5a-035d-4e63-bb1d-5ed5e1e2efc3", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should view my shop", + "timedOut": false, + "duration": 1687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af8e6164-16ca-40c0-b051-cf6ee2f7f301", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the reordering option", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should verify the reordering option", + "timedOut": false, + "duration": 3626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_checkReorderingOption0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, isReorderLinkVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReorderingOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Login FO\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Login FO\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n // Go to order history page\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 5:\n // Go to order history page\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 6:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.isReorderLinkVisible(page)];\n case 7:\n isReorderLinkVisible = _a.sent();\n (0, chai_1.expect)(isReorderLinkVisible).to.be.equal(test.args.reorderOption);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5eea4577-0770-4130-b120-9dfe2fa33faa", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should go back to BO", + "timedOut": false, + "duration": 175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Logout FO\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.logout(page)];\n case 2:\n // Logout FO\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 3:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a21d2724-7b97-4a49-919b-950932a66be1", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should disable reordering option", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should disable reordering option", + "timedOut": false, + "duration": 2285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_setReorderingOption1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setReorderingOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setReorderOptionStatus(page, test.args.status)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74733594-cd93-4721-b646-48d211a81868", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should view my shop", + "timedOut": false, + "duration": 1650, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "184b9510-9cd6-48f0-958b-60fefb76fac5", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the reordering option", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should verify the reordering option", + "timedOut": false, + "duration": 2608, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_checkReorderingOption1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, isReorderLinkVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReorderingOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Login FO\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Login FO\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n // Go to order history page\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 5:\n // Go to order history page\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 6:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.isReorderLinkVisible(page)];\n case 7:\n isReorderLinkVisible = _a.sent();\n (0, chai_1.expect)(isReorderLinkVisible).to.be.equal(test.args.reorderOption);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80605ef2-2e40-4686-8f43-10833a60c06f", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable reordering option should go back to BO", + "timedOut": false, + "duration": 180, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_disableReorderingOption_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Logout FO\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.logout(page)];\n case 2:\n // Logout FO\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.closePage(browserContext, page, 0)];\n case 3:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a616fe01-09a2-46da-8ab5-cb901adcda1d", + "parentUUID": "f0df404a-c1dd-490b-b5cb-bcb8f614ac0d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5199a04c-9cee-4904-b933-a3b048f524b3", + "a6a5e43f-fa0f-4778-ba37-1a5074e54c3b", + "19f26f5a-035d-4e63-bb1d-5ed5e1e2efc3", + "af8e6164-16ca-40c0-b051-cf6ee2f7f301", + "5eea4577-0770-4130-b120-9dfe2fa33faa", + "a21d2724-7b97-4a49-919b-950932a66be1", + "74733594-cd93-4721-b646-48d211a81868", + "184b9510-9cd6-48f0-958b-60fefb76fac5", + "80605ef2-2e40-4686-8f43-10833a60c06f", + "a616fe01-09a2-46da-8ab5-cb901adcda1d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21018, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "title": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/04_minimumPurchaseTotalRequired.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/04_minimumPurchaseTotalRequired.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order \"before all\" hook in \"BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33c81251-b3b0-49ab-8972-1c053ee930a2", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order \"after all\" hook in \"BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "310b34d2-a069-440c-8d5f-ddbe5e1df28a", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should login in BO", + "timedOut": false, + "duration": 1747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccce4151-9f24-4a13-bcfa-ba2ead3d3dda", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c46236d3-68f6-444e-8071-3db9d6e964af", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should update Minimum purchase total required in order to validate the order value", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should update Minimum purchase total required in order to validate the order value", + "timedOut": false, + "duration": 371, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_updateMinimumPurchaseTotal_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateMinimumPurchaseTotal_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setMinimumPurchaseRequiredTotal(page, test.args.value)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d10629e7-79aa-4799-9a61-40ada96e609e", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should view my shop", + "timedOut": false, + "duration": 1688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change Fo language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change Fo language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b12e381-77d9-4dfc-b1cd-79433d526781", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should add product to cart", + "timedOut": false, + "duration": 6224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_addProductToCart_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the created product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fa100f1-8798-4e0c-810a-bf7c3f1ea8d0", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the minimum purchase total value", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should verify the minimum purchase total value", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_checkMinimumPurchaseTotal_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisabled, isAlertVisible, alertText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMinimumPurchaseTotal_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isProceedToCheckoutButtonDisabled(page)];\n case 2:\n isDisabled = _a.sent();\n (0, chai_1.expect)(isDisabled).to.equal(test.args.disable);\n return [4 /*yield*/, cart_1.cartPage.isAlertWarningForMinimumPurchaseVisible(page)];\n case 3:\n isAlertVisible = _a.sent();\n (0, chai_1.expect)(isAlertVisible).to.equal(test.args.alertMessage);\n if (!isAlertVisible) return [3 /*break*/, 5];\n return [4 /*yield*/, cart_1.cartPage.getAlertWarning(page)];\n case 4:\n alertText = _a.sent();\n (0, chai_1.expect)(alertText).to.contains(alertMessage);\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20e33e6d-0cd3-4e83-be51-04202a313489", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_BackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"BackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "339502a3-ac47-4ced-a3f8-ff830ed4734a", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should update Minimum purchase total required in order to validate the order value", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should update Minimum purchase total required in order to validate the order value", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_updateMinimumPurchaseTotal_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateMinimumPurchaseTotal_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setMinimumPurchaseRequiredTotal(page, test.args.value)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1e15992-b1bf-4886-abf3-a7196e495cb7", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should view my shop", + "timedOut": false, + "duration": 1741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change Fo language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change Fo language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8099e327-e79b-4c1e-a61a-6d9c0b27c6fd", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should add product to cart", + "timedOut": false, + "duration": 6202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_addProductToCart_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the created product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a288686d-6b33-41b8-b938-3eed4c783d42", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the minimum purchase total value", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should verify the minimum purchase total value", + "timedOut": false, + "duration": 2002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_checkMinimumPurchaseTotal_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisabled, isAlertVisible, alertText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMinimumPurchaseTotal_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isProceedToCheckoutButtonDisabled(page)];\n case 2:\n isDisabled = _a.sent();\n (0, chai_1.expect)(isDisabled).to.equal(test.args.disable);\n return [4 /*yield*/, cart_1.cartPage.isAlertWarningForMinimumPurchaseVisible(page)];\n case 3:\n isAlertVisible = _a.sent();\n (0, chai_1.expect)(isAlertVisible).to.equal(test.args.alertMessage);\n if (!isAlertVisible) return [3 /*break*/, 5];\n return [4 /*yield*/, cart_1.cartPage.getAlertWarning(page)];\n case 4:\n alertText = _a.sent();\n (0, chai_1.expect)(alertText).to.contains(alertMessage);\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abb08ba6-af7c-4326-9f9f-a401d0fe30b6", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Test minimum purchase total required in order to validate the order should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_minimumPurchaseTotalRequired_BackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"BackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88991f64-7e2a-41ef-9170-2459891f824a", + "parentUUID": "31b860da-5797-4c19-96fc-fe3cc0e9fe62", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ccce4151-9f24-4a13-bcfa-ba2ead3d3dda", + "c46236d3-68f6-444e-8071-3db9d6e964af", + "d10629e7-79aa-4799-9a61-40ada96e609e", + "7b12e381-77d9-4dfc-b1cd-79433d526781", + "2fa100f1-8798-4e0c-810a-bf7c3f1ea8d0", + "20e33e6d-0cd3-4e83-be51-04202a313489", + "339502a3-ac47-4ced-a3f8-ff830ed4734a", + "e1e15992-b1bf-4886-abf3-a7196e495cb7", + "8099e327-e79b-4c1e-a61a-6d9c0b27c6fd", + "a288686d-6b33-41b8-b938-3eed4c783d42", + "abb08ba6-af7c-4326-9f9f-a401d0fe30b6", + "88991f64-7e2a-41ef-9170-2459891f824a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25203, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dd3f185d-0917-4420-bed3-fa48fcf34375", + "title": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/05_recalculateShippingCosts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/05_recalculateShippingCosts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order \"before all\" hook in \"BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c7be15c-d151-418f-80b0-07679c9c7f5a", + "parentUUID": "dd3f185d-0917-4420-bed3-fa48fcf34375", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order \"after all\" hook in \"BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "61ca06f8-fee7-42a0-bba5-80f627851d53", + "parentUUID": "dd3f185d-0917-4420-bed3-fa48fcf34375", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/05_recalculateShippingCosts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/05_recalculateShippingCosts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bf6e4ae-a91d-417d-b41d-3abafa1d6033", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c1d744f2-376f-4c10-a405-68338c7fc3ae", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1657, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f7688b4-fc39-4133-a546-62c107b3d999", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4806554-9687-456f-b7c9-a31d23e23147", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 496, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25536617-22e3-4394-96e9-83a2b233ef6b", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c235be86-13d4-40b9-9567-77c81879a666", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c911c683-2594-4d84-b96d-3fd2479d08c7", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa56f7b9-056d-44ff-a039-645cfc52eb0b", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1567, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49fa111e-0096-459c-9c37-1087a9938c37", + "parentUUID": "5c2cea8a-fe34-4b02-a532-788939bf1076", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3f7688b4-fc39-4133-a546-62c107b3d999", + "f4806554-9687-456f-b7c9-a31d23e23147", + "25536617-22e3-4394-96e9-83a2b233ef6b", + "c235be86-13d4-40b9-9567-77c81879a666", + "c911c683-2594-4d84-b96d-3fd2479d08c7", + "fa56f7b9-056d-44ff-a039-645cfc52eb0b", + "49fa111e-0096-459c-9c37-1087a9938c37" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12944, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "df37686d-c87c-42d2-8286-7996e34cfbea", + "title": "Set recalculate shipping costs after editing the order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/05_recalculateShippingCosts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/05_recalculateShippingCosts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should login in BO", + "timedOut": false, + "duration": 1715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f320b984-2eff-480c-9e6a-d83edd53a58a", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_goToOrderSettingsPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderSettingsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f19e31ab-54d7-4432-bcf5-631d6c914f78", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should enable final summary", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should enable final summary", + "timedOut": false, + "duration": 2231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_enableFinalSummary\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"FinalSummary\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.recalculateShippingCostAfterEditingOrder(page, test.args.toEnable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "817cd861-5515-407d-afc8-1788aa373d00", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_goToOrdersPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe51172c-3a8b-48c7-a1a6-c3c1d2d119a4", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should view the order", + "timedOut": false, + "duration": 1029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_viewOrderPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewOrderPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a86d137-79a3-49b8-9f93-ce3f0ab0cebc", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Carriers' tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should click on 'Carriers' tab", + "timedOut": false, + "duration": 79, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_displayCarriersTab_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"displayCarriersTab_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60c63f59-bc56-473a-ab6b-997eefc6df4e", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Edit' link and check the modal", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should click on 'Edit' link and check the modal", + "timedOut": false, + "duration": 417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_clickOnEditLink_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnEditLink_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible, 'Edit shipping modal is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "512e8804-bdcc-41fd-950e-ca8bfbaa202c", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should update the carrier and add a tracking number", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should update the carrier and add a tracking number", + "timedOut": false, + "duration": 850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_updateTrackingNumber_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateTrackingNumber_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setShippingDetails(page, test.args.carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d75fb7ac-0242-435d-acb7-0b5eb3273029", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated carrier details", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should check the updated carrier details", + "timedOut": false, + "duration": 283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_checkUpdatedCarrierDetails_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkUpdatedCarrierDetails_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getCarrierDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.carrier).to.equal(test.args.carrierData.carrier),\n (0, chai_1.expect)(result.shippingCost).to.equal(test.args.cost),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "610d7ced-04e8-40f9-8d6a-4dab1e9a97af", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4583, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_goToOrderSettingsPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderSettingsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c4e41d4-c529-478a-9bcb-961c8f1e7b89", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should disable final summary", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should disable final summary", + "timedOut": false, + "duration": 2263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_disableFinalSummary\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"FinalSummary\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.recalculateShippingCostAfterEditingOrder(page, test.args.toEnable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9819ad62-6610-43de-b5d0-48f9161961fb", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_goToOrdersPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4bd4075-0c2d-4080-b702-06f3ef222d40", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should view the order", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_viewOrderPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewOrderPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfcf945c-cea9-4afd-b18e-9615d3d07785", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Carriers' tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should click on 'Carriers' tab", + "timedOut": false, + "duration": 79, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_displayCarriersTab_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"displayCarriersTab_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36787a65-6259-48a3-9103-295b796b1910", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Edit' link and check the modal", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should click on 'Edit' link and check the modal", + "timedOut": false, + "duration": 415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_clickOnEditLink_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnEditLink_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible, 'Edit shipping modal is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dad85720-7596-48b9-a8cc-4f262c7b4433", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should update the carrier and add a tracking number", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should update the carrier and add a tracking number", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_updateTrackingNumber_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateTrackingNumber_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.setShippingDetails(page, test.args.carrierData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(tabListBlock_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8beb17a1-cde0-41c9-9e8d-7219c43bbf98", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + }, + { + "title": "should check the updated carrier details", + "fullTitle": "BO - Shop Parameters - Order Settings : Recalculate shipping costs after editing the order Set recalculate shipping costs after editing the order should check the updated carrier details", + "timedOut": false, + "duration": 285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_recalculateShippingCosts_checkUpdatedCarrierDetails_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkUpdatedCarrierDetails_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getCarrierDetails(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.carrier).to.equal(test.args.carrierData.carrier),\n (0, chai_1.expect)(result.shippingCost).to.equal(test.args.cost),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a734984-e3e9-4a6a-8431-fb0f346d216e", + "parentUUID": "df37686d-c87c-42d2-8286-7996e34cfbea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f320b984-2eff-480c-9e6a-d83edd53a58a", + "f19e31ab-54d7-4432-bcf5-631d6c914f78", + "817cd861-5515-407d-afc8-1788aa373d00", + "fe51172c-3a8b-48c7-a1a6-c3c1d2d119a4", + "2a86d137-79a3-49b8-9f93-ce3f0ab0cebc", + "60c63f59-bc56-473a-ab6b-997eefc6df4e", + "512e8804-bdcc-41fd-950e-ca8bfbaa202c", + "d75fb7ac-0242-435d-acb7-0b5eb3273029", + "610d7ced-04e8-40f9-8d6a-4dab1e9a97af", + "7c4e41d4-c529-478a-9bcb-961c8f1e7b89", + "9819ad62-6610-43de-b5d0-48f9161961fb", + "f4bd4075-0c2d-4080-b702-06f3ef222d40", + "bfcf945c-cea9-4afd-b18e-9615d3d07785", + "36787a65-6259-48a3-9103-295b796b1910", + "dad85720-7596-48b9-a8cc-4f262c7b4433", + "8beb17a1-cde0-41c9-9e8d-7219c43bbf98", + "9a734984-e3e9-4a6a-8431-fb0f346d216e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28127, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "title": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/06_termsOfService.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/general/06_termsOfService.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable terms of service\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service \"before all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable terms of service\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b25668c7-e5df-433d-b600-a44fd611aeda", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable terms of service\"", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service \"after all\" hook in \"BO - Shop Parameters - Order Settings : Enable/Disable terms of service\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1a82ec9a-4bdf-466d-b5b2-a4f5008d19e7", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4628bb5-b9d1-42fb-8aba-090e24629932", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f938fb60-e76c-4476-b1e9-b93931005a7c", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should disable terms of service", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should disable terms of service", + "timedOut": false, + "duration": 375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_disableTermsOfService0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"TermsOfService\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setTermsOfService(page, test.args.enable, test.args.pageName)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba3c1b1e-ad6c-46a3-b672-d5b6b09cca82", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should view my shop", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_viewMyShop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "082c0459-7f30-498f-b2ee-b885f87c881e", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should add product to cart", + "timedOut": false, + "duration": 6226, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f18d1c6-c2e0-41b8-bec6-7756c1800cbc", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to deliveryStep", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should proceed to checkout and go to deliveryStep", + "timedOut": false, + "duration": 1596, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_proceedToCheckout0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 5];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0660813-539b-40bc-9cea-adf5dc286696", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go to payment step", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_goToPaymentStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0da57389-7026-4b05-83a7-4f9dc026860b", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check terms of service checkbox", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check terms of service checkbox", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfService0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfService\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isConditionToApproveCheckboxVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07fd3456-ace0-40df-beda-3cec1a8e6860", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkAndBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "146165fe-cf7e-498c-8454-5b5b807f784a", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should enable terms of service", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should enable terms of service", + "timedOut": false, + "duration": 371, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_enableTermsOfService1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"TermsOfService\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setTermsOfService(page, test.args.enable, test.args.pageName)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd01b8d7-8709-4e98-893e-212b252517f0", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should view my shop", + "timedOut": false, + "duration": 1781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "867e23a8-c4e7-4253-9f4f-08d2e2e9f59d", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should add product to cart", + "timedOut": false, + "duration": 6489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb887a2e-9e99-4946-92a6-a82fabbe0769", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to deliveryStep", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should proceed to checkout and go to deliveryStep", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_proceedToCheckout1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 5];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d4ddb00-7b50-4507-91c4-2afa2c30d60e", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go to payment step", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_goToPaymentStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65523148-0609-411d-8297-5468eda385d3", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check terms of service checkbox", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check terms of service checkbox", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfService1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfService\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isConditionToApproveCheckboxVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a42a465-979b-4ba3-950d-1028fbdd3f0b", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check the terms of service page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check the terms of service page", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfServicePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfServicePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getTermsOfServicePageTitle(page)];\n case 2:\n pageName = _a.sent();\n (0, chai_1.expect)(pageName).to.contains(test.args.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb1d774a-d4d7-4a52-b148-1ba83e311d96", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkAndBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c6c00aa-99dd-4da7-b9f1-634cdb8df1f3", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should enable terms of service", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should enable terms of service", + "timedOut": false, + "duration": 347, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_enableTermsOfService2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"TermsOfService\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setTermsOfService(page, test.args.enable, test.args.pageName)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2e48ecb-6923-45cd-928c-ce95eae664f7", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should view my shop", + "timedOut": false, + "duration": 1782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_viewMyShop_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02d29e72-ccf8-4c3e-a3e4-37d958bf3571", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should add product to cart", + "timedOut": false, + "duration": 6483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "653ba85d-af8f-446b-b19a-517d78cf1059", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to deliveryStep", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should proceed to checkout and go to deliveryStep", + "timedOut": false, + "duration": 1000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_proceedToCheckout2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 5];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3f3db03-0315-417c-8359-1f8f94d7198d", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go to payment step", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_goToPaymentStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dcc226c-39a6-47d3-9e7a-f6b861a38057", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check terms of service checkbox", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check terms of service checkbox", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfService2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfService\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isConditionToApproveCheckboxVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ea13a70-97b1-45f5-818b-3d6cb11e22bd", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check the terms of service page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check the terms of service page", + "timedOut": false, + "duration": 241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfServicePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfServicePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getTermsOfServicePageTitle(page)];\n case 2:\n pageName = _a.sent();\n (0, chai_1.expect)(pageName).to.contains(test.args.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51f79d99-e214-4207-8b03-bbcf2218fed5", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkAndBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b78758b-1a88-4423-b263-e7c661109893", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should enable terms of service", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should enable terms of service", + "timedOut": false, + "duration": 332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_enableTermsOfService3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"TermsOfService\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setTermsOfService(page, test.args.enable, test.args.pageName)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "129945e3-8a0b-4f6c-bda6-697115bc0ee9", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should view my shop", + "timedOut": false, + "duration": 1790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_viewMyShop_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d706750-e1df-4b13-b2b6-6a77fe14c523", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should add product to cart", + "timedOut": false, + "duration": 6480, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_addProductToCart3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72b3801d-b61c-49ef-8848-19b785d9d3a5", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to deliveryStep", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should proceed to checkout and go to deliveryStep", + "timedOut": false, + "duration": 1021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_proceedToCheckout3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 5];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b5e6ef7-d459-4af9-a413-57acb5fa465c", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go to payment step", + "timedOut": false, + "duration": 293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_goToPaymentStep3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47d479cf-3819-4c0a-bbe7-ebd7fcb3abb5", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check terms of service checkbox", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check terms of service checkbox", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfService3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfService\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isConditionToApproveCheckboxVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3ff0bd7-e09a-4687-919e-6a583b3a8b92", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check the terms of service page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check the terms of service page", + "timedOut": false, + "duration": 234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfServicePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfServicePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getTermsOfServicePageTitle(page)];\n case 2:\n pageName = _a.sent();\n (0, chai_1.expect)(pageName).to.contains(test.args.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db7eec9c-9c20-48d6-9859-d16cd2a294bf", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkAndBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21a44c03-abce-4a75-96c7-fccfe6914ec3", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should enable terms of service", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should enable terms of service", + "timedOut": false, + "duration": 336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_enableTermsOfService4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"TermsOfService\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setTermsOfService(page, test.args.enable, test.args.pageName)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9997f8d2-a7d4-47c9-bc3a-08950e7d5318", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should view my shop", + "timedOut": false, + "duration": 1766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_viewMyShop_4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5919ee72-ddaa-4b99-90cc-aaf66b69cf72", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should add product to cart", + "timedOut": false, + "duration": 6466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_addProductToCart4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ecdb163-8d1f-4fef-a21a-46457002750e", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to deliveryStep", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should proceed to checkout and go to deliveryStep", + "timedOut": false, + "duration": 1030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_proceedToCheckout4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 5];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8259de45-1709-4956-bb45-ba3be59091ed", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go to payment step", + "timedOut": false, + "duration": 298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_goToPaymentStep4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "168b1ae2-2a51-453c-87d7-d5835a2abc7b", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check terms of service checkbox", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check terms of service checkbox", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfService4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfService\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isConditionToApproveCheckboxVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64331aa3-0462-470d-bc1a-01ada9959c44", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check the terms of service page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check the terms of service page", + "timedOut": false, + "duration": 238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfServicePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfServicePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getTermsOfServicePageTitle(page)];\n case 2:\n pageName = _a.sent();\n (0, chai_1.expect)(pageName).to.contains(test.args.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d0d166b-dc14-4086-a6de-2e50f4146797", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkAndBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "624d404f-7021-4c8a-888e-5e21ec076077", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should enable terms of service", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should enable terms of service", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_enableTermsOfService5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"TermsOfService\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setTermsOfService(page, test.args.enable, test.args.pageName)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44d8f60b-d707-47b8-ac31-2f6108bf32c4", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should view my shop", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_viewMyShop_5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e979af0-9976-45d4-bd95-c6e31b7d835a", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should add product to cart", + "timedOut": false, + "duration": 6469, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_addProductToCart5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8b72554-a7f3-42c0-85a9-696fc2740be0", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to deliveryStep", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should proceed to checkout and go to deliveryStep", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_proceedToCheckout5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 5];\n // Personal information step - Login\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 3:\n // Personal information step - Login\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03ba9c8d-ca74-48a4-9891-13348a8f8ab8", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go to payment step", + "timedOut": false, + "duration": 317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_goToPaymentStep5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4426a96-4c7c-4302-b625-6a0d5a2f27e6", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check terms of service checkbox", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check terms of service checkbox", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfService5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfService\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isConditionToApproveCheckboxVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b89d0842-d678-47b4-826a-1497e9e32001", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should check the terms of service page", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should check the terms of service page", + "timedOut": false, + "duration": 235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkTermsOfServicePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTermsOfServicePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getTermsOfServicePageTitle(page)];\n case 2:\n pageName = _a.sent();\n (0, chai_1.expect)(pageName).to.contains(test.args.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcbdc1e7-1636-4aed-9af0-3830d6309da3", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Enable/Disable terms of service should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_general_termsOfService_checkAndBackToBO5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "283beb22-136b-404c-a3ea-65ce0869d372", + "parentUUID": "df982c80-bb0d-4f73-bceb-5966265f2ddd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e4628bb5-b9d1-42fb-8aba-090e24629932", + "f938fb60-e76c-4476-b1e9-b93931005a7c", + "ba3c1b1e-ad6c-46a3-b672-d5b6b09cca82", + "082c0459-7f30-498f-b2ee-b885f87c881e", + "9f18d1c6-c2e0-41b8-bec6-7756c1800cbc", + "a0660813-539b-40bc-9cea-adf5dc286696", + "0da57389-7026-4b05-83a7-4f9dc026860b", + "07fd3456-ace0-40df-beda-3cec1a8e6860", + "146165fe-cf7e-498c-8454-5b5b807f784a", + "cd01b8d7-8709-4e98-893e-212b252517f0", + "867e23a8-c4e7-4253-9f4f-08d2e2e9f59d", + "bb887a2e-9e99-4946-92a6-a82fabbe0769", + "7d4ddb00-7b50-4507-91c4-2afa2c30d60e", + "65523148-0609-411d-8297-5468eda385d3", + "5a42a465-979b-4ba3-950d-1028fbdd3f0b", + "fb1d774a-d4d7-4a52-b148-1ba83e311d96", + "1c6c00aa-99dd-4da7-b9f1-634cdb8df1f3", + "c2e48ecb-6923-45cd-928c-ce95eae664f7", + "02d29e72-ccf8-4c3e-a3e4-37d958bf3571", + "653ba85d-af8f-446b-b19a-517d78cf1059", + "d3f3db03-0315-417c-8359-1f8f94d7198d", + "2dcc226c-39a6-47d3-9e7a-f6b861a38057", + "1ea13a70-97b1-45f5-818b-3d6cb11e22bd", + "51f79d99-e214-4207-8b03-bbcf2218fed5", + "8b78758b-1a88-4423-b263-e7c661109893", + "129945e3-8a0b-4f6c-bda6-697115bc0ee9", + "4d706750-e1df-4b13-b2b6-6a77fe14c523", + "72b3801d-b61c-49ef-8848-19b785d9d3a5", + "7b5e6ef7-d459-4af9-a413-57acb5fa465c", + "47d479cf-3819-4c0a-bbe7-ebd7fcb3abb5", + "e3ff0bd7-e09a-4687-919e-6a583b3a8b92", + "db7eec9c-9c20-48d6-9859-d16cd2a294bf", + "21a44c03-abce-4a75-96c7-fccfe6914ec3", + "9997f8d2-a7d4-47c9-bc3a-08950e7d5318", + "5919ee72-ddaa-4b99-90cc-aaf66b69cf72", + "1ecdb163-8d1f-4fef-a21a-46457002750e", + "8259de45-1709-4956-bb45-ba3be59091ed", + "168b1ae2-2a51-453c-87d7-d5835a2abc7b", + "64331aa3-0462-470d-bc1a-01ada9959c44", + "2d0d166b-dc14-4086-a6de-2e50f4146797", + "624d404f-7021-4c8a-888e-5e21ec076077", + "44d8f60b-d707-47b8-ac31-2f6108bf32c4", + "4e979af0-9976-45d4-bd95-c6e31b7d835a", + "a8b72554-a7f3-42c0-85a9-696fc2740be0", + "03ba9c8d-ca74-48a4-9891-13348a8f8ab8", + "b4426a96-4c7c-4302-b625-6a0d5a2f27e6", + "b89d0842-d678-47b4-826a-1497e9e32001", + "dcbdc1e7-1636-4aed-9af0-3830d6309da3", + "283beb22-136b-404c-a3ea-65ce0869d372" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 69138, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "80b37eac-0818-4167-a656-0cbbe4a71bfb", + "title": "BO - Shop Parameters - Order Settings : Update gift options ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings : Update gift options \"", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options \"before all\" hook in \"BO - Shop Parameters - Order Settings : Update gift options \"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5966cbd-5026-4407-86f2-c9e76d138b08", + "parentUUID": "80b37eac-0818-4167-a656-0cbbe4a71bfb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings : Update gift options \"", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options \"after all\" hook in \"BO - Shop Parameters - Order Settings : Update gift options \"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "907d470b-93c9-471f-bcda-e10f2e422105", + "parentUUID": "80b37eac-0818-4167-a656-0cbbe4a71bfb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73631d4f-d527-4427-b13e-79b371421a66", + "parentUUID": "80b37eac-0818-4167-a656-0cbbe4a71bfb", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "1221f9d3-e84f-4d4e-b1fd-c92874cb3731", + "title": "Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "73ba387d-812e-4b03-8403-0dd49dc07338", + "title": "Set gift options in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Set gift options in BO should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrderSettingsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30e07fa8-5e76-423f-a890-dfea6321c3d0", + "parentUUID": "73ba387d-812e-4b03-8403-0dd49dc07338", + "isHook": false, + "skipped": false + }, + { + "title": "should set gift options", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Set gift options in BO should set gift options", + "timedOut": false, + "duration": 438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_setOptions0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setOptions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGiftOptions(page, test.args.isGiftWrapping, test.args.giftWrappingPrice, test.args.isGiftWrappingTax, test.args.isRecycledPackaging)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result, 'Success message is not displayed!')\n .to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "500f5c92-b894-48a8-a852-f95247c31598", + "parentUUID": "73ba387d-812e-4b03-8403-0dd49dc07338", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "30e07fa8-5e76-423f-a890-dfea6321c3d0", + "500f5c92-b894-48a8-a852-f95247c31598" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5288, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "title": "Create an order and check the configuration in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should view my shop", + "timedOut": false, + "duration": 1689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dff006e6-644a-405f-98d5-8b1247043e7e", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should go to login page", + "timedOut": false, + "duration": 688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToLoginPageFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginPageFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0a00695-684f-47b9-9cec-e9bbf0140da1", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should sign in with default customer", + "timedOut": false, + "duration": 490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_sighInFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25878fe0-a9a3-484a-8012-f953369aca55", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should go to home page", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToHomePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open home page!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eea557d1-52fd-4059-a46f-50fdb50c41a5", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to the cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should add product to the cart", + "timedOut": false, + "duration": 6531, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 4)];\n case 2:\n // Go to the fourth product page\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec4042e6-484f-493f-a621-7a0b8c270a9f", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should click on proceed to checkout and go to delivery step", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should click on proceed to checkout and go to delivery step", + "timedOut": false, + "duration": 978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToDeliveryStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "451a2830-99a0-40be-b0c4-e2d365955cd9", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should check that gift checkbox visibility is 'true'", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should check that gift checkbox visibility is 'true'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftVisibility0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isGiftCheckboxVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftVisibility\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isGiftCheckboxVisible(page)];\n case 2:\n isGiftCheckboxVisible = _a.sent();\n (0, chai_1.expect)(isGiftCheckboxVisible, 'Gift checkbox has not the correct status').to.equal(test.args.isGiftWrapping);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6bc74ef-de9f-4aaa-97d2-c5d09f727aab", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift checkbox and set a gift message", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should check the gift checkbox and set a gift message", + "timedOut": false, + "duration": 117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_setGiftMessage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setGiftMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGiftCheckBox(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isGiftMessageTextareaVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Gift message textarea is not visible!').to.eq(true);\n if (!isVisible) return [3 /*break*/, 5];\n return [4 /*yield*/, checkout_1.default.setGiftMessage(page, 'This is your gift')];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b825e0a4-ea7c-4f5d-91fb-5a89d098789a", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should check that recycled packaging checkbox visibility is 'false'and check it if true", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should check that recycled packaging checkbox visibility is 'false'and check it if true", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkRecycleDVisibility0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isRecycledPackagingCheckboxVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkRecycleDVisibility\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isRecycledPackagingCheckboxVisible(page)];\n case 2:\n isRecycledPackagingCheckboxVisible = _a.sent();\n (0, chai_1.expect)(isRecycledPackagingCheckboxVisible, 'Recycled packaging checkbox has not the correct status').to.equal(test.args.isRecycledPackaging);\n if (!test.args.isRecycledPackaging) return [3 /*break*/, 4];\n return [4 /*yield*/, checkout_1.default.setRecycledPackagingCheckbox(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6e2c7cd-36d6-4a83-aef4-7efc7b279119", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should continue to payment", + "timedOut": false, + "duration": 296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToPaymentStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "180fe445-3793-43e0-b55f-e7338f36d76b", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1505, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_confirmOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "602c33f2-d64a-4275-9509-7496752e5671", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should sign out from FO", + "timedOut": false, + "duration": 2035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_sighOutFOAfterCheck0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFOAfterCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer should be disconnected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6172080f-88a4-4120-b7d2-5bd5161733db", + "parentUUID": "22bc51e4-6268-44a2-977e-b882c5f2c622", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dff006e6-644a-405f-98d5-8b1247043e7e", + "e0a00695-684f-47b9-9cec-e9bbf0140da1", + "25878fe0-a9a3-484a-8012-f953369aca55", + "eea557d1-52fd-4059-a46f-50fdb50c41a5", + "ec4042e6-484f-493f-a621-7a0b8c270a9f", + "451a2830-99a0-40be-b0c4-e2d365955cd9", + "d6bc74ef-de9f-4aaa-97d2-c5d09f727aab", + "b825e0a4-ea7c-4f5d-91fb-5a89d098789a", + "d6e2c7cd-36d6-4a83-aef4-7efc7b279119", + "180fe445-3793-43e0-b55f-e7338f36d76b", + "602c33f2-d64a-4275-9509-7496752e5671", + "6172080f-88a4-4120-b7d2-5bd5161733db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16125, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "title": "Check the configuration in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goBackToBoAfterCheck0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBoAfterCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f61cb479-4a82-4bbb-b988-0bafb90bf5eb", + "parentUUID": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4609, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrdersPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae6c4378-08a6-4e2c-b003-160214dc77fc", + "parentUUID": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should reset all filters", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_resetOrderTableFilters0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetOrderTableFilters\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f6d22aa-679e-4d29-adba-b2e54f494813", + "parentUUID": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "isHook": false, + "skipped": false + }, + { + "title": "should view the first order in the list", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should view the first order in the list", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_viewFirstOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewFirstOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'View order page is not visible!').to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "899b52ca-cc06-4917-bbd8-e8c3bf05d808", + "parentUUID": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on status tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on status tab", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnStatusTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnStatusTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 2:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01d445bd-c54a-482b-9346-5f8b14b1bbdb", + "parentUUID": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on documents tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on documents tab", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnDocTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened, isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnDocTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Documents tab is not opened!').to.eq(true);\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 3:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acefc360-7fc2-406c-ad29-cce64a1830ab", + "parentUUID": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on carriers tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on carriers tab", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnCarriersTab0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened, isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnCarriersTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Carriers tab is not opened!').to.eq(true);\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 3:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84fa9871-e9b6-4177-90f9-8ab018fcd3be", + "parentUUID": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift message", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check the gift message", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftMessage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var giftMessageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getGiftMessage(page)];\n case 2:\n giftMessageText = _a.sent();\n (0, chai_1.expect)(giftMessageText).to.be.equal('This is your gift');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b2d6cf8-5d9d-461d-96e4-b1d6c7cbc4c5", + "parentUUID": "2bdcefcd-0faa-4aeb-9338-52bb54ba3d08", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f61cb479-4a82-4bbb-b988-0bafb90bf5eb", + "ae6c4378-08a6-4e2c-b003-160214dc77fc", + "5f6d22aa-679e-4d29-adba-b2e54f494813", + "899b52ca-cc06-4917-bbd8-e8c3bf05d808", + "01d445bd-c54a-482b-9346-5f8b14b1bbdb", + "acefc360-7fc2-406c-ad29-cce64a1830ab", + "84fa9871-e9b6-4177-90f9-8ab018fcd3be", + "3b2d6cf8-5d9d-461d-96e4-b1d6c7cbc4c5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7721, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d523efc6-9f1b-4dac-93c2-4457e55fd3a8", + "title": "Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "4637ff7c-526c-4598-a32e-24c49e7dcb57", + "title": "Set gift options in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Set gift options in BO should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4576, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrderSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4079f5a2-3fa3-4d73-a56e-968616da9f4e", + "parentUUID": "4637ff7c-526c-4598-a32e-24c49e7dcb57", + "isHook": false, + "skipped": false + }, + { + "title": "should set gift options", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Set gift options in BO should set gift options", + "timedOut": false, + "duration": 354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_setOptions1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setOptions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGiftOptions(page, test.args.isGiftWrapping, test.args.giftWrappingPrice, test.args.isGiftWrappingTax, test.args.isRecycledPackaging)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result, 'Success message is not displayed!')\n .to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ddbad6b-14ae-4062-8381-165ade848949", + "parentUUID": "4637ff7c-526c-4598-a32e-24c49e7dcb57", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4079f5a2-3fa3-4d73-a56e-968616da9f4e", + "7ddbad6b-14ae-4062-8381-165ade848949" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4930, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "title": "Create an order and check the configuration in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should view my shop", + "timedOut": false, + "duration": 1656, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ad50f12-500f-4e8d-8a66-252e1c4e52fb", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should go to login page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToLoginPageFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginPageFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2f68cb1-eb2e-41b5-ad08-f051d10a42c3", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should sign in with default customer", + "timedOut": false, + "duration": 494, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_sighInFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9923effb-4b3f-423d-bfe9-f2bcbd0c163f", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should go to home page", + "timedOut": false, + "duration": 773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToHomePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open home page!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98f595f3-6844-4e74-a53e-7ce81149d656", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to the cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should add product to the cart", + "timedOut": false, + "duration": 6262, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 4)];\n case 2:\n // Go to the fourth product page\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7baad49c-5767-4d05-a7fc-e164c9d6a56e", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on proceed to checkout and go to delivery step", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should click on proceed to checkout and go to delivery step", + "timedOut": false, + "duration": 984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToDeliveryStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64945ce5-1c6a-4d74-b493-ba3bf8dcd2b6", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that gift checkbox visibility is 'true'", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should check that gift checkbox visibility is 'true'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftVisibility1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isGiftCheckboxVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftVisibility\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isGiftCheckboxVisible(page)];\n case 2:\n isGiftCheckboxVisible = _a.sent();\n (0, chai_1.expect)(isGiftCheckboxVisible, 'Gift checkbox has not the correct status').to.equal(test.args.isGiftWrapping);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcf1143c-6f51-4e8c-9ccf-1a7624049e88", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift checkbox and set a gift message", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should check the gift checkbox and set a gift message", + "timedOut": false, + "duration": 108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_setGiftMessage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setGiftMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGiftCheckBox(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isGiftMessageTextareaVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Gift message textarea is not visible!').to.eq(true);\n if (!isVisible) return [3 /*break*/, 5];\n return [4 /*yield*/, checkout_1.default.setGiftMessage(page, 'This is your gift')];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa41babd-db3d-45bf-8269-e6d99e3b9138", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should check gift price and tax", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should check gift price and tax", + "timedOut": false, + "duration": 47, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftPrice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var giftPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getGiftPrice(page)];\n case 2:\n giftPrice = _a.sent();\n (0, chai_1.expect)(giftPrice, 'Gift price is incorrect').to.equal(test.args.giftWrappingPrice === 0\n ? 'Free'\n : \"\\u20AC\".concat((test.args.giftWrappingPrice * (test.args.isGiftWrappingTax === 'None' ? 1 : (1 + test.args.taxValue))).toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c2f8b85-35b8-47c4-8d4c-ee366a25195d", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that recycled packaging checkbox visibility is 'false'and check it if true", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should check that recycled packaging checkbox visibility is 'false'and check it if true", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkRecycleDVisibility1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isRecycledPackagingCheckboxVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkRecycleDVisibility\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isRecycledPackagingCheckboxVisible(page)];\n case 2:\n isRecycledPackagingCheckboxVisible = _a.sent();\n (0, chai_1.expect)(isRecycledPackagingCheckboxVisible, 'Recycled packaging checkbox has not the correct status').to.equal(test.args.isRecycledPackaging);\n if (!test.args.isRecycledPackaging) return [3 /*break*/, 4];\n return [4 /*yield*/, checkout_1.default.setRecycledPackagingCheckbox(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "815609e9-dee7-488d-9dac-a38d07ae8931", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should continue to payment", + "timedOut": false, + "duration": 275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToPaymentStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0dad9cb9-0e74-4723-ab2e-332d984750d1", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1523, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_confirmOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0dfe6a3b-df98-4dea-8872-386f485762c7", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift wrapping price", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should check the gift wrapping price", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftWrappingPrice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var giftWrappingValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftWrappingPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getGiftWrappingValue(page)];\n case 2:\n giftWrappingValue = _a.sent();\n (0, chai_1.expect)(giftWrappingValue).to.equal(test.args.giftWrappingPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf457f36-e3c9-425c-9a79-4574dbadae5d", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Create an order and check the configuration in FO should sign out from FO", + "timedOut": false, + "duration": 1996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_sighOutFOAfterCheck1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFOAfterCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer should be disconnected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6c0a0f9-96a5-493e-9b4b-7c1ce80a2024", + "parentUUID": "08c0da52-26a3-42ec-bfb0-53354c0c9a4c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ad50f12-500f-4e8d-8a66-252e1c4e52fb", + "a2f68cb1-eb2e-41b5-ad08-f051d10a42c3", + "9923effb-4b3f-423d-bfe9-f2bcbd0c163f", + "98f595f3-6844-4e74-a53e-7ce81149d656", + "7baad49c-5767-4d05-a7fc-e164c9d6a56e", + "64945ce5-1c6a-4d74-b493-ba3bf8dcd2b6", + "fcf1143c-6f51-4e8c-9ccf-1a7624049e88", + "aa41babd-db3d-45bf-8269-e6d99e3b9138", + "2c2f8b85-35b8-47c4-8d4c-ee366a25195d", + "815609e9-dee7-488d-9dac-a38d07ae8931", + "0dad9cb9-0e74-4723-ab2e-332d984750d1", + "0dfe6a3b-df98-4dea-8872-386f485762c7", + "cf457f36-e3c9-425c-9a79-4574dbadae5d", + "f6c0a0f9-96a5-493e-9b4b-7c1ce80a2024" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15825, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "title": "Check the configuration in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goBackToBoAfterCheck1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBoAfterCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0c0fa66-d862-48e4-b163-2a5f3f217b6a", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4603, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrdersPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "473d6e99-d634-4aa8-b451-d8d5b999c95b", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_resetOrderTableFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetOrderTableFilters\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28620aec-32a6-4d94-a7a5-b36a30ebcb9d", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + }, + { + "title": "should view the first order in the list", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should view the first order in the list", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_viewFirstOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewFirstOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'View order page is not visible!').to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a6b2335-f22a-40ab-a3c0-f264e127b80e", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on status tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on status tab", + "timedOut": false, + "duration": 35, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnStatusTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnStatusTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 2:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b84411d3-1f92-45eb-90ee-0ff93e8045ec", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on documents tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on documents tab", + "timedOut": false, + "duration": 48, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnDocTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened, isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnDocTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Documents tab is not opened!').to.eq(true);\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 3:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeaa35d6-e7e2-4845-b0f4-fcb34af243a0", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on carriers tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on carriers tab", + "timedOut": false, + "duration": 65, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnCarriersTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened, isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnCarriersTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Carriers tab is not opened!').to.eq(true);\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 3:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eac0976f-9dea-4cd0-b16c-0596d9ca75b3", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift message", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check the gift message", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftMessage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var giftMessageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getGiftMessage(page)];\n case 2:\n giftMessageText = _a.sent();\n (0, chai_1.expect)(giftMessageText).to.be.equal('This is your gift');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3444a0bd-418c-4b19-b723-40b164ffe8c5", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'Wrapping' amount on products block", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'None', recyclable packaging: 'false' Check the configuration in BO should check the 'Wrapping' amount on products block", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkWrappingAmount1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var wrappingAmount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkWrappingAmount\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderWrappingTotal(page)];\n case 2:\n wrappingAmount = _a.sent();\n (0, chai_1.expect)(wrappingAmount).to.be.equal(test.args.giftWrappingPrice * (test.args.isGiftWrappingTax === 'None' ? 1 : (1 + test.args.taxValue)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c63bf0b0-6eaf-40e6-b76f-70e893894cdc", + "parentUUID": "278c483b-85c8-4b6a-ac8a-e93ef6e897a2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a0c0fa66-d862-48e4-b163-2a5f3f217b6a", + "473d6e99-d634-4aa8-b451-d8d5b999c95b", + "28620aec-32a6-4d94-a7a5-b36a30ebcb9d", + "1a6b2335-f22a-40ab-a3c0-f264e127b80e", + "b84411d3-1f92-45eb-90ee-0ff93e8045ec", + "aeaa35d6-e7e2-4845-b0f4-fcb34af243a0", + "eac0976f-9dea-4cd0-b16c-0596d9ca75b3", + "3444a0bd-418c-4b19-b723-40b164ffe8c5", + "c63bf0b0-6eaf-40e6-b76f-70e893894cdc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7661, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c7397700-c445-4a88-89d3-3165b831fd43", + "title": "Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "fc8f92c6-8d02-467b-ba03-002a997d8869", + "title": "Set gift options in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Set gift options in BO should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4576, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrderSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18604cca-b2e9-4832-a18a-5f930546cb19", + "parentUUID": "fc8f92c6-8d02-467b-ba03-002a997d8869", + "isHook": false, + "skipped": false + }, + { + "title": "should set gift options", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Set gift options in BO should set gift options", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_setOptions2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setOptions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGiftOptions(page, test.args.isGiftWrapping, test.args.giftWrappingPrice, test.args.isGiftWrappingTax, test.args.isRecycledPackaging)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result, 'Success message is not displayed!')\n .to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb91b07e-b7aa-4931-b81d-bcef317bf9ba", + "parentUUID": "fc8f92c6-8d02-467b-ba03-002a997d8869", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "18604cca-b2e9-4832-a18a-5f930546cb19", + "fb91b07e-b7aa-4931-b81d-bcef317bf9ba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4931, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "title": "Create an order and check the configuration in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should view my shop", + "timedOut": false, + "duration": 1681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "808da5d8-a608-483b-8646-d32fdf5efb92", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should go to login page", + "timedOut": false, + "duration": 703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToLoginPageFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginPageFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcaaad1f-7792-47bd-887d-e7e04fb8175e", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should sign in with default customer", + "timedOut": false, + "duration": 500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_sighInFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5645eeb-1e9d-4946-b828-67ec24cfd5c7", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should go to home page", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToHomePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open home page!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0723abcb-6dc5-49c3-80f5-1996477e7614", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to the cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should add product to the cart", + "timedOut": false, + "duration": 6264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 4)];\n case 2:\n // Go to the fourth product page\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa1cb2bf-f0db-46c1-85c6-82f879a8176e", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on proceed to checkout and go to delivery step", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should click on proceed to checkout and go to delivery step", + "timedOut": false, + "duration": 991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToDeliveryStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3d4d966-3db8-44e2-85bb-b7e31f4c043c", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that gift checkbox visibility is 'true'", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should check that gift checkbox visibility is 'true'", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftVisibility2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isGiftCheckboxVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftVisibility\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isGiftCheckboxVisible(page)];\n case 2:\n isGiftCheckboxVisible = _a.sent();\n (0, chai_1.expect)(isGiftCheckboxVisible, 'Gift checkbox has not the correct status').to.equal(test.args.isGiftWrapping);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44e2eb28-1b8f-497e-a3b4-b84186e3ed81", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift checkbox and set a gift message", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should check the gift checkbox and set a gift message", + "timedOut": false, + "duration": 115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_setGiftMessage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setGiftMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGiftCheckBox(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isGiftMessageTextareaVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Gift message textarea is not visible!').to.eq(true);\n if (!isVisible) return [3 /*break*/, 5];\n return [4 /*yield*/, checkout_1.default.setGiftMessage(page, 'This is your gift')];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d75f0cf9-f1bf-43fc-8313-348739492060", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should check gift price and tax", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should check gift price and tax", + "timedOut": false, + "duration": 44, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftPrice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var giftPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getGiftPrice(page)];\n case 2:\n giftPrice = _a.sent();\n (0, chai_1.expect)(giftPrice, 'Gift price is incorrect').to.equal(test.args.giftWrappingPrice === 0\n ? 'Free'\n : \"\\u20AC\".concat((test.args.giftWrappingPrice * (test.args.isGiftWrappingTax === 'None' ? 1 : (1 + test.args.taxValue))).toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b170f3dc-9156-48dc-b87e-f4fa828b341e", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that recycled packaging checkbox visibility is 'false'and check it if true", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should check that recycled packaging checkbox visibility is 'false'and check it if true", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkRecycleDVisibility2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isRecycledPackagingCheckboxVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkRecycleDVisibility\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isRecycledPackagingCheckboxVisible(page)];\n case 2:\n isRecycledPackagingCheckboxVisible = _a.sent();\n (0, chai_1.expect)(isRecycledPackagingCheckboxVisible, 'Recycled packaging checkbox has not the correct status').to.equal(test.args.isRecycledPackaging);\n if (!test.args.isRecycledPackaging) return [3 /*break*/, 4];\n return [4 /*yield*/, checkout_1.default.setRecycledPackagingCheckbox(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ad2a9a4-89ee-4e60-abc5-033b0e4a0e49", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should continue to payment", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToPaymentStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f63b776-6eba-4e16-b0e4-1e518640f640", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1523, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_confirmOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26872437-dee3-4ff2-bfad-df2ef0b89a48", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift wrapping price", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should check the gift wrapping price", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftWrappingPrice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var giftWrappingValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftWrappingPrice\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getGiftWrappingValue(page)];\n case 2:\n giftWrappingValue = _a.sent();\n (0, chai_1.expect)(giftWrappingValue).to.equal(test.args.giftWrappingPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a12a2b1e-efd0-4088-91fd-5461143b142f", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Create an order and check the configuration in FO should sign out from FO", + "timedOut": false, + "duration": 2038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_sighOutFOAfterCheck2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFOAfterCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer should be disconnected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39bbad6a-9176-4609-9be4-2d30fcb55c85", + "parentUUID": "f322a0df-2c35-4bd2-a17f-449255e81cb7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "808da5d8-a608-483b-8646-d32fdf5efb92", + "bcaaad1f-7792-47bd-887d-e7e04fb8175e", + "f5645eeb-1e9d-4946-b828-67ec24cfd5c7", + "0723abcb-6dc5-49c3-80f5-1996477e7614", + "aa1cb2bf-f0db-46c1-85c6-82f879a8176e", + "f3d4d966-3db8-44e2-85bb-b7e31f4c043c", + "44e2eb28-1b8f-497e-a3b4-b84186e3ed81", + "d75f0cf9-f1bf-43fc-8313-348739492060", + "b170f3dc-9156-48dc-b87e-f4fa828b341e", + "5ad2a9a4-89ee-4e60-abc5-033b0e4a0e49", + "9f63b776-6eba-4e16-b0e4-1e518640f640", + "26872437-dee3-4ff2-bfad-df2ef0b89a48", + "a12a2b1e-efd0-4088-91fd-5461143b142f", + "39bbad6a-9176-4609-9be4-2d30fcb55c85" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15946, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "title": "Check the configuration in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goBackToBoAfterCheck2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBoAfterCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e45ee3d-1da7-47a7-8516-0683f5c9d878", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86b03fb8-7fd7-4524-a188-98c95125b1c0", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_resetOrderTableFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetOrderTableFilters\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20844822-1fcb-44e1-855f-79b71a688b2b", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + }, + { + "title": "should view the first order in the list", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should view the first order in the list", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_viewFirstOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewFirstOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'View order page is not visible!').to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "008e653a-ca09-4c1d-8653-f8a13facfeff", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on status tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on status tab", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnStatusTab2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnStatusTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 2:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13cb79b1-6674-4637-b8a9-0f2171765e48", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on documents tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on documents tab", + "timedOut": false, + "duration": 67, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnDocTab2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened, isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnDocTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Documents tab is not opened!').to.eq(true);\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 3:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15d6cf17-47ec-4c61-9981-ec3d158c6ea4", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'gift wrapping' badge on carriers tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should check 'gift wrapping' badge on carriers tab", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftOnCarriersTab2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened, isGiftWrapping;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftOnCarriersTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Carriers tab is not opened!').to.eq(true);\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 1)];\n case 3:\n isGiftWrapping = _a.sent();\n (0, chai_1.expect)(isGiftWrapping).to.be.equal('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c03146cb-e330-447c-a96c-0030b2451c8c", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift message", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should check the gift message", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftMessage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var giftMessageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getGiftMessage(page)];\n case 2:\n giftMessageText = _a.sent();\n (0, chai_1.expect)(giftMessageText).to.be.equal('This is your gift');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4076fc5a-82d4-427a-a145-556d649400ed", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'Wrapping' amount on products block", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '1', tax: 'FR Taux standard (20%)', recyclable packaging: 'false' Check the configuration in BO should check the 'Wrapping' amount on products block", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkWrappingAmount2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var wrappingAmount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkWrappingAmount\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getOrderWrappingTotal(page)];\n case 2:\n wrappingAmount = _a.sent();\n (0, chai_1.expect)(wrappingAmount).to.be.equal(test.args.giftWrappingPrice * (test.args.isGiftWrappingTax === 'None' ? 1 : (1 + test.args.taxValue)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00b804f2-a0f8-4736-85b5-30400d8d6b55", + "parentUUID": "93ee5f30-bbf9-4b64-8c63-ed90356a22fa", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e45ee3d-1da7-47a7-8516-0683f5c9d878", + "86b03fb8-7fd7-4524-a188-98c95125b1c0", + "20844822-1fcb-44e1-855f-79b71a688b2b", + "008e653a-ca09-4c1d-8653-f8a13facfeff", + "13cb79b1-6674-4637-b8a9-0f2171765e48", + "15d6cf17-47ec-4c61-9981-ec3d158c6ea4", + "c03146cb-e330-447c-a96c-0030b2451c8c", + "4076fc5a-82d4-427a-a145-556d649400ed", + "00b804f2-a0f8-4736-85b5-30400d8d6b55" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7789, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b86ef357-2f77-47a7-8ccb-d8c400a2d0af", + "title": "Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "776fddf5-e485-4dcf-851f-9e36754a1835", + "title": "Set gift options in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Set gift options in BO should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4602, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrderSettingsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrderSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca4f4ee3-1891-407a-85f9-d5c86f28ecd2", + "parentUUID": "776fddf5-e485-4dcf-851f-9e36754a1835", + "isHook": false, + "skipped": false + }, + { + "title": "should set gift options", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Set gift options in BO should set gift options", + "timedOut": false, + "duration": 413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_setOptions3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setOptions\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGiftOptions(page, test.args.isGiftWrapping, test.args.giftWrappingPrice, test.args.isGiftWrappingTax, test.args.isRecycledPackaging)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result, 'Success message is not displayed!')\n .to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d9c08c4-b44a-495d-891f-9e3be3a7b7e2", + "parentUUID": "776fddf5-e485-4dcf-851f-9e36754a1835", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca4f4ee3-1891-407a-85f9-d5c86f28ecd2", + "6d9c08c4-b44a-495d-891f-9e3be3a7b7e2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5015, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "title": "Create an order and check the configuration in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should view my shop", + "timedOut": false, + "duration": 1670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74adf866-787c-4fe1-84d7-1c601d174410", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should go to login page", + "timedOut": false, + "duration": 685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToLoginPageFO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginPageFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99ff28f7-701b-4a1b-b87f-0b3df79a4bb6", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should sign in with default customer", + "timedOut": false, + "duration": 481, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_sighInFO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "710ef70e-f245-4836-97af-b418d6532229", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should go to home page", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToHomePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open home page!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a90f187a-2bb1-43d1-88ab-81851c4f5905", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to the cart", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should add product to the cart", + "timedOut": false, + "duration": 6260, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_addProductToCart3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the fourth product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 4)];\n case 2:\n // Go to the fourth product page\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c48e0163-ed6d-4f01-a489-aa14005d9356", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on proceed to checkout and go to delivery step", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should click on proceed to checkout and go to delivery step", + "timedOut": false, + "duration": 1000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToDeliveryStep3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "362af43a-8f91-417a-a472-2e12e51e86f0", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that gift checkbox visibility is 'true'", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should check that gift checkbox visibility is 'true'", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkGiftVisibility3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isGiftCheckboxVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkGiftVisibility\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isGiftCheckboxVisible(page)];\n case 2:\n isGiftCheckboxVisible = _a.sent();\n (0, chai_1.expect)(isGiftCheckboxVisible, 'Gift checkbox has not the correct status').to.equal(test.args.isGiftWrapping);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47c1b436-407f-4a86-97b7-1e4f006c3fdd", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the gift checkbox and set a gift message", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should check the gift checkbox and set a gift message", + "timedOut": false, + "duration": 126, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_setGiftMessage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setGiftMessage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGiftCheckBox(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isGiftMessageTextareaVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Gift message textarea is not visible!').to.eq(true);\n if (!isVisible) return [3 /*break*/, 5];\n return [4 /*yield*/, checkout_1.default.setGiftMessage(page, 'This is your gift')];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "911bfd8b-bc8f-4957-9c9d-7b1c89ceb885", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that recycled packaging checkbox visibility is 'true'and check it if true", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should check that recycled packaging checkbox visibility is 'true'and check it if true", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkRecycleDVisibility3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isRecycledPackagingCheckboxVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkRecycleDVisibility\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isRecycledPackagingCheckboxVisible(page)];\n case 2:\n isRecycledPackagingCheckboxVisible = _a.sent();\n (0, chai_1.expect)(isRecycledPackagingCheckboxVisible, 'Recycled packaging checkbox has not the correct status').to.equal(test.args.isRecycledPackaging);\n if (!test.args.isRecycledPackaging) return [3 /*break*/, 4];\n return [4 /*yield*/, checkout_1.default.setRecycledPackagingCheckbox(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e939a56f-f73a-4e4d-b2b5-2e103dff45be", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should continue to payment", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should continue to payment", + "timedOut": false, + "duration": 526, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToPaymentStep3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "822fa84a-87e4-4189-9f81-4134c08f9537", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1540, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_confirmOrder3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7751f0fb-e2b7-4c34-a996-2927a06e008f", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Create an order and check the configuration in FO should sign out from FO", + "timedOut": false, + "duration": 1975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_sighOutFOAfterCheck3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFOAfterCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer should be disconnected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "227159b6-4d22-4839-8707-1fd1d585b17a", + "parentUUID": "8e77ff65-d0ac-4af8-bc1e-35402a34a20e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74adf866-787c-4fe1-84d7-1c601d174410", + "99ff28f7-701b-4a1b-b87f-0b3df79a4bb6", + "710ef70e-f245-4836-97af-b418d6532229", + "a90f187a-2bb1-43d1-88ab-81851c4f5905", + "c48e0163-ed6d-4f01-a489-aa14005d9356", + "362af43a-8f91-417a-a472-2e12e51e86f0", + "47c1b436-407f-4a86-97b7-1e4f006c3fdd", + "911bfd8b-bc8f-4957-9c9d-7b1c89ceb885", + "e939a56f-f73a-4e4d-b2b5-2e103dff45be", + "822fa84a-87e4-4189-9f81-4134c08f9537", + "7751f0fb-e2b7-4c34-a996-2927a06e008f", + "227159b6-4d22-4839-8707-1fd1d585b17a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15088, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5530f6b8-c15b-4496-a198-a04e60281de1", + "title": "Check the configuration in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Check the configuration in BO should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goBackToBoAfterCheck3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBoAfterCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbc77efa-c134-49be-ac56-15e6676b2cb6", + "parentUUID": "5530f6b8-c15b-4496-a198-a04e60281de1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Check the configuration in BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrdersPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToOrdersPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3d469b9-2ddd-4032-ab21-ee1d55a72589", + "parentUUID": "5530f6b8-c15b-4496-a198-a04e60281de1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Check the configuration in BO should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_resetOrderTableFilters3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetOrderTableFilters\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f88e48d9-01ef-4d71-9b79-74f05fecac59", + "parentUUID": "5530f6b8-c15b-4496-a198-a04e60281de1", + "isHook": false, + "skipped": false + }, + { + "title": "should view the first order in the list", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Check the configuration in BO should view the first order in the list", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_viewFirstOrder3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewFirstOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'View order page is not visible!').to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d65a1fe-5026-42df-8402-426bc6538957", + "parentUUID": "5530f6b8-c15b-4496-a198-a04e60281de1", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Recycled packaging' and 'gift wrapping' badges on status tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Check the configuration in BO should check 'Recycled packaging' and 'gift wrapping' badges on status tab", + "timedOut": false, + "duration": 34, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkBadgesOnStatusTab3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isRecycledPackaging;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkBadgesOnStatusTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 2)];\n case 2:\n isRecycledPackaging = _a.sent();\n (0, chai_1.expect)(isRecycledPackaging).to.contain('Recycled packaging')\n .and.to.contain('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89684144-d27c-4792-9cd1-338438c87443", + "parentUUID": "5530f6b8-c15b-4496-a198-a04e60281de1", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Recycled packaging' and 'gift wrapping' badges on documents tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Check the configuration in BO should check 'Recycled packaging' and 'gift wrapping' badges on documents tab", + "timedOut": false, + "duration": 63, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkBadgesOnDocTab3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened, isRecycledPackaging;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkBadgesOnDocTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Documents tab is not opened!').to.eq(true);\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 2)];\n case 3:\n isRecycledPackaging = _a.sent();\n (0, chai_1.expect)(isRecycledPackaging).to.contain('Recycled packaging')\n .and.to.contain('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b42e50b-e7a1-4416-97c2-93ee13c9aacf", + "parentUUID": "5530f6b8-c15b-4496-a198-a04e60281de1", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Recycled packaging' and 'gift wrapping' badges on carriers tab", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options Set gift option with status: 'true', price: '0', tax: 'None', recyclable packaging: 'true' Check the configuration in BO should check 'Recycled packaging' and 'gift wrapping' badges on carriers tab", + "timedOut": false, + "duration": 63, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_checkBadgesOnCarriersTab3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabOpened, isRecycledPackaging;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkBadgesOnCarriersTab\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabOpened = _a.sent();\n (0, chai_1.expect)(isTabOpened, 'Carriers tab is not opened!').to.eq(true);\n return [4 /*yield*/, tabListBlock_1.default.getSuccessBadge(page, 2)];\n case 3:\n isRecycledPackaging = _a.sent();\n (0, chai_1.expect)(isRecycledPackaging).to.be.contain('Recycled packaging')\n .and.to.contain('Gift wrapping');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c655b3c8-ba41-43e2-b872-65f3118e15af", + "parentUUID": "5530f6b8-c15b-4496-a198-a04e60281de1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dbc77efa-c134-49be-ac56-15e6676b2cb6", + "f3d469b9-2ddd-4032-ab21-ee1d55a72589", + "f88e48d9-01ef-4d71-9b79-74f05fecac59", + "6d65a1fe-5026-42df-8402-426bc6538957", + "89684144-d27c-4792-9cd1-338438c87443", + "9b42e50b-e7a1-4416-97c2-93ee13c9aacf", + "c655b3c8-ba41-43e2-b872-65f3118e15af" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7690, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1e07d120-f809-4d4f-b9bc-e43eca70f717", + "title": "POST-TEST: Go back to the default configuration", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/01_orderSettings/giftOptions/01_giftOptions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options POST-TEST: Go back to the default configuration should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3588, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_goToOrderSettingsPagePostCondition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPagePostCondition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17faa108-f81e-4ced-9495-a8b4adc54f96", + "parentUUID": "1e07d120-f809-4d4f-b9bc-e43eca70f717", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to the default configuration", + "fullTitle": "BO - Shop Parameters - Order Settings : Update gift options POST-TEST: Go back to the default configuration should go back to the default configuration", + "timedOut": false, + "duration": 384, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_orderSettings_giftOptions_giftOptions_backToDefaultConfig\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToDefaultConfig', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setGiftOptions(page, false, 0, 'None', false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a0a32d2-2ba8-4b63-8cfe-dd3786ac6e50", + "parentUUID": "1e07d120-f809-4d4f-b9bc-e43eca70f717", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "17faa108-f81e-4ced-9495-a8b4adc54f96", + "8a0a32d2-2ba8-4b63-8cfe-dd3786ac6e50" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3972, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "73631d4f-d527-4427-b13e-79b371421a66" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1712, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d629e2b4-c11b-47bc-94ab-4d160f4280db", + "title": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/01_CRUDOrderReturnStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/01_CRUDOrderReturnStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : CRUD order return status\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status \"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : CRUD order return status\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a32f0da1-1b6b-4cc7-9fee-c8eff9d66e08", + "parentUUID": "d629e2b4-c11b-47bc-94ab-4d160f4280db", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : CRUD order return status\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status \"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : CRUD order return status\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "88d2aee7-6ebf-4294-abaa-1d199ce0eda3", + "parentUUID": "d629e2b4-c11b-47bc-94ab-4d160f4280db", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status should login in BO", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e0df63f-8aff-4bad-bdbd-3c43e6f0d76e", + "parentUUID": "d629e2b4-c11b-47bc-94ab-4d160f4280db", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73b24cbb-fedd-4106-92b2-099ce83a5b4d", + "parentUUID": "d629e2b4-c11b-47bc-94ab-4d160f4280db", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Statuses' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status should go to 'Statuses' page", + "timedOut": false, + "duration": 827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_goToStatusesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatusesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.goToStatusesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statuses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc7f8df4-15b1-4918-8a84-e31b56eb3f9b", + "parentUUID": "d629e2b4-c11b-47bc-94ab-4d160f4280db", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of order return statuses", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status should reset all filters and get number of order return statuses", + "timedOut": false, + "duration": 2017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfOrderReturnStatuses = _a.sent();\n (0, chai_1.expect)(numberOfOrderReturnStatuses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d81d8124-66fb-436e-a6a5-ca9ebdb3b5ec", + "parentUUID": "d629e2b4-c11b-47bc-94ab-4d160f4280db", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "1af85720-cb16-4fe2-a3cb-e5404cb73603", + "title": "Create order return status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/01_CRUDOrderReturnStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/01_CRUDOrderReturnStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order return status page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status Create order return status should go to add new order return status page", + "timedOut": false, + "duration": 763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_goToAddOrderReturnStatusPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddOrderReturnStatusPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderReturnStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b9fa519-7e68-45d4-9569-6f893948565e", + "parentUUID": "1af85720-cb16-4fe2-a3cb-e5404cb73603", + "isHook": false, + "skipped": false + }, + { + "title": "should create order return status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status Create order return status should create order return status and check result", + "timedOut": false, + "duration": 975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_createOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderReturnStatus(page, createOrderReturnStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderReturnStatuses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "408463c9-32b9-44ea-a92b-4d8749af6f02", + "parentUUID": "1af85720-cb16-4fe2-a3cb-e5404cb73603", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0b9fa519-7e68-45d4-9569-6f893948565e", + "408463c9-32b9-44ea-a92b-4d8749af6f02" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1738, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "78f78d24-d025-4a1e-bb0b-dd5259187915", + "title": "Update order return status created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/01_CRUDOrderReturnStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/01_CRUDOrderReturnStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status Update order return status created should filter list by name", + "timedOut": false, + "duration": 2426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetFilter(page, tableName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, 'input', 'name', createOrderReturnStatusData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, 1, 'name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createOrderReturnStatusData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "962c9c04-e340-4def-a502-b610f6505603", + "parentUUID": "78f78d24-d025-4a1e-bb0b-dd5259187915", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit order return status page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status Update order return status created should go to edit order return status page", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_goToEditOrderReturnStatusPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditOrderReturnStatusPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToEditPage(page, tableName, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(createOrderReturnStatusData.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33d805f6-5bce-416d-a5e3-d6515e780b18", + "parentUUID": "78f78d24-d025-4a1e-bb0b-dd5259187915", + "isHook": false, + "skipped": false + }, + { + "title": "should update order return status", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status Update order return status created should update order return status", + "timedOut": false, + "duration": 1310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_updateOrderReturnStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfOrderReturnStatusesAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderReturnStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderReturnStatus(page, editOrderStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulUpdateMessage);\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 3:\n numberOfOrderReturnStatusesAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfOrderReturnStatusesAfterUpdate).to.be.equal(numberOfOrderReturnStatuses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72fd62be-e020-499a-8624-135cc25516ab", + "parentUUID": "78f78d24-d025-4a1e-bb0b-dd5259187915", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "962c9c04-e340-4def-a502-b610f6505603", + "33d805f6-5bce-416d-a5e3-d6515e780b18", + "72fd62be-e020-499a-8624-135cc25516ab" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4512, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "131c41b7-5c47-41c5-94f0-8e8ced042d1e", + "title": "Delete order return status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/01_CRUDOrderReturnStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/01_CRUDOrderReturnStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status Delete order return status should filter list by name", + "timedOut": false, + "duration": 2410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetFilter(page, tableName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, 'input', 'name', editOrderStatusData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, 1, 'name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editOrderStatusData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0eb69576-7bab-4b43-ba92-54f2107b0e5b", + "parentUUID": "131c41b7-5c47-41c5-94f0-8e8ced042d1e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete order return status", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order return status Delete order return status should delete order return status", + "timedOut": false, + "duration": 1827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_CRUDOrderReturnStatus_deleteOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfOrderReturnStatusesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.deleteOrderStatus(page, tableName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulDeleteMessage);\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 3:\n numberOfOrderReturnStatusesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfOrderReturnStatusesAfterDelete).to.be.equal(numberOfOrderReturnStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a20b082c-0f87-4048-954e-df1dd5824383", + "parentUUID": "131c41b7-5c47-41c5-94f0-8e8ced042d1e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0eb69576-7bab-4b43-ba92-54f2107b0e5b", + "a20b082c-0f87-4048-954e-df1dd5824383" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4237, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "9e0df63f-8aff-4bad-bdbd-3c43e6f0d76e", + "73b24cbb-fedd-4106-92b2-099ce83a5b4d", + "dc7f8df4-15b1-4918-8a84-e31b56eb3f9b", + "d81d8124-66fb-436e-a6a5-ca9ebdb3b5ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8406, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "144b3053-13b4-4da4-835e-c0d475758eb2", + "title": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status \"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6014219d-802d-4247-8cfc-09154a714465", + "parentUUID": "144b3053-13b4-4da4-835e-c0d475758eb2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status \"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0806bb43-55a9-43c8-a7d2-428d7c7481e0", + "parentUUID": "144b3053-13b4-4da4-835e-c0d475758eb2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2eb23f12-65c8-4e3d-bd6d-347974d5ab18", + "parentUUID": "144b3053-13b4-4da4-835e-c0d475758eb2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a927b73-7c8d-49af-a3d6-b59c3ee1c97e", + "parentUUID": "144b3053-13b4-4da4-835e-c0d475758eb2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Statuses' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status should go to 'Statuses' page", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_goToStatusesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatusesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.goToStatusesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statuses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "165cad89-f00d-41bd-8d03-cbe97dd83dd2", + "parentUUID": "144b3053-13b4-4da4-835e-c0d475758eb2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of order return statuses", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status should reset all filters and get number of order return statuses", + "timedOut": false, + "duration": 2014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfOrderReturnStatuses = _a.sent();\n (0, chai_1.expect)(numberOfOrderReturnStatuses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19db10df-d349-46de-a088-461d7d5873dd", + "parentUUID": "144b3053-13b4-4da4-835e-c0d475758eb2", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "1cf93221-8cbc-404c-b2b6-5ff4ab1bf9be", + "title": "Filter order return statuses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_order_return_state '3'", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Filter order return statuses table should filter by id_order_return_state '3'", + "timedOut": false, + "duration": 355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfOrderReturnStatuses);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d743634d-9255-47da-8dbb-1d82b328de4c", + "parentUUID": "1cf93221-8cbc-404c-b2b6-5ff4ab1bf9be", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Filter order return statuses table should reset all filters", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_filterByIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderReturnStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef682551-76f3-4a22-9197-03128e1bcee3", + "parentUUID": "1cf93221-8cbc-404c-b2b6-5ff4ab1bf9be", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Return completed'", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Filter order return statuses table should filter by name 'Return completed'", + "timedOut": false, + "duration": 403, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_filterByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfOrderReturnStatuses);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40ea8729-8875-47c2-ab18-6fba51d16462", + "parentUUID": "1cf93221-8cbc-404c-b2b6-5ff4ab1bf9be", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Filter order return statuses table should reset all filters", + "timedOut": false, + "duration": 348, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_filterByNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderReturnStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d4d3e19-0829-4ed6-b384-a74dd0f28238", + "parentUUID": "1cf93221-8cbc-404c-b2b6-5ff4ab1bf9be", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d743634d-9255-47da-8dbb-1d82b328de4c", + "ef682551-76f3-4a22-9197-03128e1bcee3", + "40ea8729-8875-47c2-ab18-6fba51d16462", + "3d4d3e19-0829-4ed6-b384-a74dd0f28238" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1439, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fb4056d9-5b3f-4edf-b3fd-244734ec3bce", + "title": "Sort order return statuses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_order_return_state' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Sort order return statuses table should sort by 'id_order_return_state' 'desc' and check result", + "timedOut": false, + "duration": 2888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72566ce8-13ea-421c-a58a-40ac901b5d5e", + "parentUUID": "fb4056d9-5b3f-4edf-b3fd-244734ec3bce", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Sort order return statuses table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 2260, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "facdcb53-2691-497a-8ee7-be9c9b644ed1", + "parentUUID": "fb4056d9-5b3f-4edf-b3fd-244734ec3bce", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Sort order return statuses table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 2261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97e9ccc7-0cae-4777-b289-794691b43a24", + "parentUUID": "fb4056d9-5b3f-4edf-b3fd-244734ec3bce", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_order_return_state' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Sort order return statuses table should sort by 'id_order_return_state' 'asc' and check result", + "timedOut": false, + "duration": 2252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed8fa88e-feaf-42cc-92a7-60183a0d10d0", + "parentUUID": "fb4056d9-5b3f-4edf-b3fd-244734ec3bce", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "72566ce8-13ea-421c-a58a-40ac901b5d5e", + "facdcb53-2691-497a-8ee7-be9c9b644ed1", + "97e9ccc7-0cae-4777-b289-794691b43a24", + "ed8fa88e-feaf-42cc-92a7-60183a0d10d0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9661, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "20599df4-99ed-48ff-a716-069c1c158888", + "title": "Create order return status n°1 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order status group page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°1 in BO should go to add new order status group page", + "timedOut": false, + "duration": 741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_goToAddOrderReturnStatusPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddOrderReturnStatusPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderReturnStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a112e32b-ba04-4a44-b3e8-4308055c7b4c", + "parentUUID": "20599df4-99ed-48ff-a716-069c1c158888", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°1 in BO should create order status and check result", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_createOrderReturnStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderReturnStatus(page, orderReturnStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderReturnStatuses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07d716a1-7ca2-4029-9159-720d82a1ed5c", + "parentUUID": "20599df4-99ed-48ff-a716-069c1c158888", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a112e32b-ba04-4a44-b3e8-4308055c7b4c", + "07d716a1-7ca2-4029-9159-720d82a1ed5c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1682, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "372285b6-7aac-496c-8b56-938037c5fb3a", + "title": "Create order return status n°2 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order status group page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°2 in BO should go to add new order status group page", + "timedOut": false, + "duration": 740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_goToAddOrderReturnStatusPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddOrderReturnStatusPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderReturnStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1a70f47-6806-4b3c-a1d7-e535fa2fb5b3", + "parentUUID": "372285b6-7aac-496c-8b56-938037c5fb3a", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°2 in BO should create order status and check result", + "timedOut": false, + "duration": 945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_createOrderReturnStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderReturnStatus(page, orderReturnStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderReturnStatuses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0f36a8b-c926-4682-aeac-8b8df7736a57", + "parentUUID": "372285b6-7aac-496c-8b56-938037c5fb3a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f1a70f47-6806-4b3c-a1d7-e535fa2fb5b3", + "d0f36a8b-c926-4682-aeac-8b8df7736a57" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1685, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ca1fee33-ebe4-46cf-ba19-b69dd3cb271a", + "title": "Create order return status n°3 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order status group page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°3 in BO should go to add new order status group page", + "timedOut": false, + "duration": 726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_goToAddOrderReturnStatusPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddOrderReturnStatusPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderReturnStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b719110e-3cb5-40ef-bdc7-e61bd6953263", + "parentUUID": "ca1fee33-ebe4-46cf-ba19-b69dd3cb271a", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°3 in BO should create order status and check result", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_createOrderReturnStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderReturnStatus(page, orderReturnStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderReturnStatuses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9c052f0-c133-4ad0-ad8f-0c34e991ec0b", + "parentUUID": "ca1fee33-ebe4-46cf-ba19-b69dd3cb271a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b719110e-3cb5-40ef-bdc7-e61bd6953263", + "b9c052f0-c133-4ad0-ad8f-0c34e991ec0b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1666, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "266fc262-42f9-46cf-b6bd-896b72d984cf", + "title": "Create order return status n°4 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order status group page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°4 in BO should go to add new order status group page", + "timedOut": false, + "duration": 734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_goToAddOrderReturnStatusPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddOrderReturnStatusPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderReturnStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3609b09-030e-4b0b-98a1-684970301658", + "parentUUID": "266fc262-42f9-46cf-b6bd-896b72d984cf", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°4 in BO should create order status and check result", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_createOrderReturnStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderReturnStatus(page, orderReturnStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderReturnStatuses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39102fb8-fb20-4f78-bf64-57c93cb7a233", + "parentUUID": "266fc262-42f9-46cf-b6bd-896b72d984cf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e3609b09-030e-4b0b-98a1-684970301658", + "39102fb8-fb20-4f78-bf64-57c93cb7a233" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1684, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "77c74a79-1707-459e-b9d7-20351740b005", + "title": "Create order return status n°5 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order status group page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°5 in BO should go to add new order status group page", + "timedOut": false, + "duration": 735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_goToAddOrderReturnStatusPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddOrderReturnStatusPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderReturnStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a93688a-2a22-4a6f-aba4-1045f8e35670", + "parentUUID": "77c74a79-1707-459e-b9d7-20351740b005", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°5 in BO should create order status and check result", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_createOrderReturnStatus4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderReturnStatus(page, orderReturnStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderReturnStatuses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75176fc8-e6b6-45fa-adb3-5f435956861e", + "parentUUID": "77c74a79-1707-459e-b9d7-20351740b005", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3a93688a-2a22-4a6f-aba4-1045f8e35670", + "75176fc8-e6b6-45fa-adb3-5f435956861e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1685, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "624419f8-3078-4afa-a8c2-43591728a429", + "title": "Create order return status n°6 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order status group page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°6 in BO should go to add new order status group page", + "timedOut": false, + "duration": 744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_goToAddOrderReturnStatusPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddOrderReturnStatusPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderReturnStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71ac6729-6dec-4007-90bb-2e60ce4b833e", + "parentUUID": "624419f8-3078-4afa-a8c2-43591728a429", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Create order return status n°6 in BO should create order status and check result", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_createOrderReturnStatus5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderReturnStatus(page, orderReturnStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderReturnStatuses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49989a80-ff27-435f-a72b-4f7c9f939219", + "parentUUID": "624419f8-3078-4afa-a8c2-43591728a429", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "71ac6729-6dec-4007-90bb-2e60ce4b833e", + "49989a80-ff27-435f-a72b-4f7c9f939219" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1697, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5a9120da-77a1-47fb-8609-98c4a46d26ea", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c011fca8-a4de-40fa-9bd6-ed33a043cd1a", + "parentUUID": "5a9120da-77a1-47fb-8609-98c4a46d26ea", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Pagination next and previous should click on next", + "timedOut": false, + "duration": 271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c10e99c-a847-481f-9d61-b15a443d840f", + "parentUUID": "5a9120da-77a1-47fb-8609-98c4a46d26ea", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Pagination next and previous should click on previous", + "timedOut": false, + "duration": 276, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6964f6b0-1059-4540-a0c4-07e5f25c502a", + "parentUUID": "5a9120da-77a1-47fb-8609-98c4a46d26ea", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 251, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af29cd59-50c5-4bf9-825c-bac45d78da85", + "parentUUID": "5a9120da-77a1-47fb-8609-98c4a46d26ea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c011fca8-a4de-40fa-9bd6-ed33a043cd1a", + "8c10e99c-a847-481f-9d61-b15a443d840f", + "6964f6b0-1059-4540-a0c4-07e5f25c502a", + "af29cd59-50c5-4bf9-825c-bac45d78da85" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1062, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3cfe3c3d-2753-4e50-b307-69f36d0ec17d", + "title": "Delete order return statuses with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/returnStatuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Delete order return statuses with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75ef0dc0-9e55-4f41-9cf6-c28f2c88f093", + "parentUUID": "3cfe3c3d-2753-4e50-b307-69f36d0ec17d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete order return statuses with Bulk Actions and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Delete order return statuses with Bulk Actions should delete order return statuses with Bulk Actions and check result", + "timedOut": false, + "duration": 1517, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_bulkDeleteStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.bulkDeleteOrderStatuses(page, tableName)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(statuses_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3e21f6e-9e8d-4d34-8803-fe2fd2a31ce8", + "parentUUID": "3cfe3c3d-2753-4e50-b307-69f36d0ec17d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order return status Delete order return statuses with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_returnStatuses_filterSortAndPagination_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.be.equal(numberOfOrderReturnStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4727f6be-1816-480b-a7b5-6cc2138e9fbf", + "parentUUID": "3cfe3c3d-2753-4e50-b307-69f36d0ec17d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75ef0dc0-9e55-4f41-9cf6-c28f2c88f093", + "d3e21f6e-9e8d-4d34-8803-fe2fd2a31ce8", + "4727f6be-1816-480b-a7b5-6cc2138e9fbf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2280, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "2eb23f12-65c8-4e3d-bd6d-347974d5ab18", + "0a927b73-7c8d-49af-a3d6-b59c3ee1c97e", + "165cad89-f00d-41bd-8d03-cbe97dd83dd2", + "19db10df-d349-46de-a088-461d7d5873dd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8410, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ead4890e-0966-427e-ab20-bb8989262117", + "title": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : CRUD order status\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status \"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : CRUD order status\"", + "timedOut": false, + "duration": 165, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(\"\".concat(createOrderStatusData.name, \".jpg\")),\n files_1.default.generateImage(\"\".concat(editOrderStatusData.name, \".jpg\")),\n ])];\n case 3:\n // Create images\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bfcbb84-7cc8-47a9-9184-6a46e602d466", + "parentUUID": "ead4890e-0966-427e-ab20-bb8989262117", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : CRUD order status\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status \"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : CRUD order status\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n /* Delete the generated images */\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(\"\".concat(createOrderStatusData.name, \".jpg\")),\n files_1.default.deleteFile(\"\".concat(editOrderStatusData.name, \".jpg\")),\n ])];\n case 2:\n /* Delete the generated images */\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "04328314-f392-44e0-9491-b1b35e7592f9", + "parentUUID": "ead4890e-0966-427e-ab20-bb8989262117", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "336d1836-1447-4eb1-9d3b-0e2bb9bdef29", + "parentUUID": "ead4890e-0966-427e-ab20-bb8989262117", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f073a030-1086-4c3b-acbe-2cec2856a4be", + "parentUUID": "ead4890e-0966-427e-ab20-bb8989262117", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Statuses' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status should go to 'Statuses' page", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_goToStatusesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatusesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.goToStatusesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statuses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7142adf1-d25b-4235-971e-7cd5b6719304", + "parentUUID": "ead4890e-0966-427e-ab20-bb8989262117", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of order statuses", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status should reset all filters and get number of order statuses", + "timedOut": false, + "duration": 2016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfOrderStatuses = _a.sent();\n (0, chai_1.expect)(numberOfOrderStatuses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c037055b-58ed-482f-9698-390f4a865224", + "parentUUID": "ead4890e-0966-427e-ab20-bb8989262117", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "a1547e8d-73bf-4ca4-b352-38cea6dbef39", + "title": "Create order status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new order status page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Create order status should go to add new order status page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_goToaddOrderStatusPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToaddOrderStatusPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e25a0f22-98bb-48cd-83e8-620578def75c", + "parentUUID": "a1547e8d-73bf-4ca4-b352-38cea6dbef39", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Create order status should create order status and check result", + "timedOut": false, + "duration": 1576, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_createOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderStatus(page, createOrderStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderStatuses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f183fd3-7e3e-4f70-a1ad-798a8ba6bd80", + "parentUUID": "a1547e8d-73bf-4ca4-b352-38cea6dbef39", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e25a0f22-98bb-48cd-83e8-620578def75c", + "1f183fd3-7e3e-4f70-a1ad-798a8ba6bd80" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2348, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "424964fc-664f-4e8f-a5ba-713fd67f8d84", + "title": "Check the existence of the new status in the order page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the orders page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Check the existence of the new status in the order page should go to the orders page", + "timedOut": false, + "duration": 3600, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToSubMenu(page, statuses_1.default.ordersParentLink, statuses_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc202f1a-5d40-40a1-8ed0-74c495939168", + "parentUUID": "424964fc-664f-4e8f-a5ba-713fd67f8d84", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Check the existence of the new status in the order page should go to the first order page", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_goToOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e588219-2141-4226-a184-b6460bb5d578", + "parentUUID": "424964fc-664f-4e8f-a5ba-713fd67f8d84", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the order status 'order_status_umerus' is visible", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Check the existence of the new status in the order page should check if the order status 'order_status_umerus' is visible", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_checkDoesStatusVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStatusExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDoesStatusVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.doesStatusExist(page, createOrderStatusData.name)];\n case 2:\n isStatusExist = _a.sent();\n (0, chai_1.expect)(isStatusExist, 'Status does not exist').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "236075ac-114f-46ab-b52a-51feb45593ec", + "parentUUID": "424964fc-664f-4e8f-a5ba-713fd67f8d84", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bc202f1a-5d40-40a1-8ed0-74c495939168", + "2e588219-2141-4226-a184-b6460bb5d578", + "236075ac-114f-46ab-b52a-51feb45593ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4507, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c3d10aa0-8dfe-43a6-aeba-c5f996eca1b6", + "title": "Update order status created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Update order status created should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3591, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_goToOrderSettingsPageToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPageToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "470a90a2-a5fd-45fc-a581-340e2e5c4086", + "parentUUID": "c3d10aa0-8dfe-43a6-aeba-c5f996eca1b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Statuses' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Update order status created should go to 'Statuses' page", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_goToStatusesPageToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatusesPageToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.goToStatusesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statuses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc40f9f8-5ce0-413a-b9a3-045c01a7963e", + "parentUUID": "c3d10aa0-8dfe-43a6-aeba-c5f996eca1b6", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Update order status created should filter list by name", + "timedOut": false, + "duration": 2387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetFilter(page, tableName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, 'input', 'name', createOrderStatusData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, 1, 'name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createOrderStatusData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f6c9397-1eee-4910-9537-e89328d7fe6f", + "parentUUID": "c3d10aa0-8dfe-43a6-aeba-c5f996eca1b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit order status page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Update order status created should go to edit order status page", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_goToEditOrderStatusPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditOrderStatusPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToEditPage(page, tableName, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(createOrderStatusData.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "920297bd-23a6-4db8-ad85-c057fda11d14", + "parentUUID": "c3d10aa0-8dfe-43a6-aeba-c5f996eca1b6", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Update order status created should update order status", + "timedOut": false, + "duration": 1309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfOrderStatusesAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderStatus(page, editOrderStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulUpdateMessage);\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 3:\n numberOfOrderStatusesAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfOrderStatusesAfterUpdate).to.be.equal(numberOfOrderStatuses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9f89761-520e-4bf8-b79d-46fc953c0349", + "parentUUID": "c3d10aa0-8dfe-43a6-aeba-c5f996eca1b6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "470a90a2-a5fd-45fc-a581-340e2e5c4086", + "bc40f9f8-5ce0-413a-b9a3-045c01a7963e", + "6f6c9397-1eee-4910-9537-e89328d7fe6f", + "920297bd-23a6-4db8-ad85-c057fda11d14", + "c9f89761-520e-4bf8-b79d-46fc953c0349" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8863, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "be9e04ca-6887-4731-a03e-74aae74c5594", + "title": "Delete order status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/01_CRUDOrderStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Delete order status should filter list by name", + "timedOut": false, + "duration": 2392, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetFilter(page, tableName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, 'input', 'name', editOrderStatusData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, 1, 'name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editOrderStatusData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "773c9088-d3fe-437f-9c9c-ec482ec7c902", + "parentUUID": "be9e04ca-6887-4731-a03e-74aae74c5594", + "isHook": false, + "skipped": false + }, + { + "title": "should delete order status", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : CRUD order status Delete order status should delete order status", + "timedOut": false, + "duration": 1763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_CRUDOrderStatus_deleteOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfOrderStatusesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.deleteOrderStatus(page, tableName, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulDeleteMessage);\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 3:\n numberOfOrderStatusesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfOrderStatusesAfterDelete).to.be.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6185d13-59ae-4760-a01d-aceab389659a", + "parentUUID": "be9e04ca-6887-4731-a03e-74aae74c5594", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "773c9088-d3fe-437f-9c9c-ec482ec7c902", + "a6185d13-59ae-4760-a01d-aceab389659a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4155, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "336d1836-1447-4eb1-9d3b-0e2bb9bdef29", + "f073a030-1086-4c3b-acbe-2cec2856a4be", + "7142adf1-d25b-4235-971e-7cd5b6719304", + "c037055b-58ed-482f-9698-390f4a865224" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8398, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ddb68204-9d01-4615-87bf-33f18991bf0f", + "title": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/02_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status \"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8deec37-700a-4ecb-838e-e0f7536fd431", + "parentUUID": "ddb68204-9d01-4615-87bf-33f18991bf0f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status \"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ccf78d18-7008-40b1-aaec-52724efef4ad", + "parentUUID": "ddb68204-9d01-4615-87bf-33f18991bf0f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7363ce1-829c-4acb-a800-ac85e5b21492", + "parentUUID": "ddb68204-9d01-4615-87bf-33f18991bf0f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59462e1a-c008-46d4-873d-1d7f0c709c49", + "parentUUID": "ddb68204-9d01-4615-87bf-33f18991bf0f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Statuses' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status should go to 'Statuses' page", + "timedOut": false, + "duration": 827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_goToStatusesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatusesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.goToStatusesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statuses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5600a3f9-dfc4-49d2-aad5-f8d616157f7f", + "parentUUID": "ddb68204-9d01-4615-87bf-33f18991bf0f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of order statuses", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status should reset all filters and get number of order statuses", + "timedOut": false, + "duration": 2016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfOrderStatuses = _a.sent();\n (0, chai_1.expect)(numberOfOrderStatuses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfdaf16d-fb03-4560-91e9-9f45dc686d19", + "parentUUID": "ddb68204-9d01-4615-87bf-33f18991bf0f", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "title": "Filter order statuses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_order_state '2'", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should filter by id_order_state '2'", + "timedOut": false, + "duration": 346, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, columnStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfOrderStatuses);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterTypeOf === 'boolean')) return [3 /*break*/, 6];\n return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, row, test.args.filterBy)];\n case 5:\n columnStatus = _a.sent();\n (0, chai_1.expect)(columnStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d5188c2-7e00-43a0-8280-cb0e1c45e85d", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should reset all filters", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b66ef6b-e82d-430e-991f-316765742e0e", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Shipped'", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should filter by name 'Shipped'", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, columnStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfOrderStatuses);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterTypeOf === 'boolean')) return [3 /*break*/, 6];\n return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, row, test.args.filterBy)];\n case 5:\n columnStatus = _a.sent();\n (0, chai_1.expect)(columnStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7ec5f4f-84d8-4ef3-bfaa-51e0d7bc1b02", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should reset all filters", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb64ef0d-7f24-4489-8be9-53f9e22effe8", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by send_email '1'", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should filter by send_email '1'", + "timedOut": false, + "duration": 386, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterBySendEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, columnStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfOrderStatuses);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterTypeOf === 'boolean')) return [3 /*break*/, 6];\n return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, row, test.args.filterBy)];\n case 5:\n columnStatus = _a.sent();\n (0, chai_1.expect)(columnStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fd0ccd7-211b-4854-8832-0588d5cf5b82", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should reset all filters", + "timedOut": false, + "duration": 360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterBySendEmailReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0acd86bc-8157-4b4a-830b-da11dd16b869", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by delivery '1'", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should filter by delivery '1'", + "timedOut": false, + "duration": 326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByDelivery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, columnStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfOrderStatuses);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterTypeOf === 'boolean')) return [3 /*break*/, 6];\n return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, row, test.args.filterBy)];\n case 5:\n columnStatus = _a.sent();\n (0, chai_1.expect)(columnStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "997cb5c3-0bb6-4ed7-a87d-e152b11371a1", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should reset all filters", + "timedOut": false, + "duration": 340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByDeliveryReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11ba89bf-4504-44e4-b799-fcb632d1add7", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by invoice '0'", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should filter by invoice '0'", + "timedOut": false, + "duration": 353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, columnStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfOrderStatuses);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterTypeOf === 'boolean')) return [3 /*break*/, 6];\n return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, row, test.args.filterBy)];\n case 5:\n columnStatus = _a.sent();\n (0, chai_1.expect)(columnStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e5d9ecf-428e-4446-831f-91cbfea8091a", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should reset all filters", + "timedOut": false, + "duration": 354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByInvoiceReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea2be007-e225-4d1c-bedf-7697c37d3e4c", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by template 'order_canceled'", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should filter by template 'order_canceled'", + "timedOut": false, + "duration": 371, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByEmailTemplate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, columnStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfOrderStatuses);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.filterTypeOf === 'boolean')) return [3 /*break*/, 6];\n return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, row, test.args.filterBy)];\n case 5:\n columnStatus = _a.sent();\n (0, chai_1.expect)(columnStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94e9b677-c259-4fb2-8216-6a306fdac1db", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Filter order statuses table should reset all filters", + "timedOut": false, + "duration": 336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_filterByEmailTemplateReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a97a7323-9182-4431-82dc-f741ed1b4319", + "parentUUID": "1d0db82d-92c2-4f60-be16-a83947616ab9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7d5188c2-7e00-43a0-8280-cb0e1c45e85d", + "7b66ef6b-e82d-430e-991f-316765742e0e", + "b7ec5f4f-84d8-4ef3-bfaa-51e0d7bc1b02", + "fb64ef0d-7f24-4489-8be9-53f9e22effe8", + "1fd0ccd7-211b-4854-8832-0588d5cf5b82", + "0acd86bc-8157-4b4a-830b-da11dd16b869", + "997cb5c3-0bb6-4ed7-a87d-e152b11371a1", + "11ba89bf-4504-44e4-b799-fcb632d1add7", + "1e5d9ecf-428e-4446-831f-91cbfea8091a", + "ea2be007-e225-4d1c-bedf-7697c37d3e4c", + "94e9b677-c259-4fb2-8216-6a306fdac1db", + "a97a7323-9182-4431-82dc-f741ed1b4319" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4207, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d300fbb9-1585-4a6c-992e-9cff634b3757", + "title": "Sort order statuses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Sort order statuses table should change the items number to 20 per page", + "timedOut": false, + "duration": 246, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_changeItemNumberTo2001\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo2001', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4e6a303-d2c6-487c-93ff-700412a93330", + "parentUUID": "d300fbb9-1585-4a6c-992e-9cff634b3757", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_order_state' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Sort order statuses table should sort by 'id_order_state' 'desc' and check result", + "timedOut": false, + "duration": 3018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f793c18f-b9da-47a1-b271-d5b35db0159d", + "parentUUID": "d300fbb9-1585-4a6c-992e-9cff634b3757", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Sort order statuses table should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 2411, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe958070-6b78-41ae-84c6-8ed60bb96d87", + "parentUUID": "d300fbb9-1585-4a6c-992e-9cff634b3757", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Sort order statuses table should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 2393, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a76b88dd-3142-4a96-b1ba-dd7b54a3ec81", + "parentUUID": "d300fbb9-1585-4a6c-992e-9cff634b3757", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'template' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Sort order statuses table should sort by 'template' 'asc' and check result", + "timedOut": false, + "duration": 2446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_sortByTemplateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c997cc58-5342-4de4-8f2b-840d3010b99c", + "parentUUID": "d300fbb9-1585-4a6c-992e-9cff634b3757", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'template' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Sort order statuses table should sort by 'template' 'desc' and check result", + "timedOut": false, + "duration": 2412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_sortByTemplateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "079b7a68-2e65-430f-9708-dc9feb6d0adb", + "parentUUID": "d300fbb9-1585-4a6c-992e-9cff634b3757", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_order_state' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Sort order statuses table should sort by 'id_order_state' 'asc' and check result", + "timedOut": false, + "duration": 2416, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, statuses_1.default.sortTable(page, tableName, test.args.sortBy, test.args.columnID, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getAllRowsColumnContent(page, tableName, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a7b98aa-b57a-40af-ae69-b69118e3f7fd", + "parentUUID": "d300fbb9-1585-4a6c-992e-9cff634b3757", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e4e6a303-d2c6-487c-93ff-700412a93330", + "f793c18f-b9da-47a1-b271-d5b35db0159d", + "fe958070-6b78-41ae-84c6-8ed60bb96d87", + "a76b88dd-3142-4a96-b1ba-dd7b54a3ec81", + "c997cc58-5342-4de4-8f2b-840d3010b99c", + "079b7a68-2e65-430f-9708-dc9feb6d0adb", + "3a7b98aa-b57a-40af-ae69-b69118e3f7fd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15342, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1bf4c47e-e4ae-441f-b16c-6ca2c660d625", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.selectPaginationLimit(page, tableName, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51db2d55-d889-43a8-bf1d-b94cf498211e", + "parentUUID": "1bf4c47e-e4ae-441f-b16c-6ca2c660d625", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Pagination next and previous should click on next", + "timedOut": false, + "duration": 250, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.paginationNext(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82b9f1d3-82b9-4a01-b041-037f56b068c3", + "parentUUID": "1bf4c47e-e4ae-441f-b16c-6ca2c660d625", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Pagination next and previous should click on previous", + "timedOut": false, + "duration": 255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.paginationPrevious(page, tableName)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a5978f9-e299-4002-b740-a5a55859089f", + "parentUUID": "1bf4c47e-e4ae-441f-b16c-6ca2c660d625", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Filter, sort and pagination order status Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 251, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_filterSortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6eab394f-6683-4c73-b598-1326ecfa9517", + "parentUUID": "1bf4c47e-e4ae-441f-b16c-6ca2c660d625", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "51db2d55-d889-43a8-bf1d-b94cf498211e", + "82b9f1d3-82b9-4a01-b041-037f56b068c3", + "2a5978f9-e299-4002-b740-a5a55859089f", + "6eab394f-6683-4c73-b598-1326ecfa9517" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 984, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f7363ce1-829c-4acb-a800-ac85e5b21492", + "59462e1a-c008-46d4-873d-1d7f0c709c49", + "5600a3f9-dfc4-49d2-aad5-f8d616157f7f", + "dfdaf16d-fb03-4560-91e9-9f45dc686d19" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8438, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "title": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/03_quickEdit.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/03_quickEdit.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO \"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6464eef6-0a2c-4da5-bc2c-e01761404365", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO \"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "279cb818-ac36-4234-bcaa-f67ca232ddba", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should login in BO", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9610723a-746a-4810-b8ac-53be0eeb72d1", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05d3ddc1-b04e-4d2e-8c02-1da79803b83d", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Statuses' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should go to 'Statuses' page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_goToStatusesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatusesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.goToStatusesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statuses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c7d1882-b6f0-426d-a009-ba59f84f1afc", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by status name", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should filter by status name", + "timedOut": false, + "duration": 2362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_filterByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfOrderStatuses = _a.sent();\n (0, chai_1.expect)(numberOfOrderStatuses).to.be.above(0);\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, 'input', 'name', orderStatuses_1.default.shipped.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 4:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.above(0);\n row = 1;\n _a.label = 5;\n case 5:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 8];\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, row, 'name')];\n case 6:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(orderStatuses_1.default.shipped.name);\n _a.label = 7;\n case 7:\n row++;\n return [3 /*break*/, 5];\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "792e4bbb-5d8f-4633-af4f-8f3d078cded9", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should disable send_email by quick edit", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should disable send_email by quick edit", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_disable0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(orderStatus.args.status).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.setStatus(page, tableName, 1, orderStatus.args.columnName, orderStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, statuses_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(statuses_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, 1, orderStatus.args.columnName)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(orderStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b35a6c9-6153-42fb-b841-25497d4061b9", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should enable send_email by quick edit", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should enable send_email by quick edit", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_enable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(orderStatus.args.status).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.setStatus(page, tableName, 1, orderStatus.args.columnName, orderStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, statuses_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(statuses_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, 1, orderStatus.args.columnName)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(orderStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a97a47e-95d4-407b-96ad-2403759a8c52", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should disable delivery by quick edit", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should disable delivery by quick edit", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_disable2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(orderStatus.args.status).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.setStatus(page, tableName, 1, orderStatus.args.columnName, orderStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, statuses_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(statuses_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, 1, orderStatus.args.columnName)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(orderStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc3d16ff-fc1b-4756-a847-aacea02a03a7", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should enable delivery by quick edit", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should enable delivery by quick edit", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_enable3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(orderStatus.args.status).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.setStatus(page, tableName, 1, orderStatus.args.columnName, orderStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, statuses_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(statuses_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, 1, orderStatus.args.columnName)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(orderStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0c9ee49-1f6c-4bf6-bab8-655a19da437c", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should disable invoice by quick edit", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should disable invoice by quick edit", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_disable4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(orderStatus.args.status).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.setStatus(page, tableName, 1, orderStatus.args.columnName, orderStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, statuses_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(statuses_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, 1, orderStatus.args.columnName)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(orderStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4bd2263-c6ab-484e-9a10-4e82a440de7b", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should enable invoice by quick edit", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should enable invoice by quick edit", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_enable5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(orderStatus.args.status).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.setStatus(page, tableName, 1, orderStatus.args.columnName, orderStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, statuses_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(statuses_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, statuses_1.default.getStatus(page, tableName, 1, orderStatus.args.columnName)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(orderStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73d0a5b8-1135-46fe-9ecc-29cedeb8820d", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Quick edit order status in BO should reset all filters", + "timedOut": false, + "duration": 341, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_quickEdit_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbad34c9-36cb-42d7-8848-b2b90560cb57", + "parentUUID": "c2ec6834-2d99-4b9b-a894-045a43f3a0d5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9610723a-746a-4810-b8ac-53be0eeb72d1", + "05d3ddc1-b04e-4d2e-8c02-1da79803b83d", + "7c7d1882-b6f0-426d-a009-ba59f84f1afc", + "792e4bbb-5d8f-4633-af4f-8f3d078cded9", + "1b35a6c9-6153-42fb-b841-25497d4061b9", + "5a97a47e-95d4-407b-96ad-2403759a8c52", + "bc3d16ff-fc1b-4756-a847-aacea02a03a7", + "d0c9ee49-1f6c-4bf6-bab8-655a19da437c", + "c4bd2263-c6ab-484e-9a10-4e82a440de7b", + "73d0a5b8-1135-46fe-9ecc-29cedeb8820d", + "cbad34c9-36cb-42d7-8848-b2b90560cb57" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12644, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8cbc5d41-f141-4183-9ead-cf873049c1d1", + "title": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/04_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/04_bulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table \"before all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62658666-2233-4fd5-ba7a-63e01299f3e2", + "parentUUID": "8cbc5d41-f141-4183-9ead-cf873049c1d1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table \"after all\" hook in \"BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n var i;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n i = 0;\n _a.label = 2;\n case 2:\n if (!(i <= 2)) return [3 /*break*/, 5];\n return [4 /*yield*/, files_1.default.deleteFile(\"todelete\".concat(i, \".jpg\"))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4:\n i++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9a613000-f3b5-46ae-a94a-e9d48eee21d3", + "parentUUID": "8cbc5d41-f141-4183-9ead-cf873049c1d1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae85b398-3a4c-4dd4-9e9a-ee536b0534ef", + "parentUUID": "8cbc5d41-f141-4183-9ead-cf873049c1d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b6010f8-f588-4219-b560-c8d705c845ee", + "parentUUID": "8cbc5d41-f141-4183-9ead-cf873049c1d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Statuses' page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table should go to 'Statuses' page", + "timedOut": false, + "duration": 815, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_goToStatusesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatusesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.goToStatusesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statuses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b31e9a87-e072-4db0-8926-4e7d576087b0", + "parentUUID": "8cbc5d41-f141-4183-9ead-cf873049c1d1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of order statuses", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table should reset all filters and get number of order statuses", + "timedOut": false, + "duration": 2014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfOrderStatuses = _a.sent();\n (0, chai_1.expect)(numberOfOrderStatuses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32c160d8-bfa3-46d5-81c2-e8eb43e1ace0", + "parentUUID": "8cbc5d41-f141-4183-9ead-cf873049c1d1", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table should change the items number to 20 per page", + "timedOut": false, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.selectPaginationLimit(page, tableName, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33208ec7-ef75-40e0-a8c7-32e0a8aca89e", + "parentUUID": "8cbc5d41-f141-4183-9ead-cf873049c1d1", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "5cfda631-0ba7-46c9-ba01-bf3b9827ac19", + "title": "Create order status n°1 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/04_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/04_bulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Create order status n°1 in BO\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Create order status n°1 in BO \"before all\" hook in \"Create order status n°1 in BO\"", + "timedOut": false, + "duration": 54, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "89841139-3568-47ab-9d32-d336bac53c22", + "parentUUID": "5cfda631-0ba7-46c9-ba01-bf3b9827ac19", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Create order status n°1 in BO\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Create order status n°1 in BO \"after all\" hook in \"Create order status n°1 in BO\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "8b3d10f0-e51a-4466-9977-7167097831f3", + "parentUUID": "5cfda631-0ba7-46c9-ba01-bf3b9827ac19", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to add new order status group page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Create order status n°1 in BO should go to add new order status group page", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_goToAddOrderStatusPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddOrderStatusPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0a5e6dc-f416-4b02-9287-962ed481b872", + "parentUUID": "5cfda631-0ba7-46c9-ba01-bf3b9827ac19", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Create order status n°1 in BO should create order status and check result", + "timedOut": false, + "duration": 1558, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_createOrderStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderStatus(page, orderStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderStatuses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "824ea171-df8b-4512-86f6-ca2215a06de6", + "parentUUID": "5cfda631-0ba7-46c9-ba01-bf3b9827ac19", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f0a5e6dc-f416-4b02-9287-962ed481b872", + "824ea171-df8b-4512-86f6-ca2215a06de6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2334, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "691cd292-6baa-4b1a-8fa9-8f2276b71392", + "title": "Create order status n°2 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/04_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/04_bulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Create order status n°2 in BO\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Create order status n°2 in BO \"before all\" hook in \"Create order status n°2 in BO\"", + "timedOut": false, + "duration": 23, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.generateImage(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "38d53911-69e1-4c2b-af8b-add0613b528c", + "parentUUID": "691cd292-6baa-4b1a-8fa9-8f2276b71392", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Create order status n°2 in BO\"", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Create order status n°2 in BO \"after all\" hook in \"Create order status n°2 in BO\"", + "timedOut": false, + "duration": 1, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return files_1.default.deleteFile(\"todelete\".concat(index, \".jpg\"));", + "err": {}, + "uuid": "cfa97700-27fa-486d-aa1a-6d365c858ff5", + "parentUUID": "691cd292-6baa-4b1a-8fa9-8f2276b71392", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to add new order status group page", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Create order status n°2 in BO should go to add new order status group page", + "timedOut": false, + "duration": 754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_goToAddOrderStatusPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddOrderStatusPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.goToNewOrderStatusPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1353d0a1-7d2e-4356-882b-4df20edfe220", + "parentUUID": "691cd292-6baa-4b1a-8fa9-8f2276b71392", + "isHook": false, + "skipped": false + }, + { + "title": "should create order status and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Create order status n°2 in BO should create order status and check result", + "timedOut": false, + "duration": 1557, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_createOrderStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfLinesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createOrderStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setOrderStatus(page, orderStatusData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(statuses_1.default.successfulCreationMessage);\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterCreation).to.be.equal(numberOfOrderStatuses + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1ed9cda-f841-472b-9190-f643e6c7d96b", + "parentUUID": "691cd292-6baa-4b1a-8fa9-8f2276b71392", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1353d0a1-7d2e-4356-882b-4df20edfe220", + "c1ed9cda-f841-472b-9190-f643e6c7d96b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2311, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5f249ad5-21b0-4c07-aaf9-29e81e4a959f", + "title": "Delete order statuses with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/04_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/02_orderSettings/02_statuses/statuses/04_bulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Delete order statuses with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 380, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.filterTable(page, tableName, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.getNumberOfElementInGrid(page, tableName)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, statuses_1.default.getTextColumn(page, tableName, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dac810e0-53f6-4656-8c1e-1744244cb136", + "parentUUID": "5f249ad5-21b0-4c07-aaf9-29e81e4a959f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete order statuses with Bulk Actions and check result", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Delete order statuses with Bulk Actions should delete order statuses with Bulk Actions and check result", + "timedOut": false, + "duration": 1471, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_bulkDeleteStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.bulkDeleteOrderStatuses(page, tableName)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(statuses_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06ff5e3b-d4aa-4d2a-b649-1a6563552e7c", + "parentUUID": "5f249ad5-21b0-4c07-aaf9-29e81e4a959f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Order Settings - Statuses : Bulk actions in order statuses table Delete order statuses with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 329, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_orderSettings_statuses_statuses_bulkActions_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statuses_1.default.resetAndGetNumberOfLines(page, tableName)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.be.equal(numberOfOrderStatuses);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc773b22-b2f9-4561-a71a-3a3158c9eb34", + "parentUUID": "5f249ad5-21b0-4c07-aaf9-29e81e4a959f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dac810e0-53f6-4656-8c1e-1744244cb136", + "06ff5e3b-d4aa-4d2a-b649-1a6563552e7c", + "cc773b22-b2f9-4561-a71a-3a3158c9eb34" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2180, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "ae85b398-3a4c-4dd4-9e9a-ee536b0534ef", + "3b6010f8-f588-4219-b560-c8d705c845ee", + "b31e9a87-e072-4db0-8926-4e7d576087b0", + "32c160d8-bfa3-46d5-81c2-e8eb43e1ace0", + "33208ec7-ef75-40e0-a8c7-32e0a8aca89e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8654, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "de961a2d-dd05-471e-adbf-d4d17d291b4a", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 458, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e643c92-b44b-48df-8854-1e6f8f93c7ca", + "parentUUID": "de961a2d-dd05-471e-adbf-d4d17d291b4a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 50, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5af5da81-0f46-4d65-aa69-c3848e93c086", + "parentUUID": "de961a2d-dd05-471e-adbf-d4d17d291b4a", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "573885a3-7e6b-4d72-97ff-99e45e157811", + "parentUUID": "de961a2d-dd05-471e-adbf-d4d17d291b4a", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "title": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/01_catalogMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/01_catalogMode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable catalog mode\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode \"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable catalog mode\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36546f3b-2718-47ff-a77d-54b385f4d5e0", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable catalog mode\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode \"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable catalog mode\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9ff7e0c7-85b3-434a-be85-a81f8dd06a38", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should login in BO", + "timedOut": false, + "duration": 6870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b142ff6a-a2ed-4877-bd09-d630e89ea287", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 5381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_goToProductSettingPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dda1e60-f570-4334-8bac-41be9dc00c14", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should enable catalog mode", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should enable catalog mode", + "timedOut": false, + "duration": 3530, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_enableCatalogMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.actionCatalogMode, \"CatalogMode\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.changeCatalogModeStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "668e67c6-38ed-4d5b-9c54-d110b38290fb", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should disable show prices", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should disable show prices", + "timedOut": false, + "duration": 2857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_disableShowPrices\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(showPrices.args.action, \"ShowPrices\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setShowPricesStatus(page, showPrices.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39f1d8f6-493f-4553-90a5-be214951f4cf", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should view my shop", + "timedOut": false, + "duration": 2086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcad4df3-5be1-43f3-9b64-4b738ac3ca82", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price of the first product in the home page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should check the product price of the first product in the home page", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_checkPricesInHomePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPriceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPricesInHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isPriceVisible(page, 1)];\n case 2:\n isPriceVisible = _a.sent();\n (0, chai_1.expect)(isPriceVisible).to.equal(showPrices.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25b500ed-dadf-4611-853c-0f8d6cb636d0", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should go to the first product page", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_goToFirstProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38df67af-db3b-419d-b099-20fa0ffb50d1", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of product price and add to cart button", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should check the existence of product price and add to cart button", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_checkPrice&AddToCartButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPrice&AddToCartButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isPriceDisplayed(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(showPrices.args.isPriceExist);\n return [4 /*yield*/, product_1.default.isAddToCartButtonDisplayed(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(showPrices.args.isAddToCartExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cd2731d-ec1c-4fa2-8293-b1f71be7a1c2", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should close the page and go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_closePageAndBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b3ac3ae-2cff-42d6-b4f3-ef7c5460a7df", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should enable show prices", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should enable show prices", + "timedOut": false, + "duration": 1017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_enableShowPrices\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(showPrices.args.action, \"ShowPrices\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setShowPricesStatus(page, showPrices.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fb255dc-b52f-4644-8dc7-1f4d329b9b31", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should view my shop", + "timedOut": false, + "duration": 2034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "882144e8-5385-4987-9da9-8e8e7c865ea4", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price of the first product in the home page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should check the product price of the first product in the home page", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_checkPricesInHomePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPriceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPricesInHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isPriceVisible(page, 1)];\n case 2:\n isPriceVisible = _a.sent();\n (0, chai_1.expect)(isPriceVisible).to.equal(showPrices.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a501106e-51f3-40a5-b423-8c0ef50a984d", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should go to the first product page", + "timedOut": false, + "duration": 868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e5e494a-4fa1-4bf2-a409-24dd436eb8ab", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of product price and add to cart button", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should check the existence of product price and add to cart button", + "timedOut": false, + "duration": 1020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_checkPrice&AddToCartButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPrice&AddToCartButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isPriceDisplayed(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(showPrices.args.isPriceExist);\n return [4 /*yield*/, product_1.default.isAddToCartButtonDisplayed(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(showPrices.args.isAddToCartExist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7f5d32e-52b7-43e2-972a-f5ad48a927c7", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should close the page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_closePageAndBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3a87896-0646-46d5-a7a8-e106a25c5d7c", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should disable catalog mode", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should disable catalog mode", + "timedOut": false, + "duration": 3154, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_disableCatalogMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.actionCatalogMode, \"CatalogMode\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.changeCatalogModeStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "769e133d-a534-48a2-b714-3f17c846b4dc", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should view my shop", + "timedOut": false, + "duration": 2059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "808934e6-a0d1-4f57-9253-d6fc0a4690a6", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the product price is visible in the home page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should check that the product price is visible in the home page", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_checkPricesInHomePageVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPriceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPricesInHomePageVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isPriceVisible(page, 1)];\n case 2:\n isPriceVisible = _a.sent();\n (0, chai_1.expect)(isPriceVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd2e1ef1-58a2-424c-8ec8-821c25d45858", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should go to the first product page", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_goToFirstProductPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstProductPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1667dede-2683-4a57-8566-e02ab191bf06", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of product price and add to cart button", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should check the existence of product price and add to cart button", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_checkPrice&AddToCartButtonVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPrice&AddToCartButtonVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isPriceDisplayed(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, product_1.default.isAddToCartButtonDisplayed(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ead35150-9358-4a70-9b1b-c9f9a7f9e5f1", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable catalog mode should close the page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_catalogMode_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7211d2b-0535-453c-bb0b-b49d70168369", + "parentUUID": "48b5ba7d-fd62-4a9b-a719-806eeda68307", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b142ff6a-a2ed-4877-bd09-d630e89ea287", + "9dda1e60-f570-4334-8bac-41be9dc00c14", + "668e67c6-38ed-4d5b-9c54-d110b38290fb", + "39f1d8f6-493f-4553-90a5-be214951f4cf", + "dcad4df3-5be1-43f3-9b64-4b738ac3ca82", + "25b500ed-dadf-4611-853c-0f8d6cb636d0", + "38df67af-db3b-419d-b099-20fa0ffb50d1", + "1cd2731d-ec1c-4fa2-8293-b1f71be7a1c2", + "2b3ac3ae-2cff-42d6-b4f3-ef7c5460a7df", + "2fb255dc-b52f-4644-8dc7-1f4d329b9b31", + "882144e8-5385-4987-9da9-8e8e7c865ea4", + "a501106e-51f3-40a5-b423-8c0ef50a984d", + "0e5e494a-4fa1-4bf2-a409-24dd436eb8ab", + "c7f5d32e-52b7-43e2-972a-f5ad48a927c7", + "e3a87896-0646-46d5-a7a8-e106a25c5d7c", + "769e133d-a534-48a2-b714-3f17c846b4dc", + "808934e6-a0d1-4f57-9253-d6fc0a4690a6", + "bd2e1ef1-58a2-424c-8ec8-821c25d45858", + "1667dede-2683-4a57-8566-e02ab191bf06", + "ead35150-9358-4a70-9b1b-c9f9a7f9e5f1", + "d7211d2b-0535-453c-bb0b-b49d70168369" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 35744, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "title": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/02_newDaysNumber.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/02_newDaysNumber.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new'\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' \"before all\" hook in \"BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new'\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5d5f49d-f1a2-48ad-b3f2-2775cb2a0d54", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new'\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' \"after all\" hook in \"BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new'\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dbc9bd93-eb0f-485a-a280-d5ec1a221c13", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should login in BO", + "timedOut": false, + "duration": 2038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "549097f0-314a-4f3d-a0ae-b5d4048d2047", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5966b6f1-c072-4033-8ecc-7840248c17b6", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should update Number of days to 0", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should update Number of days to 0", + "timedOut": false, + "duration": 988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_updateNumberOfDaysTo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateNumberOfDaysTo\".concat(test.args.value), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.updateNumberOfDays(page, test.args.value)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7d7cea3-c458-44ee-bf4e-ca50dac16ba2", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should view my shop", + "timedOut": false, + "duration": 1980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_viewMyShopNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.args.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52ea3389-918c-4327-b296-ed8201230f2e", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the new flag in the product miniature in FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should check the new flag in the product miniature in FO", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_checkIfNewFlagIsNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNewFlagVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIfNewFlagIs\".concat(test.args.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isNewFlagVisible(page, 1)];\n case 2:\n isNewFlagVisible = _a.sent();\n (0, chai_1.expect)(isNewFlagVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33aece12-d331-47c0-ac96-68aa617b407c", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should close the page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_closePageAndBackToBONotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(test.args.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6c41196-99c8-4c38-b5f0-7380700f6f19", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should update Number of days to 20", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should update Number of days to 20", + "timedOut": false, + "duration": 959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_updateNumberOfDaysTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateNumberOfDaysTo\".concat(test.args.value), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.updateNumberOfDays(page, test.args.value)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc158a99-c9e6-493b-ae1c-78fd160f94cb", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should view my shop", + "timedOut": false, + "duration": 2029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_viewMyShopVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.args.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d85472e5-8dda-4a2f-9995-e7d48d2af127", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should check the new flag in the product miniature in FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should check the new flag in the product miniature in FO", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_checkIfNewFlagIsVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNewFlagVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIfNewFlagIs\".concat(test.args.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isNewFlagVisible(page, 1)];\n case 2:\n isNewFlagVisible = _a.sent();\n (0, chai_1.expect)(isNewFlagVisible).to.be.equal(test.args.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d679f590-758d-4683-bec6-068b3b05a608", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update Number of days for which the product is considered 'new' should close the page and go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_newDaysNumber_closePageAndBackToBOVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(test.args.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fd532b0-de38-418f-a417-d5d7a050cedd", + "parentUUID": "a7cb0feb-b3e3-48d1-96fa-7cccd9d1505d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "549097f0-314a-4f3d-a0ae-b5d4048d2047", + "5966b6f1-c072-4033-8ecc-7840248c17b6", + "b7d7cea3-c458-44ee-bf4e-ca50dac16ba2", + "52ea3389-918c-4327-b296-ed8201230f2e", + "33aece12-d331-47c0-ac96-68aa617b407c", + "f6c41196-99c8-4c38-b5f0-7380700f6f19", + "dc158a99-c9e6-493b-ae1c-78fd160f94cb", + "d85472e5-8dda-4a2f-9995-e7d48d2af127", + "d679f590-758d-4683-bec6-068b3b05a608", + "5fd532b0-de38-418f-a417-d5d7a050cedd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13924, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ce959017-9bf5-4c5a-9398-b653da3e7e9d", + "title": "BO - Shop Parameters - Product Settings : Update max size of short description", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/03_maxSizeShortDescription.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/03_maxSizeShortDescription.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Update max size of short description\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description \"before all\" hook in \"BO - Shop Parameters - Product Settings : Update max size of short description\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9caf2b5-797b-41cc-8f4d-948c7dd9f294", + "parentUUID": "ce959017-9bf5-4c5a-9398-b653da3e7e9d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Update max size of short description\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description \"after all\" hook in \"BO - Shop Parameters - Product Settings : Update max size of short description\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0d5a7f58-4fd1-4c9b-845a-b8d0a8dafa19", + "parentUUID": "ce959017-9bf5-4c5a-9398-b653da3e7e9d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c202edac-598f-4947-8466-66b2444abcad", + "title": "Update max size of short description", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/03_maxSizeShortDescription.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/03_maxSizeShortDescription.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should login in BO", + "timedOut": false, + "duration": 1986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6796bc5a-1e4b-4912-ba82-8d072a667992", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_goToProductSettingsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bcc6912-96d3-408b-85e2-7532a353e017", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should update max size of short description to 5", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should update max size of short description to 5", + "timedOut": false, + "duration": 1020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_updateMaxSizeSummaryValue0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateMaxSizeSummaryValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.UpdateMaxSizeOfSummary(page, test.args.descriptionSize)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25553afa-e5c5-4deb-8e92-ec2e26941376", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_goToCatalogProductsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCatalogProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e8b5461-42ad-492f-bb9b-8f83762eef53", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should click on new product button and go to new product page", + "timedOut": false, + "duration": 1147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_clickOnNewProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25d948c8-945c-4407-bf29-11e102a6950b", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should create a product with a summary more than 5 characters\n and check the error message", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should create a product with a summary more than 5 characters\n and check the error message", + "timedOut": false, + "duration": 3447, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_testSummarySize0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var errorMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"testSummarySize\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, descriptionTab_1.default.setProductDescription(page, productData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getErrorMessageWhenSummaryIsTooLong(page)];\n case 3:\n errorMessage = _a.sent();\n (0, chai_1.expect)(errorMessage).to.contains(add_1.default.errorMessageWhenSummaryTooLong(maxSummarySizeValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71cf03b9-13bf-4111-8a01-a1a6c8753d24", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_goToProductSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa3b3661-9ae1-4b76-b912-b0318ede22c1", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should update max size of short description to 800", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should update max size of short description to 800", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_updateMaxSizeSummaryValue1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateMaxSizeSummaryValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.UpdateMaxSizeOfSummary(page, test.args.descriptionSize)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a37fdaf3-d76c-41b1-96ca-eca1d4f57788", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_goToCatalogProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCatalogProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1718db44-2620-486a-988c-5b6fe86de738", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should click on new product button and go to new product page", + "timedOut": false, + "duration": 1135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_clickOnNewProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84c52ab4-9232-4e71-81b7-517d445bcc47", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should create a product with a summary less than 800 characters", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should create a product with a summary less than 800 characters", + "timedOut": false, + "duration": 5099, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_testSummarySize1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"testSummarySize\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "968aab11-1ba3-4661-9d78-314cbd64451f", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Shop Parameters - Product Settings : Update max size of short description Update max size of short description should delete product", + "timedOut": false, + "duration": 1628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_maxSizeShortDescription_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var testResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n testResult = _a.sent();\n (0, chai_1.expect)(testResult).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6f1c321-0da3-403a-9e08-01c69bb590d6", + "parentUUID": "c202edac-598f-4947-8466-66b2444abcad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6796bc5a-1e4b-4912-ba82-8d072a667992", + "1bcc6912-96d3-408b-85e2-7532a353e017", + "25553afa-e5c5-4deb-8e92-ec2e26941376", + "8e8b5461-42ad-492f-bb9b-8f83762eef53", + "25d948c8-945c-4407-bf29-11e102a6950b", + "71cf03b9-13bf-4111-8a01-a1a6c8753d24", + "fa3b3661-9ae1-4b76-b912-b0318ede22c1", + "a37fdaf3-d76c-41b1-96ca-eca1d4f57788", + "1718db44-2620-486a-988c-5b6fe86de738", + "84c52ab4-9232-4e71-81b7-517d445bcc47", + "968aab11-1ba3-4661-9d78-314cbd64451f", + "a6f1c321-0da3-403a-9e08-01c69bb590d6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 33661, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6033bb3d-f4cd-495f-9844-e832913caf18", + "title": "BO - Shop Parameters - Product Settings : Choose quantity discount based on", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/04_quantityDiscountsBasedOn.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/04_quantityDiscountsBasedOn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Choose quantity discount based on\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on \"before all\" hook in \"BO - Shop Parameters - Product Settings : Choose quantity discount based on\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "383f7e0b-03b1-4f79-92ed-02750da5885b", + "parentUUID": "6033bb3d-f4cd-495f-9844-e832913caf18", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Choose quantity discount based on\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on \"after all\" hook in \"BO - Shop Parameters - Product Settings : Choose quantity discount based on\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9ae54439-819a-4e16-b777-daa2fba029cc", + "parentUUID": "6033bb3d-f4cd-495f-9844-e832913caf18", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "title": "Choose quantity discount based on", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/04_quantityDiscountsBasedOn.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/04_quantityDiscountsBasedOn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should login in BO", + "timedOut": false, + "duration": 1991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d3413a0-6711-499d-b64d-a889e5cbbe27", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_goToProductSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c73ff0d1-51b9-4d16-83a2-e6d71212050e", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should choose quantity discounts based on 'Products'", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should choose quantity discounts based on 'Products'", + "timedOut": false, + "duration": 935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_chooseQuantityDiscountsBasedOnProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseQuantityDiscountsBasedOnProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.chooseQuantityDiscountsBasedOn(page, 'Products')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f21124f1-e00f-4f5c-88d3-b912ebc7207d", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9be59a9-da8e-4885-8a85-75b9d4ecbaff", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should reset all filters", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_resetFilterProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a189f5bb-00fc-4efd-9718-fd81b8edb308", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should click on new product button and go to new product page", + "timedOut": false, + "duration": 1147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_clickOnNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, productWithCombinations.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b85a783-e21e-41db-97e9-4fd83ac3eeda", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should create product with combinations", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should create product with combinations", + "timedOut": false, + "duration": 5418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_createProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productWithCombinations)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70d61251-fdfc-48a8-91d9-962958e91f13", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should create combinations", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should create combinations", + "timedOut": false, + "duration": 2579, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_createCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage, successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setProductAttributes(page, productWithCombinations.attributes)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(combinationsTab_1.default.generateCombinationsMessage(2));\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulGenerateCombinationsMessage(2));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d27d0033-194a-45d6-9126-9da4432cc94f", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should edit the quantity", + "timedOut": false, + "duration": 4390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_editQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.editCombinationRowQuantity(page, 1, 5)];\n case 2:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.editCombinationRowQuantity(page, 2, 5)];\n case 3:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.saveCombinationsForm(page)];\n case 4:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e030c64-0501-42fc-8229-1883dbf6148c", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should add specific price", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should add specific price", + "timedOut": false, + "duration": 2105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_addSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, productWithCombinations.specificPrice)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0656ab3-2e5e-46ec-9757-f9eb0edaa704", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should save the product", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should save the product", + "timedOut": false, + "duration": 1835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_saveProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'saveProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 2:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cae1e77b-d2f5-4657-bb1d-96d7873cacf2", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product and check price ATI in FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should preview product and check price ATI in FO", + "timedOut": false, + "duration": 11223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_previewProductAndCheckPriceATI\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceATI;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProductAndCheckPriceATI', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, firstAttributeToChoose, false)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1, secondAttributeToChoose, true)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 5:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(firstCartTotalATI);\n return [4 /*yield*/, cart_1.cartPage.closePage(browserContext, page, 0)];\n case 6:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3de8483-a44e-4322-8177-11e5e897cf58", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3636, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_goToProductSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdaf7f2a-4db0-4bae-b25f-333822cadfff", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should choose quantity discounts based on 'Combinations'", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should choose quantity discounts based on 'Combinations'", + "timedOut": false, + "duration": 984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_chooseQuantityDiscountsBasedOnCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseQuantityDiscountsBasedOnCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.chooseQuantityDiscountsBasedOn(page, 'Combinations')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c091196-745f-45bd-8e40-ddfeb4cd7528", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop and check ATI price in FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should view my shop and check ATI price in FO", + "timedOut": false, + "duration": 4245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_ViewMyShopAndCheckPriceATI\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var priceATI;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ViewMyShopAndCheckPriceATI', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.goToCartPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 4:\n priceATI = _a.sent();\n (0, chai_1.expect)(priceATI).to.equal(secondCartTotalATI);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17a48020-a992-4b72-bfc3-eb29b978f1d3", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should close the page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_closePageAndBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closePageAndBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5351436-269a-425c-b264-2c780f829c87", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_goToProductsPageToDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11ac037d-9509-454b-97af-1ae049db0e3e", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by the created product and delete product from dropDown menu", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should filter list by the created product and delete product from dropDown menu", + "timedOut": false, + "duration": 4245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, textMessage, numberOfProductsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'reference', productWithCombinations.reference, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 4:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 5:\n numberOfProductsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterDelete).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "088c7088-c09b-45e7-a395-8c1d00940864", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Product Settings : Choose quantity discount based on Choose quantity discount based on should reset all filters", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_quantityDiscountsBasedOn_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a939c0e-1325-43f8-8d5e-5d3fbe48a9ae", + "parentUUID": "bc2d6d39-bef2-4b89-828e-e2afded324b9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4d3413a0-6711-499d-b64d-a889e5cbbe27", + "c73ff0d1-51b9-4d16-83a2-e6d71212050e", + "f21124f1-e00f-4f5c-88d3-b912ebc7207d", + "f9be59a9-da8e-4885-8a85-75b9d4ecbaff", + "a189f5bb-00fc-4efd-9718-fd81b8edb308", + "8b85a783-e21e-41db-97e9-4fd83ac3eeda", + "70d61251-fdfc-48a8-91d9-962958e91f13", + "d27d0033-194a-45d6-9126-9da4432cc94f", + "8e030c64-0501-42fc-8229-1883dbf6148c", + "e0656ab3-2e5e-46ec-9757-f9eb0edaa704", + "cae1e77b-d2f5-4657-bb1d-96d7873cacf2", + "d3de8483-a44e-4322-8177-11e5e897cf58", + "cdaf7f2a-4db0-4bae-b25f-333822cadfff", + "5c091196-745f-45bd-8e40-ddfeb4cd7528", + "17a48020-a992-4b72-bfc3-eb29b978f1d3", + "b5351436-269a-425c-b264-2c780f829c87", + "11ac037d-9509-454b-97af-1ae049db0e3e", + "088c7088-c09b-45e7-a395-8c1d00940864", + "4a939c0e-1325-43f8-8d5e-5d3fbe48a9ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 58260, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "29abd80b-7455-431f-b56a-13fb47ac7657", + "title": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/05_forceUpdateFriendlyURL.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/05_forceUpdateFriendlyURL.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL \"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08522824-6556-4c1b-a0d6-1b7f319bbbe7", + "parentUUID": "29abd80b-7455-431f-b56a-13fb47ac7657", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL \"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "657b8128-6b04-45e1-8f7e-a44faeabbc60", + "parentUUID": "29abd80b-7455-431f-b56a-13fb47ac7657", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "title": "Enable/Disable force update friendly URL", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/05_forceUpdateFriendlyURL.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/05_forceUpdateFriendlyURL.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should login in BO", + "timedOut": false, + "duration": 1940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e149b03e-cd22-48e2-b5ac-d276bb8be829", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22eb670e-c0fe-44d4-b66b-56fcec2a2a32", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 226, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fbd8bd7-80ae-4fd9-aad2-0631ec18d8bd", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should choose 'Standard product'", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "005f7eaa-40cb-4779-b50f-1b51a9f3053e", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should go to new product page", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a90c25af-3619-4d05-96e4-fb45e7a28f40", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should create standard product", + "timedOut": false, + "duration": 5027, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a4c9467-6ba7-41ed-9867-910d7dc6be89", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3591, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_goToProductSettingsPageTo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPageTo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a182c1b-577f-4837-b52c-48b41ab5b0f4", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should enable force update friendly URL", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should enable force update friendly URL", + "timedOut": false, + "duration": 2888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_forceUpdateFriendlyURL0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"forceUpdateFriendlyURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setForceUpdateFriendlyURLStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5ddff7a-8729-453b-a693-04bfc20677d8", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_goToProductsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cc9669c-9f87-42af-b0a0-527ff429e314", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should go to the created product page", + "timedOut": false, + "duration": 1183, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_goToProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1ebf26f-202c-4721-9633-3d8f5e1a8353", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should update the product name and check the friendly URL", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should update the product name and check the friendly URL", + "timedOut": false, + "duration": 3872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_UpdateProductAndCheckFriendlyURL0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, friendlyURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"UpdateProductAndCheckFriendlyURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.args.editProduct)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'link_rewrite', '1')];\n case 3:\n friendlyURL = _a.sent();\n (0, chai_1.expect)(friendlyURL).to.equal(test.args.friendlyURL.toLowerCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00e1f9c0-0464-40fd-864f-fccce71123ba", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3630, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_goToProductSettingsPageTo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPageTo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20b798d8-d0b4-4855-8f1d-c79e4807edb2", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should disable force update friendly URL", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should disable force update friendly URL", + "timedOut": false, + "duration": 2820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_forceUpdateFriendlyURL1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"forceUpdateFriendlyURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setForceUpdateFriendlyURLStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da0a6587-ebe0-4ba4-b2aa-afd954c6f7b0", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_goToProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4229aaee-56a3-4f99-bb8f-e1ac3228a95c", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should go to the created product page", + "timedOut": false, + "duration": 1377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_goToProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbb633c9-630a-47f8-b2bf-7b185e57810b", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should update the product name and check the friendly URL", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should update the product name and check the friendly URL", + "timedOut": false, + "duration": 3962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_UpdateProductAndCheckFriendlyURL1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage, friendlyURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"UpdateProductAndCheckFriendlyURL\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.args.editProduct)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'link_rewrite', '1')];\n case 3:\n friendlyURL = _a.sent();\n (0, chai_1.expect)(friendlyURL).to.equal(test.args.friendlyURL.toLowerCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "506f7a97-561b-4fc5-be1b-d9d598ada94f", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable force update friendly URL Enable/Disable force update friendly URL should delete product", + "timedOut": false, + "duration": 1508, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_forceUpdateFriendlyURL_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var testResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n testResult = _a.sent();\n (0, chai_1.expect)(testResult).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee524d27-f8d4-464c-b63a-c1f186e6a778", + "parentUUID": "751d09e8-d63d-4216-bd50-44ddcf3155ed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e149b03e-cd22-48e2-b5ac-d276bb8be829", + "22eb670e-c0fe-44d4-b66b-56fcec2a2a32", + "4fbd8bd7-80ae-4fd9-aad2-0631ec18d8bd", + "005f7eaa-40cb-4779-b50f-1b51a9f3053e", + "a90c25af-3619-4d05-96e4-fb45e7a28f40", + "2a4c9467-6ba7-41ed-9867-910d7dc6be89", + "1a182c1b-577f-4837-b52c-48b41ab5b0f4", + "f5ddff7a-8729-453b-a693-04bfc20677d8", + "2cc9669c-9f87-42af-b0a0-527ff429e314", + "a1ebf26f-202c-4721-9633-3d8f5e1a8353", + "00e1f9c0-0464-40fd-864f-fccce71123ba", + "20b798d8-d0b4-4855-8f1d-c79e4807edb2", + "da0a6587-ebe0-4ba4-b2aa-afd954c6f7b0", + "4229aaee-56a3-4f99-bb8f-e1ac3228a95c", + "dbb633c9-630a-47f8-b2bf-7b185e57810b", + "506f7a97-561b-4fc5-be1b-d9d598ada94f", + "ee524d27-f8d4-464c-b63a-c1f186e6a778" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 45420, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ce58828f-f1e2-4894-9f8c-0b5991093184", + "title": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/06_defaultActivationStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/06_defaultActivationStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable default activation status\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status \"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable default activation status\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99d24eee-ee24-4435-a489-9ddae3c0d163", + "parentUUID": "ce58828f-f1e2-4894-9f8c-0b5991093184", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable default activation status\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status \"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable default activation status\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "16114632-a437-4463-9f4e-22444d43682a", + "parentUUID": "ce58828f-f1e2-4894-9f8c-0b5991093184", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c9561533-111a-44c1-945d-9be8f214e28b", + "title": "Enable/Disable default activation status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/06_defaultActivationStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/01_productsGeneral/06_defaultActivationStatus.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should login in BO", + "timedOut": false, + "duration": 2018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "433c8790-6010-4fb0-b850-a62c68a0b928", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_goToProductSettingsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5e02343-3fb1-44ad-90ef-4c5d5aee2987", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should enable default activation status", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should enable default activation status", + "timedOut": false, + "duration": 2814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_enableDefaultActivationStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DefaultActivationStatus\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultActivationStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c38f7a4c-a42f-46eb-aff0-f61f4985e47f", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_goToProductsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "735755dc-bce5-40fe-9f55-86dfa0458d7b", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 220, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_clickOnNewProductButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5309615-7c9d-4bc3-a406-497db8320fc6", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should select product type and create new product", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should select product type and create new product", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_createProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, 'standard')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65d1389b-be51-4384-85d1-2e8446bcb26c", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the new product online status", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should check the new product online status", + "timedOut": false, + "duration": 1353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_goToAddProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var online;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductStatus(page)];\n case 2:\n online = _a.sent();\n (0, chai_1.expect)(online).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d35ec634-cb0c-45df-b969-afa1b3d75948", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4598, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_goToProductSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1137bde-82fe-4060-9df0-44b2502e8105", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should disable default activation status", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should disable default activation status", + "timedOut": false, + "duration": 2802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_disableDefaultActivationStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DefaultActivationStatus\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultActivationStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba1c5474-5f65-4e46-8280-efacc6d10260", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_goToProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "559f4d6a-b563-4eda-870c-55d826d4a230", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_clickOnNewProductButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b993e54-40ef-4773-b4be-b108f0b32b59", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should select product type and create new product", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should select product type and create new product", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_createProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, 'standard')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec2cd7ce-70c4-4ceb-9e42-68a1db16789e", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the new product online status", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable default activation status Enable/Disable default activation status should check the new product online status", + "timedOut": false, + "duration": 1377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsGeneral_defaultActivationStatus_goToAddProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var online;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getProductStatus(page)];\n case 2:\n online = _a.sent();\n (0, chai_1.expect)(online).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43ac5ed2-a774-4ddb-a331-53062dbde34d", + "parentUUID": "c9561533-111a-44c1-945d-9be8f214e28b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "433c8790-6010-4fb0-b850-a62c68a0b928", + "b5e02343-3fb1-44ad-90ef-4c5d5aee2987", + "c38f7a4c-a42f-46eb-aff0-f61f4985e47f", + "735755dc-bce5-40fe-9f55-86dfa0458d7b", + "c5309615-7c9d-4bc3-a406-497db8320fc6", + "65d1389b-be51-4384-85d1-2e8446bcb26c", + "d35ec634-cb0c-45df-b969-afa1b3d75948", + "b1137bde-82fe-4060-9df0-44b2502e8105", + "ba1c5474-5f65-4e46-8280-efacc6d10260", + "559f4d6a-b563-4eda-870c-55d826d4a230", + "2b993e54-40ef-4773-b4be-b108f0b32b59", + "ec2cd7ce-70c4-4ceb-9e42-68a1db16789e", + "43ac5ed2-a774-4ddb-a331-53062dbde34d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29617, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "title": "BO - Shop Parameters - Product Settings : Display available quantities on the product page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/01_displayAvailableQuantities.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/01_displayAvailableQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Display available quantities on the product page\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page \"before all\" hook in \"BO - Shop Parameters - Product Settings : Display available quantities on the product page\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9fda90c-f6c9-473c-abc4-94afac277e82", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Display available quantities on the product page\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page \"after all\" hook in \"BO - Shop Parameters - Product Settings : Display available quantities on the product page\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a61918d3-7f4a-4070-99f4-fff8da549ec1", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should login in BO", + "timedOut": false, + "duration": 1988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ff47e85-4cbc-4b8e-9b82-f9ef66a4fe20", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25276e1e-810d-4c27-85cb-9f1ff75ccc6b", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Display available quantities on the product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should disable Display available quantities on the product page", + "timedOut": false, + "duration": 1935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_disableDisplayAvailableQuantities\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayAvailableQuantities\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayAvailableQuantitiesStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db822007-c8de-44aa-9d55-1653ef21e2a1", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should view my shop", + "timedOut": false, + "duration": 1333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f30360d2-93e6-4846-968f-60e2f0ceefee", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should go to the first product page", + "timedOut": false, + "duration": 870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_goToFirstProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d761485d-f23d-487e-aef8-3400fd652d91", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product quantity on the product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should check the product quantity on the product page", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_checkQuantity0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityIsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkQuantity\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isQuantityDisplayed(page)];\n case 2:\n quantityIsVisible = _a.sent();\n (0, chai_1.expect)(quantityIsVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "262db3b0-8e1e-45c7-b5ee-d402d204b589", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should close the page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_closePageAndBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "590b6f3f-ac54-4ba9-a287-34db5fdc682d", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Display available quantities on the product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should enable Display available quantities on the product page", + "timedOut": false, + "duration": 983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_enableDisplayAvailableQuantities\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayAvailableQuantities\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayAvailableQuantitiesStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75f56ba5-f9d8-4f15-bc70-cd250d27e30e", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should view my shop", + "timedOut": false, + "duration": 1316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b9928d1-7319-4e13-92f8-302b75a80f92", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should go to the first product page", + "timedOut": false, + "duration": 869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecca918d-052e-469f-a663-d015da8fb5d6", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product quantity on the product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should check the product quantity on the product page", + "timedOut": false, + "duration": 242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_checkQuantity1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantityIsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkQuantity\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isQuantityDisplayed(page)];\n case 2:\n quantityIsVisible = _a.sent();\n (0, chai_1.expect)(quantityIsVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96c97175-e951-41dd-b450-da16da2a57b9", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display available quantities on the product page should close the page and go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAvailableQuantities_closePageAndBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8f8255f-0d4c-48d4-b9d8-097a4fa3bede", + "parentUUID": "e6e7e422-e184-4971-b888-d9d7f94517d9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5ff47e85-4cbc-4b8e-9b82-f9ef66a4fe20", + "25276e1e-810d-4c27-85cb-9f1ff75ccc6b", + "db822007-c8de-44aa-9d55-1653ef21e2a1", + "f30360d2-93e6-4846-968f-60e2f0ceefee", + "d761485d-f23d-487e-aef8-3400fd652d91", + "262db3b0-8e1e-45c7-b5ee-d402d204b589", + "590b6f3f-ac54-4ba9-a287-34db5fdc682d", + "75f56ba5-f9d8-4f15-bc70-cd250d27e30e", + "2b9928d1-7319-4e13-92f8-302b75a80f92", + "ecca918d-052e-469f-a663-d015da8fb5d6", + "96c97175-e951-41dd-b450-da16da2a57b9", + "f8f8255f-0d4c-48d4-b9d8-097a4fa3bede" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15481, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "943c27e8-39f2-49d9-962b-ebb401bbae32", + "title": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/02_displayAddToCartButton.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/02_displayAddToCartButton.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes \"before all\" hook in \"BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9613c82b-0316-4e65-9c8e-4181474cd2c1", + "parentUUID": "943c27e8-39f2-49d9-962b-ebb401bbae32", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes \"after all\" hook in \"BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "97dbaddd-6453-46ab-9f6e-b557efefb52f", + "parentUUID": "943c27e8-39f2-49d9-962b-ebb401bbae32", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "210856c1-07cb-48f9-be47-8613fcf64a1b", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/02_displayAddToCartButton.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/02_displayAddToCartButton.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b6590f7-09c0-4470-977a-54ba45297fae", + "parentUUID": "210856c1-07cb-48f9-be47-8613fcf64a1b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6c948cfa-1ddb-4e7f-a83a-1c1b71a94bde", + "parentUUID": "210856c1-07cb-48f9-be47-8613fcf64a1b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b758ca3f-949b-4283-b7bd-56b5e287fa9c", + "parentUUID": "210856c1-07cb-48f9-be47-8613fcf64a1b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton-preTest_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "552b79ee-c33b-40dc-8a1f-2a28ed95bfd4", + "parentUUID": "210856c1-07cb-48f9-be47-8613fcf64a1b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton-preTest_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "751abdd2-861d-44b9-8068-d0424b63038f", + "parentUUID": "210856c1-07cb-48f9-be47-8613fcf64a1b", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 2113, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton-preTest_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4da8bb6-a405-4cc8-8a52-7b8ba8a6e5e0", + "parentUUID": "210856c1-07cb-48f9-be47-8613fcf64a1b", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 1044, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton-preTest_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6eebb6e4-f59e-4457-ac59-12d63da9c9b0", + "parentUUID": "210856c1-07cb-48f9-be47-8613fcf64a1b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b758ca3f-949b-4283-b7bd-56b5e287fa9c", + "552b79ee-c33b-40dc-8a1f-2a28ed95bfd4", + "751abdd2-861d-44b9-8068-d0424b63038f", + "a4da8bb6-a405-4cc8-8a52-7b8ba8a6e5e0", + "6eebb6e4-f59e-4457-ac59-12d63da9c9b0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11306, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0844ac62-826e-4856-b729-6ca9fa805545", + "title": "Display add to cart button when a product has attributes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/02_displayAddToCartButton.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/02_displayAddToCartButton.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should login in BO", + "timedOut": false, + "duration": 1931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fdadb38-bf8c-4cc8-ae6f-4610dae81899", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44f75c5e-52c8-4c72-8109-eda289d5515b", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Add to cart button when product has attributes", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should disable Add to cart button when product has attributes", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_disableDisplayAddToCartButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayAddToCartButton\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayAddToCartButton(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53dde72e-6b60-48c3-9c18-09e9724769c7", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should view my shop", + "timedOut": false, + "duration": 6035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02b44d5d-3c2d-4bb6-8148-a143109d62da", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should check the add to cart button in the second popular product", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should check the add to cart button in the second popular product", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_checkAddToCartButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isAddToCartButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAddToCartButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.isAddToCartButtonVisible(page, 2)];\n case 2:\n isAddToCartButtonVisible = _a.sent();\n (0, chai_1.expect)(isAddToCartButtonVisible).to.eq(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92c25d28-e976-4509-927e-20850157f8a8", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the add to cart button in the sixth popular product is visible", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should check that the add to cart button in the sixth popular product is visible", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_checkAddToCartButton20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isAddToCartButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAddToCartButton2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.isAddToCartButtonVisible(page, 6)];\n case 2:\n isAddToCartButtonVisible = _a.sent();\n (0, chai_1.expect)(isAddToCartButtonVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc47148b-69d1-4470-af64-e948b9c13b40", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should close the page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_closePageAndBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95faf0dc-d5ef-4328-9976-66c61d2b414b", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Add to cart button when product has attributes", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should enable Add to cart button when product has attributes", + "timedOut": false, + "duration": 930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_enableDisplayAddToCartButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayAddToCartButton\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayAddToCartButton(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d96a051a-03fd-4084-a2f1-34fab5f5be39", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should view my shop", + "timedOut": false, + "duration": 1309, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeac7206-76f7-4e59-b4ce-aca0b5d4b4aa", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should check the add to cart button in the second popular product", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should check the add to cart button in the second popular product", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_checkAddToCartButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isAddToCartButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAddToCartButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.isAddToCartButtonVisible(page, 2)];\n case 2:\n isAddToCartButtonVisible = _a.sent();\n (0, chai_1.expect)(isAddToCartButtonVisible).to.eq(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08460faf-41f0-4b30-a1c5-49ed1b6226fa", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the add to cart button in the sixth popular product is visible", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should check that the add to cart button in the sixth popular product is visible", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_checkAddToCartButton21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isAddToCartButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAddToCartButton2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.isAddToCartButtonVisible(page, 6)];\n case 2:\n isAddToCartButtonVisible = _a.sent();\n (0, chai_1.expect)(isAddToCartButtonVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f09c8d09-331f-411e-ac70-b3ab5f283101", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Display add to cart button when a product has attributes should close the page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton_closePageAndBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5e59f85-dc21-44e2-bcb1-ad730a848b1e", + "parentUUID": "0844ac62-826e-4856-b729-6ca9fa805545", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7fdadb38-bf8c-4cc8-ae6f-4610dae81899", + "44f75c5e-52c8-4c72-8109-eda289d5515b", + "53dde72e-6b60-48c3-9c18-09e9724769c7", + "02b44d5d-3c2d-4bb6-8148-a143109d62da", + "92c25d28-e976-4509-927e-20850157f8a8", + "cc47148b-69d1-4470-af64-e948b9c13b40", + "95faf0dc-d5ef-4328-9976-66c61d2b414b", + "d96a051a-03fd-4084-a2f1-34fab5f5be39", + "aeac7206-76f7-4e59-b4ce-aca0b5d4b4aa", + "08460faf-41f0-4b30-a1c5-49ed1b6226fa", + "f09c8d09-331f-411e-ac70-b3ab5f283101", + "e5e59f85-dc21-44e2-bcb1-ad730a848b1e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17055, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ad0d0c7f-676c-430b-8c16-83553d5a7093", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/02_displayAddToCartButton.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/02_displayAddToCartButton.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59e53e31-5e31-4194-8fdf-d81bf3d73055", + "parentUUID": "ad0d0c7f-676c-430b-8c16-83553d5a7093", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "39fc05b4-2602-4e32-9fb9-e44d7641ad17", + "parentUUID": "ad0d0c7f-676c-430b-8c16-83553d5a7093", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f308be1e-08af-471f-9815-224e950aeaee", + "parentUUID": "ad0d0c7f-676c-430b-8c16-83553d5a7093", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton-postTest_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef366bf0-4330-4013-8f59-d96a256c2ab9", + "parentUUID": "ad0d0c7f-676c-430b-8c16-83553d5a7093", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton-postTest_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ebf91bb-27c2-4700-82aa-4943d581cd6d", + "parentUUID": "ad0d0c7f-676c-430b-8c16-83553d5a7093", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "BO - Shop Parameters - Product Settings : Display add to cart button when a product has attributes Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayAddToCartButton-postTest_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70748325-2c35-4114-87f5-aa52c4711554", + "parentUUID": "ad0d0c7f-676c-430b-8c16-83553d5a7093", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f308be1e-08af-471f-9815-224e950aeaee", + "ef366bf0-4330-4013-8f59-d96a256c2ab9", + "1ebf91bb-27c2-4700-82aa-4943d581cd6d", + "70748325-2c35-4114-87f5-aa52c4711554" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8632, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "title": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/03_separatorOfAttributeAnchor.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/03_separatorOfAttributeAnchor.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links \"before all\" hook in \"BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f66ce48a-df0b-4265-88c0-5b6ecfbae6b0", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links \"after all\" hook in \"BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bf8d1fd2-0367-42f3-94da-2d98c7b50c86", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should login in BO", + "timedOut": false, + "duration": 1957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9761867-3237-4e66-91ad-df5c413972bb", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "481ba174-745b-4bbb-b272-abac91166638", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the separator option ','", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should choose the separator option ','", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_chooseOption_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseOption_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setSeparatorOfAttributeOnProductLink(page, test.args.option)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abbe4d08-efd3-41dd-9a59-f8f43a3c9de9", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should view my shop", + "timedOut": false, + "duration": 2018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "908fa3e1-b36c-4569-8534-270bfaf94bb5", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should search for the product and go to product page", + "timedOut": false, + "duration": 1674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_goToProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_1.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b64dbf56-cfdd-4823-bfd0-8ea09ac9fb11", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the attribute separator on the product links in FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should check the attribute separator on the product links in FO", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_checkAttributeSeparator_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAttributeSeparator_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductPageURL(page)];\n case 2:\n currentURL = _a.sent();\n (0, chai_1.expect)(currentURL).to.contains(test.args.attributesInProductLink);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "037cfb7a-9440-477c-b2cb-0c4ade3c3c98", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should close the page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_closePageAndBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92741605-4055-40a7-b778-70a140f57dfc", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the separator option '-'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should choose the separator option '-'", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_chooseOption_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"chooseOption_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setSeparatorOfAttributeOnProductLink(page, test.args.option)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f56b3d36-6bc4-4eb8-8c72-f55afc90a59f", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should view my shop", + "timedOut": false, + "duration": 2041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd822b7a-5b25-4475-99bc-780c873948f2", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should search for the product and go to product page", + "timedOut": false, + "duration": 1674, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_goToProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_1.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85e96943-16cf-4dfc-9aaa-e27b45fbb257", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the attribute separator on the product links in FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should check the attribute separator on the product links in FO", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_checkAttributeSeparator_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAttributeSeparator_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductPageURL(page)];\n case 2:\n currentURL = _a.sent();\n (0, chai_1.expect)(currentURL).to.contains(test.args.attributesInProductLink);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c433328b-bb33-4551-8089-ad192dc76642", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update separator of attribute anchor on the product links should close the page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_separatorOfAttributeAnchor_closePageAndBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f31aada1-a381-4050-a25a-687c52a75285", + "parentUUID": "633468fb-ac8e-4ea2-8100-61a46e86e6b2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c9761867-3237-4e66-91ad-df5c413972bb", + "481ba174-745b-4bbb-b272-abac91166638", + "abbe4d08-efd3-41dd-9a59-f8f43a3c9de9", + "908fa3e1-b36c-4569-8534-270bfaf94bb5", + "b64dbf56-cfdd-4823-bfd0-8ea09ac9fb11", + "037cfb7a-9440-477c-b2cb-0c4ade3c3c98", + "92741605-4055-40a7-b778-70a140f57dfc", + "f56b3d36-6bc4-4eb8-8c72-f55afc90a59f", + "bd822b7a-5b25-4475-99bc-780c873948f2", + "85e96943-16cf-4dfc-9aaa-e27b45fbb257", + "c433328b-bb33-4551-8089-ad192dc76642", + "f31aada1-a381-4050-a25a-687c52a75285" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15139, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "18395612-0498-4056-b4d7-fe1a06164c21", + "title": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/04_displayDiscountedPrice.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/02_productPage/04_displayDiscountedPrice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable display discounted price\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price \"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable display discounted price\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "059c9acd-097e-4142-9779-72210e7e5462", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable display discounted price\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price \"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable display discounted price\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1ea592ec-35d6-4359-aec8-fe5d79f3f02d", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should login in BO", + "timedOut": false, + "duration": 1995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75ed9b93-34fe-495e-8398-63b1b3cdb444", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6195d6d-e3e4-4bd1-b60c-8f7da5fbcd2b", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog Price Rules' tab", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go to 'Catalog Price Rules' tab", + "timedOut": false, + "duration": 887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goToCatalogPriceRulesTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPriceRulesTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToCatalogPriceRulesTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(catalogPriceRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fdc6374-f66b-4db2-916c-464ccce079a4", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should create new catalog price rule", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should create new catalog price rule", + "timedOut": false, + "duration": 2096, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_createCatalogPriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCatalogPriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.goToAddNewCatalogPriceRulePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [4 /*yield*/, add_1.default.setCatalogPriceRule(page, priceRuleData)];\n case 4:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(catalogPriceRules_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5468e48e-8406-4bd3-b308-113104c9e3a8", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e60e1ed5-7622-44d9-b9eb-e2d6a40e2910", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should disable display discounted price", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should disable display discounted price", + "timedOut": false, + "duration": 2770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_disableDisplayDiscountedPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayDiscountedPrice\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayDiscountedPriceStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c40ce95a-50f7-4882-9ee5-dcfa90dd7c9c", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should view my shop", + "timedOut": false, + "duration": 2046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93dcb91a-fdd0-495d-b622-20b71663a791", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go to first product page", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goToFirstProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c2d1511-b843-4bc1-871d-7700db0b6ee4", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the unit value", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should check the existence of the unit value", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_checkUnitValue0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var columnTitle, columnValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkUnitValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getDiscountColumnTitle(page)];\n case 2:\n columnTitle = _a.sent();\n (0, chai_1.expect)(columnTitle).to.equal(test.args.textColumnToCheck);\n return [4 /*yield*/, product_1.default.getDiscountValue(page)];\n case 3:\n columnValue = _a.sent();\n (0, chai_1.expect)(columnValue).to.equal(test.args.valueToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bb08e83-0b4c-4f6e-919c-6762f752df47", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb072717-2cb6-45e5-8d1f-27e537e8ad80", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should enable display discounted price", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should enable display discounted price", + "timedOut": false, + "duration": 2853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_enableDisplayDiscountedPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayDiscountedPrice\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayDiscountedPriceStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "429ca8dc-0b49-4cb7-82c5-a0ae6a99c79a", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should view my shop", + "timedOut": false, + "duration": 1999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97e4c5d9-b09e-414b-b215-b3499d39ba2b", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go to first product page", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goToFirstProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88d18bed-c3cb-41e5-838a-44a2a9d5d20f", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the unit value", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should check the existence of the unit value", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_checkUnitValue1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var columnTitle, columnValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkUnitValue\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getDiscountColumnTitle(page)];\n case 2:\n columnTitle = _a.sent();\n (0, chai_1.expect)(columnTitle).to.equal(test.args.textColumnToCheck);\n return [4 /*yield*/, product_1.default.getDiscountValue(page)];\n case 3:\n columnValue = _a.sent();\n (0, chai_1.expect)(columnValue).to.equal(test.args.valueToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2a72278-5d6d-4ad2-9ac8-86abfe5828e0", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24d1f631-71d3-4afc-9bbe-b2dee6a27e8a", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goToDiscountsPageToDeletePriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPageToDeletePriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6262e77f-a9c4-4f9c-a379-c873fbf7fe75", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog Price Rules' tab", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should go to 'Catalog Price Rules' tab", + "timedOut": false, + "duration": 854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_goToCatalogPriceRuleTabToDeletePriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPriceRuleTabToDeletePriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToCatalogPriceRulesTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(catalogPriceRules_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b0b5f2b-18ca-4c64-a625-71c9bb6df3a5", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + }, + { + "title": "should delete catalog price rule", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable display discounted price should delete catalog price rule", + "timedOut": false, + "duration": 1097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productPage_displayDiscountedPrice_deleteCatalogPriceRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCatalogPriceRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, catalogPriceRules_1.default.deleteCatalogPriceRule(page, priceRuleData.name)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.contains(catalogPriceRules_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08dfc2c9-e18e-49d0-b42e-79e9cdf00e68", + "parentUUID": "18395612-0498-4056-b4d7-fe1a06164c21", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75ed9b93-34fe-495e-8398-63b1b3cdb444", + "b6195d6d-e3e4-4bd1-b60c-8f7da5fbcd2b", + "4fdc6374-f66b-4db2-916c-464ccce079a4", + "5468e48e-8406-4bd3-b308-113104c9e3a8", + "e60e1ed5-7622-44d9-b9eb-e2d6a40e2910", + "c40ce95a-50f7-4882-9ee5-dcfa90dd7c9c", + "93dcb91a-fdd0-495d-b622-20b71663a791", + "8c2d1511-b843-4bc1-871d-7700db0b6ee4", + "5bb08e83-0b4c-4f6e-919c-6762f752df47", + "eb072717-2cb6-45e5-8d1f-27e537e8ad80", + "429ca8dc-0b49-4cb7-82c5-a0ae6a99c79a", + "97e4c5d9-b09e-414b-b215-b3499d39ba2b", + "88d18bed-c3cb-41e5-838a-44a2a9d5d20f", + "d2a72278-5d6d-4ad2-9ac8-86abfe5828e0", + "24d1f631-71d3-4afc-9bbe-b2dee6a27e8a", + "6262e77f-a9c4-4f9c-a379-c873fbf7fe75", + "0b0b5f2b-18ca-4c64-a625-71c9bb6df3a5", + "08dfc2c9-e18e-49d0-b42e-79e9cdf00e68" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 30615, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6f29b8bf-687b-4b9b-a3a6-ce4203a3358f", + "title": "BO - Shop Parameters - Product Settings : Enable/Disable stock management", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/01_enableStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/01_enableStockManagement.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable stock management\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management \"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable stock management\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee275ed6-87e9-4374-bb82-cf74c233e4ed", + "parentUUID": "6f29b8bf-687b-4b9b-a3a6-ce4203a3358f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable stock management\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management \"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable/Disable stock management\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0ad2c0f5-da8e-4346-ae15-7e990a1006dc", + "parentUUID": "6f29b8bf-687b-4b9b-a3a6-ce4203a3358f", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "title": "Enable/Disable stock management", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/01_enableStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/01_enableStockManagement.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should login in BO", + "timedOut": false, + "duration": 1945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80587fb8-d2e4-4772-b32c-cb682d4d92c9", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_goToProductSettingsPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d70b739-fb55-49c7-a703-c3922ba9f7d8", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should disable stock management", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should disable stock management", + "timedOut": false, + "duration": 2879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_disableStockManagement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"StockManagement\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setEnableStockManagementStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "712231bc-a197-4a89-a189-b633551226d3", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_goToProductsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14adc08d-a953-4d0c-bb1c-ce0ae471614b", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should click on new product button and go to new product page", + "timedOut": false, + "duration": 1151, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_clickOnNewProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, 'standard')];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3effed8-113b-4f0b-8be6-97de84475ba8", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of quantity input", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should check the existence of quantity input", + "timedOut": false, + "duration": 2388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_checkIsQuantityInputdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIsQuantityInput\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.isQuantityInputVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(test.args.isQuantityVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14b121f3-9872-49f2-8827-5ca3cdbbc6e6", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_goToProductSettingsPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04ed0883-e445-4e99-9231-965285649af2", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should enable stock management", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should enable stock management", + "timedOut": false, + "duration": 2887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_enableStockManagement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"StockManagement\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setEnableStockManagementStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2bf0c01-09e4-4ae0-a9ff-aae25d79e94f", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_goToProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7437b91e-ee29-4386-ad28-8e0c3422736d", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should click on new product button and go to new product page", + "timedOut": false, + "duration": 1149, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_clickOnNewProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, 'standard')];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23fcac9c-635b-4de5-94ae-40010703c419", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of quantity input", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable/Disable stock management Enable/Disable stock management should check the existence of quantity input", + "timedOut": false, + "duration": 1411, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableStockManagement_checkIsQuantityInputenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIsQuantityInput\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.isQuantityInputVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.equal(test.args.isQuantityVisible);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f973a478-05c8-4375-9382-7fa258f318c1", + "parentUUID": "bc3c0329-5889-4ab7-8193-d4b8f52cd754", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "80587fb8-d2e4-4772-b32c-cb682d4d92c9", + "4d70b739-fb55-49c7-a703-c3922ba9f7d8", + "712231bc-a197-4a89-a189-b633551226d3", + "14adc08d-a953-4d0c-bb1c-ce0ae471614b", + "c3effed8-113b-4f0b-8be6-97de84475ba8", + "14b121f3-9872-49f2-8827-5ca3cdbbc6e6", + "04ed0883-e445-4e99-9231-965285649af2", + "b2bf0c01-09e4-4ae0-a9ff-aae25d79e94f", + "7437b91e-ee29-4386-ad28-8e0c3422736d", + "23fcac9c-635b-4de5-94ae-40010703c419", + "f973a478-05c8-4375-9382-7fa258f318c1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 30759, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c84a0ca6-0fc7-45b7-8463-c57ff6d0c237", + "title": "BO - Shop Parameters - Product Settings : Default pack stock management", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Default pack stock management\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management \"before all\" hook in \"BO - Shop Parameters - Product Settings : Default pack stock management\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a3442c9-dd9e-45ca-8454-f7594b172507", + "parentUUID": "c84a0ca6-0fc7-45b7-8463-c57ff6d0c237", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Default pack stock management\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management \"after all\" hook in \"BO - Shop Parameters - Product Settings : Default pack stock management\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6f8f4127-39a2-4e43-92d0-06a8cd396278", + "parentUUID": "c84a0ca6-0fc7-45b7-8463-c57ff6d0c237", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management should login in BO", + "timedOut": false, + "duration": 1927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f86a68a4-e6f5-4c5d-9848-d67c6eed21f2", + "parentUUID": "c84a0ca6-0fc7-45b7-8463-c57ff6d0c237", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "8bca70e3-3013-499c-a495-bd35d1671541", + "title": "Create 3 products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c5fa218-4676-46cd-8d56-a48c6c6b479f", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_clickOnNewProductButton0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f67f505-bcb5-4b31-a4c1-99a3e12508de", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should select product type and click on add new product button", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should select product type and click on add new product button", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_selectProductType0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.args.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7851d02c-a568-4ad7-917d-7e5f697c05c2", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create product page and create a product", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should go to create product page and create a product", + "timedOut": false, + "duration": 5631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_createProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.args.productToCreate)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "081c925f-5404-4310-a335-0ef9759723eb", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebf5f0c6-70c4-4202-a023-75ef42539950", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_clickOnNewProductButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d09547fe-0687-45d7-9135-7262aacc3ab2", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should select product type and click on add new product button", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should select product type and click on add new product button", + "timedOut": false, + "duration": 908, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_selectProductType1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.args.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c56aeae5-ac54-4c74-acf5-462dc2bd1663", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create product page and create a product", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should go to create product page and create a product", + "timedOut": false, + "duration": 5473, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_createProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.args.productToCreate)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e30e27b4-af36-4511-af50-b43d48c00fc0", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a765f211-0e58-43d1-a1cb-928142e2efca", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_clickOnNewProductButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"clickOnNewProductButton\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f81330c-7e97-4f78-bcd9-6520e0f7094a", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should select product type and click on add new product button", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should select product type and click on add new product button", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_selectProductType2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"selectProductType\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, test.args.productToCreate.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90a6a61e-2d5f-4a51-845c-60bddb2d8a90", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create product page and create a product", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Create 3 products should go to create product page and create a product", + "timedOut": false, + "duration": 7885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_createProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, test.args.productToCreate)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64482659-143f-41fc-bcae-0389e3671c41", + "parentUUID": "8bca70e3-3013-499c-a495-bd35d1671541", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1c5fa218-4676-46cd-8d56-a48c6c6b479f", + "2f67f505-bcb5-4b31-a4c1-99a3e12508de", + "7851d02c-a568-4ad7-917d-7e5f697c05c2", + "081c925f-5404-4310-a335-0ef9759723eb", + "ebf5f0c6-70c4-4202-a023-75ef42539950", + "d09547fe-0687-45d7-9135-7262aacc3ab2", + "c56aeae5-ac54-4c74-acf5-462dc2bd1663", + "e30e27b4-af36-4511-af50-b43d48c00fc0", + "a765f211-0e58-43d1-a1cb-928142e2efca", + "2f81330c-7e97-4f78-bcd9-6520e0f7094a", + "90a6a61e-2d5f-4a51-845c-60bddb2d8a90", + "64482659-143f-41fc-bcae-0389e3671c41" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 37096, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52833921-056d-4d56-a2ab-1bc7258c6851", + "title": "Default pack stock", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "title": "Test the option 'Decrement pack only.'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3644, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductSettingsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "900ca5ae-9bb0-459b-a471-774f61bd898e", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the Default pack stock management 'Decrement pack only.'", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should choose the Default pack stock management 'Decrement pack only.'", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_stockManagementOption0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"stockManagementOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultPackStockManagement(page, test.args.option)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a093356-2903-4d82-b08a-fdfedd86c5e7", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should view my shop", + "timedOut": false, + "duration": 2051, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFoHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isFoHomePage = _a.sent();\n (0, chai_1.expect)(isFoHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01d6a16a-833b-497d-acdb-d906c0f810d8", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should go to login page", + "timedOut": false, + "duration": 727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToLoginFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc9f5c2e-3b39-4dd3-9498-81f09cde20e2", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should sign in with default customer", + "timedOut": false, + "duration": 658, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_sighInFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "060e15ad-5bca-40c6-b612-4dc9a1f33633", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should go to home page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToHomePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFoHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isFoHomePage = _a.sent();\n (0, chai_1.expect)(isFoHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e503821-7471-45ed-a7e2-29deadbb2292", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should search for the created product and go to product page", + "timedOut": false, + "duration": 1664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToCreatedProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // search for the created pack and add go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productPackData.name)];\n case 2:\n // search for the created pack and add go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(productPackData.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e10955e-b5d4-466b-8012-054b8933eb20", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 3935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 3:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "957998ce-3ffd-4986-8735-55dc7d6c2cef", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should go to delivery step", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToDeliveryStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5708a403-f3d8-4ebb-8b93-dcc5ff5de344", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should go to payment step", + "timedOut": false, + "duration": 311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToPaymentStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ebf1d74-561b-4a2c-ba3c-6e86bbc9993c", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should confirm the order", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should confirm the order", + "timedOut": false, + "duration": 1594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_confirmTheOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmTheOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "786911b7-2100-401f-9152-ad43da3c7ef4", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should sign out from FO", + "timedOut": false, + "duration": 1208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_sighOutFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af3da2bf-747e-4586-bbe2-27af5529b861", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ca77727-f672-4d73-a889-aa4a54ca4382", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductsPageToCheck0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPageToCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c5e968a-90fb-40f0-b6b6-71023e83e50b", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the pack of products and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should search for the pack of products and check the quantity", + "timedOut": false, + "duration": 417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterPackProductByName0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterPackProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productPackData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.packQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "003c3298-c1ee-4ada-b92b-1a53aec78237", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the first product in the pack and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should search for the first product in the pack and check the quantity", + "timedOut": false, + "duration": 3248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterFirstProductByName0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterFirstProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', firstProductData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.firstProductQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65d37a5b-4112-4002-9e8f-bca221ccbdf3", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the second product in the pack and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement pack only.' should search for the second product in the pack and check the quantity", + "timedOut": false, + "duration": 3229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterSecondProductByName0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterSecondProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', secondProductData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.secondProductQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4d714ba-fd15-446b-ad97-f24f53a40da1", + "parentUUID": "3422e300-69ec-4bba-82d8-7f1fe15d6e47", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "900ca5ae-9bb0-459b-a471-774f61bd898e", + "7a093356-2903-4d82-b08a-fdfedd86c5e7", + "01d6a16a-833b-497d-acdb-d906c0f810d8", + "cc9f5c2e-3b39-4dd3-9498-81f09cde20e2", + "060e15ad-5bca-40c6-b612-4dc9a1f33633", + "8e503821-7471-45ed-a7e2-29deadbb2292", + "9e10955e-b5d4-466b-8012-054b8933eb20", + "957998ce-3ffd-4986-8735-55dc7d6c2cef", + "5708a403-f3d8-4ebb-8b93-dcc5ff5de344", + "4ebf1d74-561b-4a2c-ba3c-6e86bbc9993c", + "786911b7-2100-401f-9152-ad43da3c7ef4", + "af3da2bf-747e-4586-bbe2-27af5529b861", + "8ca77727-f672-4d73-a889-aa4a54ca4382", + "2c5e968a-90fb-40f0-b6b6-71023e83e50b", + "003c3298-c1ee-4ada-b92b-1a53aec78237", + "65d37a5b-4112-4002-9e8f-bca221ccbdf3", + "f4d714ba-fd15-446b-ad97-f24f53a40da1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29052, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9b804537-4025-4745-b1a9-ce432ed710c3", + "title": "Test the option 'Decrement products in pack only.'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3593, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52e5b793-43c3-4d56-962f-76227f0915de", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the Default pack stock management 'Decrement products in pack only.'", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should choose the Default pack stock management 'Decrement products in pack only.'", + "timedOut": false, + "duration": 964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_stockManagementOption1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"stockManagementOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultPackStockManagement(page, test.args.option)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83fc0c28-8270-4a8e-8515-e894ef540161", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should view my shop", + "timedOut": false, + "duration": 2024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFoHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isFoHomePage = _a.sent();\n (0, chai_1.expect)(isFoHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7585459e-0c1c-498e-beb7-5ac1ab0c0473", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should go to login page", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToLoginFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e1b4aff-7d5c-46c3-8a8e-de83446c181a", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should sign in with default customer", + "timedOut": false, + "duration": 662, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_sighInFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbe9af15-03bc-4323-a283-7c8a5d79ca5c", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should go to home page", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToHomePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFoHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isFoHomePage = _a.sent();\n (0, chai_1.expect)(isFoHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa3465b6-9f9a-4144-85a2-b9a852a6a829", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should search for the created product and go to product page", + "timedOut": false, + "duration": 1669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToCreatedProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // search for the created pack and add go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productPackData.name)];\n case 2:\n // search for the created pack and add go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(productPackData.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63f64514-a3b5-454d-ac78-3cc8d75eea16", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 3951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 3:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c39ff6c-21db-4122-bc52-98679d8c4163", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should go to delivery step", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToDeliveryStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cadc7a21-8dd8-4a7d-ad83-e60491323422", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should go to payment step", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToPaymentStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb8acf87-c56a-4d0b-9bd7-12461c924cb0", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should confirm the order", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should confirm the order", + "timedOut": false, + "duration": 1591, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_confirmTheOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmTheOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8031f42-c529-4fcf-b3ac-eb4007c8f8c1", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should sign out from FO", + "timedOut": false, + "duration": 1215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_sighOutFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b1677a2-1bf9-4e1b-9be4-375f28f84094", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f01e720e-0b49-4883-841b-b2124909474c", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductsPageToCheck1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPageToCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8485eba-5ee3-451d-af0b-d8fbf36312df", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the pack of products and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should search for the pack of products and check the quantity", + "timedOut": false, + "duration": 3295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterPackProductByName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterPackProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productPackData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.packQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46bab18d-d314-4d88-84b0-25a464e8a834", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the first product in the pack and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should search for the first product in the pack and check the quantity", + "timedOut": false, + "duration": 3238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterFirstProductByName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterFirstProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', firstProductData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.firstProductQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02d52a97-456e-4cc6-9350-06f260d9cd3a", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the second product in the pack and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement products in pack only.' should search for the second product in the pack and check the quantity", + "timedOut": false, + "duration": 3232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterSecondProductByName1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterSecondProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', secondProductData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.secondProductQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72bc16de-1aaf-40ce-b897-cecaa3e9e0a4", + "parentUUID": "9b804537-4025-4745-b1a9-ce432ed710c3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "52e5b793-43c3-4d56-962f-76227f0915de", + "83fc0c28-8270-4a8e-8515-e894ef540161", + "7585459e-0c1c-498e-beb7-5ac1ab0c0473", + "5e1b4aff-7d5c-46c3-8a8e-de83446c181a", + "bbe9af15-03bc-4323-a283-7c8a5d79ca5c", + "aa3465b6-9f9a-4144-85a2-b9a852a6a829", + "63f64514-a3b5-454d-ac78-3cc8d75eea16", + "1c39ff6c-21db-4122-bc52-98679d8c4163", + "cadc7a21-8dd8-4a7d-ad83-e60491323422", + "eb8acf87-c56a-4d0b-9bd7-12461c924cb0", + "d8031f42-c529-4fcf-b3ac-eb4007c8f8c1", + "1b1677a2-1bf9-4e1b-9be4-375f28f84094", + "f01e720e-0b49-4883-841b-b2124909474c", + "f8485eba-5ee3-451d-af0b-d8fbf36312df", + "46bab18d-d314-4d88-84b0-25a464e8a834", + "02d52a97-456e-4cc6-9350-06f260d9cd3a", + "72bc16de-1aaf-40ce-b897-cecaa3e9e0a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 31725, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "title": "Test the option 'Decrement both.'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c210a316-f868-4955-97f2-5c947bc51a21", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the Default pack stock management 'Decrement both.'", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should choose the Default pack stock management 'Decrement both.'", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_stockManagementOption2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"stockManagementOption\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultPackStockManagement(page, test.args.option)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db5aba15-fdad-444f-ad42-bcc26364b678", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should view my shop", + "timedOut": false, + "duration": 2047, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFoHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isFoHomePage = _a.sent();\n (0, chai_1.expect)(isFoHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d80bd7d7-9039-45f4-9242-b9545b943479", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should go to login page", + "timedOut": false, + "duration": 731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToLoginFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToLoginFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a34967b-528e-4a02-8055-8b4bd21264ef", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should sign in with default customer", + "timedOut": false, + "duration": 717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_sighInFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighInFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77ba58ba-4694-4e38-8c93-b1a61d850c29", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should go to home page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToHomePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFoHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isFoHomePage = _a.sent();\n (0, chai_1.expect)(isFoHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e767481e-09ea-482c-8e3d-26821bcbfce6", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should search for the created product and go to product page", + "timedOut": false, + "duration": 1668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToCreatedProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // search for the created pack and add go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productPackData.name)];\n case 2:\n // search for the created pack and add go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(productPackData.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53d5b7d6-a005-4709-98a5-33b7f608075f", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and proceed to checkout", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should add product to cart and proceed to checkout", + "timedOut": false, + "duration": 3960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 3:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b47e8a5f-08fd-4929-be2c-9787f76484da", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should go to delivery step", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToDeliveryStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57a49665-3617-4576-baa3-d99101340b92", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should go to payment step", + "timedOut": false, + "duration": 316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToPaymentStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33089fa1-f824-4f91-bffc-ff3d7dc1b014", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should confirm the order", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should confirm the order", + "timedOut": false, + "duration": 1589, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_confirmTheOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmTheOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e134945-3f69-418d-936a-a7a391d5a55b", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should sign out from FO", + "timedOut": false, + "duration": 1217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_sighOutFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"sighOutFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ceda55f-2fec-4026-a555-26017e4a3ae1", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "908cfd1f-42b2-45b7-9611-251bd8c57140", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductsPageToCheck2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPageToCheck\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88dd7004-a6c1-4ed7-8528-3d38b79ee3d2", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the pack of products and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should search for the pack of products and check the quantity", + "timedOut": false, + "duration": 3442, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterPackProductByName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterPackProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productPackData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.packQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32c20817-7fea-4ce8-874e-76e23f550da2", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the first product in the pack and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should search for the first product in the pack and check the quantity", + "timedOut": false, + "duration": 3258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterFirstProductByName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterFirstProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', firstProductData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.firstProductQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2241107d-966e-44e8-bff6-df64a7dabc78", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the second product in the pack and check the quantity", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Default pack stock Test the option 'Decrement both.' should search for the second product in the pack and check the quantity", + "timedOut": false, + "duration": 3249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_filterSecondProductByName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterSecondProductByName\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', secondProductData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'quantity', 1)];\n case 4:\n packQuantity = _a.sent();\n (0, chai_1.expect)(packQuantity).to.equal(test.args.secondProductQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6106f1b8-f8a9-4471-8768-f3cb82dc9325", + "parentUUID": "fee4b58a-4747-4bca-a8cd-6b4dee9bc90c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c210a316-f868-4955-97f2-5c947bc51a21", + "db5aba15-fdad-444f-ad42-bcc26364b678", + "d80bd7d7-9039-45f4-9242-b9545b943479", + "3a34967b-528e-4a02-8055-8b4bd21264ef", + "77ba58ba-4694-4e38-8c93-b1a61d850c29", + "e767481e-09ea-482c-8e3d-26821bcbfce6", + "53d5b7d6-a005-4709-98a5-33b7f608075f", + "b47e8a5f-08fd-4929-be2c-9787f76484da", + "57a49665-3617-4576-baa3-d99101340b92", + "33089fa1-f824-4f91-bffc-ff3d7dc1b014", + "8e134945-3f69-418d-936a-a7a391d5a55b", + "4ceda55f-2fec-4026-a555-26017e4a3ae1", + "908cfd1f-42b2-45b7-9611-251bd8c57140", + "88dd7004-a6c1-4ed7-8528-3d38b79ee3d2", + "32c20817-7fea-4ce8-874e-76e23f550da2", + "2241107d-966e-44e8-bff6-df64a7dabc78", + "6106f1b8-f8a9-4471-8768-f3cb82dc9325" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 32102, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "08762cd8-79d0-4f12-a08b-abec0b36c6b5", + "title": "Delete the 3 created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/02_defaultPackStockManagement.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Delete the 3 created products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_goToProductsPageToDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3caaee94-e1dc-41c9-9c14-056fdfb0a8ce", + "parentUUID": "08762cd8-79d0-4f12-a08b-abec0b36c6b5", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product n°0", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Delete the 3 created products should delete product n°0", + "timedOut": false, + "duration": 4146, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_deleteProduct0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', test.args.productToCreate.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 5:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75c9d5f4-0e62-46ef-b602-a350badc33e5", + "parentUUID": "08762cd8-79d0-4f12-a08b-abec0b36c6b5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Delete the 3 created products should reset all filters", + "timedOut": false, + "duration": 2911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_resetFilters0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilters\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99e1285a-d8ee-47ba-8493-396bacc4f364", + "parentUUID": "08762cd8-79d0-4f12-a08b-abec0b36c6b5", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product n°1", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Delete the 3 created products should delete product n°1", + "timedOut": false, + "duration": 1235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_deleteProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', test.args.productToCreate.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 5:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb0e74a8-1969-406e-9600-32016edc35a7", + "parentUUID": "08762cd8-79d0-4f12-a08b-abec0b36c6b5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Delete the 3 created products should reset all filters", + "timedOut": false, + "duration": 2928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_resetFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilters\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40b90e56-1646-4c44-bc7b-6f1cc5129926", + "parentUUID": "08762cd8-79d0-4f12-a08b-abec0b36c6b5", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product n°2", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Delete the 3 created products should delete product n°2", + "timedOut": false, + "duration": 1221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_deleteProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteProduct\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', test.args.productToCreate.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 5:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dbe948d-1dbf-480d-8060-f105b9d174aa", + "parentUUID": "08762cd8-79d0-4f12-a08b-abec0b36c6b5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Product Settings : Default pack stock management Delete the 3 created products should reset all filters", + "timedOut": false, + "duration": 2946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_defaultPackStockManagement_resetFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilters\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d865376b-658d-4739-838d-a0afe6212351", + "parentUUID": "08762cd8-79d0-4f12-a08b-abec0b36c6b5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3caaee94-e1dc-41c9-9c14-056fdfb0a8ce", + "75c9d5f4-0e62-46ef-b602-a350badc33e5", + "99e1285a-d8ee-47ba-8493-396bacc4f364", + "cb0e74a8-1969-406e-9600-32016edc35a7", + "40b90e56-1646-4c44-bc7b-6f1cc5129926", + "9dbe948d-1dbf-480d-8060-f105b9d174aa", + "d865376b-658d-4739-838d-a0afe6212351" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19201, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f86a68a4-e6f5-4c5d-9848-d67c6eed21f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1927, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fd99cfd2-09fd-492e-9f07-4841fdc48393", + "title": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/03_displayUnavailableProductAttributes.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/03_displayUnavailableProductAttributes.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page \"before all\" hook in \"BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cbd619d-a7ac-4044-bcb7-9c4192323a32", + "parentUUID": "fd99cfd2-09fd-492e-9f07-4841fdc48393", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page \"after all\" hook in \"BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0dbd8147-247a-48bf-92fe-a1e27ada5e79", + "parentUUID": "fd99cfd2-09fd-492e-9f07-4841fdc48393", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "title": "Display unavailable product attributes on the product page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/03_displayUnavailableProductAttributes.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/03_displayUnavailableProductAttributes.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should login in BO", + "timedOut": false, + "duration": 1934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bdb3522-e064-4eec-818d-8201bdda91a9", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c511f9d-9f8e-4d58-9f72-9ecc620c0397", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6d235dc-b1a7-4af6-bb32-1f9fba20a9a7", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should choose product with combinations type", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should choose product with combinations type", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc4d26ce-e81a-4419-8a58-51420443c75e", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should go to new product page", + "timedOut": false, + "duration": 52, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "271df637-2748-473c-8f52-dbd95acf04e3", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should create product", + "timedOut": false, + "duration": 5110, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e077dc7-420a-4cbf-b493-b4c357455c18", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should create combinations and click on generate combinations button", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should create combinations and click on generate combinations button", + "timedOut": false, + "duration": 2413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_createCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setProductAttributes(page, productData.attributes)];\n case 2:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(combinationsTab_1.default.successfulGenerateCombinationsMessage(1));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa129a51-2383-4341-8c23-f48ad090a732", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should close combinations generation modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should close combinations generation modal", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_generateCombinationsModalIsClosed2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinationsModalIsClosed2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinationModalIsClosed(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edd40d14-6a86-474e-bba9-ed346c5821a2", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3602, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f60e0b6-03ce-4910-a20b-42824b6b965a", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Display unavailable product attributes on the product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should disable Display unavailable product attributes on the product page", + "timedOut": false, + "duration": 2898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_disableDisplayUnavailableProductAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayUnavailableProductAttributes\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayUnavailableProductAttributesStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95d97935-b0f4-4f89-8b79-2ff0f37f5cbd", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should view my shop", + "timedOut": false, + "duration": 2042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60230a29-8f4f-4285-81fb-ca6c5cb0cd99", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should search for the created product and go to product page", + "timedOut": false, + "duration": 1653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_goToCreatedProductPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(productData.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73ef0362-5d89-4632-aee4-fca579be27f3", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should check the unavailable product attributes in FO product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should check the unavailable product attributes in FO product page", + "timedOut": false, + "duration": 3012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_checkUnavailableAttribute0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sizeIsVisible, colorIsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkUnavailableAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isUnavailableProductSizeDisplayed(page, productData.attributes[1].values[0])];\n case 2:\n sizeIsVisible = _a.sent();\n (0, chai_1.expect)(sizeIsVisible).to.be.equal(test.args.enable);\n return [4 /*yield*/, product_1.default.isUnavailableProductColorDisplayed(page, productData.attributes[0].values[0])];\n case 3:\n colorIsVisible = _a.sent();\n (0, chai_1.expect)(colorIsVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a4072bc-3b1a-4837-95ce-2879200fffc1", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should close the page and go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_closePageAndBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25ce9e5e-b1f4-4b47-b603-34da2a6f056e", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Display unavailable product attributes on the product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should enable Display unavailable product attributes on the product page", + "timedOut": false, + "duration": 2884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_enableDisplayUnavailableProductAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayUnavailableProductAttributes\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayUnavailableProductAttributesStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32a22561-b76c-4378-b968-c1103f62d751", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should view my shop", + "timedOut": false, + "duration": 1971, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14d524c1-44c6-48ab-ad4d-ddfabec6b6d7", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the created product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should search for the created product and go to product page", + "timedOut": false, + "duration": 1652, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_goToCreatedProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCreatedProductPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(productData.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d502d87-cfb3-4eae-a26c-a678d409b869", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should check the unavailable product attributes in FO product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should check the unavailable product attributes in FO product page", + "timedOut": false, + "duration": 2018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_checkUnavailableAttribute1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sizeIsVisible, colorIsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkUnavailableAttribute\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isUnavailableProductSizeDisplayed(page, productData.attributes[1].values[0])];\n case 2:\n sizeIsVisible = _a.sent();\n (0, chai_1.expect)(sizeIsVisible).to.be.equal(test.args.enable);\n return [4 /*yield*/, product_1.default.isUnavailableProductColorDisplayed(page, productData.attributes[0].values[0])];\n case 3:\n colorIsVisible = _a.sent();\n (0, chai_1.expect)(colorIsVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eca88f99-8694-4003-b4a2-f07dcd81536a", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should close the page and go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_closePageAndBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageAndBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03070dbc-f64a-477f-a323-87560da61931", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_goToProductsPageToDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "512b7599-b079-44d8-b9e3-57f4d7026364", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should click on delete product button", + "timedOut": false, + "duration": 282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "937a11ef-7ed7-4889-9ed8-084c255ee546", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should delete product", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80cc3a53-9272-4c20-bacb-da7f12028370", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Product Settings : Display unavailable product attributes on the product page Display unavailable product attributes on the product page should reset all filters", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayUnavailableProductAttributes_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d90fafa9-82dd-48c2-b19c-e6763b47678d", + "parentUUID": "2fc33767-97cb-44d6-ba6f-fd504702a348", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9bdb3522-e064-4eec-818d-8201bdda91a9", + "6c511f9d-9f8e-4d58-9f72-9ecc620c0397", + "b6d235dc-b1a7-4af6-bb32-1f9fba20a9a7", + "bc4d26ce-e81a-4419-8a58-51420443c75e", + "271df637-2748-473c-8f52-dbd95acf04e3", + "2e077dc7-420a-4cbf-b493-b4c357455c18", + "aa129a51-2383-4341-8c23-f48ad090a732", + "edd40d14-6a86-474e-bba9-ed346c5821a2", + "5f60e0b6-03ce-4910-a20b-42824b6b965a", + "95d97935-b0f4-4f89-8b79-2ff0f37f5cbd", + "60230a29-8f4f-4285-81fb-ca6c5cb0cd99", + "73ef0362-5d89-4632-aee4-fca579be27f3", + "3a4072bc-3b1a-4837-95ce-2879200fffc1", + "25ce9e5e-b1f4-4b47-b603-34da2a6f056e", + "32a22561-b76c-4378-b968-c1103f62d751", + "14d524c1-44c6-48ab-ad4d-ddfabec6b6d7", + "9d502d87-cfb3-4eae-a26c-a678d409b869", + "eca88f99-8694-4003-b4a2-f07dcd81536a", + "03070dbc-f64a-477f-a323-87560da61931", + "512b7599-b079-44d8-b9e3-57f4d7026364", + "937a11ef-7ed7-4889-9ed8-084c255ee546", + "80cc3a53-9272-4c20-bacb-da7f12028370", + "d90fafa9-82dd-48c2-b19c-e6763b47678d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 42042, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a533185d-7bed-47c6-87ac-cd7c35a85576", + "title": "BO - Shop Parameters - Product Settings : Display remaining quantities", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/04_displayRemainingQuantities.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/04_displayRemainingQuantities.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Display remaining quantities\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities \"before all\" hook in \"BO - Shop Parameters - Product Settings : Display remaining quantities\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3944193-617e-4e5f-84cb-b35857d85de4", + "parentUUID": "a533185d-7bed-47c6-87ac-cd7c35a85576", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Display remaining quantities\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities \"after all\" hook in \"BO - Shop Parameters - Product Settings : Display remaining quantities\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e827ac64-d351-4583-9fef-e74ac6d2a06b", + "parentUUID": "a533185d-7bed-47c6-87ac-cd7c35a85576", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "title": "Display remaining quantities", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/04_displayRemainingQuantities.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/04_displayRemainingQuantities.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should login in BO", + "timedOut": false, + "duration": 1984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8542a177-27c8-4bec-af0e-9761bed89ea6", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab38334d-218f-4610-a58a-8548c462bedc", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "230ad4e1-b387-4842-b827-b30592f62c85", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should check the standard product description", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should check the standard product description", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_checkStandardProductDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productTypeDescription;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStandardProductDescription', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getProductDescription(page)];\n case 2:\n productTypeDescription = _a.sent();\n (0, chai_1.expect)(productTypeDescription).to.contains(products_1.default.standardProductDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46fe87d9-5b32-4ba9-b8b3-9c12a871ca7e", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product' and go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should choose 'Standard product' and go to new product page", + "timedOut": false, + "duration": 108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64dd563e-f44c-4abb-8b69-0c4019386a82", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should create standard product", + "timedOut": false, + "duration": 5831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c3ce82f-8257-4ec1-9f56-a6631f4bdc95", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7d22d23-79e8-4523-bfc8-bb34e63dbe76", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should update Display remaining quantities to 0", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should update Display remaining quantities to 0", + "timedOut": false, + "duration": 1928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_setDisplayRemainingQuantity0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDisplayRemainingQuantity\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayRemainingQuantities(page, test.quantity)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee3724d8-93b0-4425-a53a-92b34e333c92", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should view my shop", + "timedOut": false, + "duration": 1345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_viewMyShopDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "538b94d3-04b6-452c-bd2a-4ba4759bebfb", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should search for the product and go to product page", + "timedOut": false, + "duration": 1654, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_goToProductPageDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(test.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79656dd6-75d5-467c-b30b-cedcbca3901e", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product availability", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should check the product availability", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_checkThatRemainingQuantityIsDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastQuantityIsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkThatRemainingQuantityIs\".concat(test.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAvailabilityQuantityDisplayed(page)];\n case 2:\n lastQuantityIsVisible = _a.sent();\n (0, chai_1.expect)(lastQuantityIsVisible).to.be.equal(test.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d49471a-bf32-4072-9058-b0e71c006b70", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should close the page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_goBackToBODisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(test.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89effb8d-6370-414e-896e-387c5b83c914", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should update Display remaining quantities to 3", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should update Display remaining quantities to 3", + "timedOut": false, + "duration": 1012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_setDisplayRemainingQuantity1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setDisplayRemainingQuantity\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDisplayRemainingQuantities(page, test.quantity)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5e95564-0fd9-4c3f-99b4-e12a822aa29a", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should view my shop", + "timedOut": false, + "duration": 1321, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_viewMyShopNotDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ef6bc44-29d6-471b-99d3-e6320a93e482", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should search for the product and go to product page", + "timedOut": false, + "duration": 1663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_goToProductPageNotDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(test.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1312a7d4-b375-450f-9cf1-e919d293fc6a", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product availability", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should check the product availability", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_checkThatRemainingQuantityIsNotDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastQuantityIsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkThatRemainingQuantityIs\".concat(test.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAvailabilityQuantityDisplayed(page)];\n case 2:\n lastQuantityIsVisible = _a.sent();\n (0, chai_1.expect)(lastQuantityIsVisible).to.be.equal(test.exist);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f35ba213-8e32-4c72-92e3-3a78d9c937c0", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Display remaining quantities Display remaining quantities should close the page and go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_displayRemainingQuantities_goBackToBONotDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(test.state), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e3129e3-5ae8-45ff-8cf8-c7882bb36f2f", + "parentUUID": "dd4dbf15-4c3c-48e8-af06-df2e1e605430", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8542a177-27c8-4bec-af0e-9761bed89ea6", + "ab38334d-218f-4610-a58a-8548c462bedc", + "230ad4e1-b387-4842-b827-b30592f62c85", + "46fe87d9-5b32-4ba9-b8b3-9c12a871ca7e", + "64dd563e-f44c-4abb-8b69-0c4019386a82", + "8c3ce82f-8257-4ec1-9f56-a6631f4bdc95", + "b7d22d23-79e8-4523-bfc8-bb34e63dbe76", + "ee3724d8-93b0-4425-a53a-92b34e333c92", + "538b94d3-04b6-452c-bd2a-4ba4759bebfb", + "79656dd6-75d5-467c-b30b-cedcbca3901e", + "7d49471a-bf32-4072-9058-b0e71c006b70", + "89effb8d-6370-414e-896e-387c5b83c914", + "d5e95564-0fd9-4c3f-99b4-e12a822aa29a", + "1ef6bc44-29d6-471b-99d3-e6320a93e482", + "1312a7d4-b375-450f-9cf1-e919d293fc6a", + "f35ba213-8e32-4c72-92e3-3a78d9c937c0", + "8e3129e3-5ae8-45ff-8cf8-c7882bb36f2f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27512, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "61d6c187-a6eb-47a7-86f5-e0848a15ebdf", + "title": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/05_allowOrderingOutOfStock.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/05_allowOrderingOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products \"before all\" hook in \"BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd2d6da2-2126-4caa-9ee0-333cedffb399", + "parentUUID": "61d6c187-a6eb-47a7-86f5-e0848a15ebdf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products \"after all\" hook in \"BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dba0b475-07d8-4eae-b337-6caed6127d68", + "parentUUID": "61d6c187-a6eb-47a7-86f5-e0848a15ebdf", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "title": "Allow ordering of out-of-stock products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/05_allowOrderingOutOfStock.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/05_allowOrderingOutOfStock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should login in BO", + "timedOut": false, + "duration": 1958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7ba5b59-54aa-4a46-bafb-5e6244d5a81a", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "103db731-f7f9-4325-8c12-a2b6e3b24ae5", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should click on new product button and go to new product page", + "timedOut": false, + "duration": 1135, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_clickOnNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff77cbf9-98b0-422c-a1d3-b105319ad6c6", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should create standard product", + "timedOut": false, + "duration": 5385, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d38a352e-e3d2-407a-ba9a-3a419364347d", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3585, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47a6e5f9-39af-4c4d-9f43-7eec6a2e12a1", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should enable allow ordering of out-of-stock products", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should enable allow ordering of out-of-stock products", + "timedOut": false, + "duration": 2892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_enableAllowOrderingOutOfStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AllowOrderingOutOfStock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setAllowOrderingOutOfStockStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a54f3319-65ca-4f3c-8b5d-cec771a84cb6", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should view my shop", + "timedOut": false, + "duration": 1331, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_viewMyShopenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08c6530c-204e-4fb2-8cb2-db5401a7b3c8", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should search for the product and go to product page", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_goToProductPageenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n // Search and go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n // Search and go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9440967e-5977-4fb4-b38f-24784c2e6d37", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should check add to cart button is enabled or not", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should check add to cart button is enabled or not", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_checkOrderingOutOfStockenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastQuantityIsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderingOutOfStock\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n lastQuantityIsVisible = _a.sent();\n (0, chai_1.expect)(lastQuantityIsVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "037bfcce-86f4-47d1-80f0-d312a9d99afb", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_goBackToBOenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4801c89-2c4a-485b-81fd-6598373a1b6a", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should disable allow ordering of out-of-stock products", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should disable allow ordering of out-of-stock products", + "timedOut": false, + "duration": 2892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_disableAllowOrderingOutOfStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AllowOrderingOutOfStock\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setAllowOrderingOutOfStockStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7b8ba5d-659a-4aaf-acc7-b46a3bff4859", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should view my shop", + "timedOut": false, + "duration": 1291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_viewMyShopdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f55c52d-3e95-4a66-bd4c-69d0dfd8ea00", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should search for the product and go to product page", + "timedOut": false, + "duration": 1676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_goToProductPagedisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n // Search and go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n // Search and go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed2a86e5-f8dc-4dfb-9387-b3170f19d5c3", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should check add to cart button is enabled or not", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should check add to cart button is enabled or not", + "timedOut": false, + "duration": 1000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_checkOrderingOutOfStockdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastQuantityIsVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderingOutOfStock\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n lastQuantityIsVisible = _a.sent();\n (0, chai_1.expect)(lastQuantityIsVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "728b7baa-446e-418c-8c7b-a95f9e1c5082", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_goBackToBOdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5bd8e33-0c59-4a82-a266-e29b28a34010", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_goToProductsPageToDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48eaa735-b532-4da1-b5a4-be3c572b7c53", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should click on delete product button", + "timedOut": false, + "duration": 285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9b79579-135b-42fc-b952-e87f3370a580", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should delete product", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fde6484-837b-4ad2-91b0-905d05989c9b", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Product Settings : Allow ordering of out-of-stock products Allow ordering of out-of-stock products should reset all filters", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_allowOrderingOutOfStock_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9183020f-8882-42a3-80c7-aa9777ac5c91", + "parentUUID": "14841a72-cb40-4cd1-93c6-e1df7504b79a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e7ba5b59-54aa-4a46-bafb-5e6244d5a81a", + "103db731-f7f9-4325-8c12-a2b6e3b24ae5", + "ff77cbf9-98b0-422c-a1d3-b105319ad6c6", + "d38a352e-e3d2-407a-ba9a-3a419364347d", + "47a6e5f9-39af-4c4d-9f43-7eec6a2e12a1", + "a54f3319-65ca-4f3c-8b5d-cec771a84cb6", + "08c6530c-204e-4fb2-8cb2-db5401a7b3c8", + "9440967e-5977-4fb4-b38f-24784c2e6d37", + "037bfcce-86f4-47d1-80f0-d312a9d99afb", + "c4801c89-2c4a-485b-81fd-6598373a1b6a", + "a7b8ba5d-659a-4aaf-acc7-b46a3bff4859", + "8f55c52d-3e95-4a66-bd4c-69d0dfd8ea00", + "ed2a86e5-f8dc-4dfb-9387-b3170f19d5c3", + "728b7baa-446e-418c-8c7b-a95f9e1c5082", + "a5bd8e33-0c59-4a82-a266-e29b28a34010", + "48eaa735-b532-4da1-b5a4-be3c572b7c53", + "d9b79579-135b-42fc-b952-e87f3370a580", + "6fde6484-837b-4ad2-91b0-905d05989c9b", + "9183020f-8882-42a3-80c7-aa9777ac5c91" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34606, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4ef3d975-5948-4a42-8617-679bb9419448", + "title": "BO - Shop Parameters - Product Settings : Update label of in-stock products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/06_labelOfInStockProducts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/06_labelOfInStockProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Update label of in-stock products\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products \"before all\" hook in \"BO - Shop Parameters - Product Settings : Update label of in-stock products\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0808df47-d97e-4e7c-98b3-ef2a01ab9624", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Update label of in-stock products\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products \"after all\" hook in \"BO - Shop Parameters - Product Settings : Update label of in-stock products\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b177361f-9f84-4518-86b6-4b8b0921973d", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should login in BO", + "timedOut": false, + "duration": 1963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4967fab-7dac-4fb3-b122-8a510ff36192", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df0fd435-cea7-4b2e-aa67-9285ce9a4071", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should set 'Product is available' in Label of in-stock products input", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should set 'Product is available' in Label of in-stock products input", + "timedOut": false, + "duration": 1386, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_updateLabelOfInStockProducts_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateLabelOfInStockProducts_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setLabelOfInStockProducts(page, test.args.label)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ab3bd51-0913-49a4-b9ca-7f2229c53405", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should view my shop", + "timedOut": false, + "duration": 1361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_viewMySHop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMySHop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a9c0dc8-640c-49cd-8477-9ba945725488", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should go to the first product page", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_goToFirstProductPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa27109f-0f67-4d2d-a3ca-dc45fff16477", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should check the label of in-stock product in FO product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should check the label of in-stock product in FO product page", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_checkLabelInStock_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, availabilityLabel;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLabelInStock_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAvailabilityQuantityDisplayed(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 3:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains(test.args.labelToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fc2ae73-7c12-4c30-8554-50db81594a55", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93d39388-c094-4863-86e2-6c052bfcb489", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should set ' ' in Label of in-stock products input", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should set ' ' in Label of in-stock products input", + "timedOut": false, + "duration": 1263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_updateLabelOfInStockProducts_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateLabelOfInStockProducts_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setLabelOfInStockProducts(page, test.args.label)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c4a87c3-c89a-46fa-b2f1-017a1a936759", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should view my shop", + "timedOut": false, + "duration": 1310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_viewMySHop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMySHop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1db45fcd-6a3d-4227-be35-969ee7a74316", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should go to the first product page", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_goToFirstProductPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFirstProductPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(products_1.default.demo_1.name.toUpperCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4e14c2a-cdd5-4e42-b1d1-1f32b69e48eb", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should check the label of in-stock product in FO product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should check the label of in-stock product in FO product page", + "timedOut": false, + "duration": 1004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_checkLabelInStock_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, availabilityLabel;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkLabelInStock_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAvailabilityQuantityDisplayed(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.equal(test.args.exist);\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 3:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains(test.args.labelToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc57024f-bc4e-40c4-939c-730785c2fcae", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update label of in-stock products should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOfInStockProducts_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca86e60e-007a-4f21-98a8-cc1a9615191e", + "parentUUID": "4ef3d975-5948-4a42-8617-679bb9419448", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e4967fab-7dac-4fb3-b122-8a510ff36192", + "df0fd435-cea7-4b2e-aa67-9285ce9a4071", + "6ab3bd51-0913-49a4-b9ca-7f2229c53405", + "1a9c0dc8-640c-49cd-8477-9ba945725488", + "aa27109f-0f67-4d2d-a3ca-dc45fff16477", + "2fc2ae73-7c12-4c30-8554-50db81594a55", + "93d39388-c094-4863-86e2-6c052bfcb489", + "9c4a87c3-c89a-46fa-b2f1-017a1a936759", + "1db45fcd-6a3d-4227-be35-969ee7a74316", + "e4e14c2a-cdd5-4e42-b1d1-1f32b69e48eb", + "cc57024f-bc4e-40c4-939c-730785c2fcae", + "ca86e60e-007a-4f21-98a8-cc1a9615191e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14917, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4379a3dd-c236-4a86-88d8-8302532992bc", + "title": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/07_labelOutOfStock.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/07_labelOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders\"", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders \"before all\" hook in \"BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7c94013-c8c0-447e-862d-b42ddb4ddbb2", + "parentUUID": "4379a3dd-c236-4a86-88d8-8302532992bc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders\"", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders \"after all\" hook in \"BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "66960eb8-97b9-42b5-beff-a557ac63af20", + "parentUUID": "4379a3dd-c236-4a86-88d8-8302532992bc", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "title": "Set label out-of-stock with allowed/denied backorders", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/07_labelOutOfStock.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/07_labelOutOfStock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should login in BO", + "timedOut": false, + "duration": 1994, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17ceb25e-ce94-4c69-8872-0b6933cc6991", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eac1cc6c-59d6-4905-94e3-205841b98460", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should click on new product button and go to new product page", + "timedOut": false, + "duration": 1145, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_clickOnNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80bc8ff5-e225-4f89-a879-6db989f9bab1", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should create product", + "timedOut": false, + "duration": 5749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_createProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3851274-a572-40ea-a9fc-16eb2a7faea7", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3615, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb3d5277-ca32-4af6-86f5-c8f1998fb33e", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable allow ordering of out-of-stock products", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should enable allow ordering of out-of-stock products", + "timedOut": false, + "duration": 2873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_enableAllowOrderingOutOfStock0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AllowOrderingOutOfStock\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setAllowOrderingOutOfStockStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "762caba3-112f-4d94-93b9-c50f29f9f906", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should set Label of out-of-stock products with allowed backorders", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should set Label of out-of-stock products with allowed backorders", + "timedOut": false, + "duration": 1308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_setLabelOutOfStock0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setLabelOutOfStock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!test.args.enable) return [3 /*break*/, 3];\n return [4 /*yield*/, productSettings_1.default.setLabelOosAllowedBackorders(page, test.args.label)];\n case 2:\n result = _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, productSettings_1.default.setLabelOosDeniedBackorders(page, test.args.label)];\n case 4:\n result = _a.sent();\n _a.label = 5;\n case 5:\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80aae9d0-0d22-416a-92cb-d8530248183f", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should view my shop", + "timedOut": false, + "duration": 1370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_viewMyShopenable0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f7f59ed-5945-4a02-9f2a-a6d08503f214", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should search for the product and go to product page", + "timedOut": false, + "duration": 1660, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goToProductPageenable0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n // Search and go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n // Search and go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94dbd722-9354-49d7-a2cb-0b19eefc490f", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should check label out-of-stock", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should check label out-of-stock", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_checkOrderingOutOfStockenable0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastQuantityIsVisible, availabilityLabel;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderingOutOfStock\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n lastQuantityIsVisible = _a.sent();\n (0, chai_1.expect)(lastQuantityIsVisible).to.be.equal(test.args.enable);\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 3:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains(test.args.labelToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af80384b-fc09-4c47-9aec-eadf1ba14a9f", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c7a5b4d-3287-40f9-8ee9-a4cd8e5d1a0d", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable allow ordering of out-of-stock products", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should enable allow ordering of out-of-stock products", + "timedOut": false, + "duration": 2849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_enableAllowOrderingOutOfStock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AllowOrderingOutOfStock\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setAllowOrderingOutOfStockStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b63faa0b-3c7a-4118-bc8c-1cf6b4a6f238", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should set Label of out-of-stock products with allowed backorders", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should set Label of out-of-stock products with allowed backorders", + "timedOut": false, + "duration": 1289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_setLabelOutOfStock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setLabelOutOfStock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!test.args.enable) return [3 /*break*/, 3];\n return [4 /*yield*/, productSettings_1.default.setLabelOosAllowedBackorders(page, test.args.label)];\n case 2:\n result = _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, productSettings_1.default.setLabelOosDeniedBackorders(page, test.args.label)];\n case 4:\n result = _a.sent();\n _a.label = 5;\n case 5:\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dee801a-0c3b-47d3-b6a6-861e77080826", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should view my shop", + "timedOut": false, + "duration": 1316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_viewMyShopenable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d5bfc92-7865-4e43-8f49-a19d82bcc17f", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should search for the product and go to product page", + "timedOut": false, + "duration": 1761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goToProductPageenable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n // Search and go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n // Search and go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1d36ac9-1f16-4b14-81f0-89ca4b7d9333", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should check label out-of-stock", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should check label out-of-stock", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_checkOrderingOutOfStockenable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastQuantityIsVisible, availabilityLabel;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderingOutOfStock\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n lastQuantityIsVisible = _a.sent();\n (0, chai_1.expect)(lastQuantityIsVisible).to.be.equal(test.args.enable);\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 3:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains(test.args.labelToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e1f5adf-a74b-467b-9f44-363c2b0b9157", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4b88041-c00a-45b3-8666-f31dc0234bba", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should disable allow ordering of out-of-stock products", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should disable allow ordering of out-of-stock products", + "timedOut": false, + "duration": 2899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_disableAllowOrderingOutOfStock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AllowOrderingOutOfStock\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setAllowOrderingOutOfStockStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c3fe77a-993d-408d-80b6-5da586358ac4", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should set Label of out-of-stock products with denied backorders", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should set Label of out-of-stock products with denied backorders", + "timedOut": false, + "duration": 1273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_setLabelOutOfStock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setLabelOutOfStock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!test.args.enable) return [3 /*break*/, 3];\n return [4 /*yield*/, productSettings_1.default.setLabelOosAllowedBackorders(page, test.args.label)];\n case 2:\n result = _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, productSettings_1.default.setLabelOosDeniedBackorders(page, test.args.label)];\n case 4:\n result = _a.sent();\n _a.label = 5;\n case 5:\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3097817c-4258-4d9d-a16d-3769abef4a1a", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should view my shop", + "timedOut": false, + "duration": 1328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_viewMyShopdisable2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddf64b28-1b97-4f1a-b2ec-1259ff03cdb0", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should search for the product and go to product page", + "timedOut": false, + "duration": 1657, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goToProductPagedisable2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n // Search and go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n // Search and go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1e01f83-c333-4925-b59d-e1786ac424cc", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should check label out-of-stock", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should check label out-of-stock", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_checkOrderingOutOfStockdisable2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastQuantityIsVisible, availabilityLabel;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderingOutOfStock\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n lastQuantityIsVisible = _a.sent();\n (0, chai_1.expect)(lastQuantityIsVisible).to.be.equal(test.args.enable);\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 3:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains(test.args.labelToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e506a47f-4f29-4809-9c6f-e523dd00e612", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a9499a7-bda5-4aa7-bf11-4da4da35e8cd", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should disable allow ordering of out-of-stock products", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should disable allow ordering of out-of-stock products", + "timedOut": false, + "duration": 2842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_disableAllowOrderingOutOfStock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AllowOrderingOutOfStock\").concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setAllowOrderingOutOfStockStatus(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ef11926-270b-49ed-9820-de5cdd57dad0", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should set Label of out-of-stock products with denied backorders", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should set Label of out-of-stock products with denied backorders", + "timedOut": false, + "duration": 1303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_setLabelOutOfStock3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setLabelOutOfStock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!test.args.enable) return [3 /*break*/, 3];\n return [4 /*yield*/, productSettings_1.default.setLabelOosAllowedBackorders(page, test.args.label)];\n case 2:\n result = _a.sent();\n return [3 /*break*/, 5];\n case 3: return [4 /*yield*/, productSettings_1.default.setLabelOosDeniedBackorders(page, test.args.label)];\n case 4:\n result = _a.sent();\n _a.label = 5;\n case 5:\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa7066aa-0921-4500-b513-1fe4718482c0", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should view my shop", + "timedOut": false, + "duration": 1323, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_viewMyShopdisable3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c56f943-8b39-4d1b-a8a9-9a2bc3b53261", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product and go to product page", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should search for the product and go to product page", + "timedOut": false, + "duration": 1667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goToProductPagedisable3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductPage\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n // Search and go to product page\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n // Search and go to product page\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f07c0a9-7084-421c-aadb-ef65f9e58d09", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should check label out-of-stock", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should check label out-of-stock", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_checkOrderingOutOfStockdisable3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var lastQuantityIsVisible, availabilityLabel;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderingOutOfStock\".concat(test.args.action).concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.isAddToCartButtonEnabled(page)];\n case 2:\n lastQuantityIsVisible = _a.sent();\n (0, chai_1.expect)(lastQuantityIsVisible).to.be.equal(test.args.enable);\n return [4 /*yield*/, product_1.default.getProductAvailabilityLabel(page)];\n case 3:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains(test.args.labelToCheck);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb054fc9-5cf9-46c6-a9e5-3888d20b9653", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goBackToBo3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3b3919a-8c7a-46dc-8cf7-03d340863c13", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_goToProductsPageToDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8b6ad7b-3b9b-46c8-bab5-69d8beb3b27d", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should click on delete product button", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b143323-e2c6-43a6-ac4f-6ee18f54fccc", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should delete product", + "timedOut": false, + "duration": 696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d91161e9-22b9-49d7-befa-7df0a2ca1249", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - product Settings : Set label out-of-stock with allowed/denied backorders Set label out-of-stock with allowed/denied backorders should reset all filters", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_labelOutOfStock_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea656ba5-701d-49bd-af82-c87ade1cf271", + "parentUUID": "d03c80ef-210e-4ea4-b0dc-f426356bab3f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "17ceb25e-ce94-4c69-8872-0b6933cc6991", + "eac1cc6c-59d6-4905-94e3-205841b98460", + "80bc8ff5-e225-4f89-a879-6db989f9bab1", + "d3851274-a572-40ea-a9fc-16eb2a7faea7", + "bb3d5277-ca32-4af6-86f5-c8f1998fb33e", + "762caba3-112f-4d94-93b9-c50f29f9f906", + "80aae9d0-0d22-416a-92cb-d8530248183f", + "6f7f59ed-5945-4a02-9f2a-a6d08503f214", + "94dbd722-9354-49d7-a2cb-0b19eefc490f", + "af80384b-fc09-4c47-9aec-eadf1ba14a9f", + "8c7a5b4d-3287-40f9-8ee9-a4cd8e5d1a0d", + "b63faa0b-3c7a-4118-bc8c-1cf6b4a6f238", + "2dee801a-0c3b-47d3-b6a6-861e77080826", + "5d5bfc92-7865-4e43-8f49-a19d82bcc17f", + "a1d36ac9-1f16-4b14-81f0-89ca4b7d9333", + "7e1f5adf-a74b-467b-9f44-363c2b0b9157", + "b4b88041-c00a-45b3-8666-f31dc0234bba", + "8c3fe77a-993d-408d-80b6-5da586358ac4", + "3097817c-4258-4d9d-a16d-3769abef4a1a", + "ddf64b28-1b97-4f1a-b2ec-1259ff03cdb0", + "a1e01f83-c333-4925-b59d-e1786ac424cc", + "e506a47f-4f29-4809-9c6f-e523dd00e612", + "5a9499a7-bda5-4aa7-bf11-4da4da35e8cd", + "2ef11926-270b-49ed-9820-de5cdd57dad0", + "aa7066aa-0921-4500-b513-1fe4718482c0", + "8c56f943-8b39-4d1b-a8a9-9a2bc3b53261", + "4f07c0a9-7084-421c-aadb-ef65f9e58d09", + "fb054fc9-5cf9-46c6-a9e5-3888d20b9653", + "c3b3919a-8c7a-46dc-8cf7-03d340863c13", + "d8b6ad7b-3b9b-46c8-bab5-69d8beb3b27d", + "8b143323-e2c6-43a6-ac4f-6ee18f54fccc", + "d91161e9-22b9-49d7-befa-7df0a2ca1249", + "ea656ba5-701d-49bd-af82-c87ade1cf271" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 53018, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "title": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/08_enableDeliveryTimeOfInStockProducts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/08_enableDeliveryTimeOfInStockProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable delivery time in stocks products\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products \"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable delivery time in stocks products\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "268eec7b-c1b7-4ce8-b5ae-88337147071a", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable delivery time in stocks products\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products \"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable delivery time in stocks products\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "04b7f715-32c9-4155-ae99-32de019374f6", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should login in BO", + "timedOut": false, + "duration": 1962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09941ad7-3f1b-49a2-9f8a-2e1e83a10f62", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "930a4e6a-8fce-415c-9d5d-9960b8015463", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should enable delivery time of in-stock products", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should enable delivery time of in-stock products", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_enableStockManagement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"StockManagement\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDeliveryTimeInStock(page, test.args.deliveryTimeText)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ddd820c-d029-4489-a943-a4b5bbf175b2", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should view my shop", + "timedOut": false, + "duration": 2041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d4daeb9-b9db-46a5-9221-3031ecdb8825", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should check delivery time block visibility", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should check delivery time block visibility", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_deliveryTimeBlockVisible0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryTimeBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deliveryTimeBlockVisible\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 4)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.isDeliveryInformationVisible(page)];\n case 3:\n isDeliveryTimeBlockVisible = _a.sent();\n (0, chai_1.expect)(isDeliveryTimeBlockVisible).to.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "925aa857-1997-41d4-a39b-b16e1b676b80", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should check delivery time text", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should check delivery time text", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_deliveryTimeBlockText0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryTimeText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deliveryTimeBlockText\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getDeliveryInformationText(page)];\n case 2:\n deliveryTimeText = _a.sent();\n (0, chai_1.expect)(deliveryTimeText).to.equal(test.args.deliveryTimeText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d70dc0d-8bd5-4531-946c-a7001ea905b0", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa26cf01-a217-443e-9e15-f2974c2d2ae1", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should disable delivery time of in-stock products", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should disable delivery time of in-stock products", + "timedOut": false, + "duration": 955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_disableStockManagement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"StockManagement\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDeliveryTimeInStock(page, test.args.deliveryTimeText)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d38abd7d-ab8b-44a3-96db-b780b593ef9d", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should view my shop", + "timedOut": false, + "duration": 1998, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d400353-5287-4b6d-8603-9d2d68e02dbe", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should check delivery time block visibility", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should check delivery time block visibility", + "timedOut": false, + "duration": 1842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_deliveryTimeBlockVisible1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryTimeBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deliveryTimeBlockVisible\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 4)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.isDeliveryInformationVisible(page)];\n case 3:\n isDeliveryTimeBlockVisible = _a.sent();\n (0, chai_1.expect)(isDeliveryTimeBlockVisible).to.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcbfe9eb-b7dd-4a45-929e-208fdb04d5fe", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time in stocks products should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfInStockProducts_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39fbd02b-8843-481f-94cd-c1861162dcc5", + "parentUUID": "c31d5a76-5c79-4f21-a8d0-b40dc74247a7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "09941ad7-3f1b-49a2-9f8a-2e1e83a10f62", + "930a4e6a-8fce-415c-9d5d-9960b8015463", + "8ddd820c-d029-4489-a943-a4b5bbf175b2", + "0d4daeb9-b9db-46a5-9221-3031ecdb8825", + "925aa857-1997-41d4-a39b-b16e1b676b80", + "7d70dc0d-8bd5-4531-946c-a7001ea905b0", + "aa26cf01-a217-443e-9e15-f2974c2d2ae1", + "d38abd7d-ab8b-44a3-96db-b780b593ef9d", + "6d400353-5287-4b6d-8603-9d2d68e02dbe", + "bcbfe9eb-b7dd-4a45-929e-208fdb04d5fe", + "39fbd02b-8843-481f-94cd-c1861162dcc5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14531, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e5a2a892-dde0-41ea-9618-8e2505484e35", + "title": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products \"before all\" hook in \"BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f57b584-5f8f-410f-89fd-dcd90e0f5168", + "parentUUID": "e5a2a892-dde0-41ea-9618-8e2505484e35", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products \"after all\" hook in \"BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "10ffba69-f4d0-4969-b580-00e9e4375868", + "parentUUID": "e5a2a892-dde0-41ea-9618-8e2505484e35", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products should login in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5d47cbf-9500-4f10-ab99-9d7a325d51db", + "parentUUID": "e5a2a892-dde0-41ea-9618-8e2505484e35", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "0e9d0fa4-b92e-44fc-a97f-7e198bc31e5b", + "title": "Create a product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Create a product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb34e325-7d8d-460d-ba65-0aa169742443", + "parentUUID": "0e9d0fa4-b92e-44fc-a97f-7e198bc31e5b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Create a product should click on new product button and go to new product page", + "timedOut": false, + "duration": 1139, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_clickOnNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40b8d569-75dc-4831-95c8-419624a6d430", + "parentUUID": "0e9d0fa4-b92e-44fc-a97f-7e198bc31e5b", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Create a product should create standard product", + "timedOut": false, + "duration": 5681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28770321-2e06-4153-afbe-82b3ff33f7fa", + "parentUUID": "0e9d0fa4-b92e-44fc-a97f-7e198bc31e5b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fb34e325-7d8d-460d-ba65-0aa169742443", + "40b8d569-75dc-4831-95c8-419624a6d430", + "28770321-2e06-4153-afbe-82b3ff33f7fa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11820, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "db87370b-7b0d-4af8-bcfc-860e23fb53f2", + "title": "Enable delivery time out-of-stock", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bac7004c-7244-47c3-9710-c7c698565528", + "parentUUID": "db87370b-7b0d-4af8-bcfc-860e23fb53f2", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "cc45249b-c2a2-4773-bff7-c46f757656b0", + "title": "Check delivery time of out-of-stock products true status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should enable delivery time of out-of-stock products in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products true status should enable delivery time of out-of-stock products in BO", + "timedOut": false, + "duration": 3830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_enableStockManagement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"StockManagement\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setAllowOrderingOutOfStockStatus(page, test.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDeliveryTimeOutOfStock(page, test.args.deliveryTimeText)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28244538-4370-46ea-91bd-73725cb8bd72", + "parentUUID": "cc45249b-c2a2-4773-bff7-c46f757656b0", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products true status should view my shop", + "timedOut": false, + "duration": 2022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFoHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isFoHomePage = _a.sent();\n (0, chai_1.expect)(isFoHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75982b6d-5366-4fb7-98f0-eba9bdaa8f86", + "parentUUID": "cc45249b-c2a2-4773-bff7-c46f757656b0", + "isHook": false, + "skipped": false + }, + { + "title": "should check delivery time block visibility", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products true status should check delivery time block visibility", + "timedOut": false, + "duration": 1679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_deliveryTimeBlockVisible0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryTimeBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deliveryTimeBlockVisible\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.isDeliveryInformationVisible(page)];\n case 4:\n isDeliveryTimeBlockVisible = _a.sent();\n (0, chai_1.expect)(isDeliveryTimeBlockVisible).to.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfaa3f87-6c84-4a00-98c9-c70ae88c9d7e", + "parentUUID": "cc45249b-c2a2-4773-bff7-c46f757656b0", + "isHook": false, + "skipped": false + }, + { + "title": "should check delivery time text", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products true status should check delivery time text", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_deliveryTimeBlockText0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deliveryTimeText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deliveryTimeBlockText\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getDeliveryInformationText(page)];\n case 2:\n deliveryTimeText = _a.sent();\n (0, chai_1.expect)(deliveryTimeText).to.equal(test.args.deliveryTimeText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13adc36a-1580-4b0b-812b-bcacf461cc01", + "parentUUID": "cc45249b-c2a2-4773-bff7-c46f757656b0", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products true status should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_goBackToBo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a74c3307-f1fe-47ec-bc36-cb8d48cad9ae", + "parentUUID": "cc45249b-c2a2-4773-bff7-c46f757656b0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "28244538-4370-46ea-91bd-73725cb8bd72", + "75982b6d-5366-4fb7-98f0-eba9bdaa8f86", + "bfaa3f87-6c84-4a00-98c9-c70ae88c9d7e", + "13adc36a-1580-4b0b-812b-bcacf461cc01", + "a74c3307-f1fe-47ec-bc36-cb8d48cad9ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7548, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1d4d36ca-66b2-4083-9f3b-c2073f3dee86", + "title": "Check delivery time of out-of-stock products false status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should disable delivery time of out-of-stock products in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products false status should disable delivery time of out-of-stock products in BO", + "timedOut": false, + "duration": 3802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_disableStockManagement\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"StockManagement\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setAllowOrderingOutOfStockStatus(page, test.args.enable)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDeliveryTimeOutOfStock(page, test.args.deliveryTimeText)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30da52b7-9467-47bc-9a1a-0712335b6d39", + "parentUUID": "1d4d36ca-66b2-4083-9f3b-c2073f3dee86", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products false status should view my shop", + "timedOut": false, + "duration": 2022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFoHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isFoHomePage = _a.sent();\n (0, chai_1.expect)(isFoHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96e5f65a-286e-4b56-9929-8a23d338cd24", + "parentUUID": "1d4d36ca-66b2-4083-9f3b-c2073f3dee86", + "isHook": false, + "skipped": false + }, + { + "title": "should check delivery time block visibility", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products false status should check delivery time block visibility", + "timedOut": false, + "duration": 2653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_deliveryTimeBlockVisible1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDeliveryTimeBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deliveryTimeBlockVisible\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.isDeliveryInformationVisible(page)];\n case 4:\n isDeliveryTimeBlockVisible = _a.sent();\n (0, chai_1.expect)(isDeliveryTimeBlockVisible).to.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa8ddac7-17f9-421a-b32f-5b729c20827d", + "parentUUID": "1d4d36ca-66b2-4083-9f3b-c2073f3dee86", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Enable delivery time out-of-stock Check delivery time of out-of-stock products false status should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1a0da53-9d1b-4e55-a735-9af4ee13df96", + "parentUUID": "1d4d36ca-66b2-4083-9f3b-c2073f3dee86", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "30da52b7-9467-47bc-9a1a-0712335b6d39", + "96e5f65a-286e-4b56-9929-8a23d338cd24", + "aa8ddac7-17f9-421a-b32f-5b729c20827d", + "a1a0da53-9d1b-4e55-a735-9af4ee13df96" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8483, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bac7004c-7244-47c3-9710-c7c698565528" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3595, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "188f5cc1-7525-43a6-8b09-065c75027061", + "title": "Delete the product created for test ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/03_productsStock/09_enableDeliveryTimeOfOutOfStockProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Delete the product created for test should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_goToProductsPageToDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.goToSubMenu(page, productSettings_1.default.catalogParentLink, productSettings_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e821d08a-5061-4045-8919-5bfd10acf9b3", + "parentUUID": "188f5cc1-7525-43a6-8b09-065c75027061", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Delete the product created for test should click on delete product button", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fabf525-7d92-4152-8802-7797acde5996", + "parentUUID": "188f5cc1-7525-43a6-8b09-065c75027061", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Delete the product created for test should delete product", + "timedOut": false, + "duration": 685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e21c3c2-df0c-43d3-80d7-4510c2594a86", + "parentUUID": "188f5cc1-7525-43a6-8b09-065c75027061", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Product Settings : Enable delivery time out-of-stocks products Delete the product created for test should reset all filters", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_productsStock_enableDeliveryTimeOfOutOfStockProducts_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9ac6a5c-9d1d-4a89-89c6-d503f369ba6f", + "parentUUID": "188f5cc1-7525-43a6-8b09-065c75027061", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e821d08a-5061-4045-8919-5bfd10acf9b3", + "8fabf525-7d92-4152-8802-7797acde5996", + "1e21c3c2-df0c-43d3-80d7-4510c2594a86", + "e9ac6a5c-9d1d-4a89-89c6-d503f369ba6f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4723, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a5d47cbf-9500-4f10-ab99-9d7a325d51db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2007, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fc05a9ae-6f25-4994-89d5-0a64ab056eab", + "title": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/01_updateNumberOfProductsPerPage.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/01_updateNumberOfProductsPerPage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Update number of product displayed on FO\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO \"before all\" hook in \"BO - Shop Parameters - Product Settings : Update number of product displayed on FO\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a715beb5-d15c-4592-b7ea-5a5184243e04", + "parentUUID": "fc05a9ae-6f25-4994-89d5-0a64ab056eab", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Update number of product displayed on FO\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO \"after all\" hook in \"BO - Shop Parameters - Product Settings : Update number of product displayed on FO\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d326ab82-d6ef-487b-acd9-7e3f3b86e92e", + "parentUUID": "fc05a9ae-6f25-4994-89d5-0a64ab056eab", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO should login in BO", + "timedOut": false, + "duration": 1987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdb2cb88-18a4-4270-b843-83781644159e", + "parentUUID": "fc05a9ae-6f25-4994-89d5-0a64ab056eab", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "1a091b50-852d-47b1-b9f8-5b1f684b383d", + "title": "Update number of product displayed to 5", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/01_updateNumberOfProductsPerPage.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/01_updateNumberOfProductsPerPage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 5 should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_goToProductSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductSettingsPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "812ee60d-99b8-43e0-8442-deab0558feea", + "parentUUID": "1a091b50-852d-47b1-b9f8-5b1f684b383d", + "isHook": false, + "skipped": false + }, + { + "title": "should set number of products displayed per page to '5'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 5 should set number of products displayed per page to '5'", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_updateProductsPerPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateProductsPerPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, test.args.numberOfProductsPerPage)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1938509d-dd92-45ae-bc83-49a441e10c58", + "parentUUID": "1a091b50-852d-47b1-b9f8-5b1f684b383d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 5 should view my shop", + "timedOut": false, + "duration": 1348, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f05fec9-ca32-48b5-9725-e8728aaca183", + "parentUUID": "1a091b50-852d-47b1-b9f8-5b1f684b383d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 5 should go to all products page", + "timedOut": false, + "duration": 1641, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_goToHomeCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomeCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPage = _a.sent();\n (0, chai_1.expect)(isCategoryPage, 'Home category page was not opened');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f300924-395d-47ea-9ead-40482958f147", + "parentUUID": "1a091b50-852d-47b1-b9f8-5b1f684b383d", + "isHook": false, + "skipped": false + }, + { + "title": "should check that number of products is equal to '5'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 5 should check that number of products is equal to '5'", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_checkNumberOfProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberOfProduct\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProductsDisplayed(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts, 'Number of product displayed is incorrect').to.equal(test.args.numberOfProductsPerPage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81768ff0-4c54-449a-a628-8aebf799272f", + "parentUUID": "1a091b50-852d-47b1-b9f8-5b1f684b383d", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 5 should close the page and go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bac2f032-e565-4d36-921a-91e282ccafa6", + "parentUUID": "1a091b50-852d-47b1-b9f8-5b1f684b383d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "812ee60d-99b8-43e0-8442-deab0558feea", + "1938509d-dd92-45ae-bc83-49a441e10c58", + "0f05fec9-ca32-48b5-9725-e8728aaca183", + "6f300924-395d-47ea-9ead-40482958f147", + "81768ff0-4c54-449a-a628-8aebf799272f", + "bac2f032-e565-4d36-921a-91e282ccafa6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8825, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d4d6aced-52ad-4c40-ac16-5a452ba4406b", + "title": "Update number of product displayed to 10", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/01_updateNumberOfProductsPerPage.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/01_updateNumberOfProductsPerPage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set number of products displayed per page to '10'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 10 should set number of products displayed per page to '10'", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_updateProductsPerPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateProductsPerPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, test.args.numberOfProductsPerPage)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "790bb898-f222-4ba9-ac5c-70cb9afcd5bf", + "parentUUID": "d4d6aced-52ad-4c40-ac16-5a452ba4406b", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 10 should view my shop", + "timedOut": false, + "duration": 1303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "735bbcfd-ca02-4a44-932a-75abd8d8fee0", + "parentUUID": "d4d6aced-52ad-4c40-ac16-5a452ba4406b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 10 should go to all products page", + "timedOut": false, + "duration": 1628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_goToHomeCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomeCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPage = _a.sent();\n (0, chai_1.expect)(isCategoryPage, 'Home category page was not opened');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0af0ee73-40c1-4d2f-b5fa-93abaf560f14", + "parentUUID": "d4d6aced-52ad-4c40-ac16-5a452ba4406b", + "isHook": false, + "skipped": false + }, + { + "title": "should check that number of products is equal to '10'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 10 should check that number of products is equal to '10'", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_checkNumberOfProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNumberOfProduct\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProductsDisplayed(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts, 'Number of product displayed is incorrect').to.equal(test.args.numberOfProductsPerPage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8fc5967-1f30-4424-afe8-0bfac334767b", + "parentUUID": "d4d6aced-52ad-4c40-ac16-5a452ba4406b", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update number of product displayed on FO Update number of product displayed to 10 should close the page and go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateNumberOfProductsPerPage_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73031585-791f-446d-a022-cc3e72bd2394", + "parentUUID": "d4d6aced-52ad-4c40-ac16-5a452ba4406b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "790bb898-f222-4ba9-ac5c-70cb9afcd5bf", + "735bbcfd-ca02-4a44-932a-75abd8d8fee0", + "0af0ee73-40c1-4d2f-b5fa-93abaf560f14", + "f8fc5967-1f30-4424-afe8-0bfac334767b", + "73031585-791f-446d-a022-cc3e72bd2394" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3867, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bdb2cb88-18a4-4270-b843-83781644159e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1987, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1108d77d-0f62-40c2-9240-1c4e2cccbda6", + "title": "BO - Shop Parameters - Product Settings : Update default product order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Product Settings : Update default product order\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order \"before all\" hook in \"BO - Shop Parameters - Product Settings : Update default product order\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54f52973-747f-47cb-aecf-7be74c70ab59", + "parentUUID": "1108d77d-0f62-40c2-9240-1c4e2cccbda6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Product Settings : Update default product order\"", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order \"after all\" hook in \"BO - Shop Parameters - Product Settings : Update default product order\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a9a2aa86-b6d4-4c8e-9c81-b474afc79ed7", + "parentUUID": "1108d77d-0f62-40c2-9240-1c4e2cccbda6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order should login in BO", + "timedOut": false, + "duration": 1992, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f99f60b3-2f36-470a-8a83-cd6e4538b10a", + "parentUUID": "1108d77d-0f62-40c2-9240-1c4e2cccbda6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 4870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bae2f42-d343-4233-b705-82249b81ef8e", + "parentUUID": "1108d77d-0f62-40c2-9240-1c4e2cccbda6", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "4fe6fced-374c-497f-b580-738ede0f3f14", + "title": "Set products default order to: 'Product name - Ascending'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set products default order to: 'Product name - Ascending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Ascending' should set products default order to: 'Product name - Ascending'", + "timedOut": false, + "duration": 965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_updateProductsOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultProductsOrder(page, test.args.orderBy, test.args.orderMethod)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcf9c755-5aef-465b-8af9-325f1adbd72b", + "parentUUID": "4fe6fced-374c-497f-b580-738ede0f3f14", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Ascending' should view my shop", + "timedOut": false, + "duration": 1354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "552fe581-1ab7-4321-a1c4-0799a966fce6", + "parentUUID": "4fe6fced-374c-497f-b580-738ede0f3f14", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Ascending' should go to all products page", + "timedOut": false, + "duration": 1655, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goToHomeCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomeCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPage = _a.sent();\n (0, chai_1.expect)(isCategoryPage, 'Home category page was not opened');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c29de400-3916-4afb-a7d2-94caf1ffbbab", + "parentUUID": "4fe6fced-374c-497f-b580-738ede0f3f14", + "isHook": false, + "skipped": false + }, + { + "title": "should check that products are ordered by: 'Product name - Ascending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Ascending' should check that products are ordered by: 'Product name - Ascending'", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_checkProductsOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultProductOrder;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getSortByValue(page)];\n case 2:\n defaultProductOrder = _a.sent();\n (0, chai_1.expect)(defaultProductOrder, 'Default products order is incorrect').to.contains(test.args.textOnSelect);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8af78c18-dd5a-477a-9fe6-74e1c6bbe174", + "parentUUID": "4fe6fced-374c-497f-b580-738ede0f3f14", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Ascending' should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goBackToBo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "749755f4-313e-4699-a6b0-248a028fde8b", + "parentUUID": "4fe6fced-374c-497f-b580-738ede0f3f14", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dcf9c755-5aef-465b-8af9-325f1adbd72b", + "552fe581-1ab7-4321-a1c4-0799a966fce6", + "c29de400-3916-4afb-a7d2-94caf1ffbbab", + "8af78c18-dd5a-477a-9fe6-74e1c6bbe174", + "749755f4-313e-4699-a6b0-248a028fde8b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3993, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5c8e7807-bd56-4741-ad31-5fc9bed5f6fe", + "title": "Set products default order to: 'Product name - Descending'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set products default order to: 'Product name - Descending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Descending' should set products default order to: 'Product name - Descending'", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_updateProductsOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultProductsOrder(page, test.args.orderBy, test.args.orderMethod)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c0538bf-c29a-4b74-9ebe-0ae5442fc41b", + "parentUUID": "5c8e7807-bd56-4741-ad31-5fc9bed5f6fe", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Descending' should view my shop", + "timedOut": false, + "duration": 1332, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31b6c7c8-b94d-42b8-919a-eb8967333476", + "parentUUID": "5c8e7807-bd56-4741-ad31-5fc9bed5f6fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Descending' should go to all products page", + "timedOut": false, + "duration": 1607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goToHomeCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomeCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPage = _a.sent();\n (0, chai_1.expect)(isCategoryPage, 'Home category page was not opened');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fcf7e37-050c-48fd-ba03-489e2c663c9b", + "parentUUID": "5c8e7807-bd56-4741-ad31-5fc9bed5f6fe", + "isHook": false, + "skipped": false + }, + { + "title": "should check that products are ordered by: 'Product name - Descending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Descending' should check that products are ordered by: 'Product name - Descending'", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_checkProductsOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultProductOrder;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getSortByValue(page)];\n case 2:\n defaultProductOrder = _a.sent();\n (0, chai_1.expect)(defaultProductOrder, 'Default products order is incorrect').to.contains(test.args.textOnSelect);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13f00473-6cda-4a5b-8aa4-2b5021c48c52", + "parentUUID": "5c8e7807-bd56-4741-ad31-5fc9bed5f6fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product name - Descending' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goBackToBo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0411782b-f981-43d8-a189-9b1ffe92b25d", + "parentUUID": "5c8e7807-bd56-4741-ad31-5fc9bed5f6fe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7c0538bf-c29a-4b74-9ebe-0ae5442fc41b", + "31b6c7c8-b94d-42b8-919a-eb8967333476", + "2fcf7e37-050c-48fd-ba03-489e2c663c9b", + "13f00473-6cda-4a5b-8aa4-2b5021c48c52", + "0411782b-f981-43d8-a189-9b1ffe92b25d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3878, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "59c33266-233c-435c-962a-1c61d09eeab4", + "title": "Set products default order to: 'Product price - Ascending'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set products default order to: 'Product price - Ascending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Ascending' should set products default order to: 'Product price - Ascending'", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_updateProductsOrder3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultProductsOrder(page, test.args.orderBy, test.args.orderMethod)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e845b69-568f-440e-9014-add5686d327e", + "parentUUID": "59c33266-233c-435c-962a-1c61d09eeab4", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Ascending' should view my shop", + "timedOut": false, + "duration": 1322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_viewMyShop3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50d05cbe-416e-4fc9-a91b-1bdd3b97e55d", + "parentUUID": "59c33266-233c-435c-962a-1c61d09eeab4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Ascending' should go to all products page", + "timedOut": false, + "duration": 1604, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goToHomeCategory3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomeCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPage = _a.sent();\n (0, chai_1.expect)(isCategoryPage, 'Home category page was not opened');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1adb7071-6173-4a8f-ad21-b6290ca037ac", + "parentUUID": "59c33266-233c-435c-962a-1c61d09eeab4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that products are ordered by: 'Product price - Ascending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Ascending' should check that products are ordered by: 'Product price - Ascending'", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_checkProductsOrder3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultProductOrder;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getSortByValue(page)];\n case 2:\n defaultProductOrder = _a.sent();\n (0, chai_1.expect)(defaultProductOrder, 'Default products order is incorrect').to.contains(test.args.textOnSelect);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c926075-fe9c-40d9-bfff-ad4d63904efd", + "parentUUID": "59c33266-233c-435c-962a-1c61d09eeab4", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Ascending' should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goBackToBo3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "437b8ae9-f823-48cf-9975-3acbdcc1d742", + "parentUUID": "59c33266-233c-435c-962a-1c61d09eeab4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9e845b69-568f-440e-9014-add5686d327e", + "50d05cbe-416e-4fc9-a91b-1bdd3b97e55d", + "1adb7071-6173-4a8f-ad21-b6290ca037ac", + "6c926075-fe9c-40d9-bfff-ad4d63904efd", + "437b8ae9-f823-48cf-9975-3acbdcc1d742" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3858, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ee06466a-a506-4351-af5a-4bfb05dbbbec", + "title": "Set products default order to: 'Product price - Descending'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set products default order to: 'Product price - Descending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Descending' should set products default order to: 'Product price - Descending'", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_updateProductsOrder4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultProductsOrder(page, test.args.orderBy, test.args.orderMethod)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aed1968c-35bf-4b43-ada3-3e97a9f8471c", + "parentUUID": "ee06466a-a506-4351-af5a-4bfb05dbbbec", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Descending' should view my shop", + "timedOut": false, + "duration": 1330, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_viewMyShop4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10412365-e486-4d85-a50e-2d47c20d22cf", + "parentUUID": "ee06466a-a506-4351-af5a-4bfb05dbbbec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Descending' should go to all products page", + "timedOut": false, + "duration": 1669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goToHomeCategory4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomeCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPage = _a.sent();\n (0, chai_1.expect)(isCategoryPage, 'Home category page was not opened');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "565c630d-5905-498d-bfb9-954a1af3b0de", + "parentUUID": "ee06466a-a506-4351-af5a-4bfb05dbbbec", + "isHook": false, + "skipped": false + }, + { + "title": "should check that products are ordered by: 'Product price - Descending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Descending' should check that products are ordered by: 'Product price - Descending'", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_checkProductsOrder4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultProductOrder;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getSortByValue(page)];\n case 2:\n defaultProductOrder = _a.sent();\n (0, chai_1.expect)(defaultProductOrder, 'Default products order is incorrect').to.contains(test.args.textOnSelect);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "414edfe3-0b8a-4e13-81fe-36907428ca33", + "parentUUID": "ee06466a-a506-4351-af5a-4bfb05dbbbec", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Product price - Descending' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goBackToBo4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1385c7fc-543e-477e-9186-07d461b5b9f1", + "parentUUID": "ee06466a-a506-4351-af5a-4bfb05dbbbec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aed1968c-35bf-4b43-ada3-3e97a9f8471c", + "10412365-e486-4d85-a50e-2d47c20d22cf", + "565c630d-5905-498d-bfb9-954a1af3b0de", + "414edfe3-0b8a-4e13-81fe-36907428ca33", + "1385c7fc-543e-477e-9186-07d461b5b9f1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3936, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0869edca-53fd-4696-9c1c-603794e0d4ff", + "title": "Set products default order to: 'Position inside category - Ascending'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "file": "/campaigns/functional/BO/13_shopParameters/03_productSettings/04_pagination/02_updateDefaultProductsOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should set products default order to: 'Position inside category - Ascending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Position inside category - Ascending' should set products default order to: 'Position inside category - Ascending'", + "timedOut": false, + "duration": 930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_updateProductsOrder5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"updateProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setDefaultProductsOrder(page, test.args.orderBy, test.args.orderMethod)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "382f1625-59ae-4940-b607-f66f4efa268a", + "parentUUID": "0869edca-53fd-4696-9c1c-603794e0d4ff", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Position inside category - Ascending' should view my shop", + "timedOut": false, + "duration": 1300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_viewMyShop5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4185a4a-c580-42b2-b96a-4b5328c5fcbe", + "parentUUID": "0869edca-53fd-4696-9c1c-603794e0d4ff", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Position inside category - Ascending' should go to all products page", + "timedOut": false, + "duration": 1626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goToHomeCategory5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToHomeCategory\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPage = _a.sent();\n (0, chai_1.expect)(isCategoryPage, 'Home category page was not opened');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e18ef48-360d-460a-b14c-89c50cac6a6c", + "parentUUID": "0869edca-53fd-4696-9c1c-603794e0d4ff", + "isHook": false, + "skipped": false + }, + { + "title": "should check that products are ordered by: 'Position inside category - Ascending'", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Position inside category - Ascending' should check that products are ordered by: 'Position inside category - Ascending'", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_checkProductsOrder5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var defaultProductOrder;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsOrder\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getSortByValue(page)];\n case 2:\n defaultProductOrder = _a.sent();\n (0, chai_1.expect)(defaultProductOrder, 'Default products order is incorrect').to.contains(test.args.textOnSelect);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f104095-f2d6-4f4f-93fc-056acdda9733", + "parentUUID": "0869edca-53fd-4696-9c1c-603794e0d4ff", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Product Settings : Update default product order Set products default order to: 'Position inside category - Ascending' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_productSettings_pagination_updateDefaultProductsOrder_goBackToBo5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4c01252-e988-4186-a880-8e86626b2625", + "parentUUID": "0869edca-53fd-4696-9c1c-603794e0d4ff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "382f1625-59ae-4940-b607-f66f4efa268a", + "f4185a4a-c580-42b2-b96a-4b5328c5fcbe", + "0e18ef48-360d-460a-b14c-89c50cac6a6c", + "6f104095-f2d6-4f4f-93fc-056acdda9733", + "e4c01252-e988-4186-a880-8e86626b2625" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3872, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "f99f60b3-2f36-470a-8a83-cd6e4538b10a", + "2bae2f42-d343-4233-b705-82249b81ef8e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6862, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "title": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/01_redisplayCartAtLogin.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/01_redisplayCartAtLogin.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb8185d2-80f6-4154-91da-8f39be809918", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "069786aa-47da-4967-843f-9b61fed75386", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should login in BO", + "timedOut": false, + "duration": 1996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a78adce9-7acd-45ed-bb2c-3c273e9ed495", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f00666c1-d83b-4b7f-b8aa-0d04476a3231", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should enable re-display cart at login", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should enable re-display cart at login", + "timedOut": false, + "duration": 398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_enableRedisplayCartAtLogin\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"RedisplayCartAtLogin\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_CART_LOGIN, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37ec07dc-0121-40b9-ac57-15efc97802e6", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should view my shop", + "timedOut": false, + "duration": 1724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_viewMyShop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f8e71ce-c59b-4952-8963-e66ac0fa3d6b", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should login", + "timedOut": false, + "duration": 1365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_loginFO_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Login FO\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Login FO\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not connected in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7699778c-4823-4f7a-a92b-a17becf5153b", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should add the first product to the cart", + "timedOut": false, + "duration": 4820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_addProductToTheCart_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToTheCart_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Add first product to the cart\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n // Add first product to the cart\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da2b69b9-0c56-456e-856d-fa0558d3b2ce", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should logout", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should logout", + "timedOut": false, + "duration": 1165, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_logoutFO_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"logoutFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Logout from FO\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 2:\n // Logout from FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is connected in FO').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d679c0d-0cae-40f4-9e7e-e43ea0ac3451", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should login FO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should login FO", + "timedOut": false, + "duration": 1187, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_loginFO_2_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginFO_2_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Login FO\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Login FO\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not connected in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37c70b31-935a-483e-a86f-900db8421d26", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart then logout", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should check the cart then logout", + "timedOut": false, + "duration": 2155, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_checkNotificationNumber_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNotificationNumber_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 2:\n notificationsNumber = _a.sent();\n if (!test.args.enable) return [3 /*break*/, 4];\n (0, chai_1.expect)(notificationsNumber).to.be.above(0);\n // Logout from FO\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n // Logout from FO\n _a.sent();\n return [3 /*break*/, 5];\n case 4:\n (0, chai_1.expect)(notificationsNumber).to.be.equal(0);\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "939c0cca-048b-47f3-b494-3a92f7b63044", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_goBackToBO_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0021967-68d8-4dfa-9ecf-e9b1d7c5f3ac", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should disable re-display cart at login", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should disable re-display cart at login", + "timedOut": false, + "duration": 347, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_disableRedisplayCartAtLogin\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"RedisplayCartAtLogin\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_CART_LOGIN, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dbf3153-9fa8-47c7-9385-820b0da41455", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should view my shop", + "timedOut": false, + "duration": 1697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31b1dc40-ba2d-44ca-9442-65ca2887b71c", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should login", + "timedOut": false, + "duration": 1199, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_loginFO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Login FO\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Login FO\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not connected in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fe3109b-359d-4bdc-b489-acf5c14eea5a", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should add the first product to the cart", + "timedOut": false, + "duration": 4897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_addProductToTheCart_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToTheCart_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Add first product to the cart\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n // Add first product to the cart\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48c0c1f4-86ee-4178-95e0-b16dfcbac927", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should logout", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should logout", + "timedOut": false, + "duration": 1156, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_logoutFO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"logoutFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Logout from FO\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 2:\n // Logout from FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is connected in FO').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d710a4f-a6ac-41ac-85b2-4d2ac1dd7e4f", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should login FO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should login FO", + "timedOut": false, + "duration": 1120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_loginFO_2_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"loginFO_2_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Login FO\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Login FO\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not connected in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a56f56e2-f0f4-4f05-a141-57a070863909", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart then logout", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable re-display cart at login should check the cart then logout", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_redisplayCartAtLogin_checkNotificationNumber_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkNotificationNumber_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 2:\n notificationsNumber = _a.sent();\n if (!test.args.enable) return [3 /*break*/, 4];\n (0, chai_1.expect)(notificationsNumber).to.be.above(0);\n // Logout from FO\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n // Logout from FO\n _a.sent();\n return [3 /*break*/, 5];\n case 4:\n (0, chai_1.expect)(notificationsNumber).to.be.equal(0);\n _a.label = 5;\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d58a4df-2169-4a39-92a2-9b2582582c55", + "parentUUID": "e269fcc9-f4b5-45df-827c-efb7c32282b8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a78adce9-7acd-45ed-bb2c-3c273e9ed495", + "f00666c1-d83b-4b7f-b8aa-0d04476a3231", + "37ec07dc-0121-40b9-ac57-15efc97802e6", + "3f8e71ce-c59b-4952-8963-e66ac0fa3d6b", + "7699778c-4823-4f7a-a92b-a17becf5153b", + "da2b69b9-0c56-456e-856d-fa0558d3b2ce", + "5d679c0d-0cae-40f4-9e7e-e43ea0ac3451", + "37c70b31-935a-483e-a86f-900db8421d26", + "939c0cca-048b-47f3-b494-3a92f7b63044", + "f0021967-68d8-4dfa-9ecf-e9b1d7c5f3ac", + "1dbf3153-9fa8-47c7-9385-820b0da41455", + "31b1dc40-ba2d-44ca-9442-65ca2887b71c", + "4fe3109b-359d-4bdc-b489-acf5c14eea5a", + "48c0c1f4-86ee-4178-95e0-b16dfcbac927", + "9d710a4f-a6ac-41ac-85b2-4d2ac1dd7e4f", + "a56f56e2-f0f4-4f05-a141-57a070863909", + "4d58a4df-2169-4a39-92a2-9b2582582c55" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 32101, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9d461ad3-e276-4d91-a4d5-c0123e06b289", + "title": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d361eb64-6013-4dad-8c47-137e63b10b1b", + "parentUUID": "9d461ad3-e276-4d91-a4d5-c0123e06b289", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c860c11e-4731-43a9-993e-0cb36fa1ee94", + "parentUUID": "9d461ad3-e276-4d91-a4d5-c0123e06b289", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "6fefc027-487b-435d-b7f1-65e6f837f388", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ac52f50-bd94-4b29-85cb-795839bb0aff", + "parentUUID": "6fefc027-487b-435d-b7f1-65e6f837f388", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "aab1c1b4-d70e-4ef7-8655-c932c8021af7", + "parentUUID": "6fefc027-487b-435d-b7f1-65e6f837f388", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6afbd858-7ba7-408d-ac11-84e526cb85b0", + "parentUUID": "6fefc027-487b-435d-b7f1-65e6f837f388", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d1d754b-0f39-4efd-b4f7-808de4268409", + "parentUUID": "6fefc027-487b-435d-b7f1-65e6f837f388", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b5911c3-52e8-476a-9ed3-c4d55bcd5652", + "parentUUID": "6fefc027-487b-435d-b7f1-65e6f837f388", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6afbd858-7ba7-408d-ac11-84e526cb85b0", + "8d1d754b-0f39-4efd-b4f7-808de4268409", + "4b5911c3-52e8-476a-9ed3-c4d55bcd5652" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7346, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "title": "Enable/Disable send an email after registration", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should login in BO", + "timedOut": false, + "duration": 1785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd40fa68-c3c3-4855-90b1-134f56eb97de", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_goToCustomerSettingsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCustomerSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7b5ac0e-d7eb-46af-b4c0-439ab8cd6d2d", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should disable send an email after registration", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should disable send an email after registration", + "timedOut": false, + "duration": 369, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_disableSendEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"SendEmail\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_EMAIL_REGISTRATION, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11098532-345d-4346-83cd-442ea8995daa", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should view my shop", + "timedOut": false, + "duration": 1708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_viewMyShop0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48a14a7f-26bb-4b3d-b7c9-ae1bc34b493d", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should create a customer account from FO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should create a customer account from FO", + "timedOut": false, + "duration": 2333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_createCustomerAccount0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCustomerAccount\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Create account\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Create account\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, test.args.customer)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isCustomerConnected(page)];\n case 5:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not created in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ada0facb-f368-4452-a26d-4f996926c09c", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should logout", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should logout", + "timedOut": false, + "duration": 1810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_logoutFO_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"logoutFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Logout from FO\n return [4 /*yield*/, add_1.createAccountPage.logout(page)];\n case 2:\n // Logout from FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is connected in FO').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abfaec14-0790-4746-b9a9-2bafd8d49097", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_goBackTOBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackTOBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6951cbc6-e226-4d3d-baa1-a0d423a1aace", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > E-mail' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should go to 'Advanced parameters > E-mail' page", + "timedOut": false, + "duration": 3645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_goToEmailPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEmailPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToSubMenu(page, customerSettings_1.default.advancedParametersLink, customerSettings_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7420527d-3739-4d27-bb2e-436b65f306fb", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should check if there is a welcome email for the new customer", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should check if there is a welcome email for the new customer", + "timedOut": false, + "duration": 2414, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_searchNewCustomerEmail0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchNewCustomerEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogs(page, 'input', 'recipient', test.args.customer.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailAfterFilter).to.be.equal(test.args.nbrAfterFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d756fc9d-f8b8-4531-a870-c8a33a80f7da", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_goToCustomerSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCustomerSettingsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e98684c-189b-44d4-a119-138c260a06ae", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should enable send an email after registration", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should enable send an email after registration", + "timedOut": false, + "duration": 334, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_enableSendEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"SendEmail\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_EMAIL_REGISTRATION, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2336252-f548-4ec1-9f13-7344d3237eb6", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should view my shop", + "timedOut": false, + "duration": 1681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_viewMyShop1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9312e666-62bd-4660-a810-ecd399103d2b", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should create a customer account from FO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should create a customer account from FO", + "timedOut": false, + "duration": 2451, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_createCustomerAccount1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createCustomerAccount\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Create account\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Create account\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, test.args.customer)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isCustomerConnected(page)];\n case 5:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not created in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4072907c-db9e-4b3f-92cd-8fdf35b91335", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should logout", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should logout", + "timedOut": false, + "duration": 1775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_logoutFO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"logoutFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Logout from FO\n return [4 /*yield*/, add_1.createAccountPage.logout(page)];\n case 2:\n // Logout from FO\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is connected in FO').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d6d8b58-4659-453d-8ba3-78e156394324", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox and check the subject", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should check if the mail is in mailbox and check the subject", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_checkMailIsInMailbox1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkMailIsInMailbox\".concat(index), baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains('Welcome!');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd39dff9-e7e2-4d6c-9c74-cce0b4802fed", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_goBackTOBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackTOBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27f6a44f-4dc1-499e-8dcf-ae3144e8a7ab", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced parameters > E-mail' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should go to 'Advanced parameters > E-mail' page", + "timedOut": false, + "duration": 3622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_goToEmailPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEmailPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToSubMenu(page, customerSettings_1.default.advancedParametersLink, customerSettings_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00e47e34-7721-45dc-b809-24de77cc872f", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should check if there is a welcome email for the new customer", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration Enable/Disable send an email after registration should check if there is a welcome email for the new customer", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_searchNewCustomerEmail1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfEmailAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchNewCustomerEmail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.filterEmailLogs(page, 'input', 'recipient', test.args.customer.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfEmailAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfEmailAfterFilter).to.be.equal(test.args.nbrAfterFilter);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c25576a2-5f5f-4d7c-8aa5-cbdfaa8e3c05", + "parentUUID": "cb9ae5c3-ac72-4d64-95cd-ab7e21981ed3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cd40fa68-c3c3-4855-90b1-134f56eb97de", + "b7b5ac0e-d7eb-46af-b4c0-439ab8cd6d2d", + "11098532-345d-4346-83cd-442ea8995daa", + "48a14a7f-26bb-4b3d-b7c9-ae1bc34b493d", + "ada0facb-f368-4452-a26d-4f996926c09c", + "abfaec14-0790-4746-b9a9-2bafd8d49097", + "6951cbc6-e226-4d3d-baa1-a0d423a1aace", + "7420527d-3739-4d27-bb2e-436b65f306fb", + "d756fc9d-f8b8-4531-a870-c8a33a80f7da", + "5e98684c-189b-44d4-a119-138c260a06ae", + "f2336252-f548-4ec1-9f13-7344d3237eb6", + "9312e666-62bd-4660-a810-ecd399103d2b", + "4072907c-db9e-4b3f-92cd-8fdf35b91335", + "9d6d8b58-4659-453d-8ba3-78e156394324", + "cd39dff9-e7e2-4d6c-9c74-cce0b4802fed", + "27f6a44f-4dc1-499e-8dcf-ae3144e8a7ab", + "00e47e34-7721-45dc-b809-24de77cc872f", + "c25576a2-5f5f-4d7c-8aa5-cbdfaa8e3c05" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34078, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1491be7f-0384-45e4-94af-4a1509028a2e", + "title": "POST-TEST : Delete the two created customers", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Customers > Customers' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST : Delete the two created customers should go to 'Customers > Customers' page", + "timedOut": false, + "duration": 3846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_goToCustomersPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.goToSubMenu(page, email_1.default.customersParentLink, email_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04506550-3bd3-4530-a968-ae5564235cc1", + "parentUUID": "1491be7f-0384-45e4-94af-4a1509028a2e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST : Delete the two created customers should reset all filters", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c668d07-78fa-4140-98bf-adb186273898", + "parentUUID": "1491be7f-0384-45e4-94af-4a1509028a2e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST : Delete the two created customers should filter list by email", + "timedOut": false, + "duration": 3103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_filterToDelete1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', test.args.customerToDelete.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(test.args.customerToDelete.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f9b888d-59cb-4ed0-bd48-70fa991f5fc7", + "parentUUID": "1491be7f-0384-45e4-94af-4a1509028a2e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST : Delete the two created customers should delete customer", + "timedOut": false, + "duration": 1964, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_deleteCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCustomer\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulDeleteMessage);\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomersAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterDelete).to.be.equal(numberOfCustomers - (index + 1));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb2b2dc8-6667-442a-a256-002ead8fdbe9", + "parentUUID": "1491be7f-0384-45e4-94af-4a1509028a2e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by email", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST : Delete the two created customers should filter list by email", + "timedOut": false, + "duration": 3106, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_filterToDelete2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterToDelete\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', test.args.customerToDelete.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(test.args.customerToDelete.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b74be9dc-adb0-4085-beb6-4beee398359f", + "parentUUID": "1491be7f-0384-45e4-94af-4a1509028a2e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST : Delete the two created customers should delete customer", + "timedOut": false, + "duration": 1958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_deleteCustomer2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfCustomersAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"deleteCustomer\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(customers_1.default.successfulDeleteMessage);\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfCustomersAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterDelete).to.be.equal(numberOfCustomers - (index + 1));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c956abc-48d5-4a52-8bb2-163d40cc7539", + "parentUUID": "1491be7f-0384-45e4-94af-4a1509028a2e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "04506550-3bd3-4530-a968-ae5564235cc1", + "7c668d07-78fa-4140-98bf-adb186273898", + "0f9b888d-59cb-4ed0-bd48-70fa991f5fc7", + "eb2b2dc8-6667-442a-a256-002ead8fdbe9", + "b74be9dc-adb0-4085-beb6-4beee398359f", + "3c956abc-48d5-4a52-8bb2-163d40cc7539" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15986, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d3226006-0f9a-44aa-8ef8-db16de77e0d9", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/02_sendEmailAfterRegistration.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 60, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0bb5d4f-4a1f-4d61-9cd1-d7ba793bc2c3", + "parentUUID": "d3226006-0f9a-44aa-8ef8-db16de77e0d9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3940ef3e-4d22-4ec7-a4e0-cd236fb98f0c", + "parentUUID": "d3226006-0f9a-44aa-8ef8-db16de77e0d9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7b946b8-88ce-4df9-98e0-1b092ed00fff", + "parentUUID": "d3226006-0f9a-44aa-8ef8-db16de77e0d9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2028dff-986c-456b-9ffe-c36cc6d7f694", + "parentUUID": "d3226006-0f9a-44aa-8ef8-db16de77e0d9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable send an email after registration POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_sendEmailAfterRegistration_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82b073ad-ee66-42b1-b78f-ff479e907ce0", + "parentUUID": "d3226006-0f9a-44aa-8ef8-db16de77e0d9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f7b946b8-88ce-4df9-98e0-1b092ed00fff", + "c2028dff-986c-456b-9ffe-c36cc6d7f694", + "82b073ad-ee66-42b1-b78f-ff479e907ce0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7124, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "title": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/04_enableB2BMode.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/04_enableB2BMode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68f17f2e-aa8d-423d-86ad-a82f5f465cf6", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e0316605-feec-46fc-9f43-d3445964379a", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should login in BO", + "timedOut": false, + "duration": 1849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e115e6ab-038b-4d07-801f-4cff471822df", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4835, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8cdc0c8-5557-4450-b28b-6e16ae50dd53", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should enable B2B mode", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should enable B2B mode", + "timedOut": false, + "duration": 372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_enableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"B2BMode\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc38f4c4-e194-49cd-afd2-57c69dba2655", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should view my shop", + "timedOut": false, + "duration": 1738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_viewMyShop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c05f59ce-6ccf-4b62-b268-ce6835097dfd", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create customer page in FO and check company input", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should go to create customer page in FO and check company input", + "timedOut": false, + "duration": 1409, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_checkB2BMode0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompanyInputVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkB2BMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isCompanyInputVisible(page)];\n case 4:\n isCompanyInputVisible = _a.sent();\n (0, chai_1.expect)(isCompanyInputVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de6296c3-6ffd-44de-ae07-c0b5d3cfdbf2", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46125e7c-cf91-46e1-9ffa-ca8e113946b4", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should disable B2B mode", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should disable B2B mode", + "timedOut": false, + "duration": 345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_disableB2BMode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"B2BMode\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_B2B, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c2d4974-e212-4a26-a758-f16eba123722", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should view my shop", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d7bfdfe-b33c-496f-b86a-6af221e12738", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create customer page in FO and check company input", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should go to create customer page in FO and check company input", + "timedOut": false, + "duration": 2410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_checkB2BMode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCompanyInputVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkB2BMode\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isCompanyInputVisible(page)];\n case 4:\n isCompanyInputVisible = _a.sent();\n (0, chai_1.expect)(isCompanyInputVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f51f1dd-8217-4bbc-b4e2-4609191dbd02", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable B2B mode should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enableB2BMode_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8046ddaf-0971-41d6-96e2-da55ad86eac2", + "parentUUID": "94e87faf-be68-4360-9a7e-d3d73c329ce7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e115e6ab-038b-4d07-801f-4cff471822df", + "a8cdc0c8-5557-4450-b28b-6e16ae50dd53", + "fc38f4c4-e194-49cd-afd2-57c69dba2655", + "c05f59ce-6ccf-4b62-b268-ce6835097dfd", + "de6296c3-6ffd-44de-ae07-c0b5d3cfdbf2", + "46125e7c-cf91-46e1-9ffa-ca8e113946b4", + "7c2d4974-e212-4a26-a758-f16eba123722", + "2d7bfdfe-b33c-496f-b86a-6af221e12738", + "3f51f1dd-8217-4bbc-b4e2-4609191dbd02", + "8046ddaf-0971-41d6-96e2-da55ad86eac2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14664, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "title": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/05_askForBirthDate.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/05_askForBirthDate.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be0273eb-ae47-4ab3-8a58-18cce69e9c83", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "aaa97e9b-7e45-431c-ad24-a61541f3a5a8", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should login in BO", + "timedOut": false, + "duration": 1773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74271355-814e-47a3-887b-39fe39327c23", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "672f6c8a-c0da-407f-9816-07c879201dcd", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should disable ask for birth date", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should disable ask for birth date", + "timedOut": false, + "duration": 368, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_disableAskForBirthDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AskForBirthDate\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_BIRTH_DATE, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "047707f9-fa7c-439c-b131-59d3e7e03c23", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should view my shop", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_viewMyShop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d9d1cf4-d8cd-4140-bdd6-775fe4b416e0", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to customer account in FO and check birth day input", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should go to customer account in FO and check birth day input", + "timedOut": false, + "duration": 2423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_checkIsBirthDate0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBirthDateInputVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIsBirthDate\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isBirthDateVisible(page)];\n case 4:\n isBirthDateInputVisible = _a.sent();\n (0, chai_1.expect)(isBirthDateInputVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4aea1ba9-8ce6-42a9-9e2b-e93d4aa39fef", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should go back to BO", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea90f483-a37d-4473-b508-41d276c16818", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should enable ask for birth date", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should enable ask for birth date", + "timedOut": false, + "duration": 372, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_enableAskForBirthDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AskForBirthDate\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_BIRTH_DATE, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0fa990c-5f0a-4ba3-b00d-7734d33dab10", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should view my shop", + "timedOut": false, + "duration": 1751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1df58b7e-6d1a-4d7f-b5ae-f317b1c6da76", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to customer account in FO and check birth day input", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should go to customer account in FO and check birth day input", + "timedOut": false, + "duration": 1435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_checkIsBirthDate1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBirthDateInputVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIsBirthDate\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isBirthDateVisible(page)];\n case 4:\n isBirthDateInputVisible = _a.sent();\n (0, chai_1.expect)(isBirthDateInputVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "070d3a07-a541-478d-89c5-90963c8983ef", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable ask for birth date should go back to BO", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_askForBirthDate_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9acab046-b0c6-4621-927d-2dbd3542a1e2", + "parentUUID": "91a3a9e7-4e89-45b9-9f61-5309b0b1ff2e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74271355-814e-47a3-887b-39fe39327c23", + "672f6c8a-c0da-407f-9816-07c879201dcd", + "047707f9-fa7c-439c-b131-59d3e7e03c23", + "2d9d1cf4-d8cd-4140-bdd6-775fe4b416e0", + "4aea1ba9-8ce6-42a9-9e2b-e93d4aa39fef", + "ea90f483-a37d-4473-b508-41d276c16818", + "b0fa990c-5f0a-4ba3-b00d-7734d33dab10", + "1df58b7e-6d1a-4d7f-b5ae-f317b1c6da76", + "070d3a07-a541-478d-89c5-90963c8983ef", + "9acab046-b0c6-4621-927d-2dbd3542a1e2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14729, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "title": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/06_enablePartnerOffers.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/01_customers/06_enablePartnerOffers.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable partner offer\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable partner offer\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "963551f0-e4ca-4c50-96ff-b188156acbbd", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable partner offer\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Enable/Disable partner offer\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a753dce0-7832-42c7-9e6d-6ffd4bf9e8d5", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should login in BO", + "timedOut": false, + "duration": 1911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd9ec56b-e35e-4f3c-b5b0-9941c9ccc76a", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should go to 'Shop parameters > Customer Settings' page", + "timedOut": false, + "duration": 4848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32b9daa6-0577-4e4c-8359-c223e0436835", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should disable partner offer", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should disable partner offer", + "timedOut": false, + "duration": 354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_partnerOffer0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"partnerOffer\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_PARTNER_OFFER, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6742deb2-7195-4fb9-a38f-054c0c423119", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should view my shop", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_viewMyShop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd283321-4740-42a2-b240-0740ed053fc5", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create customer account in FO and check partner offer checkbox", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should go to create customer account in FO and check partner offer checkbox", + "timedOut": false, + "duration": 2412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_checkIsPartnerOffer0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPartnerOfferVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIsPartnerOffer\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isPartnerOfferVisible(page)];\n case 4:\n isPartnerOfferVisible = _a.sent();\n (0, chai_1.expect)(isPartnerOfferVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b82e9509-3c8e-4f2f-8c6f-662b7148d633", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_goBackToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fa14539-23e8-4844-9585-337a76e90d3e", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should enable partner offer", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should enable partner offer", + "timedOut": false, + "duration": 316, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_partnerOffer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"partnerOffer\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.setOptionStatus(page, options_1.default.OPTION_PARTNER_OFFER, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(customerSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85e16b38-2b4c-4e99-8760-8db798dfe949", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should view my shop", + "timedOut": false, + "duration": 1679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8cdbecf-40d1-49e1-aaf2-18ce6712866d", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create customer account in FO and check partner offer checkbox", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should go to create customer account in FO and check partner offer checkbox", + "timedOut": false, + "duration": 1397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_checkIsPartnerOffer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPartnerOfferVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkIsPartnerOffer\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to create account page\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n // Go to create account page\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.isPartnerOfferVisible(page)];\n case 4:\n isPartnerOfferVisible = _a.sent();\n (0, chai_1.expect)(isPartnerOfferVisible).to.be.equal(test.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1542d34-fb1c-4273-afca-b5f269fbff00", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Enable/Disable partner offer should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_customers_enablePartnerOffers_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ccd7d68-852a-4545-80ad-609c89c96e27", + "parentUUID": "2f714b0a-4321-498e-a7cd-89dc662d265d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dd9ec56b-e35e-4f3c-b5b0-9941c9ccc76a", + "32b9daa6-0577-4e4c-8359-c223e0436835", + "6742deb2-7195-4fb9-a38f-054c0c423119", + "dd283321-4740-42a2-b240-0740ed053fc5", + "b82e9509-3c8e-4f2f-8c6f-662b7148d633", + "6fa14539-23e8-4844-9585-337a76e90d3e", + "85e16b38-2b4c-4e99-8760-8db798dfe949", + "e8cdbecf-40d1-49e1-aaf2-18ce6712866d", + "f1542d34-fb1c-4273-afca-b5f269fbff00", + "6ccd7d68-852a-4545-80ad-609c89c96e27" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14640, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "074242c8-a8dd-4be7-a6a3-2785b35b8130", + "title": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "761c2a45-e398-4528-a336-85f3352eee73", + "parentUUID": "074242c8-a8dd-4be7-a6a3-2785b35b8130", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a44e1931-360d-42a3-82e5-a24d87c4a5a4", + "parentUUID": "074242c8-a8dd-4be7-a6a3-2785b35b8130", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups should login in BO", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40e5aa8e-e3f4-433d-99ba-74528d6f87a6", + "parentUUID": "074242c8-a8dd-4be7-a6a3-2785b35b8130", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups should go to 'Shop Parameters > Customer Settings' page", + "timedOut": false, + "duration": 4821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "170b5b50-efaa-40be-ba5d-8544201cb140", + "parentUUID": "074242c8-a8dd-4be7-a6a3-2785b35b8130", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Groups' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups should go to 'Groups' page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToGroupsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGroupsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToGroupsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(groups_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84593040-8649-4dbe-84d3-6e14705e253e", + "parentUUID": "074242c8-a8dd-4be7-a6a3-2785b35b8130", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of groups in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups should reset all filters and get number of groups in BO", + "timedOut": false, + "duration": 27, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroups = _a.sent();\n (0, chai_1.expect)(numberOfGroups).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89265a54-44c1-4a4c-a5f4-0fd23fb5e83c", + "parentUUID": "074242c8-a8dd-4be7-a6a3-2785b35b8130", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "title": "Filter groups", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_group '1'", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should filter by id_group '1'", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.be.at.most(numberOfGroups);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, groups_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75ca7b99-3618-40bf-aebd-7abd8fa814a7", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should reset all filters", + "timedOut": false, + "duration": 2890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.equal(numberOfGroups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70fe3b93-2612-4f2c-a3b5-06eda47e5dfe", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by b!name 'Visitor'", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should filter by b!name 'Visitor'", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.be.at.most(numberOfGroups);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, groups_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e6eea21-d624-44a2-af6a-d16dd1f09a65", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should reset all filters", + "timedOut": false, + "duration": 2862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.equal(numberOfGroups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcfa3da3-8747-42d8-8987-aa6a11e43e8d", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by reduction '0'", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should filter by reduction '0'", + "timedOut": false, + "duration": 922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.be.at.most(numberOfGroups);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, groups_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08601d28-eb34-4670-bf12-b40fd57e634e", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should reset all filters", + "timedOut": false, + "duration": 2866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterDiscountReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.equal(numberOfGroups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdf94eef-8598-49ee-a62b-874c9a2739d4", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by nb '1'", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should filter by nb '1'", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterMembers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.be.at.most(numberOfGroups);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, groups_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2956d2d4-e025-43b0-bdbc-39eb5e2f5162", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should reset all filters", + "timedOut": false, + "duration": 2868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterMembersReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.equal(numberOfGroups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e746b7bb-b8f8-45cf-b4d8-2d70239db2b6", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by show_prices '1'", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should filter by show_prices '1'", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterShopPrices\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.be.at.most(numberOfGroups);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, groups_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n if (test.expected !== undefined) {\n (0, chai_1.expect)(textColumn).to.contains(test.expected);\n }\n else {\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcc515fe-8f8b-4510-96e5-f9a01c93e770", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Filter groups should reset all filters", + "timedOut": false, + "duration": 2887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterShopPricesReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.equal(numberOfGroups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b92dad61-ceb4-4023-b0d7-864460cfe394", + "parentUUID": "868fab7c-c6af-4241-b230-3d6b84bfe90d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75ca7b99-3618-40bf-aebd-7abd8fa814a7", + "70fe3b93-2612-4f2c-a3b5-06eda47e5dfe", + "4e6eea21-d624-44a2-af6a-d16dd1f09a65", + "dcfa3da3-8747-42d8-8987-aa6a11e43e8d", + "08601d28-eb34-4670-bf12-b40fd57e634e", + "bdf94eef-8598-49ee-a62b-874c9a2739d4", + "2956d2d4-e025-43b0-bdbc-39eb5e2f5162", + "e746b7bb-b8f8-45cf-b4d8-2d70239db2b6", + "dcc515fe-8f8b-4510-96e5-f9a01c93e770", + "b92dad61-ceb4-4023-b0d7-864460cfe394" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 18961, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "title": "Sort groups", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_group' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'id_group' 'desc' and check result", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e4fc78c-e659-4019-869b-5fcf63d11a39", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByGroupNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b90eb159-58be-4a53-91a9-b6d9579e46c5", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByGroupNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3b8e3d7-7a6f-45ae-889f-33fc21005c44", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reduction' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'reduction' 'asc' and check result", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByDiscountAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1895904-306c-437d-8e1d-a13e07ebcaa2", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'reduction' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'reduction' 'desc' and check result", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByDiscountDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d34cbd0-7f95-4785-ae23-f5cbf1dc670b", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'nb' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'nb' 'asc' and check result", + "timedOut": false, + "duration": 876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByMembersAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85471195-5de0-4009-b702-f9d4f61da855", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'nb' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'nb' 'desc' and check result", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByMembersDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8901c7c-0fee-43be-9302-5320267bc24e", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'date_add' 'asc' and check result", + "timedOut": false, + "duration": 859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByCreationDateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7a07b11-d392-4af1-babc-0ec0097395d2", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'date_add' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'date_add' 'desc' and check result", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByCreationDateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "324c30dc-ebd6-4575-8db8-7d63a1753a61", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_group' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Sort groups should sort by 'id_group' 'asc' and check result", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, groups_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 6:\n if (!test.args.isDate) return [3 /*break*/, 8];\n return [4 /*yield*/, basicHelper_1.default.sortArrayDate(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 10];\n case 8: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 9:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 10;\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a6047b5-de67-4e4c-831b-02416d5d5beb", + "parentUUID": "c1389374-224c-4438-b3c2-7c4e67276ee8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4e4fc78c-e659-4019-869b-5fcf63d11a39", + "b90eb159-58be-4a53-91a9-b6d9579e46c5", + "d3b8e3d7-7a6f-45ae-889f-33fc21005c44", + "d1895904-306c-437d-8e1d-a13e07ebcaa2", + "2d34cbd0-7f95-4785-ae23-f5cbf1dc670b", + "85471195-5de0-4009-b702-f9d4f61da855", + "f8901c7c-0fee-43be-9302-5320267bc24e", + "a7a07b11-d392-4af1-babc-0ec0097395d2", + "324c30dc-ebd6-4575-8db8-7d63a1753a61", + "1a6047b5-de67-4e4c-831b-02416d5d5beb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8775, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "217f913c-acb5-4bba-83e7-40b613061118", + "title": "Create 18 groups", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 1619, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b05af45-1414-48bf-a2a8-51c6b5702cb5", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°1 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°1 and check result", + "timedOut": false, + "duration": 1532, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5d1358e-2004-4200-92f7-3ed45e397e76", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93e8591d-855a-481c-8db4-fc09aefa9bc9", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°2 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°2 and check result", + "timedOut": false, + "duration": 1479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06ea7ba6-e3d0-442a-ba9c-dd19e44b60b1", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ffe981a-1659-4df5-a4c4-0b073d8e0218", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°3 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°3 and check result", + "timedOut": false, + "duration": 1490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23dd7b48-63aa-45da-851a-e1235831d905", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b37b884-9a6e-4c0b-b1f8-2f84c6fcd91d", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°4 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°4 and check result", + "timedOut": false, + "duration": 1535, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2be01ef8-183e-4153-80ba-fd5f4b0ba6d5", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7ad40a8-3dce-4b32-880d-78f3a9195613", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°5 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°5 and check result", + "timedOut": false, + "duration": 1486, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23b842fd-2e1c-4f50-9d89-51af7140c003", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25b126bb-39f3-4da8-b881-3597eb854c55", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°6 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°6 and check result", + "timedOut": false, + "duration": 1495, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5075124a-5994-4614-aec9-5962a5982492", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "969490e3-d471-44ef-8190-c4d72a09586d", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°7 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°7 and check result", + "timedOut": false, + "duration": 1544, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92e2b9c6-9ff1-424b-8e24-8a4a646c7944", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3edc5c4b-8112-49fa-af90-b251d40da547", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°8 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°8 and check result", + "timedOut": false, + "duration": 1518, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3a194f1-3da1-4ddc-9b89-348411e2a39a", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "601f2bb3-f41c-43ed-a1a5-4ee9834af0b9", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°9 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°9 and check result", + "timedOut": false, + "duration": 1537, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a279abe0-f217-4fed-97f5-43924ee07977", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2366b779-4303-4c98-8db6-c0ad14a4ff35", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°10 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°10 and check result", + "timedOut": false, + "duration": 1526, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73777b92-8332-4f8e-ba26-056fa261aeb3", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87ec12f8-190e-448a-941c-a569f3c5a405", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°11 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°11 and check result", + "timedOut": false, + "duration": 1525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "420d5831-6fe2-43de-8de8-fd5f2f646cc1", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57f24009-0c5a-46fc-9a32-389b1463ad91", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°12 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°12 and check result", + "timedOut": false, + "duration": 1536, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3b4f3a1-7ce0-4f02-bff4-5b49754864bb", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e958cff8-7115-40b9-8873-0d756fa7fd3c", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°13 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°13 and check result", + "timedOut": false, + "duration": 1558, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b4f6f87-b683-4fe2-95be-a8f7bcf3718b", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c64f7371-f9c2-410d-b5ba-77566d7ae192", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°14 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°14 and check result", + "timedOut": false, + "duration": 1550, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1867ee5-367d-4fd3-8eec-72305847f26c", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16abca60-49ae-4cce-be7e-9e99540f8f9a", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°15 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°15 and check result", + "timedOut": false, + "duration": 1552, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b57c8fbf-b9c8-4254-b9f1-daec62aa448d", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d57cb05-5d54-4856-a9cf-de28f2caff00", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°16 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°16 and check result", + "timedOut": false, + "duration": 1529, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c2e97bb-e8b8-4596-b6dd-d1b79e576849", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e43ef34b-89aa-4d91-8e96-7a0faf755fbb", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°17 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°17 and check result", + "timedOut": false, + "duration": 1509, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6d321cd-df69-4a89-99eb-ecb31dedffa4", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should go to add new group page", + "timedOut": false, + "duration": 890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_goToNewGroupPage17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewGroupPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c1a8817-eea8-4c57-bc53-059071b14bff", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + }, + { + "title": "should create group n°18 and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Create 18 groups should create group n°18 and check result", + "timedOut": false, + "duration": 1567, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_createGroup17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createGroup\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, groupToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7077bc8-fa96-4fd9-8ccf-65168e78d23a", + "parentUUID": "217f913c-acb5-4bba-83e7-40b613061118", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8b05af45-1414-48bf-a2a8-51c6b5702cb5", + "c5d1358e-2004-4200-92f7-3ed45e397e76", + "93e8591d-855a-481c-8db4-fc09aefa9bc9", + "06ea7ba6-e3d0-442a-ba9c-dd19e44b60b1", + "0ffe981a-1659-4df5-a4c4-0b073d8e0218", + "23dd7b48-63aa-45da-851a-e1235831d905", + "8b37b884-9a6e-4c0b-b1f8-2f84c6fcd91d", + "2be01ef8-183e-4153-80ba-fd5f4b0ba6d5", + "d7ad40a8-3dce-4b32-880d-78f3a9195613", + "23b842fd-2e1c-4f50-9d89-51af7140c003", + "25b126bb-39f3-4da8-b881-3597eb854c55", + "5075124a-5994-4614-aec9-5962a5982492", + "969490e3-d471-44ef-8190-c4d72a09586d", + "92e2b9c6-9ff1-424b-8e24-8a4a646c7944", + "3edc5c4b-8112-49fa-af90-b251d40da547", + "b3a194f1-3da1-4ddc-9b89-348411e2a39a", + "601f2bb3-f41c-43ed-a1a5-4ee9834af0b9", + "a279abe0-f217-4fed-97f5-43924ee07977", + "2366b779-4303-4c98-8db6-c0ad14a4ff35", + "73777b92-8332-4f8e-ba26-056fa261aeb3", + "87ec12f8-190e-448a-941c-a569f3c5a405", + "420d5831-6fe2-43de-8de8-fd5f2f646cc1", + "57f24009-0c5a-46fc-9a32-389b1463ad91", + "d3b4f3a1-7ce0-4f02-bff4-5b49754864bb", + "e958cff8-7115-40b9-8873-0d756fa7fd3c", + "0b4f6f87-b683-4fe2-95be-a8f7bcf3718b", + "c64f7371-f9c2-410d-b5ba-77566d7ae192", + "e1867ee5-367d-4fd3-8eec-72305847f26c", + "16abca60-49ae-4cce-be7e-9e99540f8f9a", + "b57c8fbf-b9c8-4254-b9f1-daec62aa448d", + "6d57cb05-5d54-4856-a9cf-de28f2caff00", + "7c2e97bb-e8b8-4596-b6dd-d1b79e576849", + "e43ef34b-89aa-4d91-8e96-7a0faf755fbb", + "d6d321cd-df69-4a89-99eb-ecb31dedffa4", + "6c1a8817-eea8-4c57-bc53-059071b14bff", + "d7077bc8-fa96-4fd9-8ccf-65168e78d23a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 44238, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "65c8968b-4720-4310-9ba1-18c62b9c0903", + "title": "Pagination groups", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Pagination groups should change the items number to 20 per page", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70e42b04-17f8-4df6-97c8-0b5dd2ff4d44", + "parentUUID": "65c8968b-4720-4310-9ba1-18c62b9c0903", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Pagination groups should click on next", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68e84604-12a7-4e62-a2af-993b6c7cce20", + "parentUUID": "65c8968b-4720-4310-9ba1-18c62b9c0903", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Pagination groups should click on previous", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a3ec2b6-3cb7-452f-96d3-eb41ab6a13b0", + "parentUUID": "65c8968b-4720-4310-9ba1-18c62b9c0903", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Pagination groups should change the items number to 50 per page", + "timedOut": false, + "duration": 923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ead80b1-5ea8-4d33-bfb8-35710183845c", + "parentUUID": "65c8968b-4720-4310-9ba1-18c62b9c0903", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "70e42b04-17f8-4df6-97c8-0b5dd2ff4d44", + "68e84604-12a7-4e62-a2af-993b6c7cce20", + "3a3ec2b6-3cb7-452f-96d3-eb41ab6a13b0", + "3ead80b1-5ea8-4d33-bfb8-35710183845c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3672, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b8d35b89-567b-4719-ad30-57e4a6799aff", + "title": "Bulk delete groups", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/01_filterSortAndPaginationGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Bulk delete groups should filter list by name", + "timedOut": false, + "duration": 1186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, 'input', 'b!name', 'toSortAndPaginate')];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.eq(18);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, groups_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('toSortAndPaginate');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f2bb5d4-5097-4040-961c-25bcce9bd794", + "parentUUID": "b8d35b89-567b-4719-ad30-57e4a6799aff", + "isHook": false, + "skipped": false + }, + { + "title": "should delete groups with Bulk Actions and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Bulk delete groups should delete groups with Bulk Actions and check result", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_bulkDeleteGroups\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteGroups', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.bulkDeleteGroups(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(groups_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9d5e3f2-c070-4677-913d-834a5df724e8", + "parentUUID": "b8d35b89-567b-4719-ad30-57e4a6799aff", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Filter, sort and pagination groups Bulk delete groups should reset all filters", + "timedOut": false, + "duration": 2881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_filterSortAndPaginationGroups_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.be.equal(numberOfGroups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59b3a9cb-2296-4e35-a00e-c56edab10857", + "parentUUID": "b8d35b89-567b-4719-ad30-57e4a6799aff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7f2bb5d4-5097-4040-961c-25bcce9bd794", + "d9d5e3f2-c070-4677-913d-834a5df724e8", + "59b3a9cb-2296-4e35-a00e-c56edab10857" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4883, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "40e5aa8e-e3f4-433d-99ba-74528d6f87a6", + "170b5b50-efaa-40be-ba5d-8544201cb140", + "84593040-8649-4dbe-84d3-6e14705e253e", + "89265a54-44c1-4a4c-a5f4-0fd23fb5e83c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7480, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "afcdbfa1-0a3d-4a31-b339-a738069566f7", + "title": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/02_CRUDGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/02_CRUDGroups.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Create, update and delete group in BO\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Create, update and delete group in BO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57282ffd-bba0-4404-9c3e-1d361557e6a5", + "parentUUID": "afcdbfa1-0a3d-4a31-b339-a738069566f7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Create, update and delete group in BO\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Create, update and delete group in BO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1e9fdd05-3bbd-453d-bbae-034ca8faf922", + "parentUUID": "afcdbfa1-0a3d-4a31-b339-a738069566f7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO should login in BO", + "timedOut": false, + "duration": 1814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5833793-a52a-43d0-ba71-f185fa7af998", + "parentUUID": "afcdbfa1-0a3d-4a31-b339-a738069566f7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO should go to 'Shop Parameters > Customer Settings' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c291e9f-099e-432e-bef6-ab87452355dd", + "parentUUID": "afcdbfa1-0a3d-4a31-b339-a738069566f7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Groups' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO should go to 'Groups' page", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_goToGroupsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGroupsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToGroupsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(groups_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f471403-54df-4fb8-9200-f811674b5abf", + "parentUUID": "afcdbfa1-0a3d-4a31-b339-a738069566f7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of groups in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO should reset all filters and get number of groups in BO", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroups = _a.sent();\n (0, chai_1.expect)(numberOfGroups).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f010cb6-6547-4ac2-90f9-c830dbd14c2b", + "parentUUID": "afcdbfa1-0a3d-4a31-b339-a738069566f7", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "66cd91be-deab-4e5c-b9d4-35d8816420e5", + "title": "Create group in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/02_CRUDGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/02_CRUDGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO Create group in BO should go to add new group page", + "timedOut": false, + "duration": 974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_goToAddNewGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.goToNewGroupPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6511cf2-6c6d-443d-9468-6083092b3d8a", + "parentUUID": "66cd91be-deab-4e5c-b9d4-35d8816420e5", + "isHook": false, + "skipped": false + }, + { + "title": "should create group and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO Create group in BO should create group and check result", + "timedOut": false, + "duration": 1446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_createGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, createGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulCreationMessage);\n return [4 /*yield*/, groups_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterCreation).to.be.equal(numberOfGroups + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "607c2c75-2b3f-41a8-8e3f-3347efe4da90", + "parentUUID": "66cd91be-deab-4e5c-b9d4-35d8816420e5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d6511cf2-6c6d-443d-9468-6083092b3d8a", + "607c2c75-2b3f-41a8-8e3f-3347efe4da90" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2420, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b35a405e-efac-403f-91be-edcc2735d82a", + "title": "Update group created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/02_CRUDGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/02_CRUDGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO Update group created should filter list by name", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, 'input', 'b!name', createGroupData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getTextColumn(page, 1, 'b!name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createGroupData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9172203-1285-4df5-8c6e-a83903aa9cf9", + "parentUUID": "b35a405e-efac-403f-91be-edcc2735d82a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit group page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO Update group created should go to edit group page", + "timedOut": false, + "duration": 947, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_goToEditGroupPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditGroupPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.gotoEditGroupPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cc33e0d-f576-42ef-acce-2594cdfdcb0a", + "parentUUID": "b35a405e-efac-403f-91be-edcc2735d82a", + "isHook": false, + "skipped": false + }, + { + "title": "should update group", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO Update group created should update group", + "timedOut": false, + "duration": 4352, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_updateGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfGroupsAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditGroup(page, editGroupData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulUpdateMessage);\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfGroupsAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterUpdate).to.be.equal(numberOfGroups + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c4e5bb8-2eb5-4ea6-989c-3902b2fddb7a", + "parentUUID": "b35a405e-efac-403f-91be-edcc2735d82a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b9172203-1285-4df5-8c6e-a83903aa9cf9", + "1cc33e0d-f576-42ef-acce-2594cdfdcb0a", + "8c4e5bb8-2eb5-4ea6-989c-3902b2fddb7a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6261, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "201537ec-de83-4cbc-9571-df78c60a7850", + "title": "Delete group", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/02_CRUDGroups.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/02_CRUDGroups.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO Delete group should filter list by name", + "timedOut": false, + "duration": 945, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.filterTable(page, 'input', 'b!name', editGroupData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getTextColumn(page, 1, 'b!name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editGroupData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc82563c-b028-406e-860f-6db404859407", + "parentUUID": "201537ec-de83-4cbc-9571-df78c60a7850", + "isHook": false, + "skipped": false + }, + { + "title": "should delete group", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO Delete group should delete group", + "timedOut": false, + "duration": 1056, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_deleteGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.deleteGroup(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(groups_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa15ac8a-672f-4ba4-87c0-7a58fa8b20af", + "parentUUID": "201537ec-de83-4cbc-9571-df78c60a7850", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete group in BO Delete group should reset filter", + "timedOut": false, + "duration": 2886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_CRUDGroups_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterDelete).to.be.equal(numberOfGroups);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2600bb20-b0ef-4720-9a55-6c061b7afd1b", + "parentUUID": "201537ec-de83-4cbc-9571-df78c60a7850", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bc82563c-b028-406e-860f-6db404859407", + "fa15ac8a-672f-4ba4-87c0-7a58fa8b20af", + "2600bb20-b0ef-4720-9a55-6c061b7afd1b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4887, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "d5833793-a52a-43d0-ba71-f185fa7af998", + "7c291e9f-099e-432e-bef6-ab87452355dd", + "7f471403-54df-4fb8-9200-f811674b5abf", + "1f010cb6-6547-4ac2-90f9-c830dbd14c2b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7538, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "title": "BO - Shop Parameters - Customer Settings : Default groups options", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/03_defaultGroupsOptions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/02_groups/03_defaultGroupsOptions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Default groups options\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Default groups options\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28adb6a0-be3e-4c76-a89a-3761a7d2b222", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Default groups options\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Default groups options\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "abf072f8-4cb0-4f34-a2e4-f5b025d26c8b", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should login in BO", + "timedOut": false, + "duration": 1789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74cf1b3c-117e-42d9-ae11-c51c1d5c66b8", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should go to 'Shop Parameters > Customer Settings' page", + "timedOut": false, + "duration": 4850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_defaultGroupsOptions_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49643efe-75fb-4f48-898e-f53514acca3e", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Groups' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should go to 'Groups' page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_defaultGroupsOptions_goToGroupsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToGroupsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToGroupsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(groups_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1798ea9f-7aaa-465b-bf87-da0f99a64a79", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the default value selected for Visitors group is Visitor", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should check that the default value selected for Visitors group is Visitor", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_defaultGroupsOptions_checkDefaultGroupForVisitors\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedGroup;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDefaultGroupForVisitors', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getGroupSelectedValue(page, 'visitors')];\n case 2:\n selectedGroup = _a.sent();\n (0, chai_1.expect)(selectedGroup).to.equal('Visitor');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef8a655a-6766-47be-a9d5-27b6bcccd08a", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + }, + { + "title": "should get the dropdown list of visitors group", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should get the dropdown list of visitors group", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_defaultGroupsOptions_getOptionsOfVisitorsGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var options;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOptionsOfVisitorsGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getGroupDropDownList(page, 'visitors')];\n case 2:\n options = _a.sent();\n (0, chai_1.expect)(options).to.equal('Visitor Guest Customer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca6e2001-a6d3-47f4-a84d-366acfd44d99", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the default value selected for Guests group is Visitor", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should check that the default value selected for Guests group is Visitor", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_defaultGroupsOptions_checkDefaultGroupForGuests\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedGroup;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDefaultGroupForGuests', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getGroupSelectedValue(page, 'guests')];\n case 2:\n selectedGroup = _a.sent();\n (0, chai_1.expect)(selectedGroup).to.equal('Guest');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2758ada3-679a-4b0e-8cfd-7aca91ff1068", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + }, + { + "title": "should get the dropdown list of Guests group", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should get the dropdown list of Guests group", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_defaultGroupsOptions_getOptionsOfGuestsGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var options;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOptionsOfGuestsGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getGroupDropDownList(page, 'guests')];\n case 2:\n options = _a.sent();\n (0, chai_1.expect)(options).to.equal('Visitor Guest Customer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "256191d5-02b0-4f9f-a784-73a5d2e3f677", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the default value selected for Customers group is Visitor", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should check that the default value selected for Customers group is Visitor", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_defaultGroupsOptions_checkDefaultGroupForCustomers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var selectedGroup;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDefaultGroupForCustomers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getGroupSelectedValue(page, 'customers')];\n case 2:\n selectedGroup = _a.sent();\n (0, chai_1.expect)(selectedGroup).to.equal('Customer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6af9e938-c03c-4c03-921c-b3df90aecd99", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + }, + { + "title": "should get the dropdown list of Customers group", + "fullTitle": "BO - Shop Parameters - Customer Settings : Default groups options should get the dropdown list of Customers group", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_groups_defaultGroupsOptions_getOptionsOfCustomersGroup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var options;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOptionsOfCustomersGroup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, groups_1.default.getGroupDropDownList(page, 'customers')];\n case 2:\n options = _a.sent();\n (0, chai_1.expect)(options).to.equal('Visitor Guest Customer');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8e77ae2-3740-48ef-b258-6b2cedf6f9d6", + "parentUUID": "99eeac05-ea3f-424b-b7c8-dd43244cc4ac", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74cf1b3c-117e-42d9-ae11-c51c1d5c66b8", + "49643efe-75fb-4f48-898e-f53514acca3e", + "1798ea9f-7aaa-465b-bf87-da0f99a64a79", + "ef8a655a-6766-47be-a9d5-27b6bcccd08a", + "ca6e2001-a6d3-47f4-a84d-366acfd44d99", + "2758ada3-679a-4b0e-8cfd-7aca91ff1068", + "256191d5-02b0-4f9f-a784-73a5d2e3f677", + "6af9e938-c03c-4c03-921c-b3df90aecd99", + "d8e77ae2-3740-48ef-b258-6b2cedf6f9d6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7502, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6790235e-fa7c-4c49-9324-6821dc338e24", + "title": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles\"", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles \"before all\" hook in \"BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.generateImage('image.png')];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2bd2d264-65e2-4066-8989-667e167462d0", + "parentUUID": "6790235e-fa7c-4c49-9324-6821dc338e24", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles\"", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles \"after all\" hook in \"BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('image.png')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b8d7b73b-ac05-45b1-9119-ee0beaf8cc2f", + "parentUUID": "6790235e-fa7c-4c49-9324-6821dc338e24", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles should login in BO", + "timedOut": false, + "duration": 1778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc561549-3319-48c6-a764-8ba691e15003", + "parentUUID": "6790235e-fa7c-4c49-9324-6821dc338e24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Customer Settings' page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles should go to 'Shop Parameters > Customer Settings' page", + "timedOut": false, + "duration": 4850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a3aa9f4-a822-4ef6-ac43-e4de88c59eb2", + "parentUUID": "6790235e-fa7c-4c49-9324-6821dc338e24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Titles' page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles should go to 'Titles' page", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToTitlesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTitlesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToTitlesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(titles_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09f832dc-61dd-4957-9409-9770ce1c0b9d", + "parentUUID": "6790235e-fa7c-4c49-9324-6821dc338e24", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of titles in BO", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles should reset all filters and get number of titles in BO", + "timedOut": false, + "duration": 27, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTitles = _a.sent();\n (0, chai_1.expect)(numberOfTitles).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13620339-0833-4506-831f-e199a42c6c1b", + "parentUUID": "6790235e-fa7c-4c49-9324-6821dc338e24", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "3f957b99-cc4f-40df-a4fe-62bfff826a2c", + "title": "Filter titles", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_gender '2'", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Filter titles should filter by id_gender '2'", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.filterTitles(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterFilter).to.be.at.most(numberOfTitles);\n return [4 /*yield*/, titles_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15fb81dc-a731-48a1-a82e-232e62d91028", + "parentUUID": "3f957b99-cc4f-40df-a4fe-62bfff826a2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Filter titles should reset all filters", + "timedOut": false, + "duration": 2841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTitlesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterReset).to.equal(numberOfTitles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75b4d5ca-bb9f-4089-8bf2-1866d6a13c33", + "parentUUID": "3f957b99-cc4f-40df-a4fe-62bfff826a2c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Mrs.'", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Filter titles should filter by name 'Mrs.'", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.filterTitles(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterFilter).to.be.at.most(numberOfTitles);\n return [4 /*yield*/, titles_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8c2a3c4-beb6-43b3-b047-629730d175ac", + "parentUUID": "3f957b99-cc4f-40df-a4fe-62bfff826a2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Filter titles should reset all filters", + "timedOut": false, + "duration": 2839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTitlesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterReset).to.equal(numberOfTitles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6cefa76-888b-4e53-97d4-37d6c4e419ae", + "parentUUID": "3f957b99-cc4f-40df-a4fe-62bfff826a2c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by type 'Female'", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Filter titles should filter by type 'Female'", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_filterGender\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.filterTitles(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterFilter).to.be.at.most(numberOfTitles);\n return [4 /*yield*/, titles_1.default.getTextColumn(page, 1, test.args.filterBy)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8d82bf9-52f6-489c-82b5-f0af0828acd1", + "parentUUID": "3f957b99-cc4f-40df-a4fe-62bfff826a2c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Filter titles should reset all filters", + "timedOut": false, + "duration": 2845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_filterGenderReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTitlesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterReset).to.equal(numberOfTitles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4920c46a-4eb1-4cab-b25d-c63719e3d9db", + "parentUUID": "3f957b99-cc4f-40df-a4fe-62bfff826a2c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "15fb81dc-a731-48a1-a82e-232e62d91028", + "75b4d5ca-bb9f-4089-8bf2-1866d6a13c33", + "f8c2a3c4-beb6-43b3-b047-629730d175ac", + "c6cefa76-888b-4e53-97d4-37d6c4e419ae", + "f8d82bf9-52f6-489c-82b5-f0af0828acd1", + "4920c46a-4eb1-4cab-b25d-c63719e3d9db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11191, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b8f361df-b27c-48a9-a2b2-8270c0cfdb55", + "title": "Sort titles", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_gender' 'desc' and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Sort titles should sort by 'id_gender' 'desc' and check result", + "timedOut": false, + "duration": 2822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, titles_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeaba64a-b05f-444b-bcae-9f5a715e8240", + "parentUUID": "b8f361df-b27c-48a9-a2b2-8270c0cfdb55", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Sort titles should sort by 'name' 'asc' and check result", + "timedOut": false, + "duration": 2804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_sortBySocialTitleAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, titles_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c06f0688-618f-440c-bfb1-ac5da52b59ee", + "parentUUID": "b8f361df-b27c-48a9-a2b2-8270c0cfdb55", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Sort titles should sort by 'name' 'desc' and check result", + "timedOut": false, + "duration": 2806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_sortBySocialTitleDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, titles_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c681d8a1-060f-4d7f-9fab-afa477168416", + "parentUUID": "b8f361df-b27c-48a9-a2b2-8270c0cfdb55", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_gender' 'asc' and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Sort titles should sort by 'id_gender' 'asc' and check result", + "timedOut": false, + "duration": 2796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, titles_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeb6ec18-b4be-4b85-b508-45341274931d", + "parentUUID": "b8f361df-b27c-48a9-a2b2-8270c0cfdb55", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aeaba64a-b05f-444b-bcae-9f5a715e8240", + "c06f0688-618f-440c-bfb1-ac5da52b59ee", + "c681d8a1-060f-4d7f-9fab-afa477168416", + "aeb6ec18-b4be-4b85-b508-45341274931d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11228, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "title": "Create 9 titles", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4af2eea3-c33c-4d3b-a189-69d88f9181d9", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98409e71-063a-48ec-a388-fd8f981cf975", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0471b0c4-7616-4566-9130-31eedbd4663d", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1555, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24927d8a-1c3c-4f6b-97af-be6f158af723", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4c78546-5501-46bc-aa59-cb2a803f57e8", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1560, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "001de545-90f6-4d2e-83ec-ff338afc3f76", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec3b3b91-f91f-4c54-be43-131c96b996e3", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1569, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cbc8ff2-1836-4d1c-9e1f-0f35f3c5e989", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 742, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58cbad57-a3b2-42ed-aa5c-1f5bd910ac61", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1581, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34ba40cf-1533-4313-b18a-9b38fd8ae90f", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77588ed8-1a17-4bd0-b146-c0941809d4b8", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1570, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "103ecc2e-eb69-41af-a99f-475e2dc5bbfb", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "844e5d2d-5bcb-4175-9ea2-8495db2a9103", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1588, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45a51ad5-a3d2-427b-98c6-7ad8bfe7257a", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "401a84b6-c9d1-437c-95ff-2ad33173105b", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a7f7238-3123-4e4d-a82b-8a29fc6bd33d", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should go to add new title page", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_goToAddNewTitle8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddNewTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56a31116-bac7-4c92-b5d7-8935ac29a620", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Create 9 titles should create title and check result", + "timedOut": false, + "duration": 1587, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_createTitle8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTitle\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd7fdb3b-e2f6-4294-bedd-371fc46d8dfc", + "parentUUID": "6ba2014c-0cc7-4b22-9739-7687d79f5544", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4af2eea3-c33c-4d3b-a189-69d88f9181d9", + "98409e71-063a-48ec-a388-fd8f981cf975", + "0471b0c4-7616-4566-9130-31eedbd4663d", + "24927d8a-1c3c-4f6b-97af-be6f158af723", + "f4c78546-5501-46bc-aa59-cb2a803f57e8", + "001de545-90f6-4d2e-83ec-ff338afc3f76", + "ec3b3b91-f91f-4c54-be43-131c96b996e3", + "9cbc8ff2-1836-4d1c-9e1f-0f35f3c5e989", + "58cbad57-a3b2-42ed-aa5c-1f5bd910ac61", + "34ba40cf-1533-4313-b18a-9b38fd8ae90f", + "77588ed8-1a17-4bd0-b146-c0941809d4b8", + "103ecc2e-eb69-41af-a99f-475e2dc5bbfb", + "844e5d2d-5bcb-4175-9ea2-8495db2a9103", + "45a51ad5-a3d2-427b-98c6-7ad8bfe7257a", + "401a84b6-c9d1-437c-95ff-2ad33173105b", + "9a7f7238-3123-4e4d-a82b-8a29fc6bd33d", + "56a31116-bac7-4c92-b5d7-8935ac29a620", + "cd7fdb3b-e2f6-4294-bedd-371fc46d8dfc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21094, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "09a91109-b903-435f-bf81-eca6b79e8ff3", + "title": "Pagination titles", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Pagination titles should change the items number to 10 per page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93eb4e1a-94a7-4625-a756-ce37f154c8ac", + "parentUUID": "09a91109-b903-435f-bf81-eca6b79e8ff3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Pagination titles should click on next", + "timedOut": false, + "duration": 790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b808af05-910e-4e50-946a-8d2b342314b9", + "parentUUID": "09a91109-b903-435f-bf81-eca6b79e8ff3", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Pagination titles should click on previous", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f102559-4b32-4f75-bf85-15b3f655b08f", + "parentUUID": "09a91109-b903-435f-bf81-eca6b79e8ff3", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Pagination titles should change the items number to 50 per page", + "timedOut": false, + "duration": 785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f882d56-c5e1-475f-8f40-5911a26201cd", + "parentUUID": "09a91109-b903-435f-bf81-eca6b79e8ff3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "93eb4e1a-94a7-4625-a756-ce37f154c8ac", + "b808af05-910e-4e50-946a-8d2b342314b9", + "2f102559-4b32-4f75-bf85-15b3f655b08f", + "9f882d56-c5e1-475f-8f40-5911a26201cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3188, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7fbae2cb-5811-4fc8-8e07-d909dc620054", + "title": "Bulk delete titles", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/01_filterSortAndPaginationTitles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by title", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Bulk delete titles should filter list by title", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.filterTitles(page, 'input', 'name', 'toSortAndPaginate')];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterFilter).to.eq(9);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfTitlesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, titles_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('toSortAndPaginate');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "225f50c5-31b6-4ad8-bb19-2dcba2f021fe", + "parentUUID": "7fbae2cb-5811-4fc8-8e07-d909dc620054", + "isHook": false, + "skipped": false + }, + { + "title": "should delete titles with Bulk Actions and check result", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Bulk delete titles should delete titles with Bulk Actions and check result", + "timedOut": false, + "duration": 1499, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_bulkDeleteTitles\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteTitles', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.bulkDeleteTitles(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(titles_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d070e80-41a7-4f52-b31d-4f2abbe4d645", + "parentUUID": "7fbae2cb-5811-4fc8-8e07-d909dc620054", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO _ Shop Parameters - Customer Settings : Filter, sort and pagination titles Bulk delete titles should reset all filters", + "timedOut": false, + "duration": 2831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_filterSortAndPaginationTitles_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTitlesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterReset).to.be.equal(numberOfTitles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87931f1c-d9ad-4c10-b5e4-8a098672a918", + "parentUUID": "7fbae2cb-5811-4fc8-8e07-d909dc620054", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "225f50c5-31b6-4ad8-bb19-2dcba2f021fe", + "2d070e80-41a7-4f52-b31d-4f2abbe4d645", + "87931f1c-d9ad-4c10-b5e4-8a098672a918" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5335, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "bc561549-3319-48c6-a764-8ba691e15003", + "3a3aa9f4-a822-4ef6-ac43-e4de88c59eb2", + "09f832dc-61dd-4957-9409-9770ce1c0b9d", + "13620339-0833-4506-831f-e199a42c6c1b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7465, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cac5fd18-05d9-4327-9e57-85ed3a9a8030", + "title": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/02_CRUDTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/02_CRUDTitles.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Create, update and delete title in BO\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Create, update and delete title in BO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage(createTitleData.imageName),\n files_1.default.generateImage(editTitleData.imageName),\n ])];\n case 3:\n // Create images\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9263c31a-8ffe-4170-8693-48347acbba74", + "parentUUID": "cac5fd18-05d9-4327-9e57-85ed3a9a8030", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Create, update and delete title in BO\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Create, update and delete title in BO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(createTitleData.imageName),\n files_1.default.deleteFile(editTitleData.imageName),\n ])];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "97d77062-3c61-488c-89e4-120129e3d32d", + "parentUUID": "cac5fd18-05d9-4327-9e57-85ed3a9a8030", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO should login in BO", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75ef2b14-3763-4465-af39-22281b7df7aa", + "parentUUID": "cac5fd18-05d9-4327-9e57-85ed3a9a8030", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO should go to 'Shop Parameters > Customer Settings' page", + "timedOut": false, + "duration": 4847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df2dfae8-2148-46e7-a0c5-4ed719285945", + "parentUUID": "cac5fd18-05d9-4327-9e57-85ed3a9a8030", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Titles' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO should go to 'Titles' page", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_goToTitlesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTitlesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToTitlesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(titles_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47184068-dbc5-4f26-84f7-120fa30f6430", + "parentUUID": "cac5fd18-05d9-4327-9e57-85ed3a9a8030", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of titles in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO should reset all filters and get number of titles in BO", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTitles = _a.sent();\n (0, chai_1.expect)(numberOfTitles).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30799f7f-495a-4e88-80bb-0b1683a6da93", + "parentUUID": "cac5fd18-05d9-4327-9e57-85ed3a9a8030", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "0cc77f84-01e0-41d7-9a27-65ebb3e07c22", + "title": "Create title in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/02_CRUDTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/02_CRUDTitles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new title page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO Create title in BO should go to add new title page", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_goToAddNewTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTitle', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4992f04-56dd-4f98-95d9-d0ae56d194b0", + "parentUUID": "0cc77f84-01e0-41d7-9a27-65ebb3e07c22", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO Create title in BO should create title and check result", + "timedOut": false, + "duration": 1535, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_createTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createTitle', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, createTitleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f710da17-889d-4a54-9455-bfd59a9ff9e8", + "parentUUID": "0cc77f84-01e0-41d7-9a27-65ebb3e07c22", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4992f04-56dd-4f98-95d9-d0ae56d194b0", + "f710da17-889d-4a54-9455-bfd59a9ff9e8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2297, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e8451bee-ab72-48cc-996a-ae9de35f53a7", + "title": "Update title created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/02_CRUDTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/02_CRUDTitles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO Update title created should filter list by name", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.filterTitles(page, 'input', 'name', createTitleData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createTitleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "443722aa-cbf8-4f9c-9fea-330cf00598c7", + "parentUUID": "e8451bee-ab72-48cc-996a-ae9de35f53a7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit title page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO Update title created should go to edit title page", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_goToEditTitlePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditTitlePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.gotoEditTitlePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit(createTitleData.name));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97eff883-842b-4e84-9eea-bcb63ca3f047", + "parentUUID": "e8451bee-ab72-48cc-996a-ae9de35f53a7", + "isHook": false, + "skipped": false + }, + { + "title": "should update title", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO Update title created should update title", + "timedOut": false, + "duration": 4362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_updateTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateTitle', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, editTitleData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulUpdateMessage);\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfTitlesAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterUpdate).to.be.equal(numberOfTitles + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "469d4a64-6e18-43d7-bcbb-b757c5396eda", + "parentUUID": "e8451bee-ab72-48cc-996a-ae9de35f53a7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "443722aa-cbf8-4f9c-9fea-330cf00598c7", + "97eff883-842b-4e84-9eea-bcb63ca3f047", + "469d4a64-6e18-43d7-bcbb-b757c5396eda" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6068, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c78b13f6-0ac0-451e-9fb7-4f3c771a3636", + "title": "Delete title", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/02_CRUDTitles.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/02_CRUDTitles.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO Delete title should filter list by name", + "timedOut": false, + "duration": 923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.filterTitles(page, 'input', 'name', editTitleData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getTextColumn(page, 1, 'name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editTitleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce2f9f91-1554-40cc-9efd-8a4723a0b4eb", + "parentUUID": "c78b13f6-0ac0-451e-9fb7-4f3c771a3636", + "isHook": false, + "skipped": false + }, + { + "title": "should delete title", + "fullTitle": "BO - Shop Parameters - Customer Settings : Create, update and delete title in BO Delete title should delete title", + "timedOut": false, + "duration": 4234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_CRUDTitles_deleteTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteTitle', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.deleteTitle(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulDeleteMessage);\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfTitlesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterDelete).to.be.equal(numberOfTitles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68d435d6-d21e-433e-98a1-36784a18c2eb", + "parentUUID": "c78b13f6-0ac0-451e-9fb7-4f3c771a3636", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ce2f9f91-1554-40cc-9efd-8a4723a0b4eb", + "68d435d6-d21e-433e-98a1-36784a18c2eb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5157, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "75ef2b14-3763-4465-af39-22281b7df7aa", + "df2dfae8-2148-46e7-a0c5-4ed719285945", + "47184068-dbc5-4f26-84f7-120fa30f6430", + "30799f7f-495a-4e88-80bb-0b1683a6da93" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7465, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1fa25f58-f239-4f9f-9a46-105b94649347", + "title": "BO - Shop Parameters - Customer Settings : Bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/03_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/03_bulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Customer Settings : Bulk actions\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions \"before all\" hook in \"BO - Shop Parameters - Customer Settings : Bulk actions\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create images\n titlesToCreate.forEach(function (titleToCreate) { return files_1.default.generateImage(titleToCreate.imageName); });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e957b24-049a-43da-94cb-8d0e44c83360", + "parentUUID": "1fa25f58-f239-4f9f-9a46-105b94649347", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Customer Settings : Bulk actions\"", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions \"after all\" hook in \"BO - Shop Parameters - Customer Settings : Bulk actions\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n titlesToCreate.forEach(function (titleToCreate) { return files_1.default.deleteFile(titleToCreate.imageName); });\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9167f2a0-dfde-479a-b145-69e6441cc6f7", + "parentUUID": "1fa25f58-f239-4f9f-9a46-105b94649347", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions should login in BO", + "timedOut": false, + "duration": 1780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69a20690-01f2-4ac5-a6a1-1c91a53f8b04", + "parentUUID": "1fa25f58-f239-4f9f-9a46-105b94649347", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Customer Settings' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions should go to 'Shop Parameters > Customer Settings' page", + "timedOut": false, + "duration": 4858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_goToCustomerSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.customerSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ea2fa16-f821-4f64-afc4-bd800ed08cd1", + "parentUUID": "1fa25f58-f239-4f9f-9a46-105b94649347", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Titles' page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions should go to 'Titles' page", + "timedOut": false, + "duration": 785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_goToTitlesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTitlesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerSettings_1.default.goToTitlesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(titles_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0608e5a-30d7-410f-bd00-f9f73613897b", + "parentUUID": "1fa25f58-f239-4f9f-9a46-105b94649347", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of titles in BO", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions should reset all filters and get number of titles in BO", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTitles = _a.sent();\n (0, chai_1.expect)(numberOfTitles).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e4f2385-7259-461e-acd2-24b055e04ebc", + "parentUUID": "1fa25f58-f239-4f9f-9a46-105b94649347", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "19192db3-b967-40da-ab0a-00715f8a161e", + "title": "Create 2 titles in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/03_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/03_bulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new title page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions Create 2 titles in BO should go to add new title page", + "timedOut": false, + "duration": 755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_goToNewTitlePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewTitlePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ba499ba-08fd-4c9f-a2b5-a5c5bede935e", + "parentUUID": "19192db3-b967-40da-ab0a-00715f8a161e", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions Create 2 titles in BO should create title and check result", + "timedOut": false, + "duration": 1540, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_CreateTitle1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateTitle\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed21fcca-5fef-4a40-b75f-51754c1a1d8c", + "parentUUID": "19192db3-b967-40da-ab0a-00715f8a161e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new title page", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions Create 2 titles in BO should go to add new title page", + "timedOut": false, + "duration": 744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_goToNewTitlePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewTitlePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.goToAddNewTitle(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc9b84c8-5c90-4c61-aaea-ff0a7d8e8e74", + "parentUUID": "19192db3-b967-40da-ab0a-00715f8a161e", + "isHook": false, + "skipped": false + }, + { + "title": "should create title and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions Create 2 titles in BO should create title and check result", + "timedOut": false, + "duration": 1588, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_CreateTitle2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTitlesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateTitle\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditTitle(page, titleToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(titles_1.default.successfulCreationMessage);\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterCreation).to.be.equal(numberOfTitles + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66a404bc-4ded-4248-8219-2cfe1cd7deb0", + "parentUUID": "19192db3-b967-40da-ab0a-00715f8a161e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8ba499ba-08fd-4c9f-a2b5-a5c5bede935e", + "ed21fcca-5fef-4a40-b75f-51754c1a1d8c", + "fc9b84c8-5c90-4c61-aaea-ff0a7d8e8e74", + "66a404bc-4ded-4248-8219-2cfe1cd7deb0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4627, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d569769d-2939-4a82-9575-02538bd57923", + "title": "Delete titles with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/03_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/04_customerSettings/03_titles/03_bulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by title", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions Delete titles with Bulk Actions should filter list by title", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.filterTitles(page, 'input', 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, titles_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTitlesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterFilter).to.be.at.most(numberOfTitles);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfTitlesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, titles_1.default.getTextColumn(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "221c40b8-7001-4481-94d0-a735d7a124b7", + "parentUUID": "d569769d-2939-4a82-9575-02538bd57923", + "isHook": false, + "skipped": false + }, + { + "title": "should delete titles with Bulk Actions and check result", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions Delete titles with Bulk Actions should delete titles with Bulk Actions and check result", + "timedOut": false, + "duration": 1444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_bulkDeleteTitles\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteTitles', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.bulkDeleteTitles(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(titles_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "663311ca-fcd1-4fab-84d6-3c68920fb50d", + "parentUUID": "d569769d-2939-4a82-9575-02538bd57923", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Customer Settings : Bulk actions Delete titles with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 2832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_customerSettings_titles_bulkActions_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfTitlesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, titles_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfTitlesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfTitlesAfterReset).to.be.equal(numberOfTitles);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d243c943-cca1-4877-8c04-f5de7e5772e2", + "parentUUID": "d569769d-2939-4a82-9575-02538bd57923", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "221c40b8-7001-4481-94d0-a735d7a124b7", + "663311ca-fcd1-4fab-84d6-3c68920fb50d", + "d243c943-cca1-4877-8c04-f5de7e5772e2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5180, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "69a20690-01f2-4ac5-a6a1-1c91a53f8b04", + "4ea2fa16-f821-4f64-afc4-bd800ed08cd1", + "e0608e5a-30d7-410f-bd00-f9f73613897b", + "0e4f2385-7259-461e-acd2-24b055e04ebc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7449, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "9787d1d2-f040-4ab0-88b9-856e0134ff35", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1671, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1922702d-0461-4ccd-af21-2c6fcb7e2e45", + "parentUUID": "9787d1d2-f040-4ab0-88b9-856e0134ff35", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5a8b30d-e113-4604-ab80-b2a6490187dc", + "parentUUID": "9787d1d2-f040-4ab0-88b9-856e0134ff35", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79bb931d-9d93-4107-a0ca-d53319a68486", + "parentUUID": "9787d1d2-f040-4ab0-88b9-856e0134ff35", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "9cc42881-ac69-4999-9399-93a11f47e538", + "title": "BO - Shop Parameters - Contact : Filter Contacts table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/01_filterContacts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/01_filterContacts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Filter Contacts table\"", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table \"before all\" hook in \"BO - Shop Parameters - Contact : Filter Contacts table\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4197cd1f-e8da-4cc0-a5d1-7780e90e071f", + "parentUUID": "9cc42881-ac69-4999-9399-93a11f47e538", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Filter Contacts table\"", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table \"after all\" hook in \"BO - Shop Parameters - Contact : Filter Contacts table\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ce50f7eb-4dd6-4ba5-9fef-3fbf22b40202", + "parentUUID": "9cc42881-ac69-4999-9399-93a11f47e538", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table should login in BO", + "timedOut": false, + "duration": 7349, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d49d2b20-76fe-447e-bae7-0add44ec0a8c", + "parentUUID": "9cc42881-ac69-4999-9399-93a11f47e538", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table should go to 'Shop parameters > Contact' page", + "timedOut": false, + "duration": 5226, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_goToContactsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b51e598c-8ac6-4a41-b268-47fcd99d1025", + "parentUUID": "9cc42881-ac69-4999-9399-93a11f47e538", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of contacts in BO", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table should reset all filters and get number of contacts in BO", + "timedOut": false, + "duration": 2019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContacts = _a.sent();\n (0, chai_1.expect)(numberOfContacts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26afb1ab-9cd0-4264-9189-ef7751fa5841", + "parentUUID": "9cc42881-ac69-4999-9399-93a11f47e538", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "title": "Filter Contacts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/01_filterContacts.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/01_filterContacts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_contact '1'", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table Filter Contacts should filter by id_contact '1'", + "timedOut": false, + "duration": 1026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.filterContacts(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfContactsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterFilter).to.be.at.most(numberOfContacts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfContactsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, contact_1.default.getTextColumnFromTableContacts(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d13a211-bb96-4c19-afcc-bec171f78d29", + "parentUUID": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table Filter Contacts should reset all filters", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContactsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterReset).to.equal(numberOfContacts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da23832c-da20-4602-b7e0-70d0a81093f4", + "parentUUID": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Customer service'", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table Filter Contacts should filter by name 'Customer service'", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.filterContacts(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfContactsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterFilter).to.be.at.most(numberOfContacts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfContactsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, contact_1.default.getTextColumnFromTableContacts(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f8d2439-911f-4800-963b-374dc5091ba8", + "parentUUID": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table Filter Contacts should reset all filters", + "timedOut": false, + "duration": 326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_filterNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContactsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterReset).to.equal(numberOfContacts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60594a24-79b0-489e-95e2-d9503cdd0f72", + "parentUUID": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by email 'demo@prestashop.com'", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table Filter Contacts should filter by email 'demo@prestashop.com'", + "timedOut": false, + "duration": 1077, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_filterEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.filterContacts(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfContactsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterFilter).to.be.at.most(numberOfContacts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfContactsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, contact_1.default.getTextColumnFromTableContacts(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19395350-730c-49dd-a69a-20c6a52cd241", + "parentUUID": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table Filter Contacts should reset all filters", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_filterEmailReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContactsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterReset).to.equal(numberOfContacts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dda9ca5e-d83a-4516-aaf6-20e1146672d7", + "parentUUID": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by description 'For any question about a product, an order'", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table Filter Contacts should filter by description 'For any question about a product, an order'", + "timedOut": false, + "duration": 955, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_filterDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.filterContacts(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfContactsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterFilter).to.be.at.most(numberOfContacts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfContactsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, contact_1.default.getTextColumnFromTableContacts(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c632c805-8d67-443a-b262-bd5e37b679ba", + "parentUUID": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter Contacts table Filter Contacts should reset all filters", + "timedOut": false, + "duration": 319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_filterContacts_filterDescriptionReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContactsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterReset).to.equal(numberOfContacts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8d68a54-1097-41ce-a783-1253320bd716", + "parentUUID": "777bdf36-2f11-4ed3-8378-1e0eb1501528", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9d13a211-bb96-4c19-afcc-bec171f78d29", + "da23832c-da20-4602-b7e0-70d0a81093f4", + "2f8d2439-911f-4800-963b-374dc5091ba8", + "60594a24-79b0-489e-95e2-d9503cdd0f72", + "19395350-730c-49dd-a69a-20c6a52cd241", + "dda9ca5e-d83a-4516-aaf6-20e1146672d7", + "c632c805-8d67-443a-b262-bd5e37b679ba", + "f8d68a54-1097-41ce-a783-1253320bd716" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5226, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "d49d2b20-76fe-447e-bae7-0add44ec0a8c", + "b51e598c-8ac6-4a41-b268-47fcd99d1025", + "26afb1ab-9cd0-4264-9189-ef7751fa5841" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14594, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dc59ea67-a9ae-4d5e-aa04-7a7f5423f34c", + "title": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/02_CRUDContact.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/02_CRUDContact.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Create, Update and Delete contact in BO\"", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO \"before all\" hook in \"BO - Shop Parameters - Contact : Create, Update and Delete contact in BO\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d36e99a5-dc38-4cfa-b7bb-dd0b9beed108", + "parentUUID": "dc59ea67-a9ae-4d5e-aa04-7a7f5423f34c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Create, Update and Delete contact in BO\"", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO \"after all\" hook in \"BO - Shop Parameters - Contact : Create, Update and Delete contact in BO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "de55dfb9-6287-4076-baa5-f6188d1a1c3c", + "parentUUID": "dc59ea67-a9ae-4d5e-aa04-7a7f5423f34c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO should login in BO", + "timedOut": false, + "duration": 1804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51d0eecc-b46d-4e0a-a32e-6319f8929f36", + "parentUUID": "dc59ea67-a9ae-4d5e-aa04-7a7f5423f34c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO should go to 'Shop parameters > Contact' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_goToContactsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fce7f6f-5fc8-4d82-8d75-7ddc41c70217", + "parentUUID": "dc59ea67-a9ae-4d5e-aa04-7a7f5423f34c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContacts = _a.sent();\n (0, chai_1.expect)(numberOfContacts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5589e576-5fcd-4bd2-9f9d-1c648f2f7823", + "parentUUID": "dc59ea67-a9ae-4d5e-aa04-7a7f5423f34c", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "d04c7fa6-543c-491a-b5d4-58592ffc8bf4", + "title": "Create contact in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/02_CRUDContact.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/02_CRUDContact.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new contact page", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO Create contact in BO should go to add new contact page", + "timedOut": false, + "duration": 957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_goToAddNewContact\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewContact', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToAddNewContactPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f0a3f20-0df2-4cc0-865f-3a65a9b75f1e", + "parentUUID": "d04c7fa6-543c-491a-b5d4-58592ffc8bf4", + "isHook": false, + "skipped": false + }, + { + "title": "should create contact and check result", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO Create contact in BO should create contact and check result", + "timedOut": false, + "duration": 1502, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_createContact\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfContactsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createContact', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditContact(page, createContactData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(contact_1.default.successfulCreationMessage);\n return [4 /*yield*/, contact_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfContactsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterCreation).to.be.equal(numberOfContacts + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a12ae1cf-04cb-4165-8949-3e7db5594bd2", + "parentUUID": "d04c7fa6-543c-491a-b5d4-58592ffc8bf4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f0a3f20-0df2-4cc0-865f-3a65a9b75f1e", + "a12ae1cf-04cb-4165-8949-3e7db5594bd2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2459, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7380b11a-5271-48b2-8443-01b8fe134de3", + "title": "Update contact created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/02_CRUDContact.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/02_CRUDContact.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by email", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO Update contact created should filter list by email", + "timedOut": false, + "duration": 3000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.filterContacts(page, 'email', createContactData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getTextColumnFromTableContacts(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createContactData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "839c3a83-724e-4660-ab8e-89ed2beaea49", + "parentUUID": "7380b11a-5271-48b2-8443-01b8fe134de3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit contact page", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO Update contact created should go to edit contact page", + "timedOut": false, + "duration": 832, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_goToEditContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditContactPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToEditContactPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "821ffb05-11fd-48d5-bc14-226d9fc23572", + "parentUUID": "7380b11a-5271-48b2-8443-01b8fe134de3", + "isHook": false, + "skipped": false + }, + { + "title": "should update contact", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO Update contact created should update contact", + "timedOut": false, + "duration": 1789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_updateContact\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfContactsAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateContact', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditContact(page, editContactData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(contact_1.default.successfulUpdateMessage);\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfContactsAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterUpdate).to.be.equal(numberOfContacts + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcb6b9de-69c5-493a-8146-e1053184bed6", + "parentUUID": "7380b11a-5271-48b2-8443-01b8fe134de3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "839c3a83-724e-4660-ab8e-89ed2beaea49", + "821ffb05-11fd-48d5-bc14-226d9fc23572", + "fcb6b9de-69c5-493a-8146-e1053184bed6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5621, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9b94e300-8675-49a9-9042-de45f74ea1b9", + "title": "Delete contact", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/02_CRUDContact.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/02_CRUDContact.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by email", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO Delete contact should filter list by email", + "timedOut": false, + "duration": 2920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.filterContacts(page, 'email', editContactData.email)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getTextColumnFromTableContacts(page, 1, 'email')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editContactData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c450a99-f4d4-4061-a53c-f5aaa7435ff3", + "parentUUID": "9b94e300-8675-49a9-9042-de45f74ea1b9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete contact", + "fullTitle": "BO - Shop Parameters - Contact : Create, Update and Delete contact in BO Delete contact should delete contact", + "timedOut": false, + "duration": 1709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_CRUDContact_deleteContact\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfContactsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteContact', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.deleteContact(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(contact_1.default.successfulDeleteMessage);\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfContactsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterDelete).to.be.equal(numberOfContacts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c30a5877-0514-433f-8540-952e040f7fb9", + "parentUUID": "9b94e300-8675-49a9-9042-de45f74ea1b9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1c450a99-f4d4-4061-a53c-f5aaa7435ff3", + "c30a5877-0514-433f-8540-952e040f7fb9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4629, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "51d0eecc-b46d-4e0a-a32e-6319f8929f36", + "1fce7f6f-5fc8-4d82-8d75-7ddc41c70217", + "5589e576-5fcd-4bd2-9f9d-1c648f2f7823" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8678, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c563ed48-7271-4594-b534-3aea983f9af7", + "title": "BO - Shop Parameters - Contact : Bulk delete contacts", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/03_contactBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/03_contactBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Bulk delete contacts\"", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts \"before all\" hook in \"BO - Shop Parameters - Contact : Bulk delete contacts\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f84309bf-a4d0-4c58-8b38-0e8d5f6293f8", + "parentUUID": "c563ed48-7271-4594-b534-3aea983f9af7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Bulk delete contacts\"", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts \"after all\" hook in \"BO - Shop Parameters - Contact : Bulk delete contacts\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "de8e5a67-c431-41aa-8351-b644c38bfc1b", + "parentUUID": "c563ed48-7271-4594-b534-3aea983f9af7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts should login in BO", + "timedOut": false, + "duration": 1764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa63d4a5-3928-498a-9009-7e719b812321", + "parentUUID": "c563ed48-7271-4594-b534-3aea983f9af7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts should go to 'Shop parameters > Contact' page", + "timedOut": false, + "duration": 4899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_goToContactsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e64598b-9a6a-4e6a-b4db-dd9827cd11bc", + "parentUUID": "c563ed48-7271-4594-b534-3aea983f9af7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of contacts in BO", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts should reset all filters and get number of contacts in BO", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContacts = _a.sent();\n (0, chai_1.expect)(numberOfContacts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8fb1cfe-0031-466a-828c-93c5f8e0f335", + "parentUUID": "c563ed48-7271-4594-b534-3aea983f9af7", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "5da31897-68ac-4e23-8ba8-c5a8f2edd875", + "title": "Create 2 contacts in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/03_contactBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/03_contactBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new contact page", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts Create 2 contacts in BO should go to add new contact page", + "timedOut": false, + "duration": 775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_goToNewContactPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewContactPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToAddNewContactPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d42af0c0-be73-4e8f-8642-3c9734a52e4c", + "parentUUID": "5da31897-68ac-4e23-8ba8-c5a8f2edd875", + "isHook": false, + "skipped": false + }, + { + "title": "should create contact and check result", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts Create 2 contacts in BO should create contact and check result", + "timedOut": false, + "duration": 1475, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_CreateContact1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfContactsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateContact\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditContact(page, test.args.contactToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(contact_1.default.successfulCreationMessage);\n return [4 /*yield*/, contact_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfContactsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterCreation).to.be.equal(numberOfContacts + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4319013b-1ba9-443e-9d83-ddc165844249", + "parentUUID": "5da31897-68ac-4e23-8ba8-c5a8f2edd875", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new contact page", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts Create 2 contacts in BO should go to add new contact page", + "timedOut": false, + "duration": 757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_goToNewContactPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewContactPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToAddNewContactPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92818adf-c79f-46cf-86c1-ce045fea2946", + "parentUUID": "5da31897-68ac-4e23-8ba8-c5a8f2edd875", + "isHook": false, + "skipped": false + }, + { + "title": "should create contact and check result", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts Create 2 contacts in BO should create contact and check result", + "timedOut": false, + "duration": 1396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_CreateContact2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfContactsAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateContact\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditContact(page, test.args.contactToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(contact_1.default.successfulCreationMessage);\n return [4 /*yield*/, contact_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfContactsAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterCreation).to.be.equal(numberOfContacts + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3472c7f0-039c-45f7-be47-6fd02c7ae00e", + "parentUUID": "5da31897-68ac-4e23-8ba8-c5a8f2edd875", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d42af0c0-be73-4e8f-8642-3c9734a52e4c", + "4319013b-1ba9-443e-9d83-ddc165844249", + "92818adf-c79f-46cf-86c1-ce045fea2946", + "3472c7f0-039c-45f7-be47-6fd02c7ae00e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4403, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5cadf6ab-05c9-4d0f-a634-f34a5c22f635", + "title": "Delete contacts with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/03_contactBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/03_contactBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by title", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts Delete contacts with Bulk Actions should filter list by title", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.filterContacts(page, 'name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfContactsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterFilter).to.be.at.most(numberOfContacts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfContactsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, contact_1.default.getTextColumnFromTableContacts(page, i, 'name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66b9e210-c872-4e01-9d75-c4dc0b5ff424", + "parentUUID": "5cadf6ab-05c9-4d0f-a634-f34a5c22f635", + "isHook": false, + "skipped": false + }, + { + "title": "should delete contacts with Bulk Actions and check result", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts Delete contacts with Bulk Actions should delete contacts with Bulk Actions and check result", + "timedOut": false, + "duration": 1431, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_bulkDeleteContacts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteContacts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.deleteContactsBulkActions(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(contact_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e55c77cf-79d8-4483-b7aa-236e8c67a83e", + "parentUUID": "5cadf6ab-05c9-4d0f-a634-f34a5c22f635", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Bulk delete contacts Delete contacts with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 328, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_contactBulkActions_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfContactsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContactsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfContactsAfterReset).to.be.equal(numberOfContacts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08292da7-ff5d-4d39-aac2-05022ff46327", + "parentUUID": "5cadf6ab-05c9-4d0f-a634-f34a5c22f635", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "66b9e210-c872-4e01-9d75-c4dc0b5ff424", + "e55c77cf-79d8-4483-b7aa-236e8c67a83e", + "08292da7-ff5d-4d39-aac2-05022ff46327" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2663, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "fa63d4a5-3928-498a-9009-7e719b812321", + "1e64598b-9a6a-4e6a-b4db-dd9827cd11bc", + "b8fb1cfe-0031-466a-828c-93c5f8e0f335" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8672, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "title": "BO - Shop Parameters - Contact : Sort Contacts list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/04_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/01_contacts/04_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Sort Contacts list\"", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list \"before all\" hook in \"BO - Shop Parameters - Contact : Sort Contacts list\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a705bd99-20d7-4427-af2a-6c43828a2fa8", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Sort Contacts list\"", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list \"after all\" hook in \"BO - Shop Parameters - Contact : Sort Contacts list\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ffe2134f-9fed-489d-b9a9-b7fd20073a86", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should login in BO", + "timedOut": false, + "duration": 1786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8b37d9e-4747-4be3-bf1c-27a5a7f45b99", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should go to 'Shop parameters > Contact' page", + "timedOut": false, + "duration": 4847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_goToContactsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81e63346-6aed-4766-b469-0a195963f82f", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of contacts in BO", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should reset all filters and get number of contacts in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfContacts = _a.sent();\n (0, chai_1.expect)(numberOfContacts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea7ae468-52d9-478b-be3a-41275bb8a4ce", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_contact' 'desc' And check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should sort by 'id_contact' 'desc' And check result", + "timedOut": false, + "duration": 2817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, contact_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b13c6a20-1e22-4b59-a6b7-7318d8ff177f", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'asc' And check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should sort by 'name' 'asc' And check result", + "timedOut": false, + "duration": 2807, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, contact_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "748f6724-ce0e-40ef-8e31-ee031c3b107d", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'name' 'desc' And check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should sort by 'name' 'desc' And check result", + "timedOut": false, + "duration": 2787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, contact_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04e97de3-118d-4c2c-82af-0c43be293e38", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'email' 'asc' And check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should sort by 'email' 'asc' And check result", + "timedOut": false, + "duration": 2881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_sortByEmailAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, contact_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d103d19c-50bc-4fca-a73b-cb50b87f5127", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'email' 'desc' And check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should sort by 'email' 'desc' And check result", + "timedOut": false, + "duration": 2827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_sortByEmailDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, contact_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "473e7135-5bbc-4cf4-a5b1-4ada08ece0ce", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'description' 'asc' And check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should sort by 'description' 'asc' And check result", + "timedOut": false, + "duration": 2795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_sortByDescriptionAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, contact_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc6ab144-4a20-4c56-86ba-f316895f7f24", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'description' 'desc' And check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should sort by 'description' 'desc' And check result", + "timedOut": false, + "duration": 2804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_sortByDescriptionDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, contact_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdbda438-2db0-4ad1-a3a7-43329fe313f6", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_contact' 'asc' And check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort Contacts list should sort by 'id_contact' 'asc' And check result", + "timedOut": false, + "duration": 2804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_contacts_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, contact_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc3d0f6c-6963-47a2-9942-d73982fe5322", + "parentUUID": "e6efdb9e-96b7-48c7-a6b4-af76c39c0965", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e8b37d9e-4747-4be3-bf1c-27a5a7f45b99", + "81e63346-6aed-4766-b469-0a195963f82f", + "ea7ae468-52d9-478b-be3a-41275bb8a4ce", + "b13c6a20-1e22-4b59-a6b7-7318d8ff177f", + "748f6724-ce0e-40ef-8e31-ee031c3b107d", + "04e97de3-118d-4c2c-82af-0c43be293e38", + "d103d19c-50bc-4fca-a73b-cb50b87f5127", + "473e7135-5bbc-4cf4-a5b1-4ada08ece0ce", + "dc6ab144-4a20-4c56-86ba-f316895f7f24", + "bdbda438-2db0-4ad1-a3a7-43329fe313f6", + "bc3d0f6c-6963-47a2-9942-d73982fe5322" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 31162, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "02aefa4c-1a3e-462a-84ab-22b34e2f2686", + "title": "BO - Shop Parameters - Contact : Filter and quick edit stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/01_filterAndQuickEditStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/01_filterAndQuickEditStores.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Filter and quick edit stores\"", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores \"before all\" hook in \"BO - Shop Parameters - Contact : Filter and quick edit stores\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43693cad-2ccf-4278-906e-382cfe56b8de", + "parentUUID": "02aefa4c-1a3e-462a-84ab-22b34e2f2686", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Filter and quick edit stores\"", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores \"after all\" hook in \"BO - Shop Parameters - Contact : Filter and quick edit stores\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ef01cbb5-2faa-4f6b-b542-7b6c7b840b25", + "parentUUID": "02aefa4c-1a3e-462a-84ab-22b34e2f2686", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores should login in BO", + "timedOut": false, + "duration": 1751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "071590d2-d75c-464b-9a95-0468b8046e8a", + "parentUUID": "02aefa4c-1a3e-462a-84ab-22b34e2f2686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores should go to 'Shop Parameters > Contact' page", + "timedOut": false, + "duration": 4859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_goToContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27729dd8-7acf-4f52-bcf5-c790532ee2ad", + "parentUUID": "02aefa4c-1a3e-462a-84ab-22b34e2f2686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' page", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores should go to 'Stores' page", + "timedOut": false, + "duration": 972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_goToStoresPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoresPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8f9c130-0ea0-45b1-9140-a9a7bfd15bd4", + "parentUUID": "02aefa4c-1a3e-462a-84ab-22b34e2f2686", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of stores in BO", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores should reset all filters and get number of stores in BO", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStores = _a.sent();\n (0, chai_1.expect)(numberOfStores).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c813b58a-4a2b-4152-9762-5b648ce9d43b", + "parentUUID": "02aefa4c-1a3e-462a-84ab-22b34e2f2686", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "title": "Filter stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/01_filterAndQuickEditStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/01_filterAndQuickEditStores.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by Id '1'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by Id '1'", + "timedOut": false, + "duration": 986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8acaea8-2399-46e7-8ab0-625d14c556ca", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea30a89c-c296-447d-8e7f-998e257db706", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Name 'Dade County'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by Name 'Dade County'", + "timedOut": false, + "duration": 999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ba13318-39f4-4802-b477-f84b7bdd2d82", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da00cd5e-7c71-4b10-9298-691e5b71aee3", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Address '3030 SW 8th St Miami'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by Address '3030 SW 8th St Miami'", + "timedOut": false, + "duration": 1020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f4effd7-9f41-451f-bc35-19f3a6a15089", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ba33b10-0d89-4ea6-93ff-3b19470ae084", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by City 'Miami'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by City 'Miami'", + "timedOut": false, + "duration": 1022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterCity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bb38ea3-cf48-4273-be6a-7cd913b76fb4", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterCity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa5cac8f-0ef9-45a8-99cf-3e9b9768f5c6", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by PostCode '33135'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by PostCode '33135'", + "timedOut": false, + "duration": 984, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterPostCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96ebe0d2-c951-4276-bbbd-131805ca2f6b", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterPostCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a104d9d-888a-4577-83c8-41719cea2b6f", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by State 'Florida'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by State 'Florida'", + "timedOut": false, + "duration": 1030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterState\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0db4f86-87a4-41b4-98eb-9765d4f7e61a", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterState\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2f7b19b-1129-4f18-871f-1f8725b13c18", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by country 'United States'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by country 'United States'", + "timedOut": false, + "duration": 1033, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filtercountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6743df56-9e04-45ea-b40e-ea5ad633bfcd", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2994, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFiltercountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31a1c8c4-c6d5-4034-8a1e-93cc1807c822", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Phone '+33 421227463'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by Phone '+33 421227463'", + "timedOut": false, + "duration": 1044, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterPhone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b17c9450-9bd9-442f-aaa8-d1bce90867a1", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterPhone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "540fdc80-3deb-43c2-8e3f-65647a118731", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Fax '0660446713'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by Fax '0660446713'", + "timedOut": false, + "duration": 976, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterFax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8b3cd48-f6ca-4186-aa68-b2c0585a5c0d", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterFax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11c1b7f0-39c5-4e5c-80b5-7e4d7197d536", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Status '1'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should filter by Status '1'", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, row, storeStatus, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterFilter)) return [3 /*break*/, 9];\n if (!(test.args.column === 'Status')) return [3 /*break*/, 6];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.filterValue === '1');\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, stores_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 7:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 8;\n case 8:\n row++;\n return [3 /*break*/, 4];\n case 9: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94e75ac8-081e-4af7-b3bf-14a5fdabf5e3", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Filter stores should reset all filters", + "timedOut": false, + "duration": 2985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilter\".concat(test.args.column), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60a4ddac-8951-4270-be5c-c2262abd59ca", + "parentUUID": "447bf4b7-17f1-4c0e-9311-beb3a74be63f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d8acaea8-2399-46e7-8ab0-625d14c556ca", + "ea30a89c-c296-447d-8e7f-998e257db706", + "2ba13318-39f4-4802-b477-f84b7bdd2d82", + "da00cd5e-7c71-4b10-9298-691e5b71aee3", + "2f4effd7-9f41-451f-bc35-19f3a6a15089", + "6ba33b10-0d89-4ea6-93ff-3b19470ae084", + "5bb38ea3-cf48-4273-be6a-7cd913b76fb4", + "aa5cac8f-0ef9-45a8-99cf-3e9b9768f5c6", + "96ebe0d2-c951-4276-bbbd-131805ca2f6b", + "4a104d9d-888a-4577-83c8-41719cea2b6f", + "f0db4f86-87a4-41b4-98eb-9765d4f7e61a", + "e2f7b19b-1129-4f18-871f-1f8725b13c18", + "6743df56-9e04-45ea-b40e-ea5ad633bfcd", + "31a1c8c4-c6d5-4034-8a1e-93cc1807c822", + "b17c9450-9bd9-442f-aaa8-d1bce90867a1", + "540fdc80-3deb-43c2-8e3f-65647a118731", + "d8b3cd48-f6ca-4186-aa68-b2c0585a5c0d", + "11c1b7f0-39c5-4e5c-80b5-7e4d7197d536", + "94e75ac8-081e-4af7-b3bf-14a5fdabf5e3", + "60a4ddac-8951-4270-be5c-c2262abd59ca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 39563, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ef1bf5e-e2d0-434d-b4bd-cdd6bf5a861f", + "title": "Quick edit stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/01_filterAndQuickEditStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/01_filterAndQuickEditStores.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by name 'E Fort Lauderdale'", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Quick edit stores should filter by name 'E Fort Lauderdale'", + "timedOut": false, + "duration": 1007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', stores_2.default.second.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'sl!name')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(stores_2.default.second.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8049d66-b4a4-45e3-8fcf-df3d08987b65", + "parentUUID": "1ef1bf5e-e2d0-434d-b4bd-cdd6bf5a861f", + "isHook": false, + "skipped": false + }, + { + "title": "should disable first element in grid", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Quick edit stores should disable first element in grid", + "timedOut": false, + "duration": 1311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_disableStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var storeStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Store\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.setStoreStatus(page, 1, test.args.statusWanted)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, 1)];\n case 3:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.statusWanted);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3471e495-1d06-4320-9503-7280243b1b03", + "parentUUID": "1ef1bf5e-e2d0-434d-b4bd-cdd6bf5a861f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable first element in grid", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Quick edit stores should enable first element in grid", + "timedOut": false, + "duration": 1340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_enableStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var storeStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Store\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.setStoreStatus(page, 1, test.args.statusWanted)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, 1)];\n case 3:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.statusWanted);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a30d1129-3242-4f0b-bff1-3be5bfd15b42", + "parentUUID": "1ef1bf5e-e2d0-434d-b4bd-cdd6bf5a861f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Filter and quick edit stores Quick edit stores should reset all filters", + "timedOut": false, + "duration": 2941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_filterAndQuickEditStores_resetFilterAfterQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a20fe41c-6c0d-438c-976a-1ccaac3cbb9c", + "parentUUID": "1ef1bf5e-e2d0-434d-b4bd-cdd6bf5a861f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e8049d66-b4a4-45e3-8fcf-df3d08987b65", + "3471e495-1d06-4320-9503-7280243b1b03", + "a30d1129-3242-4f0b-bff1-3be5bfd15b42", + "a20fe41c-6c0d-438c-976a-1ccaac3cbb9c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6599, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "071590d2-d75c-464b-9a95-0468b8046e8a", + "27729dd8-7acf-4f52-bcf5-c790532ee2ad", + "c8f9c130-0ea0-45b1-9140-a9a7bfd15bd4", + "c813b58a-4a2b-4152-9762-5b648ce9d43b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7610, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d56992ce-c401-49c0-ab1b-31d080dd2a95", + "title": "BO - Shop Parameters - Contact : Create, update and delete Store in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/02_CRUDStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/02_CRUDStores.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Create, update and delete Store in BO\"", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO \"before all\" hook in \"BO - Shop Parameters - Contact : Create, update and delete Store in BO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d9dfedd-833d-430a-ab92-8033e2e8e716", + "parentUUID": "d56992ce-c401-49c0-ab1b-31d080dd2a95", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Create, update and delete Store in BO\"", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO \"after all\" hook in \"BO - Shop Parameters - Contact : Create, update and delete Store in BO\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a39a0071-0392-4d97-94ab-8717119ebc0c", + "parentUUID": "d56992ce-c401-49c0-ab1b-31d080dd2a95", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO should login in BO", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa985ecb-3b6b-4f23-b71c-a7a0b37f506b", + "parentUUID": "d56992ce-c401-49c0-ab1b-31d080dd2a95", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO should go to 'Shop Parameters > Contact' page", + "timedOut": false, + "duration": 4843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_goToContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c4152a4-7e0e-43ae-8b06-d2512c1e13b0", + "parentUUID": "d56992ce-c401-49c0-ab1b-31d080dd2a95", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' page", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO should go to 'Stores' page", + "timedOut": false, + "duration": 843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_goToStoresPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoresPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94580560-30cb-4aa2-9880-7a07e22599b5", + "parentUUID": "d56992ce-c401-49c0-ab1b-31d080dd2a95", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of stores in BO", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO should reset all filters and get number of stores in BO", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStores = _a.sent();\n (0, chai_1.expect)(numberOfStores).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3cb2450-f947-4916-ad53-bfc55acdd67e", + "parentUUID": "d56992ce-c401-49c0-ab1b-31d080dd2a95", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "006ceb11-b837-4ae3-95df-e2f81b48f669", + "title": "Create store in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/02_CRUDStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/02_CRUDStores.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO Create store in BO should go to add new store page", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_goToAddNewStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewStore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa711db6-11da-4c65-bd35-50a9ba35c6fe", + "parentUUID": "006ceb11-b837-4ae3-95df-e2f81b48f669", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO Create store in BO should create store and check result", + "timedOut": false, + "duration": 1896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_createStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "540c91de-ec9b-4950-82c7-a5e8deae0a74", + "parentUUID": "006ceb11-b837-4ae3-95df-e2f81b48f669", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aa711db6-11da-4c65-bd35-50a9ba35c6fe", + "540c91de-ec9b-4950-82c7-a5e8deae0a74" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2809, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bd2e7f4b-5ce1-416f-bdf5-aa00c9473db3", + "title": "Update store created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/02_CRUDStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/02_CRUDStores.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO Update store created should filter list by name", + "timedOut": false, + "duration": 991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', createStoreData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'sl!name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createStoreData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8a069cf-3520-4876-9488-f6fb2074d6c3", + "parentUUID": "bd2e7f4b-5ce1-416f-bdf5-aa00c9473db3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit store page", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO Update store created should go to edit store page", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_goToEditStorePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditStorePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.gotoEditStorePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdcfc5fe-b7cb-4eb8-b4e5-65f0eee01aab", + "parentUUID": "bd2e7f4b-5ce1-416f-bdf5-aa00c9473db3", + "isHook": false, + "skipped": false + }, + { + "title": "should update store", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO Update store created should update store", + "timedOut": false, + "duration": 4804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_updateStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateStore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, editStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulUpdateMessage);\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfStoresAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterUpdate).to.be.equal(numberOfStores + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5020c5e8-b024-4473-9229-0a634cd296b1", + "parentUUID": "bd2e7f4b-5ce1-416f-bdf5-aa00c9473db3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a8a069cf-3520-4876-9488-f6fb2074d6c3", + "bdcfc5fe-b7cb-4eb8-b4e5-65f0eee01aab", + "5020c5e8-b024-4473-9229-0a634cd296b1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6702, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cd76b3c2-32a0-4138-bcd8-7a9c73cb7b5e", + "title": "Delete store", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/02_CRUDStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/02_CRUDStores.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO Delete store should filter list by name", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', editStoreData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'sl!name')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(editStoreData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6100260-a51b-499c-ad61-a892bdbc5707", + "parentUUID": "cd76b3c2-32a0-4138-bcd8-7a9c73cb7b5e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete store", + "fullTitle": "BO - Shop Parameters - Contact : Create, update and delete Store in BO Delete store should delete store", + "timedOut": false, + "duration": 4029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_CRUDStores_deleteStore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteStore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.deleteStore(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulDeleteMessage);\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfStoresAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterDelete).to.be.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0445260a-170d-4918-a9c1-8a4b6de2ebb3", + "parentUUID": "cd76b3c2-32a0-4138-bcd8-7a9c73cb7b5e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d6100260-a51b-499c-ad61-a892bdbc5707", + "0445260a-170d-4918-a9c1-8a4b6de2ebb3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5034, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "aa985ecb-3b6b-4f23-b71c-a7a0b37f506b", + "0c4152a4-7e0e-43ae-8b06-d2512c1e13b0", + "94580560-30cb-4aa2-9880-7a07e22599b5", + "c3cb2450-f947-4916-ad53-bfc55acdd67e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7475, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e02ea054-9c12-4ebf-9dad-94c9a83a84e1", + "title": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/03_bulkActionsStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/03_bulkActionsStores.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store\"", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store \"before all\" hook in \"BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c942939d-a8bc-4c36-bd0e-7802be5d0e61", + "parentUUID": "e02ea054-9c12-4ebf-9dad-94c9a83a84e1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store\"", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store \"after all\" hook in \"BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1a48dd35-95d3-458c-930f-b83f33126b48", + "parentUUID": "e02ea054-9c12-4ebf-9dad-94c9a83a84e1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store should login in BO", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51c93771-87e7-4834-9fda-2eabb0593a9f", + "parentUUID": "e02ea054-9c12-4ebf-9dad-94c9a83a84e1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store should go to 'Shop Parameters > Contact' page", + "timedOut": false, + "duration": 4855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_goToContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d05f64d-905b-4a36-b4a2-0a70487072f6", + "parentUUID": "e02ea054-9c12-4ebf-9dad-94c9a83a84e1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' page", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store should go to 'Stores' page", + "timedOut": false, + "duration": 864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_goToStoresPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoresPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7b5135b-610f-4960-babc-ed592f17302a", + "parentUUID": "e02ea054-9c12-4ebf-9dad-94c9a83a84e1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of stores in BO", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store should reset all filters and get number of stores in BO", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStores = _a.sent();\n (0, chai_1.expect)(numberOfStores).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98edd547-895c-4361-8c6d-6db67f97ce96", + "parentUUID": "e02ea054-9c12-4ebf-9dad-94c9a83a84e1", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "f1a5a731-23eb-4676-bf09-743bb029b2f9", + "title": "Create 2 stores in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/03_bulkActionsStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/03_bulkActionsStores.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Create 2 stores in BO should go to add new store page", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_goToNewStorePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewStorePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21bb192f-d333-419d-9682-46dc0618e4ef", + "parentUUID": "f1a5a731-23eb-4676-bf09-743bb029b2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Create 2 stores in BO should create store and check result", + "timedOut": false, + "duration": 1874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_CreateStore1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateStore\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, storeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4560d7c8-0622-4f11-9167-a8df22c8e9fd", + "parentUUID": "f1a5a731-23eb-4676-bf09-743bb029b2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Create 2 stores in BO should go to add new store page", + "timedOut": false, + "duration": 901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_goToNewStorePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewStorePage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ecded90-70e8-4b2d-b0e8-be90a9ac348d", + "parentUUID": "f1a5a731-23eb-4676-bf09-743bb029b2f9", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Create 2 stores in BO should create store and check result", + "timedOut": false, + "duration": 1797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_CreateStore2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CreateStore\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, storeToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + index + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1776532a-276b-4967-985a-46774b0e47b4", + "parentUUID": "f1a5a731-23eb-4676-bf09-743bb029b2f9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "21bb192f-d333-419d-9682-46dc0618e4ef", + "4560d7c8-0622-4f11-9167-a8df22c8e9fd", + "3ecded90-70e8-4b2d-b0e8-be90a9ac348d", + "1776532a-276b-4967-985a-46774b0e47b4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5487, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1145a32a-51aa-4f63-8d36-26ef3084b054", + "title": "Enable, disable and delete stores with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/03_bulkActionsStores.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/03_bulkActionsStores.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Enable, disable and delete stores with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.most(numberOfStores);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfStoresAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, stores_1.default.getTextColumn(page, i, 'sl!name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fdebbda-4cfc-4f51-880c-edca5fdef148", + "parentUUID": "1145a32a-51aa-4f63-8d36-26ef3084b054", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk disable elements in grid", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Enable, disable and delete stores with Bulk Actions should bulk disable elements in grid", + "timedOut": false, + "duration": 2611, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_disableStores\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterBulkUpdateStatus, row, storeStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Stores\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.bulkUpdateStoreStatus(page, test.args.statusWanted)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterBulkUpdateStatus = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterBulkUpdateStatus)) return [3 /*break*/, 7];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.statusWanted);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "648b70b7-cca2-4f38-9e35-9a8b4f0112af", + "parentUUID": "1145a32a-51aa-4f63-8d36-26ef3084b054", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk enable elements in grid", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Enable, disable and delete stores with Bulk Actions should bulk enable elements in grid", + "timedOut": false, + "duration": 601, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_enableStores\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterBulkUpdateStatus, row, storeStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Stores\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.bulkUpdateStoreStatus(page, test.args.statusWanted)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterBulkUpdateStatus = _a.sent();\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfStoresAfterBulkUpdateStatus)) return [3 /*break*/, 7];\n return [4 /*yield*/, stores_1.default.getStoreStatus(page, row)];\n case 5:\n storeStatus = _a.sent();\n (0, chai_1.expect)(storeStatus).to.equal(test.args.statusWanted);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "425bbca9-5098-48e2-959b-c19cddb393d9", + "parentUUID": "1145a32a-51aa-4f63-8d36-26ef3084b054", + "isHook": false, + "skipped": false + }, + { + "title": "should delete stores with Bulk Actions and check result", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Enable, disable and delete stores with Bulk Actions should delete stores with Bulk Actions and check result", + "timedOut": false, + "duration": 1225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_bulkDeleteStores\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteStores', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.bulkDeleteStores(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(stores_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e4b0e9f-0d11-461a-ad9b-46abb2eb20e3", + "parentUUID": "1145a32a-51aa-4f63-8d36-26ef3084b054", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Enable/Disable/Delete with Bulk Actions store Enable, disable and delete stores with Bulk Actions should reset all filters", + "timedOut": false, + "duration": 2961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_bulkActionsStores_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.be.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f971f21d-4a42-457a-a6b0-e45479527df6", + "parentUUID": "1145a32a-51aa-4f63-8d36-26ef3084b054", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2fdebbda-4cfc-4f51-880c-edca5fdef148", + "648b70b7-cca2-4f38-9e35-9a8b4f0112af", + "425bbca9-5098-48e2-959b-c19cddb393d9", + "6e4b0e9f-0d11-461a-ad9b-46abb2eb20e3", + "f971f21d-4a42-457a-a6b0-e45479527df6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8389, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "51c93771-87e7-4834-9fda-2eabb0593a9f", + "0d05f64d-905b-4a36-b4a2-0a70487072f6", + "a7b5135b-610f-4960-babc-ed592f17302a", + "98edd547-895c-4361-8c6d-6db67f97ce96" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7489, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "title": "BO - Shop Parameters - Contact : Configure contact details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/04_contactDetails.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/04_contactDetails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Configure contact details\"", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details \"before all\" hook in \"BO - Shop Parameters - Contact : Configure contact details\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c98f6da4-d1ad-4431-bf62-8a277a7eab47", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Configure contact details\"", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details \"after all\" hook in \"BO - Shop Parameters - Contact : Configure contact details\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e009f903-1638-4d38-9cc7-2ade0314cf82", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details should login in BO", + "timedOut": false, + "duration": 1773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "619e5c6d-b3ad-43d9-b82a-d5141388583e", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details should go to 'Shop Parameters > Contact' page", + "timedOut": false, + "duration": 4863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_contactDetails_goToContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95e826ae-0488-4eed-b247-3b6b3e811fdb", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to stores page", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details should go to stores page", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_contactDetails_goToStoresPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoresPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "640f687f-1cb1-49d8-84e9-2af84608a684", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": false, + "skipped": false + }, + { + "title": "should fill contact details form", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details should fill contact details form", + "timedOut": false, + "duration": 771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_contactDetails_configureContactDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'configureContactDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.setContactDetails(page, storesContactToCreate)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.contactFormSuccessfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad941475-2d25-41c9-abe2-1bb8456fc01e", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details should view my shop", + "timedOut": false, + "duration": 1797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_contactDetails_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0263b50-58b2-41dd-a363-02c75f31329a", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": false, + "skipped": false + }, + { + "title": "should check contact details in FO", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details should check contact details in FO", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_contactDetails_checkContactDetailsInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var storeInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkContactDetailsInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getStoreInformation(page)];\n case 2:\n storeInformation = _a.sent();\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.name);\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.email);\n (0, chai_1.expect)(storeInformation).to.not.contains(storesContactToCreate.registrationNumber);\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.address1);\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.address2);\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.postcode);\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.city);\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.country);\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.phone);\n (0, chai_1.expect)(storeInformation).to.contains(storesContactToCreate.fax);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da70e3a3-44a9-4cd7-be14-10806c334fd2", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details should go back to BO", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_contactDetails_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "999b822d-4d9a-417b-a579-c950dc793e36", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": false, + "skipped": false + }, + { + "title": "should back to default contact details information", + "fullTitle": "BO - Shop Parameters - Contact : Configure contact details should back to default contact details information", + "timedOut": false, + "duration": 723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_contactDetails_backToDefaultInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToDefaultInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.setContactDetails(page, stores_2.default.contact)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.contactFormSuccessfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8c82f8d-4bbe-4b58-b812-eb4cc217b132", + "parentUUID": "16dbef66-e34a-4228-ab20-0c0359c757bf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "619e5c6d-b3ad-43d9-b82a-d5141388583e", + "95e826ae-0488-4eed-b247-3b6b3e811fdb", + "640f687f-1cb1-49d8-84e9-2af84608a684", + "ad941475-2d25-41c9-abe2-1bb8456fc01e", + "a0263b50-58b2-41dd-a363-02c75f31329a", + "da70e3a3-44a9-4cd7-be14-10806c334fd2", + "999b822d-4d9a-417b-a579-c950dc793e36", + "d8c82f8d-4bbe-4b58-b812-eb4cc217b132" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10803, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6d613969-19af-42e1-9170-b318d0172346", + "title": "BO - Shop Parameters - Contact : Sort and pagination stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Contact : Sort and pagination stores\"", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores \"before all\" hook in \"BO - Shop Parameters - Contact : Sort and pagination stores\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c172e23-addf-4a23-844e-3063b22c797f", + "parentUUID": "6d613969-19af-42e1-9170-b318d0172346", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Contact : Sort and pagination stores\"", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores \"after all\" hook in \"BO - Shop Parameters - Contact : Sort and pagination stores\"", + "timedOut": false, + "duration": 18, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "59902a5d-093f-42e6-913f-114b86350535", + "parentUUID": "6d613969-19af-42e1-9170-b318d0172346", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores should login in BO", + "timedOut": false, + "duration": 1766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a76d84bd-456d-45cf-a5cd-e406e9e8a7e4", + "parentUUID": "6d613969-19af-42e1-9170-b318d0172346", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Contact' page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores should go to 'Contact' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c871921f-39f4-4056-a6ca-fae4a9efdd8c", + "parentUUID": "6d613969-19af-42e1-9170-b318d0172346", + "isHook": false, + "skipped": false + }, + { + "title": "should go to stores page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores should go to stores page", + "timedOut": false, + "duration": 848, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToStoresPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoresPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06951ece-6e1e-4923-9b6b-9b832bf6ea9e", + "parentUUID": "6d613969-19af-42e1-9170-b318d0172346", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of stores in BO", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores should reset all filters and get number of stores in BO", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStores = _a.sent();\n (0, chai_1.expect)(numberOfStores).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d202539-5b86-4e26-a633-174618932a2b", + "parentUUID": "6d613969-19af-42e1-9170-b318d0172346", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "title": "Sort stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_store' 'down'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'id_store' 'down'", + "timedOut": false, + "duration": 961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9314002d-9e65-4c84-9368-82b434628aaf", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'sl!name' 'up'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'sl!name' 'up'", + "timedOut": false, + "duration": 958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abe1ddcf-e6f9-4f16-b4a8-830a6dedc304", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'sl!name' 'down'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'sl!name' 'down'", + "timedOut": false, + "duration": 952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18c39fac-40c6-4df8-909a-0f3eb1052400", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'sl!address1' 'up'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'sl!address1' 'up'", + "timedOut": false, + "duration": 948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByAddressAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8da1cdb7-fc60-4160-a5df-4ff78e7a22eb", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'sl!address1' 'down'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'sl!address1' 'down'", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByAddressDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7206a85-519e-40fa-bfd4-f35e820cfab7", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'city' 'up'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'city' 'up'", + "timedOut": false, + "duration": 956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByCityAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b33b737-6376-4a87-865e-5157f4a44072", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'city' 'down'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'city' 'down'", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByCityDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "334f394f-2c7c-4eb0-ae76-23cf7beed99f", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'postcode' 'up'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'postcode' 'up'", + "timedOut": false, + "duration": 959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByPostCodeAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a475bf42-8d2f-4ada-bf03-499232114a40", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'postcode' 'down'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'postcode' 'down'", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByPostCodeDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5fd5112-1af3-4a06-b2f2-4808e3293345", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'st!name' 'up'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'st!name' 'up'", + "timedOut": false, + "duration": 956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByStateAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb998f04-fc36-43f9-9d8c-e2ed7d091285", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'st!name' 'down'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'st!name' 'down'", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByStateDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c354c74-21a6-45fa-8247-843078cf0f4b", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'cl!name' 'up'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'cl!name' 'up'", + "timedOut": false, + "duration": 954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByCountryAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11e564e2-5f14-423b-9db5-a28170128533", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'city' 'down'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'city' 'down'", + "timedOut": false, + "duration": 959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByCountryDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c52269d-4270-4e27-b02a-7152125376f9", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_store' 'up'", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Sort stores should sort by 'id_store' 'up'", + "timedOut": false, + "duration": 951, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, stores_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd461c08-f438-4863-ad9c-e85415dd6f95", + "parentUUID": "aed0f6e1-be6a-431c-ac12-8e85571b0482", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9314002d-9e65-4c84-9368-82b434628aaf", + "abe1ddcf-e6f9-4f16-b4a8-830a6dedc304", + "18c39fac-40c6-4df8-909a-0f3eb1052400", + "8da1cdb7-fc60-4160-a5df-4ff78e7a22eb", + "b7206a85-519e-40fa-bfd4-f35e820cfab7", + "0b33b737-6376-4a87-865e-5157f4a44072", + "334f394f-2c7c-4eb0-ae76-23cf7beed99f", + "a475bf42-8d2f-4ada-bf03-499232114a40", + "d5fd5112-1af3-4a06-b2f2-4808e3293345", + "fb998f04-fc36-43f9-9d8c-e2ed7d091285", + "3c354c74-21a6-45fa-8247-843078cf0f4b", + "11e564e2-5f14-423b-9db5-a28170128533", + "3c52269d-4270-4e27-b02a-7152125376f9", + "fd461c08-f438-4863-ad9c-e85415dd6f95" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13329, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fb8930d7-bc9c-4049-a433-f9a1b7f88ed9", + "title": "Pagination stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "2e46c485-f871-4912-8ad0-e5cfbda47465", + "title": "Create 16 stores for pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "c8482441-ee49-4538-a91f-4a99ad209c90", + "title": "Create store n°1 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°1 in BO should go to add new store page", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0672aeeb-8424-472e-b54d-6fa9f3fbd8c8", + "parentUUID": "c8482441-ee49-4538-a91f-4a99ad209c90", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°1 in BO should create store and check result", + "timedOut": false, + "duration": 1880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe75cca9-6c3c-4498-9f1f-8838a8c80039", + "parentUUID": "c8482441-ee49-4538-a91f-4a99ad209c90", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0672aeeb-8424-472e-b54d-6fa9f3fbd8c8", + "fe75cca9-6c3c-4498-9f1f-8838a8c80039" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2773, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8ef65772-e434-4de1-ae95-ea9d40590f41", + "title": "Create store n°2 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°2 in BO should go to add new store page", + "timedOut": false, + "duration": 891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecaa3a13-f970-4c65-8a46-f8170667faa3", + "parentUUID": "8ef65772-e434-4de1-ae95-ea9d40590f41", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°2 in BO should create store and check result", + "timedOut": false, + "duration": 1851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ed9b595-18d8-4e31-a476-9ee0797014c2", + "parentUUID": "8ef65772-e434-4de1-ae95-ea9d40590f41", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ecaa3a13-f970-4c65-8a46-f8170667faa3", + "7ed9b595-18d8-4e31-a476-9ee0797014c2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2742, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c1c97ea1-7e19-4c6c-a5b1-cb27c4b41973", + "title": "Create store n°3 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°3 in BO should go to add new store page", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c01be047-b1d0-4e21-8f3f-607a6bac40d8", + "parentUUID": "c1c97ea1-7e19-4c6c-a5b1-cb27c4b41973", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°3 in BO should create store and check result", + "timedOut": false, + "duration": 1895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32e7caab-87e7-4cd4-927d-b5a5336af264", + "parentUUID": "c1c97ea1-7e19-4c6c-a5b1-cb27c4b41973", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c01be047-b1d0-4e21-8f3f-607a6bac40d8", + "32e7caab-87e7-4cd4-927d-b5a5336af264" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2815, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "78c5386e-3568-478f-b67a-07f981ce2a4a", + "title": "Create store n°4 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°4 in BO should go to add new store page", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca900e75-5bc8-4ce5-b698-e8572431d14b", + "parentUUID": "78c5386e-3568-478f-b67a-07f981ce2a4a", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°4 in BO should create store and check result", + "timedOut": false, + "duration": 1827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "079b5aa3-14de-4e6b-9158-7ad8d8d2388c", + "parentUUID": "78c5386e-3568-478f-b67a-07f981ce2a4a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca900e75-5bc8-4ce5-b698-e8572431d14b", + "079b5aa3-14de-4e6b-9158-7ad8d8d2388c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2715, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6c9c5378-d39b-4673-863d-6fe789b31303", + "title": "Create store n°5 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°5 in BO should go to add new store page", + "timedOut": false, + "duration": 948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7772044-c072-4491-b85a-8f9e91a05359", + "parentUUID": "6c9c5378-d39b-4673-863d-6fe789b31303", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°5 in BO should create store and check result", + "timedOut": false, + "duration": 1918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27f05d51-d538-4db8-9907-367d476901b6", + "parentUUID": "6c9c5378-d39b-4673-863d-6fe789b31303", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c7772044-c072-4491-b85a-8f9e91a05359", + "27f05d51-d538-4db8-9907-367d476901b6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2866, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2a6407d0-2b11-4cf2-af72-b2de54ed1dd3", + "title": "Create store n°6 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°6 in BO should go to add new store page", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2793781-e686-429a-bb65-041b9fb913e2", + "parentUUID": "2a6407d0-2b11-4cf2-af72-b2de54ed1dd3", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°6 in BO should create store and check result", + "timedOut": false, + "duration": 1921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77b960c8-d38a-4b85-98f2-1a3ef4e27ac0", + "parentUUID": "2a6407d0-2b11-4cf2-af72-b2de54ed1dd3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b2793781-e686-429a-bb65-041b9fb913e2", + "77b960c8-d38a-4b85-98f2-1a3ef4e27ac0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2833, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4925a478-fddd-438e-b398-c3054e75393b", + "title": "Create store n°7 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°7 in BO should go to add new store page", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f6c2fe0-25ae-4160-8bc3-8043e6a92d71", + "parentUUID": "4925a478-fddd-438e-b398-c3054e75393b", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°7 in BO should create store and check result", + "timedOut": false, + "duration": 2001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "291a23c0-ce67-4fd6-9281-3d51e1bbd737", + "parentUUID": "4925a478-fddd-438e-b398-c3054e75393b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2f6c2fe0-25ae-4160-8bc3-8043e6a92d71", + "291a23c0-ce67-4fd6-9281-3d51e1bbd737" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2900, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9266ed99-083a-4452-ba1d-151c9aae3acb", + "title": "Create store n°8 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°8 in BO should go to add new store page", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79741626-9bd6-4805-8b01-eb7261ee9d1d", + "parentUUID": "9266ed99-083a-4452-ba1d-151c9aae3acb", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°8 in BO should create store and check result", + "timedOut": false, + "duration": 1920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec393492-7a5d-46b3-b317-98338d2d53a2", + "parentUUID": "9266ed99-083a-4452-ba1d-151c9aae3acb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "79741626-9bd6-4805-8b01-eb7261ee9d1d", + "ec393492-7a5d-46b3-b317-98338d2d53a2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2818, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "97c7b26e-3436-45e0-b3c8-6421c4d018f4", + "title": "Create store n°9 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°9 in BO should go to add new store page", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f1b0c42-dafd-4433-96ce-6850e3f6824e", + "parentUUID": "97c7b26e-3436-45e0-b3c8-6421c4d018f4", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°9 in BO should create store and check result", + "timedOut": false, + "duration": 1968, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99c72fb6-810a-4cce-b184-db2f8190e4d5", + "parentUUID": "97c7b26e-3436-45e0-b3c8-6421c4d018f4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4f1b0c42-dafd-4433-96ce-6850e3f6824e", + "99c72fb6-810a-4cce-b184-db2f8190e4d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2863, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "954e40f5-7c79-40a7-9155-338d81ef8b60", + "title": "Create store n°10 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°10 in BO should go to add new store page", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42e1edf9-59d7-47b4-ac94-b5f1747dbd94", + "parentUUID": "954e40f5-7c79-40a7-9155-338d81ef8b60", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°10 in BO should create store and check result", + "timedOut": false, + "duration": 1883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c1ef418-b33d-4268-8a56-9f851333865c", + "parentUUID": "954e40f5-7c79-40a7-9155-338d81ef8b60", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "42e1edf9-59d7-47b4-ac94-b5f1747dbd94", + "4c1ef418-b33d-4268-8a56-9f851333865c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2803, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0492affc-c576-4346-b3c5-592ce789cb1c", + "title": "Create store n°11 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°11 in BO should go to add new store page", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "456ac4d7-e9e8-4d2e-bab0-63ff87807739", + "parentUUID": "0492affc-c576-4346-b3c5-592ce789cb1c", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°11 in BO should create store and check result", + "timedOut": false, + "duration": 1967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f268dee1-89f9-4aec-866d-0ca4448e587e", + "parentUUID": "0492affc-c576-4346-b3c5-592ce789cb1c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "456ac4d7-e9e8-4d2e-bab0-63ff87807739", + "f268dee1-89f9-4aec-866d-0ca4448e587e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2869, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eb999754-2ef2-4acc-84ac-af18c9c66d81", + "title": "Create store n°12 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°12 in BO should go to add new store page", + "timedOut": false, + "duration": 895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cf30331-1851-4764-9eb5-657a093cf08c", + "parentUUID": "eb999754-2ef2-4acc-84ac-af18c9c66d81", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°12 in BO should create store and check result", + "timedOut": false, + "duration": 1928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "531ab697-6c41-4faf-8000-8f819810d6e1", + "parentUUID": "eb999754-2ef2-4acc-84ac-af18c9c66d81", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8cf30331-1851-4764-9eb5-657a093cf08c", + "531ab697-6c41-4faf-8000-8f819810d6e1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2823, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "331eb4ce-ff34-4d80-a7ff-f8b8a5c02036", + "title": "Create store n°13 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°13 in BO should go to add new store page", + "timedOut": false, + "duration": 919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0763684f-1eda-4b05-9aec-919713532d88", + "parentUUID": "331eb4ce-ff34-4d80-a7ff-f8b8a5c02036", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°13 in BO should create store and check result", + "timedOut": false, + "duration": 1982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "311f2868-b1ef-467d-9d93-bb7fa2020a8e", + "parentUUID": "331eb4ce-ff34-4d80-a7ff-f8b8a5c02036", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0763684f-1eda-4b05-9aec-919713532d88", + "311f2868-b1ef-467d-9d93-bb7fa2020a8e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2901, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4c734806-9cac-4c4f-8268-03a32996fd18", + "title": "Create store n°14 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°14 in BO should go to add new store page", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9391960c-53b8-4518-bf0b-ba8645a99387", + "parentUUID": "4c734806-9cac-4c4f-8268-03a32996fd18", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°14 in BO should create store and check result", + "timedOut": false, + "duration": 1913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e08c991-8637-4515-a721-8ffab56d24e8", + "parentUUID": "4c734806-9cac-4c4f-8268-03a32996fd18", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9391960c-53b8-4518-bf0b-ba8645a99387", + "6e08c991-8637-4515-a721-8ffab56d24e8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2822, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "87a59118-005b-4793-952c-5421b223275c", + "title": "Create store n°15 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°15 in BO should go to add new store page", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b2ebe61-524a-433b-912e-dd00bc667c98", + "parentUUID": "87a59118-005b-4793-952c-5421b223275c", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°15 in BO should create store and check result", + "timedOut": false, + "duration": 1949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35bb8989-5a00-417b-b603-2ea7669eacee", + "parentUUID": "87a59118-005b-4793-952c-5421b223275c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5b2ebe61-524a-433b-912e-dd00bc667c98", + "35bb8989-5a00-417b-b603-2ea7669eacee" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2842, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60567777-d9cd-4ca1-8068-8b425a96ae03", + "title": "Create store n°16 in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new store page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°16 in BO should go to add new store page", + "timedOut": false, + "duration": 904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_goToAddStorePage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddStorePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.goToNewStorePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5aef6dc0-26ce-465e-b5f9-e295c6c9c703", + "parentUUID": "60567777-d9cd-4ca1-8068-8b425a96ae03", + "isHook": false, + "skipped": false + }, + { + "title": "should create store and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Create 16 stores for pagination Create store n°16 in BO should create store and check result", + "timedOut": false, + "duration": 1986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_createStore15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfStoresAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createStore\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditStore(page, createStoreData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(stores_1.default.successfulCreationMessage);\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterCreation).to.be.equal(numberOfStores + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f01badfd-cc39-49d4-b7c9-52150a94f5ab", + "parentUUID": "60567777-d9cd-4ca1-8068-8b425a96ae03", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5aef6dc0-26ce-465e-b5f9-e295c6c9c703", + "f01badfd-cc39-49d4-b7c9-52150a94f5ab" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2890, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4a906424-6028-40a0-9429-07e8b0476d18", + "title": "Paginate stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Paginate stores should change the items number to 20 per page", + "timedOut": false, + "duration": 1063, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f56c84cf-a060-43d8-8971-d967ee4d6a50", + "parentUUID": "4a906424-6028-40a0-9429-07e8b0476d18", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Paginate stores should click on next", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9db7b8b6-6113-4043-8b9b-08572e90dadd", + "parentUUID": "4a906424-6028-40a0-9429-07e8b0476d18", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Paginate stores should click on previous", + "timedOut": false, + "duration": 990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7669860-f788-400e-a5e3-c4383094b28d", + "parentUUID": "4a906424-6028-40a0-9429-07e8b0476d18", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Paginate stores should change the items number to 50 per page", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58a4961d-edb6-48c2-a165-a8b342b8919a", + "parentUUID": "4a906424-6028-40a0-9429-07e8b0476d18", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f56c84cf-a060-43d8-8971-d967ee4d6a50", + "9db7b8b6-6113-4043-8b9b-08572e90dadd", + "e7669860-f788-400e-a5e3-c4383094b28d", + "58a4961d-edb6-48c2-a165-a8b342b8919a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3983, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1b782330-6cff-44bc-88b6-a603345aef4a", + "title": "Delete created stores", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/05_contact/02_stores/05_sortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Delete created stores should filter list by name", + "timedOut": false, + "duration": 1412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'sl!name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.at.least(16);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfStoresAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, stores_1.default.getTextColumn(page, i, 'sl!name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "316b0732-e924-4bb3-90e0-2e4ec3c773c0", + "parentUUID": "1b782330-6cff-44bc-88b6-a603345aef4a", + "isHook": false, + "skipped": false + }, + { + "title": "should delete stores with Bulk Actions and check result", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Delete created stores should delete stores with Bulk Actions and check result", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_bulkDeleteStores\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteStores', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.bulkDeleteStores(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(stores_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee0d4d08-6e1b-4f01-9d1f-07ab66007210", + "parentUUID": "1b782330-6cff-44bc-88b6-a603345aef4a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Contact : Sort and pagination stores Pagination stores Delete created stores should reset all filters", + "timedOut": false, + "duration": 2941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_contact_stores_sortAndPagination_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStoresAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterReset).to.be.equal(numberOfStores);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d777f614-4f74-45c6-a678-7e1e602f3d16", + "parentUUID": "1b782330-6cff-44bc-88b6-a603345aef4a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "316b0732-e924-4bb3-90e0-2e4ec3c773c0", + "ee0d4d08-6e1b-4f01-9d1f-07ab66007210", + "d777f614-4f74-45c6-a678-7e1e602f3d16" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5062, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a76d84bd-456d-45cf-a5cd-e406e9e8a7e4", + "c871921f-39f4-4056-a6ca-fae4a9efdd8c", + "06951ece-6e1e-4923-9b6b-9b832bf6ea9e", + "9d202539-5b86-4e26-a633-174618932a2b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7484, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "40061a53-d0c9-460f-9388-38f5c1f9ae47", + "title": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/01_filterSeoPages.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/01_filterSeoPages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ad5c7c8-bb3d-4fee-a67c-d8fe5e18f4a0", + "parentUUID": "40061a53-d0c9-460f-9388-38f5c1f9ae47", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3a8c206f-4982-4f50-ab9a-3dcb4e778102", + "parentUUID": "40061a53-d0c9-460f-9388-38f5c1f9ae47", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url should login in BO", + "timedOut": false, + "duration": 1745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "132e0679-1033-420d-b7db-5b7a2a104fd9", + "parentUUID": "40061a53-d0c9-460f-9388-38f5c1f9ae47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Traffic & SEO' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url should go to 'Shop Parameters > Traffic & SEO' page", + "timedOut": false, + "duration": 4988, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_goToSeoAndUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoAndUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "451db7c8-c933-4938-97fe-5116666c675b", + "parentUUID": "40061a53-d0c9-460f-9388-38f5c1f9ae47", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of SEO pages in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url should reset all filters and get number of SEO pages in BO", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPages = _a.sent();\n (0, chai_1.expect)(numberOfSeoPages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc0a3dbb-5077-4820-8a2b-4bc36cb95d8f", + "parentUUID": "40061a53-d0c9-460f-9388-38f5c1f9ae47", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "title": "Filter SEO pages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/01_filterSeoPages.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/01_filterSeoPages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_meta '3'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url Filter SEO pages should filter by id_meta '3'", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_filterIdMeta\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterFilter).to.be.at.most(numberOfSeoPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSeoPagesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, seoAndUrls_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b299ea7-4c2e-4b26-a561-a8323981bbbc", + "parentUUID": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url Filter SEO pages should reset all filters", + "timedOut": false, + "duration": 387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_filterIdMetaReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterReset).to.equal(numberOfSeoPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b3770e8-e625-4e94-9233-ad60ca83277e", + "parentUUID": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by page 'contact'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url Filter SEO pages should filter by page 'contact'", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_filterPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterFilter).to.be.at.most(numberOfSeoPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSeoPagesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, seoAndUrls_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5499656-1384-4bb0-bad4-f065b5f6190b", + "parentUUID": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url Filter SEO pages should reset all filters", + "timedOut": false, + "duration": 386, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_filterPageReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterReset).to.equal(numberOfSeoPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a671a9ae-cb10-4802-8299-b84d862ecc8d", + "parentUUID": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by title 'Contact us'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url Filter SEO pages should filter by title 'Contact us'", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_filterTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterFilter).to.be.at.most(numberOfSeoPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSeoPagesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, seoAndUrls_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e288294-8af9-465f-af14-5fe74761f382", + "parentUUID": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url Filter SEO pages should reset all filters", + "timedOut": false, + "duration": 366, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_filterTitleReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterReset).to.equal(numberOfSeoPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38904c71-8f96-4ad4-bb31-95d2420fb035", + "parentUUID": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by url_rewrite 'contact-us'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url Filter SEO pages should filter by url_rewrite 'contact-us'", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_filterUrlRewrite\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterFilter).to.be.at.most(numberOfSeoPages);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSeoPagesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, seoAndUrls_1.default.getTextColumnFromTable(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2381e46-c0e2-4175-aea4-cb990674d229", + "parentUUID": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter SEO pages with id, page, page title and friendly url Filter SEO pages should reset all filters", + "timedOut": false, + "duration": 381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_filterSeoPages_filterUrlRewriteReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPagesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterReset).to.equal(numberOfSeoPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a01f970-0636-4918-9c3b-4d95ea9c1ee1", + "parentUUID": "9cac18cb-3495-4293-8c51-88ae7fd10780", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6b299ea7-4c2e-4b26-a561-a8323981bbbc", + "4b3770e8-e625-4e94-9233-ad60ca83277e", + "d5499656-1384-4bb0-bad4-f065b5f6190b", + "a671a9ae-cb10-4802-8299-b84d862ecc8d", + "5e288294-8af9-465f-af14-5fe74761f382", + "38904c71-8f96-4ad4-bb31-95d2420fb035", + "a2381e46-c0e2-4175-aea4-cb990674d229", + "7a01f970-0636-4918-9c3b-4d95ea9c1ee1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5348, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "132e0679-1033-420d-b7db-5b7a2a104fd9", + "451db7c8-c933-4938-97fe-5116666c675b", + "fc0a3dbb-5077-4820-8a2b-4bc36cb95d8f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8742, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2cd1ab75-30f3-4107-911c-84ff6f48928d", + "title": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/02_CRUDSeoPage.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/02_CRUDSeoPage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a32ac91b-702c-4fa3-8df0-6edacbfcc6b3", + "parentUUID": "2cd1ab75-30f3-4107-911c-84ff6f48928d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "35b32aee-de53-4478-9452-ab4bedbefb01", + "parentUUID": "2cd1ab75-30f3-4107-911c-84ff6f48928d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page should login in BO", + "timedOut": false, + "duration": 1776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3d7438c-f6dc-4ee0-9650-a7c2369eef4a", + "parentUUID": "2cd1ab75-30f3-4107-911c-84ff6f48928d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Traffic & SEO' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page should go to 'Shop Parameters > Traffic & SEO' page", + "timedOut": false, + "duration": 4943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_goToSeoAndUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoAndUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a07bc440-0124-4c86-89f6-113b2a1dc4e0", + "parentUUID": "2cd1ab75-30f3-4107-911c-84ff6f48928d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of SEO pages in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page should reset all filters and get number of SEO pages in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPages = _a.sent();\n (0, chai_1.expect)(numberOfSeoPages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce8ef585-aa46-417c-ac83-71a6046f5b72", + "parentUUID": "2cd1ab75-30f3-4107-911c-84ff6f48928d", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "49fb677d-4428-45f7-bb65-833867b36d8e", + "title": "Create seo page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/02_CRUDSeoPage.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/02_CRUDSeoPage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new seo page page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Create seo page should go to new seo page page", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_goToNewSeoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewSeoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToNewSeoUrlPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47dbde0d-fd1c-4c5d-a0fc-b5a465e0d6aa", + "parentUUID": "49fb677d-4428-45f7-bb65-833867b36d8e", + "isHook": false, + "skipped": false + }, + { + "title": "should create seo page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Create seo page should create seo page", + "timedOut": false, + "duration": 1857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_createSeoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSeoPagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSeoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSeoPage(page, createSeoPageData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(seoAndUrls_1.default.successfulCreationMessage);\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterCreation).to.equal(numberOfSeoPages + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "351f9de4-7edb-4c78-b538-1f8b0951304e", + "parentUUID": "49fb677d-4428-45f7-bb65-833867b36d8e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "47dbde0d-fd1c-4c5d-a0fc-b5a465e0d6aa", + "351f9de4-7edb-4c78-b538-1f8b0951304e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2680, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a4bf9237-2bd6-4d7d-9509-2fa3e8968008", + "title": "Update seo page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/02_CRUDSeoPage.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/02_CRUDSeoPage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by seo page name", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Update seo page should filter by seo page name", + "timedOut": false, + "duration": 960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.filterTable(page, 'page', createSeoPageData.page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, seoAndUrls_1.default.getTextColumnFromTable(page, 1, 'page')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(createSeoPageData.page);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69617b79-30a5-486a-871f-bfb6e108d08b", + "parentUUID": "a4bf9237-2bd6-4d7d-9509-2fa3e8968008", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit first seo page page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Update seo page should go to edit first seo page page", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_goToEditSeoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditSeoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToEditSeoUrlPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.editPageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "302d2fb5-346e-4654-b20d-5f7732d7f47b", + "parentUUID": "a4bf9237-2bd6-4d7d-9509-2fa3e8968008", + "isHook": false, + "skipped": false + }, + { + "title": "should edit seo page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Update seo page should edit seo page", + "timedOut": false, + "duration": 1827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_editSeoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editSeoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSeoPage(page, editSeoPageData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(seoAndUrls_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27702c6c-8e14-43cb-89a4-4f9b2a7be560", + "parentUUID": "a4bf9237-2bd6-4d7d-9509-2fa3e8968008", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check number of seo pages", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Update seo page should reset filter and check number of seo pages", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_resetFilterAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterCreation).to.equal(numberOfSeoPages + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2864161e-5342-41dd-9413-37ead4a91602", + "parentUUID": "a4bf9237-2bd6-4d7d-9509-2fa3e8968008", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "69617b79-30a5-486a-871f-bfb6e108d08b", + "302d2fb5-346e-4654-b20d-5f7732d7f47b", + "27702c6c-8e14-43cb-89a4-4f9b2a7be560", + "2864161e-5342-41dd-9413-37ead4a91602" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3951, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "29002d83-d4d5-4fe4-a061-905ef56e0c5a", + "title": "Delete seo page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/02_CRUDSeoPage.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/02_CRUDSeoPage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by seo page name", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Delete seo page should filter by seo page name", + "timedOut": false, + "duration": 973, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.filterTable(page, 'page', editSeoPageData.page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, seoAndUrls_1.default.getTextColumnFromTable(page, 1, 'page')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(editSeoPageData.page);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0342ff9f-3042-49b2-812a-d01dc7b34308", + "parentUUID": "29002d83-d4d5-4fe4-a061-905ef56e0c5a", + "isHook": false, + "skipped": false + }, + { + "title": "should delete seo page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Delete seo page should delete seo page", + "timedOut": false, + "duration": 1466, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_deleteSeoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSeoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.deleteSeoUrlPage(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(seoAndUrls_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bcda32f-8d2c-4541-813e-128c4023e15c", + "parentUUID": "29002d83-d4d5-4fe4-a061-905ef56e0c5a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check number of seo pages", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete seo page Delete seo page should reset filter and check number of seo pages", + "timedOut": false, + "duration": 375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_CRUDSeoPage_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterCreation).to.equal(numberOfSeoPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7bd4b22-4e47-4ee9-9b58-305ccd48c455", + "parentUUID": "29002d83-d4d5-4fe4-a061-905ef56e0c5a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0342ff9f-3042-49b2-812a-d01dc7b34308", + "6bcda32f-8d2c-4541-813e-128c4023e15c", + "f7bd4b22-4e47-4ee9-9b58-305ccd48c455" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2814, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a3d7438c-f6dc-4ee0-9650-a7c2369eef4a", + "a07bc440-0124-4c86-89f6-113b2a1dc4e0", + "ce8ef585-aa46-417c-ac83-71a6046f5b72" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8726, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "023ce11c-9125-4942-8e72-02ec24bbce77", + "title": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/06_sortAndPaginationSeoPages.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/06_sortAndPaginationSeoPages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47775a01-4479-4016-a585-dad1d9a95b36", + "parentUUID": "023ce11c-9125-4942-8e72-02ec24bbce77", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "da19022c-c5f5-4083-85b6-96459b423638", + "parentUUID": "023ce11c-9125-4942-8e72-02ec24bbce77", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages should login in BO", + "timedOut": false, + "duration": 1738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8daf1b8f-8fc7-4007-a051-ac946bde8493", + "parentUUID": "023ce11c-9125-4942-8e72-02ec24bbce77", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Traffic & SEO' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages should go to 'Shop Parameters > Traffic & SEO' page", + "timedOut": false, + "duration": 4968, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_goToSeoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80890afb-817f-42e9-958f-e6507653ef04", + "parentUUID": "023ce11c-9125-4942-8e72-02ec24bbce77", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of SEO pages in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages should reset all filters and get number of SEO pages in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPages = _a.sent();\n (0, chai_1.expect)(numberOfSeoPages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31267fca-7bf3-4f37-b4ae-92164e05c58f", + "parentUUID": "023ce11c-9125-4942-8e72-02ec24bbce77", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "title": "Sort seo pages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/06_sortAndPaginationSeoPages.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/06_sortAndPaginationSeoPages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_meta' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Sort seo pages should sort by 'id_meta' 'desc' and check result", + "timedOut": false, + "duration": 3435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0983a974-9e20-49c1-8304-ee5379649693", + "parentUUID": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'page' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Sort seo pages should sort by 'page' 'asc' and check result", + "timedOut": false, + "duration": 3434, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_sortByPageAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7604c999-009c-46e0-b923-12cbe21d47c3", + "parentUUID": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'page' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Sort seo pages should sort by 'page' 'desc' and check result", + "timedOut": false, + "duration": 3417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_sortByPageDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "688aed0c-7d29-4db7-a31b-0f0a2d5fb9f1", + "parentUUID": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'title' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Sort seo pages should sort by 'title' 'asc' and check result", + "timedOut": false, + "duration": 3431, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_sortByTitleAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "815c2629-0e6f-4300-8807-9e98a499d5fd", + "parentUUID": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'title' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Sort seo pages should sort by 'title' 'desc' and check result", + "timedOut": false, + "duration": 3423, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_sortByTitleDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dada31a0-e99b-4db6-8b48-234ea43c8862", + "parentUUID": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'url_rewrite' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Sort seo pages should sort by 'url_rewrite' 'asc' and check result", + "timedOut": false, + "duration": 3434, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_sortByFriendlyUrlAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "229338d1-dae5-4df1-a92e-bbfe221d3e51", + "parentUUID": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'url_rewrite' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Sort seo pages should sort by 'url_rewrite' 'desc' and check result", + "timedOut": false, + "duration": 3421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_sortFriendlyUrlDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c97f815-8e0a-49fb-b0ed-0c2eb0a3f096", + "parentUUID": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_meta' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Sort seo pages should sort by 'id_meta' 'asc' and check result", + "timedOut": false, + "duration": 3452, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aede9115-b355-4058-b199-63f26b5dd941", + "parentUUID": "e32a7d0d-9b4f-4c07-8958-3b63055e2fcd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0983a974-9e20-49c1-8304-ee5379649693", + "7604c999-009c-46e0-b923-12cbe21d47c3", + "688aed0c-7d29-4db7-a31b-0f0a2d5fb9f1", + "815c2629-0e6f-4300-8807-9e98a499d5fd", + "dada31a0-e99b-4db6-8b48-234ea43c8862", + "229338d1-dae5-4df1-a92e-bbfe221d3e51", + "0c97f815-8e0a-49fb-b0ed-0c2eb0a3f096", + "aede9115-b355-4058-b199-63f26b5dd941" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27447, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bd5d92cf-6c6f-48c1-a0e2-3004f644055d", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/06_sortAndPaginationSeoPages.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/06_sortAndPaginationSeoPages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 10 per page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Pagination next and previous should change the items number to 10 per page", + "timedOut": false, + "duration": 274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_changeItemNumberTo10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.selectPaginationLimit(page, 10)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains(\"(page 1 / \".concat(Math.ceil(numberOfSeoPages / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89a95e38-82b4-4b82-9701-1b2f6498cd72", + "parentUUID": "bd5d92cf-6c6f-48c1-a0e2-3004f644055d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Pagination next and previous should click on next", + "timedOut": false, + "duration": 827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains(\"(page 2 / \".concat(Math.ceil(numberOfSeoPages / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7969ddd6-236a-40ba-b3fc-1a25077f01a7", + "parentUUID": "bd5d92cf-6c6f-48c1-a0e2-3004f644055d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Pagination next and previous should click on previous", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains(\"(page 1 / \".concat(Math.ceil(numberOfSeoPages / 10), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c2baafc-e0cc-4950-9553-725edb60e899", + "parentUUID": "bd5d92cf-6c6f-48c1-a0e2-3004f644055d", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Sort and pagination seo pages Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_sortAndPaginationSeoPages_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contains(\"(page 1 / \".concat(Math.ceil(numberOfSeoPages / 50), \")\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92c83565-dcd7-492e-badd-7b91b1443b18", + "parentUUID": "bd5d92cf-6c6f-48c1-a0e2-3004f644055d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "89a95e38-82b4-4b82-9701-1b2f6498cd72", + "7969ddd6-236a-40ba-b3fc-1a25077f01a7", + "5c2baafc-e0cc-4950-9553-725edb60e899", + "92c83565-dcd7-492e-badd-7b91b1443b18" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2238, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "8daf1b8f-8fc7-4007-a051-ac946bde8493", + "80890afb-817f-42e9-958f-e6507653ef04", + "31267fca-7bf3-4f37-b4ae-92164e05c58f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8713, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5984866e-36dd-46e7-ab1e-b36d194d7975", + "title": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/07_bulkDeleteSeoPages.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/07_bulkDeleteSeoPages.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3e21459-6dbe-4bc0-9074-ec88a74ddab5", + "parentUUID": "5984866e-36dd-46e7-ab1e-b36d194d7975", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d738d09e-68f7-4c30-86b1-63a7996a699c", + "parentUUID": "5984866e-36dd-46e7-ab1e-b36d194d7975", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages should login in BO", + "timedOut": false, + "duration": 1763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fc0015c-b5c0-459e-9eb3-3d72a4df26fa", + "parentUUID": "5984866e-36dd-46e7-ab1e-b36d194d7975", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > SEO and Urls' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages should go to 'Shop Parameters > SEO and Urls' page", + "timedOut": false, + "duration": 4950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_goToSeoAndUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoAndUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09aaa314-5b28-4157-9176-02fdb569a406", + "parentUUID": "5984866e-36dd-46e7-ab1e-b36d194d7975", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of SEO pages in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages should reset all filters and get number of SEO pages in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPages = _a.sent();\n (0, chai_1.expect)(numberOfSeoPages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ed1cc8d-03a1-4247-b650-efbbeea2b0a5", + "parentUUID": "5984866e-36dd-46e7-ab1e-b36d194d7975", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "0cc2c2c6-3e8a-466c-a04e-0a4cafbab6c8", + "title": "Create 2 seo pages", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/07_bulkDeleteSeoPages.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/07_bulkDeleteSeoPages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new seo page page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages Create 2 seo pages should go to new seo page page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_goToNewSeoPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewSeoPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToNewSeoUrlPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bee34dd-045d-4fb8-b736-69d7cc7fd1ea", + "parentUUID": "0cc2c2c6-3e8a-466c-a04e-0a4cafbab6c8", + "isHook": false, + "skipped": false + }, + { + "title": "should create seo page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages Create 2 seo pages should create seo page", + "timedOut": false, + "duration": 1759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_createSeoPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSeoPagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSeoPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSeoPage(page, seoPageData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(seoAndUrls_1.default.successfulCreationMessage);\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterCreation).to.equal(numberOfSeoPages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c35e930-989c-47a4-9ee3-5ecf1b08d7d9", + "parentUUID": "0cc2c2c6-3e8a-466c-a04e-0a4cafbab6c8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new seo page page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages Create 2 seo pages should go to new seo page page", + "timedOut": false, + "duration": 777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_goToNewSeoPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewSeoPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToNewSeoUrlPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "765cf454-a808-462f-8e4f-4b26202f092a", + "parentUUID": "0cc2c2c6-3e8a-466c-a04e-0a4cafbab6c8", + "isHook": false, + "skipped": false + }, + { + "title": "should create seo page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages Create 2 seo pages should create seo page", + "timedOut": false, + "duration": 1838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_createSeoPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSeoPagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSeoPage\".concat(index + 1), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSeoPage(page, seoPageData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(seoAndUrls_1.default.successfulCreationMessage);\n return [4 /*yield*/, seoAndUrls_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSeoPagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterCreation).to.equal(numberOfSeoPages + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be8d5709-4d36-4824-b772-7296a34280d7", + "parentUUID": "0cc2c2c6-3e8a-466c-a04e-0a4cafbab6c8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7bee34dd-045d-4fb8-b736-69d7cc7fd1ea", + "0c35e930-989c-47a4-9ee3-5ecf1b08d7d9", + "765cf454-a808-462f-8e4f-4b26202f092a", + "be8d5709-4d36-4824-b772-7296a34280d7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5162, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0abbde29-0b26-4c1c-bd1c-90e97d812f2a", + "title": "Delete seo pages by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/07_bulkDeleteSeoPages.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/01_seoAndUrls/07_bulkDeleteSeoPages.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by seo page name", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages Delete seo pages by bulk actions should filter by seo page name", + "timedOut": false, + "duration": 940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.filterTable(page, 'title', 'toDelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getTextColumnFromTable(page, 1, 'title')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('ToDelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a56e5de6-9610-476e-b942-22ad97bb25a1", + "parentUUID": "0abbde29-0b26-4c1c-bd1c-90e97d812f2a", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete seo page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages Delete seo pages by bulk actions should bulk delete seo page", + "timedOut": false, + "duration": 1497, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_bulkDeleteSeoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteSeoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.bulkDeleteSeoUrlPage(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(seoAndUrls_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "761774f8-ed09-47c4-b4d3-bb2e5463db4a", + "parentUUID": "0abbde29-0b26-4c1c-bd1c-90e97d812f2a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check number of seo pages", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete seo pages Delete seo pages by bulk actions should reset filter and check number of seo pages", + "timedOut": false, + "duration": 381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoAndUrls_bulkDeleteSeoPages_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSeoPagesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSeoPagesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSeoPagesAfterCreation).to.equal(numberOfSeoPages);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06332577-a138-4631-a0fc-54c72c48c1fc", + "parentUUID": "0abbde29-0b26-4c1c-bd1c-90e97d812f2a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a56e5de6-9610-476e-b942-22ad97bb25a1", + "761774f8-ed09-47c4-b4d3-bb2e5463db4a", + "06332577-a138-4631-a0fc-54c72c48c1fc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2818, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "5fc0015c-b5c0-459e-9eb3-3d72a4df26fa", + "09aaa314-5b28-4157-9176-02fdb569a406", + "5ed1cc8d-03a1-4247-b650-efbbeea2b0a5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8720, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6ab73343-085e-4c6e-b307-596f167786fc", + "title": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/02_setUpUrls/03_enableDisableFriendlyURL.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/02_setUpUrls/03_enableDisableFriendlyURL.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc1f17bc-c2ec-4dca-b5a1-abf401ef05aa", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8855d48f-1853-4db5-acb6-316095884c03", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL should login in BO", + "timedOut": false, + "duration": 1759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec66af75-b2c1-4d00-8a2a-c0c188bc16cd", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > SEO and Urls' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL should go to 'Shop Parameters > SEO and Urls' page", + "timedOut": false, + "duration": 4956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableFriendlyURL_goToSeoAndUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoAndUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8473085c-010d-494e-b14e-d3f5594e674a", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": false, + "skipped": false + }, + { + "title": "should disable friendly URL", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL should disable friendly URL", + "timedOut": false, + "duration": 4653, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableFriendlyURL_disableFriendlyUrl\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableFriendlyUrl', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.enableDisableFriendlyURL(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(seoAndUrls_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f1a633f-d443-48c9-aba9-81e74cf93f1e", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check the URL", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL should go to FO and check the URL", + "timedOut": false, + "duration": 2397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableFriendlyURL_checkDisabledFriendlyUrlFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDisabledFriendlyUrlFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getCurrentURL(page)];\n case 3:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contains('index.php');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f050319e-20fd-4f71-91a4-2977011fd404", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableFriendlyURL_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93769198-f8ea-4578-8647-bf2b0e863f0c", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": false, + "skipped": false + }, + { + "title": "should enable friendly URL", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL should enable friendly URL", + "timedOut": false, + "duration": 5326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableFriendlyURL_enableFriendlyUrl\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableFriendlyUrl', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.enableDisableFriendlyURL(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(seoAndUrls_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36952c89-5a01-42c2-93e3-9ffefd355a96", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check the URL", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable friendly URL should go to FO and check the URL", + "timedOut": false, + "duration": 2859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableFriendlyURL_checkEnabledFriendlyUrlFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEnabledFriendlyUrlFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCurrentURL(page)];\n case 4:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contains('/en/');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94531112-d76b-4159-ae4e-4813d7c83df3", + "parentUUID": "6ab73343-085e-4c6e-b307-596f167786fc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ec66af75-b2c1-4d00-8a2a-c0c188bc16cd", + "8473085c-010d-494e-b14e-d3f5594e674a", + "6f1a633f-d443-48c9-aba9-81e74cf93f1e", + "f050319e-20fd-4f71-91a4-2977011fd404", + "93769198-f8ea-4578-8647-bf2b0e863f0c", + "36952c89-5a01-42c2-93e3-9ffefd355a96", + "94531112-d76b-4159-ae4e-4813d7c83df3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21957, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0035d141-1137-4840-8d77-925838342b99", + "title": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/02_setUpUrls/04_enableDisableAccentedURL.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/02_setUpUrls/04_enableDisableAccentedURL.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61f727c7-7de3-4c15-9e92-b52e7d04232d", + "parentUUID": "0035d141-1137-4840-8d77-925838342b99", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "38724381-3b86-4809-9180-cc3ff867aae8", + "parentUUID": "0035d141-1137-4840-8d77-925838342b99", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL should login in BO", + "timedOut": false, + "duration": 2700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9906ef11-5062-426d-b12b-5c466436e32a", + "parentUUID": "0035d141-1137-4840-8d77-925838342b99", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "title": "Enable/Disable accented URL", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/02_setUpUrls/04_enableDisableAccentedURL.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/02_setUpUrls/04_enableDisableAccentedURL.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8695ad15-2984-4aee-b1a0-86747060a2bc", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 243, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1594929-5a55-4df5-94b4-ed69bf0376c0", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should choose 'Standard product'", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "646c621b-f8a4-44a8-aad9-743e0fd1b340", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e28eb918-ce9b-4226-bf58-82650ed58772", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should create standard product", + "timedOut": false, + "duration": 5664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f889b4e8-39a5-4baa-b02b-211d3715c75c", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > SEO & Urls' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go to 'Shop Parameters > SEO & Urls' page", + "timedOut": false, + "duration": 3686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_goToSeoPageToenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToSeoPageTo\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "998a9fe3-f0f8-461c-ba2d-197710737056", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should enable accented URL", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should enable accented URL", + "timedOut": false, + "duration": 4624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_enableAccentedUrl\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AccentedUrl\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.enableDisableAccentedURL(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(seoAndUrls_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52fcf4e6-6e37-4652-b6da-484c2310e465", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_goToProductsPageAfterenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPageAfter\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToSubMenu(page, seoAndUrls_1.default.catalogParentLink, seoAndUrls_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7cdcd17-a64e-4fbf-8797-01794ff0bf53", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should reset all filters", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_resetFilterAfterenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfter\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9d19fb8-94bf-4d22-aa7a-3b89923c1812", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by the created product name", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should filter by the created product name", + "timedOut": false, + "duration": 459, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_filterProductToenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterProductTo\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "259bb39e-e07f-415c-9f25-8fc270d14677", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created product page and reset the friendly url", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go to the created product page and reset the friendly url", + "timedOut": false, + "duration": 2889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_resetFriendlyURlenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFriendlyURl\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [4 /*yield*/, add_1.default.goToTab(page, 'seo')];\n case 4:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.clickOnGenerateUrlFromNameButton(page)];\n case 5:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 6:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0b32246-d922-4517-bcbe-0cf86def68f1", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product URL", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should check the product URL", + "timedOut": false, + "duration": 2088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_checkProductUrlenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductUrl\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Go to product page in FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getCurrentURL(page)];\n case 3:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contains(test.args.productNameInURL.toLowerCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2cf9858-cc92-4bbb-a447-74e90d52273d", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_goBackToBOenable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b169e261-ff1f-4a70-8006-d1e5c24a501e", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > SEO & Urls' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go to 'Shop Parameters > SEO & Urls' page", + "timedOut": false, + "duration": 4291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_goToSeoPageTodisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToSeoPageTo\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToSubMenu(page, add_1.default.shopParametersParentLink, add_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6acb79c-6868-4b34-b85f-2e64ad3fc749", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should disable accented URL", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should disable accented URL", + "timedOut": false, + "duration": 4624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_disableAccentedUrl\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"AccentedUrl\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.enableDisableAccentedURL(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(seoAndUrls_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9a8abc4-886e-45aa-9c87-434cb3350c8b", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_goToProductsPageAfterdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToProductsPageAfter\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToSubMenu(page, seoAndUrls_1.default.catalogParentLink, seoAndUrls_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "584e8473-31ae-4140-92b5-e2ddf5250c22", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should reset all filters", + "timedOut": false, + "duration": 3048, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_resetFilterAfterdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilterAfter\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ffb3ba0-42bb-49cc-8f5e-58937cc82093", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by the created product name", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should filter by the created product name", + "timedOut": false, + "duration": 426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_filterProductTodisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterProductTo\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(productName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "faf800ee-a017-40ea-9123-60303183c772", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created product page and reset the friendly url", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go to the created product page and reset the friendly url", + "timedOut": false, + "duration": 3018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_resetFriendlyURldisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFriendlyURl\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [4 /*yield*/, add_1.default.goToTab(page, 'seo')];\n case 4:\n _a.sent();\n return [4 /*yield*/, seoTab_1.default.clickOnGenerateUrlFromNameButton(page)];\n case 5:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 6:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2dcba75-ed90-47a1-8927-e5b5b4f6bc08", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product URL", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should check the product URL", + "timedOut": false, + "duration": 2067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_checkProductUrldisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductUrl\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Go to product page in FO\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.getCurrentURL(page)];\n case 3:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contains(test.args.productNameInURL.toLowerCase());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f93768f9-b094-49a6-94c8-9340faa4801c", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_goBackToBOdisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBO\".concat(test.args.action), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7e5693d-c2b1-4626-bb2f-a80702f46c37", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should delete product", + "timedOut": false, + "duration": 2129, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var testResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n testResult = _a.sent();\n (0, chai_1.expect)(testResult).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4602197c-0902-4376-b97d-4762fd0a3cb2", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable accented URL Enable/Disable accented URL should reset all filters", + "timedOut": false, + "duration": 2985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_setUpUrls_enableDisableAccentedURL_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64f3a98b-4ea0-433d-bcf6-0c1cb2adcad2", + "parentUUID": "b97a7414-8a83-4a50-b8a4-4667ac61b223", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8695ad15-2984-4aee-b1a0-86747060a2bc", + "f1594929-5a55-4df5-94b4-ed69bf0376c0", + "646c621b-f8a4-44a8-aad9-743e0fd1b340", + "e28eb918-ce9b-4226-bf58-82650ed58772", + "f889b4e8-39a5-4baa-b02b-211d3715c75c", + "998a9fe3-f0f8-461c-ba2d-197710737056", + "52fcf4e6-6e37-4652-b6da-484c2310e465", + "b7cdcd17-a64e-4fbf-8797-01794ff0bf53", + "c9d19fb8-94bf-4d22-aa7a-3b89923c1812", + "259bb39e-e07f-415c-9f25-8fc270d14677", + "d0b32246-d922-4517-bcbe-0cf86def68f1", + "f2cf9858-cc92-4bbb-a447-74e90d52273d", + "b169e261-ff1f-4a70-8006-d1e5c24a501e", + "c6acb79c-6868-4b34-b85f-2e64ad3fc749", + "b9a8abc4-886e-45aa-9c87-434cb3350c8b", + "584e8473-31ae-4140-92b5-e2ddf5250c22", + "8ffb3ba0-42bb-49cc-8f5e-58937cc82093", + "faf800ee-a017-40ea-9123-60303183c772", + "c2dcba75-ed90-47a1-8927-e5b5b4f6bc08", + "f93768f9-b094-49a6-94c8-9340faa4801c", + "c7e5693d-c2b1-4626-bb2f-a80702f46c37", + "4602197c-0902-4376-b97d-4762fd0a3cb2", + "64f3a98b-4ea0-433d-bcf6-0c1cb2adcad2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 55987, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "9906ef11-5062-426d-b12b-5c466436e32a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2700, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "title": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/05_seoOptions/01_displayAttributesInProductMetaTitle.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/05_seoOptions/01_displayAttributesInProductMetaTitle.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b94b8096-6d8b-4588-ba53-17024de9bd78", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c1e21b8d-16ed-48b3-97de-f677016fad6d", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should login in BO", + "timedOut": false, + "duration": 1999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ca6589f-b97c-4ac3-9adc-0e2c5909b1c0", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Traffic & SEO' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should go to 'Shop Parameters > Traffic & SEO' page", + "timedOut": false, + "duration": 4963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_goToSeoAndUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoAndUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e36fdce2-48c9-4002-8118-eff0b60cd8f5", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should enable display attributes in product meta title", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should enable display attributes in product meta title", + "timedOut": false, + "duration": 2311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_enableDisplayAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayAttributes\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.setStatusAttributesInProductMetaTitle(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(seoAndUrls_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f47c08c-899a-41fb-9dc4-a96937c60679", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should go to FO", + "timedOut": false, + "duration": 1870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_goToFO_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20ea9386-bbf4-4a96-8be9-3abad7ca0386", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page and check the title", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should go to the first product page and check the title", + "timedOut": false, + "duration": 804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_checkTitle_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTitle_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.args.metaTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c490259-29e7-4dc8-9498-119866ff4fd2", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_goBackToBo_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48b4abfa-0bb3-474c-86a0-0311977a5c78", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should disable display attributes in product meta title", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should disable display attributes in product meta title", + "timedOut": false, + "duration": 2299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_disableDisplayAttributes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"DisplayAttributes\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.setStatusAttributesInProductMetaTitle(page, test.args.enable)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(seoAndUrls_1.default.successfulSettingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2461cdc5-9f15-4b9d-ae17-d91ae4925ca7", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should go to FO", + "timedOut": false, + "duration": 1651, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_goToFO_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.viewMyShop(page)];\n case 2:\n // Go to FO\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "942147f5-cba3-409c-81fc-e80e07e9344d", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page and check the title", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should go to the first product page and check the title", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_checkTitle_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkTitle_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n // Go to the first product page\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.args.metaTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25087c6e-8e36-44ae-b1ed-b61d10fd4e7e", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Enable/Disable display attributes in product meta title should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_seoOptions_displayAttributesInProductMetaTitle_goBackToBo_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goBackToBo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n // Close page and init page objects\n page = _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09fb2045-d240-4b3c-8bb1-39155c3f031d", + "parentUUID": "468ea0f5-0b5d-4459-8bab-fe7035095b0e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1ca6589f-b97c-4ac3-9adc-0e2c5909b1c0", + "e36fdce2-48c9-4002-8118-eff0b60cd8f5", + "2f47c08c-899a-41fb-9dc4-a96937c60679", + "20ea9386-bbf4-4a96-8be9-3abad7ca0386", + "7c490259-29e7-4dc8-9498-119866ff4fd2", + "48b4abfa-0bb3-474c-86a0-0311977a5c78", + "2461cdc5-9f15-4b9d-ae17-d91ae4925ca7", + "942147f5-cba3-409c-81fc-e80e07e9344d", + "25087c6e-8e36-44ae-b1ed-b61d10fd4e7e", + "09fb2045-d240-4b3c-8bb1-39155c3f031d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16694, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cd106e7e-6b66-43a4-a3aa-50d82e0e4767", + "title": "BO - Shop Parameters - Traffic & SEO : Help card", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/helpCard.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/01_seoAndUrls/helpCard.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Help card\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Help card \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Help card\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "544b09d8-f643-49be-915f-a3d6c13e61bf", + "parentUUID": "cd106e7e-6b66-43a4-a3aa-50d82e0e4767", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Help card\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Help card \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Help card\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ee9a9ca9-4060-4bd4-a2b0-140336e5e1b1", + "parentUUID": "cd106e7e-6b66-43a4-a3aa-50d82e0e4767", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Help card should login in BO", + "timedOut": false, + "duration": 1783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28ce2efe-07fd-42d2-ab7c-b19cd5f116e2", + "parentUUID": "cd106e7e-6b66-43a4-a3aa-50d82e0e4767", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Traffic & SEO' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Help card should go to 'Shop Parameters > Traffic & SEO' page", + "timedOut": false, + "duration": 4941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_helpCard_goToSeoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1593b92e-0464-46c8-9e0d-77227bc146f3", + "parentUUID": "cd106e7e-6b66-43a4-a3aa-50d82e0e4767", + "isHook": false, + "skipped": false + }, + { + "title": "should open the help side bar and check the document language", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Help card should open the help side bar and check the document language", + "timedOut": false, + "duration": 128, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_helpCard_openHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarVisible, documentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.openHelpSideBar(page)];\n case 2:\n isHelpSidebarVisible = _a.sent();\n (0, chai_1.expect)(isHelpSidebarVisible).to.eq(true);\n return [4 /*yield*/, seoAndUrls_1.default.getHelpDocumentURL(page)];\n case 3:\n documentURL = _a.sent();\n (0, chai_1.expect)(documentURL).to.contains('country=en');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0734d6cd-fb97-4cb1-ade5-73bd976aa520", + "parentUUID": "cd106e7e-6b66-43a4-a3aa-50d82e0e4767", + "isHook": false, + "skipped": false + }, + { + "title": "should close the help side bar", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Help card should close the help side bar", + "timedOut": false, + "duration": 67, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_seoAndUrls_helpCard_closeHelpSidebar\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHelpSidebarClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeHelpSidebar', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeHelpSideBar(page)];\n case 2:\n isHelpSidebarClosed = _a.sent();\n (0, chai_1.expect)(isHelpSidebarClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2b6115f-a7dc-4c0e-a7a2-6a6fae57f0ec", + "parentUUID": "cd106e7e-6b66-43a4-a3aa-50d82e0e4767", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "28ce2efe-07fd-42d2-ab7c-b19cd5f116e2", + "1593b92e-0464-46c8-9e0d-77227bc146f3", + "0734d6cd-fb97-4cb1-ade5-73bd976aa520", + "a2b6115f-a7dc-4c0e-a7a2-6a6fae57f0ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6919, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "95a11db4-871f-4878-9e54-4da6343f7f88", + "title": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/01_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a4e2d51-41ce-4911-b321-43dfd5cac314", + "parentUUID": "95a11db4-871f-4878-9e54-4da6343f7f88", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0799fd03-e647-4675-9561-51085fac63ea", + "parentUUID": "95a11db4-871f-4878-9e54-4da6343f7f88", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines should login in BO", + "timedOut": false, + "duration": 1756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce007d36-4894-47d0-b306-36945b940091", + "parentUUID": "95a11db4-871f-4878-9e54-4da6343f7f88", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Traffic & SEO' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines should go to 'Shop Parameters > Traffic & SEO' page", + "timedOut": false, + "duration": 3949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_goToSeoAndUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoAndUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bdd9768-4924-46cc-8bdd-659e68512a18", + "parentUUID": "95a11db4-871f-4878-9e54-4da6343f7f88", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Search Engines' pge", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines should go to 'Search Engines' pge", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_goToSearchEnginesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchEnginesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToSearchEnginesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(searchEngines_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b5b696e-186b-4c16-8045-395130e9e969", + "parentUUID": "95a11db4-871f-4878-9e54-4da6343f7f88", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of search engines in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines should reset all filters and get number of search engines in BO", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEngines = _a.sent();\n (0, chai_1.expect)(numberOfSearchEngines).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d844b3c-009e-4a0f-abbd-c4cf6c7ebf9d", + "parentUUID": "95a11db4-871f-4878-9e54-4da6343f7f88", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "de530647-45ad-48d5-b6d5-8fa9b6716f7c", + "title": "Filter search engines", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/01_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_search_engine '8'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Filter search engines should filter by id_search_engine '8'", + "timedOut": false, + "duration": 901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterFilter).to.be.at.most(numberOfSearchEngines);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSearchEnginesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, searchEngines_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b10b9bc-5c13-44b3-94a7-407262b8a994", + "parentUUID": "de530647-45ad-48d5-b6d5-8fa9b6716f7c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Filter search engines should reset all filters", + "timedOut": false, + "duration": 336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_filterIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEnginesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterReset).to.equal(numberOfSearchEngines);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59d16f8b-3797-4974-b68e-7ae8307a7e3e", + "parentUUID": "de530647-45ad-48d5-b6d5-8fa9b6716f7c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by server 'google'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Filter search engines should filter by server 'google'", + "timedOut": false, + "duration": 905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_filterServer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterFilter).to.be.at.most(numberOfSearchEngines);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSearchEnginesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, searchEngines_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b14936a-4588-43f4-b90e-5f0aa8e0fd36", + "parentUUID": "de530647-45ad-48d5-b6d5-8fa9b6716f7c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Filter search engines should reset all filters", + "timedOut": false, + "duration": 319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_filterServerReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEnginesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterReset).to.equal(numberOfSearchEngines);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f64a8433-9f4d-4a1e-8f75-daa41115699c", + "parentUUID": "de530647-45ad-48d5-b6d5-8fa9b6716f7c", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by query_key 'rdata'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Filter search engines should filter by query_key 'rdata'", + "timedOut": false, + "duration": 903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_filterKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterFilter).to.be.at.most(numberOfSearchEngines);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfSearchEnginesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, searchEngines_1.default.getTextColumn(page, i, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4203aa3d-d0b7-4f4a-9c04-7f913037d25f", + "parentUUID": "de530647-45ad-48d5-b6d5-8fa9b6716f7c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Filter search engines should reset all filters", + "timedOut": false, + "duration": 327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_filterKeyReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEnginesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterReset).to.equal(numberOfSearchEngines);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ee33b2b-b308-4c96-b539-7115f2646167", + "parentUUID": "de530647-45ad-48d5-b6d5-8fa9b6716f7c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1b10b9bc-5c13-44b3-94a7-407262b8a994", + "59d16f8b-3797-4974-b68e-7ae8307a7e3e", + "1b14936a-4588-43f4-b90e-5f0aa8e0fd36", + "f64a8433-9f4d-4a1e-8f75-daa41115699c", + "4203aa3d-d0b7-4f4a-9c04-7f913037d25f", + "4ee33b2b-b308-4c96-b539-7115f2646167" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3691, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d20b17b5-0d57-4617-b3c2-7546e3bcc1ed", + "title": "Sort search engines", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/01_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_search_engine' 'desc'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Sort search engines should sort by 'id_search_engine' 'desc'", + "timedOut": false, + "duration": 3448, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, searchEngines_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c5c4dd4-8527-4641-903f-1588d9f8623a", + "parentUUID": "d20b17b5-0d57-4617-b3c2-7546e3bcc1ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'server' 'asc'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Sort search engines should sort by 'server' 'asc'", + "timedOut": false, + "duration": 3405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_sortByServerAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, searchEngines_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f5fdd72-4d31-4117-bf2d-4b330797530f", + "parentUUID": "d20b17b5-0d57-4617-b3c2-7546e3bcc1ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'server' 'desc'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Sort search engines should sort by 'server' 'desc'", + "timedOut": false, + "duration": 3440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_sortByServerDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, searchEngines_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e775dd3d-8b13-45be-a858-5666a7408eca", + "parentUUID": "d20b17b5-0d57-4617-b3c2-7546e3bcc1ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'query_key' 'asc'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Sort search engines should sort by 'query_key' 'asc'", + "timedOut": false, + "duration": 3417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_sortByQueryKeyAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, searchEngines_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6960de27-92c9-4126-8655-fbda334c5577", + "parentUUID": "d20b17b5-0d57-4617-b3c2-7546e3bcc1ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'query_key' 'desc'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Sort search engines should sort by 'query_key' 'desc'", + "timedOut": false, + "duration": 3490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_sortByQueryKeyDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, searchEngines_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43b40535-be14-4049-8152-0a13f7cdb133", + "parentUUID": "d20b17b5-0d57-4617-b3c2-7546e3bcc1ed", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_search_engine' 'asc'", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Sort search engines should sort by 'id_search_engine' 'asc'", + "timedOut": false, + "duration": 3406, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, searchEngines_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2e88661-1244-43c4-86f7-f9b64cf97447", + "parentUUID": "d20b17b5-0d57-4617-b3c2-7546e3bcc1ed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2c5c4dd4-8527-4641-903f-1588d9f8623a", + "7f5fdd72-4d31-4117-bf2d-4b330797530f", + "e775dd3d-8b13-45be-a858-5666a7408eca", + "6960de27-92c9-4126-8655-fbda334c5577", + "43b40535-be14-4049-8152-0a13f7cdb133", + "e2e88661-1244-43c4-86f7-f9b64cf97447" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20606, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c4d17c4e-5fed-4c95-807c-3e621bd1463b", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/01_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/01_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should select 20 items by page and check result", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Pagination next and previous should select 20 items by page and check result", + "timedOut": false, + "duration": 222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "387083d0-ca5e-48d7-8eaf-313501f529d3", + "parentUUID": "c4d17c4e-5fed-4c95-807c-3e621bd1463b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to next page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Pagination next and previous should go to next page", + "timedOut": false, + "duration": 826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 2 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db4cb850-d593-485c-a037-5801a52df724", + "parentUUID": "c4d17c4e-5fed-4c95-807c-3e621bd1463b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to previous page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Pagination next and previous should go to previous page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 2)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70382a70-da1a-466a-aa7e-f7a847873283", + "parentUUID": "c4d17c4e-5fed-4c95-807c-3e621bd1463b", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Filter, sort and pagination search engines Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_filterSortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.contain('(page 1 / 1)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c02df3db-3f07-4ca7-994d-6420a2d33753", + "parentUUID": "c4d17c4e-5fed-4c95-807c-3e621bd1463b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "387083d0-ca5e-48d7-8eaf-313501f529d3", + "db4cb850-d593-485c-a037-5801a52df724", + "70382a70-da1a-466a-aa7e-f7a847873283", + "c02df3db-3f07-4ca7-994d-6420a2d33753" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2114, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "ce007d36-4894-47d0-b306-36945b940091", + "8bdd9768-4924-46cc-8bdd-659e68512a18", + "9b5b696e-186b-4c16-8045-395130e9e969", + "9d844b3c-009e-4a0f-abbd-c4cf6c7ebf9d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8560, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9aaa0037-a618-4443-80a1-e9ffa88d04fb", + "title": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/02_CRUDSearchEngines.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/02_CRUDSearchEngines.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e29825d7-577e-4ba4-9ff1-b4fd34d790bc", + "parentUUID": "9aaa0037-a618-4443-80a1-e9ffa88d04fb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9a3e7270-3679-4672-8bb6-e2152cd924d3", + "parentUUID": "9aaa0037-a618-4443-80a1-e9ffa88d04fb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines should login in BO", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fc882a3-4ebf-458d-bac5-e2eecd8d3e1b", + "parentUUID": "9aaa0037-a618-4443-80a1-e9ffa88d04fb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Traffic & SEO' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines should go to 'Shop Parameters > Traffic & SEO' page", + "timedOut": false, + "duration": 4959, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_goToSeoAndUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoAndUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "250a2f9d-024f-4930-930d-3d183ea5e329", + "parentUUID": "9aaa0037-a618-4443-80a1-e9ffa88d04fb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Search Engines' pge", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines should go to 'Search Engines' pge", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_goToSearchEnginesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchEnginesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToSearchEnginesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(searchEngines_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be34145c-d7ab-4337-b59a-c81be4fa3aef", + "parentUUID": "9aaa0037-a618-4443-80a1-e9ffa88d04fb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of search engines in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines should reset all filters and get number of search engines in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEngines = _a.sent();\n (0, chai_1.expect)(numberOfSearchEngines).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7082b65d-05b6-4864-af15-86dc612e4013", + "parentUUID": "9aaa0037-a618-4443-80a1-e9ffa88d04fb", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "84398855-f149-4e10-835d-7b4e43f4b43a", + "title": "Create search engine", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/02_CRUDSearchEngines.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/02_CRUDSearchEngines.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Create search engine should go to new search engine", + "timedOut": false, + "duration": 761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_goToNewSearchEnginePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewSearchEnginePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.goToNewSearchEnginePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aeaf14a0-6b33-4e8d-9734-5a13135398d8", + "parentUUID": "84398855-f149-4e10-835d-7b4e43f4b43a", + "isHook": false, + "skipped": false + }, + { + "title": "should create search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Create search engine should create search engine", + "timedOut": false, + "duration": 1011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_createSearchEngine\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSearchEnginesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSearchEngine', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSearchEngine(page, createSearchEngineData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contain(searchEngines_1.default.successfulCreationMessage);\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterCreation).to.equal(numberOfSearchEngines + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebddf065-e1df-40a3-842c-f70a747a971b", + "parentUUID": "84398855-f149-4e10-835d-7b4e43f4b43a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aeaf14a0-6b33-4e8d-9734-5a13135398d8", + "ebddf065-e1df-40a3-842c-f70a747a971b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1772, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b6b70f3a-038b-48ef-8b0e-fc60c8655f00", + "title": "Update search engine", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/02_CRUDSearchEngines.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/02_CRUDSearchEngines.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by server", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Update search engine should filter by server", + "timedOut": false, + "duration": 934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_filterToUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.filterTable(page, 'server', createSearchEngineData.server)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, searchEngines_1.default.getTextColumn(page, 1, 'server')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contain(createSearchEngineData.server);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab868b2b-56f1-4e6e-84db-d5482672ca03", + "parentUUID": "b6b70f3a-038b-48ef-8b0e-fc60c8655f00", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit first search engine page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Update search engine should go to edit first search engine page", + "timedOut": false, + "duration": 772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_goToEditSearchEngine\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditSearchEngine', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.goToEditSearchEnginePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "406f3163-b6b5-40ee-be55-5abfda556781", + "parentUUID": "b6b70f3a-038b-48ef-8b0e-fc60c8655f00", + "isHook": false, + "skipped": false + }, + { + "title": "should edit search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Update search engine should edit search engine", + "timedOut": false, + "duration": 957, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_editSearchEngine\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editSearchEngine', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSearchEngine(page, editSearchEngineData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contain(searchEngines_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5695604-9a26-422c-a0ed-a37410f79171", + "parentUUID": "b6b70f3a-038b-48ef-8b0e-fc60c8655f00", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check number of search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Update search engine should reset filter and check number of search engine", + "timedOut": false, + "duration": 326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_resetFilterAfterUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEnginesAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterUpdate).to.equal(numberOfSearchEngines + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4358d028-fa3c-4e09-82b0-07621c6349ad", + "parentUUID": "b6b70f3a-038b-48ef-8b0e-fc60c8655f00", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ab868b2b-56f1-4e6e-84db-d5482672ca03", + "406f3163-b6b5-40ee-be55-5abfda556781", + "c5695604-9a26-422c-a0ed-a37410f79171", + "4358d028-fa3c-4e09-82b0-07621c6349ad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2989, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "df701d4b-3ae4-41bc-9f8c-c2e4fa41deb8", + "title": "Delete search engine", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/02_CRUDSearchEngines.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/02_CRUDSearchEngines.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by server", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Delete search engine should filter by server", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.filterTable(page, 'server', editSearchEngineData.server)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, searchEngines_1.default.getTextColumn(page, 1, 'server')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contain(editSearchEngineData.server);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee8ac592-f7d6-4379-94d2-3c1012dc8bc7", + "parentUUID": "df701d4b-3ae4-41bc-9f8c-c2e4fa41deb8", + "isHook": false, + "skipped": false + }, + { + "title": "should delete search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Delete search engine should delete search engine", + "timedOut": false, + "duration": 1374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_deleteSearchEngine\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSearchEngine', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.deleteSearchEngine(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.contain(searchEngines_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9e63826-f1f1-4adc-882a-2aba0d5953c9", + "parentUUID": "df701d4b-3ae4-41bc-9f8c-c2e4fa41deb8", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check number of searchEngine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Create, update and delete search engines Delete search engine should reset filter and check number of searchEngine", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_CRUDSearchEngines_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEnginesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterDelete).to.equal(numberOfSearchEngines);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "777c26fe-dac9-4ba2-8f39-0a616ca3c6a4", + "parentUUID": "df701d4b-3ae4-41bc-9f8c-c2e4fa41deb8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ee8ac592-f7d6-4379-94d2-3c1012dc8bc7", + "f9e63826-f1f1-4adc-882a-2aba0d5953c9", + "777c26fe-dac9-4ba2-8f39-0a616ca3c6a4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2661, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "5fc882a3-4ebf-458d-bac5-e2eecd8d3e1b", + "250a2f9d-024f-4930-930d-3d183ea5e329", + "be34145c-d7ab-4337-b59a-c81be4fa3aef", + "7082b65d-05b6-4864-af15-86dc612e4013" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9526, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4cb1466e-1a5c-4506-bf97-bbad57278c56", + "title": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/03_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/03_bulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Bulk delete search engine\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine \"before all\" hook in \"BO - Shop Parameters - Traffic & SEO : Bulk delete search engine\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aed9615a-d5e5-49a3-aae9-ea95c5b1a37c", + "parentUUID": "4cb1466e-1a5c-4506-bf97-bbad57278c56", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Bulk delete search engine\"", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine \"after all\" hook in \"BO - Shop Parameters - Traffic & SEO : Bulk delete search engine\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6078d4ca-fc07-4fe3-b130-cd0942d44922", + "parentUUID": "4cb1466e-1a5c-4506-bf97-bbad57278c56", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine should login in BO", + "timedOut": false, + "duration": 1746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4def1c46-8d9f-4e31-9d7f-f5c0b9640abb", + "parentUUID": "4cb1466e-1a5c-4506-bf97-bbad57278c56", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Traffic & SEO' page", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine should go to 'Shop Parameters > Traffic & SEO' page", + "timedOut": false, + "duration": 4953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_goToSeoAndUrlsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSeoAndUrlsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.trafficAndSeoLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(seoAndUrls_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2ca42c3-3d78-4f0b-bc9b-c694df1afe97", + "parentUUID": "4cb1466e-1a5c-4506-bf97-bbad57278c56", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Search Engines' pge", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine should go to 'Search Engines' pge", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_goToSearchEnginesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchEnginesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, seoAndUrls_1.default.goToSearchEnginesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(searchEngines_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bedf6045-6565-49a8-a1dd-2b8f710147b3", + "parentUUID": "4cb1466e-1a5c-4506-bf97-bbad57278c56", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of search engines in BO", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine should reset all filters and get number of search engines in BO", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEngines = _a.sent();\n (0, chai_1.expect)(numberOfSearchEngines).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e54ddf11-c439-4c0e-99b0-d9719e37f5fa", + "parentUUID": "4cb1466e-1a5c-4506-bf97-bbad57278c56", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "4fca8196-440d-4c3a-ac0d-06e72b3538a0", + "title": "Create search engine n°1", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/03_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/03_bulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine Create search engine n°1 should go to new search engine", + "timedOut": false, + "duration": 732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_goToNewSearchEnginePage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewSearchEnginePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.goToNewSearchEnginePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f370c08d-6d59-4838-be71-bbc3a6d752a1", + "parentUUID": "4fca8196-440d-4c3a-ac0d-06e72b3538a0", + "isHook": false, + "skipped": false + }, + { + "title": "should create search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine Create search engine n°1 should create search engine", + "timedOut": false, + "duration": 980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_createSearchEngine0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSearchEnginesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSearchEngine\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSearchEngine(page, searchEngineData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contain(searchEngines_1.default.successfulCreationMessage);\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterCreation).to.equal(numberOfSearchEngines + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d6a8de1-1551-462c-8838-2ec28d5075f4", + "parentUUID": "4fca8196-440d-4c3a-ac0d-06e72b3538a0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f370c08d-6d59-4838-be71-bbc3a6d752a1", + "8d6a8de1-1551-462c-8838-2ec28d5075f4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1712, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "810ff203-5411-4cb2-a98c-931dec5134a9", + "title": "Create search engine n°2", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/03_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/03_bulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine Create search engine n°2 should go to new search engine", + "timedOut": false, + "duration": 733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_goToNewSearchEnginePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewSearchEnginePage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.goToNewSearchEnginePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contain(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0dc1d89-0f10-4034-b64a-bf3d3d9cbec9", + "parentUUID": "810ff203-5411-4cb2-a98c-931dec5134a9", + "isHook": false, + "skipped": false + }, + { + "title": "should create search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine Create search engine n°2 should create search engine", + "timedOut": false, + "duration": 965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_createSearchEngine1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numberOfSearchEnginesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createSearchEngine\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSearchEngine(page, searchEngineData)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contain(searchEngines_1.default.successfulCreationMessage);\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterCreation).to.equal(numberOfSearchEngines + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fa2ad29-1f9c-4e0e-b1eb-bd44b30d0df5", + "parentUUID": "810ff203-5411-4cb2-a98c-931dec5134a9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f0dc1d89-0f10-4034-b64a-bf3d3d9cbec9", + "8fa2ad29-1f9c-4e0e-b1eb-bd44b30d0df5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1698, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bcb1efac-1784-4471-b6f0-a55ed652050d", + "title": "Delete search engine by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/03_bulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/06_trafficAndSeo/02_searchEngines/03_bulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by server", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine Delete search engine by bulk actions should filter by server", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_filterToBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.filterTable(page, 'server', 'toDelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfSearchEnginesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterFilter).to.be.at.least(2);\n return [4 /*yield*/, searchEngines_1.default.getTextColumn(page, 1, 'server')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contain('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66ff192e-babc-4788-9730-83d9a8afeda7", + "parentUUID": "bcb1efac-1784-4471-b6f0-a55ed652050d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete search engine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine Delete search engine by bulk actions should delete search engine", + "timedOut": false, + "duration": 1405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_deleteSearchEngine\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSearchEngine', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.bulkDeleteSearchEngine(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.contain(searchEngines_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc7b31af-5e56-409d-abc0-b01671abb1e3", + "parentUUID": "bcb1efac-1784-4471-b6f0-a55ed652050d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check number of searchEngine", + "fullTitle": "BO - Shop Parameters - Traffic & SEO : Bulk delete search engine Delete search engine by bulk actions should reset filter and check number of searchEngine", + "timedOut": false, + "duration": 327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_trafficAndSeo_searchEngines_bulkActions_resetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchEnginesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchEngines_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchEnginesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfSearchEnginesAfterDelete).to.equal(numberOfSearchEngines);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da979baf-8ac7-4fdd-aa7f-865b01f14e5d", + "parentUUID": "bcb1efac-1784-4471-b6f0-a55ed652050d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "66ff192e-babc-4788-9730-83d9a8afeda7", + "dc7b31af-5e56-409d-abc0-b01671abb1e3", + "da979baf-8ac7-4fdd-aa7f-865b01f14e5d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2634, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "4def1c46-8d9f-4e31-9d7f-f5c0b9640abb", + "d2ca42c3-3d78-4f0b-bc9b-c694df1afe97", + "bedf6045-6565-49a8-a1dd-2b8f710147b3", + "e54ddf11-c439-4c0e-99b0-d9719e37f5fa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9531, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0677c15a-5912-4705-b0db-20620891d23f", + "title": "BO - Shop Parameters - Search : Create, update and delete search in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/01_CRUDSearch.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/01_CRUDSearch.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Search : Create, update and delete search in BO\"", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO \"before all\" hook in \"BO - Shop Parameters - Search : Create, update and delete search in BO\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22d5a807-1e90-4acd-a3c9-fbe477717513", + "parentUUID": "0677c15a-5912-4705-b0db-20620891d23f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Search : Create, update and delete search in BO\"", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO \"after all\" hook in \"BO - Shop Parameters - Search : Create, update and delete search in BO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9d2fa7e1-de08-4aec-98a1-0b4bd53a0603", + "parentUUID": "0677c15a-5912-4705-b0db-20620891d23f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO should login in BO", + "timedOut": false, + "duration": 1744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "092720c6-2c1a-4693-bb75-a504a422e955", + "parentUUID": "0677c15a-5912-4705-b0db-20620891d23f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Search' page", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO should go to 'Shop Parameters > Search' page", + "timedOut": false, + "duration": 3721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_goToSearchPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.searchLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(search_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5c4f3ba-3b25-4bfe-9497-b89f9b4c25b0", + "parentUUID": "0677c15a-5912-4705-b0db-20620891d23f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of alias in BO", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO should reset all filters and get number of alias in BO", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearch = _a.sent();\n (0, chai_1.expect)(numberOfSearch).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82ca8b43-5b1f-4ac9-905d-b729e83f3691", + "parentUUID": "0677c15a-5912-4705-b0db-20620891d23f", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "015baa7d-9f04-4941-b67f-8c05331e5d35", + "title": "Create alias in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/01_CRUDSearch.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/01_CRUDSearch.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO Create alias in BO should go to add new search page", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_goToAddAliasPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddAliasPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e5cd44f-ff98-45e1-a08f-09cd9c402e14", + "parentUUID": "015baa7d-9f04-4941-b67f-8c05331e5d35", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias and check result", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO Create alias in BO should create alias and check result", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_createAlias\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAlias', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, createAliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d805841d-7c4b-4f82-bc47-833ffdfab641", + "parentUUID": "015baa7d-9f04-4941-b67f-8c05331e5d35", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e5cd44f-ff98-45e1-a08f-09cd9c402e14", + "d805841d-7c4b-4f82-bc47-833ffdfab641" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1727, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "272085d2-ecf5-45d8-ae87-68cb4a6bdbdd", + "title": "Update alias created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/01_CRUDSearch.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/01_CRUDSearch.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO Update alias created should filter list by name", + "timedOut": false, + "duration": 963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_filterForUpdate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForUpdate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.filterTable(page, 'input', 'alias', createAliasData.alias)];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getTextColumn(page, 1, 'alias')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createAliasData.alias);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b5be9bc-6201-4b8a-b62f-eac6ca3fa272", + "parentUUID": "272085d2-ecf5-45d8-ae87-68cb4a6bdbdd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit alias page", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO Update alias created should go to edit alias page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_goToEditAliasPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditAliasPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.gotoEditAliasPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc6afe92-7105-4dbc-ba2f-017f0e53d30b", + "parentUUID": "272085d2-ecf5-45d8-ae87-68cb4a6bdbdd", + "isHook": false, + "skipped": false + }, + { + "title": "should update alias", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO Update alias created should update alias", + "timedOut": false, + "duration": 3824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_updateAlias\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfSearchAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateAlias', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, editSearchData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulUpdateMessage);\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfSearchAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfSearchAfterUpdate).to.be.equal(numberOfSearch + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8e4e356-a3c2-4886-9cdb-470fcda1454e", + "parentUUID": "272085d2-ecf5-45d8-ae87-68cb4a6bdbdd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3b5be9bc-6201-4b8a-b62f-eac6ca3fa272", + "cc6afe92-7105-4dbc-ba2f-017f0e53d30b", + "e8e4e356-a3c2-4886-9cdb-470fcda1454e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5603, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5fe4171f-3fc7-4302-8a51-3bf2e6fdb56b", + "title": "Delete alias", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/01_CRUDSearch.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/01_CRUDSearch.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO Delete alias should filter list by name", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_filterForDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textEmail;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.filterTable(page, 'input', 'alias', createAliasData.alias)];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getTextColumn(page, 1, 'alias')];\n case 4:\n textEmail = _a.sent();\n (0, chai_1.expect)(textEmail).to.contains(createAliasData.alias);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e9bc397-a908-4578-876a-236632cbba39", + "parentUUID": "5fe4171f-3fc7-4302-8a51-3bf2e6fdb56b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete alias", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete search in BO Delete alias should delete alias", + "timedOut": false, + "duration": 3920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_CRUDSearch_deleteAlias\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfSearchAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAlias', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.deleteAlias(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulDeleteMessage);\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfSearchAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfSearchAfterDelete).to.be.equal(numberOfSearch);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da988b7a-5630-41b2-8ac0-93842a2751af", + "parentUUID": "5fe4171f-3fc7-4302-8a51-3bf2e6fdb56b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8e9bc397-a908-4578-876a-236632cbba39", + "da988b7a-5630-41b2-8ac0-93842a2751af" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4858, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "092720c6-2c1a-4693-bb75-a504a422e955", + "a5c4f3ba-3b25-4bfe-9497-b89f9b4c25b0", + "82ca8b43-5b1f-4ac9-905d-b729e83f3691" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5480, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d520d108-d745-493f-9d70-8044e26a0a3c", + "title": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions\"", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions \"before all\" hook in \"BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23fdb19c-e128-49db-8991-b4019f9030ee", + "parentUUID": "d520d108-d745-493f-9d70-8044e26a0a3c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions\"", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions \"after all\" hook in \"BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0521dc4a-121a-486d-ba25-a0493022270c", + "parentUUID": "d520d108-d745-493f-9d70-8044e26a0a3c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions should login in BO", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88ecd288-4836-4241-85ce-1810ad6599e5", + "parentUUID": "d520d108-d745-493f-9d70-8044e26a0a3c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Search' page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions should go to 'Shop Parameters > Search' page", + "timedOut": false, + "duration": 3637, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToSearchPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.searchLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(search_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1abe475f-03bf-486d-8620-70007845d1a8", + "parentUUID": "d520d108-d745-493f-9d70-8044e26a0a3c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of aliases in BO", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions should reset all filters and get number of aliases in BO", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearch = _a.sent();\n (0, chai_1.expect)(numberOfSearch).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d2f0eb1-3fab-4f05-8c12-42b27fa541f7", + "parentUUID": "d520d108-d745-493f-9d70-8044e26a0a3c", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "title": "Create 19 aliases in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c179d666-d128-4e41-a532-41c6a57fb02d", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°1 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°1 and check result", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7afad28-2e7c-482d-ad6d-bf39163adce8", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71be14d4-de74-498d-8ab2-5de4bae29254", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°2 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°2 and check result", + "timedOut": false, + "duration": 969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8330fe22-7db9-43ed-87ed-a55652801fcb", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfb303e8-f446-42ef-82b8-e7ed9808e605", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°3 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°3 and check result", + "timedOut": false, + "duration": 935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "101d2c0e-94eb-410b-b09c-77ff35da7166", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89433898-7654-4849-b08a-f1bc43274030", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°4 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°4 and check result", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4d0de74-dd41-4cba-ad51-d3fb4d9574fe", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccf92886-1949-44f1-9168-9ee2f4dfa84e", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°5 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°5 and check result", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f389795b-6846-4f41-b1f3-2b2e4cd67b23", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4461676-6ec2-4745-848c-35d451bd965d", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°6 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°6 and check result", + "timedOut": false, + "duration": 939, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5cecc40-e586-4150-9c92-7c46c485b7e8", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e05a60cd-f818-4508-a654-0f68fb31506b", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°7 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°7 and check result", + "timedOut": false, + "duration": 930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f572548-3c06-4c4c-bf1d-e8f71977ebd4", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45502fac-886e-4e61-8cca-843bc4c87c47", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°8 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°8 and check result", + "timedOut": false, + "duration": 936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7484c65-e83c-40cf-bd88-f2a671abf525", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "606a1e2c-d4ce-45a0-ad06-bae00cb65bf0", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°9 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°9 and check result", + "timedOut": false, + "duration": 946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4f19983-b943-4cfd-a128-611ccd13b435", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9ef5f13-649c-4d0c-bbc2-0391aa70317b", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°10 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°10 and check result", + "timedOut": false, + "duration": 948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a01d31c-08eb-4b9d-a22d-6261673cb0e5", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e283ddec-fda7-4835-99b9-8f63e3232896", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°11 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°11 and check result", + "timedOut": false, + "duration": 953, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9412acc2-f89b-44ab-8f9b-8696a0e68341", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a65fc23e-93e2-4e82-ac8a-6c43f516c6d2", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°12 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°12 and check result", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2ec35d4-55e9-4060-a443-5758e3b5da16", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68b20e5c-40b4-4786-8b19-4f2b19c6306f", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°13 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°13 and check result", + "timedOut": false, + "duration": 937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75631ab9-1725-4448-839c-bf47d076ad8b", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fd455e2-3491-40c1-8c10-b3206dd47f3f", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°14 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°14 and check result", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bc38d48-861b-4207-81dc-9ac1f7fd0756", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba5b9dd3-2d35-4e59-bdea-2bf5fbe11f14", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°15 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°15 and check result", + "timedOut": false, + "duration": 956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf5055f4-f16a-413b-a1fe-3082175a0b46", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 805, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "433872fc-891d-4572-b40f-075c04de0d7e", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°16 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°16 and check result", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d466737-1bec-40d9-a901-5eec897887f2", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64539053-1de2-4868-a6fc-89f102c81009", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°17 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°17 and check result", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6cd263d-a1d0-4567-a046-473e0bfddda0", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37c5d261-8a55-439a-88d5-0a1ef57be556", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°18 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°18 and check result", + "timedOut": false, + "duration": 956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f449c56-1bb9-4440-b8e0-4df6f998bd0d", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new search page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should go to add new search page", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_goToAddAliasPage18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddAliasPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToAddNewAliasPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b64a318-7c92-469b-bb9e-fb61659b542e", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + }, + { + "title": "should create alias n°19 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Create 19 aliases in BO should create alias n°19 and check result", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_createAlias18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createAlias\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setAlias(page, aliasData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulCreationMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfSearch + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c6dd772-2f13-4a73-b47c-bd02504c98ac", + "parentUUID": "9065c683-b81d-4cd2-a3a8-8f0d2e335469", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c179d666-d128-4e41-a532-41c6a57fb02d", + "f7afad28-2e7c-482d-ad6d-bf39163adce8", + "71be14d4-de74-498d-8ab2-5de4bae29254", + "8330fe22-7db9-43ed-87ed-a55652801fcb", + "bfb303e8-f446-42ef-82b8-e7ed9808e605", + "101d2c0e-94eb-410b-b09c-77ff35da7166", + "89433898-7654-4849-b08a-f1bc43274030", + "e4d0de74-dd41-4cba-ad51-d3fb4d9574fe", + "ccf92886-1949-44f1-9168-9ee2f4dfa84e", + "f389795b-6846-4f41-b1f3-2b2e4cd67b23", + "d4461676-6ec2-4745-848c-35d451bd965d", + "a5cecc40-e586-4150-9c92-7c46c485b7e8", + "e05a60cd-f818-4508-a654-0f68fb31506b", + "8f572548-3c06-4c4c-bf1d-e8f71977ebd4", + "45502fac-886e-4e61-8cca-843bc4c87c47", + "b7484c65-e83c-40cf-bd88-f2a671abf525", + "606a1e2c-d4ce-45a0-ad06-bae00cb65bf0", + "c4f19983-b943-4cfd-a128-611ccd13b435", + "c9ef5f13-649c-4d0c-bbc2-0391aa70317b", + "2a01d31c-08eb-4b9d-a22d-6261673cb0e5", + "e283ddec-fda7-4835-99b9-8f63e3232896", + "9412acc2-f89b-44ab-8f9b-8696a0e68341", + "a65fc23e-93e2-4e82-ac8a-6c43f516c6d2", + "c2ec35d4-55e9-4060-a443-5758e3b5da16", + "68b20e5c-40b4-4786-8b19-4f2b19c6306f", + "75631ab9-1725-4448-839c-bf47d076ad8b", + "9fd455e2-3491-40c1-8c10-b3206dd47f3f", + "0bc38d48-861b-4207-81dc-9ac1f7fd0756", + "ba5b9dd3-2d35-4e59-bdea-2bf5fbe11f14", + "bf5055f4-f16a-413b-a1fe-3082175a0b46", + "433872fc-891d-4572-b40f-075c04de0d7e", + "8d466737-1bec-40d9-a901-5eec897887f2", + "64539053-1de2-4868-a6fc-89f102c81009", + "c6cd263d-a1d0-4567-a046-473e0bfddda0", + "37c5d261-8a55-439a-88d5-0a1ef57be556", + "7f449c56-1bb9-4440-b8e0-4df6f998bd0d", + "6b64a318-7c92-469b-bb9e-fb61659b542e", + "4c6dd772-2f13-4a73-b47c-bd02504c98ac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 33547, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e8d9b9cb-9be4-438b-bb17-eccf0a7f114d", + "title": "Pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Pagination should change the items number to 20 per page", + "timedOut": false, + "duration": 924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28f35458-7463-4dad-a66e-48e5ec68ce6b", + "parentUUID": "e8d9b9cb-9be4-438b-bb17-eccf0a7f114d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Pagination should click on next", + "timedOut": false, + "duration": 888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4295fc4c-fa17-430d-8af2-83103abe03fe", + "parentUUID": "e8d9b9cb-9be4-438b-bb17-eccf0a7f114d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Pagination should click on previous", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc28b235-c03c-4ed7-95a5-e2bed833f2d7", + "parentUUID": "e8d9b9cb-9be4-438b-bb17-eccf0a7f114d", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Pagination should change the items number to 50 per page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9916a1ad-a0df-49bc-b565-1fc09eb1e8ae", + "parentUUID": "e8d9b9cb-9be4-438b-bb17-eccf0a7f114d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "28f35458-7463-4dad-a66e-48e5ec68ce6b", + "4295fc4c-fa17-430d-8af2-83103abe03fe", + "bc28b235-c03c-4ed7-95a5-e2bed833f2d7", + "9916a1ad-a0df-49bc-b565-1fc09eb1e8ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3625, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3f1ca296-6afe-446d-abc1-7d75c3bd3580", + "title": "Filter aliases table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by alias 'todelete5'", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Filter aliases table should filter by alias 'todelete5'", + "timedOut": false, + "duration": 925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_filterAliases\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.be.at.most(numberOfSearch);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, search_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a0fbf4b-1059-493b-91dc-b5c707672410", + "parentUUID": "3f1ca296-6afe-446d-abc1-7d75c3bd3580", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Filter aliases table should reset all filters", + "timedOut": false, + "duration": 2941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_filterAliasesReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.equal(numberOfSearch + 19);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cffebbf-30d8-4a36-8b57-0974e72a601a", + "parentUUID": "3f1ca296-6afe-446d-abc1-7d75c3bd3580", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by search 'blouse'", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Filter aliases table should filter by search 'blouse'", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_filterSearch\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.be.at.most(numberOfSearch);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, search_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc5f1b8d-8b04-4922-ae38-1138872e3431", + "parentUUID": "3f1ca296-6afe-446d-abc1-7d75c3bd3580", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Filter aliases table should reset all filters", + "timedOut": false, + "duration": 2898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_filterSearchReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.equal(numberOfSearch + 19);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0183d3c0-9d84-4afa-8cf2-8e1a281782f9", + "parentUUID": "3f1ca296-6afe-446d-abc1-7d75c3bd3580", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by active 'Yes'", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Filter aliases table should filter by active 'Yes'", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_filterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.filterTable(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfGroupsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterFilter).to.be.at.most(numberOfSearch);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfGroupsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, search_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e48627ad-3e4b-4ee0-a07e-d3b7882d3848", + "parentUUID": "3f1ca296-6afe-446d-abc1-7d75c3bd3580", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Filter aliases table should reset all filters", + "timedOut": false, + "duration": 2906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_filterStatusReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfGroupsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfGroupsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfGroupsAfterReset).to.equal(numberOfSearch + 19);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3547336a-c9f1-4ee6-8d20-37411b487b1d", + "parentUUID": "3f1ca296-6afe-446d-abc1-7d75c3bd3580", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3a0fbf4b-1059-493b-91dc-b5c707672410", + "1cffebbf-30d8-4a36-8b57-0974e72a601a", + "bc5f1b8d-8b04-4922-ae38-1138872e3431", + "0183d3c0-9d84-4afa-8cf2-8e1a281782f9", + "e48627ad-3e4b-4ee0-a07e-d3b7882d3848", + "3547336a-c9f1-4ee6-8d20-37411b487b1d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11464, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ee4eff77-15b1-44d6-b84c-1398a486400d", + "title": "Sort aliases table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'alias' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Sort aliases table should sort by 'alias' 'asc' and check result", + "timedOut": false, + "duration": 1254, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_sortByAliasesAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, search_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "341a534a-39f8-4137-88ab-9f9c50375da3", + "parentUUID": "ee4eff77-15b1-44d6-b84c-1398a486400d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'alias' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Sort aliases table should sort by 'alias' 'desc' and check result", + "timedOut": false, + "duration": 1312, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_sortByAliasesDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, search_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "309e22d0-64b9-468e-9a35-d166fefe8954", + "parentUUID": "ee4eff77-15b1-44d6-b84c-1398a486400d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'search' 'asc' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Sort aliases table should sort by 'search' 'asc' and check result", + "timedOut": false, + "duration": 1165, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_sortBySearchAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, search_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf6912ab-ee9b-4648-a7e2-117d769e787b", + "parentUUID": "ee4eff77-15b1-44d6-b84c-1398a486400d", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'search' 'desc' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Sort aliases table should sort by 'search' 'desc' and check result", + "timedOut": false, + "duration": 1264, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_sortBySearchDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, search_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2386f39a-f736-4d9e-81a9-c744d706f98e", + "parentUUID": "ee4eff77-15b1-44d6-b84c-1398a486400d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "341a534a-39f8-4137-88ab-9f9c50375da3", + "309e22d0-64b9-468e-9a35-d166fefe8954", + "cf6912ab-ee9b-4648-a7e2-117d769e787b", + "2386f39a-f736-4d9e-81a9-c744d706f98e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4995, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ad042144-8cd3-44b0-8d49-2921c41d86b4", + "title": "Enable/Disable the status by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Enable/Disable the status by bulk actions should filter list by name", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_filterToEnableDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textAlias;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToEnableDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.filterTable(page, 'input', 'alias', 'todelete')];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getTextColumn(page, 1, 'alias')];\n case 4:\n textAlias = _a.sent();\n (0, chai_1.expect)(textAlias).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "346ff435-6259-46d7-9385-f4959d0fc623", + "parentUUID": "ad042144-8cd3-44b0-8d49-2921c41d86b4", + "isHook": false, + "skipped": false + }, + { + "title": "should disable with bulk actions and check Result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Enable/Disable the status by bulk actions should disable with bulk actions and check Result", + "timedOut": false, + "duration": 10121, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_disableStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Status\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.bulkSetStatus(page, test.args.value)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementInGrid = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, search_1.default.getStatus(page, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.value);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6cbd704-dcc7-48a1-a6a0-11584beda05f", + "parentUUID": "ad042144-8cd3-44b0-8d49-2921c41d86b4", + "isHook": false, + "skipped": false + }, + { + "title": "should enable with bulk actions and check Result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Enable/Disable the status by bulk actions should enable with bulk actions and check Result", + "timedOut": false, + "duration": 934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_enableStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementInGrid, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.action, \"Status\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.bulkSetStatus(page, test.args.value)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulUpdateStatusMessage);\n return [4 /*yield*/, search_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementInGrid = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfElementInGrid)) return [3 /*break*/, 7];\n return [4 /*yield*/, search_1.default.getStatus(page, i)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.value);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd9cbeba-6311-4219-93f6-0fe59040a337", + "parentUUID": "ad042144-8cd3-44b0-8d49-2921c41d86b4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "346ff435-6259-46d7-9385-f4959d0fc623", + "b6cbd704-dcc7-48a1-a6a0-11584beda05f", + "cd9cbeba-6311-4219-93f6-0fe59040a337" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12057, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "90645e73-16bb-4628-9a7f-8451112511a9", + "title": "Delete aliases by bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/02_filterSortPaginationAndBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Delete aliases by bulk actions should filter list by name", + "timedOut": false, + "duration": 3876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textAlias;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.filterTable(page, 'input', 'alias', 'todelete')];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getTextColumn(page, 1, 'alias')];\n case 4:\n textAlias = _a.sent();\n (0, chai_1.expect)(textAlias).to.contains('todelete');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf8413ee-7b30-4a49-9eb8-6876e7c184b7", + "parentUUID": "90645e73-16bb-4628-9a7f-8451112511a9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete aliases", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort, pagination and bulk actions Delete aliases by bulk actions should delete aliases", + "timedOut": false, + "duration": 3484, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_filterSortPaginationAndBulkActions_deleteAliases\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfSearchAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteAliases', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.bulkDeleteAliases(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(search_1.default.successfulMultiDeleteMessage);\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfSearchAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfSearchAfterDelete).to.be.equal(numberOfSearch);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d9dc157-f922-4370-84c2-de56ff60278e", + "parentUUID": "90645e73-16bb-4628-9a7f-8451112511a9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bf8413ee-7b30-4a49-9eb8-6876e7c184b7", + "3d9dc157-f922-4370-84c2-de56ff60278e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7360, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "88ecd288-4836-4241-85ce-1810ad6599e5", + "1abe475f-03bf-486d-8620-70007845d1a8", + "4d2f0eb1-3fab-4f05-8c12-42b27fa541f7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5366, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "title": "BO - Shop Parameters - Search : Quick edit status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/03_quickEditStatus.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/03_quickEditStatus.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Search : Quick edit status\"", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status \"before all\" hook in \"BO - Shop Parameters - Search : Quick edit status\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26d849a5-b08c-4a9f-ae44-f8e25f1d622c", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Search : Quick edit status\"", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status \"after all\" hook in \"BO - Shop Parameters - Search : Quick edit status\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c940559c-f5d1-469c-bce6-b2654fd0fb52", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "790a76b2-344e-4579-bdcf-2a0d943d6cdf", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Search' page", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status should go to 'Shop Parameters > Search' page", + "timedOut": false, + "duration": 3648, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_quickEditStatus_goToSearchPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.searchLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(search_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24ed60dd-d73e-4437-b3be-081e4892672b", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of aliases in BO", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status should reset all filters and get number of aliases in BO", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_quickEditStatus_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearch = _a.sent();\n (0, chai_1.expect)(numberOfSearch).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ab338c5-c9cd-4830-a6a3-158a32804cf0", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status should filter list by name", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_quickEditStatus_filterToQuickEdit\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textAlias;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.filterTable(page, 'input', 'alias', search_2.default.bloose.alias)];\n case 3:\n _a.sent();\n return [4 /*yield*/, search_1.default.getTextColumn(page, 1, 'alias')];\n case 4:\n textAlias = _a.sent();\n (0, chai_1.expect)(textAlias).to.contains(search_2.default.bloose.alias);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9761e126-3a47-4db2-b979-b65276077e59", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": false, + "skipped": false + }, + { + "title": "should disable status", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status should disable status", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_quickEditStatus_disableStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(aliasStatus.args.status, \"Status\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.setStatus(page, 1, aliasStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, search_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(search_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, search_1.default.getStatus(page, 1)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(aliasStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc94e4e0-14a0-4b37-a1d8-3fdcb7f3070b", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": false, + "skipped": false + }, + { + "title": "should enable status", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status should enable status", + "timedOut": false, + "duration": 885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_quickEditStatus_enableStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, currentStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(aliasStatus.args.status, \"Status\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.setStatus(page, 1, aliasStatus.args.enable)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, search_1.default.getAlertSuccessBlockContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(search_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, search_1.default.getStatus(page, 1)];\n case 5:\n currentStatus = _a.sent();\n (0, chai_1.expect)(currentStatus).to.be.equal(aliasStatus.args.enable);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c752323-77cf-4097-a7b8-218b22acf5ef", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of aliases in BO", + "fullTitle": "BO - Shop Parameters - Search : Quick edit status should reset all filters and get number of aliases in BO", + "timedOut": false, + "duration": 2868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_quickEditStatus_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfSearchAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfSearchAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfSearchAfterReset).to.be.equal(numberOfSearch);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f2c5a1c-87fa-4503-a2d3-74300883e780", + "parentUUID": "a55fc84e-bde5-491f-abbe-c9cc78f1facd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "790a76b2-344e-4579-bdcf-2a0d943d6cdf", + "24ed60dd-d73e-4437-b3be-081e4892672b", + "2ab338c5-c9cd-4830-a6a3-158a32804cf0", + "9761e126-3a47-4db2-b979-b65276077e59", + "dc94e4e0-14a0-4b37-a1d8-3fdcb7f3070b", + "3c752323-77cf-4097-a7b8-218b22acf5ef", + "3f2c5a1c-87fa-4503-a2d3-74300883e780" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10978, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "title": "BO - Shop Parameters - Search : Fuzzy search", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/01_search/editSearchSettings/03_fuzzySearch.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/01_search/editSearchSettings/03_fuzzySearch.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Search : Fuzzy search\"", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search \"before all\" hook in \"BO - Shop Parameters - Search : Fuzzy search\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ad014d5-07dc-4ab0-b440-d3e8029fcb95", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Search : Fuzzy search\"", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search \"after all\" hook in \"BO - Shop Parameters - Search : Fuzzy search\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "548deded-3edb-431e-9d8c-5644bc5f0e49", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7b533b9-396e-4a8b-bdea-f4a42e984dc3", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Search' page", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should go to 'Shop Parameters > Search' page", + "timedOut": false, + "duration": 3638, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_goToSearchPageWoFuzzy\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchPageWoFuzzy', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.searchLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(search_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0437ae3c-6802-4f76-ad49-389c97a2307e", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the Fuzzy Search", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should disable the Fuzzy Search", + "timedOut": false, + "duration": 2219, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_disableFuzzySearch\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableFuzzySearch', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.setFuzzySearch(page, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(search_1.default.settingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "371c5903-9d4e-46b6-8e87-cc57be659195", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the Front Office", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should go to the Front Office", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_goToFoWoFuzzy\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoWoFuzzy', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.be.eq(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f7f4936-c314-4894-9c91-75256f5406d7", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should check the autocomplete", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should check the autocomplete", + "timedOut": false, + "duration": 2067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_checkAutocompleteWoFuzzy\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasSearchResult, inputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAutocompleteWoFuzzy', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.hasAutocompleteSearchResult(page, 'test')];\n case 2:\n hasSearchResult = _a.sent();\n (0, chai_1.expect)(hasSearchResult).to.eq(false);\n return [4 /*yield*/, home_1.homePage.getSearchValue(page)];\n case 3:\n inputValue = _a.sent();\n (0, chai_1.expect)(inputValue).equal('test');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68b08dc1-b32c-48c2-a79b-d70b18f72e29", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should check the search page", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should check the search page", + "timedOut": false, + "duration": 730, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_checkSearchPageWoFuzzy\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, hasResults, searchInputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSearchPageWoFuzzy', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, 'test')];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [4 /*yield*/, searchResults_1.searchResultsPage.hasResults(page)];\n case 4:\n hasResults = _a.sent();\n (0, chai_1.expect)(hasResults).to.eq(false);\n return [4 /*yield*/, searchResults_1.searchResultsPage.getSearchValue(page)];\n case 5:\n searchInputValue = _a.sent();\n (0, chai_1.expect)(searchInputValue).to.be.equal('test');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dce9a70e-eb4f-4295-8f0c-55954a19e439", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should go to BO", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should go to BO", + "timedOut": false, + "duration": 260, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_goToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToBO(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97d366d9-02c7-49b5-afe1-7507ccc5f173", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Search' page", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should go to 'Shop Parameters > Search' page", + "timedOut": false, + "duration": 3639, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_goToSearchPageWFuzzy\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchPageWFuzzy', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.searchLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(search_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64c4704c-4388-49db-a503-ee03a7b40121", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the Fuzzy Search", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should disable the Fuzzy Search", + "timedOut": false, + "duration": 2224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_enableFuzzySearch\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableFuzzySearch', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.setFuzzySearch(page, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(search_1.default.settingsUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "722ceb04-291e-416a-841f-f1c04bd38c57", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the Front Office", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should go to the Front Office", + "timedOut": false, + "duration": 193, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_goToFoWFuzzy\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoWFuzzy', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.be.eq(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3193ff33-508d-4d12-b8cf-e69304841094", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should check the autocomplete", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should check the autocomplete", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_checkAutocompleteWFuzzy\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasSearchResult, countSearchResult, inputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAutocompleteWFuzzy', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.hasAutocompleteSearchResult(page, 'test')];\n case 2:\n hasSearchResult = _a.sent();\n (0, chai_1.expect)(hasSearchResult).to.eq(true);\n return [4 /*yield*/, home_1.homePage.countAutocompleteSearchResult(page, 'test')];\n case 3:\n countSearchResult = _a.sent();\n (0, chai_1.expect)(countSearchResult).to.be.eq(7);\n return [4 /*yield*/, home_1.homePage.getSearchValue(page)];\n case 4:\n inputValue = _a.sent();\n (0, chai_1.expect)(inputValue).equal('test');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66307a98-bbf3-4f2f-83ad-d94db12bffa2", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + }, + { + "title": "should check the search page", + "fullTitle": "BO - Shop Parameters - Search : Fuzzy search should check the search page", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_search_editSearchSettings_fuzzySearch_checkSearchPageWFuzzy\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, hasResults, countResults, searchInputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSearchPageWFuzzy', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, 'test')];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [4 /*yield*/, searchResults_1.searchResultsPage.hasResults(page)];\n case 4:\n hasResults = _a.sent();\n (0, chai_1.expect)(hasResults).to.eq(true);\n return [4 /*yield*/, searchResults_1.searchResultsPage.getSearchResultsNumber(page)];\n case 5:\n countResults = _a.sent();\n (0, chai_1.expect)(countResults).to.be.eq(7);\n return [4 /*yield*/, searchResults_1.searchResultsPage.getSearchValue(page)];\n case 6:\n searchInputValue = _a.sent();\n (0, chai_1.expect)(searchInputValue).to.be.equal('test');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ef80b24-d61c-4d9a-8f6a-3db880bb0200", + "parentUUID": "97071c1a-6d86-4816-84e8-c395c8ec6113", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d7b533b9-396e-4a8b-bdea-f4a42e984dc3", + "0437ae3c-6802-4f76-ad49-389c97a2307e", + "371c5903-9d4e-46b6-8e87-cc57be659195", + "6f7f4936-c314-4894-9c91-75256f5406d7", + "68b08dc1-b32c-48c2-a79b-d70b18f72e29", + "dce9a70e-eb4f-4295-8f0c-55954a19e439", + "97d366d9-02c7-49b5-afe1-7507ccc5f173", + "64c4704c-4388-49db-a503-ee03a7b40121", + "722ceb04-291e-416a-841f-f1c04bd38c57", + "3193ff33-508d-4d12-b8cf-e69304841094", + "66307a98-bbf3-4f2f-83ad-d94db12bffa2", + "2ef80b24-d61c-4d9a-8f6a-3db880bb0200" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 18782, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d6c58ed5-4fcb-43f5-8e2b-b7163adecb9b", + "title": "BO - Shop Parameters - Search : Create, update and delete tag in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/01_CRUDTag.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/01_CRUDTag.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Search : Create, update and delete tag in BO\"", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO \"before all\" hook in \"BO - Shop Parameters - Search : Create, update and delete tag in BO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e01f607c-c7e3-4ec3-8b06-93a4ee2d6b1e", + "parentUUID": "d6c58ed5-4fcb-43f5-8e2b-b7163adecb9b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Search : Create, update and delete tag in BO\"", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO \"after all\" hook in \"BO - Shop Parameters - Search : Create, update and delete tag in BO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fe1c4897-f91e-4f8b-a083-115d3f823d5a", + "parentUUID": "d6c58ed5-4fcb-43f5-8e2b-b7163adecb9b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO should login in BO", + "timedOut": false, + "duration": 1747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "759b3644-0bbd-4169-a48d-222cfc05d869", + "parentUUID": "d6c58ed5-4fcb-43f5-8e2b-b7163adecb9b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop Parameters > Search' page", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO should go to 'Shop Parameters > Search' page", + "timedOut": false, + "duration": 3651, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_CRUDTag_goToSearchPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.searchLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(search_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "920feea1-d355-4128-853a-adfdc0a97102", + "parentUUID": "d6c58ed5-4fcb-43f5-8e2b-b7163adecb9b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Tags' page", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO should go to 'Tags' page", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_CRUDTag_goToTagsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTagsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToTagsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTags = _a.sent();\n return [4 /*yield*/, tags_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tags_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3412d7a0-1e9f-41c2-bba5-4c34cf08c6a8", + "parentUUID": "d6c58ed5-4fcb-43f5-8e2b-b7163adecb9b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "3cca7ed4-a446-4eb8-b6bf-b8e472bb500c", + "title": "Create tag in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/01_CRUDTag.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/01_CRUDTag.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO Create tag in BO should go to add new tag page", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_CRUDTag_goToAddTagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddTagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb1f5587-420b-4ccd-ad60-592a632a894e", + "parentUUID": "3cca7ed4-a446-4eb8-b6bf-b8e472bb500c", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag and check result", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO Create tag in BO should create tag and check result", + "timedOut": false, + "duration": 1105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_CRUDTag_createTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, createTagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ecd420b-a321-4549-b19e-e79b4396cb84", + "parentUUID": "3cca7ed4-a446-4eb8-b6bf-b8e472bb500c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cb1f5587-420b-4ccd-ad60-592a632a894e", + "0ecd420b-a321-4549-b19e-e79b4396cb84" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1936, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6a40eb91-3f23-4cb3-8524-218b8f1ffe59", + "title": "Update tag created", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/01_CRUDTag.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/01_CRUDTag.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to edit tag page", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO Update tag created should go to edit tag page", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_CRUDTag_goToEditTagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditTagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.gotoEditTagPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa8e4fa9-b680-40b3-90ce-197c6f7807b7", + "parentUUID": "6a40eb91-3f23-4cb3-8524-218b8f1ffe59", + "isHook": false, + "skipped": false + }, + { + "title": "should update tag", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO Update tag created should update tag", + "timedOut": false, + "duration": 1100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_CRUDTag_updateTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTagsAfterUpdate;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, editTagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulUpdateMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTagsAfterUpdate = _a.sent();\n (0, chai_1.expect)(numberOfTagsAfterUpdate).to.be.equal(numberOfTags + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acd97614-072c-419e-aff8-903914b8ab6b", + "parentUUID": "6a40eb91-3f23-4cb3-8524-218b8f1ffe59", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aa8e4fa9-b680-40b3-90ce-197c6f7807b7", + "acd97614-072c-419e-aff8-903914b8ab6b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1921, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e4b678f6-9694-4af7-828a-9d95f1de790b", + "title": "Delete tag", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/01_CRUDTag.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/01_CRUDTag.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete tag", + "fullTitle": "BO - Shop Parameters - Search : Create, update and delete tag in BO Delete tag should delete tag", + "timedOut": false, + "duration": 1034, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_CRUDTag_deleteTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfTagsAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.deleteTag(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulDeleteMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTagsAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfTagsAfterDelete).to.be.equal(numberOfTags);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44556439-13a7-432d-9d10-ca255665d37c", + "parentUUID": "e4b678f6-9694-4af7-828a-9d95f1de790b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "44556439-13a7-432d-9d10-ca255665d37c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1034, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "759b3644-0bbd-4169-a48d-222cfc05d869", + "920feea1-d355-4128-853a-adfdc0a97102", + "3412d7a0-1e9f-41c2-bba5-4c34cf08c6a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6174, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a47de849-7f32-4ce0-a555-36a13420f8b5", + "title": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Shop Parameters - Search : Filter, sort and pagination tag in BO\"", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO \"before all\" hook in \"BO - Shop Parameters - Search : Filter, sort and pagination tag in BO\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27b03565-c2f8-4b69-88b0-96e22c425d5a", + "parentUUID": "a47de849-7f32-4ce0-a555-36a13420f8b5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Shop Parameters - Search : Filter, sort and pagination tag in BO\"", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO \"after all\" hook in \"BO - Shop Parameters - Search : Filter, sort and pagination tag in BO\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "15971938-0438-472a-a753-d3d5fb6857fe", + "parentUUID": "a47de849-7f32-4ce0-a555-36a13420f8b5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe079d14-3d52-456a-9517-a33610f10e6e", + "parentUUID": "a47de849-7f32-4ce0-a555-36a13420f8b5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'ShopParameters > Search' page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO should go to 'ShopParameters > Search' page", + "timedOut": false, + "duration": 3654, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToSearchPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSearchPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.searchLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, search_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(search_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99ea6f72-4f82-4ebd-a9b3-9fb94c75f1b7", + "parentUUID": "a47de849-7f32-4ce0-a555-36a13420f8b5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Tags' page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO should go to 'Tags' page", + "timedOut": false, + "duration": 785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToTagsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTagsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, search_1.default.goToTagsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfTags = _a.sent();\n return [4 /*yield*/, tags_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tags_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9942089f-b028-4cd2-977e-aa8e1f5f75eb", + "parentUUID": "a47de849-7f32-4ce0-a555-36a13420f8b5", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "title": "Create 21 tags in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d19cf498-d8c4-4899-9ca6-8556266845a8", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 1 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 1 and check result", + "timedOut": false, + "duration": 1118, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "910cd593-760c-496e-a0b2-2f262e25c468", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44520fab-e377-464f-82a9-61d3a52aa184", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 2 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 2 and check result", + "timedOut": false, + "duration": 1098, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5139818e-fb46-40c1-87c1-2bd51e39f082", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca94eba7-506a-449b-aeca-f4aedfc7134c", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 3 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 3 and check result", + "timedOut": false, + "duration": 1092, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a14f6f83-fd10-4e9a-b47d-8ab01eb6becf", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2dac1fa-6d56-4bb5-80fe-c10b57ee59d6", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 4 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 4 and check result", + "timedOut": false, + "duration": 1086, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "575551c8-4f96-4bc8-8ce3-2dd4196905a9", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dde8a12b-c6f1-4cac-848e-71c100e34bfc", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 5 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 5 and check result", + "timedOut": false, + "duration": 1091, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d2a8c8a-163b-4fce-bdb3-39ac5aaeb771", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "881234f6-c178-4934-b973-15dfff09e7b8", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 6 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 6 and check result", + "timedOut": false, + "duration": 1100, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a7a8bbc-55a5-4426-9730-26d980f3a287", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24a1e747-867b-4f6b-a088-fb45ada54f4c", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 7 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 7 and check result", + "timedOut": false, + "duration": 1097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42156487-a879-4903-9c3d-4dea5eae8ac9", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0400f74f-9c6e-4dd5-ac3c-1b7bb16f186b", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 8 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 8 and check result", + "timedOut": false, + "duration": 1095, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26e797f9-89c5-4b92-a9d2-4b1a7af4c4a2", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1440c62f-279b-4028-a249-44d1bfd2a535", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 9 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 9 and check result", + "timedOut": false, + "duration": 1102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4f5d1df-c838-4414-b72d-5bdac2d9f74e", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 840, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d1a3651-eea2-4c0a-8d74-e32e11ca7aed", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 10 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 10 and check result", + "timedOut": false, + "duration": 1103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2ffa605-402b-4ccb-bf49-65f21d8f60c5", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "947f6609-e927-4143-8c54-a5d21f450a47", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 11 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 11 and check result", + "timedOut": false, + "duration": 1114, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "830f8324-6a47-49d8-85f5-b4cbed279da3", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 813, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab24048a-f3b7-40b9-b2ae-7087b05c1ebd", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 12 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 12 and check result", + "timedOut": false, + "duration": 1120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "420fd18a-cdc9-4187-ae0a-cc1a07e0b140", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd1fdc43-4d9e-473f-a22e-16354bbcaf0c", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 13 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 13 and check result", + "timedOut": false, + "duration": 1120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8d54761-cc63-4d38-bec5-4755eeb4a3ac", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00ca6fc9-b9e5-47a1-b6f4-ba98ebbcd5a8", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 14 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 14 and check result", + "timedOut": false, + "duration": 1116, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f527ddc8-1a6c-49cc-a62a-183c73999109", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cb3018a-6d8a-419b-821a-0426c5b5f638", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 15 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 15 and check result", + "timedOut": false, + "duration": 1122, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19e7e5c9-56b1-4240-90ba-2feb4508efe5", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14d8c079-b383-4d03-aab6-a8634eb6ca0d", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 16 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 16 and check result", + "timedOut": false, + "duration": 1116, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f195055-484d-4fb2-a1d5-6add84eecbee", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10352bef-592d-4c6d-bfb1-ee32830b81c0", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 17 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 17 and check result", + "timedOut": false, + "duration": 1118, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "138a2c8e-0938-434d-a76c-03df2ce41169", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78a01628-f67e-462c-a3de-8af9aeebd7f0", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 18 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 18 and check result", + "timedOut": false, + "duration": 1146, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag17\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "febf2c6d-43c6-4ab6-b3fe-c2121efd7360", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ddbb72b-562d-4152-a4bc-34579feb5c0a", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 19 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 19 and check result", + "timedOut": false, + "duration": 1117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag18\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88a75898-48b0-4852-9023-b8f6cc032900", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 817, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d5facd6-f05f-4641-bb29-47c11e03effa", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 20 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 20 and check result", + "timedOut": false, + "duration": 1119, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag19\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2055b330-e6ce-46af-bcfc-43d9547b9a19", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new tag page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should go to add new tag page", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_goToAddTagPage20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAddTagPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.goToAddNewTagPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b4a32aa-29db-4b98-955d-970299ef6e3a", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + }, + { + "title": "should create tag n° 21 and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Create 21 tags in BO should create tag n° 21 and check result", + "timedOut": false, + "duration": 1109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_createTag20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfElementAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"createTag\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setTag(page, tagData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(tags_1.default.successfulCreationMessage);\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfElementAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfElementAfterCreation).to.be.equal(numberOfTags + 1 + index);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d050652-71b1-4417-8d91-df3c5d65ed2e", + "parentUUID": "55eebe22-8d65-41ef-abfe-787f1fd86686", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d19cf498-d8c4-4899-9ca6-8556266845a8", + "910cd593-760c-496e-a0b2-2f262e25c468", + "44520fab-e377-464f-82a9-61d3a52aa184", + "5139818e-fb46-40c1-87c1-2bd51e39f082", + "ca94eba7-506a-449b-aeca-f4aedfc7134c", + "a14f6f83-fd10-4e9a-b47d-8ab01eb6becf", + "e2dac1fa-6d56-4bb5-80fe-c10b57ee59d6", + "575551c8-4f96-4bc8-8ce3-2dd4196905a9", + "dde8a12b-c6f1-4cac-848e-71c100e34bfc", + "0d2a8c8a-163b-4fce-bdb3-39ac5aaeb771", + "881234f6-c178-4934-b973-15dfff09e7b8", + "9a7a8bbc-55a5-4426-9730-26d980f3a287", + "24a1e747-867b-4f6b-a088-fb45ada54f4c", + "42156487-a879-4903-9c3d-4dea5eae8ac9", + "0400f74f-9c6e-4dd5-ac3c-1b7bb16f186b", + "26e797f9-89c5-4b92-a9d2-4b1a7af4c4a2", + "1440c62f-279b-4028-a249-44d1bfd2a535", + "b4f5d1df-c838-4414-b72d-5bdac2d9f74e", + "1d1a3651-eea2-4c0a-8d74-e32e11ca7aed", + "e2ffa605-402b-4ccb-bf49-65f21d8f60c5", + "947f6609-e927-4143-8c54-a5d21f450a47", + "830f8324-6a47-49d8-85f5-b4cbed279da3", + "ab24048a-f3b7-40b9-b2ae-7087b05c1ebd", + "420fd18a-cdc9-4187-ae0a-cc1a07e0b140", + "bd1fdc43-4d9e-473f-a22e-16354bbcaf0c", + "c8d54761-cc63-4d38-bec5-4755eeb4a3ac", + "00ca6fc9-b9e5-47a1-b6f4-ba98ebbcd5a8", + "f527ddc8-1a6c-49cc-a62a-183c73999109", + "7cb3018a-6d8a-419b-821a-0426c5b5f638", + "19e7e5c9-56b1-4240-90ba-2feb4508efe5", + "14d8c079-b383-4d03-aab6-a8634eb6ca0d", + "5f195055-484d-4fb2-a1d5-6add84eecbee", + "10352bef-592d-4c6d-bfb1-ee32830b81c0", + "138a2c8e-0938-434d-a76c-03df2ce41169", + "78a01628-f67e-462c-a3de-8af9aeebd7f0", + "febf2c6d-43c6-4ab6-b3fe-c2121efd7360", + "7ddbb72b-562d-4152-a4bc-34579feb5c0a", + "88a75898-48b0-4852-9023-b8f6cc032900", + "0d5facd6-f05f-4641-bb29-47c11e03effa", + "2055b330-e6ce-46af-bcfc-43d9547b9a19", + "7b4a32aa-29db-4b98-955d-970299ef6e3a", + "2d050652-71b1-4417-8d91-df3c5d65ed2e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 40517, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "380df446-3f27-4f1c-accd-293f035d790b", + "title": "Filter tags table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter by id_tag '5'", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Filter tags table should filter by id_tag '5'", + "timedOut": false, + "duration": 920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterById\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfTags + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, tags_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e5be9e2-7328-48a3-8d17-9f4925317780", + "parentUUID": "380df446-3f27-4f1c-accd-293f035d790b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Filter tags table should reset all filters", + "timedOut": false, + "duration": 2880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterByIdReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfTags + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6be0cdd-af66-4d49-b2c9-8476f9681561", + "parentUUID": "380df446-3f27-4f1c-accd-293f035d790b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by l!name 'English (English)'", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Filter tags table should filter by l!name 'English (English)'", + "timedOut": false, + "duration": 1125, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterByLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfTags + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, tags_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b94747a9-3627-4de9-a32e-7b354373e7d9", + "parentUUID": "380df446-3f27-4f1c-accd-293f035d790b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Filter tags table should reset all filters", + "timedOut": false, + "duration": 2981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterByLanguageReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfTags + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90499237-3440-4b9c-860d-9249c753d41f", + "parentUUID": "380df446-3f27-4f1c-accd-293f035d790b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by a!name 'todelete10'", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Filter tags table should filter by a!name 'todelete10'", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterByName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfTags + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, tags_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb9cbe92-a5e7-44c6-b359-0076cfcfdc01", + "parentUUID": "380df446-3f27-4f1c-accd-293f035d790b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Filter tags table should reset all filters", + "timedOut": false, + "duration": 2885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterByNameReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfTags + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a89c198e-72f3-43f2-9cbd-d7c7c66835b8", + "parentUUID": "380df446-3f27-4f1c-accd-293f035d790b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by products '0'", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Filter tags table should filter by products '0'", + "timedOut": false, + "duration": 900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterByProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, row, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.filterTable(page, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterFilter).to.be.at.most(numberOfTags + 21);\n row = 1;\n _a.label = 4;\n case 4:\n if (!(row <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, tags_1.default.getTextColumn(page, row, test.args.filterBy)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(test.args.filterValue);\n _a.label = 6;\n case 6:\n row++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a730df5-3dfb-4f7c-8ce5-3a673c4a0304", + "parentUUID": "380df446-3f27-4f1c-accd-293f035d790b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Filter tags table should reset all filters", + "timedOut": false, + "duration": 2885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterByProductsReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.testIdentifier, \"Reset\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLinesAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfLinesAfterReset).to.equal(numberOfTags + 21);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51dcff34-695a-404e-ae43-bef232d21347", + "parentUUID": "380df446-3f27-4f1c-accd-293f035d790b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6e5be9e2-7328-48a3-8d17-9f4925317780", + "a6be0cdd-af66-4d49-b2c9-8476f9681561", + "b94747a9-3627-4de9-a32e-7b354373e7d9", + "90499237-3440-4b9c-860d-9249c753d41f", + "bb9cbe92-a5e7-44c6-b359-0076cfcfdc01", + "a89c198e-72f3-43f2-9cbd-d7c7c66835b8", + "6a730df5-3dfb-4f7c-8ce5-3a673c4a0304", + "51dcff34-695a-404e-ae43-bef232d21347" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15494, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "title": "Sort tags table", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should sort by 'id_tag' 'down' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Sort tags table should sort by 'id_tag' 'down' and check result", + "timedOut": false, + "duration": 1167, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_sortByIdDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, tags_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef88a08f-e378-4ece-b4db-f6043bb953c9", + "parentUUID": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'l!name' 'up' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Sort tags table should sort by 'l!name' 'up' and check result", + "timedOut": false, + "duration": 1238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_sortByLanguageAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, tags_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20544978-d462-405a-9f13-3ce4aff0dc3e", + "parentUUID": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'l!name' 'down' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Sort tags table should sort by 'l!name' 'down' and check result", + "timedOut": false, + "duration": 1164, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_sortByLanguageDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, tags_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79d40d05-5cf1-47b2-85dd-8d309ae25290", + "parentUUID": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!name' 'up' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Sort tags table should sort by 'a!name' 'up' and check result", + "timedOut": false, + "duration": 1162, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, tags_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac3ba98b-a8c5-4093-807a-2ac1a6c7f398", + "parentUUID": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'a!name' 'down' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Sort tags table should sort by 'a!name' 'down' and check result", + "timedOut": false, + "duration": 1145, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, tags_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8de0e61d-c6f3-410d-85d1-6223ded850c7", + "parentUUID": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'products' 'up' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Sort tags table should sort by 'products' 'up' and check result", + "timedOut": false, + "duration": 1190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_sortByProductAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, tags_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a09aac6-138c-412e-8182-5f4acbd69666", + "parentUUID": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'products' 'down' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Sort tags table should sort by 'products' 'down' and check result", + "timedOut": false, + "duration": 1240, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_sortByProductDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, tags_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "912c8d09-7cfa-4bf6-a887-11549b6df90d", + "parentUUID": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'id_tag' 'up' and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Sort tags table should sort by 'id_tag' 'up' and check result", + "timedOut": false, + "duration": 1425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_sortByIdAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, nonSortedTableFloat, sortedTableFloat, expectedResult, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, tags_1.default.sortTable(page, test.args.sortBy, test.args.sortDirection)];\n case 3:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getAllRowsColumnContent(page, test.args.sortBy)];\n case 4:\n sortedTable = _a.sent();\n if (!test.args.isFloat) return [3 /*break*/, 6];\n nonSortedTableFloat = nonSortedTable.map(function (text) { return parseFloat(text); });\n sortedTableFloat = sortedTable.map(function (text) { return parseFloat(text); });\n return [4 /*yield*/, basicHelper_1.default.sortArrayNumber(nonSortedTableFloat)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTableFloat).to.deep.equal(expectedResult.reverse());\n }\n return [3 /*break*/, 8];\n case 6: return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 7:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'up') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n _a.label = 8;\n case 8: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "804c4195-cb4d-453a-9f02-84c036541f07", + "parentUUID": "8421d8d4-9cb2-4df2-b65c-372ddf6aaf7c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ef88a08f-e378-4ece-b4db-f6043bb953c9", + "20544978-d462-405a-9f13-3ce4aff0dc3e", + "79d40d05-5cf1-47b2-85dd-8d309ae25290", + "ac3ba98b-a8c5-4093-807a-2ac1a6c7f398", + "8de0e61d-c6f3-410d-85d1-6223ded850c7", + "5a09aac6-138c-412e-8182-5f4acbd69666", + "912c8d09-7cfa-4bf6-a887-11549b6df90d", + "804c4195-cb4d-453a-9f02-84c036541f07" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9731, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fed777ba-31bf-43af-bd38-e9d9b6e53d47", + "title": "Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should change the items number to 20 per page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Pagination next and previous should change the items number to 20 per page", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_changeItemNumberTo20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo20', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.selectPaginationLimit(page, 20)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9db5bfef-85f3-4cc9-9be7-8647daa8cf21", + "parentUUID": "fed777ba-31bf-43af-bd38-e9d9b6e53d47", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Pagination next and previous should click on next", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.paginationNext(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24487e7a-9e91-4110-b7f2-ce366d10486b", + "parentUUID": "fed777ba-31bf-43af-bd38-e9d9b6e53d47", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Pagination next and previous should click on previous", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.paginationPrevious(page)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47ad3834-16ea-43f9-b7ef-d252b56fefb0", + "parentUUID": "fed777ba-31bf-43af-bd38-e9d9b6e53d47", + "isHook": false, + "skipped": false + }, + { + "title": "should change the items number to 50 per page", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Pagination next and previous should change the items number to 50 per page", + "timedOut": false, + "duration": 897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_changeItemNumberTo50\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paginationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeItemNumberTo50', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.selectPaginationLimit(page, 50)];\n case 2:\n paginationNumber = _a.sent();\n (0, chai_1.expect)(paginationNumber).to.equal('1');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5cfda79-af18-4ad2-965e-7cdb347d5deb", + "parentUUID": "fed777ba-31bf-43af-bd38-e9d9b6e53d47", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9db5bfef-85f3-4cc9-9be7-8647daa8cf21", + "24487e7a-9e91-4110-b7f2-ce366d10486b", + "47ad3834-16ea-43f9-b7ef-d252b56fefb0", + "e5cfda79-af18-4ad2-965e-7cdb347d5deb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3581, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "791ca6d7-5db6-4997-b55c-7107bf50bda2", + "title": "Delete tags with Bulk Actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "file": "/campaigns/functional/BO/13_shopParameters/07_search/02_tags/02_filterSortAndPagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Delete tags with Bulk Actions should filter list by name", + "timedOut": false, + "duration": 1103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_filterForBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLinesAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterForBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.filterTable(page, 'a!name', 'todelete')];\n case 2:\n _a.sent();\n return [4 /*yield*/, tags_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLinesAfterFilter = _a.sent();\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfLinesAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, tags_1.default.getTextColumn(page, i, 'a!name')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('todelete');\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9697d783-f497-421e-ab67-8c264fe52f6e", + "parentUUID": "791ca6d7-5db6-4997-b55c-7107bf50bda2", + "isHook": false, + "skipped": false + }, + { + "title": "should delete tags with Bulk Actions and check result", + "fullTitle": "BO - Shop Parameters - Search : Filter, sort and pagination tag in BO Delete tags with Bulk Actions should delete tags with Bulk Actions and check result", + "timedOut": false, + "duration": 680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_BO_shopParameters_search_tags_filterSortAndPagination_bulkDeleteTags\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteTags', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tags_1.default.bulkDelete(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(tags_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca66a0a1-03de-41ab-b20b-1a4676663c04", + "parentUUID": "791ca6d7-5db6-4997-b55c-7107bf50bda2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9697d783-f497-421e-ab67-8c264fe52f6e", + "ca66a0a1-03de-41ab-b20b-1a4676663c04" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1783, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "fe079d14-3d52-456a-9517-a33610f10e6e", + "99ea6f72-4f82-4ebd-a9b3-9fb94c75f1b7", + "9942089f-b028-4cd2-977e-aa8e1f5f75eb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6162, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "ddcd9f0b-390b-4a07-8adc-bb9853efd644", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 2734, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ba47294-4da2-4e93-81e4-d72f680c26e4", + "parentUUID": "ddcd9f0b-390b-4a07-8adc-bb9853efd644", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb3c075d-a8c9-4bab-a4a8-b662c9de913f", + "parentUUID": "ddcd9f0b-390b-4a07-8adc-bb9853efd644", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e41e4752-77a2-413f-8baf-98d534bbe9f9", + "parentUUID": "ddcd9f0b-390b-4a07-8adc-bb9853efd644", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "8fbb0857-f3f5-4575-ab46-cc6b17f1adc8", + "title": "FO - Consult credit slip list & View PDF Credit slip & View order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Consult credit slip list & View PDF Credit slip & View order\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order \"before all\" hook in \"FO - Consult credit slip list & View PDF Credit slip & View order\"", + "timedOut": false, + "duration": 61, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78130127-7437-4725-a33f-fc0ed4e7cb6d", + "parentUUID": "8fbb0857-f3f5-4575-ab46-cc6b17f1adc8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Consult credit slip list & View PDF Credit slip & View order\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order \"after all\" hook in \"FO - Consult credit slip list & View PDF Credit slip & View order\"", + "timedOut": false, + "duration": 22, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.deleteFile(filePath)];\n case 1:\n _a.sent();\n return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 2:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f020708c-55ce-4c89-b195-ba2c5adbabcc", + "parentUUID": "8fbb0857-f3f5-4575-ab46-cc6b17f1adc8", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d1af08e1-e4cb-4a70-ac7a-74d6c45f3188", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "301a28ea-4faa-40e8-8232-a71f0d802d5f", + "parentUUID": "d1af08e1-e4cb-4a70-ac7a-74d6c45f3188", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "26bf7b5a-1f8f-4b24-b158-5beb855b75a5", + "parentUUID": "d1af08e1-e4cb-4a70-ac7a-74d6c45f3188", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 1823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85e9f6d8-f99b-4a4b-8c63-98b76c1f0c13", + "parentUUID": "d1af08e1-e4cb-4a70-ac7a-74d6c45f3188", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_1_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9a98f73-d67c-436d-97b8-f87fd5562e42", + "parentUUID": "d1af08e1-e4cb-4a70-ac7a-74d6c45f3188", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_1_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02ea2892-08f7-434b-97cc-3beaa4a0e9ba", + "parentUUID": "d1af08e1-e4cb-4a70-ac7a-74d6c45f3188", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 1946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_1_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e78d68e-6723-4dd2-9036-93576aed8f0e", + "parentUUID": "d1af08e1-e4cb-4a70-ac7a-74d6c45f3188", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "85e9f6d8-f99b-4a4b-8c63-98b76c1f0c13", + "f9a98f73-d67c-436d-97b8-f87fd5562e42", + "02ea2892-08f7-434b-97cc-3beaa4a0e9ba", + "5e78d68e-6723-4dd2-9036-93576aed8f0e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6457, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c89ccf5b-a11e-4dc5-bbad-2d01bfa41431", + "title": "PRE-TEST: Create address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create address \"before all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2873b78-bf78-4fda-a1c9-36f31e088ad0", + "parentUUID": "c89ccf5b-a11e-4dc5-bbad-2d01bfa41431", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create address \"after all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "69070be1-c52b-443c-8652-586ac548288f", + "parentUUID": "c89ccf5b-a11e-4dc5-bbad-2d01bfa41431", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create address should login in BO", + "timedOut": false, + "duration": 6810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "988500dd-3dd5-4511-9fb2-b60aa4464a10", + "parentUUID": "c89ccf5b-a11e-4dc5-bbad-2d01bfa41431", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create address should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 5339, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_2_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c396085-eb7a-40f5-92da-63f853736457", + "parentUUID": "c89ccf5b-a11e-4dc5-bbad-2d01bfa41431", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create address should reset all filters", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_2_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cb13674-acbf-48ed-b736-39fc3a80d11a", + "parentUUID": "c89ccf5b-a11e-4dc5-bbad-2d01bfa41431", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create address should go to add new address page", + "timedOut": false, + "duration": 861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_2_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54f24b47-d0fc-4db5-978a-5ceb4bd72972", + "parentUUID": "c89ccf5b-a11e-4dc5-bbad-2d01bfa41431", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create address should create address and check result", + "timedOut": false, + "duration": 2577, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_2_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b84a06d4-4c05-456b-a243-c4dcf43eb663", + "parentUUID": "c89ccf5b-a11e-4dc5-bbad-2d01bfa41431", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "988500dd-3dd5-4511-9fb2-b60aa4464a10", + "1c396085-eb7a-40f5-92da-63f853736457", + "1cb13674-acbf-48ed-b736-39fc3a80d11a", + "54f24b47-d0fc-4db5-978a-5ceb4bd72972", + "b84a06d4-4c05-456b-a243-c4dcf43eb663" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17596, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff651a71-7fbf-4b2b-a985-d5f06d74439b", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8b855936-d591-45e7-9da4-3f216a12b688", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9babfc7e-d9b1-462c-a70b-9f03d4e7489d", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a718ced-ec85-48f5-824f-1c507dc69726", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 523, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c4db689-9106-41ae-b399-54fbca0371d4", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7324, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3a3068e-5d1b-4942-a2ae-3428dad49934", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1067, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_3_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f4f7470-d505-4ef7-b216-5dbf082ed25e", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 306, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_3_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fced789-8f93-4608-ad23-850b6984c987", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1570, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_3_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "973f32ac-a8fc-4806-8049-74c239000b90", + "parentUUID": "0110a40b-e1b9-4174-b386-8cb24612fb76", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9babfc7e-d9b1-462c-a70b-9f03d4e7489d", + "6a718ced-ec85-48f5-824f-1c507dc69726", + "3c4db689-9106-41ae-b399-54fbca0371d4", + "d3a3068e-5d1b-4942-a2ae-3428dad49934", + "1f4f7470-d505-4ef7-b216-5dbf082ed25e", + "1fced789-8f93-4608-ad23-850b6984c987", + "973f32ac-a8fc-4806-8049-74c239000b90" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13201, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "08ca14d3-2127-47ea-be00-8ea0fc96082f", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c75bb22-1f9a-4373-81c5-97505a555455", + "parentUUID": "08ca14d3-2127-47ea-be00-8ea0fc96082f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "77dda08d-9109-49fd-a7cf-78737568ce43", + "parentUUID": "08ca14d3-2127-47ea-be00-8ea0fc96082f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9de36fab-db6c-4796-8908-3bc877561b49", + "parentUUID": "08ca14d3-2127-47ea-be00-8ea0fc96082f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_4_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32e343c6-1160-4c97-a96a-886ea0ace22c", + "parentUUID": "08ca14d3-2127-47ea-be00-8ea0fc96082f", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_preTest_4_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5073a246-9d85-46d9-8093-200667ac5c42", + "parentUUID": "08ca14d3-2127-47ea-be00-8ea0fc96082f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9de36fab-db6c-4796-8908-3bc877561b49", + "32e343c6-1160-4c97-a96a-886ea0ace22c", + "5073a246-9d85-46d9-8093-200667ac5c42" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7298, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0ed3559c-f3dd-48da-b2d9-24f20c11de6d", + "title": "Consult Credit slip list in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "5a949182-67c8-470f-bf65-026f11436bb9", + "title": "Check there are no credit slips in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are no credit slips in FO should go to FO home page", + "timedOut": false, + "duration": 473, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d48fa42-b38a-4afd-827a-6127e72b40c2", + "parentUUID": "5a949182-67c8-470f-bf65-026f11436bb9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are no credit slips in FO should go to login page", + "timedOut": false, + "duration": 714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c2b7810-d33a-499a-8562-96b5a8143c2d", + "parentUUID": "5a949182-67c8-470f-bf65-026f11436bb9", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are no credit slips in FO should login", + "timedOut": false, + "duration": 516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67c9b8d4-c8e5-4429-ba65-48c7b2d3d053", + "parentUUID": "5a949182-67c8-470f-bf65-026f11436bb9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are no credit slips in FO should go to my account page", + "timedOut": false, + "duration": 720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goToMyAccountPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMyAccountPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3011f484-2d4f-4a8f-a491-0d33e7495d97", + "parentUUID": "5a949182-67c8-470f-bf65-026f11436bb9", + "isHook": false, + "skipped": false + }, + { + "title": "should go credit slips page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are no credit slips in FO should go credit slips page", + "timedOut": false, + "duration": 704, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goTocreditSlipPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goTocreditSlipPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToCreditSlipsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(creditSlips_1.creditSlipPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e0f5d80-44ad-40b5-a7d9-567c919a845c", + "parentUUID": "5a949182-67c8-470f-bf65-026f11436bb9", + "isHook": false, + "skipped": false + }, + { + "title": "should check there no credit slips", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are no credit slips in FO should check there no credit slips", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_checkNoCreditSlips\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertInfoMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoCreditSlips', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getAlertInfoMessage(page)];\n case 2:\n alertInfoMessage = _a.sent();\n (0, chai_1.expect)(alertInfoMessage).to.equal(creditSlips_1.creditSlipPage.noCreditSlipsInfoMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10ce7d11-0580-4264-821d-ebca9bfa5166", + "parentUUID": "5a949182-67c8-470f-bf65-026f11436bb9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8d48fa42-b38a-4afd-827a-6127e72b40c2", + "4c2b7810-d33a-499a-8562-96b5a8143c2d", + "67c9b8d4-c8e5-4429-ba65-48c7b2d3d053", + "3011f484-2d4f-4a8f-a491-0d33e7495d97", + "1e0f5d80-44ad-40b5-a7d9-567c919a845c", + "10ce7d11-0580-4264-821d-ebca9bfa5166" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3148, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "title": "Create a partial refund from the BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should login in BO", + "timedOut": false, + "duration": 1678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2be206cc-f356-447f-a585-a1d636d15247", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4049, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37d85cc9-10a7-417c-a061-a7c6a32ca5c5", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should go to the first order page", + "timedOut": false, + "duration": 1066, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goToOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderPage', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "beb245cb-31e8-4937-b0a5-6690ed508ae6", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Payment accepted' and check it", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should change the order status to 'Payment accepted' and check it", + "timedOut": false, + "duration": 1440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.modifyOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70252dc1-7a0d-4c49-a8d5-58e14e759716", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the button 'Partial Refund' is visible", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should check if the button 'Partial Refund' is visible", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_checkPartialRefundButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPartialRefundButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.isPartialRefundButtonVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5108c26-58ae-4dee-abf5-81cbf62f91c1", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should create 'Partial refund'", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should create 'Partial refund'", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_createPartialRefund\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createPartialRefund', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.clickOnPartialRefund(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addPartialRefundProduct(page, 1, 1)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(productsBlock_1.default.partialRefundValidationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce270837-e1cb-40a5-a05a-5051160942bd", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the mail is in mailbox", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should check if the mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_checkIfMailIsInMailbox\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfMailIsInMailbox', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.eq(\"[\".concat(global.INSTALL.SHOP_NAME, \"] New credit slip regarding your order\"));\n (0, chai_1.expect)(newMail.text).to.contains('A credit slip has been generated in your name for order with the reference');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45b4042d-11f4-449d-ab3f-b6358b5eec31", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should check if 'Credit slip' document is created", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should check if 'Credit slip' document is created", + "timedOut": false, + "duration": 243, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_checkCreditSlipDocument\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreditSlipDocument', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 3)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Credit slip');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f911e42-de12-48a4-ac9c-f84a4b5817fb", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order reference", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should get the order reference", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_getOrderReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getOrderReference(page)];\n case 2:\n // Get document name\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a929c7a9-598b-49ea-951e-ca24c1cd6398", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + }, + { + "title": "should get the identifier and the date issued of the credit slip", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Create a partial refund from the BO should get the identifier and the date issued of the credit slip", + "timedOut": false, + "duration": 123, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_getIdentifierDateIssued\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getIdentifierDateIssued', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page, 3)];\n case 2:\n // Get Credit Slip ID\n creditSlipID = _a.sent();\n (0, chai_1.expect)(creditSlipID).is.not.equal('');\n return [4 /*yield*/, tabListBlock_1.default.getDocumentDate(page, 3)];\n case 3:\n // Get Date Issued\n dateIssued = _a.sent();\n (0, chai_1.expect)(dateIssued).is.not.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "976aaf53-2161-4f61-9fc4-ce86fd9f27b4", + "parentUUID": "c7fa450a-6459-43c2-ae94-82dd6c2ada55", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2be206cc-f356-447f-a585-a1d636d15247", + "37d85cc9-10a7-417c-a061-a7c6a32ca5c5", + "beb245cb-31e8-4937-b0a5-6690ed508ae6", + "70252dc1-7a0d-4c49-a8d5-58e14e759716", + "b5108c26-58ae-4dee-abf5-81cbf62f91c1", + "ce270837-e1cb-40a5-a05a-5051160942bd", + "45b4042d-11f4-449d-ab3f-b6358b5eec31", + "8f911e42-de12-48a4-ac9c-f84a4b5817fb", + "a929c7a9-598b-49ea-951e-ca24c1cd6398", + "976aaf53-2161-4f61-9fc4-ce86fd9f27b4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9365, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "title": "Check there are credit slips in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should view my shop", + "timedOut": false, + "duration": 1732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop_1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n // View my shop and init pages\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "662ae6f9-4808-4073-a1ba-63200f1a9d86", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should go to my account page", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goToMyAccountPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMyAccountPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "058454f4-e192-460f-badf-58a77a376ee0", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should go credit slips page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should go credit slips page", + "timedOut": false, + "duration": 694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goTocreditSlipPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goTocreditSlipPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToCreditSlipsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(creditSlips_1.creditSlipPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d4dc93c-1418-4a2d-993c-d875086f4c22", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of credit slips", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should check the number of credit slips", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_checkNumberCreditSlips\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberCreditSlips;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberCreditSlips', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getNumberOfCreditSlips(page)];\n case 2:\n numberCreditSlips = _a.sent();\n (0, chai_1.expect)(numberCreditSlips).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2585997d-f86d-49d8-a181-6c42a2f6dbe0", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the 'Order reference, Credit Slip ID, Date Issued' are correct", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should check that the 'Order reference, Credit Slip ID, Date Issued' are correct", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_checkCreditSlipInfo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var creditSlipOrderReference, creditSlipOrderIdentifier, creditSlipDateIssued;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreditSlipInfo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getOrderReference(page, 1)];\n case 2:\n creditSlipOrderReference = _a.sent();\n (0, chai_1.expect)(creditSlipOrderReference).to.equal(orderReference);\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getCreditSlipID(page, 1)];\n case 3:\n creditSlipOrderIdentifier = _a.sent();\n (0, chai_1.expect)(parseInt(creditSlipOrderIdentifier.replace('#', ''), 10)).to.equal(parseInt(creditSlipID, 10));\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getDateIssued(page, 1)];\n case 4:\n creditSlipDateIssued = _a.sent();\n (0, chai_1.expect)(creditSlipDateIssued).to.equal(dateIssued);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9372133b-85fa-4a01-9648-c1356c2cbfda", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the PDF Icon on the \"View credit slip\" column", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should click on the PDF Icon on the \"View credit slip\" column", + "timedOut": false, + "duration": 246, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_clickOnViewCreditSlip\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnViewCreditSlip', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.downloadCreditSlip(page, 1)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n found = _a.sent();\n (0, chai_1.expect)(found, 'PDF file was not downloaded').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "114315bd-9d2f-4048-8fde-513343860007", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should check credit slip pdf file", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should check credit slip pdf file", + "timedOut": false, + "duration": 1882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_checkCreditSlip\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCreditSlip, creditSlipIDExist, dateIssuedExist, orderReferenceExist, paymentMethodExist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreditSlip', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'CREDIT SLIP')];\n case 2:\n isCreditSlip = _a.sent();\n (0, chai_1.expect)(isCreditSlip, 'Name of the PDF \\'CREDIT SLIP\\' does not exist in credit slip')\n .to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, creditSlipID)];\n case 3:\n creditSlipIDExist = _a.sent();\n (0, chai_1.expect)(creditSlipIDExist, \"Credit Slip ID \".concat(creditSlipID, \"' does not exist in credit slip\"))\n .to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, dateIssued)];\n case 4:\n dateIssuedExist = _a.sent();\n (0, chai_1.expect)(dateIssuedExist, \"Date Issued '\".concat(dateIssued, \"' does not exist in credit slip\"))\n .to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, orderReference)];\n case 5:\n orderReferenceExist = _a.sent();\n (0, chai_1.expect)(orderReferenceExist, \"Order Reference '\".concat(orderReference, \"' does not exist in credit slip\"))\n .to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, paymentMethods_1.default.wirePayment.displayName)];\n case 6:\n paymentMethodExist = _a.sent();\n (0, chai_1.expect)(paymentMethodExist, \"Payment Method '\".concat(paymentMethods_1.default.wirePayment.displayName, \"' does not exist in credit slip\")).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "208d2ca0-f6e6-4bb9-96b2-f74030bb7757", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the order Reference link", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should click on the order Reference link", + "timedOut": false, + "duration": 785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_clickOrderReferenceLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOrderReferenceLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.clickOrderReference(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4c15371-a1e7-417a-aef8-4e31c8af8ad6", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to credit slips page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should go to credit slips page", + "timedOut": false, + "duration": 1395, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goTocreditSlipPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var myAccountPageTitle, creditSlipPageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goTocreditSlipPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n myAccountPageTitle = _a.sent();\n (0, chai_1.expect)(myAccountPageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [4 /*yield*/, myAccount_1.myAccountPage.goToCreditSlipsPage(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getPageTitle(page)];\n case 5:\n creditSlipPageTitle = _a.sent();\n (0, chai_1.expect)(creditSlipPageTitle).to.equal(creditSlips_1.creditSlipPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6bd223d-2e07-427a-874c-4bfff31f03d5", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the \"Back to your account\" link", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should click on the \"Back to your account\" link", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_clickBackToYourAccountLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var myAccountPageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickBackToYourAccountLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.clickBackToYourAccountLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n myAccountPageTitle = _a.sent();\n (0, chai_1.expect)(myAccountPageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4aeb0547-8998-4e53-b27c-e787abcc10bd", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to credit slips page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should go to credit slips page", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_goTocreditSlipPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var creditSlipPageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goTocreditSlipPage4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToCreditSlipsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.getPageTitle(page)];\n case 3:\n creditSlipPageTitle = _a.sent();\n (0, chai_1.expect)(creditSlipPageTitle).to.equal(creditSlips_1.creditSlipPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e00bd8c8-e232-4bc9-971c-b37d8b5e6aa7", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the \"Home\" link", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order Consult Credit slip list in FO Check there are credit slips in FO should click on the \"Home\" link", + "timedOut": false, + "duration": 762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_clickHomeLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var homePageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickHomeLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, creditSlips_1.creditSlipPage.clickHomeLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n homePageTitle = _a.sent();\n (0, chai_1.expect)(homePageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e382ea9f-713f-4545-9b02-0049fefc9ac7", + "parentUUID": "cd7d461d-2bab-44af-a33d-1c3fba83394c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "662ae6f9-4808-4073-a1ba-63200f1a9d86", + "058454f4-e192-460f-badf-58a77a376ee0", + "1d4dc93c-1418-4a2d-993c-d875086f4c22", + "2585997d-f86d-49d8-a181-6c42a2f6dbe0", + "9372133b-85fa-4a01-9648-c1356c2cbfda", + "114315bd-9d2f-4048-8fde-513343860007", + "208d2ca0-f6e6-4bb9-96b2-f74030bb7757", + "a4c15371-a1e7-417a-aef8-4e31c8af8ad6", + "f6bd223d-2e07-427a-874c-4bfff31f03d5", + "4aeb0547-8998-4e53-b27c-e787abcc10bd", + "e00bd8c8-e232-4bc9-971c-b37d8b5e6aa7", + "e382ea9f-713f-4545-9b02-0049fefc9ac7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9644, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "822de717-f037-4e64-ad29-651b059ac774", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad40c10f-d043-4113-97a9-66c4a4c57816", + "parentUUID": "822de717-f037-4e64-ad29-651b059ac774", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f9ec60fe-be78-4b33-ad22-3259b19a6c79", + "parentUUID": "822de717-f037-4e64-ad29-651b059ac774", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2664a159-54b8-4741-8c7e-ede92f473066", + "parentUUID": "822de717-f037-4e64-ad29-651b059ac774", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93a75a81-a387-473b-acde-f496fbd2bfab", + "parentUUID": "822de717-f037-4e64-ad29-651b059ac774", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1078bfdc-9a3c-4193-9918-abdbe808285c", + "parentUUID": "822de717-f037-4e64-ad29-651b059ac774", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1162, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d796c18a-eee8-40e3-80b2-e93c8db83074", + "parentUUID": "822de717-f037-4e64-ad29-651b059ac774", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f24c7838-d2ad-4beb-8167-ca1a23b15cd0", + "parentUUID": "822de717-f037-4e64-ad29-651b059ac774", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 395, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bcfd34c-2623-46ed-a44f-f665cd9302c6", + "parentUUID": "822de717-f037-4e64-ad29-651b059ac774", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2664a159-54b8-4741-8c7e-ede92f473066", + "93a75a81-a387-473b-acde-f496fbd2bfab", + "1078bfdc-9a3c-4193-9918-abdbe808285c", + "d796c18a-eee8-40e3-80b2-e93c8db83074", + "f24c7838-d2ad-4beb-8167-ca1a23b15cd0", + "3bcfd34c-2623-46ed-a44f-f665cd9302c6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11976, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "24ffafc4-b050-4d83-a4a3-efaaaa0e8516", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/01_creditSlips/01_consultCreditSlip.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a09b4b9f-75b8-4cc8-8ab9-0fad56a74576", + "parentUUID": "24ffafc4-b050-4d83-a4a3-efaaaa0e8516", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b3afc411-21a7-43f8-bb1d-51ec74c8acf3", + "parentUUID": "24ffafc4-b050-4d83-a4a3-efaaaa0e8516", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04897557-db55-46e6-a594-6a21e1e49dbe", + "parentUUID": "24ffafc4-b050-4d83-a4a3-efaaaa0e8516", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcccf5e9-94d8-4b05-8086-eb3f7a09ec65", + "parentUUID": "24ffafc4-b050-4d83-a4a3-efaaaa0e8516", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "FO - Consult credit slip list & View PDF Credit slip & View order POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 393, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_creditSlips_consultCreditSlip_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "942f26cf-c982-49ca-b177-4ada129226ed", + "parentUUID": "24ffafc4-b050-4d83-a4a3-efaaaa0e8516", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "04897557-db55-46e6-a594-6a21e1e49dbe", + "dcccf5e9-94d8-4b05-8086-eb3f7a09ec65", + "942f26cf-c982-49ca-b177-4ada129226ed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7060, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4201e471-d677-4165-acea-c149dd337b12", + "title": "FO - Account - Order history : Consult order list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account - Order history : Consult order list\"", + "fullTitle": "FO - Account - Order history : Consult order list \"before all\" hook in \"FO - Account - Order history : Consult order list\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d6e0130-c712-4faf-b3f6-0c6297d25fbd", + "parentUUID": "4201e471-d677-4165-acea-c149dd337b12", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account - Order history : Consult order list\"", + "fullTitle": "FO - Account - Order history : Consult order list \"after all\" hook in \"FO - Account - Order history : Consult order list\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0cb7ff19-a40c-4652-822c-f4cf570ca411", + "parentUUID": "4201e471-d677-4165-acea-c149dd337b12", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d7833994-f9e0-413f-bfdb-619c31a3e8f8", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dd4d8fe-0e4f-4273-9e07-e1befec314e9", + "parentUUID": "d7833994-f9e0-413f-bfdb-619c31a3e8f8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a34397e3-ce3b-4ad5-b3de-dc951a51d9ee", + "parentUUID": "d7833994-f9e0-413f-bfdb-619c31a3e8f8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 1690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_enableNewProduct_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3df8722b-2139-4cce-8ae2-b0a6f1cc92b7", + "parentUUID": "d7833994-f9e0-413f-bfdb-619c31a3e8f8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_enableNewProduct_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fb846f5-dcd9-4c0e-8823-5e9d9c8bda9d", + "parentUUID": "d7833994-f9e0-413f-bfdb-619c31a3e8f8", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1077, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_enableNewProduct_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf4fcdfd-1d4e-4d0f-8425-f9654a0a65e9", + "parentUUID": "d7833994-f9e0-413f-bfdb-619c31a3e8f8", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 1920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_enableNewProduct_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b38e4c5-271c-4f66-933e-87e2e48e70cf", + "parentUUID": "d7833994-f9e0-413f-bfdb-619c31a3e8f8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3df8722b-2139-4cce-8ae2-b0a6f1cc92b7", + "3fb846f5-dcd9-4c0e-8823-5e9d9c8bda9d", + "bf4fcdfd-1d4e-4d0f-8425-f9654a0a65e9", + "5b38e4c5-271c-4f66-933e-87e2e48e70cf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6069, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "06a90c58-7295-410a-a095-8bf4da46fd0e", + "title": "PRE-TEST: Create address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create address \"before all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebe74799-f20f-4a32-ace3-30f139be2f6b", + "parentUUID": "06a90c58-7295-410a-a095-8bf4da46fd0e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create address\"", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create address \"after all\" hook in \"PRE-TEST: Create address\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "744bab65-825e-4dc3-9aab-eadc64501454", + "parentUUID": "06a90c58-7295-410a-a095-8bf4da46fd0e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create address should login in BO", + "timedOut": false, + "duration": 1714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d90b5772-5d74-415d-a1dd-22739daf6460", + "parentUUID": "06a90c58-7295-410a-a095-8bf4da46fd0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customers > Addresses' page", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create address should go to 'Customers > Addresses' page", + "timedOut": false, + "duration": 4842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_2_goToAddressesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddressesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.addressesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(addresses_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d20f8d7a-1096-40e3-a157-f9d250e29d72", + "parentUUID": "06a90c58-7295-410a-a095-8bf4da46fd0e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create address should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_2_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfAddresses = _a.sent();\n (0, chai_1.expect)(numberOfAddresses).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "256ed71a-23a8-4db3-aadb-04758d0cb760", + "parentUUID": "06a90c58-7295-410a-a095-8bf4da46fd0e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new address page", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create address should go to add new address page", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_2_goToAddNewAddressPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewAddressPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, addresses_1.default.goToAddNewAddressPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "869b125d-4569-4e52-bab2-439335949caa", + "parentUUID": "06a90c58-7295-410a-a095-8bf4da46fd0e", + "isHook": false, + "skipped": false + }, + { + "title": "should create address and check result", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create address should create address and check result", + "timedOut": false, + "duration": 2474, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_2_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfAddressesAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditAddress(page, addressData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(addresses_1.default.successfulCreationMessage);\n return [4 /*yield*/, addresses_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfAddressesAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfAddressesAfterCreation).to.be.equal(numberOfAddresses + 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bc4bb44-ad0c-416d-b1d7-4994bf462c3f", + "parentUUID": "06a90c58-7295-410a-a095-8bf4da46fd0e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d90b5772-5d74-415d-a1dd-22739daf6460", + "d20f8d7a-1096-40e3-a157-f9d250e29d72", + "256ed71a-23a8-4db3-aadb-04758d0cb760", + "869b125d-4569-4e52-bab2-439335949caa", + "3bc4bb44-ad0c-416d-b1d7-4994bf462c3f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11838, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "79bcb4cf-ded3-4a99-b0fd-811e70e519a3", + "title": "Check that no order has been placed in order history", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Account - Order history : Consult order list Check that no order has been placed in order history should go to FO home page", + "timedOut": false, + "duration": 453, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db99785a-307b-40ce-aab2-0c5bc05d1268", + "parentUUID": "79bcb4cf-ded3-4a99-b0fd-811e70e519a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order history : Consult order list Check that no order has been placed in order history should go to login page", + "timedOut": false, + "duration": 711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_goToLoginFoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96e7e663-4e52-49e0-b089-41437440f634", + "parentUUID": "79bcb4cf-ded3-4a99-b0fd-811e70e519a3", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in FO", + "fullTitle": "FO - Account - Order history : Consult order list Check that no order has been placed in order history should sign in FO", + "timedOut": false, + "duration": 519, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "229039b4-7768-40bb-8ccb-3145f2c114ff", + "parentUUID": "79bcb4cf-ded3-4a99-b0fd-811e70e519a3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "FO - Account - Order history : Consult order list Check that no order has been placed in order history should go to order history page", + "timedOut": false, + "duration": 1399, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a9d48f4-955e-41fc-b2d5-b3295e81aac9", + "parentUUID": "79bcb4cf-ded3-4a99-b0fd-811e70e519a3", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of orders", + "fullTitle": "FO - Account - Order history : Consult order list Check that no order has been placed in order history should check number of orders", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_checkNumberOfOrders1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfOrders1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getNumberOfOrders(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88682b08-c082-48e8-84d9-8ebae4577289", + "parentUUID": "79bcb4cf-ded3-4a99-b0fd-811e70e519a3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db99785a-307b-40ce-aab2-0c5bc05d1268", + "96e7e663-4e52-49e0-b089-41437440f634", + "229039b4-7768-40bb-8ccb-3145f2c114ff", + "8a9d48f4-955e-41fc-b2d5-b3295e81aac9", + "88682b08-c082-48e8-84d9-8ebae4577289" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3093, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34e13d58-c877-4b6a-aca9-9234918867a3", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4b7808d3-2724-4b03-b3e4-e03f26f09133", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c447bfe7-8a9d-42fe-bd8a-a1b22e578954", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 690, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ed36e87-ccd2-4dee-a464-f57ed7f4c124", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 512, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d68aa677-798b-47f0-9a58-ca1f1520fbbf", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25c7f95c-2f39-49f2-9207-ed74905a9351", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_3_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d693803-0fd0-48f0-b727-a0f6dc50d37c", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_3_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5b242ea-188b-4be9-bfc7-ad76ce27e348", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account - Order history : Consult order list PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1535, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_preTest_3_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb523225-fd64-4a78-a633-7e83cd2868dc", + "parentUUID": "68adad5a-971c-4ce8-a513-4c6626ceb027", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c447bfe7-8a9d-42fe-bd8a-a1b22e578954", + "2ed36e87-ccd2-4dee-a464-f57ed7f4c124", + "d68aa677-798b-47f0-9a58-ca1f1520fbbf", + "25c7f95c-2f39-49f2-9207-ed74905a9351", + "5d693803-0fd0-48f0-b727-a0f6dc50d37c", + "e5b242ea-188b-4be9-bfc7-ad76ce27e348", + "cb523225-fd64-4a78-a633-7e83cd2868dc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12751, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0454e362-ad3a-49d1-bd84-4c1505df4229", + "title": "Check that one order has been placed in order history", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should reload the FO page", + "fullTitle": "FO - Account - Order history : Consult order list Check that one order has been placed in order history should reload the FO page", + "timedOut": false, + "duration": 143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_reloadPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reloadPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75b0ba37-d82e-4379-9633-cd203763d6f4", + "parentUUID": "0454e362-ad3a-49d1-bd84-4c1505df4229", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of orders", + "fullTitle": "FO - Account - Order history : Consult order list Check that one order has been placed in order history should check the number of orders", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_checkNumberOfOrders2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfOrders2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getNumberOfOrders(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34b76669-90e8-469a-9904-3bfbe7581f4d", + "parentUUID": "0454e362-ad3a-49d1-bd84-4c1505df4229", + "isHook": false, + "skipped": false + }, + { + "title": "should check the order information", + "fullTitle": "FO - Account - Order history : Consult order list Check that one order has been placed in order history should check the order information", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_checkOrderInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getOrderHistoryDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.reference).not.null,\n (0, chai_1.expect)(result.date).to.equal(today),\n (0, chai_1.expect)(result.price).to.equal(\"\\u20AC\".concat(products_1.default.demo_1.finalPrice)),\n (0, chai_1.expect)(result.paymentType).to.equal(paymentMethods_1.default.wirePayment.displayName),\n (0, chai_1.expect)(result.status).to.equal(orderStatuses_1.default.awaitingBankWire.name),\n (0, chai_1.expect)(result.invoice).to.equal('-'),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da9ea91b-1141-4280-a86d-3f78b5604b4c", + "parentUUID": "0454e362-ad3a-49d1-bd84-4c1505df4229", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Back to you account' link", + "fullTitle": "FO - Account - Order history : Consult order list Check that one order has been placed in order history should click on 'Back to you account' link", + "timedOut": false, + "duration": 675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_backToYourAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'backToYourAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.clickOnBackToYourAccountLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82487fac-4c56-49b6-a361-d347d561505c", + "parentUUID": "0454e362-ad3a-49d1-bd84-4c1505df4229", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to order history page", + "fullTitle": "FO - Account - Order history : Consult order list Check that one order has been placed in order history should go back to order history page", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_goToOrderHistoryPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85d03f06-58f1-4af5-8b7d-3bdadde7fff7", + "parentUUID": "0454e362-ad3a-49d1-bd84-4c1505df4229", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Home' link", + "fullTitle": "FO - Account - Order history : Consult order list Check that one order has been placed in order history should click on 'Home' link", + "timedOut": false, + "duration": 806, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_clickOnHomeLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnHomeLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.clickOnHomeLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.homePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59b24355-56ef-4357-a5af-4046d47b919f", + "parentUUID": "0454e362-ad3a-49d1-bd84-4c1505df4229", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75b0ba37-d82e-4379-9633-cd203763d6f4", + "34b76669-90e8-469a-9904-3bfbe7581f4d", + "da9ea91b-1141-4280-a86d-3f78b5604b4c", + "82487fac-4c56-49b6-a361-d347d561505c", + "85d03f06-58f1-4af5-8b7d-3bdadde7fff7", + "59b24355-56ef-4357-a5af-4046d47b919f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2390, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_consultOrderList.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Account - Order history : Consult order list POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ea9afb4-d90b-4dd3-a0ae-ad0ab5762947", + "parentUUID": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Account - Order history : Consult order list POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 17, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f05cd8bf-5b2c-4a3e-b594-988008e34805", + "parentUUID": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account - Order history : Consult order list POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb00886d-1cfe-4292-9c2f-d189406df109", + "parentUUID": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Account - Order history : Consult order list POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_postText_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0723592c-4ad8-4184-a76f-677d4762f6f5", + "parentUUID": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Account - Order history : Consult order list POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_postText_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35f323d1-59dd-4700-ac3b-c9ee70753876", + "parentUUID": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Account - Order history : Consult order list POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1121, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_postText_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89b2968d-f9dd-41e6-9473-963b9c4774c6", + "parentUUID": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Account - Order history : Consult order list POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1571, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_postText_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2550acc-6c2e-491f-b614-b3bdda74dc89", + "parentUUID": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Account - Order history : Consult order list POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_consultOrderList_postText_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d881eab-67f9-4abd-a6f2-70983a343f0f", + "parentUUID": "bb31f2d3-8865-4bd2-85c8-6396e8278db1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fb00886d-1cfe-4292-9c2f-d189406df109", + "0723592c-4ad8-4184-a76f-677d4762f6f5", + "35f323d1-59dd-4700-ac3b-c9ee70753876", + "89b2968d-f9dd-41e6-9473-963b9c4774c6", + "d2550acc-6c2e-491f-b614-b3bdda74dc89", + "2d881eab-67f9-4abd-a6f2-70983a343f0f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11849, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c010c5d9-5b59-44fb-b717-7cc025f784d7", + "title": "FO - Account - Order details : Reorder from order detail", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account - Order details : Reorder from order detail\"", + "fullTitle": "FO - Account - Order details : Reorder from order detail \"before all\" hook in \"FO - Account - Order details : Reorder from order detail\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "745565ff-2dbe-43cd-bb0b-5338a7604ff0", + "parentUUID": "c010c5d9-5b59-44fb-b717-7cc025f784d7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account - Order details : Reorder from order detail\"", + "fullTitle": "FO - Account - Order details : Reorder from order detail \"after all\" hook in \"FO - Account - Order details : Reorder from order detail\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "84920af8-dba7-41d9-bd98-1332dd2ed88f", + "parentUUID": "c010c5d9-5b59-44fb-b717-7cc025f784d7", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2dd31cb-d664-4c76-8bb8-a3bba90158d5", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "861d9685-b3c5-447d-a6b0-28d0cc91ef14", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1730, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c29d245-5ad7-4490-ac38-b29f79676117", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbbdce69-40a1-41f7-bb27-bfdd5f260229", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 567, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdc8f8c1-5e97-4228-94d8-62ec602ad396", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbaf1fa5-03e9-47fe-bd12-1aef29df45ba", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c787798-4d56-4a47-b12d-d9a25e996148", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9c0d19c-e0e5-4332-abe9-b08d42446957", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account - Order details : Reorder from order detail PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1526, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b26814ba-53af-45a7-a526-05709da0ffef", + "parentUUID": "119a9f11-5180-4ec8-ace0-c364e0736fbd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c29d245-5ad7-4490-ac38-b29f79676117", + "bbbdce69-40a1-41f7-bb27-bfdd5f260229", + "cdc8f8c1-5e97-4228-94d8-62ec602ad396", + "dbaf1fa5-03e9-47fe-bd12-1aef29df45ba", + "2c787798-4d56-4a47-b12d-d9a25e996148", + "b9c0d19c-e0e5-4332-abe9-b08d42446957", + "b26814ba-53af-45a7-a526-05709da0ffef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13014, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "title": "Go to order detail and proceed reorder", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should go to FO home page", + "timedOut": false, + "duration": 485, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc520c9b-4b9d-4ee6-876a-7bfd1bad9f83", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should go to login page", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goToLoginFoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2422893b-e379-465a-a6b1-7dfe098a2e55", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in FO", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should sign in FO", + "timedOut": false, + "duration": 528, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fec6248-8e92-4dbb-b956-a160cfce23c3", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should go to my account page", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47a41133-9efd-466d-bee2-11ef6fbde697", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should go to order history page", + "timedOut": false, + "duration": 708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57810281-dd69-409f-b969-df67d4419c3d", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details page", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should go to order details page", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "609677fb-11d5-4f05-80fb-35e47f192a96", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should click on reorder link", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should click on reorder link", + "timedOut": false, + "duration": 777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_clickOnReorderLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnReorderLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.clickOnReorderLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage, 'Browser is not in checkout Page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8459883-2a00-442f-bf5f-d62875f30f5a", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Address and go to Delivery Step", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should validate Step Address and go to Delivery Step", + "timedOut": false, + "duration": 287, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_checkDeliveryStepForReorder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryStepForReorder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8184bbfc-b3ec-41c8-a430-47ee192311dd", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Delivery and go to Payment Step", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should validate Step Delivery and go to Payment Step", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goToPaymentStepForReorder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStepForReorder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb38e775-2c40-465d-871a-b965a2620aea", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + }, + { + "title": "should Pay by bank wire and confirm order", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to order detail and proceed reorder should Pay by bank wire and confirm order", + "timedOut": false, + "duration": 1517, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_confirmReorder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmReorder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderConfirmation_1.default.pageTitle);\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2595423-7401-4306-8bf9-8931b2205ed0", + "parentUUID": "1a20fba2-8473-4a8f-b63b-227ca2149795", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc520c9b-4b9d-4ee6-876a-7bfd1bad9f83", + "2422893b-e379-465a-a6b1-7dfe098a2e55", + "5fec6248-8e92-4dbb-b956-a160cfce23c3", + "47a41133-9efd-466d-bee2-11ef6fbde697", + "57810281-dd69-409f-b969-df67d4419c3d", + "609677fb-11d5-4f05-80fb-35e47f192a96", + "f8459883-2a00-442f-bf5f-d62875f30f5a", + "8184bbfc-b3ec-41c8-a430-47ee192311dd", + "bb38e775-2c40-465d-871a-b965a2620aea", + "b2595423-7401-4306-8bf9-8931b2205ed0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7304, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "398477be-4bdd-4b48-be38-3fd396b7b82c", + "title": "Go to new order detail and check content", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to my account page", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to new order detail and check content should go to my account page", + "timedOut": false, + "duration": 691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goBackToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a9b43d2-c049-473a-9d9d-494eda14364a", + "parentUUID": "398477be-4bdd-4b48-be38-3fd396b7b82c", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to order history page", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to new order detail and check content should go back to order history page", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goBackToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9da5c0ec-f021-4e1f-a657-96ead005c94f", + "parentUUID": "398477be-4bdd-4b48-be38-3fd396b7b82c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details page", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to new order detail and check content should go to order details page", + "timedOut": false, + "duration": 756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_goBackToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfaf8715-b8c4-42a9-9b6f-62e69362a681", + "parentUUID": "398477be-4bdd-4b48-be38-3fd396b7b82c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to new order detail and check content should check the ordered product", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_checkTheOrderedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderedProduct;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTheOrderedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getProductName(page)];\n case 2:\n orderedProduct = _a.sent();\n (0, chai_1.expect)(orderedProduct).to.contain(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e44b793-2fba-41b7-8bf4-a4cc16f14747", + "parentUUID": "398477be-4bdd-4b48-be38-3fd396b7b82c", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Account - Order details : Reorder from order detail Go to new order detail and check content should sign out from FO", + "timedOut": false, + "duration": 1161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_reorderFromOrderDetail_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed6769f1-cb64-47e8-a693-1e605cb1b45c", + "parentUUID": "398477be-4bdd-4b48-be38-3fd396b7b82c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7a9b43d2-c049-473a-9d9d-494eda14364a", + "9da5c0ec-f021-4e1f-a657-96ead005c94f", + "dfaf8715-b8c4-42a9-9b6f-62e69362a681", + "6e44b793-2fba-41b7-8bf4-a4cc16f14747", + "ed6769f1-cb64-47e8-a693-1e605cb1b45c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3323, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "020328c3-8dbe-4cb8-aa0e-74860ef2893d", + "title": "FO - Account - Order details : Download invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account - Order details : Download invoice\"", + "fullTitle": "FO - Account - Order details : Download invoice \"before all\" hook in \"FO - Account - Order details : Download invoice\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ea2bbbf-0267-474d-ae28-8dc1d3b2d756", + "parentUUID": "020328c3-8dbe-4cb8-aa0e-74860ef2893d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account - Order details : Download invoice\"", + "fullTitle": "FO - Account - Order details : Download invoice \"after all\" hook in \"FO - Account - Order details : Download invoice\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "10f1f9b1-fb31-4826-bdf8-b8405690e0b0", + "parentUUID": "020328c3-8dbe-4cb8-aa0e-74860ef2893d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7616a947-16df-4c7e-af5f-90092f0b497f", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "eeb9c1cf-9c37-4506-af6f-0c3a30f1a523", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf7db22c-684c-4d1a-bfe3-b64565bcf391", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26e1d84d-821e-4700-a161-fc637c8c1f8e", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 556, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18eebd4b-1c0d-429f-ab85-7032c6bef7f9", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7260, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dcb3b63-9dce-460e-8c07-b81729415cb4", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efa42879-5b4e-4e65-8be3-b5aaa739b233", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01d55025-a1b5-4c95-8917-5fb5d885594f", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1515, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d61582c-5b50-4c27-a12e-2f4ea07fdfa5", + "parentUUID": "766d1613-949b-4cbf-ba84-2e363f4bd275", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bf7db22c-684c-4d1a-bfe3-b64565bcf391", + "26e1d84d-821e-4700-a161-fc637c8c1f8e", + "18eebd4b-1c0d-429f-ab85-7032c6bef7f9", + "9dcb3b63-9dce-460e-8c07-b81729415cb4", + "efa42879-5b4e-4e65-8be3-b5aaa739b233", + "01d55025-a1b5-4c95-8917-5fb5d885594f", + "4d61582c-5b50-4c27-a12e-2f4ea07fdfa5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13068, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7663a27c-68fc-4cbe-bbc8-780ddeb8ccee", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3fb074a4-eb8a-433b-b82a-533691e503e0", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d371e7a-abd8-4653-ab6b-01e5749bdc98", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cff97b80-494c-4f7e-8fb0-8ab247fded67", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 540, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abaab197-8388-4c65-b47e-0124bea53055", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e63ef528-6715-4109-bc75-fe68dbfa6cf3", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0f8e257-f43e-48ec-b40a-713009a908ce", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e86adf85-7c30-40f5-8d79-5518d680feec", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account - Order details : Download invoice PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1536, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_preTest_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05a35f53-014e-4f50-9fc1-87dad5918bcc", + "parentUUID": "26ea33d6-9bd5-4c10-8ec6-10e887cb05bc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0d371e7a-abd8-4653-ab6b-01e5749bdc98", + "cff97b80-494c-4f7e-8fb0-8ab247fded67", + "abaab197-8388-4c65-b47e-0124bea53055", + "e63ef528-6715-4109-bc75-fe68dbfa6cf3", + "e0f8e257-f43e-48ec-b40a-713009a908ce", + "e86adf85-7c30-40f5-8d79-5518d680feec", + "05a35f53-014e-4f50-9fc1-87dad5918bcc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12808, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "750a2644-a99d-4299-8cfb-6733222f1f1e", + "title": "Change the first order status to 'Delivered'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account - Order details : Download invoice Change the first order status to 'Delivered' should login in BO", + "timedOut": false, + "duration": 1736, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1842f89-2d01-4a69-a740-d32edba186db", + "parentUUID": "750a2644-a99d-4299-8cfb-6733222f1f1e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "FO - Account - Order details : Download invoice Change the first order status to 'Delivered' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToOrdersPageForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "648f20e2-1ca6-45ee-ba7c-543aab624053", + "parentUUID": "750a2644-a99d-4299-8cfb-6733222f1f1e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "FO - Account - Order details : Download invoice Change the first order status to 'Delivered' should go to the first order page", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToFirstOrderPageForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPageForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3182eff9-2b61-4a49-9dcf-eee690bf5303", + "parentUUID": "750a2644-a99d-4299-8cfb-6733222f1f1e", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "FO - Account - Order details : Download invoice Change the first order status to 'Delivered' should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1259, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_updateStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a03e1c9a-d6f6-4d61-af05-f4288eee8522", + "parentUUID": "750a2644-a99d-4299-8cfb-6733222f1f1e", + "isHook": false, + "skipped": false + }, + { + "title": "should get the invoice file name", + "fullTitle": "FO - Account - Order details : Download invoice Change the first order status to 'Delivered' should get the invoice file name", + "timedOut": false, + "duration": 248, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_checkFirstOrderUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstOrderUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n // Get invoice file name\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "809f3291-4f08-4c62-80f7-c478789c3368", + "parentUUID": "750a2644-a99d-4299-8cfb-6733222f1f1e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e1842f89-2d01-4a69-a740-d32edba186db", + "648f20e2-1ca6-45ee-ba7c-543aab624053", + "3182eff9-2b61-4a49-9dcf-eee690bf5303", + "a03e1c9a-d6f6-4d61-af05-f4288eee8522", + "809f3291-4f08-4c62-80f7-c478789c3368" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8022, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "title": "Download invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/02_downloadInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should go to FO home page", + "timedOut": false, + "duration": 444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58c59c5d-44cd-4deb-a2b1-a2cee38f974c", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should go to login page", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToLoginFoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0435e1ca-36c5-4572-8c3f-577781f362ef", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in FO", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should sign in FO", + "timedOut": false, + "duration": 518, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b526124-3896-4bf2-a8d3-79340d483960", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should go to my account page", + "timedOut": false, + "duration": 702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2cc8d64-5d12-47b3-9d54-3afe0bdbf489", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should go to order history page", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b81a19b-db19-490c-8b81-a498db24ca97", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details page of the first order in list", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should go to order details page of the first order in list", + "timedOut": false, + "duration": 755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c2ed009-4a2a-4b60-895a-8331328703ff", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should download the invoice", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should download the invoice", + "timedOut": false, + "duration": 669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_checkDownloadFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var downloadFilePath, doesFileExist, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDownloadFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.downloadInvoice(page)];\n case 2:\n downloadFilePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(downloadFilePath, 5000)];\n case 3:\n doesFileExist = _a.sent();\n (0, chai_1.expect)(doesFileExist, 'File is not downloaded!').to.eq(true);\n return [4 /*yield*/, files_1.default.isTextInPDF(downloadFilePath, fileName)];\n case 4:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab14add2-c002-4e7c-908a-0c04f2415eeb", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should go to my account page", + "timedOut": false, + "duration": 672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToAccountPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23686533-04aa-411c-b4fb-7ccec966c408", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should go to order history page", + "timedOut": false, + "duration": 711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToOrderHistoryPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f7c123c-6796-40bd-88e6-47c774094fd1", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details page of the second order in list", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should go to order details page of the second order in list", + "timedOut": false, + "duration": 753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_goToFoToOrderDetails2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d961234-2b62-4e3c-ae43-cd6ffe290c88", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no invoice is visible", + "fullTitle": "FO - Account - Order details : Download invoice Download invoice should check that no invoice is visible", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_downloadInvoice_checkNoInvoiceIsVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isInvoiceVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoInvoiceIsVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isInvoiceVisible(page)];\n case 2:\n isInvoiceVisible = _a.sent();\n (0, chai_1.expect)(isInvoiceVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ab1b108-c643-40e5-8609-58b56bca5af5", + "parentUUID": "f1ca1339-7521-4074-a042-6867f47ba5a6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "58c59c5d-44cd-4deb-a2b1-a2cee38f974c", + "0435e1ca-36c5-4572-8c3f-577781f362ef", + "5b526124-3896-4bf2-a8d3-79340d483960", + "e2cc8d64-5d12-47b3-9d54-3afe0bdbf489", + "3b81a19b-db19-490c-8b81-a498db24ca97", + "2c2ed009-4a2a-4b60-895a-8331328703ff", + "ab14add2-c002-4e7c-908a-0c04f2415eeb", + "23686533-04aa-411c-b4fb-7ccec966c408", + "9f7c123c-6796-40bd-88e6-47c774094fd1", + "7d961234-2b62-4e3c-ae43-cd6ffe290c88", + "9ab1b108-c643-40e5-8609-58b56bca5af5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6655, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "335d2adc-e9b2-454f-bd33-a6c962ba0a4b", + "title": "FO - Account - Order details : Request merchandise return", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account - Order details : Request merchandise return\"", + "fullTitle": "FO - Account - Order details : Request merchandise return \"before all\" hook in \"FO - Account - Order details : Request merchandise return\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d21dcb49-9069-4a82-936d-4daccb9a0f6e", + "parentUUID": "335d2adc-e9b2-454f-bd33-a6c962ba0a4b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account - Order details : Request merchandise return\"", + "fullTitle": "FO - Account - Order details : Request merchandise return \"after all\" hook in \"FO - Account - Order details : Request merchandise return\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bfe8f7d1-174f-465e-b875-887841e5da79", + "parentUUID": "335d2adc-e9b2-454f-bd33-a6c962ba0a4b", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "917c83fe-2752-492c-8a3b-c2f163c99b6f", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b877edc2-18f2-494a-ba8a-797aa5c32feb", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "994c9068-0a9a-44e6-9a95-242ba9eea6e8", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62e9d045-a89b-412e-b4d5-d153f9ad44d3", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc00ac95-688f-45aa-8ff5-6ef62f032a52", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78b04539-a78d-48f9-890a-7f03c0e13358", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74b5f062-1b31-4357-991e-61a2e99d78a7", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59edf6e8-7c16-4e59-bff3-a83a7cbf8f42", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1522, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5213665-a9e5-4aee-a962-6912c537e61b", + "parentUUID": "25c4a7ac-6aae-430d-88f9-18af903c84e9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "994c9068-0a9a-44e6-9a95-242ba9eea6e8", + "62e9d045-a89b-412e-b4d5-d153f9ad44d3", + "cc00ac95-688f-45aa-8ff5-6ef62f032a52", + "78b04539-a78d-48f9-890a-7f03c0e13358", + "74b5f062-1b31-4357-991e-61a2e99d78a7", + "59edf6e8-7c16-4e59-bff3-a83a7cbf8f42", + "a5213665-a9e5-4aee-a962-6912c537e61b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12906, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "16d3738a-a7fa-4c50-935f-886a4820f4f2", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65263505-6aa3-4a9c-bc5d-39f4a16169e8", + "parentUUID": "16d3738a-a7fa-4c50-935f-886a4820f4f2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "35856227-7979-4d7e-a1f5-1d3c14f0a0d2", + "parentUUID": "16d3738a-a7fa-4c50-935f-886a4820f4f2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac3e206c-f99b-4c65-9c9c-13f6356aaac1", + "parentUUID": "16d3738a-a7fa-4c50-935f-886a4820f4f2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_2_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c7d6d60-1a25-49b2-a01f-256929d234ec", + "parentUUID": "16d3738a-a7fa-4c50-935f-886a4820f4f2", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "FO - Account - Order details : Request merchandise return PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_preTest_2_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9eaa138-7fa4-47ed-83a1-badc1357241e", + "parentUUID": "16d3738a-a7fa-4c50-935f-886a4820f4f2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ac3e206c-f99b-4c65-9c9c-13f6356aaac1", + "4c7d6d60-1a25-49b2-a01f-256929d234ec", + "b9eaa138-7fa4-47ed-83a1-badc1357241e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6700, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0f6fe14e-786b-4e3c-ba68-c070e6590dde", + "title": "Change the created order status to 'Delivered'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account - Order details : Request merchandise return Change the created order status to 'Delivered' should login in BO", + "timedOut": false, + "duration": 1721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d275e8a9-9f13-40fd-b669-adccc2d01aae", + "parentUUID": "0f6fe14e-786b-4e3c-ba68-c070e6590dde", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "FO - Account - Order details : Request merchandise return Change the created order status to 'Delivered' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3873, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_goToOrdersPageForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f666a7b6-8788-496e-b24a-ad5ea3a1b8ae", + "parentUUID": "0f6fe14e-786b-4e3c-ba68-c070e6590dde", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "FO - Account - Order details : Request merchandise return Change the created order status to 'Delivered' should go to the first order page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_goToFirstOrderPageForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPageForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f77edd4-f679-4a05-947f-62677b3ede07", + "parentUUID": "0f6fe14e-786b-4e3c-ba68-c070e6590dde", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Delivered' and check it", + "fullTitle": "FO - Account - Order details : Request merchandise return Change the created order status to 'Delivered' should change the order status to 'Delivered' and check it", + "timedOut": false, + "duration": 1046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_updateStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.delivered.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.delivered.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f2cfc6f-63e7-4110-be38-823b156958a7", + "parentUUID": "0f6fe14e-786b-4e3c-ba68-c070e6590dde", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order reference", + "fullTitle": "FO - Account - Order details : Request merchandise return Change the created order status to 'Delivered' should get the order reference", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_checkFirstOrderUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstOrderUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getOrderReference(page)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d102eb8-460a-4066-9fc2-f96343ff2465", + "parentUUID": "0f6fe14e-786b-4e3c-ba68-c070e6590dde", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d275e8a9-9f13-40fd-b669-adccc2d01aae", + "f666a7b6-8788-496e-b24a-ad5ea3a1b8ae", + "1f77edd4-f679-4a05-947f-62677b3ede07", + "7f2cfc6f-63e7-4110-be38-823b156958a7", + "9d102eb8-460a-4066-9fc2-f96343ff2465" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7565, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "title": "Request merchandise return", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should go to FO home page", + "timedOut": false, + "duration": 418, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d64de290-9938-425b-be18-933ab82c5edf", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should go to login page", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_goToLoginFoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bb8a0db-4c68-418a-b47c-98d41f0d53cf", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in FO", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should sign in FO", + "timedOut": false, + "duration": 519, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35142cbc-0181-4ad3-a262-804c602aa710", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should go to my account page", + "timedOut": false, + "duration": 706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2dc93d1-b871-4896-a375-eec6de40e3de", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should go to order history page", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40689a4e-d735-4d00-9290-a5e46c1b40e5", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details page of the first order in list", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should go to order details page of the first order in list", + "timedOut": false, + "duration": 775, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_goToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aec01d07-da5d-427e-bc97-840b6d948781", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of order return form", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should check the existence of order return form", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_isOrderReturnFormVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d60fa2e-6560-40a6-bee8-6bfd0c1998e6", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return and check if merchandise return page is displayed", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should create a merchandise return and check if merchandise return page is displayed", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'Test merchandise returns')];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3bc0f34-8283-4b02-9e4c-0919e975692a", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the merchandise returns table", + "fullTitle": "FO - Account - Order details : Request merchandise return Request merchandise return should check the merchandise returns table", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_checkMerchandiseReturnsTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMerchandiseReturnsTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getMerchandiseReturnsDetails(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.orderReference).to.equal(orderReference),\n (0, chai_1.expect)(result.fileName).to.contains('#RE'),\n (0, chai_1.expect)(result.status).to.equal('Waiting for confirmation'),\n (0, chai_1.expect)(result.dateIssued).to.equal(today),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f9b8538-7fcd-4542-9523-751e8cf6cf78", + "parentUUID": "6d1272fb-7fb3-47d6-9d25-833f5956aaf7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d64de290-9938-425b-be18-933ab82c5edf", + "4bb8a0db-4c68-418a-b47c-98d41f0d53cf", + "35142cbc-0181-4ad3-a262-804c602aa710", + "b2dc93d1-b871-4896-a375-eec6de40e3de", + "40689a4e-d735-4d00-9290-a5e46c1b40e5", + "aec01d07-da5d-427e-bc97-840b6d948781", + "6d60fa2e-6560-40a6-bee8-6bfd0c1998e6", + "f3bc0f34-8283-4b02-9e4c-0919e975692a", + "8f9b8538-7fcd-4542-9523-751e8cf6cf78" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4737, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "964c19b7-8ebf-4016-b9e7-8787f4285b56", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/03_requestMerchandiseReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "FO - Account - Order details : Request merchandise return POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95a2bf3f-85b4-41d6-a949-0d4baa895077", + "parentUUID": "964c19b7-8ebf-4016-b9e7-8787f4285b56", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "FO - Account - Order details : Request merchandise return POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dc18185e-a9c8-41ac-9f06-869375e69204", + "parentUUID": "964c19b7-8ebf-4016-b9e7-8787f4285b56", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account - Order details : Request merchandise return POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15b7005a-a00b-4c08-8006-e500648536d6", + "parentUUID": "964c19b7-8ebf-4016-b9e7-8787f4285b56", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account - Order details : Request merchandise return POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3604, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_postTest_1_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ae999fe-8367-4d5d-9bea-a9aad1a96808", + "parentUUID": "964c19b7-8ebf-4016-b9e7-8787f4285b56", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "FO - Account - Order details : Request merchandise return POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_requestMerchandiseReturn_postTest_1_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d87c8a66-bde9-4df6-9d9a-640e2bd3890e", + "parentUUID": "964c19b7-8ebf-4016-b9e7-8787f4285b56", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "15b7005a-a00b-4c08-8006-e500648536d6", + "7ae999fe-8367-4d5d-9bea-a9aad1a96808", + "d87c8a66-bde9-4df6-9d9a-640e2bd3890e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5619, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "89d99c6d-d2c5-4aba-9c5d-ea0ce4686da4", + "title": "FO - Account : Send a message with an ordered product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account : Send a message with an ordered product\"", + "fullTitle": "FO - Account : Send a message with an ordered product \"before all\" hook in \"FO - Account : Send a message with an ordered product\"", + "timedOut": false, + "duration": 61, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02bf749d-6309-4f0a-8d01-a700fcaefc85", + "parentUUID": "89d99c6d-d2c5-4aba-9c5d-ea0ce4686da4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account : Send a message with an ordered product\"", + "fullTitle": "FO - Account : Send a message with an ordered product \"after all\" hook in \"FO - Account : Send a message with an ordered product\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "499c255e-8ce6-4b84-bb9b-8e1c72e51407", + "parentUUID": "89d99c6d-d2c5-4aba-9c5d-ea0ce4686da4", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5accacfc-29ec-477a-97d0-644c0ccfd409", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Account : Send a message with an ordered product PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "214da5bf-5a9c-441f-be85-915826ff01d9", + "parentUUID": "5accacfc-29ec-477a-97d0-644c0ccfd409", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Account : Send a message with an ordered product PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a9b4e4d8-a104-4a3d-a18b-4fb90e7742f4", + "parentUUID": "5accacfc-29ec-477a-97d0-644c0ccfd409", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Send a message with an ordered product PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1771, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d203537-0a41-43a8-b61e-84295ea5c2b2", + "parentUUID": "5accacfc-29ec-477a-97d0-644c0ccfd409", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Account : Send a message with an ordered product PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_preTest_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53571886-9ca2-468c-ab03-5b17604f5895", + "parentUUID": "5accacfc-29ec-477a-97d0-644c0ccfd409", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "FO - Account : Send a message with an ordered product PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 594, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_preTest_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae1962af-10c8-4e3b-82b2-628332a186e3", + "parentUUID": "5accacfc-29ec-477a-97d0-644c0ccfd409", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9d203537-0a41-43a8-b61e-84295ea5c2b2", + "53571886-9ca2-468c-ab03-5b17604f5895", + "ae1962af-10c8-4e3b-82b2-628332a186e3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7269, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f0a44b5e-7393-40df-bbfd-2e083d38acf5", + "title": "Create order in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "FO - Account : Send a message with an ordered product Create order in FO should go to FO page", + "timedOut": false, + "duration": 1669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_goToFoToOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7c34606-cfa6-41bc-a814-32cb09f632b8", + "parentUUID": "f0a44b5e-7393-40df-bbfd-2e083d38acf5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account : Send a message with an ordered product Create order in FO should go to login page", + "timedOut": false, + "duration": 678, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_goToLoginPageFoToOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFoToOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "350afc18-0123-4644-a064-1090cb1b92d9", + "parentUUID": "f0a44b5e-7393-40df-bbfd-2e083d38acf5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "FO - Account : Send a message with an ordered product Create order in FO should sign in with default customer", + "timedOut": false, + "duration": 494, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_sighInFoToOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFoToOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c95677e6-2a5d-4d52-8faf-bdceadefc1bc", + "parentUUID": "f0a44b5e-7393-40df-bbfd-2e083d38acf5", + "isHook": false, + "skipped": false + }, + { + "title": "should create an order", + "fullTitle": "FO - Account : Send a message with an ordered product Create order in FO should create an order", + "timedOut": false, + "duration": 7841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_createOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOrder', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the created product to the cart\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 5:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 6:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 7:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 8:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 9:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d3d3de6-8f3d-4bcf-b529-878f71c0f939", + "parentUUID": "f0a44b5e-7393-40df-bbfd-2e083d38acf5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Account : Send a message with an ordered product Create order in FO should sign out from FO", + "timedOut": false, + "duration": 1194, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_sighOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08e52123-5fe9-4ad8-af4c-97f800b257a6", + "parentUUID": "f0a44b5e-7393-40df-bbfd-2e083d38acf5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c7c34606-cfa6-41bc-a814-32cb09f632b8", + "350afc18-0123-4644-a064-1090cb1b92d9", + "c95677e6-2a5d-4d52-8faf-bdceadefc1bc", + "1d3d3de6-8f3d-4bcf-b529-878f71c0f939", + "08e52123-5fe9-4ad8-af4c-97f800b257a6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11876, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c8022788-d63d-4272-ad45-1222963dcbc2", + "title": "Check invoice file in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Send a message with an ordered product Check invoice file in BO should login in BO", + "timedOut": false, + "duration": 1670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91297338-237d-4ab6-95db-4b57fbe5d3ca", + "parentUUID": "c8022788-d63d-4272-ad45-1222963dcbc2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the orders page", + "fullTitle": "FO - Account : Send a message with an ordered product Check invoice file in BO should go to the orders page", + "timedOut": false, + "duration": 3865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c30e545-4ee0-4ced-9458-660beb7d05a7", + "parentUUID": "c8022788-d63d-4272-ad45-1222963dcbc2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters ", + "fullTitle": "FO - Account : Send a message with an ordered product Check invoice file in BO should reset all filters ", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b14e3b05-a764-4d5e-ad34-58adff9ab150", + "parentUUID": "c8022788-d63d-4272-ad45-1222963dcbc2", + "isHook": false, + "skipped": false + }, + { + "title": "should update order status to 'Payment accepted'", + "fullTitle": "FO - Account : Send a message with an ordered product Check invoice file in BO should update order status to 'Payment accepted'", + "timedOut": false, + "duration": 1279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.paymentAccepted)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(orders_1.default.successfulUpdateMessage);\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 3:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus, 'Order status was not updated').to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba302073-da94-4d22-ad00-aadc82328dc6", + "parentUUID": "c8022788-d63d-4272-ad45-1222963dcbc2", + "isHook": false, + "skipped": false + }, + { + "title": "disconnect from BO", + "fullTitle": "FO - Account : Send a message with an ordered product Check invoice file in BO disconnect from BO", + "timedOut": false, + "duration": 667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb15cc93-cd11-4848-86be-e44eafa96155", + "parentUUID": "c8022788-d63d-4272-ad45-1222963dcbc2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "91297338-237d-4ab6-95db-4b57fbe5d3ca", + "4c30e545-4ee0-4ced-9458-660beb7d05a7", + "b14e3b05-a764-4d5e-ad34-58adff9ab150", + "ba302073-da94-4d22-ad00-aadc82328dc6", + "cb15cc93-cd11-4848-86be-e44eafa96155" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9489, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2d9e8a41-935a-4042-80f1-398ef34f6578", + "title": "Send a message on order history", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Account : Send a message with an ordered product Send a message on order history should go to FO home page", + "timedOut": false, + "duration": 237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ce14a9b-03a1-4610-a8d5-f2be43a599b6", + "parentUUID": "2d9e8a41-935a-4042-80f1-398ef34f6578", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account : Send a message with an ordered product Send a message on order history should go to login page", + "timedOut": false, + "duration": 684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_goToLoginFoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18555546-6112-4d9a-9728-8cf798176592", + "parentUUID": "2d9e8a41-935a-4042-80f1-398ef34f6578", + "isHook": false, + "skipped": false + }, + { + "title": "Should sign in FO", + "fullTitle": "FO - Account : Send a message with an ordered product Send a message on order history Should sign in FO", + "timedOut": false, + "duration": 508, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5df4c211-ed9f-4e4f-9ee8-cdcfd31958d4", + "parentUUID": "2d9e8a41-935a-4042-80f1-398ef34f6578", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "FO - Account : Send a message with an ordered product Send a message on order history should go to order history page", + "timedOut": false, + "duration": 1400, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cec7e92-0828-4f50-9954-2a58b66ae03f", + "parentUUID": "2d9e8a41-935a-4042-80f1-398ef34f6578", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details and add a comment", + "fullTitle": "FO - Account : Send a message with an ordered product Send a message on order history should go to order details and add a comment", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_goToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessageText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.addAMessage(page, messageOption, messageSend)];\n case 3:\n successMessageText = _a.sent();\n (0, chai_1.expect)(successMessageText).to.equal(orderDetails_1.default.successMessageText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c9b07a4-7ec2-4e56-9660-c6c490f9949b", + "parentUUID": "2d9e8a41-935a-4042-80f1-398ef34f6578", + "isHook": false, + "skipped": false + }, + { + "title": "should check the received email", + "fullTitle": "FO - Account : Send a message with an ordered product Send a message on order history should check the received email", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_checkEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmail', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Message from a customer\"));\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].text).to.contains('You have received a new message')\n .and.to.contains(\"Customer: \".concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName, \" (\").concat(customers_1.default.johnDoe.email, \")\"))\n .and.to.contains(messageSend);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57cbe1bc-46e5-46bf-a578-834b0f4375b9", + "parentUUID": "2d9e8a41-935a-4042-80f1-398ef34f6578", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9ce14a9b-03a1-4610-a8d5-f2be43a599b6", + "18555546-6112-4d9a-9728-8cf798176592", + "5df4c211-ed9f-4e4f-9ee8-cdcfd31958d4", + "4cec7e92-0828-4f50-9954-2a58b66ae03f", + "2c9b07a4-7ec2-4e56-9660-c6c490f9949b", + "57cbe1bc-46e5-46bf-a578-834b0f4375b9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4563, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6fbceb1c-d5bf-4f10-9bf6-6a8bc1ff0a1c", + "title": "Check message in BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Send a message with an ordered product Check message in BO should login in BO", + "timedOut": false, + "duration": 1479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "504b6fb4-1a08-4d1b-bb64-00f3b6483616", + "parentUUID": "6fbceb1c-d5bf-4f10-9bf6-6a8bc1ff0a1c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to customer service page", + "fullTitle": "FO - Account : Send a message with an ordered product Check message in BO should go to customer service page", + "timedOut": false, + "duration": 3727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c6d03cf-eda9-45f0-af66-97205400d6a3", + "parentUUID": "6fbceb1c-d5bf-4f10-9bf6-6a8bc1ff0a1c", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer name", + "fullTitle": "FO - Account : Send a message with an ordered product Check message in BO should check customer name", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_checkCustomerName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'customer')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(\"\".concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83956893-9492-473e-8600-6f1c2b15a332", + "parentUUID": "6fbceb1c-d5bf-4f10-9bf6-6a8bc1ff0a1c", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer email", + "fullTitle": "FO - Account : Send a message with an ordered product Check message in BO should check customer email", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_checkCustomerEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'a!email')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(customers_1.default.johnDoe.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6afab13f-81dc-4263-b529-fdd0a34ed056", + "parentUUID": "6fbceb1c-d5bf-4f10-9bf6-6a8bc1ff0a1c", + "isHook": false, + "skipped": false + }, + { + "title": "should check message type", + "fullTitle": "FO - Account : Send a message with an ordered product Check message in BO should check message type", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_checkMessageType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessageType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'cl!id_contact')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain('--');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c890677-03b6-43fe-9a24-84032a1fe813", + "parentUUID": "6fbceb1c-d5bf-4f10-9bf6-6a8bc1ff0a1c", + "isHook": false, + "skipped": false + }, + { + "title": "should check message", + "fullTitle": "FO - Account : Send a message with an ordered product Check message in BO should check message", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_checkMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'message')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(messageSend);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53df93dd-d9b3-4b60-a0b9-92529af90b8d", + "parentUUID": "6fbceb1c-d5bf-4f10-9bf6-6a8bc1ff0a1c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "FO - Account : Send a message with an ordered product Check message in BO should delete the message", + "timedOut": false, + "duration": 434, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35fd6fbb-a1c8-46d7-895b-ca68745a7de3", + "parentUUID": "6fbceb1c-d5bf-4f10-9bf6-6a8bc1ff0a1c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "504b6fb4-1a08-4d1b-bb64-00f3b6483616", + "2c6d03cf-eda9-45f0-af66-97205400d6a3", + "83956893-9492-473e-8600-6f1c2b15a332", + "6afab13f-81dc-4263-b529-fdd0a34ed056", + "5c890677-03b6-43fe-9a24-84032a1fe813", + "53df93dd-d9b3-4b60-a0b9-92529af90b8d", + "35fd6fbb-a1c8-46d7-895b-ca68745a7de3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13678, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3a335867-2f3b-4e23-8da8-2b19ac194605", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/01_orderDetails/04_sendMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Account : Send a message with an ordered product POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1434a64-5481-4761-8bd5-fb62d819cce7", + "parentUUID": "3a335867-2f3b-4e23-8da8-2b19ac194605", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Account : Send a message with an ordered product POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6f215020-43ef-4548-ae90-74006650068b", + "parentUUID": "3a335867-2f3b-4e23-8da8-2b19ac194605", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Send a message with an ordered product POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abc56fc4-4313-4147-8bf2-d7e7d55c8b85", + "parentUUID": "3a335867-2f3b-4e23-8da8-2b19ac194605", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Account : Send a message with an ordered product POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_postTest_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aefae383-ac26-494a-9354-9d4f832529b2", + "parentUUID": "3a335867-2f3b-4e23-8da8-2b19ac194605", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "FO - Account : Send a message with an ordered product POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 408, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_orderDetails_sendMessage_postTest_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d82aa56a-2e34-44a5-bb21-d777865b3bc3", + "parentUUID": "3a335867-2f3b-4e23-8da8-2b19ac194605", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "abc56fc4-4313-4147-8bf2-d7e7d55c8b85", + "aefae383-ac26-494a-9354-9d4f832529b2", + "d82aa56a-2e34-44a5-bb21-d777865b3bc3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7076, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "75c59bac-551b-408a-8514-723e8132df00", + "title": "FO - Account - Order history : Reorder from order list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/02_reorderFromOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/02_reorderFromOrderList.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account - Order history : Reorder from order list\"", + "fullTitle": "FO - Account - Order history : Reorder from order list \"before all\" hook in \"FO - Account - Order history : Reorder from order list\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47c8527f-749d-48e1-a574-411421bd216b", + "parentUUID": "75c59bac-551b-408a-8514-723e8132df00", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account - Order history : Reorder from order list\"", + "fullTitle": "FO - Account - Order history : Reorder from order list \"after all\" hook in \"FO - Account - Order history : Reorder from order list\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cc71d175-6718-4826-a910-1aa70424e0fc", + "parentUUID": "75c59bac-551b-408a-8514-723e8132df00", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/02_reorderFromOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/02_reorderFromOrderList.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d0dde62-ab94-4b63-ab0d-3febf6523710", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f2b27d5a-88b8-4a53-8535-b95f644347f1", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d65cbd81-8db7-40c1-b0ea-907338795af9", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa8dbac8-59b4-4724-8c3d-03972930c37a", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 493, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c82e19e-8966-4424-bdce-7528cb1616d6", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93444873-b9f2-4e9a-b7d7-97e8ab6b32c2", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1025, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6391b23f-91b4-4094-80d6-4f42fcc760c5", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ec522ca-8605-413f-9301-34c27cb0f573", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account - Order history : Reorder from order list PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1540, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c044f5d6-e9c1-402c-bd8e-09317c45206c", + "parentUUID": "2b8156a7-0bd4-435d-9996-a4a25592f3ee", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d65cbd81-8db7-40c1-b0ea-907338795af9", + "aa8dbac8-59b4-4724-8c3d-03972930c37a", + "9c82e19e-8966-4424-bdce-7528cb1616d6", + "93444873-b9f2-4e9a-b7d7-97e8ab6b32c2", + "6391b23f-91b4-4094-80d6-4f42fcc760c5", + "3ec522ca-8605-413f-9301-34c27cb0f573", + "c044f5d6-e9c1-402c-bd8e-09317c45206c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12975, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82594512-cb77-4919-8adb-b153936a6d4d", + "title": "Go to order list and proceed reorder", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/02_reorderFromOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/02_reorderFromOrderList.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should go to FO home page", + "timedOut": false, + "duration": 467, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99c54c71-8b56-4414-b397-49de4d6ced7b", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should go to login page", + "timedOut": false, + "duration": 718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_goToLoginFoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1303116c-e88a-41c0-b69f-04c33484ef13", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in FO", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should sign in FO", + "timedOut": false, + "duration": 507, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d2fc38fa-f870-4d5c-9e16-1af187697b97", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should go to my account page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "970b5e3c-6358-4342-a564-7734da7a4317", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should go to order history page", + "timedOut": false, + "duration": 732, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e154a965-27af-4814-957e-4c5433d888f9", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + }, + { + "title": "should reorder the last order", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should reorder the last order", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_reorderLastOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reorderLastOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.clickOnReorderLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage, 'Browser is not in checkout Page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f1723d6-3531-49d7-909e-50e2494acdab", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Address and go to Delivery Step", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should validate Step Address and go to Delivery Step", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_checkDeliveryStepForReorder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryStepForReorder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "670d49be-d75f-4dda-bcc0-ce4136c16f93", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Delivery and go to Payment Step", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should validate Step Delivery and go to Payment Step", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_goToPaymentStepForReorder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStepForReorder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55ba8654-4a66-44f5-8af2-d10ebc5c4b64", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + }, + { + "title": "should Pay by bank wire and confirm order", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to order list and proceed reorder should Pay by bank wire and confirm order", + "timedOut": false, + "duration": 1530, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_confirmReorder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmReorder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderConfirmation_1.default.pageTitle);\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fc8b6f7-0a45-4bc3-8fdc-b94f2aed8d38", + "parentUUID": "82594512-cb77-4919-8adb-b153936a6d4d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "99c54c71-8b56-4414-b397-49de4d6ced7b", + "1303116c-e88a-41c0-b69f-04c33484ef13", + "d2fc38fa-f870-4d5c-9e16-1af187697b97", + "970b5e3c-6358-4342-a564-7734da7a4317", + "e154a965-27af-4814-957e-4c5433d888f9", + "5f1723d6-3531-49d7-909e-50e2494acdab", + "670d49be-d75f-4dda-bcc0-ce4136c16f93", + "55ba8654-4a66-44f5-8af2-d10ebc5c4b64", + "0fc8b6f7-0a45-4bc3-8fdc-b94f2aed8d38" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6517, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b00dff11-1a43-4d8f-b51b-8032e8a4b4a5", + "title": "Go to new order detail and check content", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/02_reorderFromOrderList.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/02_reorderFromOrderList.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to my account page", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to new order detail and check content should go to my account page", + "timedOut": false, + "duration": 672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_goBackToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76893eaf-2f9d-4f83-b30f-8c85cef4cab3", + "parentUUID": "b00dff11-1a43-4d8f-b51b-8032e8a4b4a5", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to order history page", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to new order detail and check content should go back to order history page", + "timedOut": false, + "duration": 711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_goBackToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9152ccbf-c0e6-4768-87bb-636f7200b10f", + "parentUUID": "b00dff11-1a43-4d8f-b51b-8032e8a4b4a5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order details page", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to new order detail and check content should go to order details page", + "timedOut": false, + "duration": 752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_goToFoToOrderDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd9ed0d4-8b89-42e1-adc8-5d97aa517f40", + "parentUUID": "b00dff11-1a43-4d8f-b51b-8032e8a4b4a5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to new order detail and check content should check the ordered product", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_checkTheOrderedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderedProduct;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTheOrderedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getProductName(page)];\n case 2:\n orderedProduct = _a.sent();\n (0, chai_1.expect)(orderedProduct).to.contain(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0904720-6a13-43e7-a975-c03587f01bc9", + "parentUUID": "b00dff11-1a43-4d8f-b51b-8032e8a4b4a5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Account - Order history : Reorder from order list Go to new order detail and check content should sign out from FO", + "timedOut": false, + "duration": 1168, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_reorderFromOrderList_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a45fff28-8b70-44f0-abb1-9d6c5d3c40a7", + "parentUUID": "b00dff11-1a43-4d8f-b51b-8032e8a4b4a5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76893eaf-2f9d-4f83-b30f-8c85cef4cab3", + "9152ccbf-c0e6-4768-87bb-636f7200b10f", + "fd9ed0d4-8b89-42e1-adc8-5d97aa517f40", + "e0904720-6a13-43e7-a975-c03587f01bc9", + "a45fff28-8b70-44f0-abb1-9d6c5d3c40a7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3311, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9991c1b4-9017-412d-8f61-6ef95f62367c", + "title": "FO - Account - Order history : download invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account - Order history : download invoice\"", + "fullTitle": "FO - Account - Order history : download invoice \"before all\" hook in \"FO - Account - Order history : download invoice\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e406c7ef-20e2-491c-bffe-41373aad6299", + "parentUUID": "9991c1b4-9017-412d-8f61-6ef95f62367c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account - Order history : download invoice\"", + "fullTitle": "FO - Account - Order history : download invoice \"after all\" hook in \"FO - Account - Order history : download invoice\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8a84c477-e2e3-405b-8688-3c92c655630b", + "parentUUID": "9991c1b4-9017-412d-8f61-6ef95f62367c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "736e4f76-9689-4168-b9ff-ef46da174dde", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e829563-352a-4da5-9bfa-d4f9629d4244", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "77e091a7-444e-42ad-b6de-5ca058e0836e", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc346a71-0c34-4405-89e9-93d42819769b", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7b062b6-f1f6-445e-883b-c840582ad7bd", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 520, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce42cad9-e2d7-414c-8729-72d310ebe740", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5472fdce-f724-4886-b89b-09c4db4c0bba", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 998, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4ceb2b4-fd5e-4ad9-b50f-3b276c88f1dc", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2584744-09cf-417b-bb5d-671023847007", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1512, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "739e0231-21af-4aba-b056-981b0b743f60", + "parentUUID": "736e4f76-9689-4168-b9ff-ef46da174dde", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc346a71-0c34-4405-89e9-93d42819769b", + "f7b062b6-f1f6-445e-883b-c840582ad7bd", + "ce42cad9-e2d7-414c-8729-72d310ebe740", + "5472fdce-f724-4886-b89b-09c4db4c0bba", + "b4ceb2b4-fd5e-4ad9-b50f-3b276c88f1dc", + "c2584744-09cf-417b-bb5d-671023847007", + "739e0231-21af-4aba-b056-981b0b743f60" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12946, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27a82000-b64c-4b5c-af78-c93b1a849eda", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "efd47c2c-1e5d-44fe-8b90-ae862c8c7cb1", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67155eb7-bd5e-427c-b057-1c437cc886fe", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60429b98-1495-4cfd-b01d-811822b57376", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 519, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "030e1ce2-dbc7-4509-9f18-d01b5f8bd872", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0cde1db0-9517-482f-92dd-d93847374eb1", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1013, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbbd8323-8047-4602-a96f-3b5a2088efd6", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "548b3286-05c1-45eb-8561-7562d6b09493", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account - Order history : download invoice PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1524, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_preTest_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dc943b6-1e98-4fa5-84a3-09c4a5fe7f89", + "parentUUID": "52ca7ce9-d3a4-4cd3-b1bf-3b4facddec78", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "67155eb7-bd5e-427c-b057-1c437cc886fe", + "60429b98-1495-4cfd-b01d-811822b57376", + "030e1ce2-dbc7-4509-9f18-d01b5f8bd872", + "0cde1db0-9517-482f-92dd-d93847374eb1", + "bbbd8323-8047-4602-a96f-3b5a2088efd6", + "548b3286-05c1-45eb-8561-7562d6b09493", + "5dc943b6-1e98-4fa5-84a3-09c4a5fe7f89" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12966, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "29fb4dec-a6b3-4e99-ae4a-a07275029fe6", + "title": "Change the first order status to 'Delivered'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account - Order history : download invoice Change the first order status to 'Delivered' should login in BO", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97d490fd-c141-49da-a385-48f767cf8702", + "parentUUID": "29fb4dec-a6b3-4e99-ae4a-a07275029fe6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "FO - Account - Order history : download invoice Change the first order status to 'Delivered' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_goToOrdersPageForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPageForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, invoices_1.default.goToSubMenu(page, invoices_1.default.ordersParentLink, invoices_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27dac197-9862-4ced-bb5d-381542764f83", + "parentUUID": "29fb4dec-a6b3-4e99-ae4a-a07275029fe6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "FO - Account - Order history : download invoice Change the first order status to 'Delivered' should go to the first order page", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_goToFirstOrderPageForUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPageForUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf686226-53a3-47d3-acca-005cf06d6457", + "parentUUID": "29fb4dec-a6b3-4e99-ae4a-a07275029fe6", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "FO - Account - Order history : download invoice Change the first order status to 'Delivered' should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_updateStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "852752f8-043a-425e-bf3f-5a9479912eca", + "parentUUID": "29fb4dec-a6b3-4e99-ae4a-a07275029fe6", + "isHook": false, + "skipped": false + }, + { + "title": "should get the invoice file name", + "fullTitle": "FO - Account - Order history : download invoice Change the first order status to 'Delivered' should get the invoice file name", + "timedOut": false, + "duration": 258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_checkFirstOrderUpdatedPrefix\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstOrderUpdatedPrefix', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page)];\n case 2:\n // Get invoice file name\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1cf18ac2-2594-4b10-8b4f-8b143336e9ae", + "parentUUID": "29fb4dec-a6b3-4e99-ae4a-a07275029fe6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97d490fd-c141-49da-a385-48f767cf8702", + "27dac197-9862-4ced-bb5d-381542764f83", + "bf686226-53a3-47d3-acca-005cf06d6457", + "852752f8-043a-425e-bf3f-5a9479912eca", + "1cf18ac2-2594-4b10-8b4f-8b143336e9ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8060, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c427a909-ef38-4234-b88f-9b8539ae182f", + "title": "Download invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/02_orderHistory/03_downloadInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Account - Order history : download invoice Download invoice should go to FO home page", + "timedOut": false, + "duration": 432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64068f93-24a3-4266-8cdb-6082e45e1ca3", + "parentUUID": "c427a909-ef38-4234-b88f-9b8539ae182f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account - Order history : download invoice Download invoice should go to login page", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_goToLoginFoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginFoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd0108b6-9564-452d-a710-d8c52411463a", + "parentUUID": "c427a909-ef38-4234-b88f-9b8539ae182f", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in FO", + "fullTitle": "FO - Account - Order history : download invoice Download invoice should sign in FO", + "timedOut": false, + "duration": 550, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f980770d-2450-45e6-9e85-dd5dbbe5b029", + "parentUUID": "c427a909-ef38-4234-b88f-9b8539ae182f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account - Order history : download invoice Download invoice should go to my account page", + "timedOut": false, + "duration": 695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d371b34d-4fe5-47af-8e75-f77a5fe6278e", + "parentUUID": "c427a909-ef38-4234-b88f-9b8539ae182f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history page", + "fullTitle": "FO - Account - Order history : download invoice Download invoice should go to order history page", + "timedOut": false, + "duration": 712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2cfa9da-b5cb-484a-afb4-2a180ddb7685", + "parentUUID": "c427a909-ef38-4234-b88f-9b8539ae182f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the invoice of the first order in list is visible", + "fullTitle": "FO - Account - Order history : download invoice Download invoice should check that the invoice of the first order in list is visible", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_checkInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.isInvoiceVisible(page, 1)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'The invoice file is not existing!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ea396eb-211c-4336-8cf7-b0a725b18667", + "parentUUID": "c427a909-ef38-4234-b88f-9b8539ae182f", + "isHook": false, + "skipped": false + }, + { + "title": "should download the invoice and check the invoice ID", + "fullTitle": "FO - Account - Order history : download invoice Download invoice should download the invoice and check the invoice ID", + "timedOut": false, + "duration": 529, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_downloadInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var downloadFilePath, exist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.downloadInvoice(page)];\n case 2:\n downloadFilePath = _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(downloadFilePath, fileName)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06d71150-82a2-48d4-b3e1-1afce88924b1", + "parentUUID": "c427a909-ef38-4234-b88f-9b8539ae182f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no invoice is visible for the second order in list", + "fullTitle": "FO - Account - Order history : download invoice Download invoice should check that no invoice is visible for the second order in list", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_orderHistory_downloadInvoice_checkNoInvoice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoInvoice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.isInvoiceVisible(page, 2)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ec29fc6-d3d2-4dbd-a498-f6eb19a60178", + "parentUUID": "c427a909-ef38-4234-b88f-9b8539ae182f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "64068f93-24a3-4266-8cdb-6082e45e1ca3", + "fd0108b6-9564-452d-a710-d8c52411463a", + "f980770d-2450-45e6-9e85-dd5dbbe5b029", + "d371b34d-4fe5-47af-8e75-f77a5fe6278e", + "b2cfa9da-b5cb-484a-afb4-2a180ddb7685", + "4ea396eb-211c-4336-8cf7-b0a725b18667", + "06d71150-82a2-48d4-b3e1-1afce88924b1", + "8ec29fc6-d3d2-4dbd-a498-f6eb19a60178" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4645, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1e10c510-9767-49b2-ab61-70659cc882d0", + "title": "FO - Account : Consult return details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account : Consult return details\"", + "fullTitle": "FO - Account : Consult return details \"before all\" hook in \"FO - Account : Consult return details\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6949917a-cbcc-4055-af7f-a525e8dcfc6f", + "parentUUID": "1e10c510-9767-49b2-ab61-70659cc882d0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account : Consult return details\"", + "fullTitle": "FO - Account : Consult return details \"after all\" hook in \"FO - Account : Consult return details\"", + "timedOut": false, + "duration": 72, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "38b61343-3753-4126-99b5-0a750ac07609", + "parentUUID": "1e10c510-9767-49b2-ab61-70659cc882d0", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8be80b5-58ac-4645-9e61-03d1c36e9d6d", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8e887936-371c-4740-9985-9b834c8b9f57", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2c6c1ea-3431-47a1-842d-f5be0809a84d", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79074086-dd70-44e8-8fc3-6d5762ac8969", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 498, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73f1a43f-7b82-4131-8bd9-540ecb3cbecb", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 6992, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d27c70ee-cc9a-4f28-9e4e-bc8850c17f49", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef09d15c-53f0-42f0-b2b2-c650614b0c85", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c3ab3f0-bade-4d73-b55f-e32f36dd215c", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d43a341a-51a6-42ae-936d-2ed32a9340a2", + "parentUUID": "5f45588e-70c8-4acb-aa10-50160cc95c0b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b2c6c1ea-3431-47a1-842d-f5be0809a84d", + "79074086-dd70-44e8-8fc3-6d5762ac8969", + "73f1a43f-7b82-4131-8bd9-540ecb3cbecb", + "d27c70ee-cc9a-4f28-9e4e-bc8850c17f49", + "ef09d15c-53f0-42f0-b2b2-c650614b0c85", + "5c3ab3f0-bade-4d73-b55f-e32f36dd215c", + "d43a341a-51a6-42ae-936d-2ed32a9340a2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12630, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "adb3c06e-3af4-4507-9b54-6e54d8e6bf84", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9b0372e-9560-43f2-85f5-49c37fb894cc", + "parentUUID": "adb3c06e-3af4-4507-9b54-6e54d8e6bf84", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e02ec074-3819-4cdf-9c68-f681f68eb3dc", + "parentUUID": "adb3c06e-3af4-4507-9b54-6e54d8e6bf84", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0d15bfd-1431-473e-995e-895e947c0b84", + "parentUUID": "adb3c06e-3af4-4507-9b54-6e54d8e6bf84", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4608, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_2_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94d7d70c-3285-47c5-b6f5-d888944b42f9", + "parentUUID": "adb3c06e-3af4-4507-9b54-6e54d8e6bf84", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "FO - Account : Consult return details PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_preTest_2_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7561757-e05d-4218-b440-b97aca1492a8", + "parentUUID": "adb3c06e-3af4-4507-9b54-6e54d8e6bf84", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b0d15bfd-1431-473e-995e-895e947c0b84", + "94d7d70c-3285-47c5-b6f5-d888944b42f9", + "d7561757-e05d-4218-b440-b97aca1492a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6600, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5ca35262-b301-4418-babe-8df51a528a62", + "title": "Case 1 : Check merchandise returns status 'Waiting for confirmation'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "title": "Change the created orders status to 'Shipped'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should login in BO", + "timedOut": false, + "duration": 1765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b00b0444-50c4-4036-817c-8a62c803e6d6", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbbe32da-635a-4934-aedb-9423032e09f1", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 2442, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_filterOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "393bcbb4-06fe-4854-b330-d88530efc7d9", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order ID", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should get the order ID", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_getOrderID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getOrderIDNumber(page)];\n case 2:\n orderID = _a.sent();\n (0, chai_1.expect)(orderID).to.not.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c6fda4a-dfd3-4b07-b44e-182b9e9c94de", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should get the created Order reference", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should get the created Order reference", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_getOrderReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 1)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9804e5ae-8947-4f8b-9369-4adcc13dca77", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should get the created Order date", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should get the created Order date", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_getOrderDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderDate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'date_add', 1)];\n case 2:\n orderDate = _a.sent();\n orderDate = orderDate.substring(0, 10);\n (0, chai_1.expect)(orderDate).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d5036cc-d472-472d-89a0-a6ea6674d11c", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should go to the first order page", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a20da24-4fd5-4c9a-94b1-5c921b33aa5e", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1270, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "270faf95-e7b0-4a49-a2d4-bc5065fc8871", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4ba0e19-0cd6-462f-a63c-cfda75af899e", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Change the created orders status to 'Shipped' should reset all filters", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe052670-0998-4a23-8fd8-23a242c6f2f6", + "parentUUID": "2de764d2-1227-47b5-99cd-aacc682c5e60", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b00b0444-50c4-4036-817c-8a62c803e6d6", + "cbbe32da-635a-4934-aedb-9423032e09f1", + "393bcbb4-06fe-4854-b330-d88530efc7d9", + "6c6fda4a-dfd3-4b07-b44e-182b9e9c94de", + "9804e5ae-8947-4f8b-9369-4adcc13dca77", + "9d5036cc-d472-472d-89a0-a6ea6674d11c", + "2a20da24-4fd5-4c9a-94b1-5c921b33aa5e", + "270faf95-e7b0-4a49-a2d4-bc5065fc8871", + "b4ba0e19-0cd6-462f-a63c-cfda75af899e", + "fe052670-0998-4a23-8fd8-23a242c6f2f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15028, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0b6e0ab5-4283-408f-a714-5efc9b4c1804", + "title": "Create merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Create merchandise returns should go to FO", + "timedOut": false, + "duration": 1750, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34593de7-4cc2-4c32-96ba-8b2b5faca483", + "parentUUID": "0b6e0ab5-4283-408f-a714-5efc9b4c1804", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Create merchandise returns should login", + "timedOut": false, + "duration": 1215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_logonFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logonFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd87e00b-40d9-42a7-a6ea-247d8f3d75c6", + "parentUUID": "0b6e0ab5-4283-408f-a714-5efc9b4c1804", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Create merchandise returns should go to my account page", + "timedOut": false, + "duration": 689, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToAccountPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd18fda3-9e96-4bb9-bec5-9b8d9bc45592", + "parentUUID": "0b6e0ab5-4283-408f-a714-5efc9b4c1804", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Create merchandise returns should go to 'Order history and details' page", + "timedOut": false, + "duration": 723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcf3aab0-0870-471b-ac6e-120991d4875f", + "parentUUID": "0b6e0ab5-4283-408f-a714-5efc9b4c1804", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Create merchandise returns should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_isOrderReturnFormVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12345f03-bd5c-456d-b432-0a9623188b43", + "parentUUID": "0b6e0ab5-4283-408f-a714-5efc9b4c1804", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Create merchandise returns should create a merchandise return", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'message test')];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93c73c23-e81d-4770-80c2-d47157108743", + "parentUUID": "0b6e0ab5-4283-408f-a714-5efc9b4c1804", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "34593de7-4cc2-4c32-96ba-8b2b5faca483", + "fd87e00b-40d9-42a7-a6ea-247d8f3d75c6", + "bd18fda3-9e96-4bb9-bec5-9b8d9bc45592", + "bcf3aab0-0870-471b-ac6e-120991d4875f", + "12345f03-bd5c-456d-b432-0a9623188b43", + "93c73c23-e81d-4770-80c2-d47157108743" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5943, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1540960a-1ebf-4ba0-87a8-9de749128026", + "title": "Check merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should verify the Order reference", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Check merchandise returns should verify the Order reference", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkOrderReturnReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'orderReference')];\n case 2:\n packageStatus = _a.sent();\n (0, chai_1.expect)(packageStatus).to.equal(orderReference);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7012afa7-1b95-4e0b-b6e2-eb14361c3128", + "parentUUID": "1540960a-1ebf-4ba0-87a8-9de749128026", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the Order return file name", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Check merchandise returns should verify the Order return file name", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkOrderReturnFileName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnFileName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'fileName')];\n case 2:\n packageStatus = _a.sent();\n (0, chai_1.expect)(packageStatus).to.contains('#RE00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5eb138f2-c3e1-41af-93f3-2f550a19a6a4", + "parentUUID": "1540960a-1ebf-4ba0-87a8-9de749128026", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return status", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Check merchandise returns should verify the order return status", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkOrderReturnStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n packageStatus = _a.sent();\n (0, chai_1.expect)(packageStatus).to.equal(orderReturnStatuses_1.default.waitingForConfirmation.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c74914e6-8ed7-4cc5-bc2e-748982a82804", + "parentUUID": "1540960a-1ebf-4ba0-87a8-9de749128026", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return date issued", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Check merchandise returns should verify the order return date issued", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkOrderReturnDateIssued\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnDateIssued', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'dateIssued')];\n case 2:\n packageStatus = _a.sent();\n (0, chai_1.expect)(packageStatus).to.equal(orderDate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68a6509e-a165-4cc3-9b2b-2bd762f96340", + "parentUUID": "1540960a-1ebf-4ba0-87a8-9de749128026", + "isHook": false, + "skipped": false + }, + { + "title": "should go to return details page", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Check merchandise returns should go to return details page", + "timedOut": false, + "duration": 719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToReturnDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToReturnDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goToReturnDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(returnDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d64cfd7-024e-4d43-bd81-77b416b4ba7c", + "parentUUID": "1540960a-1ebf-4ba0-87a8-9de749128026", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return notification", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Check merchandise returns should check the return notification", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnNotification\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReturnNotifications;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnNotification', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getAlertWarning(page)];\n case 2:\n orderReturnNotifications = _a.sent();\n (0, chai_1.expect)(orderReturnNotifications).to.equal(returnDetails_1.default.errorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fb39245-87c4-47cc-bc28-000d4c804ed4", + "parentUUID": "1540960a-1ebf-4ba0-87a8-9de749128026", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return details", + "fullTitle": "FO - Account : Consult return details Case 1 : Check merchandise returns status 'Waiting for confirmation' Check merchandise returns should check the return details", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReturnInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getOrderReturnInfo(page)];\n case 2:\n orderReturnInfo = _a.sent();\n (0, chai_1.expect)(orderReturnInfo)\n .to.contains(\"on \".concat(orderDate, \" \").concat(returnDetails_1.default.orderReturnCardBlock))\n .and.to.contains(orderReturnStatuses_1.default.waitingForConfirmation.name)\n .and.to.contains(\"List of items to be returned: Product Quantity \".concat(products_1.default.demo_1.name, \" \")\n + \"(Size: S - Color: White) Reference: \".concat(products_1.default.demo_1.reference, \" 1\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35d8cc7e-78e8-40c4-a498-2e791693ab53", + "parentUUID": "1540960a-1ebf-4ba0-87a8-9de749128026", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7012afa7-1b95-4e0b-b6e2-eb14361c3128", + "5eb138f2-c3e1-41af-93f3-2f550a19a6a4", + "c74914e6-8ed7-4cc5-bc2e-748982a82804", + "68a6509e-a165-4cc3-9b2b-2bd762f96340", + "8d64cfd7-024e-4d43-bd81-77b416b4ba7c", + "3fb39245-87c4-47cc-bc28-000d4c804ed4", + "35d8cc7e-78e8-40c4-a498-2e791693ab53" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 775, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19ae8962-279c-4a32-bbfd-65b45576a344", + "title": "Case 2 : Check merchandise returns with the status Waiting for package", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "af2f593a-22d1-4ef7-9aa2-6449a55eae10", + "title": "Change the merchandise returns status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Change the merchandise returns status should go to BO", + "timedOut": false, + "duration": 632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToBO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b3cd65f-f34a-40b0-8250-41392f2cd102", + "parentUUID": "af2f593a-22d1-4ef7-9aa2-6449a55eae10", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Change the merchandise returns status should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3623, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToMerchandiseReturnsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "092b3507-a008-4ab5-8056-39194b7e84b2", + "parentUUID": "af2f593a-22d1-4ef7-9aa2-6449a55eae10", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Change the merchandise returns status should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkExistenceOfReturns0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkExistenceOfReturns\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b86a924a-2028-426b-a132-a930bc2b3091", + "parentUUID": "af2f593a-22d1-4ef7-9aa2-6449a55eae10", + "isHook": false, + "skipped": false + }, + { + "title": "should get the return ID", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Change the merchandise returns status should get the return ID", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_getReturnID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var idReturn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getReturnID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order_return')];\n case 2:\n idReturn = _a.sent();\n (0, chai_1.expect)(parseInt(idReturn, 10)).to.be.above(0);\n if (parseInt(idReturn, 10) > 10) {\n fileName += idReturn;\n }\n else\n fileName += \"0\".concat(idReturn);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44966141-1cd8-4789-9cc6-ec387923cf84", + "parentUUID": "af2f593a-22d1-4ef7-9aa2-6449a55eae10", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Change the merchandise returns status should go to edit merchandise returns page", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToEditReturnsPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea5340a7-fbb3-4395-b97b-9d5fd75b93b6", + "parentUUID": "af2f593a-22d1-4ef7-9aa2-6449a55eae10", + "isHook": false, + "skipped": false + }, + { + "title": "should edit merchandise returns status", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Change the merchandise returns status should edit merchandise returns status", + "timedOut": false, + "duration": 1118, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_editReturnStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ec57942-80fb-4d56-958a-a4daa02e3901", + "parentUUID": "af2f593a-22d1-4ef7-9aa2-6449a55eae10", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1b3cd65f-f34a-40b0-8250-41392f2cd102", + "092b3507-a008-4ab5-8056-39194b7e84b2", + "b86a924a-2028-426b-a132-a930bc2b3091", + "44966141-1cd8-4789-9cc6-ec387923cf84", + "ea5340a7-fbb3-4395-b97b-9d5fd75b93b6", + "2ec57942-80fb-4d56-958a-a4daa02e3901" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7108, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e5704b15-795d-4b45-8743-870b03ffc44e", + "title": "Check merchandise return details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Check merchandise return details should go to FO", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToFO0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40554546-f5e4-4a90-8984-84e8b6b9cbf3", + "parentUUID": "e5704b15-795d-4b45-8743-870b03ffc44e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Check merchandise return details should go to account page", + "timedOut": false, + "duration": 699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToAccountPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index + 3), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a319c893-baad-4887-b0b8-2828363c49e5", + "parentUUID": "e5704b15-795d-4b45-8743-870b03ffc44e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Check merchandise return details should go to 'Merchandise Returns' page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToMerchandiseReturnPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToMerchandiseReturnsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0441dbd4-3b49-4f0d-8725-9614b7610f90", + "parentUUID": "e5704b15-795d-4b45-8743-870b03ffc44e", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return status", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Check merchandise return details should verify the order return status", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkOrderReturnStatus0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.be.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ec22fb5-0160-4f28-a047-f5355bd16ccd", + "parentUUID": "e5704b15-795d-4b45-8743-870b03ffc44e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to return details page", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Check merchandise return details should go to return details page", + "timedOut": false, + "duration": 714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToReturnDetails0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToReturnDetails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goToReturnDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(returnDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c09e57a-4f6e-4cf1-aa1b-8d47bfde5c01", + "parentUUID": "e5704b15-795d-4b45-8743-870b03ffc44e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the alert warning is not visible", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Check merchandise return details should check that the alert warning is not visible", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnNotification0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnNotification\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.isAlertWarningVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32125c37-6f84-4fa7-b469-1aeff581d958", + "parentUUID": "e5704b15-795d-4b45-8743-870b03ffc44e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return details", + "fullTitle": "FO - Account : Consult return details Case 2 : Check merchandise returns with the status Waiting for package Check merchandise return details should check the return details", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnDetails0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReturnInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnDetails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getOrderReturnInfo(page)];\n case 2:\n orderReturnInfo = _a.sent();\n (0, chai_1.expect)(orderReturnInfo)\n .to.contains(\"\".concat(fileName, \" on \").concat(orderDate, \" \").concat(returnDetails_1.default.orderReturnCardBlock))\n .and.to.contains(test.args.status)\n .and.to.contains(\"List of items to be returned: Product Quantity \".concat(products_1.default.demo_1.name, \" \")\n + \"(Size: S - Color: White) Reference: \".concat(products_1.default.demo_1.reference, \" 1\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf4fd4d7-b2a2-4f72-ab25-033ddb825e9b", + "parentUUID": "e5704b15-795d-4b45-8743-870b03ffc44e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "40554546-f5e4-4a90-8984-84e8b6b9cbf3", + "a319c893-baad-4887-b0b8-2828363c49e5", + "0441dbd4-3b49-4f0d-8725-9614b7610f90", + "2ec22fb5-0160-4f28-a047-f5355bd16ccd", + "3c09e57a-4f6e-4cf1-aa1b-8d47bfde5c01", + "32125c37-6f84-4fa7-b469-1aeff581d958", + "cf4fd4d7-b2a2-4f72-ab25-033ddb825e9b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3848, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ff6bda3c-7f26-4996-90ce-a4d45e7288ba", + "title": "Case 3 : Check merchandise returns with the status Package received", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "dbc033d8-c356-4238-80ec-1d9dbd4a95b2", + "title": "Change the merchandise returns status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Change the merchandise returns status should go to BO", + "timedOut": false, + "duration": 565, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6cb61db-f887-4d53-a87e-00807bcf933b", + "parentUUID": "dbc033d8-c356-4238-80ec-1d9dbd4a95b2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Change the merchandise returns status should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToMerchandiseReturnsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e45597cf-6e5f-4c36-8010-c2b454402f6e", + "parentUUID": "dbc033d8-c356-4238-80ec-1d9dbd4a95b2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Change the merchandise returns status should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkExistenceOfReturns1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkExistenceOfReturns\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "051a7a4e-b515-4dad-a404-c3be32eae48f", + "parentUUID": "dbc033d8-c356-4238-80ec-1d9dbd4a95b2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Change the merchandise returns status should go to edit merchandise returns page", + "timedOut": false, + "duration": 816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToEditReturnsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "732edbac-11fb-47c3-a2e4-8c8ab744da99", + "parentUUID": "dbc033d8-c356-4238-80ec-1d9dbd4a95b2", + "isHook": false, + "skipped": false + }, + { + "title": "should edit merchandise returns status", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Change the merchandise returns status should edit merchandise returns status", + "timedOut": false, + "duration": 1124, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_editReturnStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81dd9403-76b3-48dd-a8ff-c67988b40d69", + "parentUUID": "dbc033d8-c356-4238-80ec-1d9dbd4a95b2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c6cb61db-f887-4d53-a87e-00807bcf933b", + "e45597cf-6e5f-4c36-8010-c2b454402f6e", + "051a7a4e-b515-4dad-a404-c3be32eae48f", + "732edbac-11fb-47c3-a2e4-8c8ab744da99", + "81dd9403-76b3-48dd-a8ff-c67988b40d69" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7024, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "90b09755-4c62-4a15-a789-3d204371392f", + "title": "Check merchandise return details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Check merchandise return details should go to FO", + "timedOut": false, + "duration": 1684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d04c6d9d-bf33-4b42-83aa-3ed991bc547c", + "parentUUID": "90b09755-4c62-4a15-a789-3d204371392f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Check merchandise return details should go to account page", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToAccountPage4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index + 3), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6973637-8fce-4dcd-a486-b585a62bbd5a", + "parentUUID": "90b09755-4c62-4a15-a789-3d204371392f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Check merchandise return details should go to 'Merchandise Returns' page", + "timedOut": false, + "duration": 700, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToMerchandiseReturnPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToMerchandiseReturnsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67ac2616-3954-4b16-a44f-7e448fc66594", + "parentUUID": "90b09755-4c62-4a15-a789-3d204371392f", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return status", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Check merchandise return details should verify the order return status", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkOrderReturnStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.be.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "281c8cd4-c647-4e24-ac04-64e07d9a33d7", + "parentUUID": "90b09755-4c62-4a15-a789-3d204371392f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to return details page", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Check merchandise return details should go to return details page", + "timedOut": false, + "duration": 707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToReturnDetails1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToReturnDetails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goToReturnDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(returnDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7decc80-7690-4add-9af0-10338a95764c", + "parentUUID": "90b09755-4c62-4a15-a789-3d204371392f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the alert warning is not visible", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Check merchandise return details should check that the alert warning is not visible", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnNotification1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnNotification\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.isAlertWarningVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8738aa3-ae86-42c1-b9e6-126445ee1279", + "parentUUID": "90b09755-4c62-4a15-a789-3d204371392f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return details", + "fullTitle": "FO - Account : Consult return details Case 3 : Check merchandise returns with the status Package received Check merchandise return details should check the return details", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnDetails1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReturnInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnDetails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getOrderReturnInfo(page)];\n case 2:\n orderReturnInfo = _a.sent();\n (0, chai_1.expect)(orderReturnInfo)\n .to.contains(\"\".concat(fileName, \" on \").concat(orderDate, \" \").concat(returnDetails_1.default.orderReturnCardBlock))\n .and.to.contains(test.args.status)\n .and.to.contains(\"List of items to be returned: Product Quantity \".concat(products_1.default.demo_1.name, \" \")\n + \"(Size: S - Color: White) Reference: \".concat(products_1.default.demo_1.reference, \" 1\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed546c54-7cf9-4699-b168-b5b97d335469", + "parentUUID": "90b09755-4c62-4a15-a789-3d204371392f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d04c6d9d-bf33-4b42-83aa-3ed991bc547c", + "b6973637-8fce-4dcd-a486-b585a62bbd5a", + "67ac2616-3954-4b16-a44f-7e448fc66594", + "281c8cd4-c647-4e24-ac04-64e07d9a33d7", + "e7decc80-7690-4add-9af0-10338a95764c", + "f8738aa3-ae86-42c1-b9e6-126445ee1279", + "ed546c54-7cf9-4699-b168-b5b97d335469" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3837, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c153fcea-6307-40ce-ab1e-5111b0e970cd", + "title": "Case 4 : Check merchandise returns with the status Return denied", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "73b53e58-266e-4441-93d6-05a8dfbfbb5e", + "title": "Change the merchandise returns status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Change the merchandise returns status should go to BO", + "timedOut": false, + "duration": 465, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13ebd4e0-db9d-45a1-afa1-6ac24dbac48b", + "parentUUID": "73b53e58-266e-4441-93d6-05a8dfbfbb5e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Change the merchandise returns status should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToMerchandiseReturnsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8942c88c-e445-4872-bf95-6ad5ce84c77d", + "parentUUID": "73b53e58-266e-4441-93d6-05a8dfbfbb5e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Change the merchandise returns status should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkExistenceOfReturns2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkExistenceOfReturns\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82453a44-f631-4dd9-a446-58d267912e92", + "parentUUID": "73b53e58-266e-4441-93d6-05a8dfbfbb5e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Change the merchandise returns status should go to edit merchandise returns page", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToEditReturnsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f77806c-5bb6-45b5-afee-7f524dd2fdea", + "parentUUID": "73b53e58-266e-4441-93d6-05a8dfbfbb5e", + "isHook": false, + "skipped": false + }, + { + "title": "should edit merchandise returns status", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Change the merchandise returns status should edit merchandise returns status", + "timedOut": false, + "duration": 1118, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_editReturnStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bb657fb-c2b2-453a-b23b-95715da89797", + "parentUUID": "73b53e58-266e-4441-93d6-05a8dfbfbb5e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "13ebd4e0-db9d-45a1-afa1-6ac24dbac48b", + "8942c88c-e445-4872-bf95-6ad5ce84c77d", + "82453a44-f631-4dd9-a446-58d267912e92", + "3f77806c-5bb6-45b5-afee-7f524dd2fdea", + "3bb657fb-c2b2-453a-b23b-95715da89797" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6985, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60ab96fd-20f5-494d-acf5-f934268c06eb", + "title": "Check merchandise return details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Check merchandise return details should go to FO", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e3f653c8-ac74-4af2-9215-64edb754dac1", + "parentUUID": "60ab96fd-20f5-494d-acf5-f934268c06eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Check merchandise return details should go to account page", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToAccountPage5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index + 3), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9e15d71-f963-43c4-9f99-6f9f66cbd14e", + "parentUUID": "60ab96fd-20f5-494d-acf5-f934268c06eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Check merchandise return details should go to 'Merchandise Returns' page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToMerchandiseReturnPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToMerchandiseReturnsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44ad4352-8ba6-427f-ab19-22c92ed1ef6a", + "parentUUID": "60ab96fd-20f5-494d-acf5-f934268c06eb", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return status", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Check merchandise return details should verify the order return status", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkOrderReturnStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.be.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b8426a6-31f6-42cc-81f5-fdbc67cffca2", + "parentUUID": "60ab96fd-20f5-494d-acf5-f934268c06eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to return details page", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Check merchandise return details should go to return details page", + "timedOut": false, + "duration": 705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToReturnDetails2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToReturnDetails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goToReturnDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(returnDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8964e984-83ce-48ef-92a8-26c2ec2e150e", + "parentUUID": "60ab96fd-20f5-494d-acf5-f934268c06eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the alert warning is not visible", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Check merchandise return details should check that the alert warning is not visible", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnNotification2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnNotification\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.isAlertWarningVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f95c04d-9faa-4865-8084-e972eeda4302", + "parentUUID": "60ab96fd-20f5-494d-acf5-f934268c06eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return details", + "fullTitle": "FO - Account : Consult return details Case 4 : Check merchandise returns with the status Return denied Check merchandise return details should check the return details", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnDetails2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReturnInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnDetails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getOrderReturnInfo(page)];\n case 2:\n orderReturnInfo = _a.sent();\n (0, chai_1.expect)(orderReturnInfo)\n .to.contains(\"\".concat(fileName, \" on \").concat(orderDate, \" \").concat(returnDetails_1.default.orderReturnCardBlock))\n .and.to.contains(test.args.status)\n .and.to.contains(\"List of items to be returned: Product Quantity \".concat(products_1.default.demo_1.name, \" \")\n + \"(Size: S - Color: White) Reference: \".concat(products_1.default.demo_1.reference, \" 1\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a6caaaa-2dfd-43aa-9c92-be1d49a570a2", + "parentUUID": "60ab96fd-20f5-494d-acf5-f934268c06eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e3f653c8-ac74-4af2-9215-64edb754dac1", + "f9e15d71-f963-43c4-9f99-6f9f66cbd14e", + "44ad4352-8ba6-427f-ab19-22c92ed1ef6a", + "8b8426a6-31f6-42cc-81f5-fdbc67cffca2", + "8964e984-83ce-48ef-92a8-26c2ec2e150e", + "7f95c04d-9faa-4865-8084-e972eeda4302", + "4a6caaaa-2dfd-43aa-9c92-be1d49a570a2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3822, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4f3c6a00-c3e7-4097-be75-04ccc6ed67e0", + "title": "Case 5 : Check merchandise returns with the status Return completed", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "be185504-a2f7-4120-bd6d-44cd4ea5af1c", + "title": "Change the merchandise returns status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Change the merchandise returns status should go to BO", + "timedOut": false, + "duration": 627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToBO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7b09032-68f7-41fd-a604-284d42feb5ab", + "parentUUID": "be185504-a2f7-4120-bd6d-44cd4ea5af1c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Change the merchandise returns status should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3608, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToMerchandiseReturnsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6ed35b5-449c-4292-b733-11e682529172", + "parentUUID": "be185504-a2f7-4120-bd6d-44cd4ea5af1c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Change the merchandise returns status should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkExistenceOfReturns3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkExistenceOfReturns\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79015b77-5564-4b41-8c41-40cf25ca1fa8", + "parentUUID": "be185504-a2f7-4120-bd6d-44cd4ea5af1c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Change the merchandise returns status should go to edit merchandise returns page", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToEditReturnsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToEditReturnsPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89549b05-da2e-4ca3-8402-bdaf8a67c273", + "parentUUID": "be185504-a2f7-4120-bd6d-44cd4ea5af1c", + "isHook": false, + "skipped": false + }, + { + "title": "should edit merchandise returns status", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Change the merchandise returns status should edit merchandise returns status", + "timedOut": false, + "duration": 1131, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_editReturnStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, test.args.status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92949c41-6e45-4c4e-a0c7-92562a78e133", + "parentUUID": "be185504-a2f7-4120-bd6d-44cd4ea5af1c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e7b09032-68f7-41fd-a604-284d42feb5ab", + "c6ed35b5-449c-4292-b733-11e682529172", + "79015b77-5564-4b41-8c41-40cf25ca1fa8", + "89549b05-da2e-4ca3-8402-bdaf8a67c273", + "92949c41-6e45-4c4e-a0c7-92562a78e133" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7086, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "de34737f-3492-41d1-a32a-b515fd0c5c57", + "title": "Check merchandise return details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Check merchandise return details should go to FO", + "timedOut": false, + "duration": 1701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToFO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFO\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14a705a7-e95f-4f30-a210-4fdd7569ea89", + "parentUUID": "de34737f-3492-41d1-a32a-b515fd0c5c57", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Check merchandise return details should go to account page", + "timedOut": false, + "duration": 702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToAccountPage6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAccountPage\".concat(index + 3), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0db217c-185f-469b-a1f0-17f359b4f580", + "parentUUID": "de34737f-3492-41d1-a32a-b515fd0c5c57", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Check merchandise return details should go to 'Merchandise Returns' page", + "timedOut": false, + "duration": 693, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToMerchandiseReturnPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToMerchandiseReturnPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToMerchandiseReturnsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "082c579e-77f8-40e6-8853-a26ee28fdf89", + "parentUUID": "de34737f-3492-41d1-a32a-b515fd0c5c57", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return status", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Check merchandise return details should verify the order return status", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkOrderReturnStatus3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOrderReturnStatus\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.be.equal(test.args.status);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d92d8d20-af9f-4294-b74d-8d1046378526", + "parentUUID": "de34737f-3492-41d1-a32a-b515fd0c5c57", + "isHook": false, + "skipped": false + }, + { + "title": "should go to return details page", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Check merchandise return details should go to return details page", + "timedOut": false, + "duration": 714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_goToReturnDetails3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToReturnDetails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goToReturnDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(returnDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5e24435-f9dd-4fd5-9e98-d9e2055a2745", + "parentUUID": "de34737f-3492-41d1-a32a-b515fd0c5c57", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the alert warning is not visible", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Check merchandise return details should check that the alert warning is not visible", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnNotification3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnNotification\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.isAlertWarningVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e8fc961-5d51-4628-b281-5a091ba00ab3", + "parentUUID": "de34737f-3492-41d1-a32a-b515fd0c5c57", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return details", + "fullTitle": "FO - Account : Consult return details Case 5 : Check merchandise returns with the status Return completed Check merchandise return details should check the return details", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_checkReturnDetails3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReturnInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkReturnDetails\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getOrderReturnInfo(page)];\n case 2:\n orderReturnInfo = _a.sent();\n (0, chai_1.expect)(orderReturnInfo)\n .to.contains(\"\".concat(fileName, \" on \").concat(orderDate, \" \").concat(returnDetails_1.default.orderReturnCardBlock))\n .and.to.contains(test.args.status)\n .and.to.contains(\"List of items to be returned: Product Quantity \".concat(products_1.default.demo_1.name, \" \")\n + \"(Size: S - Color: White) Reference: \".concat(products_1.default.demo_1.reference, \" 1\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bcd471d-eeae-4ac9-8125-49f4c6bf583f", + "parentUUID": "de34737f-3492-41d1-a32a-b515fd0c5c57", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "14a705a7-e95f-4f30-a210-4fdd7569ea89", + "b0db217c-185f-469b-a1f0-17f359b4f580", + "082c579e-77f8-40e6-8853-a26ee28fdf89", + "d92d8d20-af9f-4294-b74d-8d1046378526", + "d5e24435-f9dd-4fd5-9e98-d9e2055a2745", + "4e8fc961-5d51-4628-b281-5a091ba00ab3", + "1bcd471d-eeae-4ac9-8125-49f4c6bf583f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3850, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "03979e48-49e6-4287-a40e-c86e1cbb34a6", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/01_consultReturnDetails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "FO - Account : Consult return details POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26284299-105c-4f0f-9791-a766ac6dc276", + "parentUUID": "03979e48-49e6-4287-a40e-c86e1cbb34a6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "FO - Account : Consult return details POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f6767734-f80d-4ac0-9dcb-21097ec12b78", + "parentUUID": "03979e48-49e6-4287-a40e-c86e1cbb34a6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Consult return details POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7d7c773-c66d-44de-8666-e66eaa42f636", + "parentUUID": "03979e48-49e6-4287-a40e-c86e1cbb34a6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Consult return details POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_postTest_1_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5828e66-23be-4fb3-be4c-a4f1524162b2", + "parentUUID": "03979e48-49e6-4287-a40e-c86e1cbb34a6", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "FO - Account : Consult return details POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_consultReturnDetails_postTest_1_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6e2b2a4-9a62-49d1-928b-6c6b08e2f73e", + "parentUUID": "03979e48-49e6-4287-a40e-c86e1cbb34a6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a7d7c773-c66d-44de-8666-e66eaa42f636", + "e5828e66-23be-4fb3-be4c-a4f1524162b2", + "e6e2b2a4-9a62-49d1-928b-6c6b08e2f73e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5624, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "28b4fc87-2514-4e27-bba8-0ab27801da0f", + "title": "FO - Account : Check order return PDF", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Account : Check order return PDF\"", + "fullTitle": "FO - Account : Check order return PDF \"before all\" hook in \"FO - Account : Check order return PDF\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0805b2a2-6685-4185-b7cb-02d078178555", + "parentUUID": "28b4fc87-2514-4e27-bba8-0ab27801da0f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Account : Check order return PDF\"", + "fullTitle": "FO - Account : Check order return PDF \"after all\" hook in \"FO - Account : Check order return PDF\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6958ad76-8bdd-446e-be87-4550bb87cfc5", + "parentUUID": "28b4fc87-2514-4e27-bba8-0ab27801da0f", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9af66be-924c-4095-8ea0-e2593406069b", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "10d597e7-86fe-4b1d-ba4e-eb39bcaa3818", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5dab279-2a2e-48c1-83e3-4f684093c267", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51fcb3b0-3b5e-43f8-95a2-bce92f69df84", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 505, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e13732fe-7f5d-47af-849b-36e685ba8e01", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 6993, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09e9de1b-062c-480d-882c-9210a973182f", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dc1aed9-d720-4ff0-8b11-3d72e8fbbd4c", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dd93f35-51d8-422e-9841-e3e70bd4b21d", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1511, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a783e57-e4ad-4f84-9a37-b4ab7830b562", + "parentUUID": "b21a13b8-6de4-4b3a-908f-0c1c37a6cf64", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f5dab279-2a2e-48c1-83e3-4f684093c267", + "51fcb3b0-3b5e-43f8-95a2-bce92f69df84", + "e13732fe-7f5d-47af-849b-36e685ba8e01", + "09e9de1b-062c-480d-882c-9210a973182f", + "3dc1aed9-d720-4ff0-8b11-3d72e8fbbd4c", + "4dd93f35-51d8-422e-9841-e3e70bd4b21d", + "4a783e57-e4ad-4f84-9a37-b4ab7830b562" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12718, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d8072929-9404-4b04-acbf-222803415a32", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "594879cd-64ed-4c76-b49f-2040ecd866e0", + "parentUUID": "d8072929-9404-4b04-acbf-222803415a32", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9fe1f84c-ebb8-495b-9ec2-392b4b4ff344", + "parentUUID": "d8072929-9404-4b04-acbf-222803415a32", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4076c396-6b15-4487-a15e-2df3b2d5e02a", + "parentUUID": "d8072929-9404-4b04-acbf-222803415a32", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4597, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_2_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8687f75-4f5e-47d3-bba0-39f14fbc5bda", + "parentUUID": "d8072929-9404-4b04-acbf-222803415a32", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "FO - Account : Check order return PDF PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 303, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_preTest_2_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d2b7770-1ff7-4eb6-8209-d672c66bdb86", + "parentUUID": "d8072929-9404-4b04-acbf-222803415a32", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4076c396-6b15-4487-a15e-2df3b2d5e02a", + "a8687f75-4f5e-47d3-bba0-39f14fbc5bda", + "9d2b7770-1ff7-4eb6-8209-d672c66bdb86" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6620, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "title": "Change the created orders status to 'Shipped'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should login in BO", + "timedOut": false, + "duration": 1821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "287b84bc-11d1-41be-ad4b-ea480d560752", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9280aef5-3c22-44ce-ad67-a52ca81f1f4a", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by the default customer and check the result", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should filter the Orders table by the default customer and check the result", + "timedOut": false, + "duration": 2432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_filterOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', customers_1.default.johnDoe.lastName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(customers_1.default.johnDoe.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44aa2885-cade-489b-b6be-6329fcf88610", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should get the order ID", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should get the order ID", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_getOrderID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getOrderIDNumber(page)];\n case 2:\n orderID = _a.sent();\n (0, chai_1.expect)(orderID).to.not.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "478432fe-dc34-4e4e-a9d5-6464a18049de", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should get the created Order reference", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should get the created Order reference", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_getOrderReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 1)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5a08039-39cb-40ae-aaf7-c6598bebcb17", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should get the created Order date", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should get the created Order date", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_getOrderDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderDate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'date_add', 1)];\n case 2:\n orderDate = _a.sent();\n orderDate = orderDate.substring(0, 10);\n (0, chai_1.expect)(orderDate).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d874ecb1-ddd1-40d0-ae25-5c2b801562d0", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should go to the first order page", + "timedOut": false, + "duration": 930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a15636b1-b478-4fd1-ae1c-5cf25eb12317", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Shipped' and check it", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should change the order status to 'Shipped' and check it", + "timedOut": false, + "duration": 1276, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.modifyOrderStatus(page, orderStatuses_1.default.shipped.name)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orderStatuses_1.default.shipped.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7868f40c-f32b-48d9-aa47-1f6ea11bee78", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3eecfd8-3cae-45a2-92bf-c4f441cf8f96", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Account : Check order return PDF Change the created orders status to 'Shipped' should reset all filters", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_resetAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "497290ef-b2e6-41ea-9623-cc3ecb4b32cd", + "parentUUID": "c7e021d3-d57c-4fef-8c30-af7dac6236f2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "287b84bc-11d1-41be-ad4b-ea480d560752", + "9280aef5-3c22-44ce-ad67-a52ca81f1f4a", + "44aa2885-cade-489b-b6be-6329fcf88610", + "478432fe-dc34-4e4e-a9d5-6464a18049de", + "d5a08039-39cb-40ae-aaf7-c6598bebcb17", + "d874ecb1-ddd1-40d0-ae25-5c2b801562d0", + "a15636b1-b478-4fd1-ae1c-5cf25eb12317", + "7868f40c-f32b-48d9-aa47-1f6ea11bee78", + "d3eecfd8-3cae-45a2-92bf-c4f441cf8f96", + "497290ef-b2e6-41ea-9623-cc3ecb4b32cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15102, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a2ba5a89-10b7-42a7-bb6e-097f0c341429", + "title": "Create merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Account : Check order return PDF Create merchandise returns should go to FO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af7bf60b-147a-4cf3-830c-34e6d57fa6a2", + "parentUUID": "a2ba5a89-10b7-42a7-bb6e-097f0c341429", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "FO - Account : Check order return PDF Create merchandise returns should login", + "timedOut": false, + "duration": 1216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_logonFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logonFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d74ed0fe-a019-4320-ab14-c23ca400276b", + "parentUUID": "a2ba5a89-10b7-42a7-bb6e-097f0c341429", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account : Check order return PDF Create merchandise returns should go to my account page", + "timedOut": false, + "duration": 697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToAccountPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0ab5980-0a19-4c57-a866-64514cddebbe", + "parentUUID": "a2ba5a89-10b7-42a7-bb6e-097f0c341429", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "FO - Account : Check order return PDF Create merchandise returns should go to 'Order history and details' page", + "timedOut": false, + "duration": 725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33524c84-1301-497c-9c25-b34b1f9af392", + "parentUUID": "a2ba5a89-10b7-42a7-bb6e-097f0c341429", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "FO - Account : Check order return PDF Create merchandise returns should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_isOrderReturnFormVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc6b42ed-09e7-42ec-b834-408a6b4749b4", + "parentUUID": "a2ba5a89-10b7-42a7-bb6e-097f0c341429", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "FO - Account : Check order return PDF Create merchandise returns should create a merchandise return", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'message test')];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b999efb6-ebd3-4695-bb9e-9d86cfbed0f2", + "parentUUID": "a2ba5a89-10b7-42a7-bb6e-097f0c341429", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "af7bf60b-147a-4cf3-830c-34e6d57fa6a2", + "d74ed0fe-a019-4320-ab14-c23ca400276b", + "d0ab5980-0a19-4c57-a866-64514cddebbe", + "33524c84-1301-497c-9c25-b34b1f9af392", + "cc6b42ed-09e7-42ec-b834-408a6b4749b4", + "b999efb6-ebd3-4695-bb9e-9d86cfbed0f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5933, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7e63b628-f8dd-4baf-8d21-c41f4194dac2", + "title": "Check merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should verify the Order reference", + "fullTitle": "FO - Account : Check order return PDF Check merchandise returns should verify the Order reference", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkOrderReturnReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'orderReference')];\n case 2:\n packageStatus = _a.sent();\n (0, chai_1.expect)(packageStatus).to.equal(orderReference);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4418c76-0576-4643-89ca-57a03d181f4b", + "parentUUID": "7e63b628-f8dd-4baf-8d21-c41f4194dac2", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the Order return file name", + "fullTitle": "FO - Account : Check order return PDF Check merchandise returns should verify the Order return file name", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkOrderReturnFileName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnFileName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'fileName')];\n case 2:\n packageStatus = _a.sent();\n (0, chai_1.expect)(packageStatus).to.contains('#RE00');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "386650a7-3b88-45e6-be7b-069f46bed496", + "parentUUID": "7e63b628-f8dd-4baf-8d21-c41f4194dac2", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return status", + "fullTitle": "FO - Account : Check order return PDF Check merchandise returns should verify the order return status", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkOrderReturnStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n packageStatus = _a.sent();\n (0, chai_1.expect)(packageStatus).to.equal(orderReturnStatuses_1.default.waitingForConfirmation.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34334ced-7545-4e67-abc8-9ea21d6243f0", + "parentUUID": "7e63b628-f8dd-4baf-8d21-c41f4194dac2", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return date issued", + "fullTitle": "FO - Account : Check order return PDF Check merchandise returns should verify the order return date issued", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkOrderReturnDateIssued\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var packageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnDateIssued', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'dateIssued')];\n case 2:\n packageStatus = _a.sent();\n (0, chai_1.expect)(packageStatus).to.equal(orderDate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a7d2c63-d12a-4627-bdd5-de34b18eece7", + "parentUUID": "7e63b628-f8dd-4baf-8d21-c41f4194dac2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to return details page", + "fullTitle": "FO - Account : Check order return PDF Check merchandise returns should go to return details page", + "timedOut": false, + "duration": 702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToReturnDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToReturnDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goToReturnDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(returnDetails_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba2bf3a4-e8b7-4c5c-933c-acde21c73d4b", + "parentUUID": "7e63b628-f8dd-4baf-8d21-c41f4194dac2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return notification", + "fullTitle": "FO - Account : Check order return PDF Check merchandise returns should check the return notification", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkReturnNotification\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReturnNotifications;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnNotification', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getAlertWarning(page)];\n case 2:\n orderReturnNotifications = _a.sent();\n (0, chai_1.expect)(orderReturnNotifications).to.equal(returnDetails_1.default.errorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "102936ec-1f7a-4e43-89e3-06f7344c7382", + "parentUUID": "7e63b628-f8dd-4baf-8d21-c41f4194dac2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the return details", + "fullTitle": "FO - Account : Check order return PDF Check merchandise returns should check the return details", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkReturnDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderReturnInfo;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, returnDetails_1.default.getOrderReturnInfo(page)];\n case 2:\n orderReturnInfo = _a.sent();\n (0, chai_1.expect)(orderReturnInfo)\n .to.contains(\"on \".concat(orderDate, \" \").concat(returnDetails_1.default.orderReturnCardBlock))\n .and.to.contains(orderReturnStatuses_1.default.waitingForConfirmation.name)\n .and.to.contains(\"List of items to be returned: Product Quantity \".concat(products_1.default.demo_1.name, \" \")\n + \"(Size: S - Color: White) Reference: \".concat(products_1.default.demo_1.reference, \" 1\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "329635cd-8877-400a-8616-20658e9b76c5", + "parentUUID": "7e63b628-f8dd-4baf-8d21-c41f4194dac2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4418c76-0576-4643-89ca-57a03d181f4b", + "386650a7-3b88-45e6-be7b-069f46bed496", + "34334ced-7545-4e67-abc8-9ea21d6243f0", + "8a7d2c63-d12a-4627-bdd5-de34b18eece7", + "ba2bf3a4-e8b7-4c5c-933c-acde21c73d4b", + "102936ec-1f7a-4e43-89e3-06f7344c7382", + "329635cd-8877-400a-8616-20658e9b76c5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 755, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "49a1a1d2-9600-4ba3-b841-e8c5b2ac058b", + "title": "Check the return details PDF", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "5de8e41f-34a6-4ea7-a429-f37123adeb59", + "title": "Change the merchandise returns status to 'Waiting for package'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Change the merchandise returns status to 'Waiting for package' should go to BO", + "timedOut": false, + "duration": 465, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "667afbb5-8eb1-4df3-88ae-8ac93034f0be", + "parentUUID": "5de8e41f-34a6-4ea7-a429-f37123adeb59", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Change the merchandise returns status to 'Waiting for package' should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3617, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96752948-c9a2-493f-b9a3-f824bf648c17", + "parentUUID": "5de8e41f-34a6-4ea7-a429-f37123adeb59", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the merchandise returns in the table", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Change the merchandise returns status to 'Waiting for package' should check the existence of the merchandise returns in the table", + "timedOut": false, + "duration": 884, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkExistenceOfReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkExistenceOfReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.filterMerchandiseReturnsTable(page, 'a!id_order', orderID.toString())];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order')];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "808021b5-aec8-4976-8147-73506b0dd4bb", + "parentUUID": "5de8e41f-34a6-4ea7-a429-f37123adeb59", + "isHook": false, + "skipped": false + }, + { + "title": "should get the return ID", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Change the merchandise returns status to 'Waiting for package' should get the return ID", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_getReturnID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var idReturn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getReturnID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getTextColumnFromMerchandiseReturnsTable(page, 'id_order_return')];\n case 2:\n idReturn = _a.sent();\n (0, chai_1.expect)(parseInt(idReturn, 10)).to.be.above(0);\n if (parseInt(idReturn, 10) >= 10) {\n fileName += idReturn;\n }\n else\n fileName += \"0\".concat(idReturn);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "674b98f1-1e79-4360-8e1c-6bb2beddb85d", + "parentUUID": "5de8e41f-34a6-4ea7-a429-f37123adeb59", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit merchandise returns page", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Change the merchandise returns status to 'Waiting for package' should go to edit merchandise returns page", + "timedOut": false, + "duration": 852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToEditReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.goToMerchandiseReturnPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, edit_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(edit_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48c65f81-2167-43ae-9045-40add353ea2e", + "parentUUID": "5de8e41f-34a6-4ea7-a429-f37123adeb59", + "isHook": false, + "skipped": false + }, + { + "title": "should edit merchandise returns status", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Change the merchandise returns status to 'Waiting for package' should edit merchandise returns status", + "timedOut": false, + "duration": 1111, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_editReturnStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editReturnStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.setStatus(page, orderReturnStatuses_1.default.waitingForPackage.name)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(edit_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2c54acb-e273-47e2-b9d8-b13f5a507ad8", + "parentUUID": "5de8e41f-34a6-4ea7-a429-f37123adeb59", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "667afbb5-8eb1-4df3-88ae-8ac93034f0be", + "96752948-c9a2-493f-b9a3-f824bf648c17", + "808021b5-aec8-4976-8147-73506b0dd4bb", + "674b98f1-1e79-4360-8e1c-6bb2beddb85d", + "48c65f81-2167-43ae-9045-40add353ea2e", + "e2c54acb-e273-47e2-b9d8-b13f5a507ad8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6936, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4bee9049-84c0-441b-a907-62dffb281650", + "title": "Check merchandise return PDF", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should go to FO", + "timedOut": false, + "duration": 1695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, edit_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f92c4cb6-160e-451d-bbfb-4292f9afd6b2", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + }, + { + "title": "should go to account page", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should go to account page", + "timedOut": false, + "duration": 702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f9795a2-beea-43a5-a021-ca627491ec0d", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Merchandise Returns' page", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should go to 'Merchandise Returns' page", + "timedOut": false, + "duration": 696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_goToMerchandiseReturnPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToMerchandiseReturnsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_3.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40a67a10-428e-436b-95e9-61a45f341edb", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + }, + { + "title": "should verify the order return status", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should verify the order return status", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkOrderReturnStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReturnStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.getTextColumn(page, 'status')];\n case 2:\n fileName = _a.sent();\n (0, chai_1.expect)(fileName).to.be.equal(orderReturnStatuses_1.default.waitingForPackage.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6823dda9-64de-452d-a688-363d7836800e", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + }, + { + "title": "should download the return form", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should download the return form", + "timedOut": false, + "duration": 237, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_downloadReturnForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadReturnForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_3.default.downloadReturnForm(page, 1)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n found = _a.sent();\n (0, chai_1.expect)(found, 'PDF file was not downloaded').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56321a26-a660-4bfd-9e40-cd4cc501179a", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + }, + { + "title": "should check the PDF Header ", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should check the PDF Header ", + "timedOut": false, + "duration": 305, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkReturnFileName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnFileName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"ORDER RETURN,,\".concat(today, \",,\").concat(fileName, \",,\"))];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'The order return file name is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51ff8259-6d82-4cc0-8cf1-2ddf1d000d75", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + }, + { + "title": "should check the Billing & delivery address", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should check the Billing & delivery address", + "timedOut": false, + "duration": 258, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkBillingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBillingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, \"Billing & Delivery Address,,\".concat(customers_1.default.johnDoe.firstName)\n + \" \".concat(customers_1.default.johnDoe.lastName, \",\").concat(address_1.default.second.company, \",\").concat(address_1.default.second.address, \",\")\n + \"\".concat(address_1.default.second.secondAddress, \",\").concat(address_1.default.second.postalCode, \" \").concat(address_1.default.second.city)\n + \",\".concat(address_1.default.second.country, \",\").concat(address_1.default.second.phone, \",,\"))];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Billing and delivery address are not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c422e9a9-216f-40c3-8cba-76f070cc6008", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of returned days", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should check the number of returned days", + "timedOut": false, + "duration": 322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkReturnedDays\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnedDays', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'We have logged your return request.,Your package must '\n + 'be returned to us within 14 days of receiving your order.')];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'returned days number is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5399c9f7-f224-4627-a394-519853e64664", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + }, + { + "title": "should check the returned product", + "fullTitle": "FO - Account : Check order return PDF Check the return details PDF Check merchandise return PDF should check the returned product", + "timedOut": false, + "duration": 234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_checkReturnedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkReturnedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.isTextInPDF(filePath, 'Items to be returned, ,Reference, ,Qty,,'\n + \"\".concat(products_1.default.demo_1.name, \" (Size: S - Color: White), ,\").concat(products_1.default.demo_1.reference, \", ,1\"))];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'returned product list is not correct!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71f2385c-2677-414f-a880-caf375db69e8", + "parentUUID": "4bee9049-84c0-441b-a907-62dffb281650", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f92c4cb6-160e-451d-bbfb-4292f9afd6b2", + "5f9795a2-beea-43a5-a021-ca627491ec0d", + "40a67a10-428e-436b-95e9-61a45f341edb", + "6823dda9-64de-452d-a688-363d7836800e", + "56321a26-a660-4bfd-9e40-cd4cc501179a", + "51ff8259-6d82-4cc0-8cf1-2ddf1d000d75", + "c422e9a9-216f-40c3-8cba-76f070cc6008", + "5399c9f7-f224-4627-a394-519853e64664", + "71f2385c-2677-414f-a880-caf375db69e8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4471, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dd6f935c-8510-45fa-8dd5-240e0bb2fd23", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "file": "/campaigns/functional/FO/classic/03_userAccount/merchandiseReturns/02_checkOrderReturnPDF.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "FO - Account : Check order return PDF POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9cc524a-887c-4f50-bfa8-e76480d6a887", + "parentUUID": "dd6f935c-8510-45fa-8dd5-240e0bb2fd23", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "FO - Account : Check order return PDF POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5c5e3dec-7a99-41c0-8aa9-2e133e19224c", + "parentUUID": "dd6f935c-8510-45fa-8dd5-240e0bb2fd23", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Check order return PDF POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae4d3ba9-6d7c-4c4b-86ee-96e451078674", + "parentUUID": "dd6f935c-8510-45fa-8dd5-240e0bb2fd23", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "FO - Account : Check order return PDF POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3604, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_postTest_1_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5d7709c-88f0-40fa-8dbd-40382f15e7d1", + "parentUUID": "dd6f935c-8510-45fa-8dd5-240e0bb2fd23", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "FO - Account : Check order return PDF POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_userAccount_merchandiseReturns_checkOrderReturnPDF_postTest_1_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62eafdc2-2712-44bc-9d8c-96dd0cf72acc", + "parentUUID": "dd6f935c-8510-45fa-8dd5-240e0bb2fd23", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ae4d3ba9-6d7c-4c4b-86ee-96e451078674", + "a5d7709c-88f0-40fa-8dbd-40382f15e7d1", + "62eafdc2-2712-44bc-9d8c-96dd0cf72acc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5623, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "a01a5b9d-7c96-4f9b-a77a-976453fefa20", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 380, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2784a355-08c5-4564-869d-4f976f19d570", + "parentUUID": "a01a5b9d-7c96-4f9b-a77a-976453fefa20", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 25, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26536f9a-5825-4f07-8da6-8ae1d2dc008f", + "parentUUID": "a01a5b9d-7c96-4f9b-a77a-976453fefa20", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f59d7f31-0231-418d-a026-48f88c3a18eb", + "parentUUID": "a01a5b9d-7c96-4f9b-a77a-976453fefa20", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "7a8c302a-488f-42f2-9f1a-770a2a0dc279", + "title": "FO - Newsletter : Subscribe to Newsletter", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "file": "/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Newsletter : Subscribe to Newsletter\"", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter \"before all\" hook in \"FO - Newsletter : Subscribe to Newsletter\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "caf5fac2-afc3-4dad-b6d1-5975807f92b7", + "parentUUID": "7a8c302a-488f-42f2-9f1a-770a2a0dc279", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Newsletter : Subscribe to Newsletter\"", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter \"after all\" hook in \"FO - Newsletter : Subscribe to Newsletter\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f783133d-52c2-45bb-8f84-a304280d8874", + "parentUUID": "7a8c302a-488f-42f2-9f1a-770a2a0dc279", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "405433d2-9db2-47ba-b27e-e701f6e4c984", + "title": "Go to FO and try to subscribe with already used email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "file": "/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to FO and try to subscribe with already used email should open the shop page", + "timedOut": false, + "duration": 525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_openFoShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFoShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de670512-2785-4d79-b8e7-e1c13929dc9b", + "parentUUID": "405433d2-9db2-47ba-b27e-e701f6e4c984", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter with already used email", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to FO and try to subscribe with already used email should subscribe to newsletter with already used email", + "timedOut": false, + "duration": 194, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_subscribeWithAlreadyUsedEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeWithAlreadyUsedEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, customers_1.default.johnDoe.email)];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains(home_1.homePage.alreadyUsedEmailMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ed727ee-de40-4c54-b571-415fdb4a0003", + "parentUUID": "405433d2-9db2-47ba-b27e-e701f6e4c984", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "de670512-2785-4d79-b8e7-e1c13929dc9b", + "9ed727ee-de40-4c54-b571-415fdb4a0003" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 719, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a8f695c3-378b-4985-ab71-45029e6b1217", + "title": "Go to FO customer account to unsubscribe newsletter", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "file": "/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to login page", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to FO customer account to unsubscribe newsletter should go to login page", + "timedOut": false, + "duration": 744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_goToFOLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20244d1c-6e8b-4e62-81cb-add005256dbe", + "parentUUID": "a8f695c3-378b-4985-ab71-45029e6b1217", + "isHook": false, + "skipped": false + }, + { + "title": "Should sign in FO", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to FO customer account to unsubscribe newsletter Should sign in FO", + "timedOut": false, + "duration": 682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16266ca4-14bc-4e6f-8023-98f732026b36", + "parentUUID": "a8f695c3-378b-4985-ab71-45029e6b1217", + "isHook": false, + "skipped": false + }, + { + "title": "should go account information page", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to FO customer account to unsubscribe newsletter should go account information page", + "timedOut": false, + "duration": 1434, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_goToAccountInformationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountInformationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToInformationPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, identity_1.accountIdentityPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(identity_1.accountIdentityPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "788aed6f-6e1d-490c-aee2-9483a7c06420", + "parentUUID": "a8f695c3-378b-4985-ab71-45029e6b1217", + "isHook": false, + "skipped": false + }, + { + "title": "should unsubscribe from newsletter", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to FO customer account to unsubscribe newsletter should unsubscribe from newsletter", + "timedOut": false, + "duration": 649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_unsubscribeFromNewsLetter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var unsubscribeAlertText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'unsubscribeFromNewsLetter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.accountIdentityPage.unsubscribeNewsletter(page, customers_1.default.johnDoe.password)];\n case 2:\n unsubscribeAlertText = _a.sent();\n (0, chai_1.expect)(unsubscribeAlertText).to.contains(identity_1.accountIdentityPage.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "408aed2d-784e-46d5-891b-12fcea789bfa", + "parentUUID": "a8f695c3-378b-4985-ab71-45029e6b1217", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "20244d1c-6e8b-4e62-81cb-add005256dbe", + "16266ca4-14bc-4e6f-8023-98f732026b36", + "788aed6f-6e1d-490c-aee2-9483a7c06420", + "408aed2d-784e-46d5-891b-12fcea789bfa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3509, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "580c3024-3e8b-4503-8f12-9be899efa02d", + "title": "Go to BO to check if correctly unsubscribed", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "file": "/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly unsubscribed should login in BO", + "timedOut": false, + "duration": 6366, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2f34af6-2524-4926-a0c2-302234f59c7a", + "parentUUID": "580c3024-3e8b-4503-8f12-9be899efa02d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to module manager page", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly unsubscribed should go to module manager page", + "timedOut": false, + "duration": 6501, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f09fda6-8bd7-4931-9020-7fd4b60be167", + "parentUUID": "580c3024-3e8b-4503-8f12-9be899efa02d", + "isHook": false, + "skipped": false + }, + { + "title": "should search for module Newsletter subscription", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly unsubscribed should search for module Newsletter subscription", + "timedOut": false, + "duration": 662, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_searchForModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, moduleInformation)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "641ea56f-5d59-4382-94ca-ddb247df8b28", + "parentUUID": "580c3024-3e8b-4503-8f12-9be899efa02d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to newsletter subscription module configuration page", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly unsubscribed should go to newsletter subscription module configuration page", + "timedOut": false, + "duration": 2186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_goToNewsletterModuleConfigPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var moduleConfigurationPageSubtitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewsletterModuleConfigPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, moduleInformation)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, moduleInformation.tag)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleConfiguration_1.moduleConfigurationPage.getPageSubtitle(page)];\n case 4:\n moduleConfigurationPageSubtitle = _a.sent();\n (0, chai_1.expect)(moduleConfigurationPageSubtitle).to.contains(moduleInformation.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2bbd45a-66ee-4b4d-82fb-4b270b25d4a5", + "parentUUID": "580c3024-3e8b-4503-8f12-9be899efa02d", + "isHook": false, + "skipped": false + }, + { + "title": "should check if user is unsubscribed from newsletter", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly unsubscribed should check if user is unsubscribed from newsletter", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_checkThatEmailIsNotInTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var subscribedUserList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatEmailIsNotInTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getListOfNewsletterRegistrationEmails(page)];\n case 2:\n subscribedUserList = _a.sent();\n (0, chai_1.expect)(subscribedUserList).to.not.contains(customers_1.default.johnDoe.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54b2eb66-fab6-4bae-8d0d-d68bc6133ef5", + "parentUUID": "580c3024-3e8b-4503-8f12-9be899efa02d", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly unsubscribed should logout from BO", + "timedOut": false, + "duration": 1687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5a3e166-e243-41a5-9ef0-f0f7c6030a0a", + "parentUUID": "580c3024-3e8b-4503-8f12-9be899efa02d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a2f34af6-2524-4926-a0c2-302234f59c7a", + "7f09fda6-8bd7-4931-9020-7fd4b60be167", + "641ea56f-5d59-4382-94ca-ddb247df8b28", + "b2bbd45a-66ee-4b4d-82fb-4b270b25d4a5", + "54b2eb66-fab6-4bae-8d0d-d68bc6133ef5", + "a5a3e166-e243-41a5-9ef0-f0f7c6030a0a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17425, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "157f8650-c3f2-4a45-a7f5-b866e8e3ded5", + "title": "Go to FO to subscribe to the newsletter", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "file": "/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to FO to subscribe to the newsletter should open the shop page", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_goToFOToSubscribeToNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOToSubscribeToNewsletter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27cfa58c-9277-463e-98a2-b62543e7578d", + "parentUUID": "157f8650-c3f2-4a45-a7f5-b866e8e3ded5", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to FO to subscribe to the newsletter should subscribe to newsletter", + "timedOut": false, + "duration": 151, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_subscribeToNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeToNewsletter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, customers_1.default.johnDoe.email)];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains(home_1.homePage.successSubscriptionMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc89b332-6a4d-4127-84cf-4f0ce8272a23", + "parentUUID": "157f8650-c3f2-4a45-a7f5-b866e8e3ded5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "27cfa58c-9277-463e-98a2-b62543e7578d", + "dc89b332-6a4d-4127-84cf-4f0ce8272a23" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 390, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1a23e2d6-1c17-4951-afc6-b9e102d05cf9", + "title": "Go to BO to check if correctly subscribed", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "file": "/campaigns/functional/FO/classic/04_newsletter/01_subscribeNewsletter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly subscribed should login in BO", + "timedOut": false, + "duration": 1467, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f0bacd5-da5b-4184-ae08-e31afe882413", + "parentUUID": "1a23e2d6-1c17-4951-afc6-b9e102d05cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to module manager page", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly subscribed should go to module manager page", + "timedOut": false, + "duration": 4870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_goToBOToCheckIfSubscribed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBOToCheckIfSubscribed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3553e4e-0fed-4ae8-88dc-dd5b2034286b", + "parentUUID": "1a23e2d6-1c17-4951-afc6-b9e102d05cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to newsletter subscription module configuration page", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly subscribed should go to newsletter subscription module configuration page", + "timedOut": false, + "duration": 2049, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_goBackToNewsletterModuleConfig\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var moduleConfigurationPageSubtitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToNewsletterModuleConfig', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, moduleInformation)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, moduleInformation.tag)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleConfiguration_1.moduleConfigurationPage.getPageSubtitle(page)];\n case 4:\n moduleConfigurationPageSubtitle = _a.sent();\n (0, chai_1.expect)(moduleConfigurationPageSubtitle).to.contains(moduleInformation.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "407b9ca4-fed9-4106-98ff-86038ff512b9", + "parentUUID": "1a23e2d6-1c17-4951-afc6-b9e102d05cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should check if previous customer subscription is visible in table", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly subscribed should check if previous customer subscription is visible in table", + "timedOut": false, + "duration": 1014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_newsletter_subscribeNewsletter_checkIfSubscriptionIsInTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var subscribedUserList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfSubscriptionIsInTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getListOfNewsletterRegistrationEmails(page)];\n case 2:\n subscribedUserList = _a.sent();\n (0, chai_1.expect)(subscribedUserList).to.contains(customers_1.default.johnDoe.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01de7533-bdf0-47f1-84a7-ff813b26a01f", + "parentUUID": "1a23e2d6-1c17-4951-afc6-b9e102d05cf9", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "FO - Newsletter : Subscribe to Newsletter Go to BO to check if correctly subscribed should logout from BO", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01056451-7d42-498f-9b59-d49a43de7e17", + "parentUUID": "1a23e2d6-1c17-4951-afc6-b9e102d05cf9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3f0bacd5-da5b-4184-ae08-e31afe882413", + "c3553e4e-0fed-4ae8-88dc-dd5b2034286b", + "407b9ca4-fed9-4106-98ff-86038ff512b9", + "01de7533-bdf0-47f1-84a7-ff813b26a01f", + "01056451-7d42-498f-9b59-d49a43de7e17" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11065, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "30bef29a-9c9d-42e7-a4ab-169c9e24d5eb", + "title": "FO - Contact us : Check mail link on contact us page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/01_checkMailtoLink.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/01_checkMailtoLink.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Contact us : Check mail link on contact us page\"", + "fullTitle": "FO - Contact us : Check mail link on contact us page \"before all\" hook in \"FO - Contact us : Check mail link on contact us page\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99500d6b-ff5d-4018-bbff-e6864ac91696", + "parentUUID": "30bef29a-9c9d-42e7-a4ab-169c9e24d5eb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Contact us : Check mail link on contact us page\"", + "fullTitle": "FO - Contact us : Check mail link on contact us page \"after all\" hook in \"FO - Contact us : Check mail link on contact us page\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9aa384e6-9c15-47bf-8bba-5b53dd0a2506", + "parentUUID": "30bef29a-9c9d-42e7-a4ab-169c9e24d5eb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Contact us : Check mail link on contact us page should go to FO home page", + "timedOut": false, + "duration": 448, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_checkMailtoLink_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23412425-5082-4607-a871-4f49146281e6", + "parentUUID": "30bef29a-9c9d-42e7-a4ab-169c9e24d5eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Contact us' page", + "fullTitle": "FO - Contact us : Check mail link on contact us page should go to 'Contact us' page", + "timedOut": false, + "duration": 743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_checkMailtoLink_goToContactUsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContactUsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Contact us')];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c84efc34-6ded-47eb-a824-6809ee4b5079", + "parentUUID": "30bef29a-9c9d-42e7-a4ab-169c9e24d5eb", + "isHook": false, + "skipped": false + }, + { + "title": "should check email us link", + "fullTitle": "FO - Contact us : Check mail link on contact us page should check email us link", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_checkMailtoLink_checkEmailUsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var emailUsLinkHref;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmailUsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getEmailUsLink(page)];\n case 2:\n emailUsLinkHref = _a.sent();\n (0, chai_1.expect)(emailUsLinkHref).to.equal(\"mailto:\".concat(employees_1.default.DefaultEmployee.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a4308b2-dcf2-400e-8482-2f9b01b5144a", + "parentUUID": "30bef29a-9c9d-42e7-a4ab-169c9e24d5eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "23412425-5082-4607-a871-4f49146281e6", + "c84efc34-6ded-47eb-a824-6809ee4b5079", + "6a4308b2-dcf2-400e-8482-2f9b01b5144a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1204, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "783340a7-8909-4ab6-b2d9-dfc24b65f831", + "title": "FO - Contact us : Send message from contact us page with customer logged in", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Contact us : Send message from contact us page with customer logged in\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in \"before all\" hook in \"FO - Contact us : Send message from contact us page with customer logged in\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(contactUsData.fileName, \".txt\"), 'new filename')];\n case 3:\n _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb78401f-a2c9-408a-9824-af64d15124c2", + "parentUUID": "783340a7-8909-4ab6-b2d9-dfc24b65f831", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Contact us : Send message from contact us page with customer logged in\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in \"after all\" hook in \"FO - Contact us : Send message from contact us page with customer logged in\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".txt\"))];\n case 2:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0d4c5148-ac2d-4ddd-a664-c395838c635f", + "parentUUID": "783340a7-8909-4ab6-b2d9-dfc24b65f831", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "acd87fdd-0012-49a2-bf98-e9d44ea5027e", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d07b5e1a-fac9-44bf-b077-226088062b7c", + "parentUUID": "acd87fdd-0012-49a2-bf98-e9d44ea5027e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d77a3d58-a2fa-4ace-ae49-1ab798c3dbc4", + "parentUUID": "acd87fdd-0012-49a2-bf98-e9d44ea5027e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d21e3652-bd9c-4326-b24b-b792350962bc", + "parentUUID": "acd87fdd-0012-49a2-bf98-e9d44ea5027e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 5214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42d17557-29ce-4ff3-9687-6fd0643d334f", + "parentUUID": "acd87fdd-0012-49a2-bf98-e9d44ea5027e", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69b542cf-987d-4587-9b34-d496e9a7f903", + "parentUUID": "acd87fdd-0012-49a2-bf98-e9d44ea5027e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d21e3652-bd9c-4326-b24b-b792350962bc", + "42d17557-29ce-4ff3-9687-6fd0643d334f", + "69b542cf-987d-4587-9b34-d496e9a7f903" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7618, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "274d1ff2-bec9-4220-ad32-6ec95912d6cf", + "title": "PRE-TEST: Configure Contact form module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Configure Contact form module should login in BO", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04f9ec2f-384e-4bde-9452-7ac6b1518ca1", + "parentUUID": "274d1ff2-bec9-4220-ad32-6ec95912d6cf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Configure Contact form module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5201, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56fe0888-e7a2-4b92-abb3-92ecdddbef7a", + "parentUUID": "274d1ff2-bec9-4220-ad32-6ec95912d6cf", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Contact form", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Configure Contact form module should search the module Contact form", + "timedOut": false, + "duration": 641, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.contactForm)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5278910c-700d-4e14-83b9-506d19c8135d", + "parentUUID": "274d1ff2-bec9-4220-ad32-6ec95912d6cf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Contact form'", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Configure Contact form module should go to the configuration page of the module 'Contact form'", + "timedOut": false, + "duration": 1379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.contactForm.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactForm_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "697b3874-daf8-4824-86ef-2eaf8d03e51f", + "parentUUID": "274d1ff2-bec9-4220-ad32-6ec95912d6cf", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Send confirmation email to your customers", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Configure Contact form module should enable Send confirmation email to your customers", + "timedOut": false, + "duration": 948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_enableSendConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableSendConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.setSendConfirmationEmail(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(contactForm_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "849d4624-7dd2-4c90-9c44-141f4ab65655", + "parentUUID": "274d1ff2-bec9-4220-ad32-6ec95912d6cf", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Receive customers' messages by email", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Configure Contact form module should enable Receive customers' messages by email", + "timedOut": false, + "duration": 367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_enableReceiveMessagesByEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReceiveMessagesByEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.setReceiveCustomersMessageByEmail(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(contactForm_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5805d348-70ab-4503-8064-1f919863d041", + "parentUUID": "274d1ff2-bec9-4220-ad32-6ec95912d6cf", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in PRE-TEST: Configure Contact form module should logout from BO", + "timedOut": false, + "duration": 1685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "[\n {\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_logOutBO\"\n },\n {\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n }\n]", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logOutBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac355551-17ce-49dd-b912-5880d9988061", + "parentUUID": "274d1ff2-bec9-4220-ad32-6ec95912d6cf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "04f9ec2f-384e-4bde-9452-7ac6b1518ca1", + "56fe0888-e7a2-4b92-abb3-92ecdddbef7a", + "5278910c-700d-4e14-83b9-506d19c8135d", + "697b3874-daf8-4824-86ef-2eaf8d03e51f", + "849d4624-7dd2-4c90-9c44-141f4ab65655", + "5805d348-70ab-4503-8064-1f919863d041", + "ac355551-17ce-49dd-b912-5880d9988061" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11940, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "31562bee-7c03-4eea-afce-b8c00e3e785f", + "title": "FO - Send message from contact us page with customer logged in", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in FO - Send message from contact us page with customer logged in should open the shop page", + "timedOut": false, + "duration": 398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_openShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae356f6f-24a0-4a4c-9f62-ee2c2bea77f3", + "parentUUID": "31562bee-7c03-4eea-afce-b8c00e3e785f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in FO - Send message from contact us page with customer logged in should go to login page", + "timedOut": false, + "duration": 706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_goToLoginPageFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb4836ae-fd0c-4911-b30e-3647f97a0548", + "parentUUID": "31562bee-7c03-4eea-afce-b8c00e3e785f", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in FO - Send message from contact us page with customer logged in should sign in with default customer", + "timedOut": false, + "duration": 483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_sighInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bad378c-b657-4428-a8b6-f55cf16d1772", + "parentUUID": "31562bee-7c03-4eea-afce-b8c00e3e785f", + "isHook": false, + "skipped": false + }, + { + "title": "should go on contact us page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in FO - Send message from contact us page with customer logged in should go on contact us page", + "timedOut": false, + "duration": 745, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_goOnContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goOnContactPage', baseContext)];\n case 1:\n _a.sent();\n // Go to contact us page\n return [4 /*yield*/, login_1.loginPage.goToFooterLink(page, 'Contact us')];\n case 2:\n // Go to contact us page\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f5b4b82-c36b-46a8-bb12-4a89bde86cdc", + "parentUUID": "31562bee-7c03-4eea-afce-b8c00e3e785f", + "isHook": false, + "skipped": false + }, + { + "title": "should send message to customer service", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in FO - Send message from contact us page with customer logged in should send message to customer service", + "timedOut": false, + "duration": 605, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, \"\".concat(contactUsData.fileName, \".txt\"))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "994adc1e-686f-4774-b592-4d8bd3a6ad04", + "parentUUID": "31562bee-7c03-4eea-afce-b8c00e3e785f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is in mailbox", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in FO - Send message from contact us page with customer logged in should check that the confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": null, + "code": "", + "err": {}, + "uuid": "c437ca26-52a9-4940-bf56-d1a282167144", + "parentUUID": "31562bee-7c03-4eea-afce-b8c00e3e785f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ae356f6f-24a0-4a4c-9f62-ee2c2bea77f3", + "cb4836ae-fd0c-4911-b30e-3647f97a0548", + "4bad378c-b657-4428-a8b6-f55cf16d1772", + "0f5b4b82-c36b-46a8-bb12-4a89bde86cdc", + "994adc1e-686f-4774-b592-4d8bd3a6ad04" + ], + "failures": [], + "pending": [ + "c437ca26-52a9-4940-bf56-d1a282167144" + ], + "skipped": [], + "duration": 2937, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f90090d1-719b-40d3-9f25-b34dc7813ef4", + "title": "BO - Check in Customer Service Page the received message and delete it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in BO - Check in Customer Service Page the received message and delete it should login in BO", + "timedOut": false, + "duration": 1444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ceb2229-6bc6-4c88-ae08-3846ba3e050d", + "parentUUID": "f90090d1-719b-40d3-9f25-b34dc7813ef4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to customer service page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in BO - Check in Customer Service Page the received message and delete it should go to customer service page", + "timedOut": false, + "duration": 3780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f335e7a4-83c7-4758-b06a-7b279dcc1b0a", + "parentUUID": "f90090d1-719b-40d3-9f25-b34dc7813ef4", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer name", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in BO - Check in Customer Service Page the received message and delete it should check customer name", + "timedOut": false, + "duration": 2015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_checkCustomerName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'customer')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(\"\".concat(contactUsData.firstName, \" \").concat(contactUsData.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "723c1905-b300-42d7-8b96-2baa33cc3981", + "parentUUID": "f90090d1-719b-40d3-9f25-b34dc7813ef4", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer email", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in BO - Check in Customer Service Page the received message and delete it should check customer email", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_checkCustomerEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'a!email')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(contactUsData.emailAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89350b35-3568-4368-850f-34dbb8ed3a51", + "parentUUID": "f90090d1-719b-40d3-9f25-b34dc7813ef4", + "isHook": false, + "skipped": false + }, + { + "title": "should check message type", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in BO - Check in Customer Service Page the received message and delete it should check message type", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_checkMessageType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var subject;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessageType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'cl!id_contact')];\n case 2:\n subject = _a.sent();\n (0, chai_1.expect)(subject).to.contain(contactUsData.subject);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6490f46-606f-4133-bbbb-f19b099591d2", + "parentUUID": "f90090d1-719b-40d3-9f25-b34dc7813ef4", + "isHook": false, + "skipped": false + }, + { + "title": "should check message", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in BO - Check in Customer Service Page the received message and delete it should check message", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_checkMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'message')];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.contain(contactUsData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6374f419-c970-4643-b28a-2d23bc703a88", + "parentUUID": "f90090d1-719b-40d3-9f25-b34dc7813ef4", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in BO - Check in Customer Service Page the received message and delete it should delete the message", + "timedOut": false, + "duration": 504, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dfb4c7fd-ae03-4ef7-b8e3-966f84c24d71", + "parentUUID": "f90090d1-719b-40d3-9f25-b34dc7813ef4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8ceb2229-6bc6-4c88-ae08-3846ba3e050d", + "f335e7a4-83c7-4758-b06a-7b279dcc1b0a", + "723c1905-b300-42d7-8b96-2baa33cc3981", + "89350b35-3568-4368-850f-34dbb8ed3a51", + "d6490f46-606f-4133-bbbb-f19b099591d2", + "6374f419-c970-4643-b28a-2d23bc703a88", + "dfb4c7fd-ae03-4ef7-b8e3-966f84c24d71" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13770, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c0eace09-9211-4a7d-ac39-ef03e8af4764", + "title": "POST-TEST: Reset Contact form module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset Contact form module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 4991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_goToModuleManagerPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32548921-5bc9-4209-a210-f8a201d1de09", + "parentUUID": "c0eace09-9211-4a7d-ac39-ef03e8af4764", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Contact form", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset Contact form module should search the module Contact form", + "timedOut": false, + "duration": 630, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_searchModule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.contactForm)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8d42369-a204-49c9-bf1b-f7b0b83453d0", + "parentUUID": "c0eace09-9211-4a7d-ac39-ef03e8af4764", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Contact form'", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset Contact form module should go to the configuration page of the module 'Contact form'", + "timedOut": false, + "duration": 1370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_goToConfigurationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.contactForm.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactForm_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df1cbbbb-63d1-48fe-a794-7c3f2e7e017e", + "parentUUID": "c0eace09-9211-4a7d-ac39-ef03e8af4764", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Send confirmation email to your customers", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset Contact form module should disable Send confirmation email to your customers", + "timedOut": false, + "duration": 954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_disableSendConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableSendConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.setSendConfirmationEmail(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(contactForm_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10d70fcb-54e4-4187-ad0b-ec6aa9506914", + "parentUUID": "c0eace09-9211-4a7d-ac39-ef03e8af4764", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Receive customers' messages by email", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset Contact form module should disable Receive customers' messages by email", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_disableReceiveMessagesByEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReceiveMessagesByEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.setReceiveCustomersMessageByEmail(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(contactForm_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fd45a64-9818-4adb-8ad9-9cb6b7ec8ba7", + "parentUUID": "c0eace09-9211-4a7d-ac39-ef03e8af4764", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "32548921-5bc9-4209-a210-f8a201d1de09", + "a8d42369-a204-49c9-bf1b-f7b0b83453d0", + "df1cbbbb-63d1-48fe-a794-7c3f2e7e017e", + "10d70fcb-54e4-4187-ad0b-ec6aa9506914", + "3fd45a64-9818-4adb-8ad9-9cb6b7ec8ba7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8310, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cd290ba2-e5ce-4547-af3b-6d2ead7a6d7c", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/02_sendMessageWithCustomer.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1576e99b-ca2d-4fe0-96bd-1c02ebe93b60", + "parentUUID": "cd290ba2-e5ce-4547-af3b-6d2ead7a6d7c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "33e7adba-155f-4822-abdf-f6c6ed05148c", + "parentUUID": "cd290ba2-e5ce-4547-af3b-6d2ead7a6d7c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b74c23b-b3b9-456d-8076-aa8add01867a", + "parentUUID": "cd290ba2-e5ce-4547-af3b-6d2ead7a6d7c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b5859fd-497a-4fc8-9fcc-696ff46d6174", + "parentUUID": "cd290ba2-e5ce-4547-af3b-6d2ead7a6d7c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "FO - Contact us : Send message from contact us page with customer logged in POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 396, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageWithCustomer_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b577b54f-d658-4301-96de-d8a4826f4f26", + "parentUUID": "cd290ba2-e5ce-4547-af3b-6d2ead7a6d7c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2b74c23b-b3b9-456d-8076-aa8add01867a", + "3b5859fd-497a-4fc8-9fcc-696ff46d6174", + "b577b54f-d658-4301-96de-d8a4826f4f26" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7023, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6f64b950-e99e-4a87-b7b9-972d16b3131d", + "title": "FO - Contact us : Send message from contact us page with customer not logged", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Contact us : Send message from contact us page with customer not logged\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged \"before all\" hook in \"FO - Contact us : Send message from contact us page with customer not logged\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(contactUsData.fileName, \".txt\"), 'new filename')];\n case 3:\n _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "788d8dc8-63a2-4f84-b090-4e95f7c052bc", + "parentUUID": "6f64b950-e99e-4a87-b7b9-972d16b3131d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Contact us : Send message from contact us page with customer not logged\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged \"after all\" hook in \"FO - Contact us : Send message from contact us page with customer not logged\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".txt\"))];\n case 2:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a283967e-bca3-4dd6-bdd2-c2b6afb5a03f", + "parentUUID": "6f64b950-e99e-4a87-b7b9-972d16b3131d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b2a58092-7a25-41a6-a24f-14c2c7fb206e", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc411043-21a2-4f9a-a063-51ecd5fa1f79", + "parentUUID": "b2a58092-7a25-41a6-a24f-14c2c7fb206e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "63efec0c-7911-486f-9eb4-ac6b812a9462", + "parentUUID": "b2a58092-7a25-41a6-a24f-14c2c7fb206e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "864c2b1b-464b-4e66-a3c1-6759fe8fae23", + "parentUUID": "b2a58092-7a25-41a6-a24f-14c2c7fb206e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c0c29e7-9836-4ae1-bd04-0a4e29567e28", + "parentUUID": "b2a58092-7a25-41a6-a24f-14c2c7fb206e", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1563a09c-9cab-4ad0-8315-0e5bf8e334f0", + "parentUUID": "b2a58092-7a25-41a6-a24f-14c2c7fb206e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "864c2b1b-464b-4e66-a3c1-6759fe8fae23", + "1c0c29e7-9836-4ae1-bd04-0a4e29567e28", + "1563a09c-9cab-4ad0-8315-0e5bf8e334f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7237, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6b7249f1-7138-43f0-b96a-bb0ffa4f9e35", + "title": "PRE-TEST: Configure Contact form module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Configure Contact form module should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da1604d3-2dcb-4fc6-b08e-f4a603c74668", + "parentUUID": "6b7249f1-7138-43f0-b96a-bb0ffa4f9e35", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Configure Contact form module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5209, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8383df72-80e0-4f28-85a0-f170c65d3b4a", + "parentUUID": "6b7249f1-7138-43f0-b96a-bb0ffa4f9e35", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Contact form", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Configure Contact form module should search the module Contact form", + "timedOut": false, + "duration": 632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.contactForm)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64932265-e2a7-46f4-8951-cfdd9ad46a55", + "parentUUID": "6b7249f1-7138-43f0-b96a-bb0ffa4f9e35", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Contact form'", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Configure Contact form module should go to the configuration page of the module 'Contact form'", + "timedOut": false, + "duration": 1381, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.contactForm.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactForm_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d5188ac-94fe-4e8b-adc2-70a68a1d1404", + "parentUUID": "6b7249f1-7138-43f0-b96a-bb0ffa4f9e35", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Send confirmation email to your customers", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Configure Contact form module should enable Send confirmation email to your customers", + "timedOut": false, + "duration": 956, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_enableSendConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableSendConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.setSendConfirmationEmail(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(contactForm_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9515ce8f-21b3-4401-a1a8-ba8d9e7cef62", + "parentUUID": "6b7249f1-7138-43f0-b96a-bb0ffa4f9e35", + "isHook": false, + "skipped": false + }, + { + "title": "should enable Receive customers' messages by email", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Configure Contact form module should enable Receive customers' messages by email", + "timedOut": false, + "duration": 376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_enableReceiveMessagesByEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReceiveMessagesByEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.setReceiveCustomersMessageByEmail(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(contactForm_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8eda4fc-e2bf-4ed1-ace8-e9fa0bacc836", + "parentUUID": "6b7249f1-7138-43f0-b96a-bb0ffa4f9e35", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged PRE-TEST: Configure Contact form module should logout from BO", + "timedOut": false, + "duration": 1683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "[\n {\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_logOutBO\"\n },\n {\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n }\n]", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logOutBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d48e7c5b-044f-4085-96c5-ba15f1c3f10c", + "parentUUID": "6b7249f1-7138-43f0-b96a-bb0ffa4f9e35", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "da1604d3-2dcb-4fc6-b08e-f4a603c74668", + "8383df72-80e0-4f28-85a0-f170c65d3b4a", + "64932265-e2a7-46f4-8951-cfdd9ad46a55", + "8d5188ac-94fe-4e8b-adc2-70a68a1d1404", + "9515ce8f-21b3-4401-a1a8-ba8d9e7cef62", + "d8eda4fc-e2bf-4ed1-ace8-e9fa0bacc836", + "d48e7c5b-044f-4085-96c5-ba15f1c3f10c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11955, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "title": "FO - Send message from contact us page with customer not logged", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged FO - Send message from contact us page with customer not logged should open the shop page", + "timedOut": false, + "duration": 397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_openShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4aeae0da-e2ed-41af-9862-6df23898d254", + "parentUUID": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "isHook": false, + "skipped": false + }, + { + "title": "should check if that any account is connected", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged FO - Send message from contact us page with customer not logged should check if that any account is connected", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_checkIfCustomerNotConnected\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIfCustomerNotConnected', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 2:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eae28475-3ff8-4028-bc8f-ee80aec4a7d8", + "parentUUID": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "isHook": false, + "skipped": false + }, + { + "title": "should go on contact us page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged FO - Send message from contact us page with customer not logged should go on contact us page", + "timedOut": false, + "duration": 687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_goOnContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goOnContactPage', baseContext)];\n case 1:\n _a.sent();\n // Go to contact us page\n return [4 /*yield*/, login_1.loginPage.goToFooterLink(page, 'Contact us')];\n case 2:\n // Go to contact us page\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be2c766a-b937-43f6-8cb0-2acb18afc918", + "parentUUID": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the email is empty", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged FO - Send message from contact us page with customer not logged should check if the email is empty", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_checkEmptyEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invalidEmailError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmptyEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsEmptyEmail)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertError(page)];\n case 3:\n invalidEmailError = _a.sent();\n (0, chai_1.expect)(invalidEmailError).to.contains(contactUs_1.contactUsPage.invalidEmail);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3e93f7b-eb48-4703-aeae-d140b070af56", + "parentUUID": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the email is invalid", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged FO - Send message from contact us page with customer not logged should check if the email is invalid", + "timedOut": false, + "duration": 333, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_checkInvalidEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invalidEmailError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInvalidEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsInvalidEmail)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertError(page)];\n case 3:\n invalidEmailError = _a.sent();\n (0, chai_1.expect)(invalidEmailError).to.contains(contactUs_1.contactUsPage.invalidEmail);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c57b6a5e-7dcb-48ce-a0f2-7a123c60b6cb", + "parentUUID": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the content is empty", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged FO - Send message from contact us page with customer not logged should check if the content is empty", + "timedOut": false, + "duration": 261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_checkEmptyContent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var invalidEmailError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmptyContent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsEmptyContent)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertError(page)];\n case 3:\n invalidEmailError = _a.sent();\n (0, chai_1.expect)(invalidEmailError).to.contains(contactUs_1.contactUsPage.invalidContent);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0946f925-22bd-4cc5-b591-af745a0b54b2", + "parentUUID": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "isHook": false, + "skipped": false + }, + { + "title": "should send message to customer service", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged FO - Send message from contact us page with customer not logged should send message to customer service", + "timedOut": false, + "duration": 494, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, \"\".concat(contactUsData.fileName, \".txt\"))];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0bac22d-51eb-4dc3-bad1-a5d550f2eac5", + "parentUUID": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is in mailbox", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged FO - Send message from contact us page with customer not logged should check that the confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": null, + "code": "", + "err": {}, + "uuid": "cd430485-454e-489e-b7c0-a1f2bc056d2c", + "parentUUID": "99fe5eee-e1bd-4943-a7a4-7f3b9fe5e0c0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4aeae0da-e2ed-41af-9862-6df23898d254", + "eae28475-3ff8-4028-bc8f-ee80aec4a7d8", + "be2c766a-b937-43f6-8cb0-2acb18afc918", + "f3e93f7b-eb48-4703-aeae-d140b070af56", + "c57b6a5e-7dcb-48ce-a0f2-7a123c60b6cb", + "0946f925-22bd-4cc5-b591-af745a0b54b2", + "d0bac22d-51eb-4dc3-bad1-a5d550f2eac5" + ], + "failures": [], + "pending": [ + "cd430485-454e-489e-b7c0-a1f2bc056d2c" + ], + "skipped": [], + "duration": 3464, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ab9ae6e8-ef44-4def-abf0-d49dd996a28b", + "title": "BO - Check in Customer Service Page the received message and delete it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged BO - Check in Customer Service Page the received message and delete it should login in BO", + "timedOut": false, + "duration": 1438, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "150df380-bdbf-4511-8fba-d24305fbd971", + "parentUUID": "ab9ae6e8-ef44-4def-abf0-d49dd996a28b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to customer service page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged BO - Check in Customer Service Page the received message and delete it should go to customer service page", + "timedOut": false, + "duration": 3614, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eba7c91b-e5dc-4d7f-adb3-35528c010a41", + "parentUUID": "ab9ae6e8-ef44-4def-abf0-d49dd996a28b", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer name", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged BO - Check in Customer Service Page the received message and delete it should check customer name", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_checkCustomerName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'customer')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(\"\".concat(contactUsData.firstName, \" \").concat(contactUsData.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45cd6761-5318-4336-967d-ff69ccc0e4cd", + "parentUUID": "ab9ae6e8-ef44-4def-abf0-d49dd996a28b", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer email", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged BO - Check in Customer Service Page the received message and delete it should check customer email", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_checkCustomerEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'a!email')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(contactUsData.emailAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a298853f-fd25-485e-aa23-19a4745c2fb4", + "parentUUID": "ab9ae6e8-ef44-4def-abf0-d49dd996a28b", + "isHook": false, + "skipped": false + }, + { + "title": "should check message type", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged BO - Check in Customer Service Page the received message and delete it should check message type", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_checkMessageType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var subject;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessageType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'cl!id_contact')];\n case 2:\n subject = _a.sent();\n (0, chai_1.expect)(subject).to.contain(contactUsData.subject);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cc19ab8-926a-4768-af7e-823c3ff6ac4f", + "parentUUID": "ab9ae6e8-ef44-4def-abf0-d49dd996a28b", + "isHook": false, + "skipped": false + }, + { + "title": "should check message", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged BO - Check in Customer Service Page the received message and delete it should check message", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_checkMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'message')];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.contain(contactUsData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccf92630-619f-42e9-84db-71c22784232c", + "parentUUID": "ab9ae6e8-ef44-4def-abf0-d49dd996a28b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged BO - Check in Customer Service Page the received message and delete it should delete the message", + "timedOut": false, + "duration": 444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a480019a-3f2b-417a-ad63-35834c3bfc97", + "parentUUID": "ab9ae6e8-ef44-4def-abf0-d49dd996a28b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "150df380-bdbf-4511-8fba-d24305fbd971", + "eba7c91b-e5dc-4d7f-adb3-35528c010a41", + "45cd6761-5318-4336-967d-ff69ccc0e4cd", + "a298853f-fd25-485e-aa23-19a4745c2fb4", + "9cc19ab8-926a-4768-af7e-823c3ff6ac4f", + "ccf92630-619f-42e9-84db-71c22784232c", + "a480019a-3f2b-417a-ad63-35834c3bfc97" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13530, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "06095a5c-530b-4617-918a-f865ee3cb582", + "title": "POST-TEST: Reset Contact form module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset Contact form module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 4898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_goToModuleManagerPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fabfadb9-0d97-4cf3-9e42-7a9a300eb65b", + "parentUUID": "06095a5c-530b-4617-918a-f865ee3cb582", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Contact form", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset Contact form module should search the module Contact form", + "timedOut": false, + "duration": 684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_searchModule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.contactForm)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23ad67f9-06ec-4615-b9f1-ac7b0be87f92", + "parentUUID": "06095a5c-530b-4617-918a-f865ee3cb582", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Contact form'", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset Contact form module should go to the configuration page of the module 'Contact form'", + "timedOut": false, + "duration": 1402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_goToConfigurationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.contactForm.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactForm_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea372e4d-7ce7-472f-881a-8f1ac19dcb46", + "parentUUID": "06095a5c-530b-4617-918a-f865ee3cb582", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Send confirmation email to your customers", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset Contact form module should disable Send confirmation email to your customers", + "timedOut": false, + "duration": 950, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_disableSendConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableSendConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.setSendConfirmationEmail(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(contactForm_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ede78801-6ee3-4c0e-b5f3-61325b7bc779", + "parentUUID": "06095a5c-530b-4617-918a-f865ee3cb582", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Receive customers' messages by email", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset Contact form module should disable Receive customers' messages by email", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_disableReceiveMessagesByEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReceiveMessagesByEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactForm_1.default.setReceiveCustomersMessageByEmail(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(contactForm_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1383905c-c289-4556-819e-8cbcd45d0ffc", + "parentUUID": "06095a5c-530b-4617-918a-f865ee3cb582", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fabfadb9-0d97-4cf3-9e42-7a9a300eb65b", + "23ad67f9-06ec-4615-b9f1-ac7b0be87f92", + "ea372e4d-7ce7-472f-881a-8f1ac19dcb46", + "ede78801-6ee3-4c0e-b5f3-61325b7bc779", + "1383905c-c289-4556-819e-8cbcd45d0ffc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8299, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b117147b-54a8-4117-8362-1b68237a2396", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/03_sendMessageAsAnonymous.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9823fd9c-1110-465d-b0d0-4c19181c00ee", + "parentUUID": "b117147b-54a8-4117-8362-1b68237a2396", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "877d95f3-3cc8-411e-86d7-d6c0cdb89eb5", + "parentUUID": "b117147b-54a8-4117-8362-1b68237a2396", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46f8d594-120a-47ff-94cf-636e0ad51910", + "parentUUID": "b117147b-54a8-4117-8362-1b68237a2396", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c07f88d4-4035-4706-9367-abd3f4cb02c9", + "parentUUID": "b117147b-54a8-4117-8362-1b68237a2396", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "FO - Contact us : Send message from contact us page with customer not logged POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 388, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_sendMessageAsAnonymous_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "687ee1da-8222-4426-8c3d-970e62ce5ad3", + "parentUUID": "b117147b-54a8-4117-8362-1b68237a2396", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "46f8d594-120a-47ff-94cf-636e0ad51910", + "c07f88d4-4035-4706-9367-abd3f4cb02c9", + "687ee1da-8222-4426-8c3d-970e62ce5ad3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6996, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "title": "FO - Contact us : Add attachment", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/05_contactUs/04_addAttachment.ts", + "file": "/campaigns/functional/FO/classic/05_contactUs/04_addAttachment.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Contact us : Add attachment\"", + "fullTitle": "FO - Contact us : Add attachment \"before all\" hook in \"FO - Contact us : Add attachment\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(contactUsData.fileName, \".csv\"), 'new filename')];\n case 3:\n _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(contactUsData.fileName, \".png\"), 'new filename')];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd0acd3f-6abc-48e9-bf4b-a360905a3710", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Contact us : Add attachment\"", + "fullTitle": "FO - Contact us : Add attachment \"after all\" hook in \"FO - Contact us : Add attachment\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".csv\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile(\"\".concat(contactUsData.fileName, \".png\"))];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b0d86988-a165-4535-a2d7-1a3943d24b6e", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Contact us : Add attachment should open the shop page", + "timedOut": false, + "duration": 460, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_openShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a483c9ad-2a07-41d5-ac12-90c8c9d48d74", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Contact us : Add attachment should go to login page", + "timedOut": false, + "duration": 720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_goToLoginPageFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a29c8d07-e90f-4884-86a2-23279638453c", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "FO - Contact us : Add attachment should sign in with default customer", + "timedOut": false, + "duration": 483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_sighInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53da0182-e64c-44c9-a1d9-0fc85fa6d18c", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should go to contact us page", + "fullTitle": "FO - Contact us : Add attachment should go to contact us page", + "timedOut": false, + "duration": 718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_goOnContactPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goOnContactPage', baseContext)];\n case 1:\n _a.sent();\n // Go to contact us page\n return [4 /*yield*/, login_1.loginPage.goToFooterLink(page, 'Contact us')];\n case 2:\n // Go to contact us page\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "816b157d-e31f-4745-86c1-25a71f50f757", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should try to send message with csv file to customer service and check error message", + "fullTitle": "FO - Contact us : Add attachment should try to send message with csv file to customer service and check error message", + "timedOut": false, + "duration": 379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_sendCSVFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendCSVFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, \"\".concat(contactUsData.fileName, \".csv\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertError(page)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(contactUs_1.contactUsPage.badFileExtensionErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "317500a3-eb1f-401a-be7b-c8747285f571", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should send message with PNG file to customer service and check validation message", + "fullTitle": "FO - Contact us : Add attachment should send message with PNG file to customer service and check validation message", + "timedOut": false, + "duration": 366, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_sendPNGFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendPNGFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, \"\".concat(contactUsData.fileName, \".png\"))];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertSuccess(page)];\n case 3:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.equal(contactUs_1.contactUsPage.validationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "511ec3e5-6b97-4f15-8970-70ba3db6d003", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should login in BO", + "fullTitle": "FO - Contact us : Add attachment should login in BO", + "timedOut": false, + "duration": 1715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88d40c7f-cc30-42dd-a6cc-442d2eba2d2f", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should go to customer service page", + "fullTitle": "FO - Contact us : Add attachment should go to customer service page", + "timedOut": false, + "duration": 3632, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_goToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c78f969-cd48-4d4a-8013-409cf161582b", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer name", + "fullTitle": "FO - Contact us : Add attachment should check customer name", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_checkCustomerName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'customer')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(\"\".concat(contactUsData.firstName, \" \").concat(contactUsData.lastName));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e71b9733-389e-469b-b92c-7269da246342", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should check customer email", + "fullTitle": "FO - Contact us : Add attachment should check customer email", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_checkCustomerEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var email;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'a!email')];\n case 2:\n email = _a.sent();\n (0, chai_1.expect)(email).to.contain(contactUsData.emailAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edc15f1a-f31b-4326-8ecc-e630b337e368", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should get the customer service id and the date", + "fullTitle": "FO - Contact us : Add attachment should get the customer service id and the date", + "timedOut": false, + "duration": 4017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_getMessageID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getMessageID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'id_customer_thread')];\n case 2:\n idCustomer = _a.sent();\n (0, chai_1.expect)(parseInt(idCustomer, 10)).to.be.at.least(0);\n return [4 /*yield*/, customerService_1.default.getTextColumn(page, 1, 'date')];\n case 3:\n messageDateTime = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33641a13-8df7-4b80-aceb-0a44802dc9cc", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view message page", + "fullTitle": "FO - Contact us : Add attachment should go to view message page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_goToViewMessagePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewMessagePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "042d6bb9-db93-4b33-9a0f-97aaa25e875a", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should check the thread form", + "fullTitle": "FO - Contact us : Add attachment should check the thread form", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_checkThreadForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var text;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThreadForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getCustomerMessage(page)];\n case 2:\n text = _a.sent();\n (0, chai_1.expect)(text)\n .to.contains(contactUsData.emailAddress)\n .and.to.contains(contactUsData.subject)\n .and.to.contains(\"\".concat(messageDateTime.substring(0, 10), \" - \").concat(messageDateTime.substring(11, 16)))\n .and.to.contains('Attachment')\n .and.to.contains(contactUsData.message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1082a0b3-702b-4f47-96af-3986dcab62a4", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should check the file attached", + "fullTitle": "FO - Contact us : Add attachment should check the file attached", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_checkFileAttached\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var fileExtension;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFileAttached', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getAttachedFileHref(page)];\n case 2:\n fileExtension = _a.sent();\n (0, chai_1.expect)(fileExtension).to.contains('.png');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3666b17-1730-4c5f-a4fd-499e7b90966c", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to customer service page", + "fullTitle": "FO - Contact us : Add attachment should go back to customer service page", + "timedOut": false, + "duration": 3808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_goBackToOrderMessagesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToOrderMessagesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "721b257d-8d77-4a1e-a5dd-b996a928c8fd", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "FO - Contact us : Add attachment should delete the message", + "timedOut": false, + "duration": 432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_contactUs_addAttachment_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerService_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "746e1dd2-38ad-46c9-b5b2-50426552b403", + "parentUUID": "ca6fc17a-84d9-4f82-ac8a-e43b099dc995", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a483c9ad-2a07-41d5-ac12-90c8c9d48d74", + "a29c8d07-e90f-4884-86a2-23279638453c", + "53da0182-e64c-44c9-a1d9-0fc85fa6d18c", + "816b157d-e31f-4745-86c1-25a71f50f757", + "317500a3-eb1f-401a-be7b-c8747285f571", + "511ec3e5-6b97-4f15-8970-70ba3db6d003", + "88d40c7f-cc30-42dd-a6cc-442d2eba2d2f", + "4c78f969-cd48-4d4a-8013-409cf161582b", + "e71b9733-389e-469b-b92c-7269da246342", + "edc15f1a-f31b-4326-8ecc-e630b337e368", + "33641a13-8df7-4b80-aceb-0a44802dc9cc", + "042d6bb9-db93-4b33-9a0f-97aaa25e875a", + "1082a0b3-702b-4f47-96af-3986dcab62a4", + "c3666b17-1730-4c5f-a4fd-499e7b90966c", + "721b257d-8d77-4a1e-a5dd-b996a928c8fd", + "746e1dd2-38ad-46c9-b5b2-50426552b403" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21571, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "32de0c5d-21cc-4758-bc79-c1080d2edff7", + "title": "FO - Home Page : Check slider", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/01_checkSlider.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/01_checkSlider.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Home Page : Check slider\"", + "fullTitle": "FO - Home Page : Check slider \"before all\" hook in \"FO - Home Page : Check slider\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0963fb17-ecc8-4937-9e32-538cf2feead5", + "parentUUID": "32de0c5d-21cc-4758-bc79-c1080d2edff7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Home Page : Check slider\"", + "fullTitle": "FO - Home Page : Check slider \"after all\" hook in \"FO - Home Page : Check slider\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d3f4367-b882-4749-9383-218e8eef8052", + "parentUUID": "32de0c5d-21cc-4758-bc79-c1080d2edff7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Home Page : Check slider should open the shop page", + "timedOut": false, + "duration": 450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_checkSlider_openShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7cd2f3b0-1b21-46fd-8277-32bfc0d0fa49", + "parentUUID": "32de0c5d-21cc-4758-bc79-c1080d2edff7", + "isHook": false, + "skipped": false + }, + { + "title": "should click in right arrow of the slider", + "fullTitle": "FO - Home Page : Check slider should click in right arrow of the slider", + "timedOut": false, + "duration": 85, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_checkSlider_clickOnRightSlideArrow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnRightSlideArrow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isSliderVisible(page, 1)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, home_1.homePage.clickOnLeftOrRightArrow(page, 'right')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isSliderVisible(page, 2)];\n case 4:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34723a4e-86fe-4ebb-bf15-2d37a06c79a3", + "parentUUID": "32de0c5d-21cc-4758-bc79-c1080d2edff7", + "isHook": false, + "skipped": false + }, + { + "title": "should click in left arrow of the slider", + "fullTitle": "FO - Home Page : Check slider should click in left arrow of the slider", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_checkSlider_clickOnLeftSlideArrow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnLeftSlideArrow', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isSliderVisible(page, 2)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [4 /*yield*/, home_1.homePage.clickOnLeftOrRightArrow(page, 'left')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isSliderVisible(page, 1)];\n case 4:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "279e6206-c787-4695-a092-a5ba2f6813d3", + "parentUUID": "32de0c5d-21cc-4758-bc79-c1080d2edff7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the slider URL", + "fullTitle": "FO - Home Page : Check slider should check the slider URL", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_checkSlider_checkSliderURL\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var currentURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSliderURL', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getSliderURL(page)];\n case 2:\n currentURL = _a.sent();\n (0, chai_1.expect)(currentURL).to.contains('www.prestashop-project.org');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3db8120-d700-4b79-a53c-75cfd478f03b", + "parentUUID": "32de0c5d-21cc-4758-bc79-c1080d2edff7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7cd2f3b0-1b21-46fd-8277-32bfc0d0fa49", + "34723a4e-86fe-4ebb-bf15-2d37a06c79a3", + "279e6206-c787-4695-a092-a5ba2f6813d3", + "f3db8120-d700-4b79-a53c-75cfd478f03b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 602, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cadd7dd9-52f2-495e-9ac9-42833ad9811f", + "title": "FO - Home Page : Display some products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Home Page : Display some products\"", + "fullTitle": "FO - Home Page : Display some products \"before all\" hook in \"FO - Home Page : Display some products\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dcc214e-593b-4bf4-9acd-376c3429965a", + "parentUUID": "cadd7dd9-52f2-495e-9ac9-42833ad9811f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Home Page : Display some products\"", + "fullTitle": "FO - Home Page : Display some products \"after all\" hook in \"FO - Home Page : Display some products\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bc5e869b-2503-4115-9462-a92f93e8f389", + "parentUUID": "cadd7dd9-52f2-495e-9ac9-42833ad9811f", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "42d782b8-3c35-440e-bddf-66ba7601a661", + "title": "Check popular products block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Home Page : Display some products Check popular products block should open the shop page", + "timedOut": false, + "duration": 460, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8f32e29-5deb-4575-b3bc-7d84ee1fbe9b", + "parentUUID": "42d782b8-3c35-440e-bddf-66ba7601a661", + "isHook": false, + "skipped": false + }, + { + "title": "should check popular product title", + "fullTitle": "FO - Home Page : Display some products Check popular products block should check popular product title", + "timedOut": false, + "duration": 1234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkPopularProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var popularProductTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPopularProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getBlockTitle(page, 1)];\n case 3:\n popularProductTitle = _a.sent();\n (0, chai_1.expect)(popularProductTitle).to.equal('Popular Products');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56883c42-a86f-42a5-a7be-67f3dd4a532c", + "parentUUID": "42d782b8-3c35-440e-bddf-66ba7601a661", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of popular products", + "fullTitle": "FO - Home Page : Display some products Check popular products block should check the number of popular products", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkPopularProductsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPopularProductsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductsBlockNumber(page, 1)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.equal(8);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a634ac0e-805f-4cb8-ba83-ed3a7a8b422f", + "parentUUID": "42d782b8-3c35-440e-bddf-66ba7601a661", + "isHook": false, + "skipped": false + }, + { + "title": "should check All products link", + "fullTitle": "FO - Home Page : Display some products Check popular products block should check All products link", + "timedOut": false, + "duration": 963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkAllPopularProductsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllPopularProductsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44adf752-1041-49d2-ba8e-d12af0687f09", + "parentUUID": "42d782b8-3c35-440e-bddf-66ba7601a661", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "FO - Home Page : Display some products Check popular products block should go to home page", + "timedOut": false, + "duration": 225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_goToHomePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7830c56e-4b20-40a6-9e17-06bff9e21f85", + "parentUUID": "42d782b8-3c35-440e-bddf-66ba7601a661", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e8f32e29-5deb-4575-b3bc-7d84ee1fbe9b", + "56883c42-a86f-42a5-a7be-67f3dd4a532c", + "a634ac0e-805f-4cb8-ba83-ed3a7a8b422f", + "44adf752-1041-49d2-ba8e-d12af0687f09", + "7830c56e-4b20-40a6-9e17-06bff9e21f85" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2885, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8803a476-97b7-481a-a0e5-41fadb7cc8c7", + "title": "Check the banner and the custom text block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check that the banner is displayed", + "fullTitle": "FO - Home Page : Display some products Check the banner and the custom text block should check that the banner is displayed", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkBanner\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBanner', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isBannerVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e86b9d19-738d-444b-a6e7-e230404330a1", + "parentUUID": "8803a476-97b7-481a-a0e5-41fadb7cc8c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the custom text block is visible", + "fullTitle": "FO - Home Page : Display some products Check the banner and the custom text block should check that the custom text block is visible", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkCustomTextBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomTextBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomTextBlockVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c72a6e1-a1c8-456a-9379-a9d4e37b8236", + "parentUUID": "8803a476-97b7-481a-a0e5-41fadb7cc8c7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e86b9d19-738d-444b-a6e7-e230404330a1", + "8c72a6e1-a1c8-456a-9379-a9d4e37b8236" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c9af7c8f-ee9d-46ea-89d6-ef02ef815b36", + "title": "Check products on sale block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check products on sale block title", + "fullTitle": "FO - Home Page : Display some products Check products on sale block should check products on sale block title", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkProductsOnSaleBlockTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var popularProductTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsOnSaleBlockTitle', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getBlockTitle(page, 2)];\n case 2:\n popularProductTitle = _a.sent();\n (0, chai_1.expect)(popularProductTitle).to.equal('On sale');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4af05478-f32c-440e-a33c-8e2f0b523a34", + "parentUUID": "c9af7c8f-ee9d-46ea-89d6-ef02ef815b36", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products in sale", + "fullTitle": "FO - Home Page : Display some products Check products on sale block should check the number of products in sale", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkNumberOfProductsInSale\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProductsInSale', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductsBlockNumber(page, 2)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d31f26fe-fa0b-40cd-988a-637998c3e937", + "parentUUID": "c9af7c8f-ee9d-46ea-89d6-ef02ef815b36", + "isHook": false, + "skipped": false + }, + { + "title": "should check All products for sale link", + "fullTitle": "FO - Home Page : Display some products Check products on sale block should check All products for sale link", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkAllProductsInSaleLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllProductsInSaleLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pricesDrop_1.pricesDropPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(pricesDrop_1.pricesDropPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d32f51b-4a6c-4edc-a85e-8c9dc0276e71", + "parentUUID": "c9af7c8f-ee9d-46ea-89d6-ef02ef815b36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "FO - Home Page : Display some products Check products on sale block should go to home page", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_goToHomePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cfeafdc-9f5d-494b-99ff-5844b58aa5b4", + "parentUUID": "c9af7c8f-ee9d-46ea-89d6-ef02ef815b36", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4af05478-f32c-440e-a33c-8e2f0b523a34", + "d31f26fe-fa0b-40cd-988a-637998c3e937", + "9d32f51b-4a6c-4edc-a85e-8c9dc0276e71", + "9cfeafdc-9f5d-494b-99ff-5844b58aa5b4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1041, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "24e5ef7d-03ab-4aec-81e7-7f0bba46ce92", + "title": "Check new products block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/02_displaySomeProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check new products title", + "fullTitle": "FO - Home Page : Display some products Check new products block should check new products title", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkNewProductsBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var popularProductTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewProductsBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getBlockTitle(page, 3)];\n case 2:\n popularProductTitle = _a.sent();\n (0, chai_1.expect)(popularProductTitle).to.equal('New products');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "360ca8d0-266b-4b63-b109-6c162f63c1a4", + "parentUUID": "24e5ef7d-03ab-4aec-81e7-7f0bba46ce92", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of new products", + "fullTitle": "FO - Home Page : Display some products Check new products block should check the number of new products", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkNewProductsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewProductsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductsBlockNumber(page, 3)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.equal(8);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03da79b0-d8e2-499e-851c-726b8853815d", + "parentUUID": "24e5ef7d-03ab-4aec-81e7-7f0bba46ce92", + "isHook": false, + "skipped": false + }, + { + "title": "should check All new products", + "fullTitle": "FO - Home Page : Display some products Check new products block should check All new products", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_checkAllNewProductsLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAllNewProductsLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 3)];\n case 2:\n _a.sent();\n return [4 /*yield*/, newProducts_1.newProductsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(newProducts_1.newProductsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a191f56-8b5c-46db-88f1-9651a5f5aa24", + "parentUUID": "24e5ef7d-03ab-4aec-81e7-7f0bba46ce92", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "FO - Home Page : Display some products Check new products block should go to home page", + "timedOut": false, + "duration": 241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_displaySomeProducts_goToHomePage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26cbda15-d49a-4d69-938c-3094626c554b", + "parentUUID": "24e5ef7d-03ab-4aec-81e7-7f0bba46ce92", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "360ca8d0-266b-4b63-b109-6c162f63c1a4", + "03da79b0-d8e2-499e-851c-726b8853815d", + "2a191f56-8b5c-46db-88f1-9651a5f5aa24", + "26cbda15-d49a-4d69-938c-3094626c554b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1135, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "de684443-7ab7-4297-9340-4185b18ad656", + "title": "FO - Home Page : Display all products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/03_allProducts.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/03_allProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Home Page : Display all products\"", + "fullTitle": "FO - Home Page : Display all products \"before all\" hook in \"FO - Home Page : Display all products\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5296bb7a-395d-41ed-93bd-b3a352c16fd3", + "parentUUID": "de684443-7ab7-4297-9340-4185b18ad656", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Home Page : Display all products\"", + "fullTitle": "FO - Home Page : Display all products \"after all\" hook in \"FO - Home Page : Display all products\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "064849f1-1cb7-47a7-af71-c1366baebf98", + "parentUUID": "de684443-7ab7-4297-9340-4185b18ad656", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "647550e5-cc95-47f1-8f23-42fdbd8a052b", + "title": "BO : Get the number of products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/03_allProducts.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/03_allProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Home Page : Display all products BO : Get the number of products should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "080580b8-fd0c-4764-bf8b-f8c2c0ab1a94", + "parentUUID": "647550e5-cc95-47f1-8f23-42fdbd8a052b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Home Page : Display all products BO : Get the number of products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e594b16-3951-453d-9536-c4d0e4d988ee", + "parentUUID": "647550e5-cc95-47f1-8f23-42fdbd8a052b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Home Page : Display all products BO : Get the number of products should reset all filters", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f342f0c-6c3e-4df0-9383-a6b8e6e01cb0", + "parentUUID": "647550e5-cc95-47f1-8f23-42fdbd8a052b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Active Status", + "fullTitle": "FO - Home Page : Display all products BO : Get the number of products should filter by Active Status", + "timedOut": false, + "duration": 533, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_filterByStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, productStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'active', 'Yes', 'select')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfActiveProducts = _a.sent();\n (0, chai_1.expect)(numberOfActiveProducts).to.within(0, numberOfProducts);\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfActiveProducts)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getProductStatusFromList(page, i)];\n case 5:\n productStatus = _a.sent();\n (0, chai_1.expect)(productStatus).to.eq(true);\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3212f17-6609-4b43-ba82-b1a2a0857f60", + "parentUUID": "647550e5-cc95-47f1-8f23-42fdbd8a052b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "080580b8-fd0c-4764-bf8b-f8c2c0ab1a94", + "5e594b16-3951-453d-9536-c4d0e4d988ee", + "5f342f0c-6c3e-4df0-9383-a6b8e6e01cb0", + "d3212f17-6609-4b43-ba82-b1a2a0857f60" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7251, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "022a6708-9c3e-4f7f-b4e0-cb18f88aead5", + "title": "FO : Display all Products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/03_allProducts.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/03_allProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Home Page : Display all products FO : Display all Products should open the shop page", + "timedOut": false, + "duration": 390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b19889c9-ed2a-47de-a599-f632a2ab8f32", + "parentUUID": "022a6708-9c3e-4f7f-b4e0-cb18f88aead5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "FO - Home Page : Display all products FO : Display all Products should go to all products page", + "timedOut": false, + "duration": 2097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_goToAllProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8adf20f-bba0-4c68-b06d-898918429bbe", + "parentUUID": "022a6708-9c3e-4f7f-b4e0-cb18f88aead5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products on the page", + "fullTitle": "FO - Home Page : Display all products FO : Display all Products should check the number of products on the page", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_numberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'numberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.eql(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d194efd8-32be-4da6-8d1c-1f254ced23f4", + "parentUUID": "022a6708-9c3e-4f7f-b4e0-cb18f88aead5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the header name is equal to HOME", + "fullTitle": "FO - Home Page : Display all products FO : Display all Products should check that the header name is equal to HOME", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_nameOfHeader\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var headerProductsName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'nameOfHeader', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getHeaderPageName(page)];\n case 2:\n headerProductsName = _a.sent();\n (0, chai_1.expect)(headerProductsName).to.equal('HOME');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e910e926-bba0-4c7f-b5a7-fb1d535a3cbb", + "parentUUID": "022a6708-9c3e-4f7f-b4e0-cb18f88aead5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the sorting link is displayed", + "fullTitle": "FO - Home Page : Display all products FO : Display all Products should check that the sorting link is displayed", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_homeSortAndPaginationLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSortingLinkVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'homeSortAndPaginationLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.isSortButtonVisible(page)];\n case 2:\n isSortingLinkVisible = _a.sent();\n (0, chai_1.expect)(isSortingLinkVisible, 'Sorting Link is not visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0ffecee-8a92-42ae-9ed8-b40d89e6cd10", + "parentUUID": "022a6708-9c3e-4f7f-b4e0-cb18f88aead5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the showing items text", + "fullTitle": "FO - Home Page : Display all products FO : Display all Products should check the showing items text", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_showingItemTextDisplayed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'showingItemTextDisplayed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getShowingItems(page)];\n case 2:\n numberOfItems = _a.sent();\n (0, chai_1.expect)(numberOfItems).equal(\"Showing 1-12 of \".concat(numberOfActiveProducts, \" item(s)\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "093023a4-bed4-4be9-9e9e-a77a4dccee3e", + "parentUUID": "022a6708-9c3e-4f7f-b4e0-cb18f88aead5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the list of product", + "fullTitle": "FO - Home Page : Display all products FO : Display all Products should check the list of product", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_allProducts_displayedListOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var listOfProductDisplayed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayedListOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProductsDisplayed(page)];\n case 2:\n listOfProductDisplayed = _a.sent();\n (0, chai_1.expect)(listOfProductDisplayed).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "208e5a89-881b-44e0-a3f5-077b06e06ab6", + "parentUUID": "022a6708-9c3e-4f7f-b4e0-cb18f88aead5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b19889c9-ed2a-47de-a599-f632a2ab8f32", + "f8adf20f-bba0-4c68-b06d-898918429bbe", + "d194efd8-32be-4da6-8d1c-1f254ced23f4", + "e910e926-bba0-4c7f-b5a7-fb1d535a3cbb", + "e0ffecee-8a92-42ae-9ed8-b40d89e6cd10", + "093023a4-bed4-4be9-9e9e-a77a4dccee3e", + "208e5a89-881b-44e0-a3f5-077b06e06ab6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2510, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0fe968a2-d6da-4819-a3c4-ef073e6974eb", + "title": "FO - Home Page : Product quick view", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Home Page : Product quick view\"", + "fullTitle": "FO - Home Page : Product quick view \"before all\" hook in \"FO - Home Page : Product quick view\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c39c0b6d-d251-4475-8984-d4232e8b5376", + "parentUUID": "0fe968a2-d6da-4819-a3c4-ef073e6974eb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Home Page : Product quick view\"", + "fullTitle": "FO - Home Page : Product quick view \"after all\" hook in \"FO - Home Page : Product quick view\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6cda3f26-8271-4ee0-b2d4-738f41308d50", + "parentUUID": "0fe968a2-d6da-4819-a3c4-ef073e6974eb", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "1c7eb63e-7651-4ba7-bdc3-2fec47c6deab", + "title": "PRE-TEST: Create product 'Out of stock not allowed'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'Out of stock not allowed'\"", + "fullTitle": "FO - Home Page : Product quick view PRE-TEST: Create product 'Out of stock not allowed' \"before all\" hook in \"PRE-TEST: Create product 'Out of stock not allowed'\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "365daef1-2be3-4db9-bc11-86a15b84bc37", + "parentUUID": "1c7eb63e-7651-4ba7-bdc3-2fec47c6deab", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'Out of stock not allowed'\"", + "fullTitle": "FO - Home Page : Product quick view PRE-TEST: Create product 'Out of stock not allowed' \"after all\" hook in \"PRE-TEST: Create product 'Out of stock not allowed'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "aff07255-e7f9-4764-b99b-8b6a37f1cc7d", + "parentUUID": "1c7eb63e-7651-4ba7-bdc3-2fec47c6deab", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Home Page : Product quick view PRE-TEST: Create product 'Out of stock not allowed' should login in BO", + "timedOut": false, + "duration": 1753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8ffc669-9913-4eeb-b4d5-7cfc78a8c622", + "parentUUID": "1c7eb63e-7651-4ba7-bdc3-2fec47c6deab", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Home Page : Product quick view PRE-TEST: Create product 'Out of stock not allowed' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_preTest_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6ad7f5e-631b-431c-84fa-07cbb37253d6", + "parentUUID": "1c7eb63e-7651-4ba7-bdc3-2fec47c6deab", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "FO - Home Page : Product quick view PRE-TEST: Create product 'Out of stock not allowed' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_preTest_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cb42e17-b4f4-48b5-b479-8c46e31e199b", + "parentUUID": "1c7eb63e-7651-4ba7-bdc3-2fec47c6deab", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "FO - Home Page : Product quick view PRE-TEST: Create product 'Out of stock not allowed' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_preTest_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5208b72f-1079-4c38-81c7-f8b72763c78f", + "parentUUID": "1c7eb63e-7651-4ba7-bdc3-2fec47c6deab", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "FO - Home Page : Product quick view PRE-TEST: Create product 'Out of stock not allowed' should create product", + "timedOut": false, + "duration": 5574, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_preTest_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10a15183-6442-48e7-b4d6-ca2228f37e6f", + "parentUUID": "1c7eb63e-7651-4ba7-bdc3-2fec47c6deab", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a8ffc669-9913-4eeb-b4d5-7cfc78a8c622", + "a6ad7f5e-631b-431c-84fa-07cbb37253d6", + "5cb42e17-b4f4-48b5-b479-8c46e31e199b", + "5208b72f-1079-4c38-81c7-f8b72763c78f", + "10a15183-6442-48e7-b4d6-ca2228f37e6f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13398, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "02b09ea7-1c84-4d87-94f7-d8e37be44d15", + "title": "Quick view product with combinations", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Home Page : Product quick view Quick view product with combinations should open the shop page", + "timedOut": false, + "duration": 574, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65a5a55b-7659-455e-b29a-2393f29f72e1", + "parentUUID": "02b09ea7-1c84-4d87-94f7-d8e37be44d15", + "isHook": false, + "skipped": false + }, + { + "title": "should quick view the product 'The best is yet to come' Framed poster'", + "fullTitle": "FO - Home Page : Product quick view Quick view product with combinations should quick view the product 'The best is yet to come' Framed poster'", + "timedOut": false, + "duration": 480, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_quickViewProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickViewProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.quickViewProduct(page, 3)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isQuickViewProductModalVisible(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f824564-3359-490e-80dc-c6e4b580cf03", + "parentUUID": "02b09ea7-1c84-4d87-94f7-d8e37be44d15", + "isHook": false, + "skipped": false + }, + { + "title": "should check product information", + "fullTitle": "FO - Home Page : Product quick view Quick view product with combinations should check product information", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, resultAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromQuickViewModal(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_6.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_6.combinations[0].price),\n (0, chai_1.expect)(result.taxShippingDeliveryLabel).to.equal('Tax included'),\n (0, chai_1.expect)(result.shortDescription).to.equal(products_1.default.demo_6.summary),\n (0, chai_1.expect)(result.coverImage).to.contains(products_1.default.demo_6.coverImage),\n (0, chai_1.expect)(result.thumbImage).to.contains(products_1.default.demo_6.thumbImage),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getSelectedAttributesFromQuickViewModal(page, defaultAttributes)];\n case 4:\n resultAttributes = _a.sent();\n (0, chai_1.expect)(resultAttributes.length).to.be.equal(1);\n (0, chai_1.expect)(resultAttributes[0].name).to.be.equal(defaultAttributes.name);\n (0, chai_1.expect)(resultAttributes[0].value).to.be.equal(defaultAttributes.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dee99b82-d295-4e9f-9315-e0eef24c0b86", + "parentUUID": "02b09ea7-1c84-4d87-94f7-d8e37be44d15", + "isHook": false, + "skipped": false + }, + { + "title": "should change combination and check product information", + "fullTitle": "FO - Home Page : Product quick view Quick view product with combinations should change combination and check product information", + "timedOut": false, + "duration": 186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_changeCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, resultAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeAttributes(page, attributes)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromQuickViewModal(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_6.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_6.combinations[1].price),\n (0, chai_1.expect)(result.shortDescription).to.equal(products_1.default.demo_6.summary),\n (0, chai_1.expect)(result.coverImage).to.contains(products_1.default.demo_6.coverImage),\n (0, chai_1.expect)(result.thumbImage).to.contains(products_1.default.demo_6.thumbImage),\n ])];\n case 4:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getSelectedAttributesFromQuickViewModal(page, attributes)];\n case 5:\n resultAttributes = _a.sent();\n (0, chai_1.expect)(resultAttributes.length).to.be.equal(1);\n (0, chai_1.expect)(resultAttributes[0].name).to.be.equal(attributes.name);\n (0, chai_1.expect)(resultAttributes[0].value).to.be.equal(attributes.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff2c19f3-79a4-404d-9ffa-1fb4fcff7855", + "parentUUID": "02b09ea7-1c84-4d87-94f7-d8e37be44d15", + "isHook": false, + "skipped": false + }, + { + "title": "should change the product quantity and click on add to cart", + "fullTitle": "FO - Home Page : Product quick view Quick view product with combinations should change the product quantity and click on add to cart", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeQuantity(page, attributesQty)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addToCartByQuickView(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isBlockCartModalVisible(page)];\n case 4:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5012098b-fd36-4417-a807-c5e934b5a107", + "parentUUID": "02b09ea7-1c84-4d87-94f7-d8e37be44d15", + "isHook": false, + "skipped": false + }, + { + "title": "should click on continue shopping and check that the modal is not visible", + "fullTitle": "FO - Home Page : Product quick view Quick view product with combinations should click on continue shopping and check that the modal is not visible", + "timedOut": false, + "duration": 220, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_clickOnContinueShopping\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnContinueShopping', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.continueShopping(page)];\n case 2:\n isNotVisible = _a.sent();\n (0, chai_1.expect)(isNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "706f6bdf-f4d7-4a40-8f11-c6a534c58461", + "parentUUID": "02b09ea7-1c84-4d87-94f7-d8e37be44d15", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "65a5a55b-7659-455e-b29a-2393f29f72e1", + "1f824564-3359-490e-80dc-c6e4b580cf03", + "dee99b82-d295-4e9f-9315-e0eef24c0b86", + "ff2c19f3-79a4-404d-9ffa-1fb4fcff7855", + "5012098b-fd36-4417-a807-c5e934b5a107", + "706f6bdf-f4d7-4a40-8f11-c6a534c58461" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2376, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2b632c3e-612e-4bb3-b06e-c6a736acaeb1", + "title": "Quick view simple product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should quick view the product 'Mug The best is yet to come'", + "fullTitle": "FO - Home Page : Product quick view Quick view simple product should quick view the product 'Mug The best is yet to come'", + "timedOut": false, + "duration": 538, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_quickViewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickViewProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.quickViewProduct(page, 6)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isQuickViewProductModalVisible(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "872b8738-2fc9-4c57-abe4-3590591ebe5f", + "parentUUID": "2b632c3e-612e-4bb3-b06e-c6a736acaeb1", + "isHook": false, + "skipped": false + }, + { + "title": "should check product information", + "fullTitle": "FO - Home Page : Product quick view Quick view simple product should check product information", + "timedOut": false, + "duration": 35, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_checkSimpleProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSimpleProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromQuickViewModal(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_11.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_11.finalPrice),\n (0, chai_1.expect)(result.taxShippingDeliveryLabel).to.equal('Tax included'),\n (0, chai_1.expect)(result.shortDescription).to.equal(products_1.default.demo_11.summary),\n (0, chai_1.expect)(result.coverImage).to.contains(products_1.default.demo_11.coverImage),\n (0, chai_1.expect)(result.thumbImage).to.contains(products_1.default.demo_11.thumbImage),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1a70948-1f93-4b55-8479-7b11c46840e4", + "parentUUID": "2b632c3e-612e-4bb3-b06e-c6a736acaeb1", + "isHook": false, + "skipped": false + }, + { + "title": "should change the product quantity and click on add to cart", + "fullTitle": "FO - Home Page : Product quick view Quick view simple product should change the product quantity and click on add to cart", + "timedOut": false, + "duration": 1051, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeQuantity(page, attributesQty)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addToCartByQuickView(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isBlockCartModalVisible(page)];\n case 4:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ed35a39-c6bf-484e-af61-677505979888", + "parentUUID": "2b632c3e-612e-4bb3-b06e-c6a736acaeb1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on continue shopping and check that the modal is not visible", + "fullTitle": "FO - Home Page : Product quick view Quick view simple product should click on continue shopping and check that the modal is not visible", + "timedOut": false, + "duration": 222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_clickOnContinueShopping2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnContinueShopping2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.continueShopping(page)];\n case 2:\n isNotVisible = _a.sent();\n (0, chai_1.expect)(isNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47c28e8f-8caa-433b-8470-c35d94733b54", + "parentUUID": "2b632c3e-612e-4bb3-b06e-c6a736acaeb1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "872b8738-2fc9-4c57-abe4-3590591ebe5f", + "c1a70948-1f93-4b55-8479-7b11c46840e4", + "5ed35a39-c6bf-484e-af61-677505979888", + "47c28e8f-8caa-433b-8470-c35d94733b54" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1846, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "199a8047-f8d0-4601-a302-93c6e75d7554", + "title": "Quick view customized product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to all products page", + "fullTitle": "FO - Home Page : Product quick view Quick view customized product should go to all products page", + "timedOut": false, + "duration": 1078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_goToAllProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd6d4186-2035-408a-a19a-720dff8ffc0c", + "parentUUID": "199a8047-f8d0-4601-a302-93c6e75d7554", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the second page and quick view the product 'Customizable mug'", + "fullTitle": "FO - Home Page : Product quick view Quick view customized product should go to the second page and quick view the product 'Customizable mug'", + "timedOut": false, + "duration": 699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_quickViewCustomizedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickViewCustomizedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToNextPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.quickViewProduct(page, 7)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isQuickViewProductModalVisible(page)];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41ed7cdf-ccda-4c57-ba83-305fa9281d26", + "parentUUID": "199a8047-f8d0-4601-a302-93c6e75d7554", + "isHook": false, + "skipped": false + }, + { + "title": "should check product information", + "fullTitle": "FO - Home Page : Product quick view Quick view customized product should check product information", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_checkCustomizedProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomizedProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromQuickViewModal(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_14.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_14.price),\n (0, chai_1.expect)(result.taxShippingDeliveryLabel).to.equal('Tax included'),\n (0, chai_1.expect)(result.shortDescription).to.equal(products_1.default.demo_14.summary),\n (0, chai_1.expect)(result.coverImage).to.contains(products_1.default.demo_14.coverImage),\n (0, chai_1.expect)(result.thumbImage).to.contains(products_1.default.demo_14.thumbImage),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5dc0ac2-e3cf-4ebe-b5ee-e00eec00f837", + "parentUUID": "199a8047-f8d0-4601-a302-93c6e75d7554", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Add to cart' button is disabled", + "fullTitle": "FO - Home Page : Product quick view Quick view customized product should check that 'Add to cart' button is disabled", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_checkAddToCartButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddToCartButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isAddToCartButtonEnabled(page)];\n case 2:\n isEnabled = _a.sent();\n (0, chai_1.expect)(isEnabled, 'Add to cart button is not disabled').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d84b4e0-6bd3-4cfa-b47d-bbc694bf198d", + "parentUUID": "199a8047-f8d0-4601-a302-93c6e75d7554", + "isHook": false, + "skipped": false + }, + { + "title": "should close the quick view modal", + "fullTitle": "FO - Home Page : Product quick view Quick view customized product should close the quick view modal", + "timedOut": false, + "duration": 432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_closeQuickOptionModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isQuickViewModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeQuickOptionModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closeQuickViewModal(page)];\n case 2:\n isQuickViewModalClosed = _a.sent();\n (0, chai_1.expect)(isQuickViewModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79a75d74-b31e-47df-a230-7901a2c0bbd5", + "parentUUID": "199a8047-f8d0-4601-a302-93c6e75d7554", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dd6d4186-2035-408a-a19a-720dff8ffc0c", + "41ed7cdf-ccda-4c57-ba83-305fa9281d26", + "a5dc0ac2-e3cf-4ebe-b5ee-e00eec00f837", + "5d84b4e0-6bd3-4cfa-b47d-bbc694bf198d", + "79a75d74-b31e-47df-a230-7901a2c0bbd5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2255, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c72b65f9-9b46-4a4b-9a8c-58de25323185", + "title": "Quick view product out of stock not allowed", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should quick view the product 'Out of stock not allowed'", + "fullTitle": "FO - Home Page : Product quick view Quick view product out of stock not allowed should quick view the product 'Out of stock not allowed'", + "timedOut": false, + "duration": 668, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_quickViewProductOutOfStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickViewProductOutOfStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.quickViewProduct(page, 8)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isQuickViewProductModalVisible(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd7f7c10-a07f-44e1-920f-e3377fcfcb16", + "parentUUID": "c72b65f9-9b46-4a4b-9a8c-58de25323185", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Add to cart' button is disabled", + "fullTitle": "FO - Home Page : Product quick view Quick view product out of stock not allowed should check that 'Add to cart' button is disabled", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_checkAddToCartButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddToCartButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isAddToCartButtonEnabled(page)];\n case 2:\n isEnabled = _a.sent();\n (0, chai_1.expect)(isEnabled, 'Add to cart button is not disabled').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30c2f551-b242-4f17-b362-e8d5f0cba17f", + "parentUUID": "c72b65f9-9b46-4a4b-9a8c-58de25323185", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product availability", + "fullTitle": "FO - Home Page : Product quick view Quick view product out of stock not allowed should check the product availability", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_checkProductAvailability\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var availability;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductAvailability', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductAvailabilityText(page)];\n case 2:\n availability = _a.sent();\n (0, chai_1.expect)(availability).to.contains('Out-of-Stock');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8a5c80a-219a-41e2-a95a-c3b9cc6a9bc5", + "parentUUID": "c72b65f9-9b46-4a4b-9a8c-58de25323185", + "isHook": false, + "skipped": false + }, + { + "title": "should close the quick view modal", + "fullTitle": "FO - Home Page : Product quick view Quick view product out of stock not allowed should close the quick view modal", + "timedOut": false, + "duration": 469, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_closeQuickOptionModal2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isQuickViewModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeQuickOptionModal2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closeQuickViewModal(page)];\n case 2:\n isQuickViewModalClosed = _a.sent();\n (0, chai_1.expect)(isQuickViewModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0236e749-2437-4e15-b612-c46a70a5d7f6", + "parentUUID": "c72b65f9-9b46-4a4b-9a8c-58de25323185", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dd7f7c10-a07f-44e1-920f-e3377fcfcb16", + "30c2f551-b242-4f17-b362-e8d5f0cba17f", + "e8a5c80a-219a-41e2-a95a-c3b9cc6a9bc5", + "0236e749-2437-4e15-b612-c46a70a5d7f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1152, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f3c1996e-b956-4e8d-943f-27294e71741b", + "title": "POST-TEST: Delete product 'Out of stock not allowed'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "file": "/campaigns/functional/FO/classic/06_homePage/04_productQuickView.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Out of stock not allowed'\"", + "fullTitle": "FO - Home Page : Product quick view POST-TEST: Delete product 'Out of stock not allowed' \"before all\" hook in \"POST-TEST: Delete product 'Out of stock not allowed'\"", + "timedOut": false, + "duration": 59, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5d4a888-6828-49b1-9d19-4f789fbb4977", + "parentUUID": "f3c1996e-b956-4e8d-943f-27294e71741b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Out of stock not allowed'\"", + "fullTitle": "FO - Home Page : Product quick view POST-TEST: Delete product 'Out of stock not allowed' \"after all\" hook in \"POST-TEST: Delete product 'Out of stock not allowed'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bf9a1363-fe24-448d-95d2-59688464bac6", + "parentUUID": "f3c1996e-b956-4e8d-943f-27294e71741b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Home Page : Product quick view POST-TEST: Delete product 'Out of stock not allowed' should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cab85c66-d93b-4f0c-8f4d-bbc7c724d73a", + "parentUUID": "f3c1996e-b956-4e8d-943f-27294e71741b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Home Page : Product quick view POST-TEST: Delete product 'Out of stock not allowed' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3930, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_postTest_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "683ac8b0-b103-40f1-89e9-0c6dd309350c", + "parentUUID": "f3c1996e-b956-4e8d-943f-27294e71741b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Home Page : Product quick view POST-TEST: Delete product 'Out of stock not allowed' should reset all filters", + "timedOut": false, + "duration": 2942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_postTest_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75ffb0b3-b713-4573-ab1d-1278b3393140", + "parentUUID": "f3c1996e-b956-4e8d-943f-27294e71741b", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "FO - Home Page : Product quick view POST-TEST: Delete product 'Out of stock not allowed' should click on delete product button", + "timedOut": false, + "duration": 277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_postTest_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcf855d4-c5ec-410b-b2cf-fa75118f2b8f", + "parentUUID": "f3c1996e-b956-4e8d-943f-27294e71741b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "FO - Home Page : Product quick view POST-TEST: Delete product 'Out of stock not allowed' should delete product", + "timedOut": false, + "duration": 673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_postTest_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0be8576f-94a3-46bc-ac3e-62d43b3d10f7", + "parentUUID": "f3c1996e-b956-4e8d-943f-27294e71741b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "FO - Home Page : Product quick view POST-TEST: Delete product 'Out of stock not allowed' should reset filter", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_homePage_productQuickView_postTest_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74738f72-fd7d-4ad1-b067-1ac019f05948", + "parentUUID": "f3c1996e-b956-4e8d-943f-27294e71741b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cab85c66-d93b-4f0c-8f4d-bbc7c724d73a", + "683ac8b0-b103-40f1-89e9-0c6dd309350c", + "75ffb0b3-b713-4573-ab1d-1278b3393140", + "fcf855d4-c5ec-410b-b2cf-fa75118f2b8f", + "0be8576f-94a3-46bc-ac3e-62d43b3d10f7", + "74738f72-fd7d-4ad1-b067-1ac019f05948" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9582, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "title": "FO - Search Page : Search product and consult autocomplete list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/07_search/01_consultAutocompleteList.ts", + "file": "/campaigns/functional/FO/classic/07_search/01_consultAutocompleteList.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Search Page : Search product and consult autocomplete list\"", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list \"before all\" hook in \"FO - Search Page : Search product and consult autocomplete list\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6df7d093-2cad-4d4b-9804-b0b7b3caf8b4", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Search Page : Search product and consult autocomplete list\"", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list \"after all\" hook in \"FO - Search Page : Search product and consult autocomplete list\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "28ce3cb3-e7d6-4ae0-8a09-e4c80c20d4ed", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list should go to FO", + "timedOut": false, + "duration": 593, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_consultAutocompleteList_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8aa3913-5e94-4c5b-b21b-4a0b7c55f0a8", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": false, + "skipped": false + }, + { + "title": "should check the autocomplete list", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list should check the autocomplete list", + "timedOut": false, + "duration": 836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_consultAutocompleteList_checkAutocompleteList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var searchValue, numSearchResults, numResults, inputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAutocompleteList', baseContext)];\n case 1:\n _a.sent();\n searchValue = 'test';\n numSearchResults = 7;\n return [4 /*yield*/, home_1.homePage.countAutocompleteSearchResult(page, searchValue)];\n case 2:\n numResults = _a.sent();\n (0, chai_1.expect)(numResults).equal(numSearchResults);\n return [4 /*yield*/, home_1.homePage.getSearchValue(page)];\n case 3:\n inputValue = _a.sent();\n (0, chai_1.expect)(inputValue).equal(searchValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5d82cbf-15bc-4512-b6da-230e7e239597", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": false, + "skipped": false + }, + { + "title": "should click outside the autocomplete list and check that the list is not displayed", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list should click outside the autocomplete list and check that the list is not displayed", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_consultAutocompleteList_clickOutsideAutocompleteList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasAutocompleteList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOutsideAutocompleteList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closeAutocompleteSearch(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isAutocompleteSearchResultVisible(page)];\n case 3:\n hasAutocompleteList = _a.sent();\n (0, chai_1.expect)(hasAutocompleteList).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c80d1997-420e-4770-901a-037a8190ed44", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": false, + "skipped": false + }, + { + "title": "should check the autocomplete list with the value Mug", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list should check the autocomplete list with the value Mug", + "timedOut": false, + "duration": 826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_consultAutocompleteList_checkAutocompleteList_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numResults, inputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAutocompleteList_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.countAutocompleteSearchResult(page, search.searchValue)];\n case 2:\n numResults = _a.sent();\n (0, chai_1.expect)(numResults).equal(search.numResults);\n return [4 /*yield*/, home_1.homePage.getSearchValue(page)];\n case 3:\n inputValue = _a.sent();\n (0, chai_1.expect)(inputValue).equal(search.searchValue);\n return [4 /*yield*/, home_1.homePage.closeAutocompleteSearch(page)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dd85814-a27f-4312-aa02-ce2d2ce47748", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": false, + "skipped": false + }, + { + "title": "should check the autocomplete list with the value T-sh", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list should check the autocomplete list with the value T-sh", + "timedOut": false, + "duration": 826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_consultAutocompleteList_checkAutocompleteList_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numResults, inputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAutocompleteList_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.countAutocompleteSearchResult(page, search.searchValue)];\n case 2:\n numResults = _a.sent();\n (0, chai_1.expect)(numResults).equal(search.numResults);\n return [4 /*yield*/, home_1.homePage.getSearchValue(page)];\n case 3:\n inputValue = _a.sent();\n (0, chai_1.expect)(inputValue).equal(search.searchValue);\n return [4 /*yield*/, home_1.homePage.closeAutocompleteSearch(page)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27ce8fdc-d3f2-452e-bb71-f9f005799075", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": false, + "skipped": false + }, + { + "title": "should check the autocomplete list with the value Notebook", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list should check the autocomplete list with the value Notebook", + "timedOut": false, + "duration": 829, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_consultAutocompleteList_checkAutocompleteList_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numResults, inputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkAutocompleteList_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.countAutocompleteSearchResult(page, search.searchValue)];\n case 2:\n numResults = _a.sent();\n (0, chai_1.expect)(numResults).equal(search.numResults);\n return [4 /*yield*/, home_1.homePage.getSearchValue(page)];\n case 3:\n inputValue = _a.sent();\n (0, chai_1.expect)(inputValue).equal(search.searchValue);\n return [4 /*yield*/, home_1.homePage.closeAutocompleteSearch(page)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9bb7da8-3ffb-40b3-a73a-ee1e1fa91598", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": false, + "skipped": false + }, + { + "title": "should check the autocomplete list with a string with less than 3 characters", + "fullTitle": "FO - Search Page : Search product and consult autocomplete list should check the autocomplete list with a string with less than 3 characters", + "timedOut": false, + "duration": 2026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_consultAutocompleteList_checkAutocompleteListSmallString\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasSearchResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAutocompleteListSmallString', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.hasAutocompleteSearchResult(page, 'te')];\n case 2:\n hasSearchResult = _a.sent();\n (0, chai_1.expect)(hasSearchResult, 'There are results in autocomplete search').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c50af051-67ee-4779-9ee4-711c23777291", + "parentUUID": "1dcaceec-4eaa-49b4-b884-d774b07c9f14", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a8aa3913-5e94-4c5b-b21b-4a0b7c55f0a8", + "f5d82cbf-15bc-4512-b6da-230e7e239597", + "c80d1997-420e-4770-901a-037a8190ed44", + "8dd85814-a27f-4312-aa02-ce2d2ce47748", + "27ce8fdc-d3f2-452e-bb71-f9f005799075", + "a9bb7da8-3ffb-40b3-a73a-ee1e1fa91598", + "c50af051-67ee-4779-9ee4-711c23777291" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7945, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2910c934-6ead-4c14-ac40-0645966f4486", + "title": "FO - Search Page : Search a product and validate", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/07_search/02_searchProduct.ts", + "file": "/campaigns/functional/FO/classic/07_search/02_searchProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Search Page : Search a product and validate\"", + "fullTitle": "FO - Search Page : Search a product and validate \"before all\" hook in \"FO - Search Page : Search a product and validate\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5282db2-3b7a-4e5a-acfc-2608b4d7a0d0", + "parentUUID": "2910c934-6ead-4c14-ac40-0645966f4486", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Search Page : Search a product and validate\"", + "fullTitle": "FO - Search Page : Search a product and validate \"after all\" hook in \"FO - Search Page : Search a product and validate\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a412e14e-22fb-4ef0-aef2-59e72bc6c5d3", + "parentUUID": "2910c934-6ead-4c14-ac40-0645966f4486", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Search Page : Search a product and validate should go to FO home page", + "timedOut": false, + "duration": 440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_searchProduct_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4017654b-8bc0-4c8b-87d7-79350f23440d", + "parentUUID": "2910c934-6ead-4c14-ac40-0645966f4486", + "isHook": false, + "skipped": false + }, + { + "title": "should check autocomplete", + "fullTitle": "FO - Search Page : Search a product and validate should check autocomplete", + "timedOut": false, + "duration": 929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_searchProduct_checkAutocomplete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numResults, results;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAutocomplete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.countAutocompleteSearchResult(page, products_1.default.demo_8.name)];\n case 2:\n numResults = _a.sent();\n (0, chai_1.expect)(numResults).equal(3);\n return [4 /*yield*/, home_1.homePage.getAutocompleteSearchResult(page, products_1.default.demo_8.name)];\n case 3:\n results = _a.sent();\n (0, chai_1.expect)(results).contains('notebook');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10e0d6fb-96e7-44d9-82a7-5b3af49845cd", + "parentUUID": "2910c934-6ead-4c14-ac40-0645966f4486", + "isHook": false, + "skipped": false + }, + { + "title": "should choose product on the autocomplete list", + "fullTitle": "FO - Search Page : Search a product and validate should choose product on the autocomplete list", + "timedOut": false, + "duration": 948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_searchProduct_chooseProductOnList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, inputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseProductOnList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickAutocompleteSearchResult(page, products_1.default.demo_8.name, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_8.name);\n return [4 /*yield*/, home_1.homePage.getSearchValue(page)];\n case 4:\n inputValue = _a.sent();\n (0, chai_1.expect)(inputValue).to.have.lengthOf(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1c35359-1886-45ed-9a3a-ddd696633383", + "parentUUID": "2910c934-6ead-4c14-ac40-0645966f4486", + "isHook": false, + "skipped": false + }, + { + "title": "should click on logo link and go to home page", + "fullTitle": "FO - Search Page : Search a product and validate should click on logo link and go to home page", + "timedOut": false, + "duration": 749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_searchProduct_clickLogoLinkAndGoHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickLogoLinkAndGoHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.clickOnHeaderLink(page, 'Logo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55afad65-f633-42ad-9322-fc106e64baba", + "parentUUID": "2910c934-6ead-4c14-ac40-0645966f4486", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Enter in autocomplete list", + "fullTitle": "FO - Search Page : Search a product and validate should click on Enter in autocomplete list", + "timedOut": false, + "duration": 799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_searchProduct_searchProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, inputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_8.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [4 /*yield*/, searchResults_1.searchResultsPage.getSearchValue(page)];\n case 4:\n inputValue = _a.sent();\n (0, chai_1.expect)(inputValue).is.equal(products_1.default.demo_8.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "616855e8-be24-432a-a72a-535551134ec9", + "parentUUID": "2910c934-6ead-4c14-ac40-0645966f4486", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4017654b-8bc0-4c8b-87d7-79350f23440d", + "10e0d6fb-96e7-44d9-82a7-5b3af49845cd", + "d1c35359-1886-45ed-9a3a-ddd696633383", + "55afad65-f633-42ad-9322-fc106e64baba", + "616855e8-be24-432a-a72a-535551134ec9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3865, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a6f44468-0965-49a5-a5c9-7013d821f899", + "title": "FO - Search Page : Search product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/07_search/03_searchNoResult.ts", + "file": "/campaigns/functional/FO/classic/07_search/03_searchNoResult.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Search Page : Search product\"", + "fullTitle": "FO - Search Page : Search product \"before all\" hook in \"FO - Search Page : Search product\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7184bc6-72f0-4028-b331-37d213e956e8", + "parentUUID": "a6f44468-0965-49a5-a5c9-7013d821f899", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Search Page : Search product\"", + "fullTitle": "FO - Search Page : Search product \"after all\" hook in \"FO - Search Page : Search product\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bd2ba027-99b2-4410-8bd2-d587219adc02", + "parentUUID": "a6f44468-0965-49a5-a5c9-7013d821f899", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Search Page : Search product should go to FO home page", + "timedOut": false, + "duration": 439, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_searchNoResult_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a8b9432-610e-4f91-9a0a-889e2899da86", + "parentUUID": "a6f44468-0965-49a5-a5c9-7013d821f899", + "isHook": false, + "skipped": false + }, + { + "title": "should search a string with less than 3 characters", + "fullTitle": "FO - Search Page : Search product should search a string with less than 3 characters", + "timedOut": false, + "duration": 2754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_searchNoResult_searchSmallString\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasSearchResult, pageTitle, hasResults, searchInputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchSmallString', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.hasAutocompleteSearchResult(page, 'te')];\n case 2:\n hasSearchResult = _a.sent();\n (0, chai_1.expect)(hasSearchResult, 'There are results in autocomplete search').to.eq(false);\n return [4 /*yield*/, home_1.homePage.searchProduct(page, 'te')];\n case 3:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [4 /*yield*/, searchResults_1.searchResultsPage.hasResults(page)];\n case 5:\n hasResults = _a.sent();\n (0, chai_1.expect)(hasResults, 'There are results!').to.eq(false);\n return [4 /*yield*/, searchResults_1.searchResultsPage.getSearchValue(page)];\n case 6:\n searchInputValue = _a.sent();\n (0, chai_1.expect)(searchInputValue, 'A search value exists').to.be.equal('te');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30f1fba1-bb6c-43d3-9fc6-a1725e1b7606", + "parentUUID": "a6f44468-0965-49a5-a5c9-7013d821f899", + "isHook": false, + "skipped": false + }, + { + "title": "should search an empty string", + "fullTitle": "FO - Search Page : Search product should search an empty string", + "timedOut": false, + "duration": 681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_search_searchNoResult_searchEmptyString\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, hasResults, searchInputValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchEmptyString', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, '')];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [4 /*yield*/, searchResults_1.searchResultsPage.hasResults(page)];\n case 4:\n hasResults = _a.sent();\n (0, chai_1.expect)(hasResults, 'There are results!').to.eq(false);\n return [4 /*yield*/, searchResults_1.searchResultsPage.getSearchValue(page)];\n case 5:\n searchInputValue = _a.sent();\n (0, chai_1.expect)(searchInputValue, 'A search value exists').to.be.equal('');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f4933fa-6f8e-4b19-8c8b-a1293da3d207", + "parentUUID": "a6f44468-0965-49a5-a5c9-7013d821f899", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9a8b9432-610e-4f91-9a0a-889e2899da86", + "30f1fba1-bb6c-43d3-9fc6-a1725e1b7606", + "8f4933fa-6f8e-4b19-8c8b-a1293da3d207" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3874, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "193af464-934a-49c4-8e45-0c6e88623777", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 414, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e86ab8a9-d693-4987-9803-c9222fb041e3", + "parentUUID": "193af464-934a-49c4-8e45-0c6e88623777", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9048c436-63e4-40ce-b7eb-d96a8b2369f8", + "parentUUID": "193af464-934a-49c4-8e45-0c6e88623777", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da05631c-dffc-461d-9f59-de3bce7d6347", + "parentUUID": "193af464-934a-49c4-8e45-0c6e88623777", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "title": "FO - Menu and Navigation : Check categories and subcategories links in header", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/01_navigateInCategories/01_consultCategoriesInHeader.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/01_navigateInCategories/01_consultCategoriesInHeader.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Menu and Navigation : Check categories and subcategories links in header\"", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header \"before all\" hook in \"FO - Menu and Navigation : Check categories and subcategories links in header\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54e06f8e-8dfb-4e5f-a0a3-17fb2a95b0ab", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Menu and Navigation : Check categories and subcategories links in header\"", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header \"after all\" hook in \"FO - Menu and Navigation : Check categories and subcategories links in header\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fff4e31c-93af-451e-85be-8ea7cdcaa5c9", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header should go to FO home page", + "timedOut": false, + "duration": 595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_consultCategoriesInHeader_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a156f175-de4c-4b47-a2bf-3f6fa1b1de18", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check category 'Clothes' link", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header should check category 'Clothes' link", + "timedOut": false, + "duration": 983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_consultCategoriesInHeader_checkClothesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.name, \"Link\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, test.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2710ba75-5fae-48b7-8662-8730500f773c", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check category 'Accessories' link", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header should check category 'Accessories' link", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_consultCategoriesInHeader_checkAccessoriesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.name, \"Link\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, test.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "066259c4-8199-4cd7-b757-9f6f67302049", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check category 'Art' link", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header should check category 'Art' link", + "timedOut": false, + "duration": 851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_consultCategoriesInHeader_checkArtLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.name, \"Link\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, test.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf412627-6bcf-4114-9fb4-1b4aeeeb7ce0", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check subcategory 'Men' link", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header should check subcategory 'Men' link", + "timedOut": false, + "duration": 868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_consultCategoriesInHeader_checkMenLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.subcategory.name, \"Link\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToSubCategory(page, test.args.category.id, test.args.subcategory.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.args.subcategory.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "baa8549c-5e65-4524-8182-9c973f66230a", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check subcategory 'Women' link", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header should check subcategory 'Women' link", + "timedOut": false, + "duration": 859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_consultCategoriesInHeader_checkWomenLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.subcategory.name, \"Link\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToSubCategory(page, test.args.category.id, test.args.subcategory.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.args.subcategory.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c09a2493-9b81-43b3-8c6d-c6d5a899b8e8", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check subcategory 'Stationery' link", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header should check subcategory 'Stationery' link", + "timedOut": false, + "duration": 864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_consultCategoriesInHeader_checkStationeryLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.subcategory.name, \"Link\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToSubCategory(page, test.args.category.id, test.args.subcategory.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.args.subcategory.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4a69218-7417-4683-9a07-32a91070c648", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check subcategory 'Home Accessories' link", + "fullTitle": "FO - Menu and Navigation : Check categories and subcategories links in header should check subcategory 'Home Accessories' link", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_consultCategoriesInHeader_checkHome AccessoriesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"check\".concat(test.args.subcategory.name, \"Link\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToSubCategory(page, test.args.category.id, test.args.subcategory.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(test.args.subcategory.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6737523-3716-4137-9a42-b23617f9e1c2", + "parentUUID": "c7e3558c-0fda-4211-a7e4-173ba3bb44f0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a156f175-de4c-4b47-a2bf-3f6fa1b1de18", + "2710ba75-5fae-48b7-8662-8730500f773c", + "066259c4-8199-4cd7-b757-9f6f67302049", + "bf412627-6bcf-4114-9fb4-1b4aeeeb7ce0", + "baa8549c-5e65-4524-8182-9c973f66230a", + "c09a2493-9b81-43b3-8c6d-c6d5a899b8e8", + "e4a69218-7417-4683-9a07-32a91070c648", + "a6737523-3716-4137-9a42-b23617f9e1c2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6829, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "title": "FO - Menu and Navigation : Breadcrumb", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/01_navigateInCategories/02_breadcrumb.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/01_navigateInCategories/02_breadcrumb.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Menu and Navigation : Breadcrumb\"", + "fullTitle": "FO - Menu and Navigation : Breadcrumb \"before all\" hook in \"FO - Menu and Navigation : Breadcrumb\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef4a6b77-a347-42cf-9e02-86bcb94ef873", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Menu and Navigation : Breadcrumb\"", + "fullTitle": "FO - Menu and Navigation : Breadcrumb \"after all\" hook in \"FO - Menu and Navigation : Breadcrumb\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b1bc02c9-a549-457f-b13a-dca15987da5b", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should open the shop page", + "timedOut": false, + "duration": 491, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "acbf2718-a01f-48ed-a5dc-af0f42c94381", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the category Clothes", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should go to the category Clothes", + "timedOut": false, + "duration": 836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_checkClothesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkClothesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, categories_1.default.clothes.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(categories_1.default.clothes.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "303c55d8-5d45-4afb-9bcb-ee79cd423ee7", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should check breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should check breadcrumb", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_checkBreadcrumb1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var breadcrumbText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBreadcrumb1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getBreadcrumbText(page)];\n case 2:\n breadcrumbText = _a.sent();\n (0, chai_1.expect)(breadcrumbText).to.eq('Home Clothes');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "206f8174-8187-4572-b112-7b5478f26e0a", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the subcategory Men", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should go to the subcategory Men", + "timedOut": false, + "duration": 842, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_checkMenLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMenLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToSubCategory(page, categories_1.default.clothes.id, categories_1.default.men.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(categories_1.default.men.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "438342bc-37a9-444b-bf77-48c8d704b2ed", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should check breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should check breadcrumb", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_checkBreadcrumb2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var breadcrumbText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBreadcrumb2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getBreadcrumbText(page)];\n case 2:\n breadcrumbText = _a.sent();\n (0, chai_1.expect)(breadcrumbText).to.eq('Home Clothes Men');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d56dbbb2-1d45-423b-9f3f-794bbe0dd0af", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on clothes link from the breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should click on clothes link from the breadcrumb", + "timedOut": false, + "duration": 773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_clickOnClothesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnClothesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clickOnBreadCrumbLink(page, 'clothes')];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(categories_1.default.clothes.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70cb2003-b840-4672-899a-bbf5daafc6c6", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should check breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should check breadcrumb", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_checkBreadcrumb3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var breadcrumbText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBreadcrumb3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getBreadcrumbText(page)];\n case 2:\n breadcrumbText = _a.sent();\n (0, chai_1.expect)(breadcrumbText).to.eq('Home Clothes');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0494ea3a-71c5-4bc6-b97f-cf814c323ae2", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Home link from the breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should click on Home link from the breadcrumb", + "timedOut": false, + "duration": 747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_clickOnHomeLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnHomeLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clickOnBreadCrumbLink(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87d687f3-25fb-4c27-883f-16bfe0408220", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the subcategory stationery", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should go to the subcategory stationery", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_checkStationeryLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStationeryLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToSubCategory(page, categories_1.default.accessories.id, categories_1.default.stationery.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(categories_1.default.stationery.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b98bc708-e6e4-4ccf-9d38-fde897f6e3b8", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should check breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should check breadcrumb", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_checkBreadcrumb4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var breadcrumbText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBreadcrumb4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getBreadcrumbText(page)];\n case 2:\n breadcrumbText = _a.sent();\n (0, chai_1.expect)(breadcrumbText).to.eq('Home Accessories Stationery');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87aaf5f2-d9f8-46df-ba20-f7f3e36e7347", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on accessories link from the breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should click on accessories link from the breadcrumb", + "timedOut": false, + "duration": 831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_clickOnAccessoriesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnAccessoriesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clickOnBreadCrumbLink(page, 'accessories')];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(categories_1.default.accessories.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46241117-7ce6-41e6-ac5e-95bbb2a2c08d", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should check breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should check breadcrumb", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_checkBreadcrumb5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var breadcrumbText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBreadcrumb5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getBreadcrumbText(page)];\n case 2:\n breadcrumbText = _a.sent();\n (0, chai_1.expect)(breadcrumbText).to.eq('Home Accessories');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "975a480d-688d-4364-b22c-7bf1f5e12aa8", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + }, + { + "title": "should click on Home link from the breadcrumb", + "fullTitle": "FO - Menu and Navigation : Breadcrumb should click on Home link from the breadcrumb", + "timedOut": false, + "duration": 789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_breadcrumb_clickOnHomeLink2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnHomeLink2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clickOnBreadCrumbLink(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a50e5dd1-2d2f-4975-b426-c17d33e266db", + "parentUUID": "32abbc6e-346d-4d4f-9e8a-bde0e3ebcbaa", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "acbf2718-a01f-48ed-a5dc-af0f42c94381", + "303c55d8-5d45-4afb-9bcb-ee79cd423ee7", + "206f8174-8187-4572-b112-7b5478f26e0a", + "438342bc-37a9-444b-bf77-48c8d704b2ed", + "d56dbbb2-1d45-423b-9f3f-794bbe0dd0af", + "70cb2003-b840-4672-899a-bbf5daafc6c6", + "0494ea3a-71c5-4bc6-b97f-cf814c323ae2", + "87d687f3-25fb-4c27-883f-16bfe0408220", + "b98bc708-e6e4-4ccf-9d38-fde897f6e3b8", + "87aaf5f2-d9f8-46df-ba20-f7f3e36e7347", + "46241117-7ce6-41e6-ac5e-95bbb2a2c08d", + "975a480d-688d-4364-b22c-7bf1f5e12aa8", + "a50e5dd1-2d2f-4975-b426-c17d33e266db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6274, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "title": "FO - Menu and Navigation : Side block categories", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/01_navigateInCategories/03_sideBlockCategories.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/01_navigateInCategories/03_sideBlockCategories.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Menu and Navigation : Side block categories\"", + "fullTitle": "FO - Menu and Navigation : Side block categories \"before all\" hook in \"FO - Menu and Navigation : Side block categories\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95c83ea6-9135-4ef0-a333-29fd8da1ebef", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Menu and Navigation : Side block categories\"", + "fullTitle": "FO - Menu and Navigation : Side block categories \"after all\" hook in \"FO - Menu and Navigation : Side block categories\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e8013cc6-d7d2-4395-8ca9-fc728b8d6d0e", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Menu and Navigation : Side block categories should go to FO home page", + "timedOut": false, + "duration": 457, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32bb0c1c-0530-4218-a2ab-41a9ea158f91", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on category 'Accessories'", + "fullTitle": "FO - Menu and Navigation : Side block categories should click on category 'Accessories'", + "timedOut": false, + "duration": 882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_goToCategory0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, arg.parent.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(arg.parent.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0fc8c26-380b-421c-b930-d7b31eb345e2", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should check category block 'Accessories'", + "fullTitle": "FO - Menu and Navigation : Side block categories should check category block 'Accessories'", + "timedOut": false, + "duration": 27, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_checkCategory0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasBlockCategories, numBlockCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.hasBlockCategories(page)];\n case 2:\n hasBlockCategories = _a.sent();\n (0, chai_1.expect)(hasBlockCategories).to.be.equal(true);\n return [4 /*yield*/, category_1.default.getNumBlockCategories(page)];\n case 3:\n numBlockCategories = _a.sent();\n (0, chai_1.expect)(numBlockCategories).to.be.equal(arg.parent.children.length);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0ef02fb-8fbb-40a1-a5be-61c0c3a81236", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on category 'Stationery' in sideBlock", + "fullTitle": "FO - Menu and Navigation : Side block categories should click on category 'Stationery' in sideBlock", + "timedOut": false, + "duration": 781, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_goToSideBlock0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToSideBlock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clickBlockCategory(page, arg.child.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(arg.child.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27fa47cf-6d8d-4008-ace9-4ad6a1324617", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should check category block 'Stationery'", + "fullTitle": "FO - Menu and Navigation : Side block categories should check category block 'Stationery'", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_checkSubCategory0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasBlockCategories, numBlockCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSubCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.hasBlockCategories(page)];\n case 2:\n hasBlockCategories = _a.sent();\n (0, chai_1.expect)(hasBlockCategories).to.be.equal(true);\n return [4 /*yield*/, category_1.default.getNumBlockCategories(page)];\n case 3:\n numBlockCategories = _a.sent();\n (0, chai_1.expect)(numBlockCategories).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "805a43be-303b-4dd4-8849-fcb29969bf17", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on category 'Clothes'", + "fullTitle": "FO - Menu and Navigation : Side block categories should click on category 'Clothes'", + "timedOut": false, + "duration": 780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_goToCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, arg.parent.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(arg.parent.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53988589-44d6-41cc-8ac5-e3d00f687d93", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should check category block 'Clothes'", + "fullTitle": "FO - Menu and Navigation : Side block categories should check category block 'Clothes'", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_checkCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasBlockCategories, numBlockCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.hasBlockCategories(page)];\n case 2:\n hasBlockCategories = _a.sent();\n (0, chai_1.expect)(hasBlockCategories).to.be.equal(true);\n return [4 /*yield*/, category_1.default.getNumBlockCategories(page)];\n case 3:\n numBlockCategories = _a.sent();\n (0, chai_1.expect)(numBlockCategories).to.be.equal(arg.parent.children.length);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff1ac6f8-3050-4daa-a17a-fb4d5d2fc7bb", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on category 'Women' in sideBlock", + "fullTitle": "FO - Menu and Navigation : Side block categories should click on category 'Women' in sideBlock", + "timedOut": false, + "duration": 738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_goToSideBlock1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToSideBlock\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clickBlockCategory(page, arg.child.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(arg.child.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8785238c-430d-4f2a-b973-3efedf2081f3", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should check category block 'Women'", + "fullTitle": "FO - Menu and Navigation : Side block categories should check category block 'Women'", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_checkSubCategory1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasBlockCategories, numBlockCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkSubCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.hasBlockCategories(page)];\n case 2:\n hasBlockCategories = _a.sent();\n (0, chai_1.expect)(hasBlockCategories).to.be.equal(true);\n return [4 /*yield*/, category_1.default.getNumBlockCategories(page)];\n case 3:\n numBlockCategories = _a.sent();\n (0, chai_1.expect)(numBlockCategories).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9df3b808-c188-452c-9d1b-e286cc3627f3", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on category 'Art'", + "fullTitle": "FO - Menu and Navigation : Side block categories should click on category 'Art'", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_goToCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, arg.parent.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(arg.parent.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76291cf8-558f-41d2-9d01-9e4f5729c8ca", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + }, + { + "title": "should check category block 'Art'", + "fullTitle": "FO - Menu and Navigation : Side block categories should check category block 'Art'", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigateInCategories_sideBlockCategories_checkCategory2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasBlockCategories, numBlockCategories;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkCategory\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.hasBlockCategories(page)];\n case 2:\n hasBlockCategories = _a.sent();\n (0, chai_1.expect)(hasBlockCategories).to.be.equal(true);\n return [4 /*yield*/, category_1.default.getNumBlockCategories(page)];\n case 3:\n numBlockCategories = _a.sent();\n (0, chai_1.expect)(numBlockCategories).to.be.equal(arg.parent.children.length);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fbcde49-6ec9-46d3-b421-9d2292ea91bc", + "parentUUID": "186bf42c-7aff-42a9-9f67-9b74d11ba10f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "32bb0c1c-0530-4218-a2ab-41a9ea158f91", + "c0fc8c26-380b-421c-b930-d7b31eb345e2", + "d0ef02fb-8fbb-40a1-a5be-61c0c3a81236", + "27fa47cf-6d8d-4008-ace9-4ad6a1324617", + "805a43be-303b-4dd4-8849-fcb29969bf17", + "53988589-44d6-41cc-8ac5-e3d00f687d93", + "ff1ac6f8-3050-4daa-a17a-fb4d5d2fc7bb", + "8785238c-430d-4f2a-b973-3efedf2081f3", + "9df3b808-c188-452c-9d1b-e286cc3627f3", + "76291cf8-558f-41d2-9d01-9e4f5729c8ca", + "6fbcde49-6ec9-46d3-b421-9d2292ea91bc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4542, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1830b310-e8d2-46ff-817e-46a20ad4686a", + "title": "FO - Menu and navigation : Sort products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Menu and navigation : Sort products\"", + "fullTitle": "FO - Menu and navigation : Sort products \"before all\" hook in \"FO - Menu and navigation : Sort products\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7db831c-7921-4b3b-a200-029b6bd07df0", + "parentUUID": "1830b310-e8d2-46ff-817e-46a20ad4686a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Menu and navigation : Sort products\"", + "fullTitle": "FO - Menu and navigation : Sort products \"after all\" hook in \"FO - Menu and navigation : Sort products\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b7f43131-bc0b-453e-940c-a33b73b34239", + "parentUUID": "1830b310-e8d2-46ff-817e-46a20ad4686a", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "e1c609cb-f5ee-46c2-b55a-7620f5293bf0", + "title": "PRE-TEST : Get the number of active products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Menu and navigation : Sort products PRE-TEST : Get the number of active products should login in BO", + "timedOut": false, + "duration": 6866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02791bea-5fba-4427-8afb-37b215183c02", + "parentUUID": "e1c609cb-f5ee-46c2-b55a-7620f5293bf0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Menu and navigation : Sort products PRE-TEST : Get the number of active products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "524f91ad-3cde-46f2-b89e-2ad22bf0ad5a", + "parentUUID": "e1c609cb-f5ee-46c2-b55a-7620f5293bf0", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Active Status", + "fullTitle": "FO - Menu and navigation : Sort products PRE-TEST : Get the number of active products should filter by Active Status", + "timedOut": false, + "duration": 591, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_getNumberOfActiveProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfActiveProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'active', 'Yes', 'select')];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfActiveProducts = _a.sent();\n (0, chai_1.expect)(numberOfActiveProducts).to.within(0, numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7256edfc-fb02-470d-a23a-2880124b4a14", + "parentUUID": "e1c609cb-f5ee-46c2-b55a-7620f5293bf0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "02791bea-5fba-4427-8afb-37b215183c02", + "524f91ad-3cde-46f2-b89e-2ad22bf0ad5a", + "7256edfc-fb02-470d-a23a-2880124b4a14" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12912, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb5147d2-08da-4a36-89d0-f4d87fd2762b", + "title": "PRE-TEST : Change the number of products per page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "FO - Menu and navigation : Sort products PRE-TEST : Change the number of products per page should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66987ccf-53df-429e-93ea-146234fca459", + "parentUUID": "bb5147d2-08da-4a36-89d0-f4d87fd2762b", + "isHook": false, + "skipped": false + }, + { + "title": "should change the value of products per page", + "fullTitle": "FO - Menu and navigation : Sort products PRE-TEST : Change the number of products per page should change the value of products per page", + "timedOut": false, + "duration": 910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_changeProductPerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeProductPerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, numberOfActiveProducts)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58d14313-c8ac-41f7-9ec0-6eb45223fc91", + "parentUUID": "bb5147d2-08da-4a36-89d0-f4d87fd2762b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "66987ccf-53df-429e-93ea-146234fca459", + "58d14313-c8ac-41f7-9ec0-6eb45223fc91" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4541, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "df8a2e41-56b1-4066-9d9f-5c464a6062a1", + "title": "Sort products list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "FO - Menu and navigation : Sort products Sort products list should view my shop", + "timedOut": false, + "duration": 2053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "739c308d-d64f-493b-9e63-5f320f50412b", + "parentUUID": "df8a2e41-56b1-4066-9d9f-5c464a6062a1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "FO - Menu and navigation : Sort products Sort products list should go to all products page", + "timedOut": false, + "duration": 2277, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_goToAllProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd037454-0148-4c56-b396-fb1a0cd0d4cb", + "parentUUID": "df8a2e41-56b1-4066-9d9f-5c464a6062a1", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the products as sorted by relevance", + "fullTitle": "FO - Menu and navigation : Sort products Sort products list should check that the products as sorted by relevance", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_checkDefaultSort\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isSortingLinkVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDefaultSort', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getSortByValue(page)];\n case 2:\n isSortingLinkVisible = _a.sent();\n (0, chai_1.expect)(isSortingLinkVisible).to.contain('Relevance');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9614cf55-60a8-42c3-86b9-9171c5b8669f", + "parentUUID": "df8a2e41-56b1-4066-9d9f-5c464a6062a1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'Name, A to Z'", + "fullTitle": "FO - Menu and navigation : Sort products Sort products list should sort by 'Name, A to Z'", + "timedOut": false, + "duration": 3422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_sortByNameAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getAllProductsAttribute(page, test.args.attribute)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, category_1.default.sortProductsList(page, test.args.sortBy)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.getAllProductsAttribute(page, test.args.attribute)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7077f059-4919-410e-928d-a325e83ad471", + "parentUUID": "df8a2e41-56b1-4066-9d9f-5c464a6062a1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'Name, Z to A'", + "fullTitle": "FO - Menu and navigation : Sort products Sort products list should sort by 'Name, Z to A'", + "timedOut": false, + "duration": 3430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_sortByNameDesc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getAllProductsAttribute(page, test.args.attribute)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, category_1.default.sortProductsList(page, test.args.sortBy)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.getAllProductsAttribute(page, test.args.attribute)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8a03768-6219-41d2-b5d6-0ba7280ce7b1", + "parentUUID": "df8a2e41-56b1-4066-9d9f-5c464a6062a1", + "isHook": false, + "skipped": false + }, + { + "title": "should sort by 'Price, low to high'", + "fullTitle": "FO - Menu and navigation : Sort products Sort products list should sort by 'Price, low to high'", + "timedOut": false, + "duration": 3395, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_sortByPriceAsc\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nonSortedTable, sortedTable, expectedResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', test.args.testIdentifier, baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getAllProductsAttribute(page, test.args.attribute)];\n case 2:\n nonSortedTable = _a.sent();\n return [4 /*yield*/, category_1.default.sortProductsList(page, test.args.sortBy)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.getAllProductsAttribute(page, test.args.attribute)];\n case 4:\n sortedTable = _a.sent();\n return [4 /*yield*/, basicHelper_1.default.sortArray(nonSortedTable)];\n case 5:\n expectedResult = _a.sent();\n if (test.args.sortDirection === 'asc') {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult);\n }\n else {\n (0, chai_1.expect)(sortedTable).to.deep.equal(expectedResult.reverse());\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb9aba2b-a537-4929-9604-0cf9475061c7", + "parentUUID": "df8a2e41-56b1-4066-9d9f-5c464a6062a1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "739c308d-d64f-493b-9e63-5f320f50412b", + "dd037454-0148-4c56-b396-fb1a0cd0d4cb", + "9614cf55-60a8-42c3-86b9-9171c5b8669f", + "7077f059-4919-410e-928d-a325e83ad471", + "b8a03768-6219-41d2-b5d6-0ba7280ce7b1", + "eb9aba2b-a537-4929-9604-0cf9475061c7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14589, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c839cdb1-b729-4a47-849f-7d20772478fc", + "title": "POST-TEST : Reset the number of products per page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/01_sortProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should close the FO page", + "fullTitle": "FO - Menu and navigation : Sort products POST-TEST : Reset the number of products per page should close the FO page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_closeFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3c8a2a4-edb7-433e-b42d-941b7b0d7ffd", + "parentUUID": "c839cdb1-b729-4a47-849f-7d20772478fc", + "isHook": false, + "skipped": false + }, + { + "title": "should change the value of products per page", + "fullTitle": "FO - Menu and navigation : Sort products POST-TEST : Reset the number of products per page should change the value of products per page", + "timedOut": false, + "duration": 1029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_sortProducts_ResetProductPerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ResetProductPerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, 12)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c185f62-8832-4b20-b21e-f03b804994c0", + "parentUUID": "c839cdb1-b729-4a47-849f-7d20772478fc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f3c8a2a4-edb7-433e-b42d-941b7b0d7ffd", + "5c185f62-8832-4b20-b21e-f03b804994c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1034, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "86faf8f1-246f-4c2b-a666-bb0ece582619", + "title": "FO - Menu and navigation : Filter products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Menu and navigation : Filter products\"", + "fullTitle": "FO - Menu and navigation : Filter products \"before all\" hook in \"FO - Menu and navigation : Filter products\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81cefa56-7932-45bd-9538-4e1779f097a3", + "parentUUID": "86faf8f1-246f-4c2b-a666-bb0ece582619", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Menu and navigation : Filter products\"", + "fullTitle": "FO - Menu and navigation : Filter products \"after all\" hook in \"FO - Menu and navigation : Filter products\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e2699055-90d6-45a6-a28b-c310ec5d78e2", + "parentUUID": "86faf8f1-246f-4c2b-a666-bb0ece582619", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a77ea49e-861d-423d-bfb1-c57835df6cfb", + "title": "PRE-TEST : Get the number of active products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Menu and navigation : Filter products PRE-TEST : Get the number of active products should login in BO", + "timedOut": false, + "duration": 1962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "373eb3f0-bfd0-405a-9cab-02b98b2b40a0", + "parentUUID": "a77ea49e-861d-423d-bfb1-c57835df6cfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Menu and navigation : Filter products PRE-TEST : Get the number of active products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34662e6d-bb75-4ec6-a1af-5158fab6d8a2", + "parentUUID": "a77ea49e-861d-423d-bfb1-c57835df6cfb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Active Status", + "fullTitle": "FO - Menu and navigation : Filter products PRE-TEST : Get the number of active products should filter by Active Status", + "timedOut": false, + "duration": 3363, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfActiveProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfActiveProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'active', 'Yes', 'select')];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfActiveProducts = _a.sent();\n (0, chai_1.expect)(numberOfActiveProducts).to.within(0, numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a50e5208-dae4-4e2d-a18e-e8e62842cdc2", + "parentUUID": "a77ea49e-861d-423d-bfb1-c57835df6cfb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "373eb3f0-bfd0-405a-9cab-02b98b2b40a0", + "34662e6d-bb75-4ec6-a1af-5158fab6d8a2", + "a50e5208-dae4-4e2d-a18e-e8e62842cdc2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10308, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6292a231-c2c7-432a-8df5-e78e9ea558da", + "title": "PRE-TEST : Change the number of products per page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "FO - Menu and navigation : Filter products PRE-TEST : Change the number of products per page should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3577, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_goToProductSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "633b3df7-e41a-493f-a1d1-413a8721781c", + "parentUUID": "6292a231-c2c7-432a-8df5-e78e9ea558da", + "isHook": false, + "skipped": false + }, + { + "title": "should change the value of products per page", + "fullTitle": "FO - Menu and navigation : Filter products PRE-TEST : Change the number of products per page should change the value of products per page", + "timedOut": false, + "duration": 874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_changeProductPerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeProductPerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, numberOfActiveProducts)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33c90d15-9ccc-4b3b-9f8b-831dfb73a70f", + "parentUUID": "6292a231-c2c7-432a-8df5-e78e9ea558da", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "633b3df7-e41a-493f-a1d1-413a8721781c", + "33c90d15-9ccc-4b3b-9f8b-831dfb73a70f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4451, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "title": "Filter products list by Category", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Category should view my shop", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7eb7a8d-eeb3-44c5-95cf-a1ccdc430415", + "parentUUID": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Category should go to all products page", + "timedOut": false, + "duration": 2218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_goToAllProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c9e6f28-168e-4262-9d40-2c746a2a5ad5", + "parentUUID": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products by category 'Accessories - Art'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Category should filter products by category 'Accessories - Art'", + "timedOut": false, + "duration": 4059, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterByCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'category', 'Accessories', true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'category', 'Art', true)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db0ea99d-a382-4dd9-99af-d2362311edbc", + "parentUUID": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Category should check the active filters", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Categories: Accessories')\n .and.to.contains('Categories: Art');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f6896a1-99ea-45c8-8304-8667d951c6f1", + "parentUUID": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Category should get the number of products", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4052789-19ce-4a34-9eca-9ba270937c56", + "parentUUID": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "isHook": false, + "skipped": false + }, + { + "title": "should check the products list", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Category should check the products list", + "timedOut": false, + "duration": 58, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkProductsList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, productURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsList', baseContext)];\n case 1:\n _a.sent();\n i = 1;\n _a.label = 2;\n case 2:\n if (!(i <= productsNumber)) return [3 /*break*/, 5];\n return [4 /*yield*/, category_1.default.getProductHref(page, i)];\n case 3:\n productURL = _a.sent();\n (0, chai_1.expect)(productURL).to.contain.oneOf(['accessories', 'art', 'stationery']);\n _a.label = 4;\n case 4:\n i++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66fdc3ee-0602-46f1-8dd1-6deef5b4ea9e", + "parentUUID": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "isHook": false, + "skipped": false + }, + { + "title": "should clear all filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Category should clear all filters", + "timedOut": false, + "duration": 271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_clearAllFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActiveFilterNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearAllFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clearAllFilters(page)];\n case 2:\n isActiveFilterNotVisible = _a.sent();\n (0, chai_1.expect)(isActiveFilterNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "676f9259-ec3c-41d0-9d6c-35d107e3fec5", + "parentUUID": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of the displayed products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Category should check the number of the displayed products", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkDisplayedProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDisplayedProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28257bcb-7651-4f97-a0b7-b684ded68fb6", + "parentUUID": "2525aea8-5a64-47a0-a613-8e0d944f3003", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f7eb7a8d-eeb3-44c5-95cf-a1ccdc430415", + "9c9e6f28-168e-4262-9d40-2c746a2a5ad5", + "db0ea99d-a382-4dd9-99af-d2362311edbc", + "1f6896a1-99ea-45c8-8304-8667d951c6f1", + "b4052789-19ce-4a34-9eca-9ba270937c56", + "66fdc3ee-0602-46f1-8dd1-6deef5b4ea9e", + "676f9259-ec3c-41d0-9d6c-35d107e3fec5", + "28257bcb-7651-4f97-a0b7-b684ded68fb6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8630, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e7dd5f1d-ea6c-421a-b5c8-f584f2b88309", + "title": "Filter products list by Size", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products by size 'S-L-XL'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Size should filter products by size 'S-L-XL'", + "timedOut": false, + "duration": 6074, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterBySize\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBySize', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', 'Size-S', true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', 'Size-S-L', true)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', 'Size-S-L-XL', true)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1e6ccc6-39b4-4926-a87c-b43acf1f1669", + "parentUUID": "e7dd5f1d-ea6c-421a-b5c8-f584f2b88309", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Size should check the active filters", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Size: S')\n .and.to.contains('Size: L')\n .and.to.contains('Size: XL');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a07e981e-9995-4feb-9455-3f647dbb3718", + "parentUUID": "e7dd5f1d-ea6c-421a-b5c8-f584f2b88309", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Size should get the number of products", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfProducts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56aa0ed4-7fe5-4f83-9b3c-4edf8ed42562", + "parentUUID": "e7dd5f1d-ea6c-421a-b5c8-f584f2b88309", + "isHook": false, + "skipped": false + }, + { + "title": "should check the products list", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Size should check the products list", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkProductsList2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, productURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsList2', baseContext)];\n case 1:\n _a.sent();\n i = 1;\n _a.label = 2;\n case 2:\n if (!(i <= productsNumber)) return [3 /*break*/, 5];\n return [4 /*yield*/, category_1.default.getProductHref(page, i)];\n case 3:\n productURL = _a.sent();\n (0, chai_1.expect)(productURL).to.contain.oneOf(['size-s', 'size-l', 'size-xl']);\n _a.label = 4;\n case 4:\n i++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e36b000-71d4-47ab-b1f7-b7accb3ecb3f", + "parentUUID": "e7dd5f1d-ea6c-421a-b5c8-f584f2b88309", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f1e6ccc6-39b4-4926-a87c-b43acf1f1669", + "a07e981e-9995-4feb-9455-3f647dbb3718", + "56aa0ed4-7fe5-4f83-9b3c-4edf8ed42562", + "0e36b000-71d4-47ab-b1f7-b7accb3ecb3f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6092, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "55103331-c630-417e-a363-7983e2b11496", + "title": "Filter products list by Color", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products by Color 'Black'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Color should filter products by Color 'Black'", + "timedOut": false, + "duration": 2022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterByColor\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByColor', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', 'Color-Black', true)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dfc42eb-c7ea-46c5-8e1c-053102d37d6a", + "parentUUID": "55103331-c630-417e-a363-7983e2b11496", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Color should check the active filters", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Size: S')\n .and.to.contains('Size: L')\n .and.to.contains('Size: XL')\n .and.to.contains('Color: Black');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "743ad7ed-6ba4-4420-b80e-a96159747ee3", + "parentUUID": "55103331-c630-417e-a363-7983e2b11496", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Color should get the number of products", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfProducts3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e76be38a-bb4e-486f-91b9-d1275784eb02", + "parentUUID": "55103331-c630-417e-a363-7983e2b11496", + "isHook": false, + "skipped": false + }, + { + "title": "should check the products list", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Color should check the products list", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkProductsList3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, productURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsList3', baseContext)];\n case 1:\n _a.sent();\n i = 1;\n _a.label = 2;\n case 2:\n if (!(i <= productsNumber)) return [3 /*break*/, 5];\n return [4 /*yield*/, category_1.default.getProductHref(page, i)];\n case 3:\n productURL = _a.sent();\n (0, chai_1.expect)(productURL).to.contain.oneOf(['size-s', 'size-l', 'size-xl', 'color-black']);\n _a.label = 4;\n case 4:\n i++;\n return [3 /*break*/, 2];\n case 5: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ac28a91-0a95-4227-ba6c-d16bb37cd74c", + "parentUUID": "55103331-c630-417e-a363-7983e2b11496", + "isHook": false, + "skipped": false + }, + { + "title": "should clear all filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Color should clear all filters", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_clearAllFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActiveFilterNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearAllFilters2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clearAllFilters(page)];\n case 2:\n isActiveFilterNotVisible = _a.sent();\n (0, chai_1.expect)(isActiveFilterNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2034499-9f0f-4ff6-b352-63d651c68ea5", + "parentUUID": "55103331-c630-417e-a363-7983e2b11496", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of the displayed products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Color should check the number of the displayed products", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkDisplayedProducts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDisplayedProducts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.equal(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfefb123-8bc3-44fd-a2fc-b6fe33c21b4c", + "parentUUID": "55103331-c630-417e-a363-7983e2b11496", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3dfc42eb-c7ea-46c5-8e1c-053102d37d6a", + "743ad7ed-6ba4-4420-b80e-a96159747ee3", + "e76be38a-bb4e-486f-91b9-d1275784eb02", + "1ac28a91-0a95-4227-ba6c-d16bb37cd74c", + "e2034499-9f0f-4ff6-b352-63d651c68ea5", + "cfefb123-8bc3-44fd-a2fc-b6fe33c21b4c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2274, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9b36d1a9-523b-4c64-924c-eb51947ed1fc", + "title": "Filter products list by Composition", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products by composition 'Ceramic - Cotton - Recycled cardboard'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Composition should filter products by composition 'Ceramic - Cotton - Recycled cardboard'", + "timedOut": false, + "duration": 6076, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterByComposition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByComposition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'feature', 'Composition-Ceramic', true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'feature', 'Composition-Ceramic-Cotton', true)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'feature', '\\'Composition-Ceramic-Cotton-Recycled+cardboard\\'', true)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9217e7a1-4ad3-4359-8f86-8a9dfd149e27", + "parentUUID": "9b36d1a9-523b-4c64-924c-eb51947ed1fc", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Composition should check the active filters", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Composition: Ceramic')\n .and.to.contains('Composition: Cotton')\n .and.to.contains('Composition: Recycled cardboard');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d9b2a73-8f9e-4df5-8997-88ebebcb562a", + "parentUUID": "9b36d1a9-523b-4c64-924c-eb51947ed1fc", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Composition should get the number of products", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfProducts4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4adcc55b-5bf1-41e9-ae84-2eb86729f0a8", + "parentUUID": "9b36d1a9-523b-4c64-924c-eb51947ed1fc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9217e7a1-4ad3-4359-8f86-8a9dfd149e27", + "8d9b2a73-8f9e-4df5-8997-88ebebcb562a", + "4adcc55b-5bf1-41e9-ae84-2eb86729f0a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6088, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "189637b8-1f41-4194-afe3-7df8320eda3b", + "title": "Filter products list by Price", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products by price '€14.00 - €20.00'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Price should filter products by price '€14.00 - €20.00'", + "timedOut": false, + "duration": 4117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterByPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var maxPrice, minPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getMaximumPrice(page)];\n case 2:\n maxPrice = _a.sent();\n return [4 /*yield*/, category_1.default.getMinimumPrice(page)];\n case 3:\n minPrice = _a.sent();\n return [4 /*yield*/, category_1.default.filterByPrice(page, minPrice, maxPrice, 14, 39)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9567df3a-55cb-4501-90d2-22427a61ac3c", + "parentUUID": "189637b8-1f41-4194-afe3-7df8320eda3b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Price should check the active filters", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Price: €14.00 - €39.00')\n .and.to.contains('Composition: Ceramic')\n .and.to.contains('Composition: Cotton')\n .and.to.contains('Composition: Recycled cardboard');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68bfc0b6-34e0-49e6-9c4a-55188a7e8c3d", + "parentUUID": "189637b8-1f41-4194-afe3-7df8320eda3b", + "isHook": false, + "skipped": false + }, + { + "title": "should check filter products by price", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Price should check filter products by price", + "timedOut": false, + "duration": 44, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkPrices\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, price;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPrices', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumber = _a.sent();\n i = 1;\n _a.label = 3;\n case 3:\n if (!(i <= productsNumber)) return [3 /*break*/, 6];\n return [4 /*yield*/, category_1.default.getProductPrice(page, i)];\n case 4:\n price = _a.sent();\n (0, chai_1.expect)(price).to.within(14, 39);\n _a.label = 5;\n case 5:\n i++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efbb0644-0fd0-4568-a199-b6ece44ff90f", + "parentUUID": "189637b8-1f41-4194-afe3-7df8320eda3b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9567df3a-55cb-4501-90d2-22427a61ac3c", + "68bfc0b6-34e0-49e6-9c4a-55188a7e8c3d", + "efbb0644-0fd0-4568-a199-b6ece44ff90f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4169, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1f69bde6-cf19-4c7c-8507-25eef92d6f19", + "title": "Filter products list by Brand", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products by brand 'Graphic Corner'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Brand should filter products by brand 'Graphic Corner'", + "timedOut": false, + "duration": 2024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterByBrand\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByBrand', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'manufacturer', '\\'Graphic+Corner\\'', true)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47f30d18-7652-456b-a37f-67f7f6aaf61b", + "parentUUID": "1f69bde6-cf19-4c7c-8507-25eef92d6f19", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Brand should check the active filters", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Composition: Recycled cardboard')\n .and.to.contains('Price: €14.00 - €39.00')\n .and.to.contains('Brand: Graphic Corner');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b94a750-2b96-48a7-8509-8b43666c08d6", + "parentUUID": "1f69bde6-cf19-4c7c-8507-25eef92d6f19", + "isHook": false, + "skipped": false + }, + { + "title": "should check filter products by brand", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Brand should check filter products by brand", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkBrands\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, price;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBrands', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(productsNumber).to.be.greaterThan(numberOfProductsAfterFilter);\n i = 1;\n _a.label = 3;\n case 3:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 6];\n return [4 /*yield*/, category_1.default.getProductPrice(page, i)];\n case 4:\n price = _a.sent();\n (0, chai_1.expect)(price).to.within(14, 39);\n _a.label = 5;\n case 5:\n i++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6295085d-bdaa-4598-973d-1e6aee396980", + "parentUUID": "1f69bde6-cf19-4c7c-8507-25eef92d6f19", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "47f30d18-7652-456b-a37f-67f7f6aaf61b", + "9b94a750-2b96-48a7-8509-8b43666c08d6", + "6295085d-bdaa-4598-973d-1e6aee396980" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2054, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e8adaf4c-260e-4ae5-b176-0b7097fc4195", + "title": "Filter products list by Dimension", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should clear all filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Dimension should clear all filters", + "timedOut": false, + "duration": 254, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_clearAllFilters3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActiveFilterNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearAllFilters3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clearAllFilters(page)];\n case 2:\n isActiveFilterNotVisible = _a.sent();\n (0, chai_1.expect)(isActiveFilterNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "954e61ff-e431-42a9-ae30-a10992eafc17", + "parentUUID": "e8adaf4c-260e-4ae5-b176-0b7097fc4195", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Dimension should check the number of products", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfProducts5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumberAfterClearFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumberAfterClearFilter = _a.sent();\n (0, chai_1.expect)(productsNumberAfterClearFilter).to.be.equal(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7704c79-4e0d-4a7f-9dbe-b2fe8ec3f722", + "parentUUID": "e8adaf4c-260e-4ae5-b176-0b7097fc4195", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products by Dimension '40x60cm - 60x90cm'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Dimension should filter products by Dimension '40x60cm - 60x90cm'", + "timedOut": false, + "duration": 4052, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterByDimension\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByDimension', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', 'Dimension-40x60cm', true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', 'Dimension-40x60cm-60x90cm', true)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "394a6807-2191-4e9c-876d-75a075797327", + "parentUUID": "e8adaf4c-260e-4ae5-b176-0b7097fc4195", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Dimension should check the active filters", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Dimension: 40x60cm')\n .and.to.contains('Dimension: 60x90cm');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95c2dc13-d25a-4170-a470-e6e33e237598", + "parentUUID": "e8adaf4c-260e-4ae5-b176-0b7097fc4195", + "isHook": false, + "skipped": false + }, + { + "title": "should check the products list", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Dimension should check the products list", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkProductsList4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, productURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsList4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumber = _a.sent();\n i = 1;\n _a.label = 3;\n case 3:\n if (!(i <= productsNumber)) return [3 /*break*/, 6];\n return [4 /*yield*/, category_1.default.getProductHref(page, i)];\n case 4:\n productURL = _a.sent();\n (0, chai_1.expect)(productURL).to.contain.oneOf(['dimension-40x60cm', 'dimension-60x90cm']);\n _a.label = 5;\n case 5:\n i++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2a7345e-0e3a-4811-b52c-747ed08ea812", + "parentUUID": "e8adaf4c-260e-4ae5-b176-0b7097fc4195", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "954e61ff-e431-42a9-ae30-a10992eafc17", + "d7704c79-4e0d-4a7f-9dbe-b2fe8ec3f722", + "394a6807-2191-4e9c-876d-75a075797327", + "95c2dc13-d25a-4170-a470-e6e33e237598", + "c2a7345e-0e3a-4811-b52c-747ed08ea812" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4335, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "71810e03-ff37-4820-9827-d9f41e2ba916", + "title": "Filter products list by Availability", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should clear all filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Availability should clear all filters", + "timedOut": false, + "duration": 257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_clearAllFilters6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActiveFilterNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearAllFilters6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clearAllFilters(page)];\n case 2:\n isActiveFilterNotVisible = _a.sent();\n (0, chai_1.expect)(isActiveFilterNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9962dbe8-65a2-41bb-a043-196f800d6126", + "parentUUID": "71810e03-ff37-4820-9827-d9f41e2ba916", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Availability should check the number of products", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfProducts6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumberAfterClearFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumberAfterClearFilter = _a.sent();\n (0, chai_1.expect)(productsNumberAfterClearFilter).to.be.equal(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22c4621e-56b5-4418-b43c-dfab51f63d4b", + "parentUUID": "71810e03-ff37-4820-9827-d9f41e2ba916", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products by availability 'In Stock'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Availability should filter products by availability 'In Stock'", + "timedOut": false, + "duration": 2026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterByAvailability\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByAvailability', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'availability', '\\'Availability-In+stock\\'', true)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21fb098f-0a2a-4757-aecd-9f4bed946176", + "parentUUID": "71810e03-ff37-4820-9827-d9f41e2ba916", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Availability should check the active filters", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters8', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Availability: In stock');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "704c66f5-d8e9-4355-bbb9-1db6e63b648d", + "parentUUID": "71810e03-ff37-4820-9827-d9f41e2ba916", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9962dbe8-65a2-41bb-a043-196f800d6126", + "22c4621e-56b5-4418-b43c-dfab51f63d4b", + "21fb098f-0a2a-4757-aecd-9f4bed946176", + "704c66f5-d8e9-4355-bbb9-1db6e63b648d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2297, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "67fdfe4f-28c6-4720-b32a-0206e753dc8e", + "title": "Filter products list by Paper Type", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should clear all filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Paper Type should clear all filters", + "timedOut": false, + "duration": 261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_clearAllFilters4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActiveFilterNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearAllFilters4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clearAllFilters(page)];\n case 2:\n isActiveFilterNotVisible = _a.sent();\n (0, chai_1.expect)(isActiveFilterNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eadd6ecc-d456-420f-8353-cf7ec320d978", + "parentUUID": "67fdfe4f-28c6-4720-b32a-0206e753dc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Paper Type should check the number of products", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfProducts7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumberAfterClearFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumberAfterClearFilter = _a.sent();\n (0, chai_1.expect)(productsNumberAfterClearFilter).to.be.equal(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8c55dd3-aec7-46c7-824b-4851d3874da5", + "parentUUID": "67fdfe4f-28c6-4720-b32a-0206e753dc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products by paper type 'Ruled - Plain - Squared'", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Paper Type should filter products by paper type 'Ruled - Plain - Squared'", + "timedOut": false, + "duration": 6077, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_filterByPaperType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByPaperType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', '\\'Paper+Type-Ruled\\'', true)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', '\\'Paper+Type-Ruled-Plain\\'', true)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'attribute_group', '\\'Paper+Type-Ruled-Plain-Squared\\'', true)];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81266109-411f-47ff-8210-a8d025d86c22", + "parentUUID": "67fdfe4f-28c6-4720-b32a-0206e753dc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Paper Type should check the active filters", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getActiveFilters9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters9', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Paper Type: Ruled')\n .and.to.contains('Paper Type: Plain')\n .and.to.contains('Paper Type: Squared');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "810b74a1-282c-42e0-b081-b6cf96e73fa3", + "parentUUID": "67fdfe4f-28c6-4720-b32a-0206e753dc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the products list", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Paper Type should check the products list", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_checkProductsList5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, productURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsList5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumber = _a.sent();\n i = 1;\n _a.label = 3;\n case 3:\n if (!(i <= productsNumber)) return [3 /*break*/, 6];\n return [4 /*yield*/, category_1.default.getProductHref(page, i)];\n case 4:\n productURL = _a.sent();\n (0, chai_1.expect)(productURL).to.contain.oneOf(['paper_type-ruled', 'paper_type-plain', 'paper_type-squared']);\n _a.label = 5;\n case 5:\n i++;\n return [3 /*break*/, 3];\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fcf9a3e-b802-4e13-b9b1-38ccc68659f4", + "parentUUID": "67fdfe4f-28c6-4720-b32a-0206e753dc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should clear all filters", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Paper Type should clear all filters", + "timedOut": false, + "duration": 246, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_clearAllFilters5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActiveFilterNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearAllFilters5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.clearAllFilters(page)];\n case 2:\n isActiveFilterNotVisible = _a.sent();\n (0, chai_1.expect)(isActiveFilterNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbe12c75-5c76-494b-83b3-910b26388529", + "parentUUID": "67fdfe4f-28c6-4720-b32a-0206e753dc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products", + "fullTitle": "FO - Menu and navigation : Filter products Filter products list by Paper Type should check the number of products", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_getNumberOfProducts8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumberAfterClearFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts8', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumberAfterClearFilter = _a.sent();\n (0, chai_1.expect)(productsNumberAfterClearFilter).to.be.equal(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87eb1994-84ba-455e-a88a-0573b3c77b0a", + "parentUUID": "67fdfe4f-28c6-4720-b32a-0206e753dc8e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "eadd6ecc-d456-420f-8353-cf7ec320d978", + "d8c55dd3-aec7-46c7-824b-4851d3874da5", + "81266109-411f-47ff-8210-a8d025d86c22", + "810b74a1-282c-42e0-b081-b6cf96e73fa3", + "3fcf9a3e-b802-4e13-b9b1-38ccc68659f4", + "dbe12c75-5c76-494b-83b3-910b26388529", + "87eb1994-84ba-455e-a88a-0573b3c77b0a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6625, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a169a289-b195-4ce5-a07c-e94a6d4d05c4", + "title": "POST-TEST : Reset the number of products per page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/02_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should close the FO page", + "fullTitle": "FO - Menu and navigation : Filter products POST-TEST : Reset the number of products per page should close the FO page", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_closeFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82db03bc-e6c0-4d61-84ff-7ec49ce6c344", + "parentUUID": "a169a289-b195-4ce5-a07c-e94a6d4d05c4", + "isHook": false, + "skipped": false + }, + { + "title": "should change the value of products per page", + "fullTitle": "FO - Menu and navigation : Filter products POST-TEST : Reset the number of products per page should change the value of products per page", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_filterProducts_ResetProductPerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ResetProductPerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, 12)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "642de090-fbcf-4fda-9d2c-8eda6e1f5087", + "parentUUID": "a169a289-b195-4ce5-a07c-e94a6d4d05c4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "82db03bc-e6c0-4d61-84ff-7ec49ce6c344", + "642de090-fbcf-4fda-9d2c-8eda6e1f5087" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1011, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "32979a5a-ffb9-4b64-a20a-4a2588065672", + "title": "FO - Menu and navigation : Clear one filter", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/03_clearOneFilter.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/03_clearOneFilter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Menu and navigation : Clear one filter\"", + "fullTitle": "FO - Menu and navigation : Clear one filter \"before all\" hook in \"FO - Menu and navigation : Clear one filter\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e3d9a66-a6d3-4d68-bbff-cc9d51dbec98", + "parentUUID": "32979a5a-ffb9-4b64-a20a-4a2588065672", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Menu and navigation : Clear one filter\"", + "fullTitle": "FO - Menu and navigation : Clear one filter \"after all\" hook in \"FO - Menu and navigation : Clear one filter\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "735a0f3d-1768-4b86-91e7-f475f7af86d7", + "parentUUID": "32979a5a-ffb9-4b64-a20a-4a2588065672", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "84df69d7-92b7-44fa-b546-6aacf521461d", + "title": "PRE-TEST : Get the number of active products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/03_clearOneFilter.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/03_clearOneFilter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Menu and navigation : Clear one filter PRE-TEST : Get the number of active products should login in BO", + "timedOut": false, + "duration": 1910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1da3a563-66b1-40b1-b8f9-cef625d74861", + "parentUUID": "84df69d7-92b7-44fa-b546-6aacf521461d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Menu and navigation : Clear one filter PRE-TEST : Get the number of active products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4995, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e98f2f91-a774-4e36-8e46-aacad35a850b", + "parentUUID": "84df69d7-92b7-44fa-b546-6aacf521461d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by Active Status", + "fullTitle": "FO - Menu and navigation : Clear one filter PRE-TEST : Get the number of active products should filter by Active Status", + "timedOut": false, + "duration": 3339, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_getNumberOfActiveProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfActiveProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'active', 'Yes', 'select')];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfActiveProducts = _a.sent();\n (0, chai_1.expect)(numberOfActiveProducts).to.within(0, numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24a44239-0274-4d29-9939-79f001fc2b21", + "parentUUID": "84df69d7-92b7-44fa-b546-6aacf521461d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1da3a563-66b1-40b1-b8f9-cef625d74861", + "e98f2f91-a774-4e36-8e46-aacad35a850b", + "24a44239-0274-4d29-9939-79f001fc2b21" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10244, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "238eb3b3-1024-43ae-b091-30163f293ed5", + "title": "Filter products list by Composition", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/03_clearOneFilter.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/03_clearOneFilter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Composition should view my shop", + "timedOut": false, + "duration": 1992, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n // Click on view my shop\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f847d8d-3342-4fc9-b04a-3fc4e6a27c83", + "parentUUID": "238eb3b3-1024-43ae-b091-30163f293ed5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Composition should go to all products page", + "timedOut": false, + "duration": 2178, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_goToAllProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47a1bf09-9671-401d-8c85-6f6f4ec02c96", + "parentUUID": "238eb3b3-1024-43ae-b091-30163f293ed5", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products by composition 'Ceramic - Cotton - Recycled cardboard'", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Composition should filter products by composition 'Ceramic - Cotton - Recycled cardboard'", + "timedOut": false, + "duration": 2030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_filterByComposition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByComposition', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'feature', 'Composition-Ceramic', true)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0bab9b0-08f3-478f-bbd0-ebf6025401e7", + "parentUUID": "238eb3b3-1024-43ae-b091-30163f293ed5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Composition should check the active filters", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_getActiveFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Composition: Ceramic');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ed30f4d-500d-43e0-8a4f-1a182dc8f0f7", + "parentUUID": "238eb3b3-1024-43ae-b091-30163f293ed5", + "isHook": false, + "skipped": false + }, + { + "title": "should get the number of products", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Composition should get the number of products", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_getNumberOfProducts4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.be.above(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad2da47c-8be1-45aa-8671-357a93255c7b", + "parentUUID": "238eb3b3-1024-43ae-b091-30163f293ed5", + "isHook": false, + "skipped": false + }, + { + "title": "should close the active filter", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Composition should close the active filter", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_closeActiveFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeActiveFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closeFilter(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isActiveFilterNotVisible(page)];\n case 3:\n isNotVisible = _a.sent();\n (0, chai_1.expect)(isNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92251403-2fe9-4988-be23-64bd73c06434", + "parentUUID": "238eb3b3-1024-43ae-b091-30163f293ed5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Composition should check the number of products", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_getNumberOfProducts1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumberAfterClearFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumberAfterClearFilter = _a.sent();\n (0, chai_1.expect)(productsNumberAfterClearFilter).to.be.equal(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "452d2402-6a83-44aa-9b5c-8dd10edb36bd", + "parentUUID": "238eb3b3-1024-43ae-b091-30163f293ed5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3f847d8d-3342-4fc9-b04a-3fc4e6a27c83", + "47a1bf09-9671-401d-8c85-6f6f4ec02c96", + "a0bab9b0-08f3-478f-bbd0-ebf6025401e7", + "7ed30f4d-500d-43e0-8a4f-1a182dc8f0f7", + "ad2da47c-8be1-45aa-8671-357a93255c7b", + "92251403-2fe9-4988-be23-64bd73c06434", + "452d2402-6a83-44aa-9b5c-8dd10edb36bd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6445, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "09ceef87-cdf9-44af-8ace-0c3da1afb46f", + "title": "Filter products list by Availability", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/03_clearOneFilter.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/02_sortAndFilter/03_clearOneFilter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter products by availability 'In Stock'", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Availability should filter products by availability 'In Stock'", + "timedOut": false, + "duration": 2022, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_filterByAvailability\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByAvailability', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.filterByCheckbox(page, 'availability', '\\'Availability-In+stock\\'', true)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c965470c-5898-4525-aff2-48bd5d2cec21", + "parentUUID": "09ceef87-cdf9-44af-8ace-0c3da1afb46f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the active filters", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Availability should check the active filters", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_getActiveFilters2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var activeFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getActiveFilters2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getActiveFilters(page)];\n case 2:\n activeFilters = _a.sent();\n (0, chai_1.expect)(activeFilters).to.contains('Availability: In stock');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e399554f-c26e-4ad8-acdf-c51420012f09", + "parentUUID": "09ceef87-cdf9-44af-8ace-0c3da1afb46f", + "isHook": false, + "skipped": false + }, + { + "title": "should close the active filter", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Availability should close the active filter", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_closeActiveFilter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeActiveFilter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closeFilter(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isActiveFilterNotVisible(page)];\n case 3:\n isNotVisible = _a.sent();\n (0, chai_1.expect)(isNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d93ef64-9ff2-43ed-9be4-b42ee41942d1", + "parentUUID": "09ceef87-cdf9-44af-8ace-0c3da1afb46f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products", + "fullTitle": "FO - Menu and navigation : Clear one filter Filter products list by Availability should check the number of products", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_sortAndFilter_clearOneFilter_getNumberOfProducts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productsNumberAfterClearFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProducts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n productsNumberAfterClearFilter = _a.sent();\n (0, chai_1.expect)(productsNumberAfterClearFilter).to.be.equal(numberOfActiveProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90b93f7f-706c-4ac9-ad35-f5e6b178c6fb", + "parentUUID": "09ceef87-cdf9-44af-8ace-0c3da1afb46f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c965470c-5898-4525-aff2-48bd5d2cec21", + "e399554f-c26e-4ad8-acdf-c51420012f09", + "6d93ef64-9ff2-43ed-9be4-b42ee41942d1", + "90b93f7f-706c-4ac9-ad35-f5e6b178c6fb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2262, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9226fd2e-9688-4d05-959b-a87be0972186", + "title": "FO - Navigation and display : Display tags", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Navigation and display : Display tags\"", + "fullTitle": "FO - Navigation and display : Display tags \"before all\" hook in \"FO - Navigation and display : Display tags\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30703357-71cd-4ebb-948a-2c960cf04ddc", + "parentUUID": "9226fd2e-9688-4d05-959b-a87be0972186", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Navigation and display : Display tags\"", + "fullTitle": "FO - Navigation and display : Display tags \"after all\" hook in \"FO - Navigation and display : Display tags\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "43533366-ae52-4f02-9741-3ab3d2374eef", + "parentUUID": "9226fd2e-9688-4d05-959b-a87be0972186", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "38221abd-c220-46d6-bb0f-bbec1caf41d4", + "title": "FO - Check the new tag", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the new tag should open the shop page", + "timedOut": false, + "duration": 437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_openShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ec99e5e-b3fa-47ad-8434-2debb22adbd0", + "parentUUID": "38221abd-c220-46d6-bb0f-bbec1caf41d4", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'The best is yet to come' Framed poster'", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the new tag should search for the product 'The best is yet to come' Framed poster'", + "timedOut": false, + "duration": 879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_searchProductDemo6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProductDemo6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_2.default.demo_6.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e137759-0246-4209-93d1-9ad43ee21a1c", + "parentUUID": "38221abd-c220-46d6-bb0f-bbec1caf41d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the new tag should go to the product page", + "timedOut": false, + "duration": 916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToProductPageDemo6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPageDemo6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_6.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "961f92fd-044b-46d0-b482-66866dfb8d99", + "parentUUID": "38221abd-c220-46d6-bb0f-bbec1caf41d4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the new tag", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the new tag should check the new tag", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_checkNewTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var flagText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductTag(page)];\n case 2:\n flagText = _a.sent();\n (0, chai_1.expect)(flagText).to.eq('New');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "311a2019-1e62-424f-ac00-70f84b41ddd6", + "parentUUID": "38221abd-c220-46d6-bb0f-bbec1caf41d4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5ec99e5e-b3fa-47ad-8434-2debb22adbd0", + "0e137759-0246-4209-93d1-9ad43ee21a1c", + "961f92fd-044b-46d0-b482-66866dfb8d99", + "311a2019-1e62-424f-ac00-70f84b41ddd6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2255, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a563103b-22f3-4ddc-8202-96baa734caa6", + "title": "BO - Edit 'Number of days for which the product is considered 'New''", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Navigation and display : Display tags BO - Edit 'Number of days for which the product is considered 'New'' should login in BO", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e08a00bf-4ba3-43aa-985e-9be7b679deab", + "parentUUID": "a563103b-22f3-4ddc-8202-96baa734caa6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "FO - Navigation and display : Display tags BO - Edit 'Number of days for which the product is considered 'New'' should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToProductSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab46f9d4-2800-41b0-bd29-705c8e38231b", + "parentUUID": "a563103b-22f3-4ddc-8202-96baa734caa6", + "isHook": false, + "skipped": false + }, + { + "title": "should change the number of days to 0", + "fullTitle": "FO - Navigation and display : Display tags BO - Edit 'Number of days for which the product is considered 'New'' should change the number of days to 0", + "timedOut": false, + "duration": 943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_changeNumberOfDays0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeNumberOfDays0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.updateNumberOfDays(page, 0)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0529e72-dee0-4f03-b714-74de64b7f1e0", + "parentUUID": "a563103b-22f3-4ddc-8202-96baa734caa6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e08a00bf-4ba3-43aa-985e-9be7b679deab", + "ab46f9d4-2800-41b0-bd29-705c8e38231b", + "a0529e72-dee0-4f03-b714-74de64b7f1e0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6466, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "59d005b2-1dbe-4db4-a0a6-e8e58f9c9426", + "title": "FO - Check that the new tag is no displayed in product page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Navigation and display : Display tags FO - Check that the new tag is no displayed in product page should open the shop page", + "timedOut": false, + "duration": 457, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToShopFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "742520b6-a1d5-4872-8046-2fb46128d267", + "parentUUID": "59d005b2-1dbe-4db4-a0a6-e8e58f9c9426", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'The best is yet to come' Framed poster'", + "fullTitle": "FO - Navigation and display : Display tags FO - Check that the new tag is no displayed in product page should search for the product 'The best is yet to come' Framed poster'", + "timedOut": false, + "duration": 845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_searchProductDemo6_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProductDemo6_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_2.default.demo_6.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4ec1587-1b6b-4687-8b0d-3a908a01f0e9", + "parentUUID": "59d005b2-1dbe-4db4-a0a6-e8e58f9c9426", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "FO - Navigation and display : Display tags FO - Check that the new tag is no displayed in product page should go to the product page", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToProductPageDemo6_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPageDemo6_2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_6.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "889af6a6-224b-40df-bd4c-d3148417b098", + "parentUUID": "59d005b2-1dbe-4db4-a0a6-e8e58f9c9426", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new tag is not displayed", + "fullTitle": "FO - Navigation and display : Display tags FO - Check that the new tag is no displayed in product page should check that the new tag is not displayed", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_checkIsNewTagNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTagVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkIsNewTagNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.isProductTagVisible(page)];\n case 2:\n isTagVisible = _a.sent();\n (0, chai_1.expect)(isTagVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60125ac3-ebc9-4cef-bc01-65c07b1fbbd2", + "parentUUID": "59d005b2-1dbe-4db4-a0a6-e8e58f9c9426", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "742520b6-a1d5-4872-8046-2fb46128d267", + "f4ec1587-1b6b-4687-8b0d-3a908a01f0e9", + "889af6a6-224b-40df-bd4c-d3148417b098", + "60125ac3-ebc9-4cef-bc01-65c07b1fbbd2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2207, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9bc955ab-bc5e-49af-8daa-755ed3dc584f", + "title": "BO - Create product with specific", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back BO", + "fullTitle": "FO - Navigation and display : Display tags BO - Create product with specific should go back BO", + "timedOut": false, + "duration": 387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.goTo(page, global.BO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7779d8de-b29f-4ff5-8003-50dd9649edab", + "parentUUID": "9bc955ab-bc5e-49af-8daa-755ed3dc584f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Navigation and display : Display tags BO - Create product with specific should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToProductsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e009881-a674-4bcc-9972-3e3c65e22700", + "parentUUID": "9bc955ab-bc5e-49af-8daa-755ed3dc584f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "FO - Navigation and display : Display tags BO - Create product with specific should click on new product button and go to new product page", + "timedOut": false, + "duration": 1117, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_clickOnNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6eda0481-48ab-4c5f-8cb6-f068fbd33824", + "parentUUID": "9bc955ab-bc5e-49af-8daa-755ed3dc584f", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "FO - Navigation and display : Display tags BO - Create product with specific should create standard product", + "timedOut": false, + "duration": 5777, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d33d0d28-1bba-443f-bbdd-10defe06199e", + "parentUUID": "9bc955ab-bc5e-49af-8daa-755ed3dc584f", + "isHook": false, + "skipped": false + }, + { + "title": "should add a specific price", + "fullTitle": "FO - Navigation and display : Display tags BO - Create product with specific should add a specific price", + "timedOut": false, + "duration": 1702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_addSpecificPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addSpecificPrice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.clickOnAddSpecificPriceButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pricingTab_1.default.setSpecificPrice(page, specificPriceData.specificPrice)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.equal(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c02d173e-97dd-4d0a-80c3-91768d272bd6", + "parentUUID": "9bc955ab-bc5e-49af-8daa-755ed3dc584f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7779d8de-b29f-4ff5-8003-50dd9649edab", + "6e009881-a674-4bcc-9972-3e3c65e22700", + "6eda0481-48ab-4c5f-8cb6-f068fbd33824", + "d33d0d28-1bba-443f-bbdd-10defe06199e", + "c02d173e-97dd-4d0a-80c3-91768d272bd6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13722, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "856ea4d8-bb90-491c-ac80-a54cdbaeba1c", + "title": "FO - Check the discount tag", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the discount tag should preview product", + "timedOut": false, + "duration": 1573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToShopFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c87b5c1c-3a2a-4615-814f-fc4492814381", + "parentUUID": "856ea4d8-bb90-491c-ac80-a54cdbaeba1c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount tag", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the discount tag should check the discount tag", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_checkDiscountTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var flagText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductTag(page)];\n case 2:\n flagText = _a.sent();\n (0, chai_1.expect)(flagText).to.eq(\"-\\u20AC\".concat(specificPriceData.specificPrice.discount.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a1e4478-f00e-4a4f-987f-24c06353f30c", + "parentUUID": "856ea4d8-bb90-491c-ac80-a54cdbaeba1c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c87b5c1c-3a2a-4615-814f-fc4492814381", + "5a1e4478-f00e-4a4f-987f-24c06353f30c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1581, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7c65dbfa-fb6e-4dd2-80ba-7cb230c8754e", + "title": "BO - Create a pack of products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back BO", + "fullTitle": "FO - Navigation and display : Display tags BO - Create a pack of products should go back BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa66935b-85b5-4023-bf89-81f966bba674", + "parentUUID": "7c65dbfa-fb6e-4dd2-80ba-7cb230c8754e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Navigation and display : Display tags BO - Create a pack of products should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToProductsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db89a151-adb4-4c99-94d9-0159265acb53", + "parentUUID": "7c65dbfa-fb6e-4dd2-80ba-7cb230c8754e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "FO - Navigation and display : Display tags BO - Create a pack of products should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 219, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "789c6b20-cd32-4b96-a224-99f154f64805", + "parentUUID": "7c65dbfa-fb6e-4dd2-80ba-7cb230c8754e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Pack of products'", + "fullTitle": "FO - Navigation and display : Display tags BO - Create a pack of products should choose 'Pack of products'", + "timedOut": false, + "duration": 863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, packOfProducts.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e010c9a-6c7e-4654-a38f-906bca0a2b6b", + "parentUUID": "7c65dbfa-fb6e-4dd2-80ba-7cb230c8754e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "FO - Navigation and display : Display tags BO - Create a pack of products should go to new product page", + "timedOut": false, + "duration": 52, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89429b18-3974-47e0-85cb-7128d59dfc1e", + "parentUUID": "7c65dbfa-fb6e-4dd2-80ba-7cb230c8754e", + "isHook": false, + "skipped": false + }, + { + "title": "create product 'Pack of products'", + "fullTitle": "FO - Navigation and display : Display tags BO - Create a pack of products create product 'Pack of products'", + "timedOut": false, + "duration": 7510, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_createProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, packOfProducts)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e892da7-57f5-41b9-8bf8-b12b7ee062ee", + "parentUUID": "7c65dbfa-fb6e-4dd2-80ba-7cb230c8754e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fa66935b-85b5-4023-bf89-81f966bba674", + "db89a151-adb4-4c99-94d9-0159265acb53", + "789c6b20-cd32-4b96-a224-99f154f64805", + "2e010c9a-6c7e-4654-a38f-906bca0a2b6b", + "89429b18-3974-47e0-85cb-7128d59dfc1e", + "2e892da7-57f5-41b9-8bf8-b12b7ee062ee" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13597, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b6dd1fca-dfef-4745-83c2-f1a2bd230e83", + "title": "FO - Check the pack tag", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the pack tag should preview product", + "timedOut": false, + "duration": 1234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToShopFO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(packOfProducts.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08fb8d81-344a-4b9e-a9bd-cb759e1aa6df", + "parentUUID": "b6dd1fca-dfef-4745-83c2-f1a2bd230e83", + "isHook": false, + "skipped": false + }, + { + "title": "should check the pack tag", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the pack tag should check the pack tag", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_checkPackTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var flagText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPackTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductTag(page)];\n case 2:\n flagText = _a.sent();\n (0, chai_1.expect)(flagText).to.eq('Pack');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3d93978-4bd9-4006-86f9-fa8f9348311d", + "parentUUID": "b6dd1fca-dfef-4745-83c2-f1a2bd230e83", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "08fb8d81-344a-4b9e-a9bd-cb759e1aa6df", + "d3d93978-4bd9-4006-86f9-fa8f9348311d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1242, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "042a94ce-a605-45b4-be26-56ae372300ff", + "title": "BO - Change the created product quantity to 0", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back BO", + "fullTitle": "FO - Navigation and display : Display tags BO - Change the created product quantity to 0 should go back BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goBackToBO3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62b32231-2197-4af2-b852-385724905b41", + "parentUUID": "042a94ce-a605-45b4-be26-56ae372300ff", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the quantity", + "fullTitle": "FO - Navigation and display : Display tags BO - Change the created product quantity to 0 should edit the quantity", + "timedOut": false, + "duration": 1535, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_editQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setProductQuantity(page, 0)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 3:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bcf774b-a155-4ffd-b24a-132fde74ca70", + "parentUUID": "042a94ce-a605-45b4-be26-56ae372300ff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "62b32231-2197-4af2-b852-385724905b41", + "5bcf774b-a155-4ffd-b24a-132fde74ca70" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1540, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "59619160-7c7a-4885-8078-5d3fcdf366a0", + "title": "FO - Check the out-of-stock tag", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the out-of-stock tag should preview product", + "timedOut": false, + "duration": 1131, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToShopFO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(packOfProducts.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "851b3f69-2b70-4699-a2fb-4cc59a2c7bb5", + "parentUUID": "59619160-7c7a-4885-8078-5d3fcdf366a0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the out-of-stock and pack tags", + "fullTitle": "FO - Navigation and display : Display tags FO - Check the out-of-stock tag should check the out-of-stock and pack tags", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_checkOutOfStockTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var flagText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOutOfStockTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductTag(page)];\n case 2:\n flagText = _a.sent();\n (0, chai_1.expect)(flagText).to.contain('Pack')\n .and.contain('Out-of-Stock');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89ac3174-815d-4b7a-9256-cb77c9c66d40", + "parentUUID": "59619160-7c7a-4885-8078-5d3fcdf366a0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "851b3f69-2b70-4699-a2fb-4cc59a2c7bb5", + "89ac3174-815d-4b7a-9256-cb77c9c66d40" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1139, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e79d19d5-993d-4b05-90de-63b3b27e5c5e", + "title": "POST-TEST : Reset 'Number of days for which the product is considered 'new''", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST : Reset 'Number of days for which the product is considered 'new'' should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "179e5589-6384-446b-880c-62ec618093ea", + "parentUUID": "e79d19d5-993d-4b05-90de-63b3b27e5c5e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST : Reset 'Number of days for which the product is considered 'new'' should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3605, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_goToProductSettingsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a82558e3-7466-438a-a237-8a38a8e19a7d", + "parentUUID": "e79d19d5-993d-4b05-90de-63b3b27e5c5e", + "isHook": false, + "skipped": false + }, + { + "title": "should change the number of days to 12", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST : Reset 'Number of days for which the product is considered 'new'' should change the number of days to 12", + "timedOut": false, + "duration": 894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_changeNumberOfDays\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeNumberOfDays', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.updateNumberOfDays(page, 12)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f0da005-d6ad-447b-8b13-263577b847fa", + "parentUUID": "e79d19d5-993d-4b05-90de-63b3b27e5c5e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "179e5589-6384-446b-880c-62ec618093ea", + "a82558e3-7466-438a-a237-8a38a8e19a7d", + "3f0da005-d6ad-447b-8b13-263577b847fa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4504, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "title": "POST-TEST: Delete product 'Awesome Cotton Chips'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Awesome Cotton Chips'\"", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Awesome Cotton Chips' \"before all\" hook in \"POST-TEST: Delete product 'Awesome Cotton Chips'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69e162de-9613-49a3-bac1-6e9cdf0dfd71", + "parentUUID": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Awesome Cotton Chips'\"", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Awesome Cotton Chips' \"after all\" hook in \"POST-TEST: Delete product 'Awesome Cotton Chips'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "939f3ed4-88d0-4bcf-8e8a-9c9c6329bdb6", + "parentUUID": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Awesome Cotton Chips' should login in BO", + "timedOut": false, + "duration": 1970, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "086d15e9-5e43-4673-a3a3-1c72d8b6182c", + "parentUUID": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Awesome Cotton Chips' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_1_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0ca4aa9-f003-49fc-bd03-47289a9a05df", + "parentUUID": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Awesome Cotton Chips' should reset all filters", + "timedOut": false, + "duration": 2935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_1_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6473dff-86f6-4d1c-876d-6956e7f2a872", + "parentUUID": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Awesome Cotton Chips' should click on delete product button", + "timedOut": false, + "duration": 278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_1_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc62e50e-e0cd-4b13-a1fa-5e242425ec07", + "parentUUID": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Awesome Cotton Chips' should delete product", + "timedOut": false, + "duration": 706, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_1_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ce46172-6752-4e13-84ad-b68a9cde6343", + "parentUUID": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Awesome Cotton Chips' should reset filter", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_1_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54d99595-e16f-4078-8293-2ccadf1864b5", + "parentUUID": "1ed523c8-e9d5-4eaf-b0ec-575987736923", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "086d15e9-5e43-4673-a3a3-1c72d8b6182c", + "b0ca4aa9-f003-49fc-bd03-47289a9a05df", + "b6473dff-86f6-4d1c-876d-6956e7f2a872", + "dc62e50e-e0cd-4b13-a1fa-5e242425ec07", + "3ce46172-6752-4e13-84ad-b68a9cde6343", + "54d99595-e16f-4078-8293-2ccadf1864b5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9918, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e3c72849-567f-4049-ab5a-cca85c03f107", + "title": "POST-TEST: Delete product 'Pack of products'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/01_displayTags.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Pack of products'\"", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Pack of products' \"before all\" hook in \"POST-TEST: Delete product 'Pack of products'\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14332597-f19c-49bc-82f6-adc6ceedad40", + "parentUUID": "e3c72849-567f-4049-ab5a-cca85c03f107", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Pack of products'\"", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Pack of products' \"after all\" hook in \"POST-TEST: Delete product 'Pack of products'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "06530228-c63f-44ad-9249-230993ddf9ac", + "parentUUID": "e3c72849-567f-4049-ab5a-cca85c03f107", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Pack of products' should login in BO", + "timedOut": false, + "duration": 1799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "960dc547-0e4b-4d07-86a6-f8f7c6c50c6f", + "parentUUID": "e3c72849-567f-4049-ab5a-cca85c03f107", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Pack of products' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3985, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_2_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a5f6114-a470-4f79-b6a8-3c83a3610122", + "parentUUID": "e3c72849-567f-4049-ab5a-cca85c03f107", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Pack of products' should reset all filters", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_2_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef00def5-c5fb-4042-a7f6-b7a74356c5d2", + "parentUUID": "e3c72849-567f-4049-ab5a-cca85c03f107", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Pack of products' should click on delete product button", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_2_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bed9c91-cb23-47e4-b5e5-f2eacd512b70", + "parentUUID": "e3c72849-567f-4049-ab5a-cca85c03f107", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Pack of products' should delete product", + "timedOut": false, + "duration": 684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_2_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4e1ef67-30dc-4cc8-812a-8207ea39d424", + "parentUUID": "e3c72849-567f-4049-ab5a-cca85c03f107", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "FO - Navigation and display : Display tags POST-TEST: Delete product 'Pack of products' should reset filter", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayTags_deleteProduct_2_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12cc019e-5db5-47b4-af70-52e31ceca528", + "parentUUID": "e3c72849-567f-4049-ab5a-cca85c03f107", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "960dc547-0e4b-4d07-86a6-f8f7c6c50c6f", + "2a5f6114-a470-4f79-b6a8-3c83a3610122", + "ef00def5-c5fb-4042-a7f6-b7a74356c5d2", + "5bed9c91-cb23-47e4-b5e5-f2eacd512b70", + "c4e1ef67-30dc-4cc8-812a-8207ea39d424", + "12cc019e-5db5-47b4-af70-52e31ceca528" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6810, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ac74730e-4de9-4a8a-84fb-b35cb191d193", + "title": "FO - Navigation and display : Pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Navigation and display : Pagination\"", + "fullTitle": "FO - Navigation and display : Pagination \"before all\" hook in \"FO - Navigation and display : Pagination\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f004ad78-5552-48bf-956f-90c428864c84", + "parentUUID": "ac74730e-4de9-4a8a-84fb-b35cb191d193", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Navigation and display : Pagination\"", + "fullTitle": "FO - Navigation and display : Pagination \"after all\" hook in \"FO - Navigation and display : Pagination\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d7fcdf15-308e-4ba0-a6f4-6bc44c9eb7ac", + "parentUUID": "ac74730e-4de9-4a8a-84fb-b35cb191d193", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c1a9d3c2-65fb-4879-8115-a96ab5ab5922", + "title": "FO - Pagination next and previous", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Navigation and display : Pagination FO - Pagination next and previous should open the shop page", + "timedOut": false, + "duration": 724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_openShopPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openShopPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4546b13-c97d-41a1-9dd7-a825005f8b32", + "parentUUID": "c1a9d3c2-65fb-4879-8115-a96ab5ab5922", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "FO - Navigation and display : Pagination FO - Pagination next and previous should go to all products page", + "timedOut": false, + "duration": 2241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_goToAllProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8d5d4dc-e8f6-4600-9b95-8316abd72102", + "parentUUID": "c1a9d3c2-65fb-4879-8115-a96ab5ab5922", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products on the page", + "fullTitle": "FO - Navigation and display : Pagination FO - Pagination next and previous should check the number of products on the page", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_numberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'numberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.eql(19);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d71e8ea-6337-465d-9dcb-84eebc43b460", + "parentUUID": "c1a9d3c2-65fb-4879-8115-a96ab5ab5922", + "isHook": false, + "skipped": false + }, + { + "title": "should check the pagination in the bottom of the page", + "fullTitle": "FO - Navigation and display : Pagination FO - Pagination next and previous should check the pagination in the bottom of the page", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_checkPaginationLabel\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pagesList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaginationLabel', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getPagesList(page)];\n case 2:\n pagesList = _a.sent();\n (0, chai_1.expect)(pagesList).to.contain('1 2 Next');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e628030-cee1-4f50-868f-1fec03f60494", + "parentUUID": "c1a9d3c2-65fb-4879-8115-a96ab5ab5922", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "FO - Navigation and display : Pagination FO - Pagination next and previous should click on next", + "timedOut": false, + "duration": 195, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_clickOnNext\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToNextPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getShowingItems(page)];\n case 3:\n numberOfItems = _a.sent();\n (0, chai_1.expect)(numberOfItems).to.eq('Showing 13-19 of 19 item(s)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e44c0a9b-349d-4e42-8055-a331858f3235", + "parentUUID": "c1a9d3c2-65fb-4879-8115-a96ab5ab5922", + "isHook": false, + "skipped": false + }, + { + "title": "should check the pagination in the bottom of the page", + "fullTitle": "FO - Navigation and display : Pagination FO - Pagination next and previous should check the pagination in the bottom of the page", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_checkPaginationLabel1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pagesList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaginationLabel1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getPagesList(page)];\n case 2:\n pagesList = _a.sent();\n (0, chai_1.expect)(pagesList).to.contain('Previous 1 2');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecf7fb7d-7613-4ba7-be3c-23a15c47950e", + "parentUUID": "c1a9d3c2-65fb-4879-8115-a96ab5ab5922", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "FO - Navigation and display : Pagination FO - Pagination next and previous should click on previous", + "timedOut": false, + "duration": 230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_clickOnPrevious\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToPreviousPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getShowingItems(page)];\n case 3:\n numberOfItems = _a.sent();\n (0, chai_1.expect)(numberOfItems).to.eq('Showing 1-12 of 19 item(s)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbc60cae-ebdc-486d-b8e1-dd3a421ccdc3", + "parentUUID": "c1a9d3c2-65fb-4879-8115-a96ab5ab5922", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d4546b13-c97d-41a1-9dd7-a825005f8b32", + "f8d5d4dc-e8f6-4600-9b95-8316abd72102", + "2d71e8ea-6337-465d-9dcb-84eebc43b460", + "3e628030-cee1-4f50-868f-1fec03f60494", + "e44c0a9b-349d-4e42-8055-a331858f3235", + "ecf7fb7d-7613-4ba7-be3c-23a15c47950e", + "dbc60cae-ebdc-486d-b8e1-dd3a421ccdc3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3412, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d47fec66-d32b-47d3-a031-99d30e3dcac6", + "title": "BO - Edit products per page number to 6", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Navigation and display : Pagination BO - Edit products per page number to 6 should login in BO", + "timedOut": false, + "duration": 1649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c356c44-3bc3-4a88-93f1-1f36d01382e4", + "parentUUID": "d47fec66-d32b-47d3-a031-99d30e3dcac6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Shop parameters > Product Settings' page", + "fullTitle": "FO - Navigation and display : Pagination BO - Edit products per page number to 6 should go to 'Shop parameters > Product Settings' page", + "timedOut": false, + "duration": 3856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_goToProductSettingsPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductSettingsPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.productSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cab66b86-0a2f-4f5a-95f2-5b9c88ac80fa", + "parentUUID": "d47fec66-d32b-47d3-a031-99d30e3dcac6", + "isHook": false, + "skipped": false + }, + { + "title": "should change the number of products per page to 6", + "fullTitle": "FO - Navigation and display : Pagination BO - Edit products per page number to 6 should change the number of products per page to 6", + "timedOut": false, + "duration": 929, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_changeNumberOfDays0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeNumberOfDays0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, 6)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cec3e48-7b4c-4687-9b3f-18c7c2f7d8f5", + "parentUUID": "d47fec66-d32b-47d3-a031-99d30e3dcac6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1c356c44-3bc3-4a88-93f1-1f36d01382e4", + "cab66b86-0a2f-4f5a-95f2-5b9c88ac80fa", + "8cec3e48-7b4c-4687-9b3f-18c7c2f7d8f5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6434, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5394d47c-e17e-4bd6-9158-ff29c6a093d1", + "title": "FO - Check the new pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop page", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should view my shop page", + "timedOut": false, + "duration": 2003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_goToShopFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "990e5d9c-88ba-461b-92b7-14081fdba8bf", + "parentUUID": "5394d47c-e17e-4bd6-9158-ff29c6a093d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should go to all products page", + "timedOut": false, + "duration": 2134, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_goToAllProducts1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2b3e806-403e-4299-b5d7-10d26645757f", + "parentUUID": "5394d47c-e17e-4bd6-9158-ff29c6a093d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products on the page", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should check the number of products on the page", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_numberOfProducts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'numberOfProducts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.eql(19);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5b8d61f-fcd7-42ee-acd5-33716c44c4c9", + "parentUUID": "5394d47c-e17e-4bd6-9158-ff29c6a093d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the pagination in the bottom of the page", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should check the pagination in the bottom of the page", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_checkPaginationLabel2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pagesList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaginationLabel2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getPagesList(page)];\n case 2:\n pagesList = _a.sent();\n (0, chai_1.expect)(pagesList).to.contain('1 2 3 4 Next');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21c791f7-de74-4fd3-80fb-d622f9a99853", + "parentUUID": "5394d47c-e17e-4bd6-9158-ff29c6a093d1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should click on next", + "timedOut": false, + "duration": 205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_clickOnNext1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNext1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToNextPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getShowingItems(page)];\n case 3:\n numberOfItems = _a.sent();\n (0, chai_1.expect)(numberOfItems).to.eq('Showing 7-12 of 19 item(s)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b4dfd08-22f9-4281-a94c-b33a3aefab78", + "parentUUID": "5394d47c-e17e-4bd6-9158-ff29c6a093d1", + "isHook": false, + "skipped": false + }, + { + "title": "should check the pagination in the bottom of the page", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should check the pagination in the bottom of the page", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_checkPaginationLabel3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pagesList;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaginationLabel3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getPagesList(page)];\n case 2:\n pagesList = _a.sent();\n (0, chai_1.expect)(pagesList).to.contain('Previous 1 2 3 4 Next');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3c922a3-d3b1-48ca-9b8f-1c8b472438a9", + "parentUUID": "5394d47c-e17e-4bd6-9158-ff29c6a093d1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on previous", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should click on previous", + "timedOut": false, + "duration": 188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_clickOnPrevious1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnPrevious1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToPreviousPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getShowingItems(page)];\n case 3:\n numberOfItems = _a.sent();\n (0, chai_1.expect)(numberOfItems).to.eq('Showing 1-6 of 19 item(s)');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "955cb2b5-e393-4ced-9af8-c96afaeca2e9", + "parentUUID": "5394d47c-e17e-4bd6-9158-ff29c6a093d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "990e5d9c-88ba-461b-92b7-14081fdba8bf", + "a2b3e806-403e-4299-b5d7-10d26645757f", + "a5b8d61f-fcd7-42ee-acd5-33716c44c4c9", + "21c791f7-de74-4fd3-80fb-d622f9a99853", + "8b4dfd08-22f9-4281-a94c-b33a3aefab78", + "c3c922a3-d3b1-48ca-9b8f-1c8b472438a9", + "955cb2b5-e393-4ced-9af8-c96afaeca2e9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4553, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e7422573-d3c1-44ce-ac57-7973e14e09b2", + "title": "BO - Edit products per page number to 20", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should close the FO page", + "fullTitle": "FO - Navigation and display : Pagination BO - Edit products per page number to 20 should close the FO page", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_closeFOPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeFOPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13963f2d-2979-4e59-a2ec-63d0bee02c51", + "parentUUID": "e7422573-d3c1-44ce-ac57-7973e14e09b2", + "isHook": false, + "skipped": false + }, + { + "title": "should change the number of products per page to 20", + "fullTitle": "FO - Navigation and display : Pagination BO - Edit products per page number to 20 should change the number of products per page to 20", + "timedOut": false, + "duration": 941, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_changeNumberOfDays1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeNumberOfDays1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, 20)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78a7a193-9157-42b9-b43a-8d2ef4237100", + "parentUUID": "e7422573-d3c1-44ce-ac57-7973e14e09b2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "13963f2d-2979-4e59-a2ec-63d0bee02c51", + "78a7a193-9157-42b9-b43a-8d2ef4237100" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 949, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "392e4dbe-8877-4d39-ab9b-8adb131975d5", + "title": "FO - Check the new pagination", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop page", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should view my shop page", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_goToShopFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "819cb9fb-cbaf-4988-981b-9d39053b96a8", + "parentUUID": "392e4dbe-8877-4d39-ab9b-8adb131975d5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should go to all products page", + "timedOut": false, + "duration": 2221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_goToAllProducts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 4:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b6a6d72-2d92-47b8-bec4-2c8fb9611bef", + "parentUUID": "392e4dbe-8877-4d39-ab9b-8adb131975d5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of products on the page", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should check the number of products on the page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_numberOfProducts3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'numberOfProducts3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNumberOfProducts(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.eql(19);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05347690-ee30-443f-bdfc-f7b9314f7169", + "parentUUID": "392e4dbe-8877-4d39-ab9b-8adb131975d5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the pagination label is not visible", + "fullTitle": "FO - Navigation and display : Pagination FO - Check the new pagination should check that the pagination label is not visible", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_checkPaginationLabel4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaginationLabel4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.isPagesListVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38037092-95c0-4a99-9e61-09bb32d5cf79", + "parentUUID": "392e4dbe-8877-4d39-ab9b-8adb131975d5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "819cb9fb-cbaf-4988-981b-9d39053b96a8", + "9b6a6d72-2d92-47b8-bec4-2c8fb9611bef", + "05347690-ee30-443f-bdfc-f7b9314f7169", + "38037092-95c0-4a99-9e61-09bb32d5cf79" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4244, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d626f205-44d9-4eb2-a96c-a1f2d2979c15", + "title": "POST-TEST : Reset 'Number of products per page'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/02_pagination.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back BO", + "fullTitle": "FO - Navigation and display : Pagination POST-TEST : Reset 'Number of products per page' should go back BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_goBackToBO4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, productSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8ff15b7-fd2e-4823-8a92-1a99a299c127", + "parentUUID": "d626f205-44d9-4eb2-a96c-a1f2d2979c15", + "isHook": false, + "skipped": false + }, + { + "title": "should change the number of products per page to 12", + "fullTitle": "FO - Navigation and display : Pagination POST-TEST : Reset 'Number of products per page' should change the number of products per page to 12", + "timedOut": false, + "duration": 907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_pagination_changeNumberOfDays2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeNumberOfDays2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productSettings_1.default.setProductsDisplayedPerPage(page, 12)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(productSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71c48d0a-1dec-413a-adbb-11303a1b4a37", + "parentUUID": "d626f205-44d9-4eb2-a96c-a1f2d2979c15", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d8ff15b7-fd2e-4823-8a92-1a99a299c127", + "71c48d0a-1dec-413a-adbb-11303a1b4a37" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 912, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8aa11a23-9d2f-4967-af34-f70d8a3e0d50", + "title": "FO - Navigation and display : Quick view products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/03_quickViewProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/03_quickViewProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Navigation and display : Quick view products\"", + "fullTitle": "FO - Navigation and display : Quick view products \"before all\" hook in \"FO - Navigation and display : Quick view products\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1041eced-7e8a-4a25-9c40-27edcb9b5fa3", + "parentUUID": "8aa11a23-9d2f-4967-af34-f70d8a3e0d50", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Navigation and display : Quick view products\"", + "fullTitle": "FO - Navigation and display : Quick view products \"after all\" hook in \"FO - Navigation and display : Quick view products\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "975cb54b-05b9-4031-b52b-da379bf3585d", + "parentUUID": "8aa11a23-9d2f-4967-af34-f70d8a3e0d50", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "1b679fe1-c9a5-4425-bbd2-bd2ea79734f2", + "title": "Quick view the product 'Hummingbird printed sweater'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/03_quickViewProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/03_quickViewProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Hummingbird printed sweater' should open the shop page", + "timedOut": false, + "duration": 782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd30d1eb-377f-45ad-a76a-46ebe6a33ce6", + "parentUUID": "1b679fe1-c9a5-4425-bbd2-bd2ea79734f2", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product 'Hummingbird printed sweater'", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Hummingbird printed sweater' should search for the product 'Hummingbird printed sweater'", + "timedOut": false, + "duration": 846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_searchProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_3.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f90feb40-ab2c-4e81-8d56-3d0275e46dca", + "parentUUID": "1b679fe1-c9a5-4425-bbd2-bd2ea79734f2", + "isHook": false, + "skipped": false + }, + { + "title": "should quick view the product 'Hummingbird printed sweater'", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Hummingbird printed sweater' should quick view the product 'Hummingbird printed sweater'", + "timedOut": false, + "duration": 483, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_quickViewProduct1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickViewProduct1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.quickViewProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.isQuickViewProductModalVisible(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bbce5e4-438b-4e38-a5e5-72f018822089", + "parentUUID": "1b679fe1-c9a5-4425-bbd2-bd2ea79734f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check product information", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Hummingbird printed sweater' should check product information", + "timedOut": false, + "duration": 37, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_checkProductInformation1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromQuickViewModal(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_3.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_3.finalPrice),\n (0, chai_1.expect)(result.taxShippingDeliveryLabel).to.equal('Tax included'),\n (0, chai_1.expect)(result.shortDescription).to.equal(products_1.default.demo_3.summary),\n (0, chai_1.expect)(result.coverImage).to.contains(products_1.default.demo_3.coverImage),\n (0, chai_1.expect)(result.thumbImage).to.contains(products_1.default.demo_3.thumbImage),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20b39f7d-93a4-43a0-ad9a-f6d048eeb817", + "parentUUID": "1b679fe1-c9a5-4425-bbd2-bd2ea79734f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and check that the block cart modal is visible", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Hummingbird printed sweater' should add product to cart and check that the block cart modal is visible", + "timedOut": false, + "duration": 1066, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_clickOnContinueShopping\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnContinueShopping', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addToCartByQuickView(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isBlockCartModalVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76df708f-c2e2-4e6b-8bf7-645105c8ae1b", + "parentUUID": "1b679fe1-c9a5-4425-bbd2-bd2ea79734f2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on continue shopping button", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Hummingbird printed sweater' should click on continue shopping button", + "timedOut": false, + "duration": 213, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_continueShopping\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'continueShopping', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.continueShopping(page)];\n case 2:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "438a79a9-8e24-4e58-a77f-2ff5238332cc", + "parentUUID": "1b679fe1-c9a5-4425-bbd2-bd2ea79734f2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd30d1eb-377f-45ad-a76a-46ebe6a33ce6", + "f90feb40-ab2c-4e81-8d56-3d0275e46dca", + "1bbce5e4-438b-4e38-a5e5-72f018822089", + "20b39f7d-93a4-43a0-ad9a-f6d048eeb817", + "76df708f-c2e2-4e6b-8bf7-645105c8ae1b", + "438a79a9-8e24-4e58-a77f-2ff5238332cc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3427, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e8fc80c5-b38d-4dc4-b163-fef157f67398", + "title": "Quick view the product 'Mug The adventure begins'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/03_quickViewProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/03_quickViewProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Mug The adventure begins'", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Mug The adventure begins' should search for the product 'Mug The adventure begins'", + "timedOut": false, + "duration": 833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_searchProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_12.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03695852-cdac-4fb6-9534-37295c2412f7", + "parentUUID": "e8fc80c5-b38d-4dc4-b163-fef157f67398", + "isHook": false, + "skipped": false + }, + { + "title": "should quick view the product 'Mug The adventure begins'", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Mug The adventure begins' should quick view the product 'Mug The adventure begins'", + "timedOut": false, + "duration": 458, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_quickViewProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickViewProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.quickViewProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.isQuickViewProductModalVisible(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47201c24-3c11-42d5-9542-0e6dd8bbb855", + "parentUUID": "e8fc80c5-b38d-4dc4-b163-fef157f67398", + "isHook": false, + "skipped": false + }, + { + "title": "should check product information", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Mug The adventure begins' should check product information", + "timedOut": false, + "duration": 38, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_checkProductInformation2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromQuickViewModal(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_12.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_12.price),\n (0, chai_1.expect)(result.taxShippingDeliveryLabel).to.equal('Tax included'),\n (0, chai_1.expect)(result.shortDescription).to.equal(products_1.default.demo_12.summary),\n (0, chai_1.expect)(result.coverImage).to.contains(products_1.default.demo_12.coverImage),\n (0, chai_1.expect)(result.thumbImage).to.contains(products_1.default.demo_12.thumbImage),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5db624eb-54ad-48a8-aa95-772b94c1d5bc", + "parentUUID": "e8fc80c5-b38d-4dc4-b163-fef157f67398", + "isHook": false, + "skipped": false + }, + { + "title": "should close the modal", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Mug The adventure begins' should close the modal", + "timedOut": false, + "duration": 454, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_closeModal1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isQuickViewModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeModal1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closeQuickViewModal(page)];\n case 2:\n isQuickViewModalClosed = _a.sent();\n (0, chai_1.expect)(isQuickViewModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a9c5ee1-8636-4d64-b85a-b818eeaeb302", + "parentUUID": "e8fc80c5-b38d-4dc4-b163-fef157f67398", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "03695852-cdac-4fb6-9534-37295c2412f7", + "47201c24-3c11-42d5-9542-0e6dd8bbb855", + "5db624eb-54ad-48a8-aa95-772b94c1d5bc", + "4a9c5ee1-8636-4d64-b85a-b818eeaeb302" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1783, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "79f41a9d-8732-4962-b511-adfb85234a21", + "title": "Quick view the product 'Customizable mug'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/03_quickViewProducts.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/03_quickViewProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the product 'Mug The adventure begins'", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Customizable mug' should search for the product 'Mug The adventure begins'", + "timedOut": false, + "duration": 788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_searchProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_14.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "260788bd-2a51-4458-b094-50bbf74ecf57", + "parentUUID": "79f41a9d-8732-4962-b511-adfb85234a21", + "isHook": false, + "skipped": false + }, + { + "title": "should quick view the product 'Customizable mug'", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Customizable mug' should quick view the product 'Customizable mug'", + "timedOut": false, + "duration": 450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_quickViewProduct3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickViewProduct3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.quickViewProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.isQuickViewProductModalVisible(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e3966ed-5c1f-4a69-a7f8-0db3f7304e8a", + "parentUUID": "79f41a9d-8732-4962-b511-adfb85234a21", + "isHook": false, + "skipped": false + }, + { + "title": "should check product information", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Customizable mug' should check product information", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_checkProductInformation3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromQuickViewModal(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_14.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_14.price),\n (0, chai_1.expect)(result.taxShippingDeliveryLabel).to.equal('Tax included'),\n (0, chai_1.expect)(result.shortDescription).to.equal(products_1.default.demo_14.summary),\n (0, chai_1.expect)(result.coverImage).to.contains(products_1.default.demo_14.coverImage),\n (0, chai_1.expect)(result.thumbImage).to.contains(products_1.default.demo_14.thumbImage),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba40c4bb-0666-47ca-96a6-31dc1abb60e4", + "parentUUID": "79f41a9d-8732-4962-b511-adfb85234a21", + "isHook": false, + "skipped": false + }, + { + "title": "should check that 'Add to cart' button is disabled", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Customizable mug' should check that 'Add to cart' button is disabled", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_checkAddToCartButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddToCartButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isAddToCartButtonEnabled(page)];\n case 2:\n isEnabled = _a.sent();\n (0, chai_1.expect)(isEnabled, 'Add to cart button is not disabled').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b331663b-8fd3-4729-a24a-9b54291d4ad6", + "parentUUID": "79f41a9d-8732-4962-b511-adfb85234a21", + "isHook": false, + "skipped": false + }, + { + "title": "should close the modal", + "fullTitle": "FO - Navigation and display : Quick view products Quick view the product 'Customizable mug' should close the modal", + "timedOut": false, + "duration": 434, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_quickViewProducts_closeModal2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isQuickViewModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeModal2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closeQuickViewModal(page)];\n case 2:\n isQuickViewModalClosed = _a.sent();\n (0, chai_1.expect)(isQuickViewModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14cfb4c3-bc9e-4018-90ba-32d666c05009", + "parentUUID": "79f41a9d-8732-4962-b511-adfb85234a21", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "260788bd-2a51-4458-b094-50bbf74ecf57", + "1e3966ed-5c1f-4a69-a7f8-0db3f7304e8a", + "ba40c4bb-0666-47ca-96a6-31dc1abb60e4", + "b331663b-8fd3-4729-a24a-9b54291d4ad6", + "14cfb4c3-bc9e-4018-90ba-32d666c05009" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1714, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4ee6c463-98a3-432e-8ac2-358557952d65", + "title": "FO - Navigation and display : Display 'On sale' flag", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/04_displayOnSaleFlag.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/04_displayOnSaleFlag.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Navigation and display : Display 'On sale' flag\"", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag \"before all\" hook in \"FO - Navigation and display : Display 'On sale' flag\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f047fdde-0910-47f9-954f-6e2f5ecf1356", + "parentUUID": "4ee6c463-98a3-432e-8ac2-358557952d65", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Navigation and display : Display 'On sale' flag\"", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag \"after all\" hook in \"FO - Navigation and display : Display 'On sale' flag\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0db59569-c756-4dae-9fd3-9321b691b8cb", + "parentUUID": "4ee6c463-98a3-432e-8ac2-358557952d65", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c96e4002-6f05-4b3a-9423-7a47396b0d24", + "title": "BO - Create product with enabled flag 'On sale'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/04_displayOnSaleFlag.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/04_displayOnSaleFlag.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag BO - Create product with enabled flag 'On sale' should login in BO", + "timedOut": false, + "duration": 1893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96635314-4fc8-4404-b77e-57b59b931a2f", + "parentUUID": "c96e4002-6f05-4b3a-9423-7a47396b0d24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag BO - Create product with enabled flag 'On sale' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4981, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_goToProductsPage3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bea0b7f2-ed6a-4ea6-bc10-e7178f5acb67", + "parentUUID": "c96e4002-6f05-4b3a-9423-7a47396b0d24", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag BO - Create product with enabled flag 'On sale' should click on new product button and go to new product page", + "timedOut": false, + "duration": 1143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_clickOnNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, onSaleProductData.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91fc8c38-716d-4be6-91db-7e162b64433f", + "parentUUID": "c96e4002-6f05-4b3a-9423-7a47396b0d24", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag BO - Create product with enabled flag 'On sale' should create standard product", + "timedOut": false, + "duration": 5500, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, onSaleProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4ca9ff7-dedd-4345-85d3-40539126c0fd", + "parentUUID": "c96e4002-6f05-4b3a-9423-7a47396b0d24", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "96635314-4fc8-4404-b77e-57b59b931a2f", + "bea0b7f2-ed6a-4ea6-bc10-e7178f5acb67", + "91fc8c38-716d-4be6-91db-7e162b64433f", + "e4ca9ff7-dedd-4345-85d3-40539126c0fd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13517, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "39661aeb-b05e-4141-bda7-9c91dbb1e793", + "title": "FO - Check 'On sale' flag", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/04_displayOnSaleFlag.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/04_displayOnSaleFlag.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should preview product", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag FO - Check 'On sale' flag should preview product", + "timedOut": false, + "duration": 1249, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_goToShopFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(onSaleProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9acd8e07-b4a9-45ca-a654-054c78236c6b", + "parentUUID": "39661aeb-b05e-4141-bda7-9c91dbb1e793", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount flag", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag FO - Check 'On sale' flag should check the discount flag", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_checkDiscountTag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var flagText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountTag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.getProductTag(page)];\n case 2:\n flagText = _a.sent();\n (0, chai_1.expect)(flagText).to.contains('On sale!');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da1c2ef5-67c1-4083-832b-9b59d9fce27d", + "parentUUID": "39661aeb-b05e-4141-bda7-9c91dbb1e793", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9acd8e07-b4a9-45ca-a654-054c78236c6b", + "da1c2ef5-67c1-4083-832b-9b59d9fce27d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1257, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "title": "POST-TEST: Delete product 'On sale product'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/04_displayOnSaleFlag.ts", + "file": "/campaigns/functional/FO/classic/08_menuAndNavigation/03_navigationAndDisplay/04_displayOnSaleFlag.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'On sale product'\"", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag POST-TEST: Delete product 'On sale product' \"before all\" hook in \"POST-TEST: Delete product 'On sale product'\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbd45657-f473-4951-ac74-297c47424832", + "parentUUID": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'On sale product'\"", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag POST-TEST: Delete product 'On sale product' \"after all\" hook in \"POST-TEST: Delete product 'On sale product'\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "58a5cb2b-165b-426f-8404-40ecaa710ee9", + "parentUUID": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag POST-TEST: Delete product 'On sale product' should login in BO", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68279375-d4b7-41a8-bd91-99c2071e5d47", + "parentUUID": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag POST-TEST: Delete product 'On sale product' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_deleteProduct_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10b6a22f-468e-4f43-99a7-6aaaa7f3f4a9", + "parentUUID": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag POST-TEST: Delete product 'On sale product' should reset all filters", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_deleteProduct_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "396f01e4-e349-48ae-bb51-0eaa1c67eec9", + "parentUUID": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag POST-TEST: Delete product 'On sale product' should click on delete product button", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_deleteProduct_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5418feb8-5ea7-47e6-b0ac-f295621cf192", + "parentUUID": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag POST-TEST: Delete product 'On sale product' should delete product", + "timedOut": false, + "duration": 688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_deleteProduct_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f36a2f7b-e806-42b6-bfbd-53502727371d", + "parentUUID": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "FO - Navigation and display : Display 'On sale' flag POST-TEST: Delete product 'On sale product' should reset filter", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_menuAndNavigation_navigationAndDisplay_displayOnSaleFlag_deleteProduct_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef2fc575-d4bc-4b7b-9309-5984656af21e", + "parentUUID": "e6fb85d2-d678-47c4-9bfb-1fb4627fd176", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "68279375-d4b7-41a8-bd91-99c2071e5d47", + "10b6a22f-468e-4f43-99a7-6aaaa7f3f4a9", + "396f01e4-e349-48ae-bb51-0eaa1c67eec9", + "5418feb8-5ea7-47e6-b0ac-f295621cf192", + "f36a2f7b-e806-42b6-bfbd-53502727371d", + "ef2fc575-d4bc-4b7b-9309-5984656af21e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6723, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "88b1bbcd-55ea-401c-b393-dc0100fbf011", + "title": "FO - product page : Product quick view", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - product page : Product quick view\"", + "fullTitle": "FO - product page : Product quick view \"before all\" hook in \"FO - product page : Product quick view\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "832d390c-df1a-4555-839d-9bc212d12e3c", + "parentUUID": "88b1bbcd-55ea-401c-b393-dc0100fbf011", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - product page : Product quick view\"", + "fullTitle": "FO - product page : Product quick view \"after all\" hook in \"FO - product page : Product quick view\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a022b925-ea17-4b35-9e0a-c81f22a929b5", + "parentUUID": "88b1bbcd-55ea-401c-b393-dc0100fbf011", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - product page : Product quick view should go to FO home page", + "timedOut": false, + "duration": 624, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48eca95c-8d15-4b35-bc91-5e755e8f04f0", + "parentUUID": "88b1bbcd-55ea-401c-b393-dc0100fbf011", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "185026df-5d1e-4a00-9f9a-f296741f2887", + "title": "Add to cart from quick view", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should add product to cart by quick view and check details", + "fullTitle": "FO - product page : Product quick view Add to cart from quick view should add product to cart by quick view and check details", + "timedOut": false, + "duration": 1340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCartByQuickView\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, productAttributesFromBlockCart;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addToCartByQuickView', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromBlockCartModal(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(firstCheckProductDetails.name),\n (0, chai_1.expect)(result.price).to.equal(firstCheckProductDetails.price),\n (0, chai_1.expect)(result.quantity).to.equal(firstCheckProductDetails.quantity),\n (0, chai_1.expect)(result.cartProductsCount).to.equal(firstCheckProductDetails.cartProductsCount),\n (0, chai_1.expect)(result.cartSubtotal).to.equal(firstCheckProductDetails.price),\n (0, chai_1.expect)(result.cartShipping).to.contains(firstCheckProductDetails.cartShipping),\n (0, chai_1.expect)(result.totalTaxIncl).to.equal(firstCheckProductDetails.totalTaxIncl),\n ])];\n case 4:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductAttributesFromBlockCartModal(page)];\n case 5:\n productAttributesFromBlockCart = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productAttributesFromBlockCart.length).to.equal(2),\n (0, chai_1.expect)(productAttributesFromBlockCart[0].name).to.equal(firstCheckProductDetailsProducts[0].name),\n (0, chai_1.expect)(productAttributesFromBlockCart[0].value).to.equal(firstCheckProductDetailsProducts[0].value),\n (0, chai_1.expect)(productAttributesFromBlockCart[1].name).to.equal(firstCheckProductDetailsProducts[1].name),\n (0, chai_1.expect)(productAttributesFromBlockCart[1].value).to.equal(firstCheckProductDetailsProducts[1].value),\n ])];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "234eada1-71c4-412b-ba42-551f7c74c485", + "parentUUID": "185026df-5d1e-4a00-9f9a-f296741f2887", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "234eada1-71c4-412b-ba42-551f7c74c485" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1340, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "97d009cc-46f4-4ce1-88cb-57cb13677c2f", + "title": "Change quantity from quick view", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should proceed to checkout and delete product from the cart", + "fullTitle": "FO - product page : Product quick view Change quantity from quick view should proceed to checkout and delete product from the cart", + "timedOut": false, + "duration": 1010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_deleteProductFromCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProductFromCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.goToHomePage(page)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1d02ae5-6cad-4825-aac2-d204672ea33e", + "parentUUID": "97d009cc-46f4-4ce1-88cb-57cb13677c2f", + "isHook": false, + "skipped": false + }, + { + "title": "should change product quantity from quick view modal and check details", + "fullTitle": "FO - product page : Product quick view Change quantity from quick view should change product quantity from quick view modal and check details", + "timedOut": false, + "duration": 1446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_changeQuantityByQuickView\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, productAttributesFromBlockCart;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeQuantityByQuickView', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromBlockCartModal(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(secondCheckProductDetails.name),\n (0, chai_1.expect)(result.price).to.equal(secondCheckProductDetails.price),\n (0, chai_1.expect)(result.quantity).to.equal(secondCheckProductDetails.quantity),\n (0, chai_1.expect)(result.cartProductsCount).to.equal(secondCheckProductDetails.cartProductsCount),\n (0, chai_1.expect)(result.cartSubtotal).to.equal(secondCheckProductDetails.cartSubtotal),\n (0, chai_1.expect)(result.cartShipping).to.contains(secondCheckProductDetails.cartShipping),\n (0, chai_1.expect)(result.totalTaxIncl).to.equal(secondCheckProductDetails.totalTaxIncl),\n ])];\n case 4:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductAttributesFromBlockCartModal(page)];\n case 5:\n productAttributesFromBlockCart = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productAttributesFromBlockCart.length).to.equal(2),\n (0, chai_1.expect)(productAttributesFromBlockCart[0].name).to.equal(secondCheckProductDetailsProducts[0].name),\n (0, chai_1.expect)(productAttributesFromBlockCart[0].value).to.equal(secondCheckProductDetailsProducts[0].value),\n (0, chai_1.expect)(productAttributesFromBlockCart[1].name).to.equal(secondCheckProductDetailsProducts[1].name),\n (0, chai_1.expect)(productAttributesFromBlockCart[1].value).to.equal(secondCheckProductDetailsProducts[1].value),\n ])];\n case 6:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be08748f-9fa3-4424-a1bc-b7f3defd9bb7", + "parentUUID": "97d009cc-46f4-4ce1-88cb-57cb13677c2f", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and delete product from the cart", + "fullTitle": "FO - product page : Product quick view Change quantity from quick view should proceed to checkout and delete product from the cart", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_deleteProductFromCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProductFromCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.goToHomePage(page)];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6658d8a-2d7b-449d-82bb-2678e42cd3ce", + "parentUUID": "97d009cc-46f4-4ce1-88cb-57cb13677c2f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f1d02ae5-6cad-4825-aac2-d204672ea33e", + "be08748f-9fa3-4424-a1bc-b7f3defd9bb7", + "b6658d8a-2d7b-449d-82bb-2678e42cd3ce" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3423, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "480e5209-dde4-4791-ada5-fc3c34874542", + "title": "Share links from quick view", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check share link of 'Facebook' from quick view modal", + "fullTitle": "FO - product page : Product quick view Share links from quick view should check share link of 'Facebook' from quick view modal", + "timedOut": false, + "duration": 546, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_checkShareLink0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkShareLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, home_1.homePage.quickViewProduct(page, 1)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3: return [4 /*yield*/, home_1.homePage.getSocialSharingLink(page, test.args.name)];\n case 4:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contain(test.result.url);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d83ebd8c-925e-4c17-8a70-5e557bd5e943", + "parentUUID": "480e5209-dde4-4791-ada5-fc3c34874542", + "isHook": false, + "skipped": false + }, + { + "title": "should check share link of 'Twitter' from quick view modal", + "fullTitle": "FO - product page : Product quick view Share links from quick view should check share link of 'Twitter' from quick view modal", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_checkShareLink1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkShareLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, home_1.homePage.quickViewProduct(page, 1)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3: return [4 /*yield*/, home_1.homePage.getSocialSharingLink(page, test.args.name)];\n case 4:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contain(test.result.url);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54e741bc-c241-4fa5-8899-f4a675568e68", + "parentUUID": "480e5209-dde4-4791-ada5-fc3c34874542", + "isHook": false, + "skipped": false + }, + { + "title": "should check share link of 'Pinterest' from quick view modal", + "fullTitle": "FO - product page : Product quick view Share links from quick view should check share link of 'Pinterest' from quick view modal", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_checkShareLink2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkShareLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n if (!(index === 0)) return [3 /*break*/, 3];\n return [4 /*yield*/, home_1.homePage.quickViewProduct(page, 1)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3: return [4 /*yield*/, home_1.homePage.getSocialSharingLink(page, test.args.name)];\n case 4:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contain(test.result.url);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efa5c2b0-9ee6-4e44-9e42-e48ecdee42b6", + "parentUUID": "480e5209-dde4-4791-ada5-fc3c34874542", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d83ebd8c-925e-4c17-8a70-5e557bd5e943", + "54e741bc-c241-4fa5-8899-f4a675568e68", + "efa5c2b0-9ee6-4e44-9e42-e48ecdee42b6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 557, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "216abfbe-dce8-42d0-8db9-bce95b9d9679", + "title": "Display product from quick view", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check product information from quick view modal", + "fullTitle": "FO - product page : Product quick view Display product from quick view should check product information from quick view modal", + "timedOut": false, + "duration": 69, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, productAttributesFromQuickView;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductWithDiscountDetailsFromQuickViewModal(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_2.default.demo_1.name),\n (0, chai_1.expect)(result.regularPrice).to.equal(products_2.default.demo_1.retailPrice),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.discountPercentage).to.equal(\"Save \".concat(products_2.default.demo_1.specificPrice.discount, \"%\")),\n (0, chai_1.expect)(result.taxShippingDeliveryLabel).to.equal('Tax included'),\n (0, chai_1.expect)(result.shortDescription).to.equal(products_2.default.demo_1.summary),\n (0, chai_1.expect)(result.coverImage).to.contains(products_2.default.demo_1.coverImage),\n (0, chai_1.expect)(result.thumbImage).to.contains(products_2.default.demo_1.coverImage),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductAttributesFromQuickViewModal(page)];\n case 4:\n productAttributesFromQuickView = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productAttributesFromQuickView.length).to.equal(2),\n (0, chai_1.expect)(productAttributesFromQuickView[0].name).to.equal('size'),\n (0, chai_1.expect)(productAttributesFromQuickView[0].value).to.equal('S M L XL'),\n (0, chai_1.expect)(productAttributesFromQuickView[1].name).to.equal('color'),\n (0, chai_1.expect)(productAttributesFromQuickView[1].value).to.equal('White Black'),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "121e7415-7780-45ec-9d4f-85a2c537ac26", + "parentUUID": "216abfbe-dce8-42d0-8db9-bce95b9d9679", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "121e7415-7780-45ec-9d4f-85a2c537ac26" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 69, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5daada06-817a-4954-be06-1cedf8cc7f9a", + "title": "Close quick view modal", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should close quick view product modal and check it", + "fullTitle": "FO - product page : Product quick view Close quick view modal should close quick view product modal and check it", + "timedOut": false, + "duration": 412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_closeQuickOptionModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isQuickViewModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeQuickOptionModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closeQuickViewModal(page)];\n case 2:\n isQuickViewModalClosed = _a.sent();\n (0, chai_1.expect)(isQuickViewModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b676d5d-7ec2-4400-91db-ff38eff91dae", + "parentUUID": "5daada06-817a-4954-be06-1cedf8cc7f9a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8b676d5d-7ec2-4400-91db-ff38eff91dae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 412, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "92a14e26-6069-41b6-bef8-9b90e2f6bfe7", + "title": "Change combination from quick view modal", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should quick view the first product", + "fullTitle": "FO - product page : Product quick view Change combination from quick view modal should quick view the first product", + "timedOut": false, + "duration": 539, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_quickViewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickViewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.quickViewProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isQuickViewProductModalVisible(page)];\n case 3:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4721b47d-0ca3-4f9c-a78a-f34fb88211ca", + "parentUUID": "92a14e26-6069-41b6-bef8-9b90e2f6bfe7", + "isHook": false, + "skipped": false + }, + { + "title": "should change combination on popup and proceed to checkout", + "fullTitle": "FO - product page : Product quick view Change combination from quick view modal should change combination on popup and proceed to checkout", + "timedOut": false, + "duration": 1836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_changeCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeAttributesAndAddToCart(page, attributes, attributesQty)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fda1f107-13fb-4653-8df8-8a9e0a534f0e", + "parentUUID": "92a14e26-6069-41b6-bef8-9b90e2f6bfe7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the products number in the cart", + "fullTitle": "FO - product page : Product quick view Change combination from quick view modal should check the products number in the cart", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_checkProductsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 2:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(attributesQty);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "848c869f-e4ec-4e13-96f6-a2be18f1aac4", + "parentUUID": "92a14e26-6069-41b6-bef8-9b90e2f6bfe7", + "isHook": false, + "skipped": false + }, + { + "title": "should check product details", + "fullTitle": "FO - product page : Product quick view Change combination from quick view modal should check product details", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_checkProductDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, cartProductAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductDetail(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_2.default.demo_1.name),\n (0, chai_1.expect)(result.regularPrice).to.equal(products_2.default.demo_1.retailPrice),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.discountPercentage).to.equal(\"-\".concat(products_2.default.demo_1.specificPrice.discount, \"%\")),\n (0, chai_1.expect)(result.image).to.contains(products_2.default.demo_1.coverImage),\n (0, chai_1.expect)(result.quantity).to.equal(attributesQty),\n (0, chai_1.expect)(result.totalPrice).to.equal(attributesTotalTaxInc),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductAttributes(page, 1)];\n case 4:\n cartProductAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(cartProductAttributes.length).to.equal(2),\n (0, chai_1.expect)(cartProductAttributes[0].name).to.equal(attributes[0].name),\n (0, chai_1.expect)(cartProductAttributes[0].value).to.equal(attributes[0].value),\n (0, chai_1.expect)(cartProductAttributes[1].name).to.equal(attributes[1].name),\n (0, chai_1.expect)(cartProductAttributes[1].value).to.equal(attributes[1].value),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4a936a9-f02e-4d47-80fc-61fcc5e0707f", + "parentUUID": "92a14e26-6069-41b6-bef8-9b90e2f6bfe7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4721b47d-0ca3-4f9c-a78a-f34fb88211ca", + "fda1f107-13fb-4653-8df8-8a9e0a534f0e", + "848c869f-e4ec-4e13-96f6-a2be18f1aac4", + "c4a936a9-f02e-4d47-80fc-61fcc5e0707f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4451, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a481c5cd-6568-422b-8bbf-60908d76c4ec", + "title": "Select color on hover on product list", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to home page", + "fullTitle": "FO - product page : Product quick view Select color on hover on product list should go to home page", + "timedOut": false, + "duration": 242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_goToHomeToSelectColor\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomeToSelectColor', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3906506d-fe0f-4262-9485-944df42f607d", + "parentUUID": "a481c5cd-6568-422b-8bbf-60908d76c4ec", + "isHook": false, + "skipped": false + }, + { + "title": "should select color 'Ẁhite' and be on product page", + "fullTitle": "FO - product page : Product quick view Select color on hover on product list should select color 'Ẁhite' and be on product page", + "timedOut": false, + "duration": 1109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_selectColor1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectColor1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.selectProductColor(page, 1, 'White')];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbe5cc31-7269-41d1-850e-f8b10ba5e48c", + "parentUUID": "a481c5cd-6568-422b-8bbf-60908d76c4ec", + "isHook": false, + "skipped": false + }, + { + "title": "should get product image Url and go back to home page", + "fullTitle": "FO - product page : Product quick view Select color on hover on product list should get product image Url and go back to home page", + "timedOut": false, + "duration": 255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_getProductImage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getProductImage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductImageUrls(page)];\n case 2:\n imageFirstColor = _a.sent();\n return [4 /*yield*/, product_1.default.goToHomePage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21c821fb-d7f1-4710-9bc0-a4cf3fd1e331", + "parentUUID": "a481c5cd-6568-422b-8bbf-60908d76c4ec", + "isHook": false, + "skipped": false + }, + { + "title": "should select color 'Black' and be on product page", + "fullTitle": "FO - product page : Product quick view Select color on hover on product list should select color 'Black' and be on product page", + "timedOut": false, + "duration": 1107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_selectColor2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'selectColor2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.selectProductColor(page, 1, 'Black')];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3930fabe-52bf-41ed-839b-9afb3c4279ca", + "parentUUID": "a481c5cd-6568-422b-8bbf-60908d76c4ec", + "isHook": false, + "skipped": false + }, + { + "title": "should product image be different from the ", + "fullTitle": "FO - product page : Product quick view Select color on hover on product list should product image be different from the ", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_getProductImage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getProductImage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductImageUrls(page)];\n case 2:\n imageSecondColor = _a.sent();\n (0, chai_1.expect)(imageFirstColor.coverImage).to.not.equal(imageSecondColor.coverImage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c47edff-01f3-4f57-bcf8-6c05e7841a12", + "parentUUID": "a481c5cd-6568-422b-8bbf-60908d76c4ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3906506d-fe0f-4262-9485-944df42f607d", + "bbe5cc31-7269-41d1-850e-f8b10ba5e48c", + "21c821fb-d7f1-4710-9bc0-a4cf3fd1e331", + "3930fabe-52bf-41ed-839b-9afb3c4279ca", + "5c47edff-01f3-4f57-bcf8-6c05e7841a12" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2726, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9469a69a-ee7b-4700-a6ee-b210b10e540d", + "title": "Change image from quick view product modal", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "54c9687f-601d-487a-87b9-9b3d467840c9", + "title": "Go to BO and create product with 2 images", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Go to BO and create product with 2 images\"", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images \"before all\" hook in \"Go to BO and create product with 2 images\"", + "timedOut": false, + "duration": 138, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 1:\n page = _c.sent();\n // Create products images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage((_a = productData.coverImage) !== null && _a !== void 0 ? _a : ''),\n files_1.default.generateImage((_b = productData.thumbImage) !== null && _b !== void 0 ? _b : ''),\n ])];\n case 2:\n // Create products images\n _c.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ac86f6cb-3dd1-46ae-9458-09a87ea1ab5c", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Go to BO and create product with 2 images\"", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images \"after all\" hook in \"Go to BO and create product with 2 images\"", + "timedOut": false, + "duration": 3, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, add_1.default.closePage(browserContext, page, 0)];\n case 1:\n page = _c.sent();\n /* Delete the generated images */\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile((_a = productData.coverImage) !== null && _a !== void 0 ? _a : ''),\n files_1.default.deleteFile((_b = productData.thumbImage) !== null && _b !== void 0 ? _b : ''),\n ])];\n case 2:\n /* Delete the generated images */\n _c.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "81b15ac1-eb2d-4063-bca7-eb54b608e252", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images should login in BO", + "timedOut": false, + "duration": 1753, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ae3b465-3364-48b5-97fd-267c0ffcfdf2", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Products page", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images should go to Products page", + "timedOut": false, + "duration": 4943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_goToProductsPageToCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf16662b-542c-41e2-8f28-f1d76fbe873d", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51074c5f-c496-43cf-85eb-c9783fc316ef", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images should choose 'Standard product'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3f7e14f-e3e0-4e4c-806a-f0c7bf97ed4f", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4c86e1c-4851-47b9-9db6-25a4bf7635e9", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images should create product", + "timedOut": false, + "duration": 5811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f355e38f-cb8b-46b0-be9f-5baa67a71826", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Go to BO and create product with 2 images should logout from BO", + "timedOut": false, + "duration": 695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82051203-74e6-455c-9f75-d78b08c110c6", + "parentUUID": "54c9687f-601d-487a-87b9-9b3d467840c9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8ae3b465-3364-48b5-97fd-267c0ffcfdf2", + "cf16662b-542c-41e2-8f28-f1d76fbe873d", + "51074c5f-c496-43cf-85eb-c9783fc316ef", + "d3f7e14f-e3e0-4e4c-806a-f0c7bf97ed4f", + "d4c86e1c-4851-47b9-9db6-25a4bf7635e9", + "f355e38f-cb8b-46b0-be9f-5baa67a71826", + "82051203-74e6-455c-9f75-d78b08c110c6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14346, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dd9b7de6-2f75-4370-b9bb-c64da67329b4", + "title": "Check change product images on quick view modal", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the created product and quick view", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Check change product images on quick view modal should search for the created product and quick view", + "timedOut": false, + "duration": 1268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_searchForProductAndQuickView\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProductAndQuickView', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.quickViewProduct(page, 1)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4261b920-a962-4920-a440-49d89b95c1d9", + "parentUUID": "dd9b7de6-2f75-4370-b9bb-c64da67329b4", + "isHook": false, + "skipped": false + }, + { + "title": "should verify when we change thumb image in quick view modal", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Check change product images on quick view modal should verify when we change thumb image in quick view modal", + "timedOut": false, + "duration": 357, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_verifyThumbImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var coverSecondImageURL, coverFirstImageURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'verifyThumbImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.selectThumbImage(page, 2)];\n case 2:\n coverSecondImageURL = _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.selectThumbImage(page, 1)];\n case 3:\n coverFirstImageURL = _a.sent();\n (0, chai_1.expect)(coverSecondImageURL).to.not.equal(coverFirstImageURL);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10bf206d-be02-4d63-8820-bd27754eb6bb", + "parentUUID": "dd9b7de6-2f75-4370-b9bb-c64da67329b4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4261b920-a962-4920-a440-49d89b95c1d9", + "10bf206d-be02-4d63-8820-bd27754eb6bb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1625, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6bceec93-e2ad-4e27-bb34-c63cc5804c7a", + "title": "Delete the created product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Delete the created product\"", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Delete the created product \"before all\" hook in \"Delete the created product\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 1:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e5f93fff-8138-4de0-b635-6779a3deba63", + "parentUUID": "6bceec93-e2ad-4e27-bb34-c63cc5804c7a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Delete the created product\"", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Delete the created product \"after all\" hook in \"Delete the created product\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, add_1.default.closePage(browserContext, page, 0)];\n case 1:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "52b71c4b-3607-483c-96c7-9a7557c59b19", + "parentUUID": "6bceec93-e2ad-4e27-bb34-c63cc5804c7a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Delete the created product should login in BO", + "timedOut": false, + "duration": 1670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a9a01b9-ac76-4c47-8805-d096845d3e7c", + "parentUUID": "6bceec93-e2ad-4e27-bb34-c63cc5804c7a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Products page", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Delete the created product should go to Products page", + "timedOut": false, + "duration": 4922, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "792f8446-f2a3-4a7d-8fd7-0283b15ef4c1", + "parentUUID": "6bceec93-e2ad-4e27-bb34-c63cc5804c7a", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Delete the created product should click on delete product button", + "timedOut": false, + "duration": 294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_clickOnDeleteProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f7da81f-a5bf-4d6a-b7e8-d3293172236a", + "parentUUID": "6bceec93-e2ad-4e27-bb34-c63cc5804c7a", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Delete the created product should delete product", + "timedOut": false, + "duration": 708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5302dd34-4be4-4cb3-bf55-b5868971c7da", + "parentUUID": "6bceec93-e2ad-4e27-bb34-c63cc5804c7a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - product page : Product quick view Change image from quick view product modal Delete the created product should reset all filters", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "521ba351-85c6-4518-8101-9dd0de8523d0", + "parentUUID": "6bceec93-e2ad-4e27-bb34-c63cc5804c7a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4a9a01b9-ac76-4c47-8805-d096845d3e7c", + "792f8446-f2a3-4a7d-8fd7-0283b15ef4c1", + "0f7da81f-a5bf-4d6a-b7e8-d3293172236a", + "5302dd34-4be4-4cb3-bf55-b5868971c7da", + "521ba351-85c6-4518-8101-9dd0de8523d0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7615, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "48eca95c-8d15-4b35-bc91-5e755e8f04f0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 624, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "title": "FO - Product page - Quick view : Add to cart", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/01_quickView/01_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/01_quickView/01_addToCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Product page - Quick view : Add to cart\"", + "fullTitle": "FO - Product page - Quick view : Add to cart \"before all\" hook in \"FO - Product page - Quick view : Add to cart\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64d69e5c-d6bb-4dd3-851a-e3476516f98e", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Product page - Quick view : Add to cart\"", + "fullTitle": "FO - Product page - Quick view : Add to cart \"after all\" hook in \"FO - Product page - Quick view : Add to cart\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8b129172-52ca-468c-be68-38a2ded4e4a9", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Product page - Quick view : Add to cart should go to FO home page", + "timedOut": false, + "duration": 572, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCart_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39a99853-1479-407e-9a57-ac1f669eb35b", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": false, + "skipped": false + }, + { + "title": "should add first product to cart by quick view", + "fullTitle": "FO - Product page - Quick view : Add to cart should add first product to cart by quick view", + "timedOut": false, + "duration": 1293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCart_addToCartByQuickView\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addToCartByQuickView', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(home_1.homePage.successAddToCartMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7e96e47-cd90-4737-81f9-c8a399508913", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": false, + "skipped": false + }, + { + "title": "should check product details from cart modal", + "fullTitle": "FO - Product page - Quick view : Add to cart should check product details from cart modal", + "timedOut": false, + "duration": 58, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCart_checkProductDetailsInCartModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, productAttributesFromBlockCart;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductDetailsInCartModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductDetailsFromBlockCartModal(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(checkProductDetails.name),\n (0, chai_1.expect)(result.price).to.equal(checkProductDetails.price),\n (0, chai_1.expect)(result.quantity).to.equal(checkProductDetails.quantity),\n (0, chai_1.expect)(result.cartProductsCount).to.equal(checkProductDetails.cartProductsCount),\n (0, chai_1.expect)(result.cartSubtotal).to.equal(checkProductDetails.price),\n (0, chai_1.expect)(result.cartShipping).to.contains(checkProductDetails.cartShipping),\n (0, chai_1.expect)(result.totalTaxIncl).to.equal(checkProductDetails.totalTaxIncl),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductAttributesFromBlockCartModal(page)];\n case 4:\n productAttributesFromBlockCart = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productAttributesFromBlockCart.length).to.equal(2),\n (0, chai_1.expect)(productAttributesFromBlockCart[0].name).to.equal(checkProductDetailsProducts[0].name),\n (0, chai_1.expect)(productAttributesFromBlockCart[0].value).to.equal(checkProductDetailsProducts[0].value),\n (0, chai_1.expect)(productAttributesFromBlockCart[1].name).to.equal(checkProductDetailsProducts[1].name),\n (0, chai_1.expect)(productAttributesFromBlockCart[1].value).to.equal(checkProductDetailsProducts[1].value),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52afec35-1adc-4c1a-9c61-f9a1675b999d", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and check the cart page", + "fullTitle": "FO - Product page - Quick view : Add to cart should proceed to checkout and check the cart page", + "timedOut": false, + "duration": 749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCart_checkCartPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCartPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5029bac-15c6-4eee-884c-a39b2580324a", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": false, + "skipped": false + }, + { + "title": "should check product details", + "fullTitle": "FO - Product page - Quick view : Add to cart should check product details", + "timedOut": false, + "duration": 68, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCart_checkProductDetailsInCartPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, cartProductAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductDetailsInCartPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductDetail(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_1.name),\n (0, chai_1.expect)(result.regularPrice).to.equal(products_1.default.demo_1.retailPrice),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.discountPercentage).to.equal(\"-\".concat(products_1.default.demo_1.specificPrice.discount, \"%\")),\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_1.coverImage),\n (0, chai_1.expect)(result.quantity).to.equal(checkProductDetails.quantity),\n (0, chai_1.expect)(result.totalPrice).to.equal(checkProductDetails.totalTaxIncl),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductAttributes(page, 1)];\n case 4:\n cartProductAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(cartProductAttributes.length).to.equal(2),\n (0, chai_1.expect)(cartProductAttributes[0].name).to.equal(checkProductDetailsProducts[0].name),\n (0, chai_1.expect)(cartProductAttributes[0].value).to.equal(checkProductDetailsProducts[0].value),\n (0, chai_1.expect)(cartProductAttributes[1].name).to.equal(checkProductDetailsProducts[1].name),\n (0, chai_1.expect)(cartProductAttributes[1].value).to.equal(checkProductDetailsProducts[1].value),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34fc20e8-87f2-4940-b35a-a37ff4b37829", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "FO - Product page - Quick view : Add to cart should go to home page", + "timedOut": false, + "duration": 239, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCart_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e59498e-c8d4-448f-b651-37c86196ddba", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product Customizable mug", + "fullTitle": "FO - Product page - Quick view : Add to cart should search for the product Customizable mug", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCart_searchForProductCustomized\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProductCustomized', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, products_1.default.demo_14.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4280af2c-9bf5-4153-9f22-0d1a71014097", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": false, + "skipped": false + }, + { + "title": "should quick view the product and check that Add to cart button is disabled", + "fullTitle": "FO - Product page - Quick view : Add to cart should quick view the product and check that Add to cart button is disabled", + "timedOut": false, + "duration": 455, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_quickView_addToCart_checkAddToCartButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddToCartButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.quickViewProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isAddToCartButtonDisabled(page)];\n case 3:\n isDisabled = _a.sent();\n (0, chai_1.expect)(isDisabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85d4bcb2-aa22-4d36-9a3a-6b7e6902ea7c", + "parentUUID": "7a70a497-4ed7-43ab-ab86-592d782c9865", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "39a99853-1479-407e-9a57-ac1f669eb35b", + "c7e96e47-cd90-4737-81f9-c8a399508913", + "52afec35-1adc-4c1a-9c61-f9a1675b999d", + "c5029bac-15c6-4eee-884c-a39b2580324a", + "34fc20e8-87f2-4940-b35a-a37ff4b37829", + "3e59498e-c8d4-448f-b651-37c86196ddba", + "4280af2c-9bf5-4153-9f22-0d1a71014097", + "85d4bcb2-aa22-4d36-9a3a-6b7e6902ea7c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4232, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a7d3ba55-407b-4a29-afa2-10856436beb1", + "title": "FO - product page : Add product to cart", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - product page : Add product to cart\"", + "fullTitle": "FO - product page : Add product to cart \"before all\" hook in \"FO - product page : Add product to cart\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58557dab-8c43-4a01-acd2-433e831cae96", + "parentUUID": "a7d3ba55-407b-4a29-afa2-10856436beb1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - product page : Add product to cart\"", + "fullTitle": "FO - product page : Add product to cart \"after all\" hook in \"FO - product page : Add product to cart\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5e856db7-064f-42ce-9ef2-41852589fe22", + "parentUUID": "a7d3ba55-407b-4a29-afa2-10856436beb1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - product page : Add product to cart should go to FO home page", + "timedOut": false, + "duration": 454, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_goToFoToCreateAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToCreateAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28c77520-f9fd-416c-8169-e5e3ee21fc60", + "parentUUID": "a7d3ba55-407b-4a29-afa2-10856436beb1", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "8b67ccf4-0262-4951-bec7-d4fdb502e2e5", + "title": "Add product to cart and check details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to product page", + "fullTitle": "FO - product page : Add product to cart Add product to cart and check details should go to product page", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_2.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d111607b-f6e8-4a96-925c-74b43fbaaf2e", + "parentUUID": "8b67ccf4-0262-4951-bec7-d4fdb502e2e5", + "isHook": false, + "skipped": false + }, + { + "title": "should check product details", + "fullTitle": "FO - product page : Add product to cart Add product to cart and check details should check product details", + "timedOut": false, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, resultRegularPrice, resultDiscountPercentage, productAttributes, resultImageUrls;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_2.default.demo_1.name),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.summary).to.equal(products_2.default.demo_1.summary),\n (0, chai_1.expect)(result.description).to.equal(products_2.default.demo_1.description),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getRegularPrice(page)];\n case 4:\n resultRegularPrice = _a.sent();\n (0, chai_1.expect)(resultRegularPrice).to.equal(products_2.default.demo_1.retailPrice);\n return [4 /*yield*/, product_1.default.getDiscountPercentage(page)];\n case 5:\n resultDiscountPercentage = _a.sent();\n (0, chai_1.expect)(resultDiscountPercentage).to.contains(\"\".concat(products_2.default.demo_1.specificPrice.discount, \"%\"));\n return [4 /*yield*/, product_1.default.getProductAttributes(page)];\n case 6:\n productAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productAttributes[0].name).to.equal(products_2.default.demo_1.attributes[0].name),\n (0, chai_1.expect)(productAttributes[0].value).to.equal(products_2.default.demo_1.attributes[0].values.join(' ')),\n (0, chai_1.expect)(productAttributes[1].name).to.equal(products_2.default.demo_1.attributes[1].name),\n (0, chai_1.expect)(productAttributes[1].value).to.equal(products_2.default.demo_1.attributes[1].values.join(' ')),\n ])];\n case 7:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductImageUrls(page)];\n case 8:\n resultImageUrls = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(resultImageUrls.coverImage).to.contains(products_2.default.demo_1.coverImage),\n (0, chai_1.expect)(resultImageUrls.thumbImage).to.contains(products_2.default.demo_1.coverImage),\n ])];\n case 9:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2379e45-84e6-409c-a6bf-7024d65a93a6", + "parentUUID": "8b67ccf4-0262-4951-bec7-d4fdb502e2e5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose combination and check product details", + "fullTitle": "FO - product page : Add product to cart Add product to cart and check details should choose combination and check product details", + "timedOut": false, + "duration": 259, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_chooseCombination\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, resultDiscountPercentage, resultRegularPrice, resultImageUrls, selectedProductAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseCombination', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.selectAttributes(page, 1, firstCombination)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_2.default.demo_1.name),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.summary).to.equal(products_2.default.demo_1.summary),\n (0, chai_1.expect)(result.description).to.equal(products_2.default.demo_1.description),\n ])];\n case 4:\n _a.sent();\n return [4 /*yield*/, product_1.default.getDiscountPercentage(page)];\n case 5:\n resultDiscountPercentage = _a.sent();\n (0, chai_1.expect)(resultDiscountPercentage).to.contains(products_2.default.demo_1.specificPrice.discount);\n return [4 /*yield*/, product_1.default.getRegularPrice(page)];\n case 6:\n resultRegularPrice = _a.sent();\n (0, chai_1.expect)(resultRegularPrice).to.equal(products_2.default.demo_1.retailPrice);\n return [4 /*yield*/, product_1.default.getProductImageUrls(page)];\n case 7:\n resultImageUrls = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(resultImageUrls.coverImage).to.contains(products_2.default.demo_1.coverImage),\n (0, chai_1.expect)(resultImageUrls.thumbImage).to.contains(products_2.default.demo_1.coverImage),\n ])];\n case 8:\n _a.sent();\n return [4 /*yield*/, product_1.default.getSelectedProductAttributes(page)];\n case 9:\n selectedProductAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(selectedProductAttributes.length).to.equal(2),\n (0, chai_1.expect)(selectedProductAttributes[0].name).to.equal(firstCombination[0].name),\n (0, chai_1.expect)(selectedProductAttributes[0].value).to.equal(firstCombination[0].value),\n (0, chai_1.expect)(selectedProductAttributes[1].name).to.equal(firstCombination[1].name),\n (0, chai_1.expect)(selectedProductAttributes[1].value).to.equal(firstCombination[1].value),\n ])];\n case 10:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7e62906-f3da-4d9e-a4a7-074817a68fbb", + "parentUUID": "8b67ccf4-0262-4951-bec7-d4fdb502e2e5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d111607b-f6e8-4a96-925c-74b43fbaaf2e", + "f2379e45-84e6-409c-a6bf-7024d65a93a6", + "d7e62906-f3da-4d9e-a4a7-074817a68fbb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1131, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1d0252c0-3f6d-4366-8c52-cda59173597c", + "title": "Add product to cart and check details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should modify combination and add product to the cart", + "fullTitle": "FO - product page : Add product to cart Add product to cart and check details should modify combination and add product to the cart", + "timedOut": false, + "duration": 3826, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, quantity, secondCombination)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "770dc144-12e7-4da3-8baa-1b0f6feedeea", + "parentUUID": "1d0252c0-3f6d-4366-8c52-cda59173597c", + "isHook": false, + "skipped": false + }, + { + "title": "should check the ordered product details in cart page", + "fullTitle": "FO - product page : Add product to cart Add product to cart and check details should check the ordered product details in cart page", + "timedOut": false, + "duration": 68, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_checkOrderedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, cartProductAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductDetail(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_2.default.demo_1.name),\n (0, chai_1.expect)(result.price).to.equal(products_2.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.totalPrice).to.equal(totalPrice),\n (0, chai_1.expect)(result.quantity).to.equal(quantity),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductAttributes(page, 1)];\n case 4:\n cartProductAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(cartProductAttributes.length).to.equal(2),\n (0, chai_1.expect)(cartProductAttributes[0].name).to.equal(secondCombination[0].name),\n (0, chai_1.expect)(cartProductAttributes[0].value).to.equal(secondCombination[0].value),\n (0, chai_1.expect)(cartProductAttributes[1].name).to.equal(secondCombination[1].name),\n (0, chai_1.expect)(cartProductAttributes[1].value).to.equal(secondCombination[1].value),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62afb6c1-cd57-4122-8311-9e668b3b59ad", + "parentUUID": "1d0252c0-3f6d-4366-8c52-cda59173597c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "770dc144-12e7-4da3-8baa-1b0f6feedeea", + "62afb6c1-cd57-4122-8311-9e668b3b59ad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3894, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "97ee5c59-f651-4db2-8765-692a1fe3b9ac", + "title": "Change image from product page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "ba5d9093-c2dd-4e01-822c-7001f40086c4", + "title": "Go to BO and create product with 2 images", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Go to BO and create product with 2 images\"", + "fullTitle": "FO - product page : Add product to cart Change image from product page Go to BO and create product with 2 images \"before all\" hook in \"Go to BO and create product with 2 images\"", + "timedOut": false, + "duration": 100, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 1:\n page = _c.sent();\n // Create products images\n return [4 /*yield*/, Promise.all([\n files_1.default.generateImage((_a = productData.coverImage) !== null && _a !== void 0 ? _a : ''),\n files_1.default.generateImage((_b = productData.thumbImage) !== null && _b !== void 0 ? _b : ''),\n ])];\n case 2:\n // Create products images\n _c.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "39584d11-8a4f-4b25-b1b9-8413cfc0a8fe", + "parentUUID": "ba5d9093-c2dd-4e01-822c-7001f40086c4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Go to BO and create product with 2 images\"", + "fullTitle": "FO - product page : Add product to cart Change image from product page Go to BO and create product with 2 images \"after all\" hook in \"Go to BO and create product with 2 images\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, add_1.default.closePage(browserContext, page, 0)];\n case 1:\n page = _c.sent();\n /* Delete the generated images */\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile((_a = productData.coverImage) !== null && _a !== void 0 ? _a : ''),\n files_1.default.deleteFile((_b = productData.thumbImage) !== null && _b !== void 0 ? _b : ''),\n ])];\n case 2:\n /* Delete the generated images */\n _c.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "df6705d4-7314-4b88-ad54-bc669fb5d924", + "parentUUID": "ba5d9093-c2dd-4e01-822c-7001f40086c4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - product page : Add product to cart Change image from product page Go to BO and create product with 2 images should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5211ab89-84e5-45ce-b7f7-432c10a52534", + "parentUUID": "ba5d9093-c2dd-4e01-822c-7001f40086c4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Products page", + "fullTitle": "FO - product page : Add product to cart Change image from product page Go to BO and create product with 2 images should go to Products page", + "timedOut": false, + "duration": 4926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_goToProductsPageToCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "660b2353-76c1-4bbe-8c59-60fbee4f3230", + "parentUUID": "ba5d9093-c2dd-4e01-822c-7001f40086c4", + "isHook": false, + "skipped": false + }, + { + "title": "should click on new product button and go to new product page", + "fullTitle": "FO - product page : Add product to cart Change image from product page Go to BO and create product with 2 images should click on new product button and go to new product page", + "timedOut": false, + "duration": 1125, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_clickOnNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27ac6cde-b357-4f5e-a899-fb154bbde397", + "parentUUID": "ba5d9093-c2dd-4e01-822c-7001f40086c4", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "FO - product page : Add product to cart Change image from product page Go to BO and create product with 2 images should create standard product", + "timedOut": false, + "duration": 5585, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1cabdc3-3a47-4de3-8ead-7518e9157f37", + "parentUUID": "ba5d9093-c2dd-4e01-822c-7001f40086c4", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from BO", + "fullTitle": "FO - product page : Add product to cart Change image from product page Go to BO and create product with 2 images should logout from BO", + "timedOut": false, + "duration": 720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c59ef9bb-a27a-4873-9ba1-41c2503605db", + "parentUUID": "ba5d9093-c2dd-4e01-822c-7001f40086c4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5211ab89-84e5-45ce-b7f7-432c10a52534", + "660b2353-76c1-4bbe-8c59-60fbee4f3230", + "27ac6cde-b357-4f5e-a899-fb154bbde397", + "f1cabdc3-3a47-4de3-8ead-7518e9157f37", + "c59ef9bb-a27a-4873-9ba1-41c2503605db" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14067, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a26a9259-3ccc-4118-9e42-443f33408c0e", + "title": "Check change product images on quick view modal", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should search for the created product and go to product page", + "fullTitle": "FO - product page : Add product to cart Change image from product page Check change product images on quick view modal should search for the created product and go to product page", + "timedOut": false, + "duration": 1789, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_searchForProductAndQuickView\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProductAndQuickView', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "196edef8-3abb-490e-8eee-698bcf79a950", + "parentUUID": "a26a9259-3ccc-4118-9e42-443f33408c0e", + "isHook": false, + "skipped": false + }, + { + "title": "should change product image", + "fullTitle": "FO - product page : Add product to cart Change image from product page Check change product images on quick view modal should change product image", + "timedOut": false, + "duration": 121, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_changeImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var coverSecondImageURL, coverFirstImageURL;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.selectThumbImage(page, 2)];\n case 2:\n coverSecondImageURL = _a.sent();\n return [4 /*yield*/, product_1.default.selectThumbImage(page, 1)];\n case 3:\n coverFirstImageURL = _a.sent();\n (0, chai_1.expect)(coverSecondImageURL).to.not.equal(coverFirstImageURL);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5eef3928-d0ce-4165-afbb-28cafeecbcfc", + "parentUUID": "a26a9259-3ccc-4118-9e42-443f33408c0e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "196edef8-3abb-490e-8eee-698bcf79a950", + "5eef3928-d0ce-4165-afbb-28cafeecbcfc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1910, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e415961a-48df-4fe6-9461-a4c7399597c0", + "title": "Delete the created product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Delete the created product\"", + "fullTitle": "FO - product page : Add product to cart Change image from product page Delete the created product \"before all\" hook in \"Delete the created product\"", + "timedOut": false, + "duration": 25, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 1:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "797c03ce-ddd6-40f6-86a1-b11fd10da242", + "parentUUID": "e415961a-48df-4fe6-9461-a4c7399597c0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Delete the created product\"", + "fullTitle": "FO - product page : Add product to cart Change image from product page Delete the created product \"after all\" hook in \"Delete the created product\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, add_1.default.closePage(browserContext, page, 0)];\n case 1:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "92a35350-36e6-4072-b560-1300acb2524d", + "parentUUID": "e415961a-48df-4fe6-9461-a4c7399597c0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - product page : Add product to cart Change image from product page Delete the created product should login in BO", + "timedOut": false, + "duration": 1664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a2c8b10-76b3-45d1-aba1-3b9f7a3d83ae", + "parentUUID": "e415961a-48df-4fe6-9461-a4c7399597c0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Products page", + "fullTitle": "FO - product page : Add product to cart Change image from product page Delete the created product should go to Products page", + "timedOut": false, + "duration": 4937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0acc352-81cb-41fc-a2b2-2e0e31f35cb8", + "parentUUID": "e415961a-48df-4fe6-9461-a4c7399597c0", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "FO - product page : Add product to cart Change image from product page Delete the created product should click on delete product button", + "timedOut": false, + "duration": 285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "167f8edb-5853-4d19-b83c-5de23c4ea140", + "parentUUID": "e415961a-48df-4fe6-9461-a4c7399597c0", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "FO - product page : Add product to cart Change image from product page Delete the created product should delete product", + "timedOut": false, + "duration": 699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38fd68da-3e7a-482f-8b3e-256c36c7a2a5", + "parentUUID": "e415961a-48df-4fe6-9461-a4c7399597c0", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - product page : Add product to cart Change image from product page Delete the created product should reset all filters", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc3c8fb5-4750-42c1-a4d2-232a7b4d456e", + "parentUUID": "e415961a-48df-4fe6-9461-a4c7399597c0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9a2c8b10-76b3-45d1-aba1-3b9f7a3d83ae", + "c0acc352-81cb-41fc-a2b2-2e0e31f35cb8", + "167f8edb-5853-4d19-b83c-5de23c4ea140", + "38fd68da-3e7a-482f-8b3e-256c36c7a2a5", + "cc3c8fb5-4750-42c1-a4d2-232a7b4d456e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7605, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d983aa3f-9221-4bf5-87ca-e69d72651365", + "title": "Check share links from product page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "file": "/campaigns/functional/FO/classic/09_productPage/02_addToCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check share link of 'Facebook'", + "fullTitle": "FO - product page : Add product to cart Check share links from product page should check share link of 'Facebook'", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_checkShareLink0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkShareLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getSocialSharingLink(page, test.args.name)];\n case 2:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contain(test.result.url);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81f9a939-7308-452b-9e48-3b2b2d91afca", + "parentUUID": "d983aa3f-9221-4bf5-87ca-e69d72651365", + "isHook": false, + "skipped": false + }, + { + "title": "should check share link of 'Twitter'", + "fullTitle": "FO - product page : Add product to cart Check share links from product page should check share link of 'Twitter'", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_checkShareLink1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkShareLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getSocialSharingLink(page, test.args.name)];\n case 2:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contain(test.result.url);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "035c8e79-9827-4e9a-bf45-ef054e31f454", + "parentUUID": "d983aa3f-9221-4bf5-87ca-e69d72651365", + "isHook": false, + "skipped": false + }, + { + "title": "should check share link of 'Pinterest'", + "fullTitle": "FO - product page : Add product to cart Check share links from product page should check share link of 'Pinterest'", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_productPage_addToCart_checkShareLink2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var url;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkShareLink\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getSocialSharingLink(page, test.args.name)];\n case 2:\n url = _a.sent();\n (0, chai_1.expect)(url).to.contain(test.result.url);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "767d7648-0835-4e22-abba-85da13770534", + "parentUUID": "d983aa3f-9221-4bf5-87ca-e69d72651365", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "81f9a939-7308-452b-9e48-3b2b2d91afca", + "035c8e79-9827-4e9a-bf45-ef054e31f454", + "767d7648-0835-4e22-abba-85da13770534" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "28c77520-f9fd-416c-8169-e5e3ee21fc60" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 454, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "def6fca6-cdfb-47bf-8d66-2d77e0d581de", + "title": "FO - cart : Display modal when adding a product to cart", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/10_cart/01_modal/01_displayModal.ts", + "file": "/campaigns/functional/FO/classic/10_cart/01_modal/01_displayModal.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - cart : Display modal when adding a product to cart\"", + "fullTitle": "FO - cart : Display modal when adding a product to cart \"before all\" hook in \"FO - cart : Display modal when adding a product to cart\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4b3d44b-aa0a-401e-84ad-ee407687005e", + "parentUUID": "def6fca6-cdfb-47bf-8d66-2d77e0d581de", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - cart : Display modal when adding a product to cart\"", + "fullTitle": "FO - cart : Display modal when adding a product to cart \"after all\" hook in \"FO - cart : Display modal when adding a product to cart\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0f0844f1-c7b0-4e34-9a28-e060d6b93cef", + "parentUUID": "def6fca6-cdfb-47bf-8d66-2d77e0d581de", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - cart : Display modal when adding a product to cart should open the shop page", + "timedOut": false, + "duration": 1799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_modal_displayModal_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9336335a-c9d9-4dea-9f2b-709cad5a1685", + "parentUUID": "def6fca6-cdfb-47bf-8d66-2d77e0d581de", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart by quick view and click on continue button", + "fullTitle": "FO - cart : Display modal when adding a product to cart should add the first product to cart by quick view and click on continue button", + "timedOut": false, + "duration": 1547, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_modal_displayModal_addFirstProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage, isModalNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 2)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(home_1.homePage.successAddToCartMessage);\n return [4 /*yield*/, home_1.homePage.continueShopping(page)];\n case 3:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a5f7ed5-b831-46f9-9867-eb8d90a99ff7", + "parentUUID": "def6fca6-cdfb-47bf-8d66-2d77e0d581de", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the second product page and add the product to the cart", + "fullTitle": "FO - cart : Display modal when adding a product to cart should go to the second product page and add the product to the cart", + "timedOut": false, + "duration": 4079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_modal_displayModal_goToSecondProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSecondProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 2)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 3)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f93fd83c-6b7a-44be-81e5-b4294b51c49f", + "parentUUID": "def6fca6-cdfb-47bf-8d66-2d77e0d581de", + "isHook": false, + "skipped": false + }, + { + "title": "should check notifications number", + "fullTitle": "FO - cart : Display modal when adding a product to cart should check notifications number", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_modal_displayModal_checkNotificationsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 2:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.eq(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3045601-e49d-4a37-a2ba-211fd2782f6d", + "parentUUID": "def6fca6-cdfb-47bf-8d66-2d77e0d581de", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9336335a-c9d9-4dea-9f2b-709cad5a1685", + "9a5f7ed5-b831-46f9-9867-eb8d90a99ff7", + "f93fd83c-6b7a-44be-81e5-b4294b51c49f", + "b3045601-e49d-4a37-a2ba-211fd2782f6d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9436, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "title": "FO - cart : Change quantity", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/10_cart/02_cart/01_changeQuantity.ts", + "file": "/campaigns/functional/FO/classic/10_cart/02_cart/01_changeQuantity.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - cart : Change quantity\"", + "fullTitle": "FO - cart : Change quantity \"before all\" hook in \"FO - cart : Change quantity\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3dfb9fc-d194-45de-8e37-c1575d5d5638", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - cart : Change quantity\"", + "fullTitle": "FO - cart : Change quantity \"after all\" hook in \"FO - cart : Change quantity\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ac7644ec-3411-453e-b101-902418cafb6d", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - cart : Change quantity should go to FO", + "timedOut": false, + "duration": 1645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28437a78-7ac8-454e-9930-e2082c399cf9", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart and proceed to checkout", + "fullTitle": "FO - cart : Change quantity should add the first product to cart and proceed to checkout", + "timedOut": false, + "duration": 2058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_addFirstProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "350b59c9-4a9d-49f3-a8ef-129b152eb2bb", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should increase the product quantity by the touchspin up to 5", + "fullTitle": "FO - cart : Change quantity should increase the product quantity by the touchspin up to 5", + "timedOut": false, + "duration": 6140, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_increaseQuantity5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantity, notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'increaseQuantity5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.setProductQuantity(page, 1, 5)];\n case 2:\n quantity = _a.sent();\n (0, chai_1.expect)(quantity).to.eq(5);\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab6619fd-0daf-4bab-bcaa-03f5fc17bed4", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should decrease the product quantity by the touchspin down to 2", + "fullTitle": "FO - cart : Change quantity should decrease the product quantity by the touchspin down to 2", + "timedOut": false, + "duration": 5099, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_decreaseQuantity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantity, notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'decreaseQuantity2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.setProductQuantity(page, 1, 2)];\n case 2:\n quantity = _a.sent();\n (0, chai_1.expect)(quantity).to.eq(2);\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f826dc9b-9b17-4967-bafd-46bbd845e788", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should set the quantity 3 in the input", + "fullTitle": "FO - cart : Change quantity should set the quantity 3 in the input", + "timedOut": false, + "duration": 2084, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_setQuantity3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setQuantity3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, 3)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c67c3f21-d8fb-4ff5-96b1-1b05990a0619", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should set the quantity -6 in the input", + "fullTitle": "FO - cart : Change quantity should set the quantity -6 in the input", + "timedOut": false, + "duration": 2080, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_setQuantity-6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setQuantity-6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, -6)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f9a90c6-4e09-4ba5-a484-626b919fbc3d", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should set the quantity +6 in the input", + "fullTitle": "FO - cart : Change quantity should set the quantity +6 in the input", + "timedOut": false, + "duration": 2068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_setQuantity+6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setQuantity+6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, +6)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(6);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f2a3f04-a41e-4d22-a562-ff93bc279bb9", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should set the quantity 64 in the input", + "fullTitle": "FO - cart : Change quantity should set the quantity 64 in the input", + "timedOut": false, + "duration": 2082, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_setQuantity64\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setQuantity64', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, 64)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(64);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3100630-afe2-4e31-8e7b-d67ea3af744d", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should set 'azerty' in the input", + "fullTitle": "FO - cart : Change quantity should set 'azerty' in the input", + "timedOut": false, + "duration": 2082, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_setAZERTY\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAZERTY', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, 'azerty')];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(64);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd9f24f6-d7d8-433c-9550-2647a0825976", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should set the quantity 2400 in the input", + "fullTitle": "FO - cart : Change quantity should set the quantity 2400 in the input", + "timedOut": false, + "duration": 2068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_setQuantity2400\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setQuantity2400', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, 2400)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(2400);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54859514-81f7-4231-968d-add673704838", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error message", + "fullTitle": "FO - cart : Change quantity should check the error message", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_checkErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getNotificationMessage(page)];\n case 2:\n alertText = _a.sent();\n (0, chai_1.expect)(alertText).to.contains(cart_1.cartPage.errorNotificationForProductQuantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fef51c53-bf9e-4372-8e6d-2336859f1f7c", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should check that proceed to checkout button is disabled", + "fullTitle": "FO - cart : Change quantity should check that proceed to checkout button is disabled", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_checkProceedToCheckoutButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isDisabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProceedToCheckoutButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isProceedToCheckoutButtonDisabled(page)];\n case 2:\n isDisabled = _a.sent();\n (0, chai_1.expect)(isDisabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a616e83d-e8ba-49fa-9d17-7b8eabf7e84e", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + }, + { + "title": "should set the quantity 0 in the input", + "fullTitle": "FO - cart : Change quantity should set the quantity 0 in the input", + "timedOut": false, + "duration": 2071, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_changeQuantity_setQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, 0)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20b4aa9b-5c8a-4b4c-a3cc-7ff9897511b2", + "parentUUID": "1ecd995f-d70b-4838-ba1c-4d7377c7aa99", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "28437a78-7ac8-454e-9930-e2082c399cf9", + "350b59c9-4a9d-49f3-a8ef-129b152eb2bb", + "ab6619fd-0daf-4bab-bcaa-03f5fc17bed4", + "f826dc9b-9b17-4967-bafd-46bbd845e788", + "c67c3f21-d8fb-4ff5-96b1-1b05990a0619", + "0f9a90c6-4e09-4ba5-a484-626b919fbc3d", + "2f2a3f04-a41e-4d22-a562-ff93bc279bb9", + "a3100630-afe2-4e31-8e7b-d67ea3af744d", + "dd9f24f6-d7d8-433c-9550-2647a0825976", + "54859514-81f7-4231-968d-add673704838", + "fef51c53-bf9e-4372-8e6d-2336859f1f7c", + "a616e83d-e8ba-49fa-9d17-7b8eabf7e84e", + "20b4aa9b-5c8a-4b4c-a3cc-7ff9897511b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29489, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "302f67d7-a74d-41e9-aa22-298a16c85782", + "title": "FO - cart : Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/10_cart/02_cart/02_deleteProduct.ts", + "file": "/campaigns/functional/FO/classic/10_cart/02_cart/02_deleteProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - cart : Delete product\"", + "fullTitle": "FO - cart : Delete product \"before all\" hook in \"FO - cart : Delete product\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f17364a-d966-4c22-bd95-d21acb727982", + "parentUUID": "302f67d7-a74d-41e9-aa22-298a16c85782", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - cart : Delete product\"", + "fullTitle": "FO - cart : Delete product \"after all\" hook in \"FO - cart : Delete product\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8034f7a1-44e1-4fb1-a64f-3f8a7b07caab", + "parentUUID": "302f67d7-a74d-41e9-aa22-298a16c85782", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - cart : Delete product should go to FO", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_deleteProduct_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a6fce22-90bc-48ef-a5b8-5f1dce51cc46", + "parentUUID": "302f67d7-a74d-41e9-aa22-298a16c85782", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart and proceed to checkout", + "fullTitle": "FO - cart : Delete product should add the first product to cart and proceed to checkout", + "timedOut": false, + "duration": 2062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_deleteProduct_addFirstProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81aeb903-2829-428d-83c7-5df4522e7705", + "parentUUID": "302f67d7-a74d-41e9-aa22-298a16c85782", + "isHook": false, + "skipped": false + }, + { + "title": "should set the quantity 0 in the input", + "fullTitle": "FO - cart : Delete product should set the quantity 0 in the input", + "timedOut": false, + "duration": 2092, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_deleteProduct_setQuantity0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setQuantity0', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, 0)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d531938a-1f8d-4f1a-8df5-b862c36e9a0c", + "parentUUID": "302f67d7-a74d-41e9-aa22-298a16c85782", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "FO - cart : Delete product should go to home page", + "timedOut": false, + "duration": 209, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_deleteProduct_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0547331-5e3e-4e15-889f-1c512e31ba9f", + "parentUUID": "302f67d7-a74d-41e9-aa22-298a16c85782", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart and proceed to checkout", + "fullTitle": "FO - cart : Delete product should add the first product to cart and proceed to checkout", + "timedOut": false, + "duration": 2055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_deleteProduct_addFirstProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "679f5e48-4efc-4e9d-9e57-7fb0998067ce", + "parentUUID": "302f67d7-a74d-41e9-aa22-298a16c85782", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the product", + "fullTitle": "FO - cart : Delete product should delete the product", + "timedOut": false, + "duration": 2047, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_deleteProduct_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.deleteProduct(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 3:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57594204-9d09-4dd8-a6cd-a9b6f99bc0d5", + "parentUUID": "302f67d7-a74d-41e9-aa22-298a16c85782", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1a6fce22-90bc-48ef-a5b8-5f1dce51cc46", + "81aeb903-2829-428d-83c7-5df4522e7705", + "d531938a-1f8d-4f1a-8df5-b862c36e9a0c", + "d0547331-5e3e-4e15-889f-1c512e31ba9f", + "679f5e48-4efc-4e9d-9e57-7fb0998067ce", + "57594204-9d09-4dd8-a6cd-a9b6f99bc0d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10130, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5ec2d651-7a9e-48b5-bf61-bfb70877ab6b", + "title": "FO - cart : Add promo code", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/10_cart/02_cart/03_addPromoCode.ts", + "file": "/campaigns/functional/FO/classic/10_cart/02_cart/03_addPromoCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - cart : Add promo code\"", + "fullTitle": "FO - cart : Add promo code \"before all\" hook in \"FO - cart : Add promo code\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3671e04-2b5f-49a8-8dab-888f4d2edf54", + "parentUUID": "5ec2d651-7a9e-48b5-bf61-bfb70877ab6b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - cart : Add promo code\"", + "fullTitle": "FO - cart : Add promo code \"after all\" hook in \"FO - cart : Add promo code\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "46815eaf-6b6f-49a1-aa26-bd8811331db4", + "parentUUID": "5ec2d651-7a9e-48b5-bf61-bfb70877ab6b", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "9e1a8185-1c58-4953-831e-e5bd58ea40fe", + "title": "PRE-TEST: Create cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/10_cart/02_cart/03_addPromoCode.ts", + "file": "/campaigns/functional/FO/classic/10_cart/02_cart/03_addPromoCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "FO - cart : Add promo code PRE-TEST: Create cart rule \"before all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e817ba16-f95c-4bc6-ab02-0a7488b5996a", + "parentUUID": "9e1a8185-1c58-4953-831e-e5bd58ea40fe", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create cart rule\"", + "fullTitle": "FO - cart : Add promo code PRE-TEST: Create cart rule \"after all\" hook in \"PRE-TEST: Create cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a6e4c35d-1b12-4aa7-a2e7-47f8338bfdff", + "parentUUID": "9e1a8185-1c58-4953-831e-e5bd58ea40fe", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - cart : Add promo code PRE-TEST: Create cart rule should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "370e709a-d609-4e56-89f6-b594fa2d91a3", + "parentUUID": "9e1a8185-1c58-4953-831e-e5bd58ea40fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "FO - cart : Add promo code PRE-TEST: Create cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3669, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_PreTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bee7528-a8a6-487a-88a1-9a59cc0eac99", + "parentUUID": "9e1a8185-1c58-4953-831e-e5bd58ea40fe", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "FO - cart : Add promo code PRE-TEST: Create cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_PreTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cd7ef98-98b7-4cfd-a398-8113c9fcedf0", + "parentUUID": "9e1a8185-1c58-4953-831e-e5bd58ea40fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new cart rule page", + "fullTitle": "FO - cart : Add promo code PRE-TEST: Create cart rule should go to new cart rule page", + "timedOut": false, + "duration": 837, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_PreTest_goToNewCartRulePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b19743ba-5a13-4eb6-a518-b5daf7f03a44", + "parentUUID": "9e1a8185-1c58-4953-831e-e5bd58ea40fe", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "FO - cart : Add promo code PRE-TEST: Create cart rule should create new cart rule", + "timedOut": false, + "duration": 3749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_PreTest_createCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, cartRuleData)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5527caf-5655-4618-88a6-58f3d7ec8a41", + "parentUUID": "9e1a8185-1c58-4953-831e-e5bd58ea40fe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "370e709a-d609-4e56-89f6-b594fa2d91a3", + "1bee7528-a8a6-487a-88a1-9a59cc0eac99", + "8cd7ef98-98b7-4cfd-a398-8113c9fcedf0", + "b19743ba-5a13-4eb6-a518-b5daf7f03a44", + "d5527caf-5655-4618-88a6-58f3d7ec8a41" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11980, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "title": "Check promo code block", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/10_cart/02_cart/03_addPromoCode.ts", + "file": "/campaigns/functional/FO/classic/10_cart/02_cart/03_addPromoCode.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - cart : Add promo code Check promo code block should go to FO", + "timedOut": false, + "duration": 1680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9554519-bbc0-4ba8-9398-7111144c5dea", + "parentUUID": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart and proceed to checkout", + "fullTitle": "FO - cart : Add promo code Check promo code block should add the first product to cart and proceed to checkout", + "timedOut": false, + "duration": 2068, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_addFirstProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addFirstProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fad3f2a2-606c-4776-b557-1ebe94091733", + "parentUUID": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should add the promo code and check the total", + "fullTitle": "FO - cart : Add promo code Check promo code block should add the promo code and check the total", + "timedOut": false, + "duration": 1479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_checkTotalAfterDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalAfterDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isCartRuleNameVisible(page)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "904fb7e1-a6d8-491e-8c5f-1319d18fd909", + "parentUUID": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart rule name", + "fullTitle": "FO - cart : Add promo code Check promo code block should check the cart rule name", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_checkCartRuleName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cartRuleName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCartRuleName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleName(page)];\n case 2:\n cartRuleName = _a.sent();\n (0, chai_1.expect)(cartRuleName).to.equal(newCartRuleData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "221900a9-f086-456d-b596-cf9bf056cb0a", + "parentUUID": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should check the discount value", + "fullTitle": "FO - cart : Add promo code Check promo code block should check the discount value", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_checkDiscountValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalBeforeDiscount;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDiscountValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getDiscountValue(page)];\n case 2:\n totalBeforeDiscount = _a.sent();\n (0, chai_1.expect)(totalBeforeDiscount).to.eq(-newCartRuleData.discountAmount.value);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87bd468a-bc4e-47f7-a3fe-2a0155e75758", + "parentUUID": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should set the same promo code and check the error message", + "fullTitle": "FO - cart : Add promo code Check promo code block should set the same promo code and check the error message", + "timedOut": false, + "duration": 2468, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_samePromoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, voucherErrorText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'samePromoCode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, newCartRuleData.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isCartRuleNameVisible(page, 2)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [4 /*yield*/, cart_1.cartPage.getCartRuleErrorMessage(page)];\n case 4:\n voucherErrorText = _a.sent();\n (0, chai_1.expect)(voucherErrorText).to.equal(cart_1.cartPage.cartRuleAlreadyInYourCartErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a56ba01c-893a-4fb6-b358-603b2e078b5c", + "parentUUID": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should set a not existing promo code and check the error message", + "fullTitle": "FO - cart : Add promo code Check promo code block should set a not existing promo code and check the error message", + "timedOut": false, + "duration": 2098, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_notExistingPromoCode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible, voucherErrorText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'notExistingPromoCode', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, 'reduction', false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.isCartRuleNameVisible(page, 2)];\n case 3:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(false);\n return [4 /*yield*/, cart_1.cartPage.getCartRuleErrorMessage(page)];\n case 4:\n voucherErrorText = _a.sent();\n (0, chai_1.expect)(voucherErrorText).to.equal(cart_1.cartPage.cartRuleNotExistingErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "504c43ec-9002-491a-bc21-d65d2327a0fa", + "parentUUID": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should leave the promo code input blanc and check the error message", + "fullTitle": "FO - cart : Add promo code Check promo code block should leave the promo code input blanc and check the error message", + "timedOut": false, + "duration": 1081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_leavePromoCodeEmpty\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var voucherErrorText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'leavePromoCodeEmpty', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, '', false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartRuleErrorMessage(page)];\n case 3:\n voucherErrorText = _a.sent();\n (0, chai_1.expect)(voucherErrorText).to.equal(cart_1.cartPage.cartRuleMustEnterVoucherErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fa3b08f-8db9-49f5-bca4-a03922639edc", + "parentUUID": "7c49ec33-0f61-471b-aae1-609cb769d9ad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d9554519-bbc0-4ba8-9398-7111144c5dea", + "fad3f2a2-606c-4776-b557-1ebe94091733", + "904fb7e1-a6d8-491e-8c5f-1319d18fd909", + "221900a9-f086-456d-b596-cf9bf056cb0a", + "87bd468a-bc4e-47f7-a3fe-2a0155e75758", + "a56ba01c-893a-4fb6-b358-603b2e078b5c", + "504c43ec-9002-491a-bc21-d65d2327a0fa", + "5fa3b08f-8db9-49f5-bca4-a03922639edc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12890, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "45742bc9-c2b5-45a4-a6cb-79efd835fc7e", + "title": "POST-TEST: Delete cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/10_cart/02_cart/03_addPromoCode.ts", + "file": "/campaigns/functional/FO/classic/10_cart/02_cart/03_addPromoCode.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "FO - cart : Add promo code POST-TEST: Delete cart rule \"before all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "894f24b2-71b5-4e8e-a280-0a494fbe0854", + "parentUUID": "45742bc9-c2b5-45a4-a6cb-79efd835fc7e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete cart rule\"", + "fullTitle": "FO - cart : Add promo code POST-TEST: Delete cart rule \"after all\" hook in \"POST-TEST: Delete cart rule\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8fd4787f-0420-4e9d-923b-8f30c25de12f", + "parentUUID": "45742bc9-c2b5-45a4-a6cb-79efd835fc7e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - cart : Add promo code POST-TEST: Delete cart rule should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca1deb81-f741-4685-b8d3-5d6e017195f5", + "parentUUID": "45742bc9-c2b5-45a4-a6cb-79efd835fc7e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Discounts' page", + "fullTitle": "FO - cart : Add promo code POST-TEST: Delete cart rule should go to 'Catalog > Discounts' page", + "timedOut": false, + "duration": 3646, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_PostTest_goToDiscountsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDiscountsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "121bfb79-6d61-4e09-9a1b-2438ed428d86", + "parentUUID": "45742bc9-c2b5-45a4-a6cb-79efd835fc7e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset and get number of cart rules", + "fullTitle": "FO - cart : Add promo code POST-TEST: Delete cart rule should reset and get number of cart rules", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_PostTest_resetFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRules = _a.sent();\n (0, chai_1.expect)(numberOfCartRules).to.be.at.least(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a9ccedf-31b9-431d-8330-a4b944dcb946", + "parentUUID": "45742bc9-c2b5-45a4-a6cb-79efd835fc7e", + "isHook": false, + "skipped": false + }, + { + "title": "should delete cart rule", + "fullTitle": "FO - cart : Add promo code POST-TEST: Delete cart rule should delete cart rule", + "timedOut": false, + "duration": 1983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_PostTest_deleteCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page, 1, cartRuleName)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "065d73da-84d0-4eba-b755-30190479569b", + "parentUUID": "45742bc9-c2b5-45a4-a6cb-79efd835fc7e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - cart : Add promo code POST-TEST: Delete cart rule should reset all filters", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_cart_cart_addPromoCode_PostTest_resetAfterBulkDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCartRulesAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterBulkDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCartRulesAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfCartRulesAfterDelete).to.equal(numberOfCartRules - 1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a85bd4e-809f-444f-973e-8ca2dda427b2", + "parentUUID": "45742bc9-c2b5-45a4-a6cb-79efd835fc7e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca1deb81-f741-4685-b8d3-5d6e017195f5", + "121bfb79-6d61-4e09-9a1b-2438ed428d86", + "5a9ccedf-31b9-431d-8330-a4b944dcb946", + "065d73da-84d0-4eba-b755-30190479569b", + "1a85bd4e-809f-444f-973e-8ca2dda427b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11386, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "title": "FO - Checkout - Personal information : Order as a guest", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/01_orderAsAGuest.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/01_orderAsAGuest.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout - Personal information : Order as a guest\"", + "fullTitle": "FO - Checkout - Personal information : Order as a guest \"before all\" hook in \"FO - Checkout - Personal information : Order as a guest\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e5070e7-3dd4-4cb4-8d75-dbb2024de654", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout - Personal information : Order as a guest\"", + "fullTitle": "FO - Checkout - Personal information : Order as a guest \"after all\" hook in \"FO - Checkout - Personal information : Order as a guest\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9a11bc00-1be1-4b23-b7f4-08da43a42b83", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Checkout - Personal information : Order as a guest should open FO page", + "timedOut": false, + "duration": 1656, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_orderAsAGuest_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ea3d592-6022-418f-941d-ff0c748b393d", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Checkout - Personal information : Order as a guest should add product to cart", + "timedOut": false, + "duration": 4206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_orderAsAGuest_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33118797-45af-48cc-ae93-e2977c900d79", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout validate the cart", + "fullTitle": "FO - Checkout - Personal information : Order as a guest should proceed to checkout validate the cart", + "timedOut": false, + "duration": 305, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_orderAsAGuest_validateCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eac0f5e3-cd61-4857-967a-a2d2f176a2b9", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "FO - Checkout - Personal information : Order as a guest should fill guest personal information", + "timedOut": false, + "duration": 828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_orderAsAGuest_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, guestData)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e07464ba-e3b5-453d-ad07-56806b8895cd", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit Personal information and edit the guest information", + "fullTitle": "FO - Checkout - Personal information : Order as a guest should click on edit Personal information and edit the guest information", + "timedOut": false, + "duration": 722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_orderAsAGuest_checkCustomerIdentity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerIdentity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditPersonalInformationStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, secondGuestData)];\n case 3:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c080bbd-81e0-47a7-8f26-b28874c172a9", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "FO - Checkout - Personal information : Order as a guest should fill address form and go to delivery step", + "timedOut": false, + "duration": 1571, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_orderAsAGuest_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, addressData)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23035845-f3f9-4676-ad64-4ccce006fe12", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "FO - Checkout - Personal information : Order as a guest should validate the order", + "timedOut": false, + "duration": 2425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_orderAsAGuest_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.equal(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62c69f25-2b7a-4c31-92cb-1904aef63a83", + "parentUUID": "4ecbcb57-5ea5-4789-a86a-46e61acbddd1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5ea3d592-6022-418f-941d-ff0c748b393d", + "33118797-45af-48cc-ae93-e2977c900d79", + "eac0f5e3-cd61-4857-967a-a2d2f176a2b9", + "e07464ba-e3b5-453d-ad07-56806b8895cd", + "7c080bbd-81e0-47a7-8f26-b28874c172a9", + "23035845-f3f9-4676-ad64-4ccce006fe12", + "62c69f25-2b7a-4c31-92cb-1904aef63a83" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11713, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "title": "FO - Checkout - Personal information : Sign in", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/02_signIn.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/02_signIn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout - Personal information : Sign in\"", + "fullTitle": "FO - Checkout - Personal information : Sign in \"before all\" hook in \"FO - Checkout - Personal information : Sign in\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc83cbdb-f4bb-477c-aee2-8c9a0e28c6f4", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout - Personal information : Sign in\"", + "fullTitle": "FO - Checkout - Personal information : Sign in \"after all\" hook in \"FO - Checkout - Personal information : Sign in\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3482e57a-5cd7-412e-9758-dc368b939527", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Checkout - Personal information : Sign in should open FO page", + "timedOut": false, + "duration": 1663, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b4e7696-9e3f-49af-8fc0-1e83535614fe", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Checkout - Personal information : Sign in should add product to cart", + "timedOut": false, + "duration": 4213, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66e379bf-c644-4504-a3a4-293365bc7677", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout validate the cart", + "fullTitle": "FO - Checkout - Personal information : Sign in should proceed to checkout validate the cart", + "timedOut": false, + "duration": 221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_validateCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fba6677-c82c-4218-aee0-56b670e1d535", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid credentials", + "fullTitle": "FO - Checkout - Personal information : Sign in should enter an invalid credentials", + "timedOut": false, + "duration": 1938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_enterInvalidCredentials\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterInvalidCredentials', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, credentialsData)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [4 /*yield*/, checkout_1.default.getLoginError(page)];\n case 4:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(checkout_1.default.authenticationErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e48b818-757b-476e-ae0e-ef66726b9482", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Checkout - Personal information : Sign in should sign in with customer credentials", + "timedOut": false, + "duration": 516, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_signIn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signIn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b377290f-f1f0-4d89-a0a6-20af5057a60b", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit Personal information step and get the identity of the customer", + "fullTitle": "FO - Checkout - Personal information : Sign in should click on edit Personal information step and get the identity of the customer", + "timedOut": false, + "duration": 69, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_checkCustomerIdentity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var customerIdentity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCustomerIdentity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditPersonalInformationStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getCustomerIdentity(page)];\n case 3:\n customerIdentity = _a.sent();\n (0, chai_1.expect)(customerIdentity).to.equal(\"Connected as \".concat(customers_1.default.johnDoe.firstName, \" \").concat(customers_1.default.johnDoe.lastName, \".\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "178ea0f3-2efc-403f-bf16-1973ff3c90a4", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the existence of the text message 'If you sign out now, your cart will be emptied.'", + "fullTitle": "FO - Checkout - Personal information : Sign in should check the existence of the text message 'If you sign out now, your cart will be emptied.'", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_checkMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getLogoutMessage(page)];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.equal(checkout_1.default.messageIfYouSignOut);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9171f912-6521-4aa7-b96b-eaff9cf2fecd", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + }, + { + "title": "should logout and check that the customer is no longer connected", + "fullTitle": "FO - Checkout - Personal information : Sign in should logout and check that the customer is no longer connected", + "timedOut": false, + "duration": 1208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_logout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'logout', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.logOutCustomer(page)];\n case 2:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is still connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1820f33-5b72-437e-9615-473f2497c0e7", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check the message 'There are no more items in your cart' in shopping cart page", + "fullTitle": "FO - Checkout - Personal information : Sign in should check the message 'There are no more items in your cart' in shopping cart page", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_signIn_checkNoItemsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoItemsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getNoItemsInYourCartMessage(page)];\n case 2:\n message = _a.sent();\n (0, chai_1.expect)(message).to.equal(cart_1.cartPage.noItemsInYourCartMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21fe1be0-a359-464c-a0ea-4cb84ad5f255", + "parentUUID": "0d2aab24-b4b0-4f68-b00c-fe8a4a34c7c7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7b4e7696-9e3f-49af-8fc0-1e83535614fe", + "66e379bf-c644-4504-a3a4-293365bc7677", + "3fba6677-c82c-4218-aee0-56b670e1d535", + "1e48b818-757b-476e-ae0e-ef66726b9482", + "b377290f-f1f0-4d89-a0a6-20af5057a60b", + "178ea0f3-2efc-403f-bf16-1973ff3c90a4", + "9171f912-6521-4aa7-b96b-eaff9cf2fecd", + "b1820f33-5b72-437e-9615-473f2497c0e7", + "21fe1be0-a359-464c-a0ea-4cb84ad5f255" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9848, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a5fb0f93-9e30-4a19-81fa-7b83bd7d87d5", + "title": "FO - Checkout - Personal information : Create account", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout - Personal information : Create account\"", + "fullTitle": "FO - Checkout - Personal information : Create account \"before all\" hook in \"FO - Checkout - Personal information : Create account\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2cdf217-1a80-4a21-9ab3-2e66b4dfc826", + "parentUUID": "a5fb0f93-9e30-4a19-81fa-7b83bd7d87d5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout - Personal information : Create account\"", + "fullTitle": "FO - Checkout - Personal information : Create account \"after all\" hook in \"FO - Checkout - Personal information : Create account\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3aec83ee-14e0-4f67-ada9-20584f9dba6b", + "parentUUID": "a5fb0f93-9e30-4a19-81fa-7b83bd7d87d5", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "eb584074-2d3a-4a45-8f2b-a8411d66fd02", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Checkout - Personal information : Create account PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7089f103-d88c-46d6-85a2-cf6fc6a6be42", + "parentUUID": "eb584074-2d3a-4a45-8f2b-a8411d66fd02", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Checkout - Personal information : Create account PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e6cc70a7-4030-4fee-be55-46a500c70973", + "parentUUID": "eb584074-2d3a-4a45-8f2b-a8411d66fd02", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Personal information : Create account PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dcf4c24-6953-4f2c-9200-787aa472d634", + "parentUUID": "eb584074-2d3a-4a45-8f2b-a8411d66fd02", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Checkout - Personal information : Create account PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_preTest_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "493a1f65-2ea3-41cb-87bf-7aff0ce04496", + "parentUUID": "eb584074-2d3a-4a45-8f2b-a8411d66fd02", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "FO - Checkout - Personal information : Create account PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 590, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_preTest_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c6d05ae-e6ac-4805-841e-d9360e3c2b8e", + "parentUUID": "eb584074-2d3a-4a45-8f2b-a8411d66fd02", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9dcf4c24-6953-4f2c-9200-787aa472d634", + "493a1f65-2ea3-41cb-87bf-7aff0ce04496", + "0c6d05ae-e6ac-4805-841e-d9360e3c2b8e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7228, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "title": "Create account", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Checkout - Personal information : Create account Create account should open FO page", + "timedOut": false, + "duration": 1688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9f6ffb4-4a03-486c-91d5-6bad019bbff6", + "parentUUID": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Checkout - Personal information : Create account Create account should add product to cart", + "timedOut": false, + "duration": 4186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e2ae111e-37d5-46a3-bdba-3db4297bc5cd", + "parentUUID": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout validate the cart", + "fullTitle": "FO - Checkout - Personal information : Create account Create account should proceed to checkout validate the cart", + "timedOut": false, + "duration": 206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_validateCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93c26964-4686-43bd-8e25-393446b094f7", + "parentUUID": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "isHook": false, + "skipped": false + }, + { + "title": "should fill guest personal information", + "fullTitle": "FO - Checkout - Personal information : Create account Create account should fill guest personal information", + "timedOut": false, + "duration": 1041, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, guestData)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40e14fe0-a857-4aff-bbea-974be187b285", + "parentUUID": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "FO - Checkout - Personal information : Create account Create account should fill address form and go to delivery step", + "timedOut": false, + "duration": 1651, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, addressData)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f09cce4-7a0c-48fa-a1ca-8ca110820254", + "parentUUID": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "isHook": false, + "skipped": false + }, + { + "title": "should validate the order", + "fullTitle": "FO - Checkout - Personal information : Create account Create account should validate the order", + "timedOut": false, + "duration": 2147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_validateOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.equal(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6260ebae-1a4f-43e7-ad9b-549dd73885e5", + "parentUUID": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check if welcome mail and order confirmation email are in mailbox", + "fullTitle": "FO - Checkout - Personal information : Create account Create account should check if welcome mail and order confirmation email are in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_checkWelcomeMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkWelcomeMail', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Order confirmation\"));\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting bank wire payment\"));\n (0, chai_1.expect)(allEmails[numberOfEmails - 3].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Welcome!\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08ae7dcb-57c1-4516-94b7-6c75ea6d42d7", + "parentUUID": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the content of the welcome email", + "fullTitle": "FO - Checkout - Personal information : Create account Create account should check the content of the welcome email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_checkEmailText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmailText', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[numberOfEmails - 3].text).to.contains(\"Hi \".concat(guestData.firstName, \" \").concat(guestData.lastName))\n .and.to.contains(\"Thank you for creating a customer account at \".concat(global.INSTALL.SHOP_NAME, \".\"))\n .and.to.contains(\"Email address: \".concat(guestData.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e546e22-e522-419c-a18c-3b18dadcdc79", + "parentUUID": "5f06a873-97bb-4f3e-b6ff-1320be0d75c5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e9f6ffb4-4a03-486c-91d5-6bad019bbff6", + "e2ae111e-37d5-46a3-bdba-3db4297bc5cd", + "93c26964-4686-43bd-8e25-393446b094f7", + "40e14fe0-a857-4aff-bbea-974be187b285", + "8f09cce4-7a0c-48fa-a1ca-8ca110820254", + "6260ebae-1a4f-43e7-ad9b-549dd73885e5", + "08ae7dcb-57c1-4516-94b7-6c75ea6d42d7", + "2e546e22-e522-419c-a18c-3b18dadcdc79" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10920, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "576e7b50-aee0-4a28-99d7-e899b7c016a6", + "parentUUID": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1904d5e3-27d5-47f7-9943-e1e48cf44a22", + "parentUUID": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b47d1e12-6096-481b-801a-a7243e6e3040", + "parentUUID": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "384488ac-3444-40a9-bceb-5ace4da55455", + "parentUUID": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2befc37-dc17-4c02-9fb8-1f238ad7bf3a", + "parentUUID": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed3467e6-bf6b-42f3-b4b7-ef0bccf68a15", + "parentUUID": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1600, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ac0b838-5970-4b6a-a6e9-a0f929014ac5", + "parentUUID": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 391, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03a127d4-ae46-4fa6-94f8-240e6aa18311", + "parentUUID": "5308e078-e5b0-41bc-97b9-dfbeb78892d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b47d1e12-6096-481b-801a-a7243e6e3040", + "384488ac-3444-40a9-bceb-5ace4da55455", + "c2befc37-dc17-4c02-9fb8-1f238ad7bf3a", + "ed3467e6-bf6b-42f3-b4b7-ef0bccf68a15", + "7ac0b838-5970-4b6a-a6e9-a0f929014ac5", + "03a127d4-ae46-4fa6-94f8-240e6aa18311" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12138, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cc8a4a32-a7ff-4c5e-8af2-7b761ec7dd7f", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/03_createAccount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 53, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae2c4ca9-7310-4ed0-ab5d-daacbcb8f55f", + "parentUUID": "cc8a4a32-a7ff-4c5e-8af2-7b761ec7dd7f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4d56f758-0e14-430a-b1ae-d2d78386f86a", + "parentUUID": "cc8a4a32-a7ff-4c5e-8af2-7b761ec7dd7f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42988975-98d5-4efa-bc4b-b27d9297c110", + "parentUUID": "cc8a4a32-a7ff-4c5e-8af2-7b761ec7dd7f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8092b886-0b7b-4bd4-8761-23c9717777a0", + "parentUUID": "cc8a4a32-a7ff-4c5e-8af2-7b761ec7dd7f", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "FO - Checkout - Personal information : Create account POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 395, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_createAccount_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72a19c97-28d4-4229-a8c8-f07ac296c729", + "parentUUID": "cc8a4a32-a7ff-4c5e-8af2-7b761ec7dd7f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "42988975-98d5-4efa-bc4b-b27d9297c110", + "8092b886-0b7b-4bd4-8761-23c9717777a0", + "72a19c97-28d4-4229-a8c8-f07ac296c729" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7013, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f25ccee8-afaf-4b08-831c-7215eb1e1d85", + "title": "FO - Checkout - Personal information : Password reminder", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout - Personal information : Password reminder\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder \"before all\" hook in \"FO - Checkout - Personal information : Password reminder\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afc98105-ccac-47a6-a5c8-23a83adb0387", + "parentUUID": "f25ccee8-afaf-4b08-831c-7215eb1e1d85", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout - Personal information : Password reminder\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder \"after all\" hook in \"FO - Checkout - Personal information : Password reminder\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f5922be2-f67a-43bb-a734-6509031c722b", + "parentUUID": "f25ccee8-afaf-4b08-831c-7215eb1e1d85", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "34087bd3-e666-473e-a2ce-93df00d3849a", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d165328-1e4d-4b32-a24d-59459a087e37", + "parentUUID": "34087bd3-e666-473e-a2ce-93df00d3849a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "de4467b9-ec91-4a89-93ff-c5d3bff9b5c8", + "parentUUID": "34087bd3-e666-473e-a2ce-93df00d3849a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1740, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1359eed0-038e-465a-bcf0-d6f1c6902d62", + "parentUUID": "34087bd3-e666-473e-a2ce-93df00d3849a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "067f4a13-0c54-4ceb-a166-22075e9765b7", + "parentUUID": "34087bd3-e666-473e-a2ce-93df00d3849a", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 600, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0d76ed6-c849-41f8-b46a-ff2a4bafbf5d", + "parentUUID": "34087bd3-e666-473e-a2ce-93df00d3849a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1359eed0-038e-465a-bcf0-d6f1c6902d62", + "067f4a13-0c54-4ceb-a166-22075e9765b7", + "d0d76ed6-c849-41f8-b46a-ff2a4bafbf5d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7206, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2ed4d0a3-c6d2-40f7-94fb-6e5899c775ab", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0897c454-6617-43dc-9ba3-70f7f578009a", + "parentUUID": "2ed4d0a3-c6d2-40f7-94fb-6e5899c775ab", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3e919057-9890-4851-9aaf-88ea5870e689", + "parentUUID": "2ed4d0a3-c6d2-40f7-94fb-6e5899c775ab", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 1673, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3c7fa66-b048-4f99-b73a-5472664a0a4a", + "parentUUID": "2ed4d0a3-c6d2-40f7-94fb-6e5899c775ab", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_preTest_2_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eccc6ae2-0878-4fbc-958c-1d18353e23e6", + "parentUUID": "2ed4d0a3-c6d2-40f7-94fb-6e5899c775ab", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1098, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_preTest_2_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "213cc80a-d3d4-4713-9f7f-a656743b4a75", + "parentUUID": "2ed4d0a3-c6d2-40f7-94fb-6e5899c775ab", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Checkout - Personal information : Password reminder PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 1926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_preTest_2_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa7ec9e6-acd3-4ac0-a230-fddc4dcdb496", + "parentUUID": "2ed4d0a3-c6d2-40f7-94fb-6e5899c775ab", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f3c7fa66-b048-4f99-b73a-5472664a0a4a", + "eccc6ae2-0878-4fbc-958c-1d18353e23e6", + "213cc80a-d3d4-4713-9f7f-a656743b4a75", + "aa7ec9e6-acd3-4ac0-a230-fddc4dcdb496" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6119, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "title": "Update customer password", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should open FO page", + "timedOut": false, + "duration": 1688, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67bf8275-5eb9-4258-aec9-3f2bd99febbb", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should add product to cart", + "timedOut": false, + "duration": 4449, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "897fc424-363b-4bef-962f-16820c6493c3", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and validate the cart", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should proceed to checkout and validate the cart", + "timedOut": false, + "duration": 221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_validateCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49eddf69-a6d3-4f6a-828e-e4614234e482", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should click on sign in then on 'Forgot your password?' link ", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should click on sign in then on 'Forgot your password?' link ", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_clickOnForgetPasswordLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnForgetPasswordLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPasswordReminderPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.passwordReminderPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(passwordReminder_1.passwordReminderPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1feecb8-be4c-4f7f-ab25-fd34c9a893a1", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should set the email address and send reset link", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should set the email address and send reset link", + "timedOut": false, + "duration": 437, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_sendResetPasswordLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successAlertContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendResetPasswordLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.passwordReminderPage.sendResetPasswordLink(page, customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.passwordReminderPage.checkResetLinkSuccess(page)];\n case 3:\n successAlertContent = _a.sent();\n (0, chai_1.expect)(successAlertContent).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ef66e28-2d66-4500-8554-f87150fcf74f", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should check if reset password mail is in mailbox", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should check if reset password mail is in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_checkResetPasswordMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResetPasswordMail', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains(resetPasswordMailSubject);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8435975b-4e7c-4375-9f89-116204b2de00", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should open reset password link", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should open reset password link", + "timedOut": false, + "duration": 165, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_openResetPasswordLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openResetPasswordLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.passwordReminderPage.openForgotPasswordPage(page, newMail.text)];\n case 2:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.passwordReminderPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(passwordReminder_1.passwordReminderPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fa28165-b441-4f5b-baba-97cb314bd7a3", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the email address to reset password", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should check the email address to reset password", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_checkEmailAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var emailAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmailAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.passwordReminderPage.getEmailAddressToReset(page)];\n case 2:\n emailAddress = _a.sent();\n (0, chai_1.expect)(emailAddress).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b14fc298-0cff-4dfb-a074-8f27b77bd934", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should change the password and check the validation message", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should change the password and check the validation message", + "timedOut": false, + "duration": 586, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_changePassword\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changePassword', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.passwordReminderPage.setNewPassword(page, newPassword)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getSuccessMessageAlert(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(\"\".concat(myAccount_1.myAccountPage.resetPasswordSuccessMessage, \" \").concat(customerData.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "407ad72d-2037-42e0-ac7b-3e3d189de107", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from FO", + "fullTitle": "FO - Checkout - Personal information : Password reminder Update customer password should logout from FO", + "timedOut": false, + "duration": 1741, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fdf54976-a99d-40df-bfb5-3b34541ca7c9", + "parentUUID": "899d69f6-6e76-4658-b2ea-74bade244ab5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "67bf8275-5eb9-4258-aec9-3f2bd99febbb", + "897fc424-363b-4bef-962f-16820c6493c3", + "49eddf69-a6d3-4f6a-828e-e4614234e482", + "f1feecb8-be4c-4f7f-ab25-fd34c9a893a1", + "6ef66e28-2d66-4500-8554-f87150fcf74f", + "8435975b-4e7c-4375-9f89-116204b2de00", + "4fa28165-b441-4f5b-baba-97cb314bd7a3", + "b14fc298-0cff-4dfb-a074-8f27b77bd934", + "407ad72d-2037-42e0-ac7b-3e3d189de107", + "fdf54976-a99d-40df-bfb5-3b34541ca7c9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10082, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c795372b-f374-4748-b888-02e0a6ed0c84", + "title": "Check new customer password", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to home page", + "fullTitle": "FO - Checkout - Personal information : Password reminder Check new customer password should go to home page", + "timedOut": false, + "duration": 216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f097aed4-a3ee-4b9a-b4f7-5d97be96d876", + "parentUUID": "c795372b-f374-4748-b888-02e0a6ed0c84", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Checkout - Personal information : Password reminder Check new customer password should add product to cart", + "timedOut": false, + "duration": 4177, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8392d7a-4b0c-4dd8-839b-d5a45ea70a51", + "parentUUID": "c795372b-f374-4748-b888-02e0a6ed0c84", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and validate the cart", + "fullTitle": "FO - Checkout - Personal information : Password reminder Check new customer password should proceed to checkout and validate the cart", + "timedOut": false, + "duration": 220, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_validateCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'validateCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a4f6aaf-d1ab-4efd-bf14-0e7c9833eed4", + "parentUUID": "c795372b-f374-4748-b888-02e0a6ed0c84", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid credentials", + "fullTitle": "FO - Checkout - Personal information : Password reminder Check new customer password should enter an invalid credentials", + "timedOut": false, + "duration": 1968, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_enterInvalidCredentials\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterInvalidCredentials', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customerData)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [4 /*yield*/, checkout_1.default.getLoginError(page)];\n case 4:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(checkout_1.default.authenticationErrorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "544d2a35-ce7f-4c68-bb0a-d204efb5a859", + "parentUUID": "c795372b-f374-4748-b888-02e0a6ed0c84", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Checkout - Personal information : Password reminder Check new customer password should sign in with customer credentials", + "timedOut": false, + "duration": 541, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_signIn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signIn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customerNewPassword)];\n case 2:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc450a01-66bc-4211-84b6-cc4830abeda4", + "parentUUID": "c795372b-f374-4748-b888-02e0a6ed0c84", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f097aed4-a3ee-4b9a-b4f7-5d97be96d876", + "d8392d7a-4b0c-4dd8-839b-d5a45ea70a51", + "6a4f6aaf-d1ab-4efd-bf14-0e7c9833eed4", + "544d2a35-ce7f-4c68-bb0a-d204efb5a859", + "cc450a01-66bc-4211-84b6-cc4830abeda4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7122, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5f57446c-2314-40cf-98b1-1e3370422194", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f96c864-3694-48c7-b766-32b2c4fc1555", + "parentUUID": "5f57446c-2314-40cf-98b1-1e3370422194", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f288af42-6f7f-4048-896d-8803f3885a52", + "parentUUID": "5f57446c-2314-40cf-98b1-1e3370422194", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b975cdc8-ba4b-4bc2-ae9d-10247db3de59", + "parentUUID": "5f57446c-2314-40cf-98b1-1e3370422194", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fa8657d-3ace-486b-82c4-c4a22a3b2313", + "parentUUID": "5f57446c-2314-40cf-98b1-1e3370422194", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6ca5b65-63f8-4560-a33a-ad85b51fff4c", + "parentUUID": "5f57446c-2314-40cf-98b1-1e3370422194", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1111, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59379d2b-6eb1-4de4-b03a-cbca3534afd0", + "parentUUID": "5f57446c-2314-40cf-98b1-1e3370422194", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61b4fecc-52b4-4490-89fd-9beca8d5f4e9", + "parentUUID": "5f57446c-2314-40cf-98b1-1e3370422194", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 359, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6064a27b-133b-4792-9cf9-0a0a21da8293", + "parentUUID": "5f57446c-2314-40cf-98b1-1e3370422194", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b975cdc8-ba4b-4bc2-ae9d-10247db3de59", + "3fa8657d-3ace-486b-82c4-c4a22a3b2313", + "e6ca5b65-63f8-4560-a33a-ad85b51fff4c", + "59379d2b-6eb1-4de4-b03a-cbca3534afd0", + "61b4fecc-52b4-4490-89fd-9beca8d5f4e9", + "6064a27b-133b-4792-9cf9-0a0a21da8293" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11808, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a487ad60-507f-424b-b20c-df36bbc38301", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_personalInformation/05_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 52, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63bb3b79-1246-4625-af5b-0b60c43afcab", + "parentUUID": "a487ad60-507f-424b-b20c-df36bbc38301", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "97345d53-485b-4881-a0a6-35c30aff8909", + "parentUUID": "a487ad60-507f-424b-b20c-df36bbc38301", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5e857e1-796d-49a0-9622-e5645998a820", + "parentUUID": "a487ad60-507f-424b-b20c-df36bbc38301", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62b86181-1dee-4953-8f40-f09bfbe6e05d", + "parentUUID": "a487ad60-507f-424b-b20c-df36bbc38301", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "FO - Checkout - Personal information : Password reminder POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 393, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_personalInformation_passwordReminder_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f75d5943-bdb6-4acc-bfde-4e7584f5cbef", + "parentUUID": "a487ad60-507f-424b-b20c-df36bbc38301", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b5e857e1-796d-49a0-9622-e5645998a820", + "62b86181-1dee-4953-8f40-f09bfbe6e05d", + "f75d5943-bdb6-4acc-bfde-4e7584f5cbef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7041, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "df639237-7e65-4781-8704-efbe5cbe48f2", + "title": "FO - Checkout : Show details", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/01_showDetails.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/01_showDetails.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout : Show details\"", + "fullTitle": "FO - Checkout : Show details \"before all\" hook in \"FO - Checkout : Show details\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9019b26d-d848-4c40-bd74-7a180b62cb84", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout : Show details\"", + "fullTitle": "FO - Checkout : Show details \"after all\" hook in \"FO - Checkout : Show details\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "62cc1616-197b-4b0f-826b-b7fcad6fc970", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Checkout : Show details should go to FO", + "timedOut": false, + "duration": 1659, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fc98d27-33cd-40e6-88dd-048fe7d6fca1", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart", + "fullTitle": "FO - Checkout : Show details should add the first product to cart", + "timedOut": false, + "duration": 1589, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closeBlockCartModal(page)];\n case 3:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edc2b8b5-3fac-4c8a-adaf-a83d457f45d2", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "should add the third product to cart", + "fullTitle": "FO - Checkout : Show details should add the third product to cart", + "timedOut": false, + "duration": 2556, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 3, 2)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a87ed69-6f47-4277-8f3b-67bd5be2a1f1", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to checkout page", + "fullTitle": "FO - Checkout : Show details should proceed to checkout and go to checkout page", + "timedOut": false, + "duration": 219, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57d237fd-8953-4099-ac24-0ae9e6543414", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the items number", + "fullTitle": "FO - Checkout : Show details should check the items number", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_checkItemsNumber\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var itemsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkItemsNumber', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getItemsNumber(page)];\n case 2:\n itemsNumber = _a.sent();\n (0, chai_1.expect)(itemsNumber).to.equal('3 items');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f502ab3a-f508-4ba9-8671-7100ff00dc13", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Show details' link", + "fullTitle": "FO - Checkout : Show details should click on 'Show details' link", + "timedOut": false, + "duration": 37, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_showDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isProductsListVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'showDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnShowDetailsLink(page)];\n case 2:\n isProductsListVisible = _a.sent();\n (0, chai_1.expect)(isProductsListVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6adf0a5-0a76-4e8f-a3bc-2f1ced1170d6", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the first product details", + "fullTitle": "FO - Checkout : Show details should check the first product details", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_checkFirstProductDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, attributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstProductDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getProductDetails(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_1.coverImage),\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_1.name),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_1.finalPrice),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getProductAttributes(page, 1)];\n case 4:\n attributes = _a.sent();\n (0, chai_1.expect)(attributes).to.equal('Size: S');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc8b4de4-fc5d-4b8d-b5b5-0da10a42527f", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "should check the second product details", + "fullTitle": "FO - Checkout : Show details should check the second product details", + "timedOut": false, + "duration": 29, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_checkSecondProductDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, attributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSecondProductDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getProductDetails(page, 2)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.image).to.contains(products_1.default.demo_6.coverImage),\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_6.name),\n (0, chai_1.expect)(result.quantity).to.equal(2),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_6.combinations[0].price),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getProductAttributes(page, 2)];\n case 4:\n attributes = _a.sent();\n (0, chai_1.expect)(attributes).to.equal('Dimension: 40x60cm');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51bacddb-3c0c-499f-b85e-50caa2987c18", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "click on first product name", + "fullTitle": "FO - Checkout : Show details click on first product name", + "timedOut": false, + "duration": 1014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_clickOnFirstProductName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnFirstProductName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnProductName(page, 1)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation.name).to.equal(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43e2fe9d-10a3-4e90-a5d8-47f3fefd3b5f", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and click on the first product image", + "fullTitle": "FO - Checkout : Show details should close the page and click on the first product image", + "timedOut": false, + "duration": 808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_showDetails_clickOnFirstProductImage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var productInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnFirstProductImage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnProductImage(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 4:\n productInformation = _a.sent();\n (0, chai_1.expect)(productInformation.name).to.equal(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02b2258c-6534-4b8e-a1c4-f3d2c2160220", + "parentUUID": "df639237-7e65-4781-8704-efbe5cbe48f2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1fc98d27-33cd-40e6-88dd-048fe7d6fca1", + "edc2b8b5-3fac-4c8a-adaf-a83d457f45d2", + "1a87ed69-6f47-4277-8f3b-67bd5be2a1f1", + "57d237fd-8953-4099-ac24-0ae9e6543414", + "f502ab3a-f508-4ba9-8671-7100ff00dc13", + "f6adf0a5-0a76-4e8f-a3bc-2f1ced1170d6", + "bc8b4de4-fc5d-4b8d-b5b5-0da10a42527f", + "51bacddb-3c0c-499f-b85e-50caa2987c18", + "43e2fe9d-10a3-4e90-a5d8-47f3fefd3b5f", + "02b2258c-6534-4b8e-a1c4-f3d2c2160220" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7952, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8414f226-6d67-48e2-bbc0-ddc6bb74a122", + "title": "FO - Checkout - Addresses : CRUD address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout - Addresses : CRUD address\"", + "fullTitle": "FO - Checkout - Addresses : CRUD address \"before all\" hook in \"FO - Checkout - Addresses : CRUD address\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98695678-15ec-4ef2-ae87-e84ab54ab768", + "parentUUID": "8414f226-6d67-48e2-bbc0-ddc6bb74a122", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout - Addresses : CRUD address\"", + "fullTitle": "FO - Checkout - Addresses : CRUD address \"after all\" hook in \"FO - Checkout - Addresses : CRUD address\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "954de7ad-5bf7-43ad-9631-4c0a3d97cf9e", + "parentUUID": "8414f226-6d67-48e2-bbc0-ddc6bb74a122", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b1e19c11-2f37-47af-afb0-05f3da649c36", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Checkout - Addresses : CRUD address PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "057b3f1b-e1ad-4afe-833c-90f95bd8080a", + "parentUUID": "b1e19c11-2f37-47af-afb0-05f3da649c36", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Checkout - Addresses : CRUD address PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c503ec92-dbc6-4471-bd3a-b97ed1c79155", + "parentUUID": "b1e19c11-2f37-47af-afb0-05f3da649c36", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Checkout - Addresses : CRUD address PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 1665, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87d3fa4b-42df-460d-b882-e33ac43ccb65", + "parentUUID": "b1e19c11-2f37-47af-afb0-05f3da649c36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Checkout - Addresses : CRUD address PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_preTest_1_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ddb9660-2f4b-42b4-b7a7-245f9ceb5e9c", + "parentUUID": "b1e19c11-2f37-47af-afb0-05f3da649c36", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Checkout - Addresses : CRUD address PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1078, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_preTest_1_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8bdb9c7-4611-4fa0-869e-65b9d1541d2e", + "parentUUID": "b1e19c11-2f37-47af-afb0-05f3da649c36", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Checkout - Addresses : CRUD address PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 1925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_preTest_1_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d81c055-2c2d-4384-a66a-129232341546", + "parentUUID": "b1e19c11-2f37-47af-afb0-05f3da649c36", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "87d3fa4b-42df-460d-b882-e33ac43ccb65", + "4ddb9660-2f4b-42b4-b7a7-245f9ceb5e9c", + "a8bdb9c7-4611-4fa0-869e-65b9d1541d2e", + "6d81c055-2c2d-4384-a66a-129232341546" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6051, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3aae1fb7-4fe6-457e-bf5d-d4f5359c2732", + "title": "Create new address in checkout page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the FO page", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create new address in checkout page should open the FO page", + "timedOut": false, + "duration": 1656, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab4fc8f4-a958-4bce-a5af-1986a813501e", + "parentUUID": "3aae1fb7-4fe6-457e-bf5d-d4f5359c2732", + "isHook": false, + "skipped": false + }, + { + "title": "should go to first product page", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create new address in checkout page should go to first product page", + "timedOut": false, + "duration": 761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7b18f3e-5716-40ae-aa98-88a65c256706", + "parentUUID": "3aae1fb7-4fe6-457e-bf5d-d4f5359c2732", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and go to cart page", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create new address in checkout page should add product to cart and go to cart page", + "timedOut": false, + "duration": 3427, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e622aa46-b678-42ce-b3e4-72a9f4782e70", + "parentUUID": "3aae1fb7-4fe6-457e-bf5d-d4f5359c2732", + "isHook": false, + "skipped": false + }, + { + "title": "should validate shopping cart and go to checkout page", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create new address in checkout page should validate shopping cart and go to checkout page", + "timedOut": false, + "duration": 207, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_goToCheckoutPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCheckoutPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6cb941a-a4c9-40be-a51b-b269a911bcbe", + "parentUUID": "3aae1fb7-4fe6-457e-bf5d-d4f5359c2732", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by created customer", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create new address in checkout page should sign in by created customer", + "timedOut": false, + "duration": 1088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customerData)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d178d7ec-2fa6-4e4d-ab63-a668d0a5a694", + "parentUUID": "3aae1fb7-4fe6-457e-bf5d-d4f5359c2732", + "isHook": false, + "skipped": false + }, + { + "title": "should create address then continue to delivery step", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create new address in checkout page should create address then continue to delivery step", + "timedOut": false, + "duration": 1620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, addressData)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a190c8b-2535-43bb-a548-3eb11a0a6b29", + "parentUUID": "3aae1fb7-4fe6-457e-bf5d-d4f5359c2732", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ab4fc8f4-a958-4bce-a5af-1986a813501e", + "f7b18f3e-5716-40ae-aa98-88a65c256706", + "e622aa46-b678-42ce-b3e4-72a9f4782e70", + "d6cb941a-a4c9-40be-a51b-b269a911bcbe", + "d178d7ec-2fa6-4e4d-ab63-a668d0a5a694", + "4a190c8b-2535-43bb-a548-3eb11a0a6b29" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8759, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "edcfc501-4c64-41cb-97d1-d4c8fd4b58f5", + "title": "Edit created address in checkout page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on edit addresses step", + "fullTitle": "FO - Checkout - Addresses : CRUD address Edit created address in checkout page should click on edit addresses step", + "timedOut": false, + "duration": 1051, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_clickEditAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickEditAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddressesStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfAddresses(page)];\n case 3:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber, 'The addresses number is not equal to 1!').to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6243b692-e3c9-438d-b994-ac3165f73885", + "parentUUID": "edcfc501-4c64-41cb-97d1-d4c8fd4b58f5", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the created address", + "fullTitle": "FO - Checkout - Addresses : CRUD address Edit created address in checkout page should edit the created address", + "timedOut": false, + "duration": 3748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_editCreatedAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editCreatedAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddress(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, editAddressData)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0c1eeec-bbfc-4d9b-94dd-89f11152132a", + "parentUUID": "edcfc501-4c64-41cb-97d1-d4c8fd4b58f5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6243b692-e3c9-438d-b994-ac3165f73885", + "a0c1eeec-bbfc-4d9b-94dd-89f11152132a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4799, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a14aec39-9973-4299-9bb6-9e17ea319cee", + "title": "Create second new address in checkout page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on edit addresses step", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create second new address in checkout page should click on edit addresses step", + "timedOut": false, + "duration": 1054, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_clickEditAddressStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickEditAddressStep2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddressesStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfAddresses(page)];\n case 3:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber, 'The addresses number is not equal to 1!').to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f479ddb9-1895-4417-9b54-e770ff65a555", + "parentUUID": "a14aec39-9973-4299-9bb6-9e17ea319cee", + "isHook": false, + "skipped": false + }, + { + "title": "should add new address", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create second new address in checkout page should add new address", + "timedOut": false, + "duration": 3744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_addNewAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addNewAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnAddNewAddressButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, newAddressData)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "497b9828-6d1e-4d8e-a6ce-a46572251251", + "parentUUID": "a14aec39-9973-4299-9bb6-9e17ea319cee", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f479ddb9-1895-4417-9b54-e770ff65a555", + "497b9828-6d1e-4d8e-a6ce-a46572251251" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4798, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fb0b18c5-f73e-4225-b469-b270a75c9c56", + "title": "Create invoice address in checkout page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on edit addresses step and check the number of addresses", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create invoice address in checkout page should click on edit addresses step and check the number of addresses", + "timedOut": false, + "duration": 1036, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_clickEditAddressStep3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickEditAddressStep3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddressesStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfAddresses(page)];\n case 3:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber, 'The addresses number is not equal to 1!').to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2db023cd-0801-4f2f-b542-9e4df0a6d80a", + "parentUUID": "fb0b18c5-f73e-4225-b469-b270a75c9c56", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Billing address differs from shipping address' link", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create invoice address in checkout page should click on 'Billing address differs from shipping address' link", + "timedOut": false, + "duration": 212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_clickOnBillingAddressDifferent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isInvoiceAddressBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBillingAddressDifferent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnDifferentInvoiceAddressLink(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isInvoiceAddressBlockVisible(page)];\n case 3:\n isInvoiceAddressBlockVisible = _a.sent();\n (0, chai_1.expect)(isInvoiceAddressBlockVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a4022d2-6528-4393-9a40-09836204e5b9", + "parentUUID": "fb0b18c5-f73e-4225-b469-b270a75c9c56", + "isHook": false, + "skipped": false + }, + { + "title": "should create new invoice address", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create invoice address in checkout page should create new invoice address", + "timedOut": false, + "duration": 3733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_createInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnAddNewInvoiceAddressButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setInvoiceAddress(page, newInvoiceAddressData)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9da85c4-0bf6-4b94-a569-4a151fc014b0", + "parentUUID": "fb0b18c5-f73e-4225-b469-b270a75c9c56", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of delivered addresses", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create invoice address in checkout page should check the number of delivered addresses", + "timedOut": false, + "duration": 1039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_checkNumberOfAddresses1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfAddresses1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddressesStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfAddresses(page)];\n case 3:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber, 'The addresses number is not equal to 3!').to.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "666477a2-f56a-4946-8d75-c11a5192a990", + "parentUUID": "fb0b18c5-f73e-4225-b469-b270a75c9c56", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of invoice addresses", + "fullTitle": "FO - Checkout - Addresses : CRUD address Create invoice address in checkout page should check the number of invoice addresses", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_checkNumberOfAddresses2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfAddresses2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfInvoiceAddresses(page)];\n case 2:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber).to.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2aa846a5-621c-4431-bb9e-f36a546b462a", + "parentUUID": "fb0b18c5-f73e-4225-b469-b270a75c9c56", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2db023cd-0801-4f2f-b542-9e4df0a6d80a", + "1a4022d2-6528-4393-9a40-09836204e5b9", + "f9da85c4-0bf6-4b94-a569-4a151fc014b0", + "666477a2-f56a-4946-8d75-c11a5192a990", + "2aa846a5-621c-4431-bb9e-f36a546b462a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6026, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bb0a8543-49d3-41b5-8505-3bcb115ec4e3", + "title": "Delete address in checkout page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the first address", + "fullTitle": "FO - Checkout - Addresses : CRUD address Delete address in checkout page should delete the first address", + "timedOut": false, + "duration": 271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_deleteFirstAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteFirstAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.deleteAddress(page, 3)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(checkout_1.default.deleteAddressSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d932d13e-1fc6-4ba8-be9a-40d99c1dad5f", + "parentUUID": "bb0a8543-49d3-41b5-8505-3bcb115ec4e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of delivered addresses", + "fullTitle": "FO - Checkout - Addresses : CRUD address Delete address in checkout page should check the number of delivered addresses", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_checkNumberOfAddresses3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfAddresses3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddressesStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfAddresses(page)];\n case 3:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber, 'The addresses number is not equal to 2!').to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "425f29a1-9dba-44a7-b99f-63477980ff27", + "parentUUID": "bb0a8543-49d3-41b5-8505-3bcb115ec4e3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of invoice addresses", + "fullTitle": "FO - Checkout - Addresses : CRUD address Delete address in checkout page should check the number of invoice addresses", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_checkNumberOfAddresses4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfAddresses4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfInvoiceAddresses(page)];\n case 2:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "644cc09c-902b-4bcd-aa4d-c665d3f8a88a", + "parentUUID": "bb0a8543-49d3-41b5-8505-3bcb115ec4e3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d932d13e-1fc6-4ba8-be9a-40d99c1dad5f", + "425f29a1-9dba-44a7-b99f-63477980ff27", + "644cc09c-902b-4bcd-aa4d-c665d3f8a88a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 289, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "364aba83-7273-4cbd-b5ab-b4d4742e91de", + "title": "Choose the invoice address different than shipping address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should choose the invoice address different than shipping address", + "fullTitle": "FO - Checkout - Addresses : CRUD address Choose the invoice address different than shipping address should choose the invoice address different than shipping address", + "timedOut": false, + "duration": 360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_invoiceAddressDiffShippingAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'invoiceAddressDiffShippingAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.selectDeliveryAddress(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.selectInvoiceAddress(page, 2)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnContinueButtonFromAddressStep(page)];\n case 4:\n isStepCompleted = _a.sent();\n (0, chai_1.expect)(isStepCompleted).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e114a3f-c4ae-4851-a7ff-66a533472f45", + "parentUUID": "364aba83-7273-4cbd-b5ab-b4d4742e91de", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of delivered addresses", + "fullTitle": "FO - Checkout - Addresses : CRUD address Choose the invoice address different than shipping address should check the number of delivered addresses", + "timedOut": false, + "duration": 1042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_checkNumberOfAddresses5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfAddresses5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddressesStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfAddresses(page)];\n case 3:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber, 'The addresses number is not equal to 2!').to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b042adc-d29b-4b02-b1d4-a0634b226b90", + "parentUUID": "364aba83-7273-4cbd-b5ab-b4d4742e91de", + "isHook": false, + "skipped": false + }, + { + "title": "should check the number of invoice addresses", + "fullTitle": "FO - Checkout - Addresses : CRUD address Choose the invoice address different than shipping address should check the number of invoice addresses", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_checkNumberOfAddresses6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfAddresses6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfInvoiceAddresses(page)];\n case 2:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber).to.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b772bee-5cb3-4147-87a1-19077f245134", + "parentUUID": "364aba83-7273-4cbd-b5ab-b4d4742e91de", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1e114a3f-c4ae-4851-a7ff-66a533472f45", + "4b042adc-d29b-4b02-b1d4-a0634b226b90", + "8b772bee-5cb3-4147-87a1-19077f245134" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1408, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6e030089-60b4-4ee6-8e51-d9346502d013", + "title": "Choose same address for invoice address and shipping address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should choose the same address for invoice address and shipping address", + "fullTitle": "FO - Checkout - Addresses : CRUD address Choose same address for invoice address and shipping address should choose the same address for invoice address and shipping address", + "timedOut": false, + "duration": 342, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_sameInvoiceDeliveryAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sameInvoiceDeliveryAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.selectDeliveryAddress(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.selectInvoiceAddress(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnContinueButtonFromAddressStep(page)];\n case 4:\n isStepCompleted = _a.sent();\n (0, chai_1.expect)(isStepCompleted).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25ee668b-a6dc-4505-ab95-50349796e426", + "parentUUID": "6e030089-60b4-4ee6-8e51-d9346502d013", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit address step and check that there is no invoice address", + "fullTitle": "FO - Checkout - Addresses : CRUD address Choose same address for invoice address and shipping address should click on edit address step and check that there is no invoice address", + "timedOut": false, + "duration": 4042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_checkNoInvoiceAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isInvoiceAddressBlockVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoInvoiceAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddressesStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isInvoiceAddressBlockVisible(page)];\n case 3:\n isInvoiceAddressBlockVisible = _a.sent();\n (0, chai_1.expect)(isInvoiceAddressBlockVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ffc7028-a137-4f74-979e-7353a5742af0", + "parentUUID": "6e030089-60b4-4ee6-8e51-d9346502d013", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "25ee668b-a6dc-4505-ab95-50349796e426", + "7ffc7028-a137-4f74-979e-7353a5742af0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4384, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "98125cc7-1763-4c7c-ac06-8fa901f51ed3", + "title": "Delete all addresses", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete the 2 addresses", + "fullTitle": "FO - Checkout - Addresses : CRUD address Delete all addresses should delete the 2 addresses", + "timedOut": false, + "duration": 548, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_deleteTwoAddresses\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteTwoAddresses', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.deleteAddress(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(checkout_1.default.deleteAddressSuccessMessage);\n return [4 /*yield*/, checkout_1.default.deleteAddress(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(checkout_1.default.deleteAddressSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe40d8bd-18a8-4bd1-9755-2f75587454f0", + "parentUUID": "98125cc7-1763-4c7c-ac06-8fa901f51ed3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the form for create address is visible", + "fullTitle": "FO - Checkout - Addresses : CRUD address Delete all addresses should check that the form for create address is visible", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_checkCreateAddressForm\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isFormVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCreateAddressForm', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isAddressFormVisible(page)];\n case 2:\n isFormVisible = _a.sent();\n (0, chai_1.expect)(isFormVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fbe4aac-5bf2-4301-a10f-758b40d9ac31", + "parentUUID": "98125cc7-1763-4c7c-ac06-8fa901f51ed3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fe40d8bd-18a8-4bd1-9755-2f75587454f0", + "2fbe4aac-5bf2-4301-a10f-758b40d9ac31" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 553, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d0922472-fc9d-4869-8355-0631011ad973", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/01_CRUDAddress.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Checkout - Addresses : CRUD address POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48de9bd5-b83a-473b-bd81-1c5654b64786", + "parentUUID": "d0922472-fc9d-4869-8355-0631011ad973", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Checkout - Addresses : CRUD address POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1665289c-0e68-4b15-a93d-86f55c8f0142", + "parentUUID": "d0922472-fc9d-4869-8355-0631011ad973", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Addresses : CRUD address POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "290ad893-6a94-4264-8797-55045ecea0b0", + "parentUUID": "d0922472-fc9d-4869-8355-0631011ad973", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Checkout - Addresses : CRUD address POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5014, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_postTest_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fccf99c-bc6f-48d1-a862-fba5d4dca143", + "parentUUID": "d0922472-fc9d-4869-8355-0631011ad973", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Checkout - Addresses : CRUD address POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_postTest_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1283ee12-e326-4456-bccc-34179b699de9", + "parentUUID": "d0922472-fc9d-4869-8355-0631011ad973", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Checkout - Addresses : CRUD address POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1114, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_postTest_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "434ff462-c77e-4a76-95c3-3660aa2b6ba1", + "parentUUID": "d0922472-fc9d-4869-8355-0631011ad973", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Checkout - Addresses : CRUD address POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1575, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_postTest_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "165feb5e-d3b0-4ede-8d90-f2a8269ee86d", + "parentUUID": "d0922472-fc9d-4869-8355-0631011ad973", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Checkout - Addresses : CRUD address POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 365, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_CRUDAddress_postTest_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14e72586-09c7-4668-a2a2-32853e61c49a", + "parentUUID": "d0922472-fc9d-4869-8355-0631011ad973", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "290ad893-6a94-4264-8797-55045ecea0b0", + "4fccf99c-bc6f-48d1-a862-fba5d4dca143", + "1283ee12-e326-4456-bccc-34179b699de9", + "434ff462-c77e-4a76-95c3-3660aa2b6ba1", + "165feb5e-d3b0-4ede-8d90-f2a8269ee86d", + "14e72586-09c7-4668-a2a2-32853e61c49a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11761, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "52c528c3-74a0-4557-8d36-b8ed799d504a", + "title": "FO - Guest checkout: Use different invoice address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/02_useDifferentAddressForInvoice.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/02_useDifferentAddressForInvoice.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Guest checkout: Use different invoice address\"", + "fullTitle": "FO - Guest checkout: Use different invoice address \"before all\" hook in \"FO - Guest checkout: Use different invoice address\"", + "timedOut": false, + "duration": 50, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df3ac16e-bb04-4ce8-9e79-a98f700f0a31", + "parentUUID": "52c528c3-74a0-4557-8d36-b8ed799d504a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Guest checkout: Use different invoice address\"", + "fullTitle": "FO - Guest checkout: Use different invoice address \"after all\" hook in \"FO - Guest checkout: Use different invoice address\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "52b46876-1158-4ad0-a8c0-4f6458ca1c5b", + "parentUUID": "52c528c3-74a0-4557-8d36-b8ed799d504a", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "e70eba26-465f-4aeb-a755-1c57d3d28dd9", + "title": "Make an order with 2 different addresses for delivery and invoice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/02_useDifferentAddressForInvoice.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/02_useDifferentAddressForInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Guest checkout: Use different invoice address Make an order with 2 different addresses for delivery and invoice should go to FO", + "timedOut": false, + "duration": 1667, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n // Go to FO\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO\n _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7188aa26-afbd-4389-a299-971b3f6be023", + "parentUUID": "e70eba26-465f-4aeb-a755-1c57d3d28dd9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to fourth product page", + "fullTitle": "FO - Guest checkout: Use different invoice address Make an order with 2 different addresses for delivery and invoice should go to fourth product page", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 4)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_5.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d8e809d-5ad9-433c-ad7b-075b809e9929", + "parentUUID": "e70eba26-465f-4aeb-a755-1c57d3d28dd9", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and go to cart page", + "fullTitle": "FO - Guest checkout: Use different invoice address Make an order with 2 different addresses for delivery and invoice should add product to cart and go to cart page", + "timedOut": false, + "duration": 3441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa2a09ba-ee80-4946-80f0-e6a354bcd09d", + "parentUUID": "e70eba26-465f-4aeb-a755-1c57d3d28dd9", + "isHook": false, + "skipped": false + }, + { + "title": "should validate shopping cart and go to checkout page", + "fullTitle": "FO - Guest checkout: Use different invoice address Make an order with 2 different addresses for delivery and invoice should validate shopping cart and go to checkout page", + "timedOut": false, + "duration": 215, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_goToCheckoutPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCheckoutPage', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94b9b38b-0313-47a9-ae8f-79bedc1d016a", + "parentUUID": "e70eba26-465f-4aeb-a755-1c57d3d28dd9", + "isHook": false, + "skipped": false + }, + { + "title": "should fill customer information", + "fullTitle": "FO - Guest checkout: Use different invoice address Make an order with 2 different addresses for delivery and invoice should fill customer information", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_fillCustomerInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillCustomerInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, guestData)];\n case 2:\n isStepCompleted = _a.sent();\n (0, chai_1.expect)(isStepCompleted).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0a2513a-3f28-4df0-9c41-2b064ec8dbcd", + "parentUUID": "e70eba26-465f-4aeb-a755-1c57d3d28dd9", + "isHook": false, + "skipped": false + }, + { + "title": "should fill different delivery and invoice addresses", + "fullTitle": "FO - Guest checkout: Use different invoice address Make an order with 2 different addresses for delivery and invoice should fill different delivery and invoice addresses", + "timedOut": false, + "duration": 3128, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_fillCustomerAddresses\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillCustomerAddresses', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, deliveryAddress, invoiceAddress)];\n case 2:\n isStepCompleted = _a.sent();\n (0, chai_1.expect)(isStepCompleted).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64289099-a235-486d-880c-fb1e15558db8", + "parentUUID": "e70eba26-465f-4aeb-a755-1c57d3d28dd9", + "isHook": false, + "skipped": false + }, + { + "title": "should complete the order", + "fullTitle": "FO - Guest checkout: Use different invoice address Make an order with 2 different addresses for delivery and invoice should complete the order", + "timedOut": false, + "duration": 2355, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_completeTheOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'completeTheOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 3:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18b18eab-4ff0-4bf3-b75a-a30f3accdda8", + "parentUUID": "e70eba26-465f-4aeb-a755-1c57d3d28dd9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7188aa26-afbd-4389-a299-971b3f6be023", + "5d8e809d-5ad9-433c-ad7b-075b809e9929", + "aa2a09ba-ee80-4946-80f0-e6a354bcd09d", + "94b9b38b-0313-47a9-ae8f-79bedc1d016a", + "a0a2513a-3f28-4df0-9c41-2b064ec8dbcd", + "64289099-a235-486d-880c-fb1e15558db8", + "18b18eab-4ff0-4bf3-b75a-a30f3accdda8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12454, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ef6a9207-78c5-4a0a-83b6-d1c02d07e0c5", + "title": "Go to BO and check that invoice address is different from delivery address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/02_addresses/02_useDifferentAddressForInvoice.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/02_addresses/02_useDifferentAddressForInvoice.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Guest checkout: Use different invoice address Go to BO and check that invoice address is different from delivery address should login in BO", + "timedOut": false, + "duration": 1675, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a1cbedf-99fa-426f-9117-f773a8b48271", + "parentUUID": "ef6a9207-78c5-4a0a-83b6-d1c02d07e0c5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the orders page", + "fullTitle": "FO - Guest checkout: Use different invoice address Go to BO and check that invoice address is different from delivery address should go to the orders page", + "timedOut": false, + "duration": 5020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84e9d8e1-9bd0-4fb6-8cac-ebe4ae4cd204", + "parentUUID": "ef6a9207-78c5-4a0a-83b6-d1c02d07e0c5", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Guest checkout: Use different invoice address Go to BO and check that invoice address is different from delivery address should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13e0297a-7543-4449-920b-9ddf917cebf2", + "parentUUID": "ef6a9207-78c5-4a0a-83b6-d1c02d07e0c5", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'Customer: Botsford'", + "fullTitle": "FO - Guest checkout: Use different invoice address Go to BO and check that invoice address is different from delivery address should filter the Orders table by 'Customer: Botsford'", + "timedOut": false, + "duration": 4400, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_filterTable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterTable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'customer', guestData.lastName)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'customer', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(guestData.lastName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79cbab85-98b2-412b-aeab-5010c19693f1", + "parentUUID": "ef6a9207-78c5-4a0a-83b6-d1c02d07e0c5", + "isHook": false, + "skipped": false + }, + { + "title": "should view the order", + "fullTitle": "FO - Guest checkout: Use different invoice address Go to BO and check that invoice address is different from delivery address should view the order", + "timedOut": false, + "duration": 1065, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_orderPageCustomerBlock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'orderPageCustomerBlock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f01600e-0d2c-4dbf-90fb-83f6125308a0", + "parentUUID": "ef6a9207-78c5-4a0a-83b6-d1c02d07e0c5", + "isHook": false, + "skipped": false + }, + { + "title": "should check that invoice and delivery addresses are different", + "fullTitle": "FO - Guest checkout: Use different invoice address Go to BO and check that invoice address is different from delivery address should check that invoice and delivery addresses are different", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_addresses_useDifferentAddressForInvoice_checkAddressesInViewOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var finalDeliveryAddress, finalInvoiceAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressesInViewOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getShippingAddress(page)];\n case 2:\n finalDeliveryAddress = _a.sent();\n return [4 /*yield*/, customerBlock_1.default.getInvoiceAddress(page)];\n case 3:\n finalInvoiceAddress = _a.sent();\n (0, chai_1.expect)(finalDeliveryAddress.replace('Shipping', ''), 'Invoice and delivery addresses shouldn\\'t be the same')\n .to.not.equal(finalInvoiceAddress.replace('Invoice', ''));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66be4ea1-443d-4c25-b685-864978fc4d92", + "parentUUID": "ef6a9207-78c5-4a0a-83b6-d1c02d07e0c5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2a1cbedf-99fa-426f-9117-f773a8b48271", + "84e9d8e1-9bd0-4fb6-8cac-ebe4ae4cd204", + "13e0297a-7543-4449-920b-9ddf917cebf2", + "79cbab85-98b2-412b-aeab-5010c19693f1", + "3f01600e-0d2c-4dbf-90fb-83f6125308a0", + "66be4ea1-443d-4c25-b685-864978fc4d92" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14199, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "title": "FO - Checkout - Shipping methods : Add order message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/01_addOrderMessage.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/01_addOrderMessage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout - Shipping methods : Add order message\"", + "fullTitle": "FO - Checkout - Shipping methods : Add order message \"before all\" hook in \"FO - Checkout - Shipping methods : Add order message\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32554a7c-32be-49f8-9a9c-0df385e79622", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout - Shipping methods : Add order message\"", + "fullTitle": "FO - Checkout - Shipping methods : Add order message \"after all\" hook in \"FO - Checkout - Shipping methods : Add order message\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "51df23f7-d5e9-4bf7-af19-0a4d5fff72eb", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should go to FO", + "timedOut": false, + "duration": 1676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n // Go to FO\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO\n _a.sent();\n // Change FO language\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n // Change FO language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d740621-3a1d-41e1-86be-fa17e9f55b0b", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should go to login page", + "timedOut": false, + "duration": 676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a78a63d-1eb0-4147-98d1-a206a6c88d7d", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should sign in with customer credentials", + "timedOut": false, + "duration": 589, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb78a719-45a2-4029-a19b-a1eb4f2963e5", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should add product to cart", + "timedOut": false, + "duration": 7230, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "387db6c6-08ee-4476-8943-35fb92ec8a84", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should go to delivery step", + "timedOut": false, + "duration": 1027, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d603f2c-bffd-40af-b2ba-1a2ad2b96249", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should select 'My carrier' and add a message", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should select 'My carrier' and add a message", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_sendMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPaymentStepDisplayed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethodAndAddComment(page, carriers_1.default.myCarrier.id, message)];\n case 2:\n isPaymentStepDisplayed = _a.sent();\n (0, chai_1.expect)(isPaymentStepDisplayed, 'Payment Step is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb1cfb2d-873f-4d0a-b4aa-cc34c85a6f27", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should click on edit 'Shipping methods' step and check the order message", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should click on edit 'Shipping methods' step and check the order message", + "timedOut": false, + "duration": 1045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_clickOnEditShippingStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnEditShippingStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditShippingMethodStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getOrderMessage(page)];\n case 3:\n orderMessage = _a.sent();\n (0, chai_1.expect)(orderMessage).to.equal(message);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f629f7ec-1fdf-4981-a0c6-e465d258e7c9", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should choose the other carrier 'Click and collect' and edit the order message", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should choose the other carrier 'Click and collect' and edit the order message", + "timedOut": false, + "duration": 1139, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_chooseAnotherCarrier\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isPaymentStep;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseAnotherCarrier', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethodWithoutValidation(page, carriers_1.default.default.id, editMessage)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 3:\n isPaymentStep = _a.sent();\n (0, chai_1.expect)(isPaymentStep).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3cc6006a-f3b0-4607-b909-7626b1c36d55", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should choose a payment method and validate the order", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should choose a payment method and validate the order", + "timedOut": false, + "duration": 1527, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_choosePaymentMethod\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'choosePaymentMethod', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ad208ac-d2de-4c69-90a5-d3cab65408df", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to order history and details page", + "fullTitle": "FO - Checkout - Shipping methods : Add order message should go to order history and details page", + "timedOut": false, + "duration": 1404, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74773976-7cfc-40ac-bf64-cb6cac493a49", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + }, + { + "title": "Go to order details abd check the messages box", + "fullTitle": "FO - Checkout - Shipping methods : Add order message Go to order details abd check the messages box", + "timedOut": false, + "duration": 768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_addOrderMessage_goToFoToOrderDetailsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFoToOrderDetailsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.getBoxMessages(page)];\n case 3:\n orderMessage = _a.sent();\n (0, chai_1.expect)(orderMessage).to.contain(editMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8aaab4b5-581b-47c0-acf8-3cfb6d37b3d4", + "parentUUID": "0c6f2857-58db-4ee0-8bca-c773b8224bf1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3d740621-3a1d-41e1-86be-fa17e9f55b0b", + "2a78a63d-1eb0-4147-98d1-a206a6c88d7d", + "eb78a719-45a2-4029-a19b-a1eb4f2963e5", + "387db6c6-08ee-4476-8943-35fb92ec8a84", + "1d603f2c-bffd-40af-b2ba-1a2ad2b96249", + "fb1cfb2d-873f-4d0a-b4aa-cc34c85a6f27", + "f629f7ec-1fdf-4981-a0c6-e465d258e7c9", + "3cc6006a-f3b0-4607-b909-7626b1c36d55", + "2ad208ac-d2de-4c69-90a5-d3cab65408df", + "74773976-7cfc-40ac-bf64-cb6cac493a49", + "8aaab4b5-581b-47c0-acf8-3cfb6d37b3d4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 17962, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bd69bfce-ee47-4477-bdd7-8942b0e5db05", + "title": "FO - Checkout - Shipping methods : Select carrier", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout - Shipping methods : Select carrier\"", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier \"before all\" hook in \"FO - Checkout - Shipping methods : Select carrier\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "617cf8ce-d2b4-43b6-9050-1ce144c09c99", + "parentUUID": "bd69bfce-ee47-4477-bdd7-8942b0e5db05", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout - Shipping methods : Select carrier\"", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier \"after all\" hook in \"FO - Checkout - Shipping methods : Select carrier\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0d15895a-64e0-4fcc-b662-06c017db0787", + "parentUUID": "bd69bfce-ee47-4477-bdd7-8942b0e5db05", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "e6a7a0a9-dd4b-4bbe-b6c3-015e0b223022", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62d95105-e4f2-44a5-a9c5-195115f203db", + "parentUUID": "e6a7a0a9-dd4b-4bbe-b6c3-015e0b223022", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "194e05ee-94ea-46bc-b5af-8f8cc4aacf4d", + "parentUUID": "e6a7a0a9-dd4b-4bbe-b6c3-015e0b223022", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 1655, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35e05fac-87bb-4718-93b9-e4c65be9318a", + "parentUUID": "e6a7a0a9-dd4b-4bbe-b6c3-015e0b223022", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_preTest_1_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab73eff1-72c6-4a97-a843-4482fc077500", + "parentUUID": "e6a7a0a9-dd4b-4bbe-b6c3-015e0b223022", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1081, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_preTest_1_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a1431c8-3dec-480d-9d01-5755735dd7f5", + "parentUUID": "e6a7a0a9-dd4b-4bbe-b6c3-015e0b223022", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 1958, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_preTest_1_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13db5f4c-dd38-4543-8ceb-4eb31c149b92", + "parentUUID": "e6a7a0a9-dd4b-4bbe-b6c3-015e0b223022", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "35e05fac-87bb-4718-93b9-e4c65be9318a", + "ab73eff1-72c6-4a97-a843-4482fc077500", + "1a1431c8-3dec-480d-9d01-5755735dd7f5", + "13db5f4c-dd38-4543-8ceb-4eb31c149b92" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6081, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "803ebc6c-1274-480c-b7f9-5a37c966b75d", + "title": "Add a product to the cart and checkout", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Add a product to the cart and checkout should go to FO", + "timedOut": false, + "duration": 1683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad6fedb1-897d-416b-88e0-7415a3a952b3", + "parentUUID": "803ebc6c-1274-480c-b7f9-5a37c966b75d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to first product page", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Add a product to the cart and checkout should go to first product page", + "timedOut": false, + "duration": 767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ede52dc-0b1a-4773-9486-367af7a7afc1", + "parentUUID": "803ebc6c-1274-480c-b7f9-5a37c966b75d", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and go to cart page", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Add a product to the cart and checkout should add product to cart and go to cart page", + "timedOut": false, + "duration": 3422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6a7ba27-3e9a-41f7-ad39-165e292b4f60", + "parentUUID": "803ebc6c-1274-480c-b7f9-5a37c966b75d", + "isHook": false, + "skipped": false + }, + { + "title": "should validate shopping cart and go to checkout page", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Add a product to the cart and checkout should validate shopping cart and go to checkout page", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_goToCheckoutPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCheckoutPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a822c104-a4a1-45b1-942f-68d92cbdc346", + "parentUUID": "803ebc6c-1274-480c-b7f9-5a37c966b75d", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by created customer", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Add a product to the cart and checkout should sign in by created customer", + "timedOut": false, + "duration": 1090, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customerData)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "103632eb-a860-4d89-82d1-10181920890f", + "parentUUID": "803ebc6c-1274-480c-b7f9-5a37c966b75d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ad6fedb1-897d-416b-88e0-7415a3a952b3", + "1ede52dc-0b1a-4773-9486-367af7a7afc1", + "a6a7ba27-3e9a-41f7-ad39-165e292b4f60", + "a822c104-a4a1-45b1-942f-68d92cbdc346", + "103632eb-a860-4d89-82d1-10181920890f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7191, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ccd57650-c80c-4fce-aa3d-bcbfbe22ddde", + "title": "Select carrier in Europe address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should create address in Europe then continue to shipping methods", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in Europe address should create address in Europe then continue to shipping methods", + "timedOut": false, + "duration": 1619, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_createAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, addressData)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84fcc331-c9e7-422c-b98d-658b04713f67", + "parentUUID": "ccd57650-c80c-4fce-aa3d-bcbfbe22ddde", + "isHook": false, + "skipped": false + }, + { + "title": "should check the carriers list", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in Europe address should check the carriers list", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_checkCarriersList\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarriersList', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getAllCarriersNames(page)];\n case 2:\n carriers = _a.sent();\n (0, chai_1.expect)(carriers).to.deep.equal([carriers_1.default.default.name, carriers_1.default.myCarrier.name]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "839a7323-ded5-440f-bab7-5b359a493cb0", + "parentUUID": "ccd57650-c80c-4fce-aa3d-bcbfbe22ddde", + "isHook": false, + "skipped": false + }, + { + "title": "should check the first carrier data", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in Europe address should check the first carrier data", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_checkFirstCarrierData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carrierData;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstCarrierData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getCarrierData(page, 1)];\n case 2:\n carrierData = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(carrierData.name).to.equal(carriers_1.default.default.name),\n (0, chai_1.expect)(carrierData.delay).to.equal(carriers_1.default.default.delay),\n (0, chai_1.expect)(carrierData.priceText).to.equal('Free'),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "83a7a5db-5b13-447f-9150-fe2454975239", + "parentUUID": "ccd57650-c80c-4fce-aa3d-bcbfbe22ddde", + "isHook": false, + "skipped": false + }, + { + "title": "should check the second carrier data", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in Europe address should check the second carrier data", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_checkSecondCarrierData\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carrierData;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSecondCarrierData', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getCarrierData(page, 2)];\n case 2:\n carrierData = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(carrierData.name).to.equal(carriers_1.default.myCarrier.name),\n (0, chai_1.expect)(carrierData.delay).to.equal(carriers_1.default.myCarrier.delay),\n (0, chai_1.expect)(carrierData.priceText).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.priceTTC.toFixed(2), \" tax incl.\")),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fa486e8-4f68-4ec3-a8e1-71b72378e50f", + "parentUUID": "ccd57650-c80c-4fce-aa3d-bcbfbe22ddde", + "isHook": false, + "skipped": false + }, + { + "title": "should select the first carrier and check the shipping price", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in Europe address should select the first carrier and check the shipping price", + "timedOut": false, + "duration": 2045, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_checkShippingPrice1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingCost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingPrice1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethod(page, carriers_1.default.default.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getShippingCost(page)];\n case 3:\n shippingCost = _a.sent();\n (0, chai_1.expect)(shippingCost).to.equal('Free');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb704cd5-5e30-4a75-864b-e50d933d47de", + "parentUUID": "ccd57650-c80c-4fce-aa3d-bcbfbe22ddde", + "isHook": false, + "skipped": false + }, + { + "title": "should select the second carrier and check the shipping price", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in Europe address should select the second carrier and check the shipping price", + "timedOut": false, + "duration": 2053, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_checkShippingPrice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingCost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingPrice2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.chooseShippingMethod(page, carriers_1.default.myCarrier.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getShippingCost(page)];\n case 3:\n shippingCost = _a.sent();\n (0, chai_1.expect)(shippingCost).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.priceTTC.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6513241-3ab6-4f46-9b4f-9edb2bc15d68", + "parentUUID": "ccd57650-c80c-4fce-aa3d-bcbfbe22ddde", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "84fcc331-c9e7-422c-b98d-658b04713f67", + "839a7323-ded5-440f-bab7-5b359a493cb0", + "83a7a5db-5b13-447f-9150-fe2454975239", + "4fa486e8-4f68-4ec3-a8e1-71b72378e50f", + "fb704cd5-5e30-4a75-864b-e50d933d47de", + "a6513241-3ab6-4f46-9b4f-9edb2bc15d68" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5766, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2670608e-7885-4cb5-930b-d00b9fed32bf", + "title": "Select carrier in US address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on edit addresses step", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in US address should click on edit addresses step", + "timedOut": false, + "duration": 1043, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_clickEditAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var addressesNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickEditAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddressesStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNumberOfAddresses(page)];\n case 3:\n addressesNumber = _a.sent();\n (0, chai_1.expect)(addressesNumber, 'The addresses number is not equal to 1!').to.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ddb67c4-c110-4612-8d19-7ed3e12c777a", + "parentUUID": "2670608e-7885-4cb5-930b-d00b9fed32bf", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the created address", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in US address should edit the created address", + "timedOut": false, + "duration": 4048, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_editCreatedAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editCreatedAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnEditAddress(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, addressDataInUnitedStates)];\n case 3:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnContinueButtonFromAddressStep(page)];\n case 4:\n isStepCompleted = _a.sent();\n (0, chai_1.expect)(isStepCompleted).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a62b6b60-9bc7-4b64-a3ab-6821fe378713", + "parentUUID": "2670608e-7885-4cb5-930b-d00b9fed32bf", + "isHook": false, + "skipped": false + }, + { + "title": "should check the carriers list", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in US address should check the carriers list", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_checkCarriersList2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carriers;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCarriersList2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getAllCarriersNames(page)];\n case 2:\n carriers = _a.sent();\n (0, chai_1.expect)(carriers).to.deep.equal([carriers_1.default.myCarrier.name]);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f054084-1c79-45a2-97aa-c8b091dddddf", + "parentUUID": "2670608e-7885-4cb5-930b-d00b9fed32bf", + "isHook": false, + "skipped": false + }, + { + "title": "should check the carrier data", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in US address should check the carrier data", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_checkFirstCarrierData2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var carrierData;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkFirstCarrierData2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getCarrierData(page, 2)];\n case 2:\n carrierData = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(carrierData.name).to.equal(carriers_1.default.myCarrier.name),\n (0, chai_1.expect)(carrierData.delay).to.equal(carriers_1.default.myCarrier.delay),\n (0, chai_1.expect)(carrierData.priceText).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.price.toFixed(2))),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa727d80-f616-4983-94a0-79769e9fdee2", + "parentUUID": "2670608e-7885-4cb5-930b-d00b9fed32bf", + "isHook": false, + "skipped": false + }, + { + "title": "should check the shipping price", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier Select carrier in US address should check the shipping price", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_checkShippingPrice3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shippingCost;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShippingPrice3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getShippingCost(page)];\n case 2:\n shippingCost = _a.sent();\n (0, chai_1.expect)(shippingCost).to.equal(\"\\u20AC\".concat(carriers_1.default.myCarrier.price.toFixed(2)));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48580c9f-dea2-4856-918b-1895ca97c85b", + "parentUUID": "2670608e-7885-4cb5-930b-d00b9fed32bf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4ddb67c4-c110-4612-8d19-7ed3e12c777a", + "a62b6b60-9bc7-4b64-a3ab-6821fe378713", + "5f054084-1c79-45a2-97aa-c8b091dddddf", + "aa727d80-f616-4983-94a0-79769e9fdee2", + "48580c9f-dea2-4856-918b-1895ca97c85b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7128, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/03_shippingMethods/02_selectCarrier.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2883cc46-dd6d-4826-8702-1fbddaf2a75b", + "parentUUID": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "720df025-d5fb-4713-982a-98fe2138997c", + "parentUUID": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a289e565-a5a5-4588-9449-a0bcc6545d04", + "parentUUID": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5036, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_postTest_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4682be43-ba32-495e-8193-9bf10edcd242", + "parentUUID": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_postTest_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b52d9c77-c763-498a-b559-be4ee45718d8", + "parentUUID": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1138, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_postTest_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16b7d002-b013-422d-9d30-d80e246b3a13", + "parentUUID": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1635, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_postTest_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f32ebdea-aa7f-4270-9b1d-849ae2f52acd", + "parentUUID": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Checkout - Shipping methods : Select carrier POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 385, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_shippingMethods_selectCarrier_postTest_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50b00a28-6dd7-441c-aac6-2d7d963bd3eb", + "parentUUID": "a1e04720-8634-43c3-9875-b1ca52dde2c9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a289e565-a5a5-4588-9449-a0bcc6545d04", + "4682be43-ba32-495e-8193-9bf10edcd242", + "b52d9c77-c763-498a-b559-be4ee45718d8", + "16b7d002-b013-422d-9d30-d80e246b3a13", + "f32ebdea-aa7f-4270-9b1d-849ae2f52acd", + "50b00a28-6dd7-441c-aac6-2d7d963bd3eb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11980, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7d464507-3ac4-4ebc-98af-49c8482a6f65", + "title": "FO - Checkout - Payment : Choose a payment method", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/04_payment/01_choosePaymentMethod.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/04_payment/01_choosePaymentMethod.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Checkout - Payment : Choose a payment method\"", + "fullTitle": "FO - Checkout - Payment : Choose a payment method \"before all\" hook in \"FO - Checkout - Payment : Choose a payment method\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3620021f-a1ef-4676-9b5f-19e2bbba55fd", + "parentUUID": "7d464507-3ac4-4ebc-98af-49c8482a6f65", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Checkout - Payment : Choose a payment method\"", + "fullTitle": "FO - Checkout - Payment : Choose a payment method \"after all\" hook in \"FO - Checkout - Payment : Choose a payment method\"", + "timedOut": false, + "duration": 21, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f1ab79d6-5535-43eb-8524-a0652c964a5f", + "parentUUID": "7d464507-3ac4-4ebc-98af-49c8482a6f65", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "23ff7326-5119-4085-b150-e82b1fe790e1", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/04_payment/01_choosePaymentMethod.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/04_payment/01_choosePaymentMethod.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Checkout - Payment : Choose a payment method PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b2186e9-6d89-4bab-aa4d-8540b47ad493", + "parentUUID": "23ff7326-5119-4085-b150-e82b1fe790e1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Checkout - Payment : Choose a payment method PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1528cea9-dec3-4e05-84d7-9f568737d9f3", + "parentUUID": "23ff7326-5119-4085-b150-e82b1fe790e1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Payment : Choose a payment method PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08587714-27ac-4fda-b951-345048332a04", + "parentUUID": "23ff7326-5119-4085-b150-e82b1fe790e1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Checkout - Payment : Choose a payment method PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_preTest_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b67ce965-52d6-422a-96e0-931df53fdab6", + "parentUUID": "23ff7326-5119-4085-b150-e82b1fe790e1", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "FO - Checkout - Payment : Choose a payment method PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 582, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_preTest_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13f54736-aec6-472b-914a-eebdf098620b", + "parentUUID": "23ff7326-5119-4085-b150-e82b1fe790e1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "08587714-27ac-4fda-b951-345048332a04", + "b67ce965-52d6-422a-96e0-931df53fdab6", + "13f54736-aec6-472b-914a-eebdf098620b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7250, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "title": "Choose a payment method", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/04_payment/01_choosePaymentMethod.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/04_payment/01_choosePaymentMethod.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to FO", + "timedOut": false, + "duration": 1671, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToFo0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18e7675c-7f60-426d-b6eb-bd052d867e93", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should add the first product to cart", + "timedOut": false, + "duration": 2050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_addProductToCart0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b2fadaa-68e0-4f03-bd62-366ffad66e62", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to checkout page", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should proceed to checkout and go to checkout page", + "timedOut": false, + "duration": 213, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_proceedToCheckout0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da9079cb-3d9c-4f1c-9a21-7e71188c2b02", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should signin", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should signin", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_signin0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"signin\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.clickOnSignIn(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "547c3986-0d45-49c3-931b-d899aaacdcd7", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to delivery step", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToDeliveryStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "caa40169-e530-48ce-89f7-6baa7355de74", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to payment step", + "timedOut": false, + "duration": 807, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToPaymentStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3498be5d-8464-41f5-b6f3-cb488ffd2d38", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should choose payment method and confirm the order", + "timedOut": false, + "duration": 1293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_confirmOrder0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, test.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31ecdf1d-6262-4ff8-bddd-d1824ee586c5", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the payment method is Bank transfer", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should check the payment method is Bank transfer", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_checkPaymentMethod0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentMethod;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMethod\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getPaymentMethod(page)];\n case 2:\n paymentMethod = _a.sent();\n (0, chai_1.expect)(paymentMethod).to.be.equal(test.displayName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46c0bbbd-29e6-4cd0-815a-671ee82b60b3", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should check if order and payment confirmation mails are in mailbox", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should check if order and payment confirmation mails are in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_checkPaymentMail0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Order confirmation\"));\n if (index === 0) {\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting bank wire payment\"));\n }\n else if (index === 1) {\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting check payment\"));\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b4869f7-a4df-4d8d-abe3-8b6dd3e96508", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to FO", + "timedOut": false, + "duration": 1441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToFo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5f9a1fa-27b0-4b39-9f0a-1da93353620f", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should add the first product to cart", + "timedOut": false, + "duration": 2072, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd7a079f-9435-4ab0-b296-f3f5f60b3e34", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to checkout page", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should proceed to checkout and go to checkout page", + "timedOut": false, + "duration": 209, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_proceedToCheckout1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da5924a7-74f9-44d3-90f0-84979a52995c", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to delivery step", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToDeliveryStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33b8dafb-79fa-463a-a511-52be6142a681", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to payment step", + "timedOut": false, + "duration": 294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToPaymentStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "190c5a8c-993d-4a4d-84d1-cf6b8610ee1c", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should choose payment method and confirm the order", + "timedOut": false, + "duration": 1286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_confirmOrder1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, test.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b426b8fe-751d-4c74-ab26-6b3f715f814e", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the payment method is Payments by check", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should check the payment method is Payments by check", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_checkPaymentMethod1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentMethod;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMethod\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getPaymentMethod(page)];\n case 2:\n paymentMethod = _a.sent();\n (0, chai_1.expect)(paymentMethod).to.be.equal(test.displayName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0457ec7-569a-49ba-9a34-dce3c0bf44f1", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should check if order and payment confirmation mails are in mailbox", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should check if order and payment confirmation mails are in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_checkPaymentMail1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Order confirmation\"));\n if (index === 0) {\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting bank wire payment\"));\n }\n else if (index === 1) {\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting check payment\"));\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "69d458e2-aeff-414c-a8be-ab157e4dfec3", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to FO", + "timedOut": false, + "duration": 1413, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToFo2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToFo\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0198b519-1992-4baf-b82c-4f93506ada25", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to cart", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should add the first product to cart", + "timedOut": false, + "duration": 2070, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addProductToCart\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ede85481-b099-46f9-84f8-1681367143c4", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and go to checkout page", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should proceed to checkout and go to checkout page", + "timedOut": false, + "duration": 211, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_proceedToCheckout2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"proceedToCheckout\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3345374d-83c5-4927-b4da-924ff571ac80", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to delivery step", + "timedOut": false, + "duration": 801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToDeliveryStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToDeliveryStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22e02552-ac83-41e7-8e59-e2f8dab2695f", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should go to payment step", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_goToPaymentStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToPaymentStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "257f9194-cf71-4c48-816d-4936e6b78121", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should choose payment method and confirm the order", + "timedOut": false, + "duration": 1160, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_confirmOrder2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"confirmOrder\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, test.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34de3c4c-725d-48ab-ab3d-f7e5242b9a4d", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should check the payment method is Cash on delivery (COD)", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should check the payment method is Cash on delivery (COD)", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_checkPaymentMethod2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var paymentMethod;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMethod\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getPaymentMethod(page)];\n case 2:\n paymentMethod = _a.sent();\n (0, chai_1.expect)(paymentMethod).to.be.equal(test.displayName);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f4645e2-1fad-4b7d-94bd-13c86bbe8437", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + }, + { + "title": "should check if order and payment confirmation mails are in mailbox", + "fullTitle": "FO - Checkout - Payment : Choose a payment method Choose a payment method should check if order and payment confirmation mails are in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_checkPaymentMail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkPaymentMail\".concat(index), baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Order confirmation\"));\n if (index === 0) {\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting bank wire payment\"));\n }\n else if (index === 1) {\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting check payment\"));\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb7c7fed-31db-4af2-b376-6d68d7abfe06", + "parentUUID": "e6b46e60-f979-4bf6-b260-494506e44bd5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "18e7675c-7f60-426d-b6eb-bd052d867e93", + "6b2fadaa-68e0-4f03-bd62-366ffad66e62", + "da9079cb-3d9c-4f1c-9a21-7e71188c2b02", + "547c3986-0d45-49c3-931b-d899aaacdcd7", + "caa40169-e530-48ce-89f7-6baa7355de74", + "3498be5d-8464-41f5-b6f3-cb488ffd2d38", + "31ecdf1d-6262-4ff8-bddd-d1824ee586c5", + "46c0bbbd-29e6-4cd0-815a-671ee82b60b3", + "4b4869f7-a4df-4d8d-abe3-8b6dd3e96508", + "c5f9a1fa-27b0-4b39-9f0a-1da93353620f", + "cd7a079f-9435-4ab0-b296-f3f5f60b3e34", + "da5924a7-74f9-44d3-90f0-84979a52995c", + "33b8dafb-79fa-463a-a511-52be6142a681", + "190c5a8c-993d-4a4d-84d1-cf6b8610ee1c", + "b426b8fe-751d-4c74-ab26-6b3f715f814e", + "f0457ec7-569a-49ba-9a34-dce3c0bf44f1", + "69d458e2-aeff-414c-a8be-ab157e4dfec3", + "0198b519-1992-4baf-b82c-4f93506ada25", + "ede85481-b099-46f9-84f8-1681367143c4", + "3345374d-83c5-4927-b4da-924ff571ac80", + "22e02552-ac83-41e7-8e59-e2f8dab2695f", + "257f9194-cf71-4c48-816d-4936e6b78121", + "34de3c4c-725d-48ab-ab3d-f7e5242b9a4d", + "3f4645e2-1fad-4b7d-94bd-13c86bbe8437", + "cb7c7fed-31db-4af2-b376-6d68d7abfe06" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19460, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "919aaf80-6d2f-4fb2-976e-ae7967ec9f5e", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/11_checkout/04_payment/01_choosePaymentMethod.ts", + "file": "/campaigns/functional/FO/classic/11_checkout/04_payment/01_choosePaymentMethod.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Checkout - Payment : Choose a payment method POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f261dd0-88bb-4e2c-9fcc-a209ebc31401", + "parentUUID": "919aaf80-6d2f-4fb2-976e-ae7967ec9f5e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Checkout - Payment : Choose a payment method POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a086ad53-148d-4b8c-95f6-bd124a07565e", + "parentUUID": "919aaf80-6d2f-4fb2-976e-ae7967ec9f5e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Checkout - Payment : Choose a payment method POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c925e2a0-8657-40e8-ba90-d247d6c4aaed", + "parentUUID": "919aaf80-6d2f-4fb2-976e-ae7967ec9f5e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Checkout - Payment : Choose a payment method POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_postTest_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f33e7f3c-16b8-406d-8487-02189b1ff128", + "parentUUID": "919aaf80-6d2f-4fb2-976e-ae7967ec9f5e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "FO - Checkout - Payment : Choose a payment method POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 416, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_checkout_payment_choosePaymentMethod_postTest_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0dbdd0d-9f7f-4659-b040-f150cd49f8b2", + "parentUUID": "919aaf80-6d2f-4fb2-976e-ae7967ec9f5e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c925e2a0-8657-40e8-ba90-d247d6c4aaed", + "f33e7f3c-16b8-406d-8487-02189b1ff128", + "c0dbdd0d-9f7f-4659-b040-f150cd49f8b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7047, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a80aae89-e987-4289-93f1-847d8712dd1f", + "title": "FO - Order confirmation : Contact us", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "file": "/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Order confirmation : Contact us\"", + "fullTitle": "FO - Order confirmation : Contact us \"before all\" hook in \"FO - Order confirmation : Contact us\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Create a file for upload in the \"contact us\" form\n return [4 /*yield*/, Promise.all([\n files_1.default.createFile('.', filename, \"test \".concat(filename)),\n ])];\n case 3:\n // Create a file for upload in the \"contact us\" form\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1010cefc-045f-4b75-a1ff-1c1d5c6cfe99", + "parentUUID": "a80aae89-e987-4289-93f1-847d8712dd1f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Order confirmation : Contact us\"", + "fullTitle": "FO - Order confirmation : Contact us \"after all\" hook in \"FO - Order confirmation : Contact us\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: \n // Delete created file\n return [4 /*yield*/, Promise.all([\n files_1.default.deleteFile(filename),\n ])];\n case 1:\n // Delete created file\n _a.sent();\n return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3a574217-95d8-416f-8a6b-bfb2085e2ad0", + "parentUUID": "a80aae89-e987-4289-93f1-847d8712dd1f", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "title": "Go to shop FO and make a order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "file": "/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should open the shop page", + "timedOut": false, + "duration": 430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_openFoShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFoShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51f6c1da-712c-4cf6-826f-7b3be11a09ee", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should go to login page", + "timedOut": false, + "duration": 713, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_goToFOLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4559767b-5a85-45a1-9f4a-cc30962fd5c6", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in FO", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should sign in FO", + "timedOut": false, + "duration": 489, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_signInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b61ce70-8164-4254-b7ef-c8f37a615b3c", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should go to home page", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29e2d355-1ffc-48c7-9508-627f7ce26c30", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should add first product to cart and Proceed to checkout", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should add first product to cart and Proceed to checkout", + "timedOut": false, + "duration": 2084, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f62f97e-8392-4d47-bd83-5229b6610ac0", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart details", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should check the cart details", + "timedOut": false, + "duration": 55, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_checkCartDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCartDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductDetail(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_1.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c8b819d-4c3e-4d66-aef7-2c3ee34502a1", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and check Step Address", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should proceed to checkout and check Step Address", + "timedOut": false, + "duration": 217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_checkAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage, isStepPersonalInformationComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage, 'Browser is not in checkout Page').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isStepCompleted(page, checkout_1.default.personalInformationStepForm)];\n case 4:\n isStepPersonalInformationComplete = _a.sent();\n (0, chai_1.expect)(isStepPersonalInformationComplete, 'Step Personal information is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "318c3fec-584b-418a-aa4b-22a8c713ce2d", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Address and go to Delivery Step", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should validate Step Address and go to Delivery Step", + "timedOut": false, + "duration": 787, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_checkDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a12b1ff-feb3-4fdb-8dd6-d6988b389175", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Delivery and go to Payment Step", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should validate Step Delivery and go to Payment Step", + "timedOut": false, + "duration": 288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cd309ce-cc83-44eb-a660-42a8ba103cd5", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + }, + { + "title": "should Pay by back wire and confirm order", + "fullTitle": "FO - Order confirmation : Contact us Go to shop FO and make a order should Pay by back wire and confirm order", + "timedOut": false, + "duration": 1496, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderConfirmation_1.default.pageTitle);\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed3317ab-5aa3-4042-bbb2-8dd854b6a5a8", + "parentUUID": "2b0bfec3-9bf1-48ff-81f2-3fdf118ad7c3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "51f6c1da-712c-4cf6-826f-7b3be11a09ee", + "4559767b-5a85-45a1-9f4a-cc30962fd5c6", + "7b61ce70-8164-4254-b7ef-c8f37a615b3c", + "29e2d355-1ffc-48c7-9508-627f7ce26c30", + "0f62f97e-8392-4d47-bd83-5229b6610ac0", + "1c8b819d-4c3e-4d66-aef7-2c3ee34502a1", + "318c3fec-584b-418a-aa4b-22a8c713ce2d", + "8a12b1ff-feb3-4fdb-8dd6-d6988b389175", + "5cd309ce-cc83-44eb-a660-42a8ba103cd5", + "ed3317ab-5aa3-4042-bbb2-8dd854b6a5a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7328, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8aa758d1-de8c-4e1e-b7fa-93a3e632bc46", + "title": "recover the command reference number and go to the \"contact us\" page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "file": "/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get the order reference value", + "fullTitle": "FO - Order confirmation : Contact us recover the command reference number and go to the \"contact us\" page should get the order reference value", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_getOrderReferenceValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReferenceValue', baseContext)];\n case 1:\n _b.sent();\n _a = contactUsData;\n return [4 /*yield*/, orderConfirmation_1.default.getOrderReferenceValue(page)];\n case 2:\n _a.reference = _b.sent();\n contactUsData.message += \" \".concat(contactUsData.reference);\n (0, chai_1.expect)(contactUsData.reference).to.not.have.lengthOf(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aad5c91e-f62f-44b5-9623-afc776d4280f", + "parentUUID": "8aa758d1-de8c-4e1e-b7fa-93a3e632bc46", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the \"contact us\" page", + "fullTitle": "FO - Order confirmation : Contact us recover the command reference number and go to the \"contact us\" page should go to the \"contact us\" page", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_goToTheContactUsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTheContactUsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.goToContactUsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contactUs_1.contactUsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d665fd7c-f323-4a8a-ac3c-8ee11eddd2b3", + "parentUUID": "8aa758d1-de8c-4e1e-b7fa-93a3e632bc46", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "aad5c91e-f62f-44b5-9623-afc776d4280f", + "d665fd7c-f323-4a8a-ac3c-8ee11eddd2b3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 759, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fbf598f4-d317-4295-a336-1eafa37c00ea", + "title": "check the pre-filled email field, select order, and send the message", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "file": "/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the pre-filled email field", + "fullTitle": "FO - Order confirmation : Contact us check the pre-filled email field, select order, and send the message should check the pre-filled email field", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_checkTheFormInfos\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var emailFieldValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTheFormInfos', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getEmailFieldValue(page)];\n case 2:\n emailFieldValue = _a.sent();\n (0, chai_1.expect)(emailFieldValue).to.contains(customers_1.default.johnDoe.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39461032-129b-482a-b18a-b188dffba119", + "parentUUID": "fbf598f4-d317-4295-a336-1eafa37c00ea", + "isHook": false, + "skipped": false + }, + { + "title": "should send the message", + "fullTitle": "FO - Order confirmation : Contact us check the pre-filled email field, select order, and send the message should send the message", + "timedOut": false, + "duration": 446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_sendTheMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sendMessageSuccessAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendTheMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.sendMessage(page, contactUsData, filename)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contactUs_1.contactUsPage.getAlertSuccess(page)];\n case 3:\n sendMessageSuccessAlert = _a.sent();\n (0, chai_1.expect)(sendMessageSuccessAlert).to.contains(contactUs_1.contactUsPage.validationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2432c21-8ec2-41ee-a78f-5f9e8e9c57ce", + "parentUUID": "fbf598f4-d317-4295-a336-1eafa37c00ea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "39461032-129b-482a-b18a-b188dffba119", + "b2432c21-8ec2-41ee-a78f-5f9e8e9c57ce" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 458, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0b468e83-6c11-498c-9fc4-f0d6c48e051b", + "title": "Go to BO and check if the message is visible and the information are correct", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "file": "/campaigns/functional/FO/classic/12_orderConfirmation/05_contactUs.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Order confirmation : Contact us Go to BO and check if the message is visible and the information are correct should login in BO", + "timedOut": false, + "duration": 1634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19579c9a-2b3d-4842-ae7b-c1260eb97d06", + "parentUUID": "0b468e83-6c11-498c-9fc4-f0d6c48e051b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to customer service page", + "fullTitle": "FO - Order confirmation : Contact us Go to BO and check if the message is visible and the information are correct should go to customer service page", + "timedOut": false, + "duration": 3776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_goToCustomerServicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomerServicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "881d2021-b477-4b7a-8776-3c312eee07b0", + "parentUUID": "0b468e83-6c11-498c-9fc4-f0d6c48e051b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the message detailed view", + "fullTitle": "FO - Order confirmation : Contact us Go to BO and check if the message is visible and the information are correct should go to the message detailed view", + "timedOut": false, + "duration": 811, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_goToMessageView\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMessageView', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.goToViewMessagePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7b40200-69a2-4aad-97ae-c91adb85f752", + "parentUUID": "0b468e83-6c11-498c-9fc4-f0d6c48e051b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the message content and uploaded file", + "fullTitle": "FO - Order confirmation : Contact us Go to BO and check if the message is visible and the information are correct should check the message content and uploaded file", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_checkMessageContentAndFile\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var messageContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMessageContentAndFile', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getCustomerMessage(page)];\n case 2:\n messageContent = _a.sent();\n (0, chai_1.expect)(messageContent).to.contains(contactUsData.message);\n (0, chai_1.expect)(messageContent).to.contains('Attachment');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0610dd57-38de-4c8f-b191-d8d7d28985ec", + "parentUUID": "0b468e83-6c11-498c-9fc4-f0d6c48e051b", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to customer service page", + "fullTitle": "FO - Order confirmation : Contact us Go to BO and check if the message is visible and the information are correct should go back to customer service page", + "timedOut": false, + "duration": 3809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_goBackToCustomerServicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToCustomerServicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.customerServiceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customerService_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5da38a2a-66c9-4ffb-9355-28d548ca2e74", + "parentUUID": "0b468e83-6c11-498c-9fc4-f0d6c48e051b", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the message", + "fullTitle": "FO - Order confirmation : Contact us Go to BO and check if the message is visible and the information are correct should delete the message", + "timedOut": false, + "duration": 444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_classic_orderConfirmation_contactUs_deleteMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteMessageSuccessText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customerService_1.default.deleteMessage(page, 1)];\n case 2:\n deleteMessageSuccessText = _a.sent();\n (0, chai_1.expect)(deleteMessageSuccessText).to.contains(customerService_1.default.deleteMessageSuccessAlertText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5eed2b3f-aa40-4d23-b16d-bcb75f625f4b", + "parentUUID": "0b468e83-6c11-498c-9fc4-f0d6c48e051b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "19579c9a-2b3d-4842-ae7b-c1260eb97d06", + "881d2021-b477-4b7a-8776-3c312eee07b0", + "a7b40200-69a2-4aad-97ae-c91adb85f752", + "0610dd57-38de-4c8f-b191-d8d7d28985ec", + "5da38a2a-66c9-4ffb-9355-28d548ca2e74", + "5eed2b3f-aa40-4d23-b16d-bcb75f625f4b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10495, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "b47e3f4d-ef1f-4b20-be5d-3ec4c34546b9", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 423, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86bb967d-5d06-43b1-b3bb-ba24362559b2", + "parentUUID": "b47e3f4d-ef1f-4b20-be5d-3ec4c34546b9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84418ff7-06c6-4767-bffe-a17618b88cf9", + "parentUUID": "b47e3f4d-ef1f-4b20-be5d-3ec4c34546b9", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c6b626b-b9d7-4628-a4bb-6ccc8f20b310", + "parentUUID": "b47e3f4d-ef1f-4b20-be5d-3ec4c34546b9", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "722dec97-20fc-4e02-bc2d-771abc3874fb", + "title": "FO - Login : Password reminder", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Login : Password reminder\"", + "fullTitle": "FO - Login : Password reminder \"before all\" hook in \"FO - Login : Password reminder\"", + "timedOut": false, + "duration": 61, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc3d794c-e537-4915-923e-7c866961935c", + "parentUUID": "722dec97-20fc-4e02-bc2d-771abc3874fb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Login : Password reminder\"", + "fullTitle": "FO - Login : Password reminder \"after all\" hook in \"FO - Login : Password reminder\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4091623b-e5b6-45fa-8377-6995c36052da", + "parentUUID": "722dec97-20fc-4e02-bc2d-771abc3874fb", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d38bf5e3-a202-4011-85c2-5b364eae6a36", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f7f6861e-4d9b-466b-8c8f-d244923a90d2", + "parentUUID": "d38bf5e3-a202-4011-85c2-5b364eae6a36", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6350d22d-c3a8-4650-bc53-b893d48e14c0", + "parentUUID": "d38bf5e3-a202-4011-85c2-5b364eae6a36", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 6799, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "980efcd6-601b-464f-a844-b3a2f4bd8b27", + "parentUUID": "d38bf5e3-a202-4011-85c2-5b364eae6a36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 5415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54512c5e-8ab3-4681-baf8-79bb37782402", + "parentUUID": "d38bf5e3-a202-4011-85c2-5b364eae6a36", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 761, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "847361e7-b294-49e3-810a-dcf62cb5dc60", + "parentUUID": "d38bf5e3-a202-4011-85c2-5b364eae6a36", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "980efcd6-601b-464f-a844-b3a2f4bd8b27", + "54512c5e-8ab3-4681-baf8-79bb37782402", + "847361e7-b294-49e3-810a-dcf62cb5dc60" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12975, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "337dfcba-21ce-435d-a23d-4e2c59f7e88c", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Login : Password reminder Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b92bda80-9ae0-419d-83df-52d2be65028a", + "parentUUID": "337dfcba-21ce-435d-a23d-4e2c59f7e88c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Login : Password reminder Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "29ae9e14-18b1-49f5-bcca-81747ab7b0b5", + "parentUUID": "337dfcba-21ce-435d-a23d-4e2c59f7e88c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Password reminder Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81acffd7-0e2b-4811-b740-b64ce68d36fb", + "parentUUID": "337dfcba-21ce-435d-a23d-4e2c59f7e88c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Login : Password reminder Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4916, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_2_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b08313ce-b2ef-458b-a47a-902043f033f2", + "parentUUID": "337dfcba-21ce-435d-a23d-4e2c59f7e88c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Login : Password reminder Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_2_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99336893-12c1-40d6-a152-cabcb6a702bc", + "parentUUID": "337dfcba-21ce-435d-a23d-4e2c59f7e88c", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Login : Password reminder Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 2102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_2_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16b0d165-c833-4a7c-91ee-70b29ad0aaf4", + "parentUUID": "337dfcba-21ce-435d-a23d-4e2c59f7e88c", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Login : Password reminder Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 1058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_2_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f05cbfcf-9d67-4946-aed1-f39f65ebfec7", + "parentUUID": "337dfcba-21ce-435d-a23d-4e2c59f7e88c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "81acffd7-0e2b-4811-b740-b64ce68d36fb", + "b08313ce-b2ef-458b-a47a-902043f033f2", + "99336893-12c1-40d6-a152-cabcb6a702bc", + "16b0d165-c833-4a7c-91ee-70b29ad0aaf4", + "f05cbfcf-9d67-4946-aed1-f39f65ebfec7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11216, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "19959a22-06b8-4ae2-9562-f2bb33dcc8c5", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08f39008-dd9d-4724-8748-cc085cca0883", + "parentUUID": "19959a22-06b8-4ae2-9562-f2bb33dcc8c5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7c8bbea4-4e1c-44bf-968b-7c58fc38d2ba", + "parentUUID": "19959a22-06b8-4ae2-9562-f2bb33dcc8c5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 5734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.default.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10c2e843-6666-4124-b205-97af95223e44", + "parentUUID": "19959a22-06b8-4ae2-9562-f2bb33dcc8c5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1525, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_3_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.default.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65167811-7e8f-4306-adba-4e9b8c9eab17", + "parentUUID": "19959a22-06b8-4ae2-9562-f2bb33dcc8c5", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_3_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "171ead47-2125-41e0-8bc4-07e283d9e0ea", + "parentUUID": "19959a22-06b8-4ae2-9562-f2bb33dcc8c5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Login : Password reminder PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 2232, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_preTest_3_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.default.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96ca8fa1-10d8-44bb-b8a2-0430ffc89d20", + "parentUUID": "19959a22-06b8-4ae2-9562-f2bb33dcc8c5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "10c2e843-6666-4124-b205-97af95223e44", + "65167811-7e8f-4306-adba-4e9b8c9eab17", + "171ead47-2125-41e0-8bc4-07e283d9e0ea", + "96ca8fa1-10d8-44bb-b8a2-0430ffc89d20" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10679, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "title": "Go to FO and check the password reminder", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should open the shop page", + "timedOut": false, + "duration": 494, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccaccdfe-8ebd-4192-abc9-e5f565a98ec9", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should go to login page", + "timedOut": false, + "duration": 729, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bac6f35a-c463-4885-9c1b-ac84caa2eb9c", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Forgot your password?' link", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should click on 'Forgot your password?' link", + "timedOut": false, + "duration": 751, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_goToPasswordReminderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPasswordReminderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goToPasswordReminderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(passwordReminder_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8b81e80-c440-4600-9104-c841cee7cf49", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should set the email address and send reset link", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should set the email address and send reset link", + "timedOut": false, + "duration": 433, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_sendResetPasswordLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successAlertContent;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sendResetPasswordLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.sendResetPasswordLink(page, customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.checkResetLinkSuccess(page)];\n case 3:\n successAlertContent = _a.sent();\n (0, chai_1.expect)(successAlertContent).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f3d2ae9-d9ff-49cc-adfd-ba8b49aac1f0", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should check if reset password mail is in mailbox", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should check if reset password mail is in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_checkResetPasswordMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkResetPasswordMail', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains(resetPasswordMailSubject);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b49a485-dbc6-4e68-985d-10b1a76a336a", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should open reset password link", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should open reset password link", + "timedOut": false, + "duration": 163, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_openResetPasswordLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openResetPasswordLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.openForgotPasswordPage(page, newMail.text)];\n case 2:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(passwordReminder_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f6d9bb0-aa70-4b3a-aa9b-a9c146a8ad78", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should check the email address to reset password", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should check the email address to reset password", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_checkEmailAddress\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var emailAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmailAddress', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.getEmailAddressToReset(page)];\n case 2:\n emailAddress = _a.sent();\n (0, chai_1.expect)(emailAddress).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abc61af8-2023-4fe4-9887-81011ab0cfe0", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should change the password and check the validation message", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should change the password and check the validation message", + "timedOut": false, + "duration": 527, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_changePassword\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changePassword', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.setNewPassword(page, newPassword)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.getSuccessMessageAlert(page)];\n case 3:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(\"\".concat(myAccount_1.default.resetPasswordSuccessMessage, \" \").concat(customerData.email));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c021ab85-6fbc-46c2-b2fb-0618bfebf3ee", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from FO", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should logout from FO", + "timedOut": false, + "duration": 1755, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee010a39-c9c3-4c65-81b3-f9394a9bc03e", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should try to login with old password and check the error message", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should try to login with old password and check the error message", + "timedOut": false, + "duration": 390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_signInFOWithOldPassword\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFOWithOldPassword', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, customerData, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getLoginError(page)];\n case 3:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.default.loginErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d7810ed-f0a5-4feb-85f5-335da2b9df02", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with new password", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should sign in with new password", + "timedOut": false, + "duration": 1007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, customerNewPassword)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3948c03-b7ad-4db1-917a-ed3fa2cf5abf", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should logout from FO", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should logout from FO", + "timedOut": false, + "duration": 1747, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_signOutFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2573a506-498d-4451-81a8-3338a4a56254", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Forgot your password?' link", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should click on 'Forgot your password?' link", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_clickOnForgetPassword2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnForgetPassword2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goToPasswordReminderPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(passwordReminder_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "737afc78-1d61-425f-ab04-0140e627c16f", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + }, + { + "title": "should set the customer email and check the error alert", + "fullTitle": "FO - Login : Password reminder Go to FO and check the password reminder should set the customer email and check the error alert", + "timedOut": false, + "duration": 2214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_checkErrorMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var regeneratePasswordAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.sendResetPasswordLink(page, customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, passwordReminder_1.default.getErrorMessage(page)];\n case 3:\n regeneratePasswordAlert = _a.sent();\n (0, chai_1.expect)(regeneratePasswordAlert).to.contains(passwordReminder_1.default.errorMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9fec674-9949-4edc-8901-bff5f73266ff", + "parentUUID": "0bef8901-53dd-43cf-b531-ab106eb76afb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ccaccdfe-8ebd-4192-abc9-e5f565a98ec9", + "bac6f35a-c463-4885-9c1b-ac84caa2eb9c", + "a8b81e80-c440-4600-9104-c841cee7cf49", + "5f3d2ae9-d9ff-49cc-adfd-ba8b49aac1f0", + "3b49a485-dbc6-4e68-985d-10b1a76a336a", + "0f6d9bb0-aa70-4b3a-aa9b-a9c146a8ad78", + "abc61af8-2023-4fe4-9887-81011ab0cfe0", + "c021ab85-6fbc-46c2-b2fb-0618bfebf3ee", + "ee010a39-c9c3-4c65-81b3-f9394a9bc03e", + "4d7810ed-f0a5-4feb-85f5-335da2b9df02", + "c3948c03-b7ad-4db1-917a-ed3fa2cf5abf", + "2573a506-498d-4451-81a8-3338a4a56254", + "737afc78-1d61-425f-ab04-0140e627c16f", + "e9fec674-9949-4edc-8901-bff5f73266ff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10946, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Login : Password reminder POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04696980-fce8-4864-89bf-232575a269ab", + "parentUUID": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Login : Password reminder POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b5e8e6f1-46c9-4c1b-89c5-b618ce4a6c25", + "parentUUID": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Password reminder POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f83f8942-55d3-47a1-91c6-04aff46e3dc2", + "parentUUID": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Login : Password reminder POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e71e8419-1097-4190-9765-6005e7d48980", + "parentUUID": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Login : Password reminder POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2011, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d6b2178-00ab-4b60-b4f1-482eab1298cf", + "parentUUID": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Login : Password reminder POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "911b71dc-71dd-4daa-971c-e97c5a946560", + "parentUUID": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Login : Password reminder POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1622, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "badb2b01-3418-4474-a880-1e842fa945df", + "parentUUID": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Login : Password reminder POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 392, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1d50494-74c1-4ca2-828d-aa01e0948b83", + "parentUUID": "ccad1be0-fd46-4364-84dd-6a0ce62ebf2a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f83f8942-55d3-47a1-91c6-04aff46e3dc2", + "e71e8419-1097-4190-9765-6005e7d48980", + "5d6b2178-00ab-4b60-b4f1-482eab1298cf", + "911b71dc-71dd-4daa-971c-e97c5a946560", + "badb2b01-3418-4474-a880-1e842fa945df", + "f1d50494-74c1-4ca2-828d-aa01e0948b83" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12243, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4c3fd803-a96c-4e4b-aced-bec3a0b18a62", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Login : Password reminder POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49ee537a-fda4-4c5d-aa73-ae57d1703973", + "parentUUID": "4c3fd803-a96c-4e4b-aced-bec3a0b18a62", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "FO - Login : Password reminder POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5e2ff020-96eb-483b-b442-f262003037b9", + "parentUUID": "4c3fd803-a96c-4e4b-aced-bec3a0b18a62", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Password reminder POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2ff1276a-04e0-4955-bb45-d47ac4adfcf5", + "parentUUID": "4c3fd803-a96c-4e4b-aced-bec3a0b18a62", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "FO - Login : Password reminder POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cabc8a0d-5b17-4d15-a57c-246ef2d3613a", + "parentUUID": "4c3fd803-a96c-4e4b-aced-bec3a0b18a62", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "FO - Login : Password reminder POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 426, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "578a2a13-cb3a-441a-a3a1-f70ee1ac57ae", + "parentUUID": "4c3fd803-a96c-4e4b-aced-bec3a0b18a62", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2ff1276a-04e0-4955-bb45-d47ac4adfcf5", + "cabc8a0d-5b17-4d15-a57c-246ef2d3613a", + "578a2a13-cb3a-441a-a3a1-f70ee1ac57ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7149, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "01376e6c-d900-4788-bcb5-b4239f4a97ae", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/01_passwordReminder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Login : Password reminder Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdf6df21-2fe3-4b45-8fd7-8e65f5e9242f", + "parentUUID": "01376e6c-d900-4788-bcb5-b4239f4a97ae", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Login : Password reminder Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0b2f62bd-615a-474b-9598-81590a74a651", + "parentUUID": "01376e6c-d900-4788-bcb5-b4239f4a97ae", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Password reminder Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7538d516-5a4d-4fad-9875-1e2cceecff2d", + "parentUUID": "01376e6c-d900-4788-bcb5-b4239f4a97ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Login : Password reminder Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4869, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_3_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32eaa909-073c-4f0d-94d6-63b25182b7e7", + "parentUUID": "01376e6c-d900-4788-bcb5-b4239f4a97ae", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Login : Password reminder Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_3_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08511e71-1dee-4829-968f-5b88ad68506b", + "parentUUID": "01376e6c-d900-4788-bcb5-b4239f4a97ae", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Login : Password reminder Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_passwordReminder_postTest_3_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33a04f2e-1d8c-4c35-aefa-5e303b84793b", + "parentUUID": "01376e6c-d900-4788-bcb5-b4239f4a97ae", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7538d516-5a4d-4fad-9875-1e2cceecff2d", + "32eaa909-073c-4f0d-94d6-63b25182b7e7", + "08511e71-1dee-4829-968f-5b88ad68506b", + "33a04f2e-1d8c-4c35-aefa-5e303b84793b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8476, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "70da7d2b-e7d3-4e42-89a8-9386cad937e5", + "title": "FO - Login : Login in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/02_login.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/02_login.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Login : Login in FO\"", + "fullTitle": "FO - Login : Login in FO \"before all\" hook in \"FO - Login : Login in FO\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d6be850-d7b8-4a09-a12e-301fc9aa12ea", + "parentUUID": "70da7d2b-e7d3-4e42-89a8-9386cad937e5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Login : Login in FO\"", + "fullTitle": "FO - Login : Login in FO \"after all\" hook in \"FO - Login : Login in FO\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d5940ad7-9a97-40e0-a518-84d2f6685ff5", + "parentUUID": "70da7d2b-e7d3-4e42-89a8-9386cad937e5", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "73431fb4-66c5-4d89-aa15-b09e89a25204", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/02_login.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/02_login.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Login : Login in FO Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa694898-714d-485d-acf0-8d2a2a648cfa", + "parentUUID": "73431fb4-66c5-4d89-aa15-b09e89a25204", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Login : Login in FO Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "399c92af-26b7-4bec-9203-86b27c3c32af", + "parentUUID": "73431fb4-66c5-4d89-aa15-b09e89a25204", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Login in FO Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b7e8bae-a6a4-4b6c-871a-5f3ce6d59695", + "parentUUID": "73431fb4-66c5-4d89-aa15-b09e89a25204", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Login : Login in FO Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_preTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffd04a7f-41dd-4c03-a1c0-adea170b3aaa", + "parentUUID": "73431fb4-66c5-4d89-aa15-b09e89a25204", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Login : Login in FO Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1223, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_preTest_1_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5111d2b9-eefc-4d8b-976d-86d1535b44f3", + "parentUUID": "73431fb4-66c5-4d89-aa15-b09e89a25204", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Login : Login in FO Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 1974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_preTest_1_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd7fc60d-4f73-429f-9a88-39db367b0c02", + "parentUUID": "73431fb4-66c5-4d89-aa15-b09e89a25204", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Login : Login in FO Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_preTest_1_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a2d6474-f19b-423a-8bab-cb6ad1494fed", + "parentUUID": "73431fb4-66c5-4d89-aa15-b09e89a25204", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0b7e8bae-a6a4-4b6c-871a-5f3ce6d59695", + "ffd04a7f-41dd-4c03-a1c0-adea170b3aaa", + "5111d2b9-eefc-4d8b-976d-86d1535b44f3", + "fd7fc60d-4f73-429f-9a88-39db367b0c02", + "2a2d6474-f19b-423a-8bab-cb6ad1494fed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10958, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "82c3b764-da0d-4bfc-9dd5-401696789241", + "title": "Login in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/02_login.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/02_login.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Login : Login in FO Login in FO should open the shop page", + "timedOut": false, + "duration": 699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0de6968a-39fe-4561-8ff6-f091bd4ec624", + "parentUUID": "82c3b764-da0d-4bfc-9dd5-401696789241", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Login : Login in FO Login in FO should go to login page", + "timedOut": false, + "duration": 785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6817f063-8992-4719-9ccc-5ee4262c1e96", + "parentUUID": "82c3b764-da0d-4bfc-9dd5-401696789241", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid credentials", + "fullTitle": "FO - Login : Login in FO Login in FO should enter an invalid credentials", + "timedOut": false, + "duration": 406, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_enterInvalidCredentials\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterInvalidCredentials', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, firstCredentialsData, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getLoginError(page)];\n case 3:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.default.loginErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b60760d6-13dd-4679-aae3-a28a87218ede", + "parentUUID": "82c3b764-da0d-4bfc-9dd5-401696789241", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid email", + "fullTitle": "FO - Login : Login in FO Login in FO should enter an invalid email", + "timedOut": false, + "duration": 374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_enterInvalidEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterInvalidEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, secondCredentialsData, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getLoginError(page)];\n case 3:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.default.loginErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a6cd32e-1924-406e-87fc-12cb4c94e496", + "parentUUID": "82c3b764-da0d-4bfc-9dd5-401696789241", + "isHook": false, + "skipped": false + }, + { + "title": "should enter an invalid password", + "fullTitle": "FO - Login : Login in FO Login in FO should enter an invalid password", + "timedOut": false, + "duration": 371, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_enterInvalidPassword\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var loginError;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterInvalidPassword', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, thirdCredentialsData, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getLoginError(page)];\n case 3:\n loginError = _a.sent();\n (0, chai_1.expect)(loginError).to.contains(login_1.default.loginErrorText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7dd5783f-1165-42e4-ac70-c90cb37ccc56", + "parentUUID": "82c3b764-da0d-4bfc-9dd5-401696789241", + "isHook": false, + "skipped": false + }, + { + "title": "should check password type", + "fullTitle": "FO - Login : Login in FO Login in FO should check password type", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_checkPasswordType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var inputType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPasswordType', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPasswordType(page)];\n case 2:\n inputType = _a.sent();\n (0, chai_1.expect)(inputType).to.equal('password');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b011536-db4f-4073-a073-c9dc114c41d9", + "parentUUID": "82c3b764-da0d-4bfc-9dd5-401696789241", + "isHook": false, + "skipped": false + }, + { + "title": "should click on show button and check the password", + "fullTitle": "FO - Login : Login in FO Login in FO should click on show button and check the password", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_clickOnShowButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var inputType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnShowButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.showPassword(page)];\n case 2:\n inputType = _a.sent();\n (0, chai_1.expect)(inputType).to.equal('text');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03867186-8dd9-463b-9392-cf1f28febe4d", + "parentUUID": "82c3b764-da0d-4bfc-9dd5-401696789241", + "isHook": false, + "skipped": false + }, + { + "title": "should enter a valid credentials", + "fullTitle": "FO - Login : Login in FO Login in FO should enter a valid credentials", + "timedOut": false, + "duration": 1206, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_enterValidCredentials\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enterValidCredentials', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 4:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae94ec0c-b0d3-49fa-bebd-ab12324e6400", + "parentUUID": "82c3b764-da0d-4bfc-9dd5-401696789241", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0de6968a-39fe-4561-8ff6-f091bd4ec624", + "6817f063-8992-4719-9ccc-5ee4262c1e96", + "b60760d6-13dd-4679-aae3-a28a87218ede", + "3a6cd32e-1924-406e-87fc-12cb4c94e496", + "7dd5783f-1165-42e4-ac70-c90cb37ccc56", + "2b011536-db4f-4073-a073-c9dc114c41d9", + "03867186-8dd9-463b-9392-cf1f28febe4d", + "ae94ec0c-b0d3-49fa-bebd-ab12324e6400" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3895, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dfe00fc1-8b41-4502-9178-eaab1b91fe36", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/02_login.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/02_login.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Login : Login in FO Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73b6366d-9aa1-42e4-b2de-3780aa761444", + "parentUUID": "dfe00fc1-8b41-4502-9178-eaab1b91fe36", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Login : Login in FO Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d5bcfe07-01d5-45f8-847e-fdf7d5a0d5a3", + "parentUUID": "dfe00fc1-8b41-4502-9178-eaab1b91fe36", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Login in FO Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76f4a809-bdc8-44ba-8d9d-8b5568683c6a", + "parentUUID": "dfe00fc1-8b41-4502-9178-eaab1b91fe36", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Login : Login in FO Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_postTest_2_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a6b6282-21a9-4322-bd79-8accd040f633", + "parentUUID": "dfe00fc1-8b41-4502-9178-eaab1b91fe36", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Login : Login in FO Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1058, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_postTest_2_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43ed41f2-6456-4245-ab8f-6c01ba93314a", + "parentUUID": "dfe00fc1-8b41-4502-9178-eaab1b91fe36", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Login : Login in FO Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_login_postTest_2_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b52700d-3517-4da0-bfdd-c336430aef06", + "parentUUID": "dfe00fc1-8b41-4502-9178-eaab1b91fe36", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "76f4a809-bdc8-44ba-8d9d-8b5568683c6a", + "1a6b6282-21a9-4322-bd79-8accd040f633", + "43ed41f2-6456-4245-ab8f-6c01ba93314a", + "5b52700d-3517-4da0-bfdd-c336430aef06" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8670, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60953d02-8cbc-4a1e-bd38-17b61461db48", + "title": "FO - Login : Logout from FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/03_logout.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/03_logout.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Login : Logout from FO\"", + "fullTitle": "FO - Login : Logout from FO \"before all\" hook in \"FO - Login : Logout from FO\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd76cb7f-1299-47a3-b94b-c260bd3dd63d", + "parentUUID": "60953d02-8cbc-4a1e-bd38-17b61461db48", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Login : Logout from FO\"", + "fullTitle": "FO - Login : Logout from FO \"after all\" hook in \"FO - Login : Logout from FO\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6c41f5fe-2143-478a-9d53-41f1fa2b1e65", + "parentUUID": "60953d02-8cbc-4a1e-bd38-17b61461db48", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4c94de02-ec1d-49ec-ad88-dee3d8109a30", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/03_logout.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/03_logout.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Login : Logout from FO Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fece5179-372a-42b2-9dc7-f35d23c2f17e", + "parentUUID": "4c94de02-ec1d-49ec-ad88-dee3d8109a30", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Login : Logout from FO Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ccc8e057-5394-4fb7-b5af-5c6b2ef2f736", + "parentUUID": "4c94de02-ec1d-49ec-ad88-dee3d8109a30", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Logout from FO Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff2464b1-1b2c-44fd-9816-301f13fad500", + "parentUUID": "4c94de02-ec1d-49ec-ad88-dee3d8109a30", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Login : Logout from FO Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_preTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a891ebf-8da7-4018-b2bc-71b5e2a5e9fb", + "parentUUID": "4c94de02-ec1d-49ec-ad88-dee3d8109a30", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Login : Logout from FO Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1182, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_preTest_1_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37a0dad3-f752-43a7-bf70-1d2297d4970c", + "parentUUID": "4c94de02-ec1d-49ec-ad88-dee3d8109a30", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Login : Logout from FO Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 2004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_preTest_1_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e7f6236-2509-49dd-a0fe-00faa379ad9f", + "parentUUID": "4c94de02-ec1d-49ec-ad88-dee3d8109a30", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Login : Logout from FO Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 998, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_preTest_1_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93644217-727f-487a-b339-b9d66ec34e80", + "parentUUID": "4c94de02-ec1d-49ec-ad88-dee3d8109a30", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ff2464b1-1b2c-44fd-9816-301f13fad500", + "3a891ebf-8da7-4018-b2bc-71b5e2a5e9fb", + "37a0dad3-f752-43a7-bf70-1d2297d4970c", + "8e7f6236-2509-49dd-a0fe-00faa379ad9f", + "93644217-727f-487a-b339-b9d66ec34e80" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11009, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a0e54788-830b-4b87-8e3e-0dba059a5f22", + "title": "Create account", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/03_logout.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/03_logout.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Login : Logout from FO Create account should open the shop page", + "timedOut": false, + "duration": 670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e82c4126-28db-4b1d-9382-c4c9290c767d", + "parentUUID": "a0e54788-830b-4b87-8e3e-0dba059a5f22", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Login : Logout from FO Create account should go to login page", + "timedOut": false, + "duration": 764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cabf5116-c99b-43ec-866a-7e763c198e44", + "parentUUID": "a0e54788-830b-4b87-8e3e-0dba059a5f22", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "FO - Login : Logout from FO Create account should sign in with default customer", + "timedOut": false, + "duration": 715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_signInFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "192940ba-8a9b-4163-94c1-4cb28dddcd98", + "parentUUID": "a0e54788-830b-4b87-8e3e-0dba059a5f22", + "isHook": false, + "skipped": false + }, + { + "title": "should logout by the link in the header", + "fullTitle": "FO - Login : Logout from FO Create account should logout by the link in the header", + "timedOut": false, + "duration": 1911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_signOutFOByHeaderLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFOByHeaderLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abf1c090-e2a5-4bbf-9449-9c12dc2c0a72", + "parentUUID": "a0e54788-830b-4b87-8e3e-0dba059a5f22", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "FO - Login : Logout from FO Create account should sign in with default customer", + "timedOut": false, + "duration": 1257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_signInFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.default.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "270e408b-3a7f-4180-9d47-9b3d1f4186d9", + "parentUUID": "a0e54788-830b-4b87-8e3e-0dba059a5f22", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Login : Logout from FO Create account should go to my account page", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_goToAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4621f435-b2b6-4e92-919d-dd6846f871f2", + "parentUUID": "a0e54788-830b-4b87-8e3e-0dba059a5f22", + "isHook": false, + "skipped": false + }, + { + "title": "should logout by the link in the footer of account page", + "fullTitle": "FO - Login : Logout from FO Create account should logout by the link in the footer of account page", + "timedOut": false, + "duration": 1766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_signOutFOByFooterLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFOByFooterLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ac08fe3-9975-4128-9b01-7bf4d66f38b6", + "parentUUID": "a0e54788-830b-4b87-8e3e-0dba059a5f22", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e82c4126-28db-4b1d-9382-c4c9290c767d", + "cabf5116-c99b-43ec-866a-7e763c198e44", + "192940ba-8a9b-4163-94c1-4cb28dddcd98", + "abf1c090-e2a5-4bbf-9449-9c12dc2c0a72", + "270e408b-3a7f-4180-9d47-9b3d1f4186d9", + "4621f435-b2b6-4e92-919d-dd6846f871f2", + "8ac08fe3-9975-4128-9b01-7bf4d66f38b6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7869, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "031e4137-cbf6-4fde-9fad-402d0ee1bc8e", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/03_logout.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/03_logout.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Login : Logout from FO Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a148ee0-5124-422e-a052-80902a2c33dc", + "parentUUID": "031e4137-cbf6-4fde-9fad-402d0ee1bc8e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Login : Logout from FO Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "1e733b32-2b3d-4991-bcca-12e30c4d2e2f", + "parentUUID": "031e4137-cbf6-4fde-9fad-402d0ee1bc8e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Logout from FO Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "102c27d5-ab4f-408a-9d65-77f778444701", + "parentUUID": "031e4137-cbf6-4fde-9fad-402d0ee1bc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Login : Logout from FO Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_postTest_2_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b99d3cf-d4cc-4e48-a96b-a3d16a9bd46e", + "parentUUID": "031e4137-cbf6-4fde-9fad-402d0ee1bc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Login : Logout from FO Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 993, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_postTest_2_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bcaf715e-fc7a-4856-afc9-12c53ec2f1cd", + "parentUUID": "031e4137-cbf6-4fde-9fad-402d0ee1bc8e", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Login : Logout from FO Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 786, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_logout_postTest_2_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6eebdb30-4a7f-417d-a4f3-d9080852d4c0", + "parentUUID": "031e4137-cbf6-4fde-9fad-402d0ee1bc8e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "102c27d5-ab4f-408a-9d65-77f778444701", + "5b99d3cf-d4cc-4e48-a96b-a3d16a9bd46e", + "bcaf715e-fc7a-4856-afc9-12c53ec2f1cd", + "6eebdb30-4a7f-417d-a4f3-d9080852d4c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8584, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9583eecf-14c9-4c51-a823-7857b6d47195", + "title": "FO - Login : Create account", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Login : Create account\"", + "fullTitle": "FO - Login : Create account \"before all\" hook in \"FO - Login : Create account\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f61f891-16f5-439e-8555-c3fa0933fdb3", + "parentUUID": "9583eecf-14c9-4c51-a823-7857b6d47195", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Login : Create account\"", + "fullTitle": "FO - Login : Create account \"after all\" hook in \"FO - Login : Create account\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8dceaa1e-f0e6-48c8-b022-13a54440f61f", + "parentUUID": "9583eecf-14c9-4c51-a823-7857b6d47195", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "cd7c0cb9-a0c7-4181-8505-0002ab4634f6", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Login : Create account Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44c96af5-1376-4677-a7e9-b39ae40dccb4", + "parentUUID": "cd7c0cb9-a0c7-4181-8505-0002ab4634f6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Login : Create account Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b79bd52b-1568-4864-af76-f1ce6563b64a", + "parentUUID": "cd7c0cb9-a0c7-4181-8505-0002ab4634f6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Create account Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1920, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e6587ce-2936-4cab-ba5d-2044ffc8fa93", + "parentUUID": "cd7c0cb9-a0c7-4181-8505-0002ab4634f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Login : Create account Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_preTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef2f15a5-9374-4dd6-b391-0d7483f4e42c", + "parentUUID": "cd7c0cb9-a0c7-4181-8505-0002ab4634f6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Login : Create account Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1189, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_preTest_1_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "937d9dd3-0a77-4520-b780-cf3df057d72c", + "parentUUID": "cd7c0cb9-a0c7-4181-8505-0002ab4634f6", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Login : Create account Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 1978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_preTest_1_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eb1ee29-3758-4335-88e1-f86eb434e68d", + "parentUUID": "cd7c0cb9-a0c7-4181-8505-0002ab4634f6", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Login : Create account Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 1015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_preTest_1_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57a7c382-0ce9-4ae1-96da-c0d463e3e4ab", + "parentUUID": "cd7c0cb9-a0c7-4181-8505-0002ab4634f6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9e6587ce-2936-4cab-ba5d-2044ffc8fa93", + "ef2f15a5-9374-4dd6-b391-0d7483f4e42c", + "937d9dd3-0a77-4520-b780-cf3df057d72c", + "3eb1ee29-3758-4335-88e1-f86eb434e68d", + "57a7c382-0ce9-4ae1-96da-c0d463e3e4ab" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10967, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2c07e6c6-4f83-4079-91c8-58a1f28dc505", + "title": "Create account", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Login : Create account Create account should open the shop page", + "timedOut": false, + "duration": 683, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "531ce467-9d46-4e76-b8d4-354101adcb37", + "parentUUID": "2c07e6c6-4f83-4079-91c8-58a1f28dc505", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Login : Create account Create account should go to login page", + "timedOut": false, + "duration": 776, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b340ad09-9c5b-4268-be6a-cd3ef06f215c", + "parentUUID": "2c07e6c6-4f83-4079-91c8-58a1f28dc505", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Login : Create account Create account should go to create account page", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goToCreateAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getHeaderTitle(page)];\n case 3:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.default.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bfdb8e93-2a35-418d-909f-eeab602aff7f", + "parentUUID": "2c07e6c6-4f83-4079-91c8-58a1f28dc505", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Login : Create account Create account should create new account", + "timedOut": false, + "duration": 1265, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Created customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "158db391-1454-4d07-a2da-c9e0503c3f58", + "parentUUID": "2c07e6c6-4f83-4079-91c8-58a1f28dc505", + "isHook": false, + "skipped": false + }, + { + "title": "should check if the page is redirected to home page", + "fullTitle": "FO - Login : Create account Create account should check if the page is redirected to home page", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_isHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 2:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to redirect to FO home page!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c947caf7-7461-4238-a0b4-c24254aeb3a7", + "parentUUID": "2c07e6c6-4f83-4079-91c8-58a1f28dc505", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Login : Create account Create account should sign out from FO", + "timedOut": false, + "duration": 1900, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b83dff8-a994-46f4-a613-3b0255ee926a", + "parentUUID": "2c07e6c6-4f83-4079-91c8-58a1f28dc505", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "531ce467-9d46-4e76-b8d4-354101adcb37", + "b340ad09-9c5b-4268-be6a-cd3ef06f215c", + "bfdb8e93-2a35-418d-909f-eeab602aff7f", + "158db391-1454-4d07-a2da-c9e0503c3f58", + "c947caf7-7461-4238-a0b4-c24254aeb3a7", + "7b83dff8-a994-46f4-a613-3b0255ee926a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5429, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Login : Create account POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "227e1168-ddf8-4825-81a6-9e6b7b754fa2", + "parentUUID": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Login : Create account POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "630e54a3-8309-4264-9c77-8103b9acb3e0", + "parentUUID": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Create account POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af6384cf-6bd0-49f3-b6a1-c36278c638f8", + "parentUUID": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Login : Create account POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5039, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_postTest_1_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6cc544a0-7a44-460d-a8b5-bdc887ad899c", + "parentUUID": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Login : Create account POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_postTest_1_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4d0f2e0-9659-449b-ac7e-9d4d575adf6b", + "parentUUID": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Login : Create account POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1152, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8111b186-1ee9-4179-8069-7b8fae1ec009", + "parentUUID": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Login : Create account POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1599, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_postTest_1_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36e41f77-ea5e-4f2d-af2a-69adae63a2b7", + "parentUUID": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Login : Create account POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_postTest_1_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b71ed924-c80a-486a-9004-01087cc8568b", + "parentUUID": "5310365e-fd02-45f9-b9ee-1d8010e109ab", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "af6384cf-6bd0-49f3-b6a1-c36278c638f8", + "6cc544a0-7a44-460d-a8b5-bdc887ad899c", + "f4d0f2e0-9659-449b-ac7e-9d4d575adf6b", + "8111b186-1ee9-4179-8069-7b8fae1ec009", + "36e41f77-ea5e-4f2d-af2a-69adae63a2b7", + "b71ed924-c80a-486a-9004-01087cc8568b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12073, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2b6bddfc-f3d0-4494-a1cc-99cb6dc5f2a8", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "file": "/campaigns/functional/FO/hummingbird/01_login/04_createAccount.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Login : Create account Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21301091-cd0f-4bdb-8c02-d90bd478451f", + "parentUUID": "2b6bddfc-f3d0-4494-a1cc-99cb6dc5f2a8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Login : Create account Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c4884fea-bbd9-4a8a-9c5c-a7666dec59e7", + "parentUUID": "2b6bddfc-f3d0-4494-a1cc-99cb6dc5f2a8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Login : Create account Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1808, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c0d6db42-8367-439d-983c-d6ccd177e08d", + "parentUUID": "2b6bddfc-f3d0-4494-a1cc-99cb6dc5f2a8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Login : Create account Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_postTest_2_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d72c7ab6-859c-413c-aeeb-95257de41617", + "parentUUID": "2b6bddfc-f3d0-4494-a1cc-99cb6dc5f2a8", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Login : Create account Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1104, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_postTest_2_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d0d2331-3088-4f0b-b029-1e51581a6840", + "parentUUID": "2b6bddfc-f3d0-4494-a1cc-99cb6dc5f2a8", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Login : Create account Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_login_createAccount_postTest_2_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36653619-960c-4292-9a8a-86697bce7a54", + "parentUUID": "2b6bddfc-f3d0-4494-a1cc-99cb6dc5f2a8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c0d6db42-8367-439d-983c-d6ccd177e08d", + "d72c7ab6-859c-413c-aeeb-95257de41617", + "2d0d2331-3088-4f0b-b029-1e51581a6840", + "36653619-960c-4292-9a8a-86697bce7a54" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8559, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "915b87a1-76fd-4789-9607-3c5f2991daf5", + "title": "FO - Header and Footer : Check links in header page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/01_checkLinksInHeader.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/01_checkLinksInHeader.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "1de260f9-de80-4339-85c9-7f1b9c9c4c94", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/01_checkLinksInHeader.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/01_checkLinksInHeader.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Check links in header page Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "af0e621d-a3f5-450c-99e6-877eb7e82e84", + "parentUUID": "1de260f9-de80-4339-85c9-7f1b9c9c4c94", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Check links in header page Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fc22741f-d982-4f08-9882-127f4e3d8dfa", + "parentUUID": "1de260f9-de80-4339-85c9-7f1b9c9c4c94", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Check links in header page Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7f85550e-949d-4596-849d-5c6af13240a1", + "parentUUID": "1de260f9-de80-4339-85c9-7f1b9c9c4c94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Header and Footer : Check links in header page Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_preTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9667dad-c062-42af-a05e-8d1d51f6829c", + "parentUUID": "1de260f9-de80-4339-85c9-7f1b9c9c4c94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Header and Footer : Check links in header page Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1192, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_preTest_1_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a19737e-f20f-440a-a27c-7dc958118963", + "parentUUID": "1de260f9-de80-4339-85c9-7f1b9c9c4c94", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Header and Footer : Check links in header page Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 1972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_preTest_1_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c947f781-d22e-4009-865b-806b129223e3", + "parentUUID": "1de260f9-de80-4339-85c9-7f1b9c9c4c94", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Header and Footer : Check links in header page Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 1042, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_preTest_1_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3b92a5d-9dca-4e0d-98ed-627167bfdc50", + "parentUUID": "1de260f9-de80-4339-85c9-7f1b9c9c4c94", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7f85550e-949d-4596-849d-5c6af13240a1", + "d9667dad-c062-42af-a05e-8d1d51f6829c", + "7a19737e-f20f-440a-a27c-7dc958118963", + "c947f781-d22e-4009-865b-806b129223e3", + "d3b92a5d-9dca-4e0d-98ed-627167bfdc50" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10941, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a98a0793-9968-45e1-ae10-21f6219ba995", + "title": "Check links in header page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/01_checkLinksInHeader.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/01_checkLinksInHeader.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Check links in header page\"", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page \"before all\" hook in \"Check links in header page\"", + "timedOut": false, + "duration": 41, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91bed396-43fa-471e-8d0b-8aa31de1da15", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Check links in header page\"", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page \"after all\" hook in \"Check links in header page\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e8615031-afbc-4d50-a667-84f4b64cc7f5", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should go to FO home page", + "timedOut": false, + "duration": 680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb74461d-7d7a-4c78-987d-916acfbe839e", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Contact us' header link", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should check 'Contact us' header link", + "timedOut": false, + "duration": 790, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_checkContactUsHeaderLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkContactUsHeaderLink', baseContext)];\n case 1:\n _a.sent();\n // Check Contact us\n return [4 /*yield*/, home_1.default.clickOnHeaderLink(page, 'Contact us')];\n case 2:\n // Check Contact us\n _a.sent();\n return [4 /*yield*/, contactUs_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(contactUs_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb4973f2-078f-4296-812b-cbf9fe1aa223", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'sign in' link", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should check 'sign in' link", + "timedOut": false, + "duration": 766, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_checkSignInLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSignInLink', baseContext)];\n case 1:\n _a.sent();\n // Check sign in link\n return [4 /*yield*/, home_1.default.clickOnHeaderLink(page, 'Sign in')];\n case 2:\n // Check sign in link\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23d7143e-4ad4-4737-ba4b-f174f5c66c54", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in by default customer", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should sign in by default customer", + "timedOut": false, + "duration": 527, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n // Sign in\n return [4 /*yield*/, login_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n // Sign in\n _a.sent();\n return [4 /*yield*/, login_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8aa3d2bb-ca90-4ca5-ace7-a7b7eef483f8", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should check my account link", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should check my account link", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_checkMyAccountLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMyAccountLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "482ce01d-d316-42ea-a396-2f9395bbd656", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should add a product to cart by quick view", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should add a product to cart by quick view", + "timedOut": false, + "duration": 2621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isQuickViewModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n // Add product to cart by quick view\n return [4 /*yield*/, home_1.default.addProductToCartByQuickView(page, 1, 3)];\n case 3:\n // Add product to cart by quick view\n _a.sent();\n return [4 /*yield*/, home_1.default.closeBlockCartModal(page)];\n case 4:\n isQuickViewModalClosed = _a.sent();\n (0, chai_1.expect)(isQuickViewModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42076048-7742-40a8-95db-9cf3fdf7fc26", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Cart' link", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should check 'Cart' link", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_checkShoppingCartLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShoppingCartLink', baseContext)];\n case 1:\n _a.sent();\n // Check cart link\n return [4 /*yield*/, home_1.default.clickOnHeaderLink(page, 'Cart')];\n case 2:\n // Check cart link\n _a.sent();\n return [4 /*yield*/, cart_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8b60323-c85a-4d90-85e2-cb84f13c3eb4", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page and check the notification number", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should go to home page and check the notification number", + "timedOut": false, + "duration": 2202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_checkNotificationNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationNumber1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber, 'Notification number is not equal to 3!').to.be.equal(3);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2945e558-6cb3-4636-8d46-748b2f53744b", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Sign out' link", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should check 'Sign out' link", + "timedOut": false, + "duration": 1364, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_checkSignOutLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSignOutLink', baseContext)];\n case 1:\n _a.sent();\n // Sign out\n return [4 /*yield*/, home_1.default.logout(page)];\n case 2:\n // Sign out\n _a.sent();\n return [4 /*yield*/, home_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c534fdb8-c689-401e-bbdf-d7db48ba0b38", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the cart is empty", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should check that the cart is empty", + "timedOut": false, + "duration": 2005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_checkNotificationNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNotificationNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.getCartNotificationsNumber(page)];\n case 2:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber, 'The cart is not empty!').to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1495fcb-5405-4db1-96f4-91eea51373ad", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Logo' link", + "fullTitle": "FO - Header and Footer : Check links in header page Check links in header page should check 'Logo' link", + "timedOut": false, + "duration": 147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_checkLogoLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLogoLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.clickOnHeaderLink(page, 'Logo', false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(home_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26e7e745-84ec-40e0-a591-2022a82392e3", + "parentUUID": "a98a0793-9968-45e1-ae10-21f6219ba995", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cb74461d-7d7a-4c78-987d-916acfbe839e", + "bb4973f2-078f-4296-812b-cbf9fe1aa223", + "23d7143e-4ad4-4737-ba4b-f174f5c66c54", + "8aa3d2bb-ca90-4ca5-ace7-a7b7eef483f8", + "482ce01d-d316-42ea-a396-2f9395bbd656", + "42076048-7742-40a8-95db-9cf3fdf7fc26", + "a8b60323-c85a-4d90-85e2-cb84f13c3eb4", + "2945e558-6cb3-4636-8d46-748b2f53744b", + "c534fdb8-c689-401e-bbdf-d7db48ba0b38", + "a1495fcb-5405-4db1-96f4-91eea51373ad", + "26e7e745-84ec-40e0-a591-2022a82392e3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12834, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ee0c7e5-f144-462b-8e00-abae0a42c8dc", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/01_checkLinksInHeader.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/01_checkLinksInHeader.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Check links in header page Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48db3a3c-7189-415e-8c69-46c6cda40692", + "parentUUID": "1ee0c7e5-f144-462b-8e00-abae0a42c8dc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Check links in header page Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "283c7ca8-c849-4f1c-aa31-37d93a43d642", + "parentUUID": "1ee0c7e5-f144-462b-8e00-abae0a42c8dc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Check links in header page Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a5031e3-7506-4aab-abe8-46da054d442f", + "parentUUID": "1ee0c7e5-f144-462b-8e00-abae0a42c8dc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Header and Footer : Check links in header page Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_postTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01c6a5c4-469a-4a4f-9063-71881ebc8461", + "parentUUID": "1ee0c7e5-f144-462b-8e00-abae0a42c8dc", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Header and Footer : Check links in header page Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_postTest_1_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d429e023-f6c9-4d35-8fd9-40033ca0fc43", + "parentUUID": "1ee0c7e5-f144-462b-8e00-abae0a42c8dc", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Header and Footer : Check links in header page Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInHeader_postTest_1_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44d6e129-2f9f-4728-8382-3ceaedbe373f", + "parentUUID": "1ee0c7e5-f144-462b-8e00-abae0a42c8dc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9a5031e3-7506-4aab-abe8-46da054d442f", + "01c6a5c4-469a-4a4f-9063-71881ebc8461", + "d429e023-f6c9-4d35-8fd9-40033ca0fc43", + "44d6e129-2f9f-4728-8382-3ceaedbe373f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8660, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bc7b1d10-a794-4685-891e-fcd32d527c30", + "title": "FO - Header and Footer : Check links in footer page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Header and Footer : Check links in footer page\"", + "fullTitle": "FO - Header and Footer : Check links in footer page \"before all\" hook in \"FO - Header and Footer : Check links in footer page\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ac512f7-88f5-4603-8730-2266870d8917", + "parentUUID": "bc7b1d10-a794-4685-891e-fcd32d527c30", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Header and Footer : Check links in footer page\"", + "fullTitle": "FO - Header and Footer : Check links in footer page \"after all\" hook in \"FO - Header and Footer : Check links in footer page\"", + "timedOut": false, + "duration": 17, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a38f46c7-50eb-41b9-a5a1-2007ffa8752d", + "parentUUID": "bc7b1d10-a794-4685-891e-fcd32d527c30", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Header and Footer : Check links in footer page should go to FO home page", + "timedOut": false, + "duration": 697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8e15b24-12c0-41de-b2ed-4a1fccc98c88", + "parentUUID": "bc7b1d10-a794-4685-891e-fcd32d527c30", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "7dfdaf6b-cdca-4f24-982d-5aec4f3318b6", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0670172-9b78-49d8-9c3e-063d3508ba39", + "parentUUID": "7dfdaf6b-cdca-4f24-982d-5aec4f3318b6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "71815f98-0358-4a9f-aad7-01a25b11b3bf", + "parentUUID": "7dfdaf6b-cdca-4f24-982d-5aec4f3318b6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e58b26f-f7b1-4361-bc46-3632449b104a", + "parentUUID": "7dfdaf6b-cdca-4f24-982d-5aec4f3318b6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_1_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ab0f196-f127-4ad5-8af9-8b5bc0f1cdca", + "parentUUID": "7dfdaf6b-cdca-4f24-982d-5aec4f3318b6", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_1_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c1c351a-869e-440a-b835-4f69217079d1", + "parentUUID": "7dfdaf6b-cdca-4f24-982d-5aec4f3318b6", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 1965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_1_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37f86b7f-334c-4b83-92d0-a29243772764", + "parentUUID": "7dfdaf6b-cdca-4f24-982d-5aec4f3318b6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3e58b26f-f7b1-4361-bc46-3632449b104a", + "1ab0f196-f127-4ad5-8af9-8b5bc0f1cdca", + "9c1c351a-869e-440a-b835-4f69217079d1", + "37f86b7f-334c-4b83-92d0-a29243772764" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6293, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e1dc6372-5710-46bd-837e-2bb4e7e4a566", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Check links in footer page Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6669b685-dcc5-4757-86fd-56cc90f97eba", + "parentUUID": "e1dc6372-5710-46bd-837e-2bb4e7e4a566", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Check links in footer page Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bd8334bb-e2fb-457b-ab38-07ce64819456", + "parentUUID": "e1dc6372-5710-46bd-837e-2bb4e7e4a566", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Check links in footer page Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59ab322a-0d13-419a-9afc-f458d891722c", + "parentUUID": "e1dc6372-5710-46bd-837e-2bb4e7e4a566", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Header and Footer : Check links in footer page Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_2_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0487d382-ce1e-4a87-91c8-e8870b7f0925", + "parentUUID": "e1dc6372-5710-46bd-837e-2bb4e7e4a566", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Header and Footer : Check links in footer page Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_2_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a50e6e3-0bac-4b0f-87d0-8aa5c46de979", + "parentUUID": "e1dc6372-5710-46bd-837e-2bb4e7e4a566", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Header and Footer : Check links in footer page Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 1931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_2_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6b6ed2c-6a24-4267-b1a4-1290e2988406", + "parentUUID": "e1dc6372-5710-46bd-837e-2bb4e7e4a566", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Header and Footer : Check links in footer page Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 1130, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_2_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "497a2c30-3c5a-46ab-8c12-326a9d0d2562", + "parentUUID": "e1dc6372-5710-46bd-837e-2bb4e7e4a566", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "59ab322a-0d13-419a-9afc-f458d891722c", + "0487d382-ce1e-4a87-91c8-e8870b7f0925", + "5a50e6e3-0bac-4b0f-87d0-8aa5c46de979", + "c6b6ed2c-6a24-4267-b1a4-1290e2988406", + "497a2c30-3c5a-46ab-8c12-326a9d0d2562" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11078, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8d5d6a7b-fbdf-4e54-8af8-e890991ffeed", + "title": "PRE-TEST: Delete cache", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Delete cache\"", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache \"before all\" hook in \"PRE-TEST: Delete cache\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e12d42c9-c52d-4f35-91e2-21ad98b4b148", + "parentUUID": "8d5d6a7b-fbdf-4e54-8af8-e890991ffeed", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Delete cache\"", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache \"after all\" hook in \"PRE-TEST: Delete cache\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8f45ea63-a867-49bd-85a4-0717399fda25", + "parentUUID": "8d5d6a7b-fbdf-4e54-8af8-e890991ffeed", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache should login in BO", + "timedOut": false, + "duration": 1919, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "137b796e-5566-4bde-a520-cd1033711817", + "parentUUID": "8d5d6a7b-fbdf-4e54-8af8-e890991ffeed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Performance' page", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache should go to 'Advanced Parameters > Performance' page", + "timedOut": false, + "duration": 4933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_3_goToPerformancePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPerformancePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.performanceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, performance_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, performance_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(performance_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90c3f608-aa52-4b61-a32e-2284fa4c838b", + "parentUUID": "8d5d6a7b-fbdf-4e54-8af8-e890991ffeed", + "isHook": false, + "skipped": false + }, + { + "title": "should clear cache", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache should clear cache", + "timedOut": false, + "duration": 2634, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest_3_clearCache\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearCache', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, performance_1.default.clearCache(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(performance_1.default.clearCacheSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01e1440a-2e78-4ab3-b166-13c6566610e4", + "parentUUID": "8d5d6a7b-fbdf-4e54-8af8-e890991ffeed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "137b796e-5566-4bde-a520-cd1033711817", + "90c3f608-aa52-4b61-a32e-2284fa4c838b", + "01e1440a-2e78-4ab3-b166-13c6566610e4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9486, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "033ac564-1ad7-4669-8f4d-5f3e17d85b19", + "title": "Check 'Products' footer links", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check 'Prices drop' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Products' footer links should check 'Prices drop' footer links", + "timedOut": false, + "duration": 2029, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkProductsFooterLinks0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f49ad7e7-7cb2-431b-beb0-4a79f14224e7", + "parentUUID": "033ac564-1ad7-4669-8f4d-5f3e17d85b19", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'New products' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Products' footer links should check 'New products' footer links", + "timedOut": false, + "duration": 2520, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkProductsFooterLinks1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf45bf24-8c42-4d5b-a175-0c5d22e371ee", + "parentUUID": "033ac564-1ad7-4669-8f4d-5f3e17d85b19", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Best sellers' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Products' footer links should check 'Best sellers' footer links", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkProductsFooterLinks2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkProductsFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c2e1d6f-8684-4572-bbdc-6565f603dbb0", + "parentUUID": "033ac564-1ad7-4669-8f4d-5f3e17d85b19", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f49ad7e7-7cb2-431b-beb0-4a79f14224e7", + "cf45bf24-8c42-4d5b-a175-0c5d22e371ee", + "6c2e1d6f-8684-4572-bbdc-6565f603dbb0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5344, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "title": "Check 'Our Company' footer links", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check 'Delivery' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Our Company' footer links should check 'Delivery' footer links", + "timedOut": false, + "duration": 742, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkOurCompanyFooterLinks0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOurCompanyFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "084fa056-d7b2-48dd-99ba-c645ed81e4d4", + "parentUUID": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Legal Notice' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Our Company' footer links should check 'Legal Notice' footer links", + "timedOut": false, + "duration": 731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkOurCompanyFooterLinks1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOurCompanyFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52ba361d-b151-4899-b63a-bc9554045920", + "parentUUID": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Terms and conditions of use' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Our Company' footer links should check 'Terms and conditions of use' footer links", + "timedOut": false, + "duration": 723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkOurCompanyFooterLinks2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOurCompanyFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f1feae3-c6b3-4b27-af44-2724ee381154", + "parentUUID": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'About us' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Our Company' footer links should check 'About us' footer links", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkOurCompanyFooterLinks3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOurCompanyFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "903af400-75e8-4ab6-a8a7-a3f917d4435e", + "parentUUID": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Secure payment' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Our Company' footer links should check 'Secure payment' footer links", + "timedOut": false, + "duration": 715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkOurCompanyFooterLinks4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOurCompanyFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d384d09-780f-4fae-a723-d3f320f39ca9", + "parentUUID": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Contact us' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Our Company' footer links should check 'Contact us' footer links", + "timedOut": false, + "duration": 737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkOurCompanyFooterLinks5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOurCompanyFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b7e61c5-553b-451b-9b62-0cefc548eb88", + "parentUUID": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Sitemap' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Our Company' footer links should check 'Sitemap' footer links", + "timedOut": false, + "duration": 715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkOurCompanyFooterLinks6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOurCompanyFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e418385-95be-48a4-aa5f-78d1d867e898", + "parentUUID": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Stores' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Our Company' footer links should check 'Stores' footer links", + "timedOut": false, + "duration": 791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkOurCompanyFooterLinks7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkOurCompanyFooterLinks\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d53aa70-6488-43d5-ad5f-0f5c870f4882", + "parentUUID": "3d96ea7a-73b1-4f9b-8b24-43a56a587bfb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "084fa056-d7b2-48dd-99ba-c645ed81e4d4", + "52ba361d-b151-4899-b63a-bc9554045920", + "4f1feae3-c6b3-4b27-af44-2724ee381154", + "903af400-75e8-4ab6-a8a7-a3f917d4435e", + "7d384d09-780f-4fae-a723-d3f320f39ca9", + "7b7e61c5-553b-451b-9b62-0cefc548eb88", + "4e418385-95be-48a4-aa5f-78d1d867e898", + "8d53aa70-6488-43d5-ad5f-0f5c870f4882" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5855, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "dbe9e158-bda7-4c1c-8708-8454598dd2ea", + "title": "Check 'Your Account' footer links before login", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check 'Order tracking' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links before login should check 'Order tracking' footer links", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks1\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Create account')) return [3 /*break*/, 4];\n return [4 /*yield*/, add_1.default.getHeaderTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12c6690e-cebd-47df-a61c-9cc69500a1f7", + "parentUUID": "dbe9e158-bda7-4c1c-8708-8454598dd2ea", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Sign in' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links before login should check 'Sign in' footer links", + "timedOut": false, + "duration": 733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks1\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Create account')) return [3 /*break*/, 4];\n return [4 /*yield*/, add_1.default.getHeaderTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "165c3e9c-679b-498a-bce4-4f42ceefcf96", + "parentUUID": "dbe9e158-bda7-4c1c-8708-8454598dd2ea", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Create account' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links before login should check 'Create account' footer links", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks1\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Create account')) return [3 /*break*/, 4];\n return [4 /*yield*/, add_1.default.getHeaderTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bec4906-e596-4b7e-865f-eca29d7dcd84", + "parentUUID": "dbe9e158-bda7-4c1c-8708-8454598dd2ea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "12c6690e-cebd-47df-a61c-9cc69500a1f7", + "165c3e9c-679b-498a-bce4-4f42ceefcf96", + "1bec4906-e596-4b7e-865f-eca29d7dcd84" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2245, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1d0607c1-398a-4844-ac35-3ed29b411775", + "title": "Check 'Your Account' footer links after login with default customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login to FO", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with default customer should login to FO", + "timedOut": false, + "duration": 1246, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.default.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f23aaaf-9c6e-49ba-af0e-220bbf3cc220", + "parentUUID": "1d0607c1-398a-4844-ac35-3ed29b411775", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Information' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with default customer should check 'Information' footer links", + "timedOut": false, + "duration": 737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b8f49bd-a517-4227-971b-f86e6fbe86b7", + "parentUUID": "1d0607c1-398a-4844-ac35-3ed29b411775", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Addresses' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with default customer should check 'Addresses' footer links", + "timedOut": false, + "duration": 733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3655bf78-e0ff-40c8-b1a9-9993112cfba2", + "parentUUID": "1d0607c1-398a-4844-ac35-3ed29b411775", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Orders' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with default customer should check 'Orders' footer links", + "timedOut": false, + "duration": 749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec8ff7bf-222a-4317-ab5e-06c350dfabf9", + "parentUUID": "1d0607c1-398a-4844-ac35-3ed29b411775", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Credit slips' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with default customer should check 'Credit slips' footer links", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c567ef3-5256-4ab3-b4ab-91fb5747eb06", + "parentUUID": "1d0607c1-398a-4844-ac35-3ed29b411775", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Wishlist' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with default customer should check 'Wishlist' footer links", + "timedOut": false, + "duration": 748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88d49bd0-be8d-455a-8466-690543e6de60", + "parentUUID": "1d0607c1-398a-4844-ac35-3ed29b411775", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Sign out' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with default customer should check 'Sign out' footer links", + "timedOut": false, + "duration": 744, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks2\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "deddbb5d-a926-4d52-a119-764d584fef4a", + "parentUUID": "1d0607c1-398a-4844-ac35-3ed29b411775", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6f23aaaf-9c6e-49ba-af0e-220bbf3cc220", + "1b8f49bd-a517-4227-971b-f86e6fbe86b7", + "3655bf78-e0ff-40c8-b1a9-9993112cfba2", + "ec8ff7bf-222a-4317-ab5e-06c350dfabf9", + "9c567ef3-5256-4ab3-b4ab-91fb5747eb06", + "88d49bd0-be8d-455a-8466-690543e6de60", + "deddbb5d-a926-4d52-a119-764d584fef4a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5705, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a90b4fec-ef81-4f97-b32f-249fcab0f8e0", + "title": "PRE-TEST: Delete cache", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Delete cache\"", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache \"before all\" hook in \"PRE-TEST: Delete cache\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f73bbd20-f3d7-448b-8296-1eae8a4df04d", + "parentUUID": "a90b4fec-ef81-4f97-b32f-249fcab0f8e0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Delete cache\"", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache \"after all\" hook in \"PRE-TEST: Delete cache\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dbeebd32-98fe-491a-ba8c-2198a530665a", + "parentUUID": "a90b4fec-ef81-4f97-b32f-249fcab0f8e0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache should login in BO", + "timedOut": false, + "duration": 2686, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30f756ef-3815-4971-ab88-5d8860129c7f", + "parentUUID": "a90b4fec-ef81-4f97-b32f-249fcab0f8e0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Performance' page", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache should go to 'Advanced Parameters > Performance' page", + "timedOut": false, + "duration": 4974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest3_goToPerformancePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPerformancePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.performanceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, performance_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, performance_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(performance_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82b54bc2-d241-4d6d-be4b-9acae1dbe187", + "parentUUID": "a90b4fec-ef81-4f97-b32f-249fcab0f8e0", + "isHook": false, + "skipped": false + }, + { + "title": "should clear cache", + "fullTitle": "FO - Header and Footer : Check links in footer page PRE-TEST: Delete cache should clear cache", + "timedOut": false, + "duration": 2550, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_preTest3_clearCache\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clearCache', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, performance_1.default.clearCache(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(performance_1.default.clearCacheSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3df3604-59a9-4bbc-af1f-43654903a051", + "parentUUID": "a90b4fec-ef81-4f97-b32f-249fcab0f8e0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "30f756ef-3815-4971-ab88-5d8860129c7f", + "82b54bc2-d241-4d6d-be4b-9acae1dbe187", + "f3df3604-59a9-4bbc-af1f-43654903a051" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10210, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "44c4a5a6-cfcf-41dc-9ab0-74ccb030c6c7", + "title": "Check 'Your Account' footer links after login with new customer without address", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login to FO", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with new customer without address should login to FO", + "timedOut": false, + "duration": 2508, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_loginFONewCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFONewCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, createCustomerData)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.default.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7393a00-2efc-4f51-b8fb-704f745599c3", + "parentUUID": "44c4a5a6-cfcf-41dc-9ab0-74ccb030c6c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Information' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with new customer without address should check 'Information' footer links", + "timedOut": false, + "duration": 774, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks30\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8dc0207a-3f77-4922-aa0f-f4d07b32e5de", + "parentUUID": "44c4a5a6-cfcf-41dc-9ab0-74ccb030c6c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Add first address' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with new customer without address should check 'Add first address' footer links", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks31\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd271a99-efc8-400e-bebd-a3134b47de55", + "parentUUID": "44c4a5a6-cfcf-41dc-9ab0-74ccb030c6c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Orders' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with new customer without address should check 'Orders' footer links", + "timedOut": false, + "duration": 723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks32\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88925cce-6a6c-4540-99a3-ad0a21e4ecf4", + "parentUUID": "44c4a5a6-cfcf-41dc-9ab0-74ccb030c6c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Credit slips' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with new customer without address should check 'Credit slips' footer links", + "timedOut": false, + "duration": 728, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks33\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23a638ca-4fb6-42d1-b321-7c2582451ca0", + "parentUUID": "44c4a5a6-cfcf-41dc-9ab0-74ccb030c6c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Wishlist' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with new customer without address should check 'Wishlist' footer links", + "timedOut": false, + "duration": 765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks34\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b4d2bd33-65be-4b12-9554-b20018c3ad98", + "parentUUID": "44c4a5a6-cfcf-41dc-9ab0-74ccb030c6c7", + "isHook": false, + "skipped": false + }, + { + "title": "should check 'Sign out' footer links", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Your Account' footer links after login with new customer without address should check 'Sign out' footer links", + "timedOut": false, + "duration": 738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkYourAccountFooterLinks35\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkYourAccountFooterLinks3\".concat(index), baseContext)];\n case 1:\n _a.sent();\n // Check prices drop link\n return [4 /*yield*/, home_1.default.goToFooterLink(page, args.linkSelector)];\n case 2:\n // Check prices drop link\n _a.sent();\n if (!(args.linkSelector === 'Wishlist')) return [3 /*break*/, 4];\n return [4 /*yield*/, myWishlists_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n return [3 /*break*/, 6];\n case 4: return [4 /*yield*/, home_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n _a.label = 6;\n case 6:\n (0, chai_1.expect)(pageTitle).to.equal(args.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f2a1a73-6930-4e19-9dae-d4e2247617a8", + "parentUUID": "44c4a5a6-cfcf-41dc-9ab0-74ccb030c6c7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e7393a00-2efc-4f51-b8fb-704f745599c3", + "8dc0207a-3f77-4922-aa0f-f4d07b32e5de", + "fd271a99-efc8-400e-bebd-a3134b47de55", + "88925cce-6a6c-4540-99a3-ad0a21e4ecf4", + "23a638ca-4fb6-42d1-b321-7c2582451ca0", + "b4d2bd33-65be-4b12-9554-b20018c3ad98", + "6f2a1a73-6930-4e19-9dae-d4e2247617a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7005, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ef93ebcd-3415-47bd-a8de-58d638426495", + "title": "Check 'Store Information'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check 'Store Information'", + "fullTitle": "FO - Header and Footer : Check links in footer page Check 'Store Information' should check 'Store Information'", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkStoreInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var storeInformation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.getStoreInformation(page)];\n case 2:\n storeInformation = _a.sent();\n (0, chai_1.expect)(storeInformation).to.contains(global.INSTALL.SHOP_NAME)\n .and.to.contain(global.INSTALL.COUNTRY)\n .and.to.contains(global.BO.EMAIL);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad01488b-426d-4877-97e1-905b3b1fcb68", + "parentUUID": "ef93ebcd-3415-47bd-a8de-58d638426495", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ad01488b-426d-4877-97e1-905b3b1fcb68" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2369cbf9-9d62-4b11-9788-da807eb1add9", + "title": "Check the copyright", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the copyright", + "fullTitle": "FO - Header and Footer : Check links in footer page Check the copyright should check the copyright", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_checkCopyright\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var copyright;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCopyright', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.getCopyright(page)];\n case 2:\n copyright = _a.sent();\n (0, chai_1.expect)(copyright).to.equal(\"\\u00A9 \".concat(currentYear, \" - Ecommerce software by PrestaShop\\u2122\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79a85dc2-0a47-47f2-86dd-dd983ded5489", + "parentUUID": "2369cbf9-9d62-4b11-9788-da807eb1add9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "79a85dc2-0a47-47f2-86dd-dd983ded5489" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "940ae092-6063-41a2-b2f1-4d4883526551", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Check links in footer page Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1ee9d60-1fbb-44cd-861f-e28a4dff9664", + "parentUUID": "940ae092-6063-41a2-b2f1-4d4883526551", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Check links in footer page Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "625c49d8-6cfd-47ac-a49b-54d2b8395336", + "parentUUID": "940ae092-6063-41a2-b2f1-4d4883526551", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Check links in footer page Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 2712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b075e4c-f779-4b4c-858d-57e73c3ddcd9", + "parentUUID": "940ae092-6063-41a2-b2f1-4d4883526551", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Header and Footer : Check links in footer page Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4940, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_postTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1724194-6dca-4764-b360-8bac780d8dfd", + "parentUUID": "940ae092-6063-41a2-b2f1-4d4883526551", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Header and Footer : Check links in footer page Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1049, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_postTest_1_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42d2c248-71a9-4056-aaff-293ef8dbffb5", + "parentUUID": "940ae092-6063-41a2-b2f1-4d4883526551", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Header and Footer : Check links in footer page Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_postTest_1_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60a04a03-5be4-4a89-bc5e-360c32fd4b72", + "parentUUID": "940ae092-6063-41a2-b2f1-4d4883526551", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7b075e4c-f779-4b4c-858d-57e73c3ddcd9", + "f1724194-6dca-4764-b360-8bac780d8dfd", + "42d2c248-71a9-4056-aaff-293ef8dbffb5", + "60a04a03-5be4-4a89-bc5e-360c32fd4b72" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9485, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/02_checkLinksInFooter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Header and Footer : Check links in footer page POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a934b30-5194-4e4c-856c-948f190c0e4d", + "parentUUID": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Header and Footer : Check links in footer page POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "10a63994-ec25-496d-b406-4963b43ece5d", + "parentUUID": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Check links in footer page POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1943, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "829f97a0-1198-4337-b2c5-e0bf9cc3b183", + "parentUUID": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Header and Footer : Check links in footer page POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5201, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_postTest_2_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52bca069-cecc-4601-b766-469e0b67bb57", + "parentUUID": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Header and Footer : Check links in footer page POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_postTest_2_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b94c1ac0-4a08-4a0c-85b5-ee8e0d2b636e", + "parentUUID": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Header and Footer : Check links in footer page POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1226, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_postTest_2_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be837b20-fe26-43d0-b929-9ffa3e3fe620", + "parentUUID": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Header and Footer : Check links in footer page POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1615, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_postTest_2_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "03e28bf3-4afd-4273-883a-ae06a679a184", + "parentUUID": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Header and Footer : Check links in footer page POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_checkLinksInFooter_postTest_2_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "607b6ee7-2d07-4c57-8a5c-805dd9467c13", + "parentUUID": "1bc9dc04-5cb4-402c-b21b-3674d06b6470", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "829f97a0-1198-4337-b2c5-e0bf9cc3b183", + "52bca069-cecc-4601-b766-469e0b67bb57", + "b94c1ac0-4a08-4a0c-85b5-ee8e0d2b636e", + "be837b20-fe26-43d0-b929-9ffa3e3fe620", + "03e28bf3-4afd-4273-883a-ae06a679a184", + "607b6ee7-2d07-4c57-8a5c-805dd9467c13" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12388, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b8e15b24-12c0-41de-b2ed-4a1fccc98c88" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 697, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0525ab1e-8981-49e8-9283-63f99428e069", + "title": "FO - Header and Footer : Change currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "227cfeca-c648-4b5a-90c6-33b7a239b073", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Change currency Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 60, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4df9fdb-6dee-47f9-8642-39af44733ac8", + "parentUUID": "227cfeca-c648-4b5a-90c6-33b7a239b073", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Change currency Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "da04b011-c435-4485-9714-701b83808b93", + "parentUUID": "227cfeca-c648-4b5a-90c6-33b7a239b073", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Change currency Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6be2aacd-5a7e-40c7-ab6b-fc0d43ba20c4", + "parentUUID": "227cfeca-c648-4b5a-90c6-33b7a239b073", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Header and Footer : Change currency Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_preTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f07f0467-840f-4a8e-9d20-f6aaa65f7499", + "parentUUID": "227cfeca-c648-4b5a-90c6-33b7a239b073", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Header and Footer : Change currency Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_preTest_1_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4af88f80-c5f4-4aed-bfb8-aee1b85a8588", + "parentUUID": "227cfeca-c648-4b5a-90c6-33b7a239b073", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Header and Footer : Change currency Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 2017, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_preTest_1_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b237b7f5-289e-4078-94f4-f4d0d464f04a", + "parentUUID": "227cfeca-c648-4b5a-90c6-33b7a239b073", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Header and Footer : Change currency Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 1110, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_preTest_1_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34a79c38-5bc4-4595-be76-76add4d8d6ca", + "parentUUID": "227cfeca-c648-4b5a-90c6-33b7a239b073", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6be2aacd-5a7e-40c7-ab6b-fc0d43ba20c4", + "f07f0467-840f-4a8e-9d20-f6aaa65f7499", + "4af88f80-c5f4-4aed-bfb8-aee1b85a8588", + "b237b7f5-289e-4078-94f4-f4d0d464f04a", + "34a79c38-5bc4-4595-be76-76add4d8d6ca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11008, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa6a5526-a9ec-4461-b0f7-ec87ea81db6c", + "title": "Check links in header page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Check links in header page\"", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page \"before all\" hook in \"Check links in header page\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c18d2068-bf44-4f2d-819c-3940a46d590e", + "parentUUID": "fa6a5526-a9ec-4461-b0f7-ec87ea81db6c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Check links in header page\"", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page \"after all\" hook in \"Check links in header page\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, files_1.default.deleteFile(filePath)];\n case 1:\n _a.sent();\n return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9da6ebc6-ff4d-40bf-83cf-c35fefd3df27", + "parentUUID": "fa6a5526-a9ec-4461-b0f7-ec87ea81db6c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "b1e25212-0584-40a0-bc8b-c2bc852f9466", + "title": "PRE-TEST: Check that the block currencies is not displayed in header of FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Check that the block currencies is not displayed in header of FO should go to FO home page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97993bad-509b-482f-bd40-14a9ee41d14c", + "parentUUID": "b1e25212-0584-40a0-bc8b-c2bc852f9466", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the currencies block is not visible", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Check that the block currencies is not displayed in header of FO should check that the currencies block is not visible", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_checkCurrenciesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCurrenciesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.isCurrencyVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.be.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25e57b1b-bab1-4579-9eb2-22696fa95dda", + "parentUUID": "b1e25212-0584-40a0-bc8b-c2bc852f9466", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "97993bad-509b-482f-bd40-14a9ee41d14c", + "25e57b1b-bab1-4579-9eb2-22696fa95dda" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1700, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "99788994-44f8-47da-aa30-1664a2eec8fe", + "title": "PRE-TEST: Create currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create currency\"", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Create currency \"before all\" hook in \"PRE-TEST: Create currency\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90bc0178-0b23-4195-a067-064d2ba6df10", + "parentUUID": "99788994-44f8-47da-aa30-1664a2eec8fe", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create currency\"", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Create currency \"after all\" hook in \"PRE-TEST: Create currency\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f65ecbc7-73dc-46c1-adb4-edd8d89860c0", + "parentUUID": "99788994-44f8-47da-aa30-1664a2eec8fe", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Create currency should login in BO", + "timedOut": false, + "duration": 1907, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bf01d15-a834-4b9e-afe4-7e06e9e1690b", + "parentUUID": "99788994-44f8-47da-aa30-1664a2eec8fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Create currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 5016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_preTest_2_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e93ee0b-f518-4591-8ff5-96e6a6c95669", + "parentUUID": "99788994-44f8-47da-aa30-1664a2eec8fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Create currency should go to 'Currencies' page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_preTest_2_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cf35cc9-a07d-4562-b593-74b366041ff4", + "parentUUID": "99788994-44f8-47da-aa30-1664a2eec8fe", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create new currency page", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Create currency should go to create new currency page", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_preTest_2_goToAddNewCurrencyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewCurrencyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToAddNewCurrencyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28313770-8a65-481f-ad4c-09eee319ae1a", + "parentUUID": "99788994-44f8-47da-aa30-1664a2eec8fe", + "isHook": false, + "skipped": false + }, + { + "title": "should create currency", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page PRE-TEST: Create currency should create currency", + "timedOut": false, + "duration": 6574, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_preTest_2_createOfficialCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createOfficialCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.addOfficialCurrency(page, currencyData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "924fa850-1e21-460d-92a0-f5dd0e761d8f", + "parentUUID": "99788994-44f8-47da-aa30-1664a2eec8fe", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3bf01d15-a834-4b9e-afe4-7e06e9e1690b", + "2e93ee0b-f518-4591-8ff5-96e6a6c95669", + "4cf35cc9-a07d-4562-b593-74b366041ff4", + "28313770-8a65-481f-ad4c-09eee319ae1a", + "924fa850-1e21-460d-92a0-f5dd0e761d8f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15146, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b74af735-1ccb-4571-98f8-232d8cb5726a", + "title": "Filter by iso code of currency and get the exchange rate value ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Filter by iso code of currency and get the exchange rate value should login in BO", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d63ff05c-6295-4ace-a287-5b0447f08951", + "parentUUID": "b74af735-1ccb-4571-98f8-232d8cb5726a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Filter by iso code of currency and get the exchange rate value should go to 'International > Localization' page", + "timedOut": false, + "duration": 4982, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_goToLocalizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea5759ce-f642-4f32-8de0-d1dbfdf910b4", + "parentUUID": "b74af735-1ccb-4571-98f8-232d8cb5726a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Filter by iso code of currency and get the exchange rate value should go to 'Currencies' page", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_goToCurrenciesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6bcac27b-6a55-43bf-b874-43813d889810", + "parentUUID": "b74af735-1ccb-4571-98f8-232d8cb5726a", + "isHook": false, + "skipped": false + }, + { + "title": "should get the currency exchange rate value 'MAD'", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Filter by iso code of currency and get the exchange rate value should get the currency exchange rate value 'MAD'", + "timedOut": false, + "duration": 421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_getExchangeRate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getExchangeRate', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.mad.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getExchangeRateValue(page, 1)];\n case 3:\n // Check exchange rate\n exchangeRateValue = _a.sent();\n (0, chai_1.expect)(exchangeRateValue).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21753cd7-4049-4cae-bd6a-dc47155b7175", + "parentUUID": "b74af735-1ccb-4571-98f8-232d8cb5726a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d63ff05c-6295-4ace-a287-5b0447f08951", + "ea5759ce-f642-4f32-8de0-d1dbfdf910b4", + "6bcac27b-6a55-43bf-b874-43813d889810", + "21753cd7-4049-4cae-bd6a-dc47155b7175" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8228, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b187257d-6550-445d-ae24-215a73261be9", + "title": "Switch to another currency and check the product price", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Switch to another currency and check the product price should go to FO home page", + "timedOut": false, + "duration": 1184, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_goToFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8728e511-7b3a-47ae-b85a-b9324428bd0a", + "parentUUID": "b187257d-6550-445d-ae24-215a73261be9", + "isHook": false, + "skipped": false + }, + { + "title": "should change FO currency", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Switch to another currency and check the product price should change FO currency", + "timedOut": false, + "duration": 375, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_changeFoCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changeFoCurrency', baseContext)];\n case 1:\n _a.sent();\n // Check currency\n return [4 /*yield*/, home_1.default.changeCurrency(page, currencies_2.default.mad.isoCode, currencies_2.default.mad.symbol)];\n case 2:\n // Check currency\n _a.sent();\n return [4 /*yield*/, home_1.default.getDefaultCurrency(page)];\n case 3:\n shopCurrency = _a.sent();\n (0, chai_1.expect)(shopCurrency).to.contains(currencies_2.default.mad.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "116e8f3c-f1bf-4ab6-bcbc-6714c120286f", + "parentUUID": "b187257d-6550-445d-ae24-215a73261be9", + "isHook": false, + "skipped": false + }, + { + "title": "should search product", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Switch to another currency and check the product price should search product", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_searchProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.searchProduct(page, products_1.default.demo_11.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "393cc5da-5750-4f3e-b6c3-e67d9893f64a", + "parentUUID": "b187257d-6550-445d-ae24-215a73261be9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Switch to another currency and check the product price should check the product price", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_checkProductPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newExchangeRateValue, productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductPrice', baseContext)];\n case 1:\n _a.sent();\n newExchangeRateValue = (exchangeRateValue * products_1.default.demo_11.finalPrice).toFixed(currencies_2.default.mad.decimals);\n return [4 /*yield*/, searchResults_1.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.contains(\"\".concat(currencies_2.default.mad.symbol).concat(newExchangeRateValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa715aa0-27ca-40b1-bdc6-e8f100eb2687", + "parentUUID": "b187257d-6550-445d-ae24-215a73261be9", + "isHook": false, + "skipped": false + }, + { + "title": "should switch back to the default currency", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Switch to another currency and check the product price should switch back to the default currency", + "timedOut": false, + "duration": 189, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_switchBackDefaultFoCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var shopCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'switchBackDefaultFoCurrency', baseContext)];\n case 1:\n _a.sent();\n // Check currency\n return [4 /*yield*/, home_1.default.changeCurrency(page, currencies_2.default.euro.isoCode, currencies_2.default.euro.symbol)];\n case 2:\n // Check currency\n _a.sent();\n return [4 /*yield*/, home_1.default.getDefaultCurrency(page)];\n case 3:\n shopCurrency = _a.sent();\n (0, chai_1.expect)(shopCurrency).to.contains(currencies_2.default.euro.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "463a1769-760d-4ac3-94f1-6d447f34cebc", + "parentUUID": "b187257d-6550-445d-ae24-215a73261be9", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product price", + "fullTitle": "FO - Header and Footer : Change currency Check links in header page Switch to another currency and check the product price should check the product price", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_checkProductPrice2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var exchangeRate, productPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductPrice2', baseContext)];\n case 1:\n _a.sent();\n exchangeRate = Math.round(currencies_2.default.euro.exchangeRate * products_1.default.demo_11.finalPrice);\n return [4 /*yield*/, searchResults_1.default.getProductPrice(page)];\n case 2:\n productPrice = _a.sent();\n (0, chai_1.expect)(productPrice).to.contains(\"\".concat(currencies_2.default.euro.symbol).concat(exchangeRate));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1cb1812-2098-4f0b-902a-cceae80cd15a", + "parentUUID": "b187257d-6550-445d-ae24-215a73261be9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8728e511-7b3a-47ae-b85a-b9324428bd0a", + "116e8f3c-f1bf-4ab6-bcbc-6714c120286f", + "393cc5da-5750-4f3e-b6c3-e67d9893f64a", + "fa715aa0-27ca-40b1-bdc6-e8f100eb2687", + "463a1769-760d-4ac3-94f1-6d447f34cebc", + "a1cb1812-2098-4f0b-902a-cceae80cd15a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2582, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7226c161-0feb-48e7-8101-72bc5bc092c7", + "title": "POST-TEST: Delete currency", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "FO - Header and Footer : Change currency POST-TEST: Delete currency \"before all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b54d246f-15aa-475a-88ac-0c3400022152", + "parentUUID": "7226c161-0feb-48e7-8101-72bc5bc092c7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete currency\"", + "fullTitle": "FO - Header and Footer : Change currency POST-TEST: Delete currency \"after all\" hook in \"POST-TEST: Delete currency\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fad2fa40-6a7d-42fd-8089-4160b1fccc91", + "parentUUID": "7226c161-0feb-48e7-8101-72bc5bc092c7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Change currency POST-TEST: Delete currency should login in BO", + "timedOut": false, + "duration": 2512, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7c0e9a2-7eed-4214-bd53-1775bbbfb903", + "parentUUID": "7226c161-0feb-48e7-8101-72bc5bc092c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "FO - Header and Footer : Change currency POST-TEST: Delete currency should go to 'International > Localization' page", + "timedOut": false, + "duration": 4952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_postTest_1_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a32ec12-9a71-4e74-ae97-c0db293c026b", + "parentUUID": "7226c161-0feb-48e7-8101-72bc5bc092c7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Currencies' page", + "fullTitle": "FO - Header and Footer : Change currency POST-TEST: Delete currency should go to 'Currencies' page", + "timedOut": false, + "duration": 796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_postTest_1_goToCurrenciesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6847147a-0f58-4130-9ce0-ee5113457bf6", + "parentUUID": "7226c161-0feb-48e7-8101-72bc5bc092c7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code of currency 'MAD'", + "fullTitle": "FO - Header and Footer : Change currency POST-TEST: Delete currency should filter by iso code of currency 'MAD'", + "timedOut": false, + "duration": 340, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_postTest_1_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencyData.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getTextColumnFromTableCurrency(page, 1, 'iso_code')];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(currencyData.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de911a34-b534-4f84-8683-a91cd9bc2dc0", + "parentUUID": "7226c161-0feb-48e7-8101-72bc5bc092c7", + "isHook": false, + "skipped": false + }, + { + "title": "should delete currency", + "fullTitle": "FO - Header and Footer : Change currency POST-TEST: Delete currency should delete currency", + "timedOut": false, + "duration": 1445, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_postTest_1_deleteCurrency\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCurrency', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.deleteCurrency(page, 1)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.be.equal(currencies_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12739cc8-2565-4f02-9866-efde43818f7a", + "parentUUID": "7226c161-0feb-48e7-8101-72bc5bc092c7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d7c0e9a2-7eed-4214-bd53-1775bbbfb903", + "9a32ec12-9a71-4e74-ae97-c0db293c026b", + "6847147a-0f58-4130-9ce0-ee5113457bf6", + "de911a34-b534-4f84-8683-a91cd9bc2dc0", + "12739cc8-2565-4f02-9866-efde43818f7a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10045, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f0079b81-1df7-43d9-bd8c-c0cc0b8b52f7", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/03_changeCurrency.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Change currency Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "caf30883-2558-42b0-be1e-258abb1b6a8e", + "parentUUID": "f0079b81-1df7-43d9-bd8c-c0cc0b8b52f7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Change currency Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c060f6c3-1d86-4d3b-8b51-83796f790db0", + "parentUUID": "f0079b81-1df7-43d9-bd8c-c0cc0b8b52f7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Change currency Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1796, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7858e530-5988-42bc-abdc-6ed8b4929489", + "parentUUID": "f0079b81-1df7-43d9-bd8c-c0cc0b8b52f7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Header and Footer : Change currency Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_postTest_2_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec77a840-bed0-4eba-b175-400896fe0eda", + "parentUUID": "f0079b81-1df7-43d9-bd8c-c0cc0b8b52f7", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Header and Footer : Change currency Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1083, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_postTest_2_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db3f6c08-627c-4e7e-ad77-fed2b56ed83d", + "parentUUID": "f0079b81-1df7-43d9-bd8c-c0cc0b8b52f7", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Header and Footer : Change currency Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeCurrency_postTest_2_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fdf461e-799f-43d4-b61f-ec7dae74e78d", + "parentUUID": "f0079b81-1df7-43d9-bd8c-c0cc0b8b52f7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7858e530-5988-42bc-abdc-6ed8b4929489", + "ec77a840-bed0-4eba-b175-400896fe0eda", + "db3f6c08-627c-4e7e-ad77-fed2b56ed83d", + "2fdf461e-799f-43d4-b61f-ec7dae74e78d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8651, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f75f3c2e-5908-4b48-a2e4-475e75fd0263", + "title": "FO - Header and Footer : Change language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "6d9127d6-a154-4ee3-8747-18a786cbad15", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Change language Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56a0394e-0091-4aa1-9e14-8e11ba750e5b", + "parentUUID": "6d9127d6-a154-4ee3-8747-18a786cbad15", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Change language Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "28c7c4aa-3bf9-435a-b71b-e5812534c872", + "parentUUID": "6d9127d6-a154-4ee3-8747-18a786cbad15", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Change language Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 2079, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "655c9524-56bf-4028-bdc5-563ce5b177c7", + "parentUUID": "6d9127d6-a154-4ee3-8747-18a786cbad15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Header and Footer : Change language Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_preTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39802a88-fd2b-4782-ad03-8a2c8d621cb5", + "parentUUID": "6d9127d6-a154-4ee3-8747-18a786cbad15", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Header and Footer : Change language Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1196, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_preTest_1_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5997703-b9fe-47c9-bdbc-7734e01af898", + "parentUUID": "6d9127d6-a154-4ee3-8747-18a786cbad15", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Header and Footer : Change language Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 2030, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_preTest_1_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5cdb3f9-6d9f-42d1-bd03-e4b8ce6e2b62", + "parentUUID": "6d9127d6-a154-4ee3-8747-18a786cbad15", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Header and Footer : Change language Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_preTest_1_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "012b4666-84c1-4a82-8a5e-6bf4d1187baa", + "parentUUID": "6d9127d6-a154-4ee3-8747-18a786cbad15", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "655c9524-56bf-4028-bdc5-563ce5b177c7", + "39802a88-fd2b-4782-ad03-8a2c8d621cb5", + "b5997703-b9fe-47c9-bdbc-7734e01af898", + "a5cdb3f9-6d9f-42d1-bd03-e4b8ce6e2b62", + "012b4666-84c1-4a82-8a5e-6bf4d1187baa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11162, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a0e75344-c03d-49ea-9bea-db0773791033", + "title": "Change language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Change language\"", + "fullTitle": "FO - Header and Footer : Change language Change language \"before all\" hook in \"Change language\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6aa7e002-df48-48d2-95d3-59f6fe6b58f6", + "parentUUID": "a0e75344-c03d-49ea-9bea-db0773791033", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Change language\"", + "fullTitle": "FO - Header and Footer : Change language Change language \"after all\" hook in \"Change language\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4b27092e-8f26-4a6d-ba35-dce643ea1493", + "parentUUID": "a0e75344-c03d-49ea-9bea-db0773791033", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "ad387e95-5735-41c1-a762-f3121bafd383", + "title": "Disable 'French' language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Change language Change language Disable 'French' language should login in BO", + "timedOut": false, + "duration": 1894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c96a43d-bab9-4e76-8534-5b75b57c8051", + "parentUUID": "ad387e95-5735-41c1-a762-f3121bafd383", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "FO - Header and Footer : Change language Change language Disable 'French' language should go to 'International > Localization' page", + "timedOut": false, + "duration": 4923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_goToLocalizationPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "120ff7b1-4577-424a-93ea-b895dce24744", + "parentUUID": "ad387e95-5735-41c1-a762-f3121bafd383", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Languages' page", + "fullTitle": "FO - Header and Footer : Change language Change language Disable 'French' language should go to 'Languages' page", + "timedOut": false, + "duration": 824, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_goToLanguagesPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd1b2c61-2cf0-4148-98a9-98fed013bac6", + "parentUUID": "ad387e95-5735-41c1-a762-f3121bafd383", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Header and Footer : Change language Change language Disable 'French' language should reset all filters", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_resetFilterFirst1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguages = _a.sent();\n (0, chai_1.expect)(numberOfLanguages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ede5ea1-c405-4ffc-80e2-87249dd43b66", + "parentUUID": "ad387e95-5735-41c1-a762-f3121bafd383", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso_code 'fr'", + "fullTitle": "FO - Header and Footer : Change language Change language Disable 'French' language should filter by iso_code 'fr'", + "timedOut": false, + "duration": 903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_filterToQuickEdit1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit1', baseContext)];\n case 1:\n _a.sent();\n // Filter table\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'iso_code', languages_2.default.french.isoCode)];\n case 2:\n // Filter table\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(languages_2.default.french.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9901bf96-4aef-4ff5-820d-0715207c9bbd", + "parentUUID": "ad387e95-5735-41c1-a762-f3121bafd383", + "isHook": false, + "skipped": false + }, + { + "title": "should disable language", + "fullTitle": "FO - Header and Footer : Change language Change language Disable 'French' language should disable language", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_disableLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, languageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.setStatus(page, 1, false)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, languages_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(languages_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, languages_1.default.getStatus(page, 1)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb3eca45-74c0-4db4-ba50-257ae01ce924", + "parentUUID": "ad387e95-5735-41c1-a762-f3121bafd383", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Header and Footer : Change language Change language Disable 'French' language should reset all filters", + "timedOut": false, + "duration": 2326, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_quickEditReset1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickEditReset1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguages = _a.sent();\n (0, chai_1.expect)(numberOfLanguages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c31f363-5425-4b95-ba00-b9c2fb5105f6", + "parentUUID": "ad387e95-5735-41c1-a762-f3121bafd383", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6c96a43d-bab9-4e76-8534-5b75b57c8051", + "120ff7b1-4577-424a-93ea-b895dce24744", + "bd1b2c61-2cf0-4148-98a9-98fed013bac6", + "4ede5ea1-c405-4ffc-80e2-87249dd43b66", + "9901bf96-4aef-4ff5-820d-0715207c9bbd", + "cb3eca45-74c0-4db4-ba50-257ae01ce924", + "8c31f363-5425-4b95-ba00-b9c2fb5105f6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11194, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a87328b8-a50d-4ce7-8ddd-e9bcb4b031b6", + "title": "Check that the languages list is not visible", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Header and Footer : Change language Change language Check that the languages list is not visible should go to FO home page", + "timedOut": false, + "duration": 586, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_goToFO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b926423e-e8b5-4d20-88ee-8d7be970d390", + "parentUUID": "a87328b8-a50d-4ce7-8ddd-e9bcb4b031b6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the languages list is not visible", + "fullTitle": "FO - Header and Footer : Change language Change language Check that the languages list is not visible should check that the languages list is not visible", + "timedOut": false, + "duration": 1001, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_checkLanguageListNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLanguageListNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.isLanguageListVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Language list is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66a542a0-b5ae-4473-86c8-a84b8806416b", + "parentUUID": "a87328b8-a50d-4ce7-8ddd-e9bcb4b031b6", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the shop language is 'English'", + "fullTitle": "FO - Header and Footer : Change language Change language Check that the languages list is not visible should check that the shop language is 'English'", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_checkShopLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var language;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkShopLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.getShopLanguage(page)];\n case 2:\n language = _a.sent();\n (0, chai_1.expect)(language).to.equal('en-US');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bff917b-c1c5-4a9d-9ce5-8c3a80e92948", + "parentUUID": "a87328b8-a50d-4ce7-8ddd-e9bcb4b031b6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b926423e-e8b5-4d20-88ee-8d7be970d390", + "66a542a0-b5ae-4473-86c8-a84b8806416b", + "1bff917b-c1c5-4a9d-9ce5-8c3a80e92948" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1590, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0e495d2b-627e-4e7b-8467-caa680f44c85", + "title": "Enable 'French' language", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "FO - Header and Footer : Change language Change language Enable 'French' language should go to BO", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_openBOPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openBOPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToBO(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d509654c-807e-4a55-9e8e-39c83b48e577", + "parentUUID": "0e495d2b-627e-4e7b-8467-caa680f44c85", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Localization' page", + "fullTitle": "FO - Header and Footer : Change language Change language Enable 'French' language should go to 'International > Localization' page", + "timedOut": false, + "duration": 4672, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_goToLocalizationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "998c218d-b00a-43a5-87f3-889f85dec4b2", + "parentUUID": "0e495d2b-627e-4e7b-8467-caa680f44c85", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Languages' page", + "fullTitle": "FO - Header and Footer : Change language Change language Enable 'French' language should go to 'Languages' page", + "timedOut": false, + "duration": 754, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_goToLanguagesPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLanguagesPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabLanguages(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, languages_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(languages_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05cc8268-4c4c-4511-afc1-047b247fbdef", + "parentUUID": "0e495d2b-627e-4e7b-8467-caa680f44c85", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso_code 'fr'", + "fullTitle": "FO - Header and Footer : Change language Change language Enable 'French' language should filter by iso_code 'fr'", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_filterToQuickEdit2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguagesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToQuickEdit2', baseContext)];\n case 1:\n _a.sent();\n // Filter table\n return [4 /*yield*/, languages_1.default.filterTable(page, 'input', 'iso_code', languages_2.default.french.isoCode)];\n case 2:\n // Filter table\n _a.sent();\n return [4 /*yield*/, languages_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfLanguagesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfLanguagesAfterFilter).to.be.at.least(1);\n return [4 /*yield*/, languages_1.default.getTextColumnFromTable(page, 1, 'iso_code')];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(languages_2.default.french.isoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9610fc6c-23c6-499f-94be-68f4f18de1b4", + "parentUUID": "0e495d2b-627e-4e7b-8467-caa680f44c85", + "isHook": false, + "skipped": false + }, + { + "title": "should enable language", + "fullTitle": "FO - Header and Footer : Change language Change language Enable 'French' language should enable language", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_enableLanguage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isActionPerformed, resultMessage, languageStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableLanguage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.setStatus(page, 1, true)];\n case 2:\n isActionPerformed = _a.sent();\n if (!isActionPerformed) return [3 /*break*/, 4];\n return [4 /*yield*/, languages_1.default.getAlertSuccessBlockParagraphContent(page)];\n case 3:\n resultMessage = _a.sent();\n (0, chai_1.expect)(resultMessage).to.contains(languages_1.default.successfulUpdateStatusMessage);\n _a.label = 4;\n case 4: return [4 /*yield*/, languages_1.default.getStatus(page, 1)];\n case 5:\n languageStatus = _a.sent();\n (0, chai_1.expect)(languageStatus).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97452093-7bd9-4648-a7a8-225cee1514a3", + "parentUUID": "0e495d2b-627e-4e7b-8467-caa680f44c85", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Header and Footer : Change language Change language Enable 'French' language should reset all filters", + "timedOut": false, + "duration": 2319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_quickEditReset2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfLanguages;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'quickEditReset2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, languages_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfLanguages = _a.sent();\n (0, chai_1.expect)(numberOfLanguages).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16ed076e-408c-42d6-ba0a-544b34bdf23d", + "parentUUID": "0e495d2b-627e-4e7b-8467-caa680f44c85", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d509654c-807e-4a55-9e8e-39c83b48e577", + "998c218d-b00a-43a5-87f3-889f85dec4b2", + "05cc8268-4c4c-4511-afc1-047b247fbdef", + "9610fc6c-23c6-499f-94be-68f4f18de1b4", + "97452093-7bd9-4648-a7a8-225cee1514a3", + "16ed076e-408c-42d6-ba0a-544b34bdf23d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9228, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ad36ff50-7e30-4660-9995-f737cfc83bb4", + "title": "Change language and check it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "FO - Header and Footer : Change language Change language Change language and check it should go to FO home page", + "timedOut": false, + "duration": 435, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_goToFO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74250629-c839-4e95-9f69-ea0b10ac43ea", + "parentUUID": "ad36ff50-7e30-4660-9995-f737cfc83bb4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the languages list is visible", + "fullTitle": "FO - Header and Footer : Change language Change language Change language and check it should check that the languages list is visible", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_checkLanguageListVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLanguageListVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.isLanguageListVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Language list is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89a5693c-15ef-417a-b954-9d5adeff54d7", + "parentUUID": "ad36ff50-7e30-4660-9995-f737cfc83bb4", + "isHook": false, + "skipped": false + }, + { + "title": "should change the shop language to 'French'", + "fullTitle": "FO - Header and Footer : Change language Change language Change language and check it should change the shop language to 'French'", + "timedOut": false, + "duration": 1367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_ChangeLanguageToFrench\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var language;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ChangeLanguageToFrench', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.changeLanguage(page, 'fr')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.getDefaultShopLanguage(page)];\n case 3:\n language = _a.sent();\n (0, chai_1.expect)(language, 'Language is not changed to French!').to.equal('Français');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0922bc9-0088-4a00-a8b3-48550b130b9f", + "parentUUID": "ad36ff50-7e30-4660-9995-f737cfc83bb4", + "isHook": false, + "skipped": false + }, + { + "title": "should change the shop language to 'English'", + "fullTitle": "FO - Header and Footer : Change language Change language Change language and check it should change the shop language to 'English'", + "timedOut": false, + "duration": 247, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_ChangeLanguageToEnglish\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var language;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ChangeLanguageToEnglish', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.changeLanguage(page, 'en')];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.getDefaultShopLanguage(page)];\n case 3:\n language = _a.sent();\n (0, chai_1.expect)(language, 'Language is not changed to English!').to.equal('English');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4465a37-0b70-45f4-91b1-57cdefad5592", + "parentUUID": "ad36ff50-7e30-4660-9995-f737cfc83bb4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74250629-c839-4e95-9f69-ea0b10ac43ea", + "89a5693c-15ef-417a-b954-9d5adeff54d7", + "e0922bc9-0088-4a00-a8b3-48550b130b9f", + "e4465a37-0b70-45f4-91b1-57cdefad5592" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2060, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "da63ac76-6ee2-4a15-9668-4cf2586a71f0", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "file": "/campaigns/functional/FO/hummingbird/02_headerAndFooter/04_changeLanguage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Change language Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "848f5a60-baed-475d-bb56-765b24f1d1aa", + "parentUUID": "da63ac76-6ee2-4a15-9668-4cf2586a71f0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Header and Footer : Change language Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "15f7b027-ead3-4fc9-8835-66ceefdb645d", + "parentUUID": "da63ac76-6ee2-4a15-9668-4cf2586a71f0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Header and Footer : Change language Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43681877-a4e6-4101-a6fe-195d4a1c1785", + "parentUUID": "da63ac76-6ee2-4a15-9668-4cf2586a71f0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Header and Footer : Change language Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_postTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "613a5bae-076b-4986-b48b-a7cf000557d7", + "parentUUID": "da63ac76-6ee2-4a15-9668-4cf2586a71f0", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Header and Footer : Change language Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_postTest_1_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b967ae59-5193-4a29-93ef-0604b094e24a", + "parentUUID": "da63ac76-6ee2-4a15-9668-4cf2586a71f0", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Header and Footer : Change language Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 765, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_headerAndFooter_changeLanguage_postTest_1_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38b5742a-6c63-4e7b-ac4a-8a5f2da8a4ec", + "parentUUID": "da63ac76-6ee2-4a15-9668-4cf2586a71f0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "43681877-a4e6-4101-a6fe-195d4a1c1785", + "613a5bae-076b-4986-b48b-a7cf000557d7", + "b967ae59-5193-4a29-93ef-0604b094e24a", + "38b5742a-6c63-4e7b-ac4a-8a5f2da8a4ec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8446, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4d8b4e24-4f7b-4faf-89ad-1663fc6759a0", + "title": "FO - Account : Edit information", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "file": "/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "c81dab5f-e917-4d8f-b358-8512519aae82", + "title": "PRE-TEST: Create account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "file": "/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Account : Edit information PRE-TEST: Create account on FO \"before all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "911c6804-8dc1-40a3-a16a-19496b926913", + "parentUUID": "c81dab5f-e917-4d8f-b358-8512519aae82", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create account on FO\"", + "fullTitle": "FO - Account : Edit information PRE-TEST: Create account on FO \"after all\" hook in \"PRE-TEST: Create account on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7072eea2-4e64-4488-a1ed-79f57a5739de", + "parentUUID": "c81dab5f-e917-4d8f-b358-8512519aae82", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "FO - Account : Edit information PRE-TEST: Create account on FO should open FO page", + "timedOut": false, + "duration": 1915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_preTest_0_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a23de6e-11bd-48de-aaff-a337219b240c", + "parentUUID": "c81dab5f-e917-4d8f-b358-8512519aae82", + "isHook": false, + "skipped": false + }, + { + "title": "should go to create account page", + "fullTitle": "FO - Account : Edit information PRE-TEST: Create account on FO should go to create account page", + "timedOut": false, + "duration": 1446, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_preTest_0_goToCreateAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageHeaderTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToCreateAccountPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.getHeaderTitle(page)];\n case 4:\n pageHeaderTitle = _a.sent();\n (0, chai_1.expect)(pageHeaderTitle).to.equal(add_1.createAccountPage.formTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ef24a75-5486-4c6f-b474-5983f366dabf", + "parentUUID": "c81dab5f-e917-4d8f-b358-8512519aae82", + "isHook": false, + "skipped": false + }, + { + "title": "should create new account", + "fullTitle": "FO - Account : Edit information PRE-TEST: Create account on FO should create new account", + "timedOut": false, + "duration": 1202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_preTest_0_createAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.createAccount(page, customerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15687c87-927c-478b-a55e-e82955158e1b", + "parentUUID": "c81dab5f-e917-4d8f-b358-8512519aae82", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "FO - Account : Edit information PRE-TEST: Create account on FO should sign out from FO", + "timedOut": false, + "duration": 1978, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_preTest_0_signOutFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.createAccountPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39f12df0-564f-4819-a5d9-f44fe0dd38ae", + "parentUUID": "c81dab5f-e917-4d8f-b358-8512519aae82", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1a23de6e-11bd-48de-aaff-a337219b240c", + "8ef24a75-5486-4c6f-b474-5983f366dabf", + "15687c87-927c-478b-a55e-e82955158e1b", + "39f12df0-564f-4819-a5d9-f44fe0dd38ae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6541, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "58d30f6e-42af-4879-9368-e06e6d9f88d4", + "title": "Install Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "file": "/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Account : Edit information Install Hummingbird theme \"before all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b08ee3f-9ae9-4a43-972b-342b4d6fb259", + "parentUUID": "58d30f6e-42af-4879-9368-e06e6d9f88d4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Hummingbird theme\"", + "fullTitle": "FO - Account : Edit information Install Hummingbird theme \"after all\" hook in \"Install Hummingbird theme\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "88db4760-b4ed-425e-98a9-11b2beb4220d", + "parentUUID": "58d30f6e-42af-4879-9368-e06e6d9f88d4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Edit information Install Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1925, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0ce6816-08db-44ab-93d2-91d50af89908", + "parentUUID": "58d30f6e-42af-4879-9368-e06e6d9f88d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Account : Edit information Install Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_preTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b92f8d0e-2479-4f6e-ac2b-ba137f466c81", + "parentUUID": "58d30f6e-42af-4879-9368-e06e6d9f88d4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Add new theme' page", + "fullTitle": "FO - Account : Edit information Install Hummingbird theme should go to 'Add new theme' page", + "timedOut": false, + "duration": 1188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_preTest_1_goToAddNewTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToNewThemePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, import_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(import_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4cab0f2-6cd7-4891-92d3-842c68a6215e", + "parentUUID": "58d30f6e-42af-4879-9368-e06e6d9f88d4", + "isHook": false, + "skipped": false + }, + { + "title": "should import from the web the Hummingbird theme", + "fullTitle": "FO - Account : Edit information Install Hummingbird theme should import from the web the Hummingbird theme", + "timedOut": false, + "duration": 2055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_preTest_1_importTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'importTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, import_1.default.importFromWeb(page, urlTheme)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 4:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c3d1fbf-a063-488d-b8c1-92e7e21bfaa5", + "parentUUID": "58d30f6e-42af-4879-9368-e06e6d9f88d4", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Hummingbird", + "fullTitle": "FO - Account : Edit information Install Hummingbird theme should enable the theme Hummingbird", + "timedOut": false, + "duration": 1012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_preTest_1_enableThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d4d990f-ef17-4560-b8f7-7d88d7b3ee24", + "parentUUID": "58d30f6e-42af-4879-9368-e06e6d9f88d4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d0ce6816-08db-44ab-93d2-91d50af89908", + "b92f8d0e-2479-4f6e-ac2b-ba137f466c81", + "f4cab0f2-6cd7-4891-92d3-842c68a6215e", + "5c3d1fbf-a063-488d-b8c1-92e7e21bfaa5", + "8d4d990f-ef17-4560-b8f7-7d88d7b3ee24" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11043, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5838481e-225f-4f82-96ba-ca72d16311a4", + "title": "Edit the created account in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "file": "/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Edit the created account in FO\"", + "fullTitle": "FO - Account : Edit information Edit the created account in FO \"before all\" hook in \"Edit the created account in FO\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77230b75-3bcc-43ee-a220-b1fc9391d21b", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Edit the created account in FO\"", + "fullTitle": "FO - Account : Edit information Edit the created account in FO \"after all\" hook in \"Edit the created account in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "93c86aea-0702-4897-ae66-49ef9803ddb5", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should open the shop page", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.default.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f18ed1c9-4150-41de-8f14-cc1b7eb99184", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should go to login page", + "timedOut": false, + "duration": 767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c22d29b-bccd-46c4-9506-8696b0368469", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should login", + "timedOut": false, + "duration": 718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.default.customerLogin(page, createCustomerData)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f81752bc-d642-461e-ace2-2945c884eb96", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should go to my account page", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_goToMyAccountPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMyAccountPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.default.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(myAccount_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d129a0e-9504-4580-97d0-a27f762271de", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should go account information page", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should go account information page", + "timedOut": false, + "duration": 757, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_goToAccountInformationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountInformationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.default.goToInformationPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(identity_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96b628db-611e-44fc-95c8-acc4299e87d3", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "case 1 - should edit the account information ** re-enter the same password and leave new password empty", + "fullTitle": "FO - Account : Edit information Edit the created account in FO case 1 - should edit the account information ** re-enter the same password and leave new password empty", + "timedOut": false, + "duration": 1015, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62d8819c-f882-4ad2-beb2-7d48e691e248", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the account is still connected after update", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check that the account is still connected after update", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_connectedUpdatedAccount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'connectedUpdatedAccount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.isCustomerConnected(page)];\n case 2:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12193ae0-56ae-485c-9f76-0248e7d102a9", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "case 2 - should edit the account information ** enter a wrong password and leave new password empty", + "fullTitle": "FO - Account : Edit information Edit the created account in FO case 2 - should edit the account information ** enter a wrong password and leave new password empty", + "timedOut": false, + "duration": 1441, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, 'wrongPass', editCustomerData1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.errorUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2702ca34-123e-42af-ba3a-dbd3fdde536b", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error alerts 'Invalid email/password combination'", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check the error alerts 'Invalid email/password combination'", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_checkErrorAlerts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorAlerts2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getInvalidEmailAlert(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Invalid email/password alert is not visible!').to\n .equal(identity_1.default.invalidEmailAlertMessage);\n return [4 /*yield*/, identity_1.default.getInvalidPasswordAlert(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Invalid email/password alert is not visible!').to\n .equal(identity_1.default.invalidEmailAlertMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4298b1b0-8b92-47cb-883a-e5499b1535cd", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "Case 3 - should edit the account information ** enter a new password with repeated words", + "fullTitle": "FO - Account : Edit information Edit the created account in FO Case 3 - should edit the account information ** enter a new password with repeated words", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData2)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.errorUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a917bb2-6516-4de2-b565-6fe70604cbfd", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the minimum score alert on new password block", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check the minimum score alert on new password block", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_checkErrorAlerts3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorAlerts3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getInvalidNewPasswordAlert(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.noRepeatMessage);\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.noCommonWordsMessage);\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.noRepeatedWordsMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7eb9094-c18c-4b18-a110-cb9b17549091", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "Case 4 - should edit the account information ** enter a new password between 5 and 8 characters", + "fullTitle": "FO - Account : Edit information Edit the created account in FO Case 4 - should edit the account information ** enter a new password between 5 and 8 characters", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData3)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.errorUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1bc7199-d516-4665-a6c9-eac5c3e80809", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error alerts on new password block", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check the error alerts on new password block", + "timedOut": false, + "duration": 17, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_checkErrorAlerts4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorAlerts4', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getInvalidNewPasswordAlert(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Invalid number of characters words alert is not visible!').to\n .contains(identity_1.default.invalidNumberOfCharacters);\n return [4 /*yield*/, identity_1.default.getInvalidNewPasswordAlert(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Minimum score alert is not visible!').to\n .contains(identity_1.default.minimumScoreAlertMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9860c14a-2aa6-4b0c-80e2-2bee168b5fc0", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "Case 5 - should edit the account information ** enter a new password with an old similar password", + "fullTitle": "FO - Account : Edit information Edit the created account in FO Case 5 - should edit the account information ** enter a new password with an old similar password", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData4)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.errorUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd244fa7-4874-4ab3-b4d0-450221bf1245", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error alert on new password block", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check the error alert on new password block", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_checkErrorAlerts5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorAlerts5', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getInvalidNewPasswordAlert(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.commonUsedPasswordMessage);\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.changeCommonPasswordMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7e005fa-e30f-4cd6-b70b-38c83c1606f6", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "Case 6 - should edit the account information ** update password with simple characters", + "fullTitle": "FO - Account : Edit information Edit the created account in FO Case 6 - should edit the account information ** update password with simple characters", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData5)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.errorUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f57a3775-4a1f-41de-9364-6d5fd0955612", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error alert on new password block", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check the error alert on new password block", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_checkErrorAlerts6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorAlerts6', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getInvalidNewPasswordAlert(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult, 'Minimum score password alert is not visible!').to\n .contains(identity_1.default.minimumScoreAlertMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc59f70f-61c2-476c-8cd9-49141d0b0ea2", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "Case 7 - should edit the account information ** update password with common password", + "fullTitle": "FO - Account : Edit information Edit the created account in FO Case 7 - should edit the account information ** update password with common password", + "timedOut": false, + "duration": 857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData6)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.errorUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff2ae701-d9c0-4097-add3-0367b183269e", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error alert on new password block", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check the error alert on new password block", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_checkErrorAlerts7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorAlerts7', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getInvalidNewPasswordAlert(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.veryCommonPasswordMessage);\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.changeCommonPasswordMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21e0dd28-ddba-4d2f-8a92-c4447366ee33", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "Case 8 - should edit the account information ** update password with top 10 common password", + "fullTitle": "FO - Account : Edit information Edit the created account in FO Case 8 - should edit the account information ** update password with top 10 common password", + "timedOut": false, + "duration": 865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount8', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData7)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.errorUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "224b7877-34d1-43c1-a98f-cea61398112b", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error alert on new password block", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check the error alert on new password block", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_checkErrorAlerts8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorAlerts8', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getInvalidNewPasswordAlert(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.top10CommonPasswordMessage);\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.changeCommonPasswordMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6e096f3a-04d4-44a0-8b3b-72dc67d283cc", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "Case 9 - should edit the account information ** update password with the same characters", + "fullTitle": "FO - Account : Edit information Edit the created account in FO Case 9 - should edit the account information ** update password with the same characters", + "timedOut": false, + "duration": 862, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount9', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData8)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.errorUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "069971c9-80ca-4b38-9656-aefdb256f01f", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the error alert on new password block", + "fullTitle": "FO - Account : Edit information Edit the created account in FO should check the error alert on new password block", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_checkErrorAlerts9\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkErrorAlerts9', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.getInvalidNewPasswordAlert(page)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.repeatGuessMessage);\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.changeCommonPasswordMessage);\n (0, chai_1.expect)(textResult).to.contains(identity_1.default.noRepeatedWordsMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce43fe88-a76e-456a-abca-ed0d6a7bf45a", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + }, + { + "title": "Case 10 - should edit the account information ** update password with a good new password", + "fullTitle": "FO - Account : Edit information Edit the created account in FO Case 10 - should edit the account information ** update password with a good new password", + "timedOut": false, + "duration": 1043, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_editAccount10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editAccount10', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, identity_1.default.editAccount(page, createCustomerData.password, editCustomerData9)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal(identity_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ad46657-f92a-4d67-afbf-38fc509cd636", + "parentUUID": "5838481e-225f-4f82-96ba-ca72d16311a4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f18ed1c9-4150-41de-8f14-cc1b7eb99184", + "6c22d29b-bccd-46c4-9506-8696b0368469", + "f81752bc-d642-461e-ace2-2945c884eb96", + "6d129a0e-9504-4580-97d0-a27f762271de", + "96b628db-611e-44fc-95c8-acc4299e87d3", + "62d8819c-f882-4ad2-beb2-7d48e691e248", + "12193ae0-56ae-485c-9f76-0248e7d102a9", + "2702ca34-123e-42af-ba3a-dbd3fdde536b", + "4298b1b0-8b92-47cb-883a-e5499b1535cd", + "8a917bb2-6516-4de2-b565-6fe70604cbfd", + "c7eb9094-c18c-4b18-a110-cb9b17549091", + "d1bc7199-d516-4665-a6c9-eac5c3e80809", + "9860c14a-2aa6-4b0c-80e2-2bee168b5fc0", + "bd244fa7-4874-4ab3-b4d0-450221bf1245", + "c7e005fa-e30f-4cd6-b70b-38c83c1606f6", + "f57a3775-4a1f-41de-9364-6d5fd0955612", + "cc59f70f-61c2-476c-8cd9-49141d0b0ea2", + "ff2ae701-d9c0-4097-add3-0367b183269e", + "21e0dd28-ddba-4d2f-8a92-c4447366ee33", + "224b7877-34d1-43c1-a98f-cea61398112b", + "6e096f3a-04d4-44a0-8b3b-72dc67d283cc", + "069971c9-80ca-4b38-9656-aefdb256f01f", + "ce43fe88-a76e-456a-abca-ed0d6a7bf45a", + "7ad46657-f92a-4d67-afbf-38fc509cd636" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13406, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "title": "POST-TEST: Delete customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "file": "/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Account : Edit information POST-TEST: Delete customer \"before all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89b9a8ce-5287-4e6c-b694-2f6476d911c1", + "parentUUID": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete customer\"", + "fullTitle": "FO - Account : Edit information POST-TEST: Delete customer \"after all\" hook in \"POST-TEST: Delete customer\"", + "timedOut": false, + "duration": 16, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4650f6f0-5f7d-4929-8f5d-216d3a4835bc", + "parentUUID": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Edit information POST-TEST: Delete customer should login in BO", + "timedOut": false, + "duration": 1911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79265b97-be71-45da-a84b-704bbcd7ff7b", + "parentUUID": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "isHook": false, + "skipped": false + }, + { + "title": "should go 'Customers > Customers' page", + "fullTitle": "FO - Account : Edit information POST-TEST: Delete customer should go 'Customers > Customers' page", + "timedOut": false, + "duration": 5062, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_postTest_0_goToCustomersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCustomersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customersParentLink, dashboard_1.default.customersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(customers_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33c7e60c-04bf-4de7-b100-7a493c5b12d0", + "parentUUID": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "FO - Account : Edit information POST-TEST: Delete customer should reset all filters", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_postTest_0_resetCustomerFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCustomerFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomers = _a.sent();\n (0, chai_1.expect)(numberOfCustomers).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a3e9b431-1fee-4f63-bc77-86306b3d8a6d", + "parentUUID": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by customer email", + "fullTitle": "FO - Account : Edit information POST-TEST: Delete customer should filter list by customer email", + "timedOut": false, + "duration": 1138, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_postTest_0_filterToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.filterCustomers(page, 'input', 'email', customerData.email)];\n case 2:\n _a.sent();\n return [4 /*yield*/, customers_1.default.getTextColumnFromTableCustomers(page, 1, 'email')];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(customerData.email);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d722c7a7-8337-4a4a-b7c7-2f28242e025b", + "parentUUID": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "isHook": false, + "skipped": false + }, + { + "title": "should delete customer and check result", + "fullTitle": "FO - Account : Edit information POST-TEST: Delete customer should delete customer and check result", + "timedOut": false, + "duration": 1630, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_postTest_0_deleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.deleteCustomer(page, 1)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.equal(customers_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea834a41-bdc9-4392-ba2c-fd8d92e4b44e", + "parentUUID": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of customers", + "fullTitle": "FO - Account : Edit information POST-TEST: Delete customer should reset filter and check the number of customers", + "timedOut": false, + "duration": 376, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_postTest_0_resetAfterDeleteCustomer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCustomersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetAfterDeleteCustomer', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, customers_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCustomersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfCustomersAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df457f0d-5dad-4936-a405-66da0c4a8f00", + "parentUUID": "6aa96919-5b9d-4998-a7cd-9552d226ab09", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "79265b97-be71-45da-a84b-704bbcd7ff7b", + "33c7e60c-04bf-4de7-b100-7a493c5b12d0", + "a3e9b431-1fee-4f63-bc77-86306b3d8a6d", + "d722c7a7-8337-4a4a-b7c7-2f28242e025b", + "ea834a41-bdc9-4392-ba2c-fd8d92e4b44e", + "df457f0d-5dad-4936-a405-66da0c4a8f00" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12125, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d438e189-4599-4d84-9183-91e506871e5b", + "title": "Uninstall Hummingbird theme", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "file": "/campaigns/functional/FO/hummingbird/03_userAccount/01_editInformation.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Account : Edit information Uninstall Hummingbird theme \"before all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 58, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47677947-4b0c-46c3-af6a-bb286f0f3e8e", + "parentUUID": "d438e189-4599-4d84-9183-91e506871e5b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Uninstall Hummingbird theme\"", + "fullTitle": "FO - Account : Edit information Uninstall Hummingbird theme \"after all\" hook in \"Uninstall Hummingbird theme\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "caeb7444-0c6e-4392-96e7-8f3c7d8e70ef", + "parentUUID": "d438e189-4599-4d84-9183-91e506871e5b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "FO - Account : Edit information Uninstall Hummingbird theme should login in BO", + "timedOut": false, + "duration": 1838, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2893b314-1b57-494a-bfdc-f843681000cc", + "parentUUID": "d438e189-4599-4d84-9183-91e506871e5b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "FO - Account : Edit information Uninstall Hummingbird theme should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4879, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_postTest_1_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 5:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77a545db-2ed5-4afa-9788-dca59275bf2f", + "parentUUID": "d438e189-4599-4d84-9183-91e506871e5b", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the theme Classic", + "fullTitle": "FO - Account : Edit information Uninstall Hummingbird theme should enable the theme Classic", + "timedOut": false, + "duration": 1024, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_postTest_1_enableThemeClassic\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableThemeClassic', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.enableTheme(page, 'classic')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1aee252-e8be-4eba-8f63-0bbed3a925f5", + "parentUUID": "d438e189-4599-4d84-9183-91e506871e5b", + "isHook": false, + "skipped": false + }, + { + "title": "should remove the theme Hummingbird", + "fullTitle": "FO - Account : Edit information Uninstall Hummingbird theme should remove the theme Hummingbird", + "timedOut": false, + "duration": 780, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_FO_hummingbird_userAccount_editInformation_postTest_1_removeThemeHummingbird\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, numThemes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'removeThemeHummingbird', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.removeTheme(page, 'hummingbird')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(themeAndLogo_1.default.successfulDeleteMessage);\n return [4 /*yield*/, themeAndLogo_1.default.getNumberOfThemes(page)];\n case 3:\n numThemes = _a.sent();\n (0, chai_1.expect)(numThemes).to.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c532b42f-6c0a-45ed-bcfc-21236aac0407", + "parentUUID": "d438e189-4599-4d84-9183-91e506871e5b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2893b314-1b57-494a-bfdc-f843681000cc", + "77a545db-2ed5-4afa-9788-dca59275bf2f", + "c1aee252-e8be-4eba-8f63-0bbed3a925f5", + "c532b42f-6c0a-45ed-bcfc-21236aac0407" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8521, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "6ea7f912-1119-4d4e-94ff-f7798900a2ba", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1052, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "729c789f-326d-4d19-83d2-327f215484ce", + "parentUUID": "6ea7f912-1119-4d4e-94ff-f7798900a2ba", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "621c7ef4-caa5-4929-97b2-c4d34063bef2", + "parentUUID": "6ea7f912-1119-4d4e-94ff-f7798900a2ba", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5aa895e3-46df-462a-8456-36871b6d679f", + "parentUUID": "6ea7f912-1119-4d4e-94ff-f7798900a2ba", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a7addae4-1a55-4f43-b34e-7fdb1b327005", + "title": "WS - Countries : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"WS - Countries : CRUD\"", + "fullTitle": "WS - Countries : CRUD \"before all\" hook in \"WS - Countries : CRUD\"", + "timedOut": false, + "duration": 55, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.FO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d54fbde2-74c0-4c56-bd0d-9725f430d7a8", + "parentUUID": "a7addae4-1a55-4f43-b34e-7fdb1b327005", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"WS - Countries : CRUD\"", + "fullTitle": "WS - Countries : CRUD \"after all\" hook in \"WS - Countries : CRUD\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "51c600bf-7879-4915-9704-0c70b3f7fc14", + "parentUUID": "a7addae4-1a55-4f43-b34e-7fdb1b327005", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c4f0efe8-4c8f-4ec7-a540-d0b6dccd0117", + "title": "Enable the Webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the Webservice\"", + "fullTitle": "WS - Countries : CRUD Enable the Webservice \"before all\" hook in \"Enable the Webservice\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a9bee70-8849-4526-8afd-51c8317a7230", + "parentUUID": "c4f0efe8-4c8f-4ec7-a540-d0b6dccd0117", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the Webservice\"", + "fullTitle": "WS - Countries : CRUD Enable the Webservice \"after all\" hook in \"Enable the Webservice\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a2bf518b-3be9-474d-a38a-0022c56ba0a3", + "parentUUID": "c4f0efe8-4c8f-4ec7-a540-d0b6dccd0117", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Countries : CRUD Enable the Webservice should login in BO", + "timedOut": false, + "duration": 6583, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47e380f5-2808-4c82-9fe0-0fa2d712eeda", + "parentUUID": "c4f0efe8-4c8f-4ec7-a540-d0b6dccd0117", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Countries : CRUD Enable the Webservice should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 5310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_preTest_1_goToAdvParametersWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvParametersWebservice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95677f9e-9168-4a62-8c8f-1bb51d4daafa", + "parentUUID": "c4f0efe8-4c8f-4ec7-a540-d0b6dccd0117", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the webservice", + "fullTitle": "WS - Countries : CRUD Enable the Webservice should enable the webservice", + "timedOut": false, + "duration": 990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_preTest_1_setWebserviceStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWebserviceStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setWebserviceStatus(page, status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(webservice_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1659c662-9aed-4d8e-9888-ce16ae168f9b", + "parentUUID": "c4f0efe8-4c8f-4ec7-a540-d0b6dccd0117", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "47e380f5-2808-4c82-9fe0-0fa2d712eeda", + "95677f9e-9168-4a62-8c8f-1bb51d4daafa", + "1659c662-9aed-4d8e-9888-ce16ae168f9b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12883, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a50e6af7-caf3-42ee-b2ea-acacffa490c4", + "title": "Add a new webservice key named \"Webservice Key - Countries\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Add a new webservice key named \"Webservice Key - Countries\"\"", + "fullTitle": "WS - Countries : CRUD Add a new webservice key named \"Webservice Key - Countries\" \"before all\" hook in \"Add a new webservice key named \"Webservice Key - Countries\"\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c06308e-f8c3-4f9f-a005-cbcd65f9764a", + "parentUUID": "a50e6af7-caf3-42ee-b2ea-acacffa490c4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Add a new webservice key named \"Webservice Key - Countries\"\"", + "fullTitle": "WS - Countries : CRUD Add a new webservice key named \"Webservice Key - Countries\" \"after all\" hook in \"Add a new webservice key named \"Webservice Key - Countries\"\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "73d5dec0-4398-47cb-8885-42ff8be312bc", + "parentUUID": "a50e6af7-caf3-42ee-b2ea-acacffa490c4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Countries : CRUD Add a new webservice key named \"Webservice Key - Countries\" should login in BO", + "timedOut": false, + "duration": 1833, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc013c2a-f5da-435f-b698-cd63d59337b6", + "parentUUID": "a50e6af7-caf3-42ee-b2ea-acacffa490c4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Countries : CRUD Add a new webservice key named \"Webservice Key - Countries\" should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4845, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_preTest_2_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53d71f92-bd24-4698-8b36-bd0b35990aa3", + "parentUUID": "a50e6af7-caf3-42ee-b2ea-acacffa490c4", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "WS - Countries : CRUD Add a new webservice key named \"Webservice Key - Countries\" should reset all filters and get number of webservices", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_preTest_2_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc6a8605-3327-4b0e-9a21-a829ca3defdf", + "parentUUID": "a50e6af7-caf3-42ee-b2ea-acacffa490c4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "WS - Countries : CRUD Add a new webservice key named \"Webservice Key - Countries\" should go to add new webservice key page", + "timedOut": false, + "duration": 914, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_preTest_2_goToAddNewWebserviceKeyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewWebserviceKeyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec698d06-f27d-44d2-afc7-59a5fe9b6efe", + "parentUUID": "a50e6af7-caf3-42ee-b2ea-acacffa490c4", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key and check result", + "fullTitle": "WS - Countries : CRUD Add a new webservice key named \"Webservice Key - Countries\" should create webservice key and check result", + "timedOut": false, + "duration": 1156, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_preTest_2_createWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7988ae84-95e1-4d58-b2e7-2820da4498b7", + "parentUUID": "a50e6af7-caf3-42ee-b2ea-acacffa490c4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc013c2a-f5da-435f-b698-cd63d59337b6", + "53d71f92-bd24-4698-8b36-bd0b35990aa3", + "fc6a8605-3327-4b0e-9a21-a829ca3defdf", + "ec698d06-f27d-44d2-afc7-59a5fe9b6efe", + "7988ae84-95e1-4d58-b2e7-2820da4498b7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10756, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ba5f30f8-a1e2-4fd6-9a73-25c94de0bfc0", + "title": "Countries : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "ca547388-953d-4a15-bafb-f2684ae63f24", + "title": "Fetch the Webservice Key", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Fetch the Webservice Key should login in BO", + "timedOut": false, + "duration": 1770, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cc4fa9a-3e3a-46e3-b35f-70fe0cd2c9ba", + "parentUUID": "ca547388-953d-4a15-bafb-f2684ae63f24", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Fetch the Webservice Key should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2de32b3e-435a-46f3-bd0d-9035c436f3f4", + "parentUUID": "ca547388-953d-4a15-bafb-f2684ae63f24", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by key description", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Fetch the Webservice Key should filter list by key description", + "timedOut": false, + "duration": 2986, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var description;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', wsKeyDescription)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 4:\n description = _a.sent();\n (0, chai_1.expect)(description).to.contains(wsKeyDescription);\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'key')];\n case 5:\n wsKey = _a.sent();\n authorization = \"Basic \".concat(Buffer.from(\"\".concat(wsKey, \":\")).toString('base64'));\n (0, chai_1.expect)(wsKey).to.not.have.lengthOf(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "def5f70d-5c46-429e-a1b8-ddbe1e181994", + "parentUUID": "ca547388-953d-4a15-bafb-f2684ae63f24", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4cc4fa9a-3e3a-46e3-b35f-70fe0cd2c9ba", + "2de32b3e-435a-46f3-bd0d-9035c436f3f4", + "def5f70d-5c46-429e-a1b8-ddbe1e181994" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9628, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "86b12ac0-137f-44fc-94c0-1ae6fce18b5e", + "title": "Endpoint : api/countries - Schema : Blank ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Blank should check response status", + "timedOut": false, + "duration": 82, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestBlankStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countryWs_1.default.getBlank(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46e18fbe-d3a5-4fb8-a957-8d06850df179", + "parentUUID": "86b12ac0-137f-44fc-94c0-1ae6fce18b5e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the blank XML can be parsed", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Blank should check that the blank XML can be parsed", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestBlankValid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isValidXML;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankValid', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n isValidXML = xml_1.default.isValid(xmlResponse);\n (0, chai_1.expect)(isValidXML).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "abb0ad94-adac-4f30-bafa-f073c21ec492", + "parentUUID": "86b12ac0-137f-44fc-94c0-1ae6fce18b5e", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Blank should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestBlankRootNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankRootNode', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(countryXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38479f77-e787-4940-84fa-856c9844f01b", + "parentUUID": "86b12ac0-137f-44fc-94c0-1ae6fce18b5e", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Blank should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestBlankChildNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankChildNode', baseContext)];\n case 1:\n _a.sent();\n rootNodes = countryXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('country');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "092aa1ca-c3f8-4c63-94ab-8ed247116fa4", + "parentUUID": "86b12ac0-137f-44fc-94c0-1ae6fce18b5e", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and has empty values", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Blank should check each node name, attributes and has empty values", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestBlankChildNodes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nodes, c, node, nodeAttributes, isEmptyNode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankChildNodes', baseContext)];\n case 1:\n _a.sent();\n nodes = countryXml_1.default.getCountryNodes(xmlResponse);\n (0, chai_1.expect)(nodes.length).to.be.gt(0);\n for (c = 0; c < nodes.length; c++) {\n node = nodes[c];\n nodeAttributes = node.attributes;\n (0, chai_1.expect)(nodeAttributes.length).to.be.eq(0);\n isEmptyNode = xml_1.default.isEmpty(node);\n (0, chai_1.expect)(isEmptyNode, \"The node \".concat(node.nodeName, \" is not empty\")).to.eq(true);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cac3c95-314e-4dc3-a437-86279f3f0fcf", + "parentUUID": "86b12ac0-137f-44fc-94c0-1ae6fce18b5e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "46e18fbe-d3a5-4fb8-a957-8d06850df179", + "abb0ad94-adac-4f30-bafa-f073c21ec492", + "38479f77-e787-4940-84fa-856c9844f01b", + "092aa1ca-c3f8-4c63-94ab-8ed247116fa4", + "8cac3c95-314e-4dc3-a437-86279f3f0fcf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 88, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "38cb6624-074f-4e47-9c7a-6978afed0e19", + "title": "Endpoint : api/countries - Schema : Synopsis ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Synopsis should check response status", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestSynopsisStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countryWs_1.default.getSynopsis(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f83d17da-d8c8-45f1-8960-fca2002ac39b", + "parentUUID": "38cb6624-074f-4e47-9c7a-6978afed0e19", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the synopsis XML can be parsed", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Synopsis should check that the synopsis XML can be parsed", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestSynopsisValid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isValidXML;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisValid', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n isValidXML = xml_1.default.isValid(xmlResponse);\n (0, chai_1.expect)(isValidXML).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec2beae7-760b-4f44-b932-ddc47e715ebd", + "parentUUID": "38cb6624-074f-4e47-9c7a-6978afed0e19", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Synopsis should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestSynopsisRootNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisRootNode', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(countryXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9d8615c-0f7f-4199-9bf3-4ca068b9de5c", + "parentUUID": "38cb6624-074f-4e47-9c7a-6978afed0e19", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Synopsis should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestSynopsisChildNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisChildNode', baseContext)];\n case 1:\n _a.sent();\n rootNodes = countryXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('country');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e977420-5786-4063-9e97-717165a88a1e", + "parentUUID": "38cb6624-074f-4e47-9c7a-6978afed0e19", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and has empty values", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Schema : Synopsis should check each node name, attributes and has empty values", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestSynopsisChildNodes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nodes, c, node, nodeAttributes, isEmptyNode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisChildNodes', baseContext)];\n case 1:\n _a.sent();\n nodes = countryXml_1.default.getCountryNodes(xmlResponse);\n (0, chai_1.expect)(nodes.length).to.be.gt(0);\n for (c = 0; c < nodes.length; c++) {\n node = nodes[c];\n nodeAttributes = node.attributes;\n (0, chai_1.expect)(nodeAttributes.length).to.be.gte(1);\n // Attribute : format\n (0, chai_1.expect)(nodeAttributes[nodeAttributes.length - 1].nodeName).to.be.eq('format');\n isEmptyNode = xml_1.default.isEmpty(node);\n (0, chai_1.expect)(isEmptyNode, \"The node \".concat(node.nodeName, \" is not empty\")).to.eq(true);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17948798-c072-4025-a462-05f18fa1ba6d", + "parentUUID": "38cb6624-074f-4e47-9c7a-6978afed0e19", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f83d17da-d8c8-45f1-8960-fca2002ac39b", + "ec2beae7-760b-4f44-b932-ddc47e715ebd", + "a9d8615c-0f7f-4199-9bf3-4ca068b9de5c", + "0e977420-5786-4063-9e97-717165a88a1e", + "17948798-c072-4025-a462-05f18fa1ba6d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "428e1a99-12f9-4893-82a4-9eb6ea4384d0", + "title": "Endpoint : api/countries - Method : GET ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : GET should check response status", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countryWs_1.default.getAll(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5f8624d-74a8-4c12-9bad-71a2602e5430", + "parentUUID": "428e1a99-12f9-4893-82a4-9eb6ea4384d0", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : GET should check response root node", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(countryXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14c7a119-17c6-4ea6-8ce0-b46ad6853568", + "parentUUID": "428e1a99-12f9-4893-82a4-9eb6ea4384d0", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : GET should check number of node under prestashop", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = countryXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('countries');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "980ce423-2e1b-4da0-b2f4-0507a12f57b7", + "parentUUID": "428e1a99-12f9-4893-82a4-9eb6ea4384d0", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under countries node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : GET should check number of nodes under countries node", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n countriesNode = countryXml_1.default.getAllCountries(xmlResponse);\n (0, chai_1.expect)(countriesNode.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbbed0b0-7036-491f-9e8f-78de8fffe22d", + "parentUUID": "428e1a99-12f9-4893-82a4-9eb6ea4384d0", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and xlink:href", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : GET should check each node name, attributes and xlink:href", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetCheckAll1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var c, countryNode, countryNodeAttributes, countryNodeAttributeId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetCheckAll1', baseContext)];\n case 1:\n _a.sent();\n for (c = 0; c < countriesNode.length; c++) {\n countryNode = countriesNode[c];\n (0, chai_1.expect)(countryNode.nodeName).to.be.eq('country');\n countryNodeAttributes = countryNode.attributes;\n (0, chai_1.expect)(countryNodeAttributes.length).to.be.eq(2);\n // Attribute : id\n (0, chai_1.expect)(countryNodeAttributes[0].nodeName).to.be.eq('id');\n countryNodeAttributeId = countryNodeAttributes[0].nodeValue;\n (0, chai_1.expect)(countryNodeAttributeId).to.be.eq(parseInt(countryNodeAttributeId, 10).toString());\n // Attribute : xlink:href\n (0, chai_1.expect)(countryNodeAttributes[1].nodeName).to.be.eq('xlink:href');\n (0, chai_1.expect)(countryNodeAttributes[1].nodeValue).to.be.a('string');\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9f5df23-52eb-4169-a5fa-efa887505cdb", + "parentUUID": "428e1a99-12f9-4893-82a4-9eb6ea4384d0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d5f8624d-74a8-4c12-9bad-71a2602e5430", + "14c7a119-17c6-4ea6-8ce0-b46ad6853568", + "980ce423-2e1b-4da0-b2f4-0507a12f57b7", + "bbbed0b0-7036-491f-9e8f-78de8fffe22d", + "a9f5df23-52eb-4169-a5fa-efa887505cdb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 70, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7424370e-bb2c-461e-a828-85e5d974f28c", + "title": "Endpoint : api/countries - Method : POST ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "ddc40592-07a4-43e9-a197-2ac19b465ae4", + "title": "Endpoint : api/countries - Method : POST - Add Country ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Add Country should check response status", + "timedOut": false, + "duration": 31, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestPostStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countryWs_1.default.add(apiContext, authorization, xmlCreate)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(201);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b0911e6-9807-4524-95a0-5f3a60f55f33", + "parentUUID": "ddc40592-07a4-43e9-a197-2ac19b465ae4", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Add Country should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestPostRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(countryXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e3d96ec-39fc-44ec-9919-e4ae10e26c3c", + "parentUUID": "ddc40592-07a4-43e9-a197-2ac19b465ae4", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Add Country should check number of node under prestashop", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestPostNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = countryXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('country');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24f49cab-2b38-4c93-8721-b10096856a66", + "parentUUID": "ddc40592-07a4-43e9-a197-2ac19b465ae4", + "isHook": false, + "skipped": false + }, + { + "title": "should check id of the country", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Add Country should check id of the country", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestPostCheckId1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostCheckId1', baseContext)];\n case 1:\n _a.sent();\n // Attribute : id\n countryNodeID = countryXml_1.default.getAttributeValue(xmlResponse, 'id');\n (0, chai_1.expect)(countryNodeID).to.be.a('string');\n (0, chai_1.expect)(countryNodeID).to.be.eq(parseInt(countryNodeID, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c4b7380-84b9-4738-8b5e-96c7cecfe901", + "parentUUID": "ddc40592-07a4-43e9-a197-2ac19b465ae4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1b0911e6-9807-4524-95a0-5f3a60f55f33", + "9e3d96ec-39fc-44ec-9919-e4ae10e26c3c", + "24f49cab-2b38-4c93-8721-b10096856a66", + "0c4b7380-84b9-4738-8b5e-96c7cecfe901" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 33, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fdfe3020-d059-4201-bd4f-8d933d753a07", + "title": "Endpoint : api/countries/{id} - Method : POST - Check with WS ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries/{id} - Method : POST - Check with WS should check response status", + "timedOut": false, + "duration": 30, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetIDStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countryWs_1.default.getById(apiContext, authorization, countryNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "076fa114-1af6-4f96-b854-0bfd13c4428d", + "parentUUID": "fdfe3020-d059-4201-bd4f-8d933d753a07", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries/{id} - Method : POST - Check with WS should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetIDRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(countryXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3296b2bc-29a0-4d74-bf73-bb8491d4e7b4", + "parentUUID": "fdfe3020-d059-4201-bd4f-8d933d753a07", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries/{id} - Method : POST - Check with WS should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetIDNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = countryXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('country');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f3e71b5-e593-4b7c-8f57-21e4330489bd", + "parentUUID": "fdfe3020-d059-4201-bd4f-8d933d753a07", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under countries node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries/{id} - Method : POST - Check with WS should check number of nodes under countries node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetIDNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n countriesNodes = countryXml_1.default.getCountryNodes(xmlResponse);\n (0, chai_1.expect)(countriesNodes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3fef741-5517-49fe-8847-3f675e6399b6", + "parentUUID": "fdfe3020-d059-4201-bd4f-8d933d753a07", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node id, name ...", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries/{id} - Method : POST - Check with WS should check each node id, name ...", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetIDCheckAll\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var o, oNode, objectNodeValueEN, createNodeValueEN, objectNodeValueFR, createNodeValueFR, objectNodeValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDCheckAll', baseContext)];\n case 1:\n _a.sent();\n // Check nodes are equal to them done in Create\n for (o = 0; o < countriesNodes.length; o++) {\n oNode = countriesNodes[o];\n if (oNode.nodeName === 'id') {\n (0, chai_1.expect)(oNode.textContent).to.be.eq(countryNodeID);\n }\n else if (oNode.nodeName === 'name') {\n objectNodeValueEN = countryXml_1.default.getAttributeLangValue(xmlResponse, oNode.nodeName, '1');\n createNodeValueEN = countryXml_1.default.getAttributeLangValue(xmlCreate, oNode.nodeName, '1');\n (0, chai_1.expect)(objectNodeValueEN).to.be.eq(createNodeValueEN);\n objectNodeValueFR = countryXml_1.default.getAttributeLangValue(xmlResponse, oNode.nodeName, '2');\n createNodeValueFR = countryXml_1.default.getAttributeLangValue(xmlCreate, oNode.nodeName, '2');\n (0, chai_1.expect)(objectNodeValueFR).to.be.eq(createNodeValueFR);\n }\n else {\n objectNodeValue = countryXml_1.default.getAttributeValue(xmlCreate, oNode.nodeName);\n (0, chai_1.expect)(objectNodeValue).to.be.a('string');\n (0, chai_1.expect)(oNode.textContent).to.be.eq(objectNodeValue);\n }\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dddcdfb3-050a-4601-8e82-fcb19c459c25", + "parentUUID": "fdfe3020-d059-4201-bd4f-8d933d753a07", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "076fa114-1af6-4f96-b854-0bfd13c4428d", + "3296b2bc-29a0-4d74-bf73-bb8491d4e7b4", + "2f3e71b5-e593-4b7c-8f57-21e4330489bd", + "f3fef741-5517-49fe-8847-3f675e6399b6", + "dddcdfb3-050a-4601-8e82-fcb19c459c25" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 47, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "title": "Endpoint : api/countries - Method : POST - Check On BO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'International > Locations' page", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should go to 'International > Locations' page", + "timedOut": false, + "duration": 4607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.locationsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, locations_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, locations_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(locations_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90e0033d-6caa-4e8f-b1f2-bf3ee2494b52", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should go to 'Countries' page", + "timedOut": false, + "duration": 976, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_goToCountriesPagePost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPagePost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bb037bab-f162-4ddc-8d9a-db62896377bb", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should filter country by ID", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should filter country by ID", + "timedOut": false, + "duration": 949, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_filterToUpdateAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterPost', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, countries_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'id_country', countryNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.eq(1);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'id_country')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(countryNodeID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d082449d-fced-4988-abe9-67724bb495bc", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit country page", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should go to edit country page", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_goToEditCountryPageAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCountryPageAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.goToEditCountryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b681669-69b2-49d0-9271-baeea0741cd1", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's zone", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's zone", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryZone1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIDZone, valueIDZone;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryZone1', baseContext)];\n case 1:\n _a.sent();\n xmlValueIDZone = countryXml_1.default.getAttributeValue(xmlCreate, 'id_zone');\n return [4 /*yield*/, add_1.default.getSelectValue(page, 'id_zone')];\n case 2:\n valueIDZone = _a.sent();\n (0, chai_1.expect)(valueIDZone).to.be.eq(xmlValueIDZone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57339261-da3c-483d-8aff-adedcfdfccd4", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's currency", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's currency", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryCurrency1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIDCurrency, valueIDCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryCurrency1', baseContext)];\n case 1:\n _a.sent();\n xmlValueIDCurrency = countryXml_1.default.getAttributeValue(xmlCreate, 'id_currency');\n return [4 /*yield*/, add_1.default.getSelectValue(page, 'id_currency')];\n case 2:\n valueIDCurrency = _a.sent();\n (0, chai_1.expect)(valueIDCurrency).to.be.eq(xmlValueIDCurrency);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ad7441a-9e68-4abb-9c9e-b190641b284c", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's call_prefix", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's call_prefix", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryCallPrefix1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueCallPrefix, valueCallPrefix;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryCallPrefix1', baseContext)];\n case 1:\n _a.sent();\n xmlValueCallPrefix = countryXml_1.default.getAttributeValue(xmlCreate, 'call_prefix');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'call_prefix')];\n case 2:\n valueCallPrefix = _a.sent();\n (0, chai_1.expect)(valueCallPrefix).to.be.eq(xmlValueCallPrefix);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4757ebc7-5f81-42ed-8937-f9868cd3cd3b", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's iso_code", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's iso_code", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryIsoCode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIsoCode, valueIsoCode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryIsoCode1', baseContext)];\n case 1:\n _a.sent();\n xmlValueIsoCode = countryXml_1.default.getAttributeValue(xmlCreate, 'iso_code');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'iso_code')];\n case 2:\n valueIsoCode = _a.sent();\n (0, chai_1.expect)(valueIsoCode).to.be.eq(xmlValueIsoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f6f7612-bd57-4ac5-83d2-18b1b3537e13", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's active", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's active", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryActive1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueActive, valueActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryActive1', baseContext)];\n case 1:\n _a.sent();\n xmlValueActive = countryXml_1.default.getAttributeValue(xmlCreate, 'active');\n return [4 /*yield*/, add_1.default.isCheckboxChecked(page, 'active')];\n case 2:\n valueActive = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(valueActive).to.be.eq(xmlValueActive);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e50cf2db-e613-47fb-b687-40fc3ac76cd9", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's states", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's states", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryStates1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueContainsStates, valueContainsStates;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryStates1', baseContext)];\n case 1:\n _a.sent();\n xmlValueContainsStates = countryXml_1.default.getAttributeValue(xmlCreate, 'contains_states');\n return [4 /*yield*/, add_1.default.isCheckboxChecked(page, 'contains_states')];\n case 2:\n valueContainsStates = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(valueContainsStates).to.be.eq(xmlValueContainsStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "369fcb39-2c2c-4243-a704-f7ecd31fe0fc", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's need_identification_number", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's need_identification_number", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryIdentificationNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueNeedIDNumber, valueNeedIDNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryIdentificationNumber1', baseContext)];\n case 1:\n _a.sent();\n xmlValueNeedIDNumber = countryXml_1.default.getAttributeValue(xmlCreate, 'need_identification_number');\n return [4 /*yield*/, add_1.default.isCheckboxChecked(page, 'need_identification_number')];\n case 2:\n valueNeedIDNumber = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(valueNeedIDNumber).to.be.eq(xmlValueNeedIDNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1bfd184-5293-471d-8996-b5f213982f0f", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's need_zip_code", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's need_zip_code", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryZipCodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueNeedZipCode, valueNeedZipCode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryZipCodeNumber1', baseContext)];\n case 1:\n _a.sent();\n xmlValueNeedZipCode = countryXml_1.default.getAttributeValue(xmlCreate, 'need_zip_code');\n return [4 /*yield*/, add_1.default.isCheckboxChecked(page, 'need_zip_code')];\n case 2:\n valueNeedZipCode = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(valueNeedZipCode).to.be.eq(xmlValueNeedZipCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6233d8e2-d5f7-4938-b6be-c936ed30b866", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's zip_code_format", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's zip_code_format", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryZipCodeFormat1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueZipCode, valueZipCode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryZipCodeFormat1', baseContext)];\n case 1:\n _a.sent();\n xmlValueZipCode = countryXml_1.default.getAttributeValue(xmlCreate, 'zip_code_format');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'zipCodeFormat')];\n case 2:\n valueZipCode = _a.sent();\n (0, chai_1.expect)(valueZipCode).to.be.eq(xmlValueZipCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9b21ee1-bb23-4198-a9f7-52f5a90aa188", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's name language 1", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's name language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryNameLang11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueNameEn, valueNameEn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryNameLang11', baseContext)];\n case 1:\n _a.sent();\n xmlValueNameEn = countryXml_1.default.getAttributeLangValue(xmlCreate, 'name', '1');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'nameEn')];\n case 2:\n valueNameEn = (_a.sent());\n (0, chai_1.expect)(valueNameEn).to.be.eq(xmlValueNameEn);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52f7de3b-c8a4-45db-921d-ba4958fa7084", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's name language 2", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should check country's name language 2", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryNameLang21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueNameFr, valueNameFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryNameLang21', baseContext)];\n case 1:\n _a.sent();\n xmlValueNameFr = countryXml_1.default.getAttributeLangValue(xmlCreate, 'name', '2');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'nameFr')];\n case 2:\n valueNameFr = (_a.sent());\n (0, chai_1.expect)(valueNameFr).to.be.eq(xmlValueNameFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cda5570c-165d-45ca-82c3-9fc39380a26a", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should go to 'Countries' page", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_goToCountriesPagePostReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPagePostReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a0b6662-6102-4ecc-9f9c-405f03e442a6", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : POST Endpoint : api/countries - Method : POST - Check On BO should reset all filters", + "timedOut": false, + "duration": 2927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_resetFilterFirstAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountries;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirstAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4f94928-654c-4846-8eca-9c8d57345932", + "parentUUID": "296cf6e5-3e8a-4afd-ad7c-dd7b83af3a42", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "90e0033d-6caa-4e8f-b1f2-bf3ee2494b52", + "bb037bab-f162-4ddc-8d9a-db62896377bb", + "d082449d-fced-4988-abe9-67724bb495bc", + "4b681669-69b2-49d0-9271-baeea0741cd1", + "57339261-da3c-483d-8aff-adedcfdfccd4", + "6ad7441a-9e68-4abb-9c9e-b190641b284c", + "4757ebc7-5f81-42ed-8937-f9868cd3cd3b", + "9f6f7612-bd57-4ac5-83d2-18b1b3537e13", + "e50cf2db-e613-47fb-b687-40fc3ac76cd9", + "369fcb39-2c2c-4243-a704-f7ecd31fe0fc", + "e1bfd184-5293-471d-8996-b5f213982f0f", + "6233d8e2-d5f7-4938-b6be-c936ed30b866", + "b9b21ee1-bb23-4198-a9f7-52f5a90aa188", + "52f7de3b-c8a4-45db-921d-ba4958fa7084", + "cda5570c-165d-45ca-82c3-9fc39380a26a", + "7a0b6662-6102-4ecc-9f9c-405f03e442a6", + "f4f94928-654c-4846-8eca-9c8d57345932" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11161, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ab6c09c6-bd34-4f6b-9c19-34cc5756efbe", + "title": "Endpoint : api/countries - Method : PUT ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "4dad167d-be1e-48b3-b45a-c79fa5c22ac2", + "title": "Endpoint : api/countries - Method : PUT - Update Country ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status of api/countries/{id}", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Update Country should check response status of api/countries/{id}", + "timedOut": false, + "duration": 27, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestPutStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutStatus1', baseContext)];\n case 1:\n _a.sent();\n xmlUpdate = (0, country_1.default)(countryNodeID);\n return [4 /*yield*/, countryWs_1.default.update(apiContext, authorization, countryNodeID, xmlUpdate)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43e25419-42d4-4a24-8b66-47c620bf6f27", + "parentUUID": "4dad167d-be1e-48b3-b45a-c79fa5c22ac2", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Update Country should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestPutRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(countryXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9f8772e9-981c-49a4-97b5-de1e651264be", + "parentUUID": "4dad167d-be1e-48b3-b45a-c79fa5c22ac2", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Update Country should check number of node under prestashop", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestPutNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = countryXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('country');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "211cc552-aa18-4bfc-a25c-9fe441f0dea0", + "parentUUID": "4dad167d-be1e-48b3-b45a-c79fa5c22ac2", + "isHook": false, + "skipped": false + }, + { + "title": "should check id of the country", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Update Country should check id of the country", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestPutCheckId1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutCheckId1', baseContext)];\n case 1:\n _a.sent();\n // Attribute : id\n countryNodeID = countryXml_1.default.getAttributeValue(xmlResponse, 'id');\n (0, chai_1.expect)(countryNodeID).to.be.a('string');\n (0, chai_1.expect)(countryNodeID).to.be.eq(parseInt(countryNodeID, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a85676e-61aa-45aa-9fc4-f5627bdfbaae", + "parentUUID": "4dad167d-be1e-48b3-b45a-c79fa5c22ac2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "43e25419-42d4-4a24-8b66-47c620bf6f27", + "9f8772e9-981c-49a4-97b5-de1e651264be", + "211cc552-aa18-4bfc-a25c-9fe441f0dea0", + "1a85676e-61aa-45aa-9fc4-f5627bdfbaae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "81c33295-e244-4eb0-93d3-29ca7a5bc32e", + "title": "Endpoint : api/countries/{id} - Method : PUT - Check with WS ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries/{id} - Method : PUT - Check with WS should check response status", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetPutStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countryWs_1.default.getById(apiContext, authorization, countryNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d6e37c4-c930-40aa-8466-de907a31e424", + "parentUUID": "81c33295-e244-4eb0-93d3-29ca7a5bc32e", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries/{id} - Method : PUT - Check with WS should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetPutRootNode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutRootNode2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(countryXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94732f26-7d47-4997-825a-78e9573efa7d", + "parentUUID": "81c33295-e244-4eb0-93d3-29ca7a5bc32e", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries/{id} - Method : PUT - Check with WS should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetPutNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = countryXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('country');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b480b82-c71e-4433-808d-4a623d11b8f7", + "parentUUID": "81c33295-e244-4eb0-93d3-29ca7a5bc32e", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under countries node", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries/{id} - Method : PUT - Check with WS should check number of nodes under countries node", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestGetPutNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n countriesNodes = countryXml_1.default.getCountryNodes(xmlResponse);\n (0, chai_1.expect)(countriesNodes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "682ccbbd-76cb-48e5-aa7c-1777cf7f4ed8", + "parentUUID": "81c33295-e244-4eb0-93d3-29ca7a5bc32e", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node id, name ...", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries/{id} - Method : PUT - Check with WS should check each node id, name ...", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestEndpointCountriesIdMethodGetAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var o, oNode, objectNodeValueEN, updateNodeValueEN, objectNodeValueFR, updateNodeValueFR, objectNodeValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointCountriesIdMethodGetAfterPut', baseContext)];\n case 1:\n _a.sent();\n // Check nodes are equal to them done in Create\n for (o = 0; o < countriesNodes.length; o++) {\n oNode = countriesNodes[o];\n if (oNode.nodeName === 'id') {\n (0, chai_1.expect)(oNode.textContent).to.be.eq(countryNodeID);\n }\n else if (oNode.nodeName === 'name') {\n objectNodeValueEN = countryXml_1.default.getAttributeLangValue(xmlResponse, oNode.nodeName, '1');\n updateNodeValueEN = countryXml_1.default.getAttributeLangValue(xmlUpdate, oNode.nodeName, '1');\n (0, chai_1.expect)(objectNodeValueEN).to.be.eq(updateNodeValueEN);\n objectNodeValueFR = countryXml_1.default.getAttributeLangValue(xmlResponse, oNode.nodeName, '2');\n updateNodeValueFR = countryXml_1.default.getAttributeLangValue(xmlUpdate, oNode.nodeName, '2');\n (0, chai_1.expect)(objectNodeValueFR).to.be.eq(updateNodeValueFR);\n }\n else {\n objectNodeValue = countryXml_1.default.getAttributeValue(xmlUpdate, oNode.nodeName);\n (0, chai_1.expect)(oNode.textContent).to.be.eq(objectNodeValue);\n }\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11a814a2-042b-4e6d-8791-f635c06386cc", + "parentUUID": "81c33295-e244-4eb0-93d3-29ca7a5bc32e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5d6e37c4-c930-40aa-8466-de907a31e424", + "94732f26-7d47-4997-825a-78e9573efa7d", + "7b480b82-c71e-4433-808d-4a623d11b8f7", + "682ccbbd-76cb-48e5-aa7c-1777cf7f4ed8", + "11a814a2-042b-4e6d-8791-f635c06386cc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 30, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "title": "Endpoint : api/countries - Method : PUT - Check On BO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter country by ID", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should filter country by ID", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_filterToUpdateAfterPost2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterPost2', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, countries_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'id_country', countryNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.eq(1);\n return [4 /*yield*/, countries_1.default.getTextColumnFromTable(page, 1, 'id_country')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(countryNodeID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "547e84ef-3717-4898-b677-2b23dfb2732c", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit country page", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should go to edit country page", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_goToEditCountryPageAfterPost2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCountryPageAfterPost2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.goToEditCountryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8650612f-44db-4fbd-9be1-8320fa4db0b5", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's zone", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's zone", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryZone2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIDZone, valueIDZone;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryZone2', baseContext)];\n case 1:\n _a.sent();\n xmlValueIDZone = countryXml_1.default.getAttributeValue(xmlUpdate, 'id_zone');\n return [4 /*yield*/, add_1.default.getSelectValue(page, 'id_zone')];\n case 2:\n valueIDZone = _a.sent();\n (0, chai_1.expect)(valueIDZone).to.be.eq(xmlValueIDZone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9426fa7-1a49-4db6-9ca1-336bcfdd19d4", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's currency", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's currency", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryCurrency2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIDCurrency, valueIDCurrency;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryCurrency2', baseContext)];\n case 1:\n _a.sent();\n xmlValueIDCurrency = countryXml_1.default.getAttributeValue(xmlUpdate, 'id_currency');\n return [4 /*yield*/, add_1.default.getSelectValue(page, 'id_currency')];\n case 2:\n valueIDCurrency = _a.sent();\n (0, chai_1.expect)(valueIDCurrency).to.be.eq(xmlValueIDCurrency);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "687f76b1-dbe5-48f2-bd3d-203f04fbb088", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's call_prefix", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's call_prefix", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryCallPrefix2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueCallPrefix, valueCallPrefix;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryCallPrefix2', baseContext)];\n case 1:\n _a.sent();\n xmlValueCallPrefix = countryXml_1.default.getAttributeValue(xmlUpdate, 'call_prefix');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'call_prefix')];\n case 2:\n valueCallPrefix = _a.sent();\n (0, chai_1.expect)(valueCallPrefix).to.be.eq(xmlValueCallPrefix);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "109dd817-7a3a-4ef4-a4bd-c0f731689d02", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's iso_code", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's iso_code", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryIsoCode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIsoCode, valueIsoCode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryIsoCode2', baseContext)];\n case 1:\n _a.sent();\n xmlValueIsoCode = countryXml_1.default.getAttributeValue(xmlUpdate, 'iso_code');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'iso_code')];\n case 2:\n valueIsoCode = _a.sent();\n (0, chai_1.expect)(valueIsoCode).to.be.eq(xmlValueIsoCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00b2ee5d-bb95-4682-9b2b-c8619405da97", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's active", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's active", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryActive2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueActive, valueActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryActive2', baseContext)];\n case 1:\n _a.sent();\n xmlValueActive = countryXml_1.default.getAttributeValue(xmlUpdate, 'active');\n return [4 /*yield*/, add_1.default.isCheckboxChecked(page, 'active')];\n case 2:\n valueActive = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(valueActive).to.be.eq(xmlValueActive);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1623aadb-bf64-44e7-8fcb-7212ef43cef3", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's states", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's states", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryStates2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueContainsStates, valueContainsStates;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryStates2', baseContext)];\n case 1:\n _a.sent();\n xmlValueContainsStates = countryXml_1.default.getAttributeValue(xmlUpdate, 'contains_states');\n return [4 /*yield*/, add_1.default.isCheckboxChecked(page, 'contains_states')];\n case 2:\n valueContainsStates = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(valueContainsStates).to.be.eq(xmlValueContainsStates);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7fc2e90-1001-424c-abc4-c8c261c2a916", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's need_identification_number", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's need_identification_number", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryIdentificationNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueNeedIDNumber, valueNeedIDNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryIdentificationNumber2', baseContext)];\n case 1:\n _a.sent();\n xmlValueNeedIDNumber = countryXml_1.default.getAttributeValue(xmlUpdate, 'need_identification_number');\n return [4 /*yield*/, add_1.default.isCheckboxChecked(page, 'need_identification_number')];\n case 2:\n valueNeedIDNumber = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(valueNeedIDNumber).to.be.eq(xmlValueNeedIDNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1585e742-fb8e-4609-857d-fac3090b2b06", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's need_zip_code", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's need_zip_code", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryZipCodeNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueNeedZipCode, valueNeedZipCode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryZipCodeNumber2', baseContext)];\n case 1:\n _a.sent();\n xmlValueNeedZipCode = countryXml_1.default.getAttributeValue(xmlUpdate, 'need_zip_code');\n return [4 /*yield*/, add_1.default.isCheckboxChecked(page, 'need_zip_code')];\n case 2:\n valueNeedZipCode = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(valueNeedZipCode).to.be.eq(xmlValueNeedZipCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19b72351-4571-4c91-980a-e5058d5d5100", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's zip_code_format", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's zip_code_format", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryZipCodeFormat2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueZipCode, valueZipCode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryZipCodeFormat2', baseContext)];\n case 1:\n _a.sent();\n xmlValueZipCode = countryXml_1.default.getAttributeValue(xmlUpdate, 'zip_code_format');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'zipCodeFormat')];\n case 2:\n valueZipCode = _a.sent();\n (0, chai_1.expect)(valueZipCode).to.be.eq(xmlValueZipCode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "183a29f7-3975-42b0-a5b8-ac3863c5250a", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's name language 1", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's name language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryNameLang12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueNameEn, valueNameEn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryNameLang12', baseContext)];\n case 1:\n _a.sent();\n xmlValueNameEn = countryXml_1.default.getAttributeLangValue(xmlUpdate, 'name', '1');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'nameEn')];\n case 2:\n valueNameEn = (_a.sent());\n (0, chai_1.expect)(valueNameEn).to.be.eq(xmlValueNameEn);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df696653-2880-421a-8401-cf4ecf5afe37", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should check country's name language 2", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should check country's name language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_checkCountryNameLang22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueNameFr, valueNameFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCountryNameLang22', baseContext)];\n case 1:\n _a.sent();\n xmlValueNameFr = countryXml_1.default.getAttributeLangValue(xmlUpdate, 'name', '2');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'nameFr')];\n case 2:\n valueNameFr = (_a.sent());\n (0, chai_1.expect)(valueNameFr).to.be.eq(xmlValueNameFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3af78d78-4367-445e-ab2e-429dc943356a", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Countries' page", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should go to 'Countries' page", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_goToCountriesPagePutReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCountriesPagePutReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, locations_1.default.goToSubTabCountries(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(countries_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39b47a7e-8221-46fc-94cb-ad20b1746e7c", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : PUT Endpoint : api/countries - Method : PUT - Check On BO should reset all filters", + "timedOut": false, + "duration": 2927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_resetFilterFirstAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountries;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirstAfterPut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33383d77-b3c8-45d4-b863-72ce2175c9bb", + "parentUUID": "819e666d-73bc-4a5c-b346-d2b3a3768a93", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "547e84ef-3717-4898-b677-2b23dfb2732c", + "8650612f-44db-4fbd-9be1-8320fa4db0b5", + "a9426fa7-1a49-4db6-9ca1-336bcfdd19d4", + "687f76b1-dbe5-48f2-bd3d-203f04fbb088", + "109dd817-7a3a-4ef4-a4bd-c0f731689d02", + "00b2ee5d-bb95-4682-9b2b-c8619405da97", + "1623aadb-bf64-44e7-8fcb-7212ef43cef3", + "b7fc2e90-1001-424c-abc4-c8c261c2a916", + "1585e742-fb8e-4609-857d-fac3090b2b06", + "19b72351-4571-4c91-980a-e5058d5d5100", + "183a29f7-3975-42b0-a5b8-ac3863c5250a", + "df696653-2880-421a-8401-cf4ecf5afe37", + "3af78d78-4367-445e-ab2e-429dc943356a", + "39b47a7e-8221-46fc-94cb-ad20b1746e7c", + "33383d77-b3c8-45d4-b863-72ce2175c9bb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5547, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1960f9d4-4f44-4941-811e-b6ccdebc4801", + "title": "Endpoint : api/countries - Method : DELETE ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint api/countries/{id} with method DELETE", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : DELETE should request the endpoint api/countries/{id} with method DELETE", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestEndpointCountriesMethodDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointCountriesMethodDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countryWs_1.default.delete(apiContext, authorization, countryNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8c1f76d-8ed8-41eb-9563-0cb6f3b28de9", + "parentUUID": "1960f9d4-4f44-4941-811e-b6ccdebc4801", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint api/countries/{id} with method GET", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : DELETE should request the endpoint api/countries/{id} with method GET", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_requestEndpointCountriesIdMethodGetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointCountriesIdMethodGetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countryWs_1.default.getById(apiContext, authorization, countryNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(404);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bed64117-66d9-4e46-9c80-879e1bf2b14a", + "parentUUID": "1960f9d4-4f44-4941-811e-b6ccdebc4801", + "isHook": false, + "skipped": false + }, + { + "title": "should filter country by ID", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : DELETE should filter country by ID", + "timedOut": false, + "duration": 928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_filterToUpdateAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, countries_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, countries_1.default.filterTable(page, 'input', 'id_country', countryNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, countries_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0de8c6a-d525-4182-8348-e0cdf96b2e83", + "parentUUID": "1960f9d4-4f44-4941-811e-b6ccdebc4801", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Countries : CRUD Countries : CRUD Endpoint : api/countries - Method : DELETE should reset all filters", + "timedOut": false, + "duration": 2974, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountries;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, countries_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6e24071-6f32-4891-b47d-a73e35008b29", + "parentUUID": "1960f9d4-4f44-4941-811e-b6ccdebc4801", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b8c1f76d-8ed8-41eb-9563-0cb6f3b28de9", + "bed64117-66d9-4e46-9c80-879e1bf2b14a", + "e0de8c6a-d525-4182-8348-e0cdf96b2e83", + "a6e24071-6f32-4891-b47d-a73e35008b29" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3948, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "be1fe131-ee41-4df1-8629-f8419effa69d", + "title": "Remove a new webservice key named \"Webservice Key - Countries\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Remove a new webservice key named \"Webservice Key - Countries\"\"", + "fullTitle": "WS - Countries : CRUD Remove a new webservice key named \"Webservice Key - Countries\" \"before all\" hook in \"Remove a new webservice key named \"Webservice Key - Countries\"\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d9c0e2f-33fd-4a9b-946b-1f6ff30571cf", + "parentUUID": "be1fe131-ee41-4df1-8629-f8419effa69d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Remove a new webservice key named \"Webservice Key - Countries\"\"", + "fullTitle": "WS - Countries : CRUD Remove a new webservice key named \"Webservice Key - Countries\" \"after all\" hook in \"Remove a new webservice key named \"Webservice Key - Countries\"\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "acc000cb-2097-408e-85d3-27d9225807d0", + "parentUUID": "be1fe131-ee41-4df1-8629-f8419effa69d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Countries : CRUD Remove a new webservice key named \"Webservice Key - Countries\" should login in BO", + "timedOut": false, + "duration": 1782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87cfd80e-b01f-4fb2-a6d4-4344ce2b014d", + "parentUUID": "be1fe131-ee41-4df1-8629-f8419effa69d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Countries : CRUD Remove a new webservice key named \"Webservice Key - Countries\" should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_postTest_1_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78980675-5f39-4fda-bfbc-3c31155faa5e", + "parentUUID": "be1fe131-ee41-4df1-8629-f8419effa69d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "WS - Countries : CRUD Remove a new webservice key named \"Webservice Key - Countries\" should reset all filters and get number of webservices", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_postTest_1_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "881d5cd8-c854-413c-842c-6d90a4315a68", + "parentUUID": "be1fe131-ee41-4df1-8629-f8419effa69d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by key description", + "fullTitle": "WS - Countries : CRUD Remove a new webservice key named \"Webservice Key - Countries\" should filter list by key description", + "timedOut": false, + "duration": 926, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_postTest_1_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var key;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', keyDescription)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 3:\n key = _a.sent();\n (0, chai_1.expect)(key).to.contains(keyDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53bbacaa-917e-49b8-b5bb-e0f18dd637b0", + "parentUUID": "be1fe131-ee41-4df1-8629-f8419effa69d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete webservice key", + "fullTitle": "WS - Countries : CRUD Remove a new webservice key named \"Webservice Key - Countries\" should delete webservice key", + "timedOut": false, + "duration": 883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_postTest_1_deleteWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.deleteWebserviceKey(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(webservice_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71259cb6-a520-49c5-b4d7-0e7e8b829440", + "parentUUID": "be1fe131-ee41-4df1-8629-f8419effa69d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "WS - Countries : CRUD Remove a new webservice key named \"Webservice Key - Countries\" should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_postTest_1_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfWebserviceKeyAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeyAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeyAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "546ce8d0-d131-4f2e-a76b-a421a4213eac", + "parentUUID": "be1fe131-ee41-4df1-8629-f8419effa69d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "87cfd80e-b01f-4fb2-a6d4-4344ce2b014d", + "78980675-5f39-4fda-bfbc-3c31155faa5e", + "881d5cd8-c854-413c-842c-6d90a4315a68", + "53bbacaa-917e-49b8-b5bb-e0f18dd637b0", + "71259cb6-a520-49c5-b4d7-0e7e8b829440", + "546ce8d0-d131-4f2e-a76b-a421a4213eac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9583, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "812eafb5-8720-45bc-b06d-e01b9b026346", + "title": "Disable the Webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/01_countriesCRUD.ts", + "file": "/campaigns/functional/WS/01_countriesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the Webservice\"", + "fullTitle": "WS - Countries : CRUD Disable the Webservice \"before all\" hook in \"Disable the Webservice\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3890e73-bcfb-4130-ae66-488d59ea3d59", + "parentUUID": "812eafb5-8720-45bc-b06d-e01b9b026346", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the Webservice\"", + "fullTitle": "WS - Countries : CRUD Disable the Webservice \"after all\" hook in \"Disable the Webservice\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ca7def94-d5a3-43d5-9b59-14074e00243b", + "parentUUID": "812eafb5-8720-45bc-b06d-e01b9b026346", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Countries : CRUD Disable the Webservice should login in BO", + "timedOut": false, + "duration": 1783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3fa6cb10-6c18-4c37-b0f9-c5ba14a26d77", + "parentUUID": "812eafb5-8720-45bc-b06d-e01b9b026346", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Countries : CRUD Disable the Webservice should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4850, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_postTest_2_goToAdvParametersWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvParametersWebservice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6ecf30c-cd79-4cf8-912e-207baee08162", + "parentUUID": "812eafb5-8720-45bc-b06d-e01b9b026346", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the webservice", + "fullTitle": "WS - Countries : CRUD Disable the Webservice should disable the webservice", + "timedOut": false, + "duration": 361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_countriesCRUD_postTest_2_setWebserviceStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWebserviceStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setWebserviceStatus(page, status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(webservice_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "913343a8-2695-486a-add2-d9c7aaefbebf", + "parentUUID": "812eafb5-8720-45bc-b06d-e01b9b026346", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3fa6cb10-6c18-4c37-b0f9-c5ba14a26d77", + "a6ecf30c-cd79-4cf8-912e-207baee08162", + "913343a8-2695-486a-add2-d9c7aaefbebf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6994, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f6610291-72b2-449b-9439-e4f693a753a2", + "title": "WS - Orders : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"WS - Orders : CRUD\"", + "fullTitle": "WS - Orders : CRUD \"before all\" hook in \"WS - Orders : CRUD\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.FO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46c497b7-a204-4b3c-961a-51f6333efe46", + "parentUUID": "f6610291-72b2-449b-9439-e4f693a753a2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"WS - Orders : CRUD\"", + "fullTitle": "WS - Orders : CRUD \"after all\" hook in \"WS - Orders : CRUD\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d782b560-d828-403d-954d-dfc7e0931e57", + "parentUUID": "f6610291-72b2-449b-9439-e4f693a753a2", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "5ecb5739-fa26-41e6-ad32-67601cf9fce4", + "title": "Enable the Webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the Webservice\"", + "fullTitle": "WS - Orders : CRUD Enable the Webservice \"before all\" hook in \"Enable the Webservice\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f79f4572-a4e0-4c73-b4ed-610bc3717850", + "parentUUID": "5ecb5739-fa26-41e6-ad32-67601cf9fce4", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the Webservice\"", + "fullTitle": "WS - Orders : CRUD Enable the Webservice \"after all\" hook in \"Enable the Webservice\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b383a8d2-641e-45a1-b287-902cbba77efc", + "parentUUID": "5ecb5739-fa26-41e6-ad32-67601cf9fce4", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Orders : CRUD Enable the Webservice should login in BO", + "timedOut": false, + "duration": 1783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6214878-541b-4656-ae86-4b4182c1bedf", + "parentUUID": "5ecb5739-fa26-41e6-ad32-67601cf9fce4", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Orders : CRUD Enable the Webservice should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_1_goToAdvParametersWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvParametersWebservice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfbf4e01-3b60-4758-a62b-2658b2f77af4", + "parentUUID": "5ecb5739-fa26-41e6-ad32-67601cf9fce4", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the webservice", + "fullTitle": "WS - Orders : CRUD Enable the Webservice should enable the webservice", + "timedOut": false, + "duration": 361, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_1_setWebserviceStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWebserviceStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setWebserviceStatus(page, status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(webservice_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4afa22c0-a149-41f0-b9ca-3d772723dbd9", + "parentUUID": "5ecb5739-fa26-41e6-ad32-67601cf9fce4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e6214878-541b-4656-ae86-4b4182c1bedf", + "cfbf4e01-3b60-4758-a62b-2658b2f77af4", + "4afa22c0-a149-41f0-b9ca-3d772723dbd9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6988, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "40dad841-1230-4140-a9ab-ca918cda9ecc", + "title": "Add a new webservice key named \"Webservice Key - Orders\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Add a new webservice key named \"Webservice Key - Orders\"\"", + "fullTitle": "WS - Orders : CRUD Add a new webservice key named \"Webservice Key - Orders\" \"before all\" hook in \"Add a new webservice key named \"Webservice Key - Orders\"\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7798039d-aaf2-4c35-933a-219363337f98", + "parentUUID": "40dad841-1230-4140-a9ab-ca918cda9ecc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Add a new webservice key named \"Webservice Key - Orders\"\"", + "fullTitle": "WS - Orders : CRUD Add a new webservice key named \"Webservice Key - Orders\" \"after all\" hook in \"Add a new webservice key named \"Webservice Key - Orders\"\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7c70653a-52cf-4b86-b208-8c2de40ba071", + "parentUUID": "40dad841-1230-4140-a9ab-ca918cda9ecc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Orders : CRUD Add a new webservice key named \"Webservice Key - Orders\" should login in BO", + "timedOut": false, + "duration": 1721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0de1d89-4633-41bb-9449-69bdb8d0779c", + "parentUUID": "40dad841-1230-4140-a9ab-ca918cda9ecc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Orders : CRUD Add a new webservice key named \"Webservice Key - Orders\" should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4843, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_2_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c5166b2-9fb4-4c6b-b483-7570dd6c7bf4", + "parentUUID": "40dad841-1230-4140-a9ab-ca918cda9ecc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "WS - Orders : CRUD Add a new webservice key named \"Webservice Key - Orders\" should reset all filters and get number of webservices", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_2_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eff40a51-1f15-44a4-8402-99e7bfc41650", + "parentUUID": "40dad841-1230-4140-a9ab-ca918cda9ecc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "WS - Orders : CRUD Add a new webservice key named \"Webservice Key - Orders\" should go to add new webservice key page", + "timedOut": false, + "duration": 889, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_2_goToAddNewWebserviceKeyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewWebserviceKeyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd99aa9b-50ad-4f1b-936c-780c41b72720", + "parentUUID": "40dad841-1230-4140-a9ab-ca918cda9ecc", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key and check result", + "fullTitle": "WS - Orders : CRUD Add a new webservice key named \"Webservice Key - Orders\" should create webservice key and check result", + "timedOut": false, + "duration": 1089, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_2_createWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "007070ba-ee28-4631-98fb-dacba084ca64", + "parentUUID": "40dad841-1230-4140-a9ab-ca918cda9ecc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e0de1d89-4633-41bb-9449-69bdb8d0779c", + "3c5166b2-9fb4-4c6b-b483-7570dd6c7bf4", + "eff40a51-1f15-44a4-8402-99e7bfc41650", + "bd99aa9b-50ad-4f1b-936c-780c41b72720", + "007070ba-ee28-4631-98fb-dacba084ca64" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10548, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "title": "PRE-TEST: Create a non-ordered shopping cart being connected in the FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "fullTitle": "WS - Orders : CRUD PRE-TEST: Create a non-ordered shopping cart being connected in the FO \"before all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12630427-66c5-424f-9d98-84003d7bc455", + "parentUUID": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "fullTitle": "WS - Orders : CRUD PRE-TEST: Create a non-ordered shopping cart being connected in the FO \"after all\" hook in \"PRE-TEST: Create a non-ordered shopping cart being connected in the FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "cd80ef3a-e3d0-44ad-933c-c2a82a78a385", + "parentUUID": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "WS - Orders : CRUD PRE-TEST: Create a non-ordered shopping cart being connected in the FO should open FO page", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_3_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2e80c57-e834-463c-9d08-5534da6672c5", + "parentUUID": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "WS - Orders : CRUD PRE-TEST: Create a non-ordered shopping cart being connected in the FO should go to login page", + "timedOut": false, + "duration": 710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_3_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2c2b1a6-fc26-4b7a-9f40-336974debf60", + "parentUUID": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer", + "fullTitle": "WS - Orders : CRUD PRE-TEST: Create a non-ordered shopping cart being connected in the FO should sign in with customer", + "timedOut": false, + "duration": 649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_3_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "439b9ce1-c691-43e8-b31a-4ba3ba5d7ada", + "parentUUID": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "isHook": false, + "skipped": false + }, + { + "title": "should search for the product Hummingbird printed t-shirt", + "fullTitle": "WS - Orders : CRUD PRE-TEST: Create a non-ordered shopping cart being connected in the FO should search for the product Hummingbird printed t-shirt", + "timedOut": false, + "duration": 836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_3_searchForProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchForProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, orderData.products[0].product.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88320a42-0a94-42eb-9111-a0e50c17faca", + "parentUUID": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "WS - Orders : CRUD PRE-TEST: Create a non-ordered shopping cart being connected in the FO should add product to cart", + "timedOut": false, + "duration": 6579, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_3_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 3:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9886c3f8-5f1b-4824-8dcc-f6791a62b7d3", + "parentUUID": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "isHook": false, + "skipped": false + }, + { + "title": "should sign out from FO", + "fullTitle": "WS - Orders : CRUD PRE-TEST: Create a non-ordered shopping cart being connected in the FO should sign out from FO", + "timedOut": false, + "duration": 3159, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_preTest_3_signOutFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, notificationNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signOutFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is connected').to.eq(false);\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 4:\n notificationNumber = _a.sent();\n (0, chai_1.expect)(notificationNumber).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3364b5ab-8309-4fdf-ac7d-38ea8c9c9c81", + "parentUUID": "05fe019a-fdd9-494c-8584-cfcb1b76375c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b2e80c57-e834-463c-9d08-5534da6672c5", + "a2c2b1a6-fc26-4b7a-9f40-336974debf60", + "439b9ce1-c691-43e8-b31a-4ba3ba5d7ada", + "88320a42-0a94-42eb-9111-a0e50c17faca", + "9886c3f8-5f1b-4824-8dcc-f6791a62b7d3", + "3364b5ab-8309-4fdf-ac7d-38ea8c9c9c81" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13627, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a3a63225-b657-4b1e-9d43-d376a1420590", + "title": "Orders : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "6745fbc7-d664-4bed-b3db-441698ad41d2", + "title": "Fetch informations", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Fetch informations should login in BO", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de246700-f8e3-4807-9df6-aa74257f6441", + "parentUUID": "6745fbc7-d664-4bed-b3db-441698ad41d2", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "0bb767ad-36ab-429c-9688-6e2ef658599d", + "title": "Fetch the Webservice Key", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Fetch informations Fetch the Webservice Key should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4868, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "295a712c-d041-4c65-8ff8-931a86605aff", + "parentUUID": "0bb767ad-36ab-429c-9688-6e2ef658599d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by key description", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Fetch informations Fetch the Webservice Key should filter list by key description", + "timedOut": false, + "duration": 2954, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var description;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', wsKeyDescription)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 4:\n description = _a.sent();\n (0, chai_1.expect)(description).to.contains(wsKeyDescription);\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'key')];\n case 5:\n wsKey = _a.sent();\n authorization = \"Basic \".concat(Buffer.from(\"\".concat(wsKey, \":\")).toString('base64'));\n (0, chai_1.expect)(wsKey).to.not.have.lengthOf(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c23e7be1-c3a8-4879-9052-ef0720cea46f", + "parentUUID": "0bb767ad-36ab-429c-9688-6e2ef658599d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "295a712c-d041-4c65-8ff8-931a86605aff", + "c23e7be1-c3a8-4879-9052-ef0720cea46f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7822, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0751e85e-79c5-42aa-bdaf-55a85624d044", + "title": "Fetch the Shopping Cart ID", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Shopping carts' page", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Fetch informations Fetch the Shopping Cart ID should go to 'Orders > Shopping carts' page", + "timedOut": false, + "duration": 3853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_goToShoppingCartsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShoppingCartsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.shoppingCartsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(shoppingCarts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d299f91-18de-4232-a564-0a8646b2b94e", + "parentUUID": "0751e85e-79c5-42aa-bdaf-55a85624d044", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Fetch informations Fetch the Shopping Cart ID should reset all filters", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCarts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, shoppingCarts_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfShoppingCarts = _a.sent();\n (0, chai_1.expect)(numberOfShoppingCarts).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84ba23e6-a6b9-41a1-af9b-d033353529b3", + "parentUUID": "0751e85e-79c5-42aa-bdaf-55a85624d044", + "isHook": false, + "skipped": false + }, + { + "title": "should search the non ordered shopping cart", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Fetch informations Fetch the Shopping Cart ID should search the non ordered shopping cart", + "timedOut": false, + "duration": 412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_searchNonOrderedShoppingCarts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfShoppingCartsAfterFilter, textColumn, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchNonOrderedShoppingCarts', baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, shoppingCarts_1.default.filterTable(page, 'input', 'status', 'Non ordered')];\n case 2:\n _b.sent();\n return [4 /*yield*/, shoppingCarts_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfShoppingCartsAfterFilter = _b.sent();\n (0, chai_1.expect)(numberOfShoppingCartsAfterFilter).to.gte(1);\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'status')];\n case 4:\n textColumn = _b.sent();\n (0, chai_1.expect)(textColumn).to.contains('Non ordered');\n _a = parseInt;\n return [4 /*yield*/, shoppingCarts_1.default.getTextColumn(page, 1, 'id_cart')];\n case 5:\n idShoppingCart = _a.apply(void 0, [_b.sent(), 10]);\n (0, chai_1.expect)(idShoppingCart).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "afcca49c-f13e-4f1c-9b5b-610863c3c273", + "parentUUID": "0751e85e-79c5-42aa-bdaf-55a85624d044", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8d299f91-18de-4232-a564-0a8646b2b94e", + "84ba23e6-a6b9-41a1-af9b-d033353529b3", + "afcca49c-f13e-4f1c-9b5b-610863c3c273" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4280, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "de246700-f8e3-4807-9df6-aa74257f6441" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1716, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "54c03cb8-3902-454d-9326-d85e08bc1250", + "title": "Endpoint : api/orders - Schema : Blank ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Blank should check response status", + "timedOut": false, + "duration": 32, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestBlankStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderWs_1.default.getBlank(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48cc57d6-b1cc-4196-b2e5-c84997df3c69", + "parentUUID": "54c03cb8-3902-454d-9326-d85e08bc1250", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the blank XML can be parsed", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Blank should check that the blank XML can be parsed", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestBlankValid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isValidXML;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankValid', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n isValidXML = xml_1.default.isValid(xmlResponse);\n (0, chai_1.expect)(isValidXML).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7793c9b6-e5f3-4662-aff5-4f4388eadeb4", + "parentUUID": "54c03cb8-3902-454d-9326-d85e08bc1250", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Blank should check response root node", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestBlankRootNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankRootNode', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(orderXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19194bd0-1dbc-40f8-8beb-aa62b5b10f6b", + "parentUUID": "54c03cb8-3902-454d-9326-d85e08bc1250", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Blank should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestBlankChildNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankChildNode', baseContext)];\n case 1:\n _a.sent();\n rootNodes = orderXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('order');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86466a00-5687-4391-aedd-ca1ec7402621", + "parentUUID": "54c03cb8-3902-454d-9326-d85e08bc1250", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and has empty values", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Blank should check each node name, attributes and has empty values", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestBlankChildNodes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nodes, c, node, nodeAttributes, isEmptyNode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankChildNodes', baseContext)];\n case 1:\n _a.sent();\n nodes = orderXml_1.default.getOrderNodes(xmlResponse);\n (0, chai_1.expect)(nodes.length).to.be.gt(0);\n for (c = 0; c < nodes.length; c++) {\n node = nodes[c];\n nodeAttributes = node.attributes;\n (0, chai_1.expect)(nodeAttributes.length).to.be.eq(0);\n isEmptyNode = xml_1.default.isEmpty(node);\n (0, chai_1.expect)(isEmptyNode, \"The node \".concat(node.nodeName, \" is not empty\")).to.eq(true);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6de3a51-6949-48ad-9668-91489725f831", + "parentUUID": "54c03cb8-3902-454d-9326-d85e08bc1250", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "48cc57d6-b1cc-4196-b2e5-c84997df3c69", + "7793c9b6-e5f3-4662-aff5-4f4388eadeb4", + "19194bd0-1dbc-40f8-8beb-aa62b5b10f6b", + "86466a00-5687-4391-aedd-ca1ec7402621", + "e6de3a51-6949-48ad-9668-91489725f831" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 36, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5486732e-cf3e-4fb0-bcef-63407b2ed948", + "title": "Endpoint : api/orders - Schema : Synopsis ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Synopsis should check response status", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestSynopsisStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderWs_1.default.getSynopsis(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9333af42-414d-491c-9f24-547d59fb5bd4", + "parentUUID": "5486732e-cf3e-4fb0-bcef-63407b2ed948", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the synopsis XML can be parsed", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Synopsis should check that the synopsis XML can be parsed", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestSynopsisValid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isValidXML;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisValid', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n isValidXML = xml_1.default.isValid(xmlResponse);\n (0, chai_1.expect)(isValidXML).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19b9caf0-4774-4bbe-98d4-4c1820827971", + "parentUUID": "5486732e-cf3e-4fb0-bcef-63407b2ed948", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Synopsis should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestSynopsisRootNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisRootNode', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(orderXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3dc8e445-34ec-4b5f-b966-64b968e7ace8", + "parentUUID": "5486732e-cf3e-4fb0-bcef-63407b2ed948", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Synopsis should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestSynopsisChildNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisChildNode', baseContext)];\n case 1:\n _a.sent();\n rootNodes = orderXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('order');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef779cd4-d0be-452f-a5d0-d960fee98e69", + "parentUUID": "5486732e-cf3e-4fb0-bcef-63407b2ed948", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and has empty values", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Schema : Synopsis should check each node name, attributes and has empty values", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestSynopsisChildNodes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nodes, c, node, nodeAttributes, isEmptyNode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisChildNodes', baseContext)];\n case 1:\n _a.sent();\n nodes = orderXml_1.default.getOrderNodes(xmlResponse);\n (0, chai_1.expect)(nodes.length).to.be.gt(0);\n for (c = 0; c < nodes.length; c++) {\n node = nodes[c];\n nodeAttributes = node.attributes;\n (0, chai_1.expect)(nodeAttributes.length).to.be.gte(0);\n if (!([\n 'invoice_number',\n 'invoice_date',\n 'delivery_number',\n 'delivery_date',\n 'valid',\n 'shipping_number',\n 'note',\n 'reference',\n 'associations',\n ].includes(node.nodeName))) {\n // Attribute : format\n (0, chai_1.expect)(nodeAttributes[nodeAttributes.length - 1].nodeName).to.be.eq('format');\n }\n isEmptyNode = xml_1.default.isEmpty(node);\n (0, chai_1.expect)(isEmptyNode, \"The node \".concat(node.nodeName, \" is not empty\")).to.eq(true);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "548f5265-54ac-47c7-998d-9733cbd04a38", + "parentUUID": "5486732e-cf3e-4fb0-bcef-63407b2ed948", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9333af42-414d-491c-9f24-547d59fb5bd4", + "19b9caf0-4774-4bbe-98d4-4c1820827971", + "3dc8e445-34ec-4b5f-b966-64b968e7ace8", + "ef779cd4-d0be-452f-a5d0-d960fee98e69", + "548f5265-54ac-47c7-998d-9733cbd04a38" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 30, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "005e1f65-1725-40e4-b122-84f23ca109fd", + "title": "Endpoint : api/orders - Method : GET ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : GET should check response status", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderWs_1.default.getAll(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b76433a4-cecd-4b85-98f5-6b25e7493b6b", + "parentUUID": "005e1f65-1725-40e4-b122-84f23ca109fd", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : GET should check response root node", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(orderXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ee5b449c-cbca-402b-9e45-014cd15b91b5", + "parentUUID": "005e1f65-1725-40e4-b122-84f23ca109fd", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : GET should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = orderXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('orders');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a060f00b-0b02-48d7-adc8-039c10d99111", + "parentUUID": "005e1f65-1725-40e4-b122-84f23ca109fd", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under orders node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : GET should check number of nodes under orders node", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n ordersNode = orderXml_1.default.getAllOrders(xmlResponse);\n (0, chai_1.expect)(ordersNode.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08336c7f-c025-4189-9e63-f3548b8f87fe", + "parentUUID": "005e1f65-1725-40e4-b122-84f23ca109fd", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and xlink:href", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : GET should check each node name, attributes and xlink:href", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetCheckAll1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var c, orderNode, orderNodeAttributes, orderNodeAttributeId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetCheckAll1', baseContext)];\n case 1:\n _a.sent();\n for (c = 0; c < ordersNode.length; c++) {\n orderNode = ordersNode[c];\n (0, chai_1.expect)(orderNode.nodeName).to.be.eq('order');\n orderNodeAttributes = orderNode.attributes;\n (0, chai_1.expect)(orderNodeAttributes.length).to.be.eq(2);\n // Attribute : id\n (0, chai_1.expect)(orderNodeAttributes[0].nodeName).to.be.eq('id');\n orderNodeAttributeId = orderNodeAttributes[0].nodeValue;\n (0, chai_1.expect)(orderNodeAttributeId).to.be.eq(parseInt(orderNodeAttributeId, 10).toString());\n // Attribute : xlink:href\n (0, chai_1.expect)(orderNodeAttributes[1].nodeName).to.be.eq('xlink:href');\n (0, chai_1.expect)(orderNodeAttributes[1].nodeValue).to.be.a('string');\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24f96bae-9629-47f3-ab21-01539f5dec48", + "parentUUID": "005e1f65-1725-40e4-b122-84f23ca109fd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b76433a4-cecd-4b85-98f5-6b25e7493b6b", + "ee5b449c-cbca-402b-9e45-014cd15b91b5", + "a060f00b-0b02-48d7-adc8-039c10d99111", + "08336c7f-c025-4189-9e63-f3548b8f87fe", + "24f96bae-9629-47f3-ab21-01539f5dec48" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d5f03150-e3a9-4910-9662-c66a57f22f24", + "title": "Endpoint : api/orders - Method : POST ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "c518b049-9e88-4167-9dcd-a8a35ea2d1cf", + "title": "Endpoint : api/orders - Method : POST - Add Order ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Add Order should check response status", + "timedOut": false, + "duration": 759, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestPostStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostStatus1', baseContext)];\n case 1:\n _a.sent();\n xmlCreate = (0, order_2.default)(idShoppingCart);\n return [4 /*yield*/, orderWs_1.default.add(apiContext, authorization, xmlCreate)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(201);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0255de7d-a907-4832-aabe-28996e091c91", + "parentUUID": "c518b049-9e88-4167-9dcd-a8a35ea2d1cf", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Add Order should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestPostRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponseCreate = _a.sent();\n (0, chai_1.expect)(orderXml_1.default.getRootNodeName(xmlResponseCreate)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ebf8e22-677e-47bc-b7bb-82e0398b4073", + "parentUUID": "c518b049-9e88-4167-9dcd-a8a35ea2d1cf", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Add Order should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestPostNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = orderXml_1.default.getPrestaShopNodes(xmlResponseCreate);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('order');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "980dedcb-e5b2-4e9d-b42e-84ab74796de1", + "parentUUID": "c518b049-9e88-4167-9dcd-a8a35ea2d1cf", + "isHook": false, + "skipped": false + }, + { + "title": "should check id of the order", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Add Order should check id of the order", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestPostCheckId1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostCheckId1', baseContext)];\n case 1:\n _a.sent();\n // Attribute : id\n orderNodeID = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'id');\n (0, chai_1.expect)(orderNodeID).to.be.a('string');\n (0, chai_1.expect)(orderNodeID).to.be.eq(parseInt(orderNodeID, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cac4348e-c0a2-40d9-b2fd-8a96d8d48eeb", + "parentUUID": "c518b049-9e88-4167-9dcd-a8a35ea2d1cf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0255de7d-a907-4832-aabe-28996e091c91", + "9ebf8e22-677e-47bc-b7bb-82e0398b4073", + "980dedcb-e5b2-4e9d-b42e-84ab74796de1", + "cac4348e-c0a2-40d9-b2fd-8a96d8d48eeb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 762, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2bab8b67-93ff-45a2-9fdb-2e9ee85d28fb", + "title": "Endpoint : api/orders/{id} - Method : POST - Check with WS ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders/{id} - Method : POST - Check with WS should check response status", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetIDStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderWs_1.default.getById(apiContext, authorization, orderNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe3b9997-7651-4653-8c59-e1781615add2", + "parentUUID": "2bab8b67-93ff-45a2-9fdb-2e9ee85d28fb", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders/{id} - Method : POST - Check with WS should check response root node", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetIDRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponseCreate = _a.sent();\n (0, chai_1.expect)(orderXml_1.default.getRootNodeName(xmlResponseCreate)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bdd987a-512d-465b-916e-836e1d352998", + "parentUUID": "2bab8b67-93ff-45a2-9fdb-2e9ee85d28fb", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders/{id} - Method : POST - Check with WS should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetIDNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = orderXml_1.default.getPrestaShopNodes(xmlResponseCreate);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('order');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22b2e322-5263-41a5-a288-9156be8056e7", + "parentUUID": "2bab8b67-93ff-45a2-9fdb-2e9ee85d28fb", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under orders node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders/{id} - Method : POST - Check with WS should check number of nodes under orders node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetIDNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n ordersNodes = orderXml_1.default.getOrderNodes(xmlResponseCreate);\n (0, chai_1.expect)(ordersNodes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43220fdf-c1c2-46d1-a310-afd9e5854f21", + "parentUUID": "2bab8b67-93ff-45a2-9fdb-2e9ee85d28fb", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node id, name ...", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders/{id} - Method : POST - Check with WS should check each node id, name ...", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetIDCheckAll\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var o, oNode, objectNodeValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDCheckAll', baseContext)];\n case 1:\n _a.sent();\n // Check nodes are equal to them done in Create\n for (o = 0; o < ordersNodes.length; o++) {\n oNode = ordersNodes[o];\n objectNodeValue = orderXml_1.default.getAttributeValue(xmlCreate, oNode.nodeName);\n if (objectNodeValue !== null) {\n if (oNode.nodeName === 'id') {\n (0, chai_1.expect)(oNode.textContent).to.be.eq(orderNodeID);\n }\n else if (oNode.nodeName === 'id_address_invoice') {\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/34564\n }\n else if (oNode.nodeName === 'total_paid_real') {\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/34564\n }\n else if (oNode.nodeName !== 'date_add' && oNode.nodeName !== 'date_upd') {\n (0, chai_1.expect)(oNode.textContent).to.be.eq(objectNodeValue);\n }\n }\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "069adb37-834c-4a19-af1b-bed36fe9c669", + "parentUUID": "2bab8b67-93ff-45a2-9fdb-2e9ee85d28fb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fe3b9997-7651-4653-8c59-e1781615add2", + "5bdd987a-512d-465b-916e-836e1d352998", + "22b2e322-5263-41a5-a288-9156be8056e7", + "43220fdf-c1c2-46d1-a310-afd9e5854f21", + "069adb37-834c-4a19-af1b-bed36fe9c669" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 39, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c5664efc-b731-4ad7-ad78-a66a4a96109e", + "title": "Endpoint : api/orders - Method : POST - Check On BO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6edb022c-0fa1-48fa-9d40-c106a829e226", + "parentUUID": "c5664efc-b731-4ad7-ad78-a66a4a96109e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter order by ID", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO should filter order by ID", + "timedOut": false, + "duration": 4436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_filterToUpdateAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterPost', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, orders_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'id_order', orderNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.eq(1);\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'id_order', 1)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(orderNodeID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f84e89e-a33e-4f35-bd50-6863d15d8b06", + "parentUUID": "c5664efc-b731-4ad7-ad78-a66a4a96109e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view order page", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO should go to view order page", + "timedOut": false, + "duration": 1108, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_goToViewOrderPageAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewOrderPageAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67d1cb39-ed2f-4ee5-a12c-c4e68a3d64ba", + "parentUUID": "c5664efc-b731-4ad7-ad78-a66a4a96109e", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "200d6ffd-926e-4478-8048-0982df4735db", + "title": "Block : Header", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check current_state", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Header should check current_state", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderCurrentState1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderCurrentState1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'current_state');\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getOrderStatusID(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value.toString()).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d25fce4-786f-44d9-8032-6660de1a8b5d", + "parentUUID": "200d6ffd-926e-4478-8048-0982df4735db", + "isHook": false, + "skipped": false + }, + { + "title": "should check reference", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Header should check reference", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderReference1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReference1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'reference');\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getOrderReference(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52463f23-0f74-4abd-9ad1-bb01ad9e2b7d", + "parentUUID": "200d6ffd-926e-4478-8048-0982df4735db", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9d25fce4-786f-44d9-8032-6660de1a8b5d", + "52463f23-0f74-4abd-9ad1-bb01ad9e2b7d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2340aec8-fc83-4e54-8dac-fd5e51ebacc6", + "title": "Block : Customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check id_customer", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Customer should check id_customer", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderIdCustomer1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderIdCustomer1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'id_customer');\n return [4 /*yield*/, customerBlock_1.default.getCustomerID(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value.toString()).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e09cf1b0-086e-4ce2-a17b-a1bf14f5504e", + "parentUUID": "2340aec8-fc83-4e54-8dac-fd5e51ebacc6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e09cf1b0-086e-4ce2-a17b-a1bf14f5504e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b2c2b8da-784d-43bb-96f7-77abf932fb17", + "title": "Block : Products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check total_discounts", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Products should check total_discounts", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderTotalDiscounts1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderTotalDiscounts1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'total_discounts');\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalDiscounts(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(parseFloat(value.toString())).to.be.eq(parseFloat(xmlValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e4112b43-1265-4f56-b18c-d8f303fb9342", + "parentUUID": "b2c2b8da-784d-43bb-96f7-77abf932fb17", + "isHook": false, + "skipped": false + }, + { + "title": "should check total_shipping", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Products should check total_shipping", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderTotalShipping1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderTotalShipping1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'total_shipping');\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalShipping(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(parseFloat(value.toString())).to.be.eq(parseFloat(xmlValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be891ce3-42cc-4709-a9ac-8a9877fe42b2", + "parentUUID": "b2c2b8da-784d-43bb-96f7-77abf932fb17", + "isHook": false, + "skipped": false + }, + { + "title": "should check total_products_wt", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Products should check total_products_wt", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderTotalProductWT1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderTotalProductWT1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'total_products_wt');\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalProducts(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(parseFloat(value.toString())).to.be.eq(parseFloat(xmlValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6f98162-5cf9-4c6d-bc6b-75851ca15112", + "parentUUID": "b2c2b8da-784d-43bb-96f7-77abf932fb17", + "isHook": false, + "skipped": false + }, + { + "title": "should check total_paid", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Products should check total_paid", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderTotalPaid1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderTotalPaid1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'total_paid');\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalProducts(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(parseFloat(value.toString())).to.be.eq(parseFloat(xmlValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3756cec3-eaee-4c69-8ac7-c2505596a6e4", + "parentUUID": "b2c2b8da-784d-43bb-96f7-77abf932fb17", + "isHook": false, + "skipped": false + }, + { + "title": "should check order_rows", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Products should check order_rows", + "timedOut": false, + "duration": 80, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderRows1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var value, xmlValueID, xmlValueProductID;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderRows1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 1)];\n case 2:\n value = _a.sent();\n xmlValueID = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'associations/order_rows/order_row/id');\n (0, chai_1.expect)(value.orderDetailId).to.be.eq(xmlValueID);\n xmlValueProductID = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'associations/order_rows/order_row/product_id');\n (0, chai_1.expect)(value.productId).to.be.eq(xmlValueProductID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a644acbc-e652-44c9-9056-b8e2f1e1f407", + "parentUUID": "b2c2b8da-784d-43bb-96f7-77abf932fb17", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e4112b43-1265-4f56-b18c-d8f303fb9342", + "be891ce3-42cc-4709-a9ac-8a9877fe42b2", + "f6f98162-5cf9-4c6d-bc6b-75851ca15112", + "3756cec3-eaee-4c69-8ac7-c2505596a6e4", + "a644acbc-e652-44c9-9056-b8e2f1e1f407" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 113, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "title": "Block : Tabs", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check note", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should check note", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderNote1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderNote1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'note');\n return [4 /*yield*/, tabListBlock_1.default.getOrderNoteContent(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fc19eb0-3ac0-44b0-ade9-74c60ef0b435", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should check recyclable", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should check recyclable", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderRecyclable1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderRecyclable1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'recyclable');\n return [4 /*yield*/, tabListBlock_1.default.hasBadgeRecyclable(page)];\n case 2:\n value = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ebadeeae-f82e-48e4-aa4c-855f37cb4b8c", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should check gift", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should check gift", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderGift1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderGift1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'gift');\n return [4 /*yield*/, tabListBlock_1.default.hasBadgeGift(page)];\n case 2:\n value = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1345359e-17c4-4dd6-8400-97647db14f4f", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should check gift_message", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should check gift_message", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderGiftMessage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderGiftMessage1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'gift_message');\n return [4 /*yield*/, tabListBlock_1.default.getGiftMessage(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "276a7875-02ed-40d2-b7a0-a509a86994c8", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should display the Documents Tabs", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should display the Documents Tabs", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_displayDocumentsTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayDocumentsTab1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabVisible = _a.sent();\n (0, chai_1.expect)(isTabVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7dc23d52-6326-4ed0-8df7-a44026df240c", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should check invoice_number", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should check invoice_number", + "timedOut": false, + "duration": 288, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderInvoiceNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType, xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderInvoiceNumber1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 1)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Invoice');\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'invoice_number');\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page, 1)];\n case 3:\n value = _a.sent();\n (0, chai_1.expect)(value).to.endWith(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7d83fb6-5513-4333-96bb-ed315500f4a8", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should check invoice_date", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should check invoice_date", + "timedOut": false, + "duration": 64, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderInvoiceDate1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderInvoiceDate1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'invoice_date');\n return [4 /*yield*/, tabListBlock_1.default.getDocumentDate(page, 1)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value).to.be.equal(date_1.default.setDateFormat('mm/dd/yyyy', xmlValue, false));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96b6d37e-98eb-4ebc-893b-8bd8710b9c2a", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should display the Carriers Tabs", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should display the Carriers Tabs", + "timedOut": false, + "duration": 61, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_displayCarrierTab1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayCarrierTab1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabVisible = _a.sent();\n (0, chai_1.expect)(isTabVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35a60f26-fa56-4cfb-b033-4521a62fa6dd", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should check shipping_number", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should check shipping_number", + "timedOut": false, + "duration": 218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderShippingNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var value, xmlValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderShippingNumber1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getCarrierDetails(page)];\n case 2:\n value = _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'shipping_number');\n (0, chai_1.expect)(value.trackingNumber).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73573769-7b5e-4052-a9fc-c6d84889540c", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + }, + { + "title": "should check id_carrier", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Tabs should check id_carrier", + "timedOut": false, + "duration": 733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderIdCarrier1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisibleBefore, value, isModalHiddenAfter, xmlValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderIdCarrier1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisibleBefore = _a.sent();\n (0, chai_1.expect)(isModalVisibleBefore).to.be.equal(true);\n return [4 /*yield*/, tabListBlock_1.default.getShippingCarrierID(page)];\n case 3:\n value = _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.closeOrderShippingModal(page)];\n case 4:\n isModalHiddenAfter = _a.sent();\n (0, chai_1.expect)(isModalHiddenAfter).to.be.equal(true);\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'id_carrier');\n (0, chai_1.expect)(value.toString()).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e6b5a26-7615-4d64-b3b4-1c7d038cb0b2", + "parentUUID": "d7eeb196-91d8-40a7-a856-fdcdce000e8f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7fc19eb0-3ac0-44b0-ade9-74c60ef0b435", + "ebadeeae-f82e-48e4-aa4c-855f37cb4b8c", + "1345359e-17c4-4dd6-8400-97647db14f4f", + "276a7875-02ed-40d2-b7a0-a509a86994c8", + "7dc23d52-6326-4ed0-8df7-a44026df240c", + "c7d83fb6-5513-4333-96bb-ed315500f4a8", + "96b6d37e-98eb-4ebc-893b-8bd8710b9c2a", + "35a60f26-fa56-4cfb-b033-4521a62fa6dd", + "73573769-7b5e-4052-a9fc-c6d84889540c", + "3e6b5a26-7615-4d64-b3b4-1c7d038cb0b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2437, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "90a0355a-b57e-49c3-9ffa-e13970256d8d", + "title": "Block : Payments", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check payment", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Block : Payments should check payment", + "timedOut": false, + "duration": 48, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderPayment1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderPayment1', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseCreate, 'payment');\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsDetails(page, 1)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value.paymentMethod).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6aaa78e2-ae28-481b-bace-f4a58f568bd0", + "parentUUID": "90a0355a-b57e-49c3-9ffa-e13970256d8d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6aaa78e2-ae28-481b-bace-f4a58f568bd0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 48, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "533bbccc-d2ac-46c5-93e1-6c11cf53ba70", + "title": "Reset filters", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Reset filters should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_goToOrdersPagePostReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPagePostReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0fe1237-223b-49e4-8d17-96326b6337b3", + "parentUUID": "533bbccc-d2ac-46c5-93e1-6c11cf53ba70", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : POST Endpoint : api/orders - Method : POST - Check On BO Reset filters should reset all filters", + "timedOut": false, + "duration": 834, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_resetFilterFirstAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountries;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirstAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c6266a8-0f47-45a8-9ad2-d54c3cabd74c", + "parentUUID": "533bbccc-d2ac-46c5-93e1-6c11cf53ba70", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e0fe1237-223b-49e4-8d17-96326b6337b3", + "1c6266a8-0f47-45a8-9ad2-d54c3cabd74c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5612, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "6edb022c-0fa1-48fa-9d40-c106a829e226", + "0f84e89e-a33e-4f35-bd50-6863d15d8b06", + "67d1cb39-ed2f-4ee5-a12c-c4e68a3d64ba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10421, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f7be99a3-9505-4ba9-99b1-3a4901ff0494", + "title": "Endpoint : api/orders - Method : PUT ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "4d0aefba-b10b-40b2-abf9-f4a6cd66974c", + "title": "Endpoint : api/orders - Method : PUT - Update Order ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status of api/orders/{id}", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Update Order should check response status of api/orders/{id}", + "timedOut": false, + "duration": 273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestPutStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutStatus2', baseContext)];\n case 1:\n _a.sent();\n xmlUpdate = (0, order_2.default)(idShoppingCart, {\n idOrder: orderNodeID,\n invoiceNumber: orderXml_1.default.getAttributeValue(xmlResponseCreate, 'invoice_number'),\n invoiceDate: orderXml_1.default.getAttributeValue(xmlResponseCreate, 'invoice_date'),\n secureKey: orderXml_1.default.getAttributeValue(xmlResponseCreate, 'secure_key'),\n });\n return [4 /*yield*/, orderWs_1.default.update(apiContext, authorization, orderNodeID, xmlUpdate)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f639526a-3ba4-4990-a247-b1d85d244b4a", + "parentUUID": "4d0aefba-b10b-40b2-abf9-f4a6cd66974c", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Update Order should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestPutRootNode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutRootNode2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponseUpdate = _a.sent();\n (0, chai_1.expect)(orderXml_1.default.getRootNodeName(xmlResponseUpdate)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "990e7577-537b-4179-b1dc-b2a16c76b703", + "parentUUID": "4d0aefba-b10b-40b2-abf9-f4a6cd66974c", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Update Order should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestPutNodeNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutNodeNumber2', baseContext)];\n case 1:\n _a.sent();\n rootNodes = orderXml_1.default.getPrestaShopNodes(xmlResponseUpdate);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('order');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b27d76bd-e259-4d75-858f-4027c693d83a", + "parentUUID": "4d0aefba-b10b-40b2-abf9-f4a6cd66974c", + "isHook": false, + "skipped": false + }, + { + "title": "should check id of the order", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Update Order should check id of the order", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestPutCheckId2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutCheckId2', baseContext)];\n case 1:\n _a.sent();\n // Attribute : id\n orderNodeID = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'id');\n (0, chai_1.expect)(orderNodeID).to.be.a('string');\n (0, chai_1.expect)(orderNodeID).to.be.eq(parseInt(orderNodeID, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dec6d8db-4938-44ed-93df-c587a66658ed", + "parentUUID": "4d0aefba-b10b-40b2-abf9-f4a6cd66974c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f639526a-3ba4-4990-a247-b1d85d244b4a", + "990e7577-537b-4179-b1dc-b2a16c76b703", + "b27d76bd-e259-4d75-858f-4027c693d83a", + "dec6d8db-4938-44ed-93df-c587a66658ed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 276, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ea0577fb-b848-4d2e-b875-1ce511501786", + "title": "Endpoint : api/orders/{id} - Method : PUT - Check with WS ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders/{id} - Method : PUT - Check with WS should check response status", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetPutStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderWs_1.default.getById(apiContext, authorization, orderNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "379d8892-1e05-45d3-8621-390bf8ab58b7", + "parentUUID": "ea0577fb-b848-4d2e-b875-1ce511501786", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders/{id} - Method : PUT - Check with WS should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetPutRootNode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutRootNode2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponseUpdate = _a.sent();\n (0, chai_1.expect)(orderXml_1.default.getRootNodeName(xmlResponseUpdate)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b6fda38-0149-4033-b37f-9afeafc021de", + "parentUUID": "ea0577fb-b848-4d2e-b875-1ce511501786", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders/{id} - Method : PUT - Check with WS should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetPutNodeNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutNodeNumber2', baseContext)];\n case 1:\n _a.sent();\n rootNodes = orderXml_1.default.getPrestaShopNodes(xmlResponseUpdate);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('order');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c810b87-78e2-43da-94b5-96d89b1358b0", + "parentUUID": "ea0577fb-b848-4d2e-b875-1ce511501786", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under orders node", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders/{id} - Method : PUT - Check with WS should check number of nodes under orders node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestGetPutNumberOfNodes2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutNumberOfNodes2', baseContext)];\n case 1:\n _a.sent();\n ordersNodes = orderXml_1.default.getOrderNodes(xmlResponseUpdate);\n (0, chai_1.expect)(ordersNodes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb0be28d-0dde-4dea-9582-2e067753d0aa", + "parentUUID": "ea0577fb-b848-4d2e-b875-1ce511501786", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node id, name ...", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders/{id} - Method : PUT - Check with WS should check each node id, name ...", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestEndpointCountriesIdMethodGetAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var o, oNode, objectNodeValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointCountriesIdMethodGetAfterPut', baseContext)];\n case 1:\n _a.sent();\n // Check nodes are equal to them done in Create\n for (o = 0; o < ordersNodes.length; o++) {\n oNode = ordersNodes[o];\n objectNodeValue = orderXml_1.default.getAttributeValue(xmlUpdate, oNode.nodeName);\n if (objectNodeValue !== null) {\n if (oNode.nodeName === 'id') {\n (0, chai_1.expect)(oNode.textContent).to.be.eq(orderNodeID);\n }\n else if (oNode.nodeName === 'id_address_invoice') {\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/34564\n }\n else if (oNode.nodeName === 'total_paid_real') {\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/34564\n }\n else if (oNode.nodeName !== 'date_add' && oNode.nodeName !== 'date_upd') {\n (0, chai_1.expect)(oNode.textContent).to.be.eq(objectNodeValue);\n }\n }\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0bff002b-9d1f-473f-bada-9a696d567b4f", + "parentUUID": "ea0577fb-b848-4d2e-b875-1ce511501786", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "379d8892-1e05-45d3-8621-390bf8ab58b7", + "7b6fda38-0149-4033-b37f-9afeafc021de", + "3c810b87-78e2-43da-94b5-96d89b1358b0", + "fb0be28d-0dde-4dea-9582-2e067753d0aa", + "0bff002b-9d1f-473f-bada-9a696d567b4f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 36, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "349d0b75-204f-434d-a8a5-8a6fb4d61038", + "title": "Endpoint : api/orders - Method : PUT - Check On BO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter order by ID", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO should filter order by ID", + "timedOut": false, + "duration": 4345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_filterToUpdateAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterPut', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, orders_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'id_order', orderNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfOrdersAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterFilter).to.be.eq(1);\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'id_order', 1)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(orderNodeID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b92614f-4f3e-4339-bc09-36c1c3d7f019", + "parentUUID": "349d0b75-204f-434d-a8a5-8a6fb4d61038", + "isHook": false, + "skipped": false + }, + { + "title": "should go to view order page", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO should go to view order page", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_goToViewOrderPageAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToViewOrderPageAfterPut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40c0e627-ad59-4b6a-b777-9cdf8014d893", + "parentUUID": "349d0b75-204f-434d-a8a5-8a6fb4d61038", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "b2f7c60b-16ef-4f32-a4d1-0431024696dd", + "title": "Block : Header", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check current_state", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Header should check current_state", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderCurrentState2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderCurrentState2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'current_state');\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getOrderStatusID(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value.toString()).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "778ca99a-e2c6-4952-ac03-af78f173a1cf", + "parentUUID": "b2f7c60b-16ef-4f32-a4d1-0431024696dd", + "isHook": false, + "skipped": false + }, + { + "title": "should check reference", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Header should check reference", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderReference2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderReference2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'reference');\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getOrderReference(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac3f29a8-47ac-4a87-9984-cd86320c67ad", + "parentUUID": "b2f7c60b-16ef-4f32-a4d1-0431024696dd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "778ca99a-e2c6-4952-ac03-af78f173a1cf", + "ac3f29a8-47ac-4a87-9984-cd86320c67ad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ebc630b7-5f7c-4ca2-b743-16d6a40cfe59", + "title": "Block : Customer", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check id_customer", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Customer should check id_customer", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderIdCustomer2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderIdCustomer2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'id_customer');\n return [4 /*yield*/, customerBlock_1.default.getCustomerID(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value.toString()).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5024ab2a-ac5f-4f50-9017-8f93fe154b5a", + "parentUUID": "ebc630b7-5f7c-4ca2-b743-16d6a40cfe59", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5024ab2a-ac5f-4f50-9017-8f93fe154b5a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "05e11ece-474d-4cec-9c7d-e94ce92a3e80", + "title": "Block : Products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check total_discounts", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Products should check total_discounts", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderTotalDiscounts2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderTotalDiscounts2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'total_discounts');\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalDiscounts(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(parseFloat(value.toString())).to.be.eq(parseFloat(xmlValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43171bca-b5d5-43d3-a18a-30c309efd01a", + "parentUUID": "05e11ece-474d-4cec-9c7d-e94ce92a3e80", + "isHook": false, + "skipped": false + }, + { + "title": "should check total_shipping", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Products should check total_shipping", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderTotalShipping2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderTotalShipping2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'total_shipping');\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalShipping(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(parseFloat(value.toString())).to.be.eq(parseFloat(xmlValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cda4741-43a9-4afa-b062-8226b8eec7f7", + "parentUUID": "05e11ece-474d-4cec-9c7d-e94ce92a3e80", + "isHook": false, + "skipped": false + }, + { + "title": "should check total_products_wt", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Products should check total_products_wt", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderTotalProductWT2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderTotalProductWT2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'total_products_wt');\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalProducts(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(parseFloat(value.toString())).to.be.eq(parseFloat(xmlValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "944d484e-cf0f-4dba-9225-9965f623f4de", + "parentUUID": "05e11ece-474d-4cec-9c7d-e94ce92a3e80", + "isHook": false, + "skipped": false + }, + { + "title": "should check total_paid", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Products should check total_paid", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderTotalPaid2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderTotalPaid2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'total_paid');\n return [4 /*yield*/, productsBlock_1.default.getOrderTotalProducts(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(parseFloat(value.toString())).to.be.eq(parseFloat(xmlValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5874a32f-4224-40ec-80c1-242d93027327", + "parentUUID": "05e11ece-474d-4cec-9c7d-e94ce92a3e80", + "isHook": false, + "skipped": false + }, + { + "title": "should check order_rows", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Products should check order_rows", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderRows2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var value, xmlValueID, xmlValueProductID;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderRows2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getProductDetails(page, 1)];\n case 2:\n value = _a.sent();\n xmlValueID = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'associations/order_rows/order_row/id');\n (0, chai_1.expect)(value.orderDetailId).to.be.eq(xmlValueID);\n xmlValueProductID = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'associations/order_rows/order_row/product_id');\n (0, chai_1.expect)(value.productId).to.be.eq(xmlValueProductID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d61bc0d6-7c81-4c46-b096-7d3b9a1fce25", + "parentUUID": "05e11ece-474d-4cec-9c7d-e94ce92a3e80", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "43171bca-b5d5-43d3-a18a-30c309efd01a", + "8cda4741-43a9-4afa-b062-8226b8eec7f7", + "944d484e-cf0f-4dba-9225-9965f623f4de", + "5874a32f-4224-40ec-80c1-242d93027327", + "d61bc0d6-7c81-4c46-b096-7d3b9a1fce25" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 79, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "title": "Block : Tabs", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check note", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should check note", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderNote2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderNote2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'note');\n return [4 /*yield*/, tabListBlock_1.default.getOrderNoteContent(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "df0e6a54-4601-48c4-b862-68eb69d808f0", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should check recyclable", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should check recyclable", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderRecyclable2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderRecyclable2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'recyclable');\n return [4 /*yield*/, tabListBlock_1.default.hasBadgeRecyclable(page)];\n case 2:\n value = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a676f7d5-b01d-4a5c-80c3-a497388fc12d", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should check gift", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should check gift", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderGift2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderGift2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'gift');\n return [4 /*yield*/, tabListBlock_1.default.hasBadgeGift(page)];\n case 2:\n value = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "151d39d9-2992-47f1-bbbb-0bd8016578ed", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should check gift_message", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should check gift_message", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderGiftMessage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderGiftMessage2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'gift_message');\n return [4 /*yield*/, tabListBlock_1.default.getGiftMessage(page)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "432cf137-3bfd-4118-9125-8c7c68bff232", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should display the Documents Tabs", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should display the Documents Tabs", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_displayDocumentsTab2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayDocumentsTab2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToDocumentsTab(page)];\n case 2:\n isTabVisible = _a.sent();\n (0, chai_1.expect)(isTabVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da7a3694-9690-428f-8e2e-6a40a343d70c", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should check invoice_number", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should check invoice_number", + "timedOut": false, + "duration": 290, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderInvoiceNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var documentType, xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderInvoiceNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getDocumentType(page, 1)];\n case 2:\n documentType = _a.sent();\n (0, chai_1.expect)(documentType).to.be.equal('Invoice');\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'invoice_number');\n return [4 /*yield*/, tabListBlock_1.default.getFileName(page, 1)];\n case 3:\n value = _a.sent();\n (0, chai_1.expect)(value).to.endWith(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac09c6c4-bc67-44f7-b3c2-a5deba6c019e", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should check invoice_date", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should check invoice_date", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderInvoiceDate2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderInvoiceDate2', baseContext)];\n case 1:\n _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'invoice_date');\n return [4 /*yield*/, tabListBlock_1.default.getDocumentDate(page, 1)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value).to.be.equal(date_1.default.setDateFormat('mm/dd/yyyy', xmlValue, false));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ba8e7c0-5f74-4fcd-9adf-2aaa78a357dc", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should display the Carriers Tabs", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should display the Carriers Tabs", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_displayCarrierTab2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'displayCarrierTab2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.goToCarriersTab(page)];\n case 2:\n isTabVisible = _a.sent();\n (0, chai_1.expect)(isTabVisible).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de06bfa9-d621-4a21-91ca-a0bd4fa5e20d", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should check shipping_number", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should check shipping_number", + "timedOut": false, + "duration": 216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderShippingNumber2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var value, xmlValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderShippingNumber2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getCarrierDetails(page)];\n case 2:\n value = _a.sent();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'shipping_number');\n (0, chai_1.expect)(value.trackingNumber).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e04f2e6d-077e-4655-84f5-444e3963d7c3", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + }, + { + "title": "should check id_carrier", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Tabs should check id_carrier", + "timedOut": false, + "duration": 715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderIdCarrier2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisibleBefore, value, isModalHiddenAfter, xmlValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderIdCarrier2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnEditLink(page)];\n case 2:\n isModalVisibleBefore = _a.sent();\n (0, chai_1.expect)(isModalVisibleBefore).to.be.equal(true);\n return [4 /*yield*/, tabListBlock_1.default.getShippingCarrierID(page)];\n case 3:\n value = _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.closeOrderShippingModal(page)];\n case 4:\n isModalHiddenAfter = _a.sent();\n (0, chai_1.expect)(isModalHiddenAfter).to.be.equal(true);\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'id_carrier');\n (0, chai_1.expect)(value.toString()).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "882f4311-870e-41d0-ad0c-52ad41252ca2", + "parentUUID": "f2ab4ddc-bf16-4216-bb43-ece38dbc6c48", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "df0e6a54-4601-48c4-b862-68eb69d808f0", + "a676f7d5-b01d-4a5c-80c3-a497388fc12d", + "151d39d9-2992-47f1-bbbb-0bd8016578ed", + "432cf137-3bfd-4118-9125-8c7c68bff232", + "da7a3694-9690-428f-8e2e-6a40a343d70c", + "ac09c6c4-bc67-44f7-b3c2-a5deba6c019e", + "3ba8e7c0-5f74-4fcd-9adf-2aaa78a357dc", + "de06bfa9-d621-4a21-91ca-a0bd4fa5e20d", + "e04f2e6d-077e-4655-84f5-444e3963d7c3", + "882f4311-870e-41d0-ad0c-52ad41252ca2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1406, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c3040e57-6971-46f6-940a-6042492b26a8", + "title": "Block : Payments", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check payment", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Block : Payments should check payment", + "timedOut": false, + "duration": 1, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_checkOrderPayment2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderPayment2', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n xmlValue = orderXml_1.default.getAttributeValue(xmlResponseUpdate, 'payment');\n return [4 /*yield*/, paymentBlock_1.default.getPaymentsDetails(page, 1)];\n case 2:\n value = _a.sent();\n (0, chai_1.expect)(value.paymentMethod).to.be.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e966fcb-a824-4d7b-9184-9f109bf66b54", + "parentUUID": "c3040e57-6971-46f6-940a-6042492b26a8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [], + "failures": [], + "pending": [ + "5e966fcb-a824-4d7b-9184-9f109bf66b54" + ], + "skipped": [], + "duration": 1, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b3e7641e-0d55-481d-ac3d-b90031ff8307", + "title": "Reset filters", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Reset filters should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4783, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_goToOrdersPagePutReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPagePutReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e135cde-50d0-42dc-9add-e7ee584c10da", + "parentUUID": "b3e7641e-0d55-481d-ac3d-b90031ff8307", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : PUT Endpoint : api/orders - Method : PUT - Check On BO Reset filters should reset all filters", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_resetFilterFirstAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountries;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirstAfterPut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b205e2b-61a5-402c-a122-5189d37be3c0", + "parentUUID": "b3e7641e-0d55-481d-ac3d-b90031ff8307", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2e135cde-50d0-42dc-9add-e7ee584c10da", + "2b205e2b-61a5-402c-a122-5189d37be3c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5715, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "6b92614f-4f3e-4339-bc09-36c1c3d7f019", + "40c0e627-ad59-4b6a-b777-9cdf8014d893" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5244, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c750a658-1623-4c47-9d4d-953d5eb7482e", + "title": "Endpoint : api/orders - Method : DELETE ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint api/orders/{id} with method DELETE", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : DELETE should request the endpoint api/orders/{id} with method DELETE", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestEndpointCountriesMethodDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointCountriesMethodDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderWs_1.default.delete(apiContext, authorization, orderNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8df708d4-f445-4dec-8351-c2a947607421", + "parentUUID": "c750a658-1623-4c47-9d4d-953d5eb7482e", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint api/orders/{id} with method GET", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : DELETE should request the endpoint api/orders/{id} with method GET", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_requestEndpointCountriesIdMethodGetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointCountriesIdMethodGetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderWs_1.default.getById(apiContext, authorization, orderNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(404);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5fe4aa9-b2b0-4b5e-a915-00b2d5d960b9", + "parentUUID": "c750a658-1623-4c47-9d4d-953d5eb7482e", + "isHook": false, + "skipped": false + }, + { + "title": "should filter order by ID", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : DELETE should filter order by ID", + "timedOut": false, + "duration": 4360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_filterToUpdateAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountriesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, orders_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, 'input', 'id_order', orderNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfCountriesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCountriesAfterFilter).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4e0a698-37e4-49ae-97bf-c8efffe0143f", + "parentUUID": "c750a658-1623-4c47-9d4d-953d5eb7482e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Orders : CRUD Orders : CRUD Endpoint : api/orders - Method : DELETE should reset all filters", + "timedOut": false, + "duration": 853, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCountries;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfCountries = _a.sent();\n (0, chai_1.expect)(numberOfCountries).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf7821be-5e7c-48dc-bb3f-fd17ab5601ff", + "parentUUID": "c750a658-1623-4c47-9d4d-953d5eb7482e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8df708d4-f445-4dec-8351-c2a947607421", + "c5fe4aa9-b2b0-4b5e-a915-00b2d5d960b9", + "a4e0a698-37e4-49ae-97bf-c8efffe0143f", + "bf7821be-5e7c-48dc-bb3f-fd17ab5601ff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5255, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "title": "Remove a new webservice key named \"Webservice Key - Orders\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Remove a new webservice key named \"Webservice Key - Orders\"\"", + "fullTitle": "WS - Orders : CRUD Remove a new webservice key named \"Webservice Key - Orders\" \"before all\" hook in \"Remove a new webservice key named \"Webservice Key - Orders\"\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a61b40e1-6fd7-4feb-ab1c-573569159bdb", + "parentUUID": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Remove a new webservice key named \"Webservice Key - Orders\"\"", + "fullTitle": "WS - Orders : CRUD Remove a new webservice key named \"Webservice Key - Orders\" \"after all\" hook in \"Remove a new webservice key named \"Webservice Key - Orders\"\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7de3dbaf-11f3-422f-a3c0-0a9495cb5a41", + "parentUUID": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Orders : CRUD Remove a new webservice key named \"Webservice Key - Orders\" should login in BO", + "timedOut": false, + "duration": 1749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1862ce1-409d-4af0-99e7-6928f81bf4a3", + "parentUUID": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Orders : CRUD Remove a new webservice key named \"Webservice Key - Orders\" should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_postTest_1_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51929179-cdb9-4bcc-9729-f75388cbcb78", + "parentUUID": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "WS - Orders : CRUD Remove a new webservice key named \"Webservice Key - Orders\" should reset all filters and get number of webservices", + "timedOut": false, + "duration": 313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_postTest_1_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a1968d1-4888-4047-af9f-18834c7e8ca9", + "parentUUID": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by key description", + "fullTitle": "WS - Orders : CRUD Remove a new webservice key named \"Webservice Key - Orders\" should filter list by key description", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_postTest_1_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var key;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', keyDescription)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 3:\n key = _a.sent();\n (0, chai_1.expect)(key).to.contains(keyDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b58535c-0f5a-4523-9aea-fe11a37f7d81", + "parentUUID": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "isHook": false, + "skipped": false + }, + { + "title": "should delete webservice key", + "fullTitle": "WS - Orders : CRUD Remove a new webservice key named \"Webservice Key - Orders\" should delete webservice key", + "timedOut": false, + "duration": 820, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_postTest_1_deleteWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.deleteWebserviceKey(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(webservice_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc60c7c0-87ef-45b7-8523-e61a56c215ec", + "parentUUID": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "WS - Orders : CRUD Remove a new webservice key named \"Webservice Key - Orders\" should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_postTest_1_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfWebserviceKeyAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeyAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeyAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0fdd0c7e-e457-43f0-bc98-acdd388b460e", + "parentUUID": "6ab31365-6534-4b2b-bfc7-94710c1892e1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d1862ce1-409d-4af0-99e7-6928f81bf4a3", + "51929179-cdb9-4bcc-9729-f75388cbcb78", + "1a1968d1-4888-4047-af9f-18834c7e8ca9", + "1b58535c-0f5a-4523-9aea-fe11a37f7d81", + "cc60c7c0-87ef-45b7-8523-e61a56c215ec", + "0fdd0c7e-e457-43f0-bc98-acdd388b460e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9454, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "85173745-2357-4740-8870-7ea6aa96ee7d", + "title": "Disable the Webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/02_ordersCRUD.ts", + "file": "/campaigns/functional/WS/02_ordersCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the Webservice\"", + "fullTitle": "WS - Orders : CRUD Disable the Webservice \"before all\" hook in \"Disable the Webservice\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fa6a3037-dbc5-468e-8801-e63c8c23959b", + "parentUUID": "85173745-2357-4740-8870-7ea6aa96ee7d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the Webservice\"", + "fullTitle": "WS - Orders : CRUD Disable the Webservice \"after all\" hook in \"Disable the Webservice\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ab395f3d-49db-4974-9944-d4c6832bde94", + "parentUUID": "85173745-2357-4740-8870-7ea6aa96ee7d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Orders : CRUD Disable the Webservice should login in BO", + "timedOut": false, + "duration": 1734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fdb7a6e-5c97-44a7-83b8-15637e79c085", + "parentUUID": "85173745-2357-4740-8870-7ea6aa96ee7d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Orders : CRUD Disable the Webservice should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_postTest_2_goToAdvParametersWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvParametersWebservice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f9f493e3-9562-490d-a874-022dfd5095de", + "parentUUID": "85173745-2357-4740-8870-7ea6aa96ee7d", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the webservice", + "fullTitle": "WS - Orders : CRUD Disable the Webservice should disable the webservice", + "timedOut": false, + "duration": 353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_ordersCRUD_postTest_2_setWebserviceStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWebserviceStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setWebserviceStatus(page, status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(webservice_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2145ebf7-d259-46ad-9573-da718b6796f3", + "parentUUID": "85173745-2357-4740-8870-7ea6aa96ee7d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6fdb7a6e-5c97-44a7-83b8-15637e79c085", + "f9f493e3-9562-490d-a874-022dfd5095de", + "2145ebf7-d259-46ad-9573-da718b6796f3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6931, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d734f301-882e-48d1-a086-447e1b05014d", + "title": "WS - Products : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"WS - Products : CRUD\"", + "fullTitle": "WS - Products : CRUD \"before all\" hook in \"WS - Products : CRUD\"", + "timedOut": false, + "duration": 49, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.FO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78a61c7b-363c-42dd-9ab3-6722ddfaf559", + "parentUUID": "d734f301-882e-48d1-a086-447e1b05014d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"WS - Products : CRUD\"", + "fullTitle": "WS - Products : CRUD \"after all\" hook in \"WS - Products : CRUD\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "95bbe0d4-d77e-43c0-bcd4-c8e97e8fb477", + "parentUUID": "d734f301-882e-48d1-a086-447e1b05014d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "59b9577c-e6fb-4b0e-aeeb-ec889c0192ba", + "title": "Enable the Webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the Webservice\"", + "fullTitle": "WS - Products : CRUD Enable the Webservice \"before all\" hook in \"Enable the Webservice\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3bdaae2-b4a3-4745-936e-0aa4780c5890", + "parentUUID": "59b9577c-e6fb-4b0e-aeeb-ec889c0192ba", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the Webservice\"", + "fullTitle": "WS - Products : CRUD Enable the Webservice \"after all\" hook in \"Enable the Webservice\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7377e97a-2c52-48f5-9fee-aab38fdccafe", + "parentUUID": "59b9577c-e6fb-4b0e-aeeb-ec889c0192ba", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Products : CRUD Enable the Webservice should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd883e50-d091-4322-9444-bd639be2bf72", + "parentUUID": "59b9577c-e6fb-4b0e-aeeb-ec889c0192ba", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Products : CRUD Enable the Webservice should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_preTest_1_goToAdvParametersWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvParametersWebservice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7fb3ad3-7af9-4370-b4de-9d99b10889d2", + "parentUUID": "59b9577c-e6fb-4b0e-aeeb-ec889c0192ba", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the webservice", + "fullTitle": "WS - Products : CRUD Enable the Webservice should enable the webservice", + "timedOut": false, + "duration": 357, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_preTest_1_setWebserviceStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWebserviceStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setWebserviceStatus(page, status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(webservice_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5602f3cb-0b13-4275-a187-7338908a0946", + "parentUUID": "59b9577c-e6fb-4b0e-aeeb-ec889c0192ba", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fd883e50-d091-4322-9444-bd639be2bf72", + "c7fb3ad3-7af9-4370-b4de-9d99b10889d2", + "5602f3cb-0b13-4275-a187-7338908a0946" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6903, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "741a276c-96fd-46a4-a8c8-c8b8b034d529", + "title": "Add a new webservice key named \"Webservice Key - Products\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Add a new webservice key named \"Webservice Key - Products\"\"", + "fullTitle": "WS - Products : CRUD Add a new webservice key named \"Webservice Key - Products\" \"before all\" hook in \"Add a new webservice key named \"Webservice Key - Products\"\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22e97abe-088e-4c93-899a-e0d456185dde", + "parentUUID": "741a276c-96fd-46a4-a8c8-c8b8b034d529", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Add a new webservice key named \"Webservice Key - Products\"\"", + "fullTitle": "WS - Products : CRUD Add a new webservice key named \"Webservice Key - Products\" \"after all\" hook in \"Add a new webservice key named \"Webservice Key - Products\"\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3cdc96af-57e6-4333-8b32-fd25ac609679", + "parentUUID": "741a276c-96fd-46a4-a8c8-c8b8b034d529", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Products : CRUD Add a new webservice key named \"Webservice Key - Products\" should login in BO", + "timedOut": false, + "duration": 1735, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "925114a5-53b2-400d-a262-fdea51ca7494", + "parentUUID": "741a276c-96fd-46a4-a8c8-c8b8b034d529", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Products : CRUD Add a new webservice key named \"Webservice Key - Products\" should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4827, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_preTest_2_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e30e4dd6-d754-4b0f-8044-58a98735c9c6", + "parentUUID": "741a276c-96fd-46a4-a8c8-c8b8b034d529", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "WS - Products : CRUD Add a new webservice key named \"Webservice Key - Products\" should reset all filters and get number of webservices", + "timedOut": false, + "duration": 2007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_preTest_2_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c389af6a-239d-4ead-a3ea-9ad82b993b04", + "parentUUID": "741a276c-96fd-46a4-a8c8-c8b8b034d529", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "WS - Products : CRUD Add a new webservice key named \"Webservice Key - Products\" should go to add new webservice key page", + "timedOut": false, + "duration": 880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_preTest_2_goToAddNewWebserviceKeyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewWebserviceKeyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "328be01b-29f7-404f-a083-ed70b8f7eadd", + "parentUUID": "741a276c-96fd-46a4-a8c8-c8b8b034d529", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key and check result", + "fullTitle": "WS - Products : CRUD Add a new webservice key named \"Webservice Key - Products\" should create webservice key and check result", + "timedOut": false, + "duration": 1087, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_preTest_2_createWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88915574-2f2b-42e6-b3d6-4020e243c4ce", + "parentUUID": "741a276c-96fd-46a4-a8c8-c8b8b034d529", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "925114a5-53b2-400d-a262-fdea51ca7494", + "e30e4dd6-d754-4b0f-8044-58a98735c9c6", + "c389af6a-239d-4ead-a3ea-9ad82b993b04", + "328be01b-29f7-404f-a083-ed70b8f7eadd", + "88915574-2f2b-42e6-b3d6-4020e243c4ce" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10536, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "beee4bf0-741c-4156-8275-62bbf5445875", + "title": "PRE-TEST: Enable Ecotax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable Ecotax\"", + "fullTitle": "WS - Products : CRUD PRE-TEST: Enable Ecotax \"before all\" hook in \"PRE-TEST: Enable Ecotax\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fd79d9f-4704-43ea-90d7-a8622d67ccba", + "parentUUID": "beee4bf0-741c-4156-8275-62bbf5445875", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable Ecotax\"", + "fullTitle": "WS - Products : CRUD PRE-TEST: Enable Ecotax \"after all\" hook in \"PRE-TEST: Enable Ecotax\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "369279b3-8114-4836-a7e1-15d117a6576a", + "parentUUID": "beee4bf0-741c-4156-8275-62bbf5445875", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Products : CRUD PRE-TEST: Enable Ecotax should login in BO", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bfedf0d-2410-4eb3-b699-8ba4457289a9", + "parentUUID": "beee4bf0-741c-4156-8275-62bbf5445875", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "WS - Products : CRUD PRE-TEST: Enable Ecotax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_preTest_3_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1ec7a3b2-7cec-4802-ae18-a78d3df05272", + "parentUUID": "beee4bf0-741c-4156-8275-62bbf5445875", + "isHook": false, + "skipped": false + }, + { + "title": "should enable ecotax", + "fullTitle": "WS - Products : CRUD PRE-TEST: Enable Ecotax should enable ecotax", + "timedOut": false, + "duration": 457, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_preTest_3_enableEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.enableEcoTax(page, true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6007d18e-3100-4a33-b9a0-368c4aa4d1f2", + "parentUUID": "beee4bf0-741c-4156-8275-62bbf5445875", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1bfedf0d-2410-4eb3-b699-8ba4457289a9", + "1ec7a3b2-7cec-4802-ae18-a78d3df05272", + "6007d18e-3100-4a33-b9a0-368c4aa4d1f2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7075, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "475eaa62-32d1-4362-9e1d-912203a78897", + "title": "Products : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "220c5664-adf0-4dfc-b9eb-a3e37d344d8b", + "title": "Fetch the Webservice Key", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Products : CRUD Products : CRUD Fetch the Webservice Key should login in BO", + "timedOut": false, + "duration": 1791, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a793c8f-7a05-4ca4-94b4-76cde229e8ac", + "parentUUID": "220c5664-adf0-4dfc-b9eb-a3e37d344d8b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Products : CRUD Products : CRUD Fetch the Webservice Key should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4866, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85cc817f-0be5-4851-b305-57336e7e982c", + "parentUUID": "220c5664-adf0-4dfc-b9eb-a3e37d344d8b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by key description", + "fullTitle": "WS - Products : CRUD Products : CRUD Fetch the Webservice Key should filter list by key description", + "timedOut": false, + "duration": 2960, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var description;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', wsKeyDescription)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 4:\n description = _a.sent();\n (0, chai_1.expect)(description).to.contains(wsKeyDescription);\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'key')];\n case 5:\n wsKey = _a.sent();\n authorization = \"Basic \".concat(Buffer.from(\"\".concat(wsKey, \":\")).toString('base64'));\n (0, chai_1.expect)(wsKey).to.not.have.length(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddf5b1d6-1fc6-40d5-941c-2e40e1d1c78e", + "parentUUID": "220c5664-adf0-4dfc-b9eb-a3e37d344d8b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2a793c8f-7a05-4ca4-94b4-76cde229e8ac", + "85cc817f-0be5-4851-b305-57336e7e982c", + "ddf5b1d6-1fc6-40d5-941c-2e40e1d1c78e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9617, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a5849955-2ca5-4b76-9880-fa6c096005b3", + "title": "Endpoint : api/products - Schema : Blank ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Blank should check response status", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestBlankStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productWs_1.default.getBlank(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "159c694d-5cb5-4356-a6a3-5d3489e29b90", + "parentUUID": "a5849955-2ca5-4b76-9880-fa6c096005b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the blank XML can be parsed", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Blank should check that the blank XML can be parsed", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestBlankValid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isValidXML;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankValid', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n isValidXML = xml_1.default.isValid(xmlResponse);\n (0, chai_1.expect)(isValidXML).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8712842b-ab16-43bb-be21-53280e016fd4", + "parentUUID": "a5849955-2ca5-4b76-9880-fa6c096005b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Blank should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestBlankRootNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankRootNode', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(productXml_1.default.getRootNodeName(xmlResponse)).to.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74dfbdcb-dae4-4abe-9f2a-7d8b98363636", + "parentUUID": "a5849955-2ca5-4b76-9880-fa6c096005b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Blank should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestBlankChildNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankChildNode', baseContext)];\n case 1:\n _a.sent();\n rootNodes = productXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.eq('product');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a7fc5ee-34d8-46d8-8c93-67df489b3ce4", + "parentUUID": "a5849955-2ca5-4b76-9880-fa6c096005b3", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and has empty values", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Blank should check each node name, attributes and has empty values", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestBlankChildNodes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nodes, c, node, nodeAttributes, isEmptyNode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankChildNodes', baseContext)];\n case 1:\n _a.sent();\n nodes = productXml_1.default.getProductNodes(xmlResponse);\n (0, chai_1.expect)(nodes.length).to.be.gt(0);\n for (c = 0; c < nodes.length; c++) {\n node = nodes[c];\n nodeAttributes = node.attributes;\n (0, chai_1.expect)(nodeAttributes.length).to.eq(0);\n isEmptyNode = xml_1.default.isEmpty(node);\n (0, chai_1.expect)(isEmptyNode, \"The node \".concat(node.nodeName, \" is not empty\")).to.eq(true);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3568ec53-3b3e-4907-baa0-5ff8ad944b89", + "parentUUID": "a5849955-2ca5-4b76-9880-fa6c096005b3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "159c694d-5cb5-4356-a6a3-5d3489e29b90", + "8712842b-ab16-43bb-be21-53280e016fd4", + "74dfbdcb-dae4-4abe-9f2a-7d8b98363636", + "2a7fc5ee-34d8-46d8-8c93-67df489b3ce4", + "3568ec53-3b3e-4907-baa0-5ff8ad944b89" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 32, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0e38c387-a3f2-45b7-b4a0-7bbfaefe5f85", + "title": "Endpoint : api/products - Schema : Synopsis ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Synopsis should check response status", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestSynopsisStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productWs_1.default.getSynopsis(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "25effecd-fed5-4e4b-ae75-616695f0f7de", + "parentUUID": "0e38c387-a3f2-45b7-b4a0-7bbfaefe5f85", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the synopsis XML can be parsed", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Synopsis should check that the synopsis XML can be parsed", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestSynopsisValid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isValidXML;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisValid', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n isValidXML = xml_1.default.isValid(xmlResponse);\n (0, chai_1.expect)(isValidXML).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90ad0b30-6c87-416a-a8c1-16dd01ea3ecd", + "parentUUID": "0e38c387-a3f2-45b7-b4a0-7bbfaefe5f85", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Synopsis should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestSynopsisRootNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisRootNode', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(productXml_1.default.getRootNodeName(xmlResponse)).to.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "132c023b-cf12-4694-86e5-bf401a52940d", + "parentUUID": "0e38c387-a3f2-45b7-b4a0-7bbfaefe5f85", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Synopsis should check number of node under prestashop", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestSynopsisChildNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisChildNode', baseContext)];\n case 1:\n _a.sent();\n rootNodes = productXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.eq('product');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "538b9eba-ecea-43d8-b735-9007350b1ff2", + "parentUUID": "0e38c387-a3f2-45b7-b4a0-7bbfaefe5f85", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and has empty values", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Schema : Synopsis should check each node name, attributes and has empty values", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestSynopsisChildNodes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nodes, c, node, nodeAttributes, isEmptyNode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisChildNodes', baseContext)];\n case 1:\n _a.sent();\n nodes = productXml_1.default.getProductNodes(xmlResponse);\n (0, chai_1.expect)(nodes.length).to.be.gt(0);\n for (c = 0; c < nodes.length; c++) {\n node = nodes[c];\n nodeAttributes = node.attributes;\n if ([\n 'new',\n 'cache_default_attribute',\n 'id_default_image',\n 'id_default_combination',\n 'position_in_category',\n 'manufacturer_name',\n 'quantity',\n 'type',\n 'unit_price_ratio',\n 'associations',\n ].includes(node.nodeName)) {\n (0, chai_1.expect)(nodeAttributes.length).to.be.gte(0);\n }\n else {\n (0, chai_1.expect)(nodeAttributes.length).to.be.gte(1);\n // Attribute : format\n (0, chai_1.expect)(nodeAttributes[nodeAttributes.length - 1].nodeName).to.eq('format');\n }\n isEmptyNode = xml_1.default.isEmpty(node);\n (0, chai_1.expect)(isEmptyNode, \"The node \".concat(node.nodeName, \" is not empty\")).to.eq(true);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48d29603-2113-4a85-b545-ee47a7499d65", + "parentUUID": "0e38c387-a3f2-45b7-b4a0-7bbfaefe5f85", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "25effecd-fed5-4e4b-ae75-616695f0f7de", + "90ad0b30-6c87-416a-a8c1-16dd01ea3ecd", + "132c023b-cf12-4694-86e5-bf401a52940d", + "538b9eba-ecea-43d8-b735-9007350b1ff2", + "48d29603-2113-4a85-b545-ee47a7499d65" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 30, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f5097f47-1c6d-4d7e-a6a8-0db307cf6391", + "title": "Endpoint : api/products - Method : GET ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : GET should check response status", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productWs_1.default.getAll(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c3f1cd1-bf1d-46a7-9db8-a073d35805c8", + "parentUUID": "f5097f47-1c6d-4d7e-a6a8-0db307cf6391", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : GET should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(productXml_1.default.getRootNodeName(xmlResponse)).to.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8836058b-b013-45ca-a24b-df7a2a432aed", + "parentUUID": "f5097f47-1c6d-4d7e-a6a8-0db307cf6391", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : GET should check number of node under prestashop", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = productXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.eq('products');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d56b8fbe-4e85-4a30-b7bf-bb5acef05f9b", + "parentUUID": "f5097f47-1c6d-4d7e-a6a8-0db307cf6391", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under Products node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : GET should check number of nodes under Products node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n productsNode = productXml_1.default.getAllProducts(xmlResponse);\n (0, chai_1.expect)(productsNode.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "261e4b3d-e5ee-4b7c-9322-0b94bc3ea43e", + "parentUUID": "f5097f47-1c6d-4d7e-a6a8-0db307cf6391", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and xlink:href", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : GET should check each node name, attributes and xlink:href", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetCheckAll1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var c, productNode, productNodeAttributes, productNodeAttributeId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetCheckAll1', baseContext)];\n case 1:\n _a.sent();\n for (c = 0; c < productsNode.length; c++) {\n productNode = productsNode[c];\n (0, chai_1.expect)(productNode.nodeName).to.eq('product');\n productNodeAttributes = productNode.attributes;\n (0, chai_1.expect)(productNodeAttributes.length).to.eq(2);\n // Attribute : id\n (0, chai_1.expect)(productNodeAttributes[0].nodeName).to.eq('id');\n productNodeAttributeId = productNodeAttributes[0].nodeValue;\n (0, chai_1.expect)(productNodeAttributeId).to.eq(parseInt(productNodeAttributeId, 10).toString());\n // Attribute : xlink:href\n (0, chai_1.expect)(productNodeAttributes[1].nodeName).to.eq('xlink:href');\n (0, chai_1.expect)(productNodeAttributes[1].nodeValue).to.be.a('string');\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac1d0ace-c961-4825-96c7-8c049d0c8531", + "parentUUID": "f5097f47-1c6d-4d7e-a6a8-0db307cf6391", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2c3f1cd1-bf1d-46a7-9db8-a073d35805c8", + "8836058b-b013-45ca-a24b-df7a2a432aed", + "d56b8fbe-4e85-4a30-b7bf-bb5acef05f9b", + "261e4b3d-e5ee-4b7c-9322-0b94bc3ea43e", + "ac1d0ace-c961-4825-96c7-8c049d0c8531" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "91c6d8f3-3a2d-4f6b-bfe9-64db791d69b9", + "title": "Endpoint : api/products - Method : POST ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "35e30a97-4b3a-40d1-a426-ba9aafd99ad4", + "title": "Endpoint : api/products - Method : POST - Add Product ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Add Product should check response status", + "timedOut": false, + "duration": 90, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestPostStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productWs_1.default.add(apiContext, authorization, xmlCreate)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(201);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f7c4115-ad49-4df3-951f-73a347218639", + "parentUUID": "35e30a97-4b3a-40d1-a426-ba9aafd99ad4", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Add Product should check response root node", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestPostRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(productXml_1.default.getRootNodeName(xmlResponse)).to.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3355add2-69f1-496e-9d41-16b3a96abca6", + "parentUUID": "35e30a97-4b3a-40d1-a426-ba9aafd99ad4", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Add Product should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestPostNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = productXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.eq('product');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fb325d9-a741-4346-8159-3f8c3ee08d42", + "parentUUID": "35e30a97-4b3a-40d1-a426-ba9aafd99ad4", + "isHook": false, + "skipped": false + }, + { + "title": "should check id of the country", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Add Product should check id of the country", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestPostCheckId1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlID;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostCheckId1', baseContext)];\n case 1:\n _a.sent();\n xmlID = productXml_1.default.getAttributeValue(xmlResponse, 'id');\n (0, chai_1.expect)(xmlID).to.be.a('string');\n productNodeID = parseInt(xmlID, 10);\n (0, chai_1.expect)(xmlID).to.eq(productNodeID.toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a08f8e4-8499-42e3-b527-514567ce8439", + "parentUUID": "35e30a97-4b3a-40d1-a426-ba9aafd99ad4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5f7c4115-ad49-4df3-951f-73a347218639", + "3355add2-69f1-496e-9d41-16b3a96abca6", + "2fb325d9-a741-4346-8159-3f8c3ee08d42", + "7a08f8e4-8499-42e3-b527-514567ce8439" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 94, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "eee48567-3afb-4bf9-920c-7418430037f0", + "title": "Endpoint : api/products/{id} - Method : POST - Check with WS ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products/{id} - Method : POST - Check with WS should check response status", + "timedOut": false, + "duration": 27, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetIDStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productWs_1.default.getById(apiContext, authorization, productNodeID.toString())];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04436b93-d8d0-4074-9674-74d64ec67c86", + "parentUUID": "eee48567-3afb-4bf9-920c-7418430037f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products/{id} - Method : POST - Check with WS should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetIDRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(productXml_1.default.getRootNodeName(xmlResponse)).to.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "884e3df9-5fc7-4803-a644-7e421c7821a4", + "parentUUID": "eee48567-3afb-4bf9-920c-7418430037f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products/{id} - Method : POST - Check with WS should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetIDNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = productXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.eq('product');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de7d4ac7-68f2-4092-9234-a91d1e69c0d5", + "parentUUID": "eee48567-3afb-4bf9-920c-7418430037f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under Products node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products/{id} - Method : POST - Check with WS should check number of nodes under Products node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetIDNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n productsNodes = productXml_1.default.getProductNodes(xmlResponse);\n (0, chai_1.expect)(productsNodes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "515a6672-9b20-4a3f-8487-cac3a947a7b5", + "parentUUID": "eee48567-3afb-4bf9-920c-7418430037f0", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node id, name ...", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products/{id} - Method : POST - Check with WS should check each node id, name ...", + "timedOut": false, + "duration": 104, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetIDCheckAll\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var o, oNode, objectNodeValueEN, createNodeValueEN, objectNodeValueFR, createNodeValueFR, objectNodeValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDCheckAll', baseContext)];\n case 1:\n _a.sent();\n // Check nodes are equal to them done in Create\n for (o = 0; o < productsNodes.length; o++) {\n oNode = productsNodes[o];\n if (['manufacturer_name', 'quantity', 'date_add', 'date_upd'].includes(oNode.nodeName)) {\n // It can be defined in POST/PUT\n }\n else if (oNode.nodeName === 'id') {\n (0, chai_1.expect)(oNode.textContent).to.eq(productNodeID.toString());\n }\n else if ([\n 'name',\n 'delivery_in_stock',\n 'delivery_out_stock',\n 'meta_description',\n 'meta_keywords',\n 'meta_title',\n 'link_rewrite',\n 'description',\n 'description_short',\n 'available_now',\n 'available_later',\n ].includes(oNode.nodeName)) {\n objectNodeValueEN = productXml_1.default.getAttributeLangValue(xmlResponse, oNode.nodeName, '1');\n createNodeValueEN = productXml_1.default.getAttributeLangValue(xmlCreate, oNode.nodeName, '1');\n (0, chai_1.expect)(objectNodeValueEN).to.eq(createNodeValueEN);\n objectNodeValueFR = productXml_1.default.getAttributeLangValue(xmlResponse, oNode.nodeName, '2');\n createNodeValueFR = productXml_1.default.getAttributeLangValue(xmlCreate, oNode.nodeName, '2');\n (0, chai_1.expect)(objectNodeValueFR).to.eq(createNodeValueFR);\n }\n else if (oNode.nodeName === 'new') {\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/33429\n }\n else if (oNode.nodeName === 'position_in_category') {\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/14903\n }\n else if (oNode.nodeName === 'associations') {\n // Don't check all associations at the moment\n }\n else {\n objectNodeValue = productXml_1.default.getAttributeValue(xmlCreate, oNode.nodeName);\n (0, chai_1.expect)(objectNodeValue).to.be.a('string');\n (0, chai_1.expect)(oNode.textContent).to.eq(objectNodeValue);\n }\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b78a9ab9-139b-4950-8cfd-97de1cfc37f4", + "parentUUID": "eee48567-3afb-4bf9-920c-7418430037f0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "04436b93-d8d0-4074-9674-74d64ec67c86", + "884e3df9-5fc7-4803-a644-7e421c7821a4", + "de7d4ac7-68f2-4092-9234-a91d1e69c0d5", + "515a6672-9b20-4a3f-8487-cac3a947a7b5", + "b78a9ab9-139b-4950-8cfd-97de1cfc37f4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 134, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7752feaa-3b4e-4345-8305-a9987adc8a9a", + "title": "Endpoint : api/products - Method : POST - Check On BO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "3297c867-c6d9-47d4-9e69-39ef68d33d62", + "title": "Product Page : Filter & Edit", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Product Page : Filter & Edit should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_goToProductsPageAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccec0273-86a0-45a3-8961-ee9604cb84ea", + "parentUUID": "3297c867-c6d9-47d4-9e69-39ef68d33d62", + "isHook": false, + "skipped": false + }, + { + "title": "should filter product by ID", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Product Page : Filter & Edit should filter product by ID", + "timedOut": false, + "duration": 1313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_filterToUpdateAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterPost', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'id_product', { min: productNodeID, max: productNodeID }, 'input')];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 4:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.eq(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'id_product', 1)];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.eq(productNodeID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13c4f5c1-208b-4026-b091-5b08db435fc8", + "parentUUID": "3297c867-c6d9-47d4-9e69-39ef68d33d62", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit product page", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Product Page : Filter & Edit should go to edit product page", + "timedOut": false, + "duration": 1311, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_goToEditProductPageAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditProductPageAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd027388-d174-4733-8672-c64e3745a8e6", + "parentUUID": "3297c867-c6d9-47d4-9e69-39ef68d33d62", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ccec0273-86a0-45a3-8961-ee9604cb84ea", + "13c4f5c1-208b-4026-b091-5b08db435fc8", + "dd027388-d174-4733-8672-c64e3745a8e6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7332, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7a858537-c9e3-483d-b40a-c99fbd37c541", + "title": "Main Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check active", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Main Tab should check active", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckProductActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckProductActive', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'active');\n return [4 /*yield*/, add_1.default.getProductStatus(page)];\n case 2:\n value = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8928680d-6007-4524-ae65-9d2a976760e5", + "parentUUID": "7a858537-c9e3-483d-b40a-c99fbd37c541", + "isHook": false, + "skipped": false + }, + { + "title": "should check type", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Main Tab should check type", + "timedOut": false, + "duration": 14, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckProductType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckProductType', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'product_type');\n return [4 /*yield*/, add_1.default.getProductType(page)];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1a27973-9da7-4a29-9123-ca455e6fecb4", + "parentUUID": "7a858537-c9e3-483d-b40a-c99fbd37c541", + "isHook": false, + "skipped": false + }, + { + "title": "should check name", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Main Tab should check name", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckName', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'name', '1');\n return [4 /*yield*/, add_1.default.getProductName(page, 'en')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'name', '2');\n return [4 /*yield*/, add_1.default.getProductName(page, 'fr')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dda762d7-c205-4b31-9662-3897f3fdbe19", + "parentUUID": "7a858537-c9e3-483d-b40a-c99fbd37c541", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8928680d-6007-4524-ae65-9d2a976760e5", + "d1a27973-9da7-4a29-9123-ca455e6fecb4", + "dda762d7-c205-4b31-9662-3897f3fdbe19" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 38, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "71ccbd46-dfdc-4a9b-9896-3f07ad5bb776", + "title": "Description Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check short description", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Description Tab should check short description", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckShortDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckShortDescription', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'description_short', '1');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'summary', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'description_short', '2');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'summary', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "985bc572-9f1d-4575-a3da-5fc57175f2a7", + "parentUUID": "71ccbd46-dfdc-4a9b-9896-3f07ad5bb776", + "isHook": false, + "skipped": false + }, + { + "title": "should check description", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Description Tab should check description", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckDescription', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'description', '1');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'description', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'description', '2');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'description', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "488b2eb6-f112-4c09-9164-0946dd2a7f4d", + "parentUUID": "71ccbd46-dfdc-4a9b-9896-3f07ad5bb776", + "isHook": false, + "skipped": false + }, + { + "title": "should check default category", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Description Tab should check default category", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckDefaultCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckDefaultCategory', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'id_category_default');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'id_category_default', '1')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e2c4fe0-d35d-4b44-ba6f-cc6f8b6a18e5", + "parentUUID": "71ccbd46-dfdc-4a9b-9896-3f07ad5bb776", + "isHook": false, + "skipped": false + }, + { + "title": "should check manufacturer", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Description Tab should check manufacturer", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckManufacturer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckManufacturer', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'id_manufacturer');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'manufacturer', '1')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcbdf50f-5987-48dd-89e2-7a14a37571c8", + "parentUUID": "71ccbd46-dfdc-4a9b-9896-3f07ad5bb776", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "985bc572-9f1d-4575-a3da-5fc57175f2a7", + "488b2eb6-f112-4c09-9164-0946dd2a7f4d", + "7e2c4fe0-d35d-4b44-ba6f-cc6f8b6a18e5", + "fcbdf50f-5987-48dd-89e2-7a14a37571c8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "title": "Details Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to details tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Details Tab should go to details tab", + "timedOut": false, + "duration": 62, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postGoToDetailsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postGoToDetailsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'details')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'details')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3eaf14f3-ec58-44a1-9d3a-5b081984a59a", + "parentUUID": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "isHook": false, + "skipped": false + }, + { + "title": "should check reference", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Details Tab should check reference", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckReference', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'reference');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'reference')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f91f7d4-9b38-404e-a9f5-66179fd4de97", + "parentUUID": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "isHook": false, + "skipped": false + }, + { + "title": "should check MPN", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Details Tab should check MPN", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckMPN\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckMPN', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'mpn');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'mpn')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "843606c8-970e-4d18-ac5d-ea5cdcef56a0", + "parentUUID": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "isHook": false, + "skipped": false + }, + { + "title": "should check UPC", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Details Tab should check UPC", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckUPC\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckUPC', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'upc');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'upc')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "838773d6-fbe5-4674-ac36-5f99a185990e", + "parentUUID": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "isHook": false, + "skipped": false + }, + { + "title": "should check EAN13", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Details Tab should check EAN13", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckEAN13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckEAN13', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'ean13');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'ean13')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1e3f84b-5bf9-48d3-802d-8482c015e8f0", + "parentUUID": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "isHook": false, + "skipped": false + }, + { + "title": "should check ISBN", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Details Tab should check ISBN", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckISBN\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckISBN', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'isbn');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'isbn')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba1bcd57-1ff5-4e6b-b912-fe27bbbe994e", + "parentUUID": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "isHook": false, + "skipped": false + }, + { + "title": "should check \"Display condition on product page\"", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Details Tab should check \"Display condition on product page\"", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckShowCondition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckShowCondition', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'show_condition');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'show_condition')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00d4c777-7219-47e2-8a1b-e67b105b9edf", + "parentUUID": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "isHook": false, + "skipped": false + }, + { + "title": "should check condition", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Details Tab should check condition", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckCondition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckCondition', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'condition');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'condition')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e51b869-58ee-4fdc-9ce1-8fc8dd33788a", + "parentUUID": "5a3d2cc3-b6dc-4b2b-b445-d13b7f3c992e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3eaf14f3-ec58-44a1-9d3a-5b081984a59a", + "1f91f7d4-9b38-404e-a9f5-66179fd4de97", + "843606c8-970e-4d18-ac5d-ea5cdcef56a0", + "838773d6-fbe5-4674-ac36-5f99a185990e", + "d1e3f84b-5bf9-48d3-802d-8482c015e8f0", + "ba1bcd57-1ff5-4e6b-b912-fe27bbbe994e", + "00d4c777-7219-47e2-8a1b-e67b105b9edf", + "5e51b869-58ee-4fdc-9ce1-8fc8dd33788a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 92, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "40b9ff37-a555-47cb-a6d9-ad0ece06ce7a", + "title": "Stocks Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Stocks tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Stocks Tab should go to Stocks tab", + "timedOut": false, + "duration": 59, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postGoToStocksTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postGoToStocksTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'stock')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'stock')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "67c4a936-db59-401f-8d27-38be86df1d46", + "parentUUID": "40b9ff37-a555-47cb-a6d9-ad0ece06ce7a", + "isHook": false, + "skipped": false + }, + { + "title": "should check Minimum quantity for sale", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Stocks Tab should check Minimum quantity for sale", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckMinimalQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckMinimalQuantity', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'minimal_quantity');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'minimal_quantity')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f0e6c69-7a92-47c3-99ae-8d15fadbc1d4", + "parentUUID": "40b9ff37-a555-47cb-a6d9-ad0ece06ce7a", + "isHook": false, + "skipped": false + }, + { + "title": "should check Receive a low stock alert by email", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Stocks Tab should check Receive a low stock alert by email", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckLowStockAlert\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckLowStockAlert', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'low_stock_alert');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'low_stock_threshold_enabled')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba988243-3d1e-4986-9012-ff6469526b06", + "parentUUID": "40b9ff37-a555-47cb-a6d9-ad0ece06ce7a", + "isHook": false, + "skipped": false + }, + { + "title": "should check the low stock alert by email", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Stocks Tab should check the low stock alert by email", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckLowStockThreshold\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckLowStockThreshold', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'low_stock_threshold');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'low_stock_threshold')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11231f8f-5e29-4121-b189-8f40f64182e7", + "parentUUID": "40b9ff37-a555-47cb-a6d9-ad0ece06ce7a", + "isHook": false, + "skipped": false + }, + { + "title": "should check Label when in stock", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Stocks Tab should check Label when in stock", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckLabelAvailableNow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckLabelAvailableNow', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'available_now', '1');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_now', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'available_now', '2');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_now', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "261c118c-6d66-4ca0-bbb6-a2c14891ee90", + "parentUUID": "40b9ff37-a555-47cb-a6d9-ad0ece06ce7a", + "isHook": false, + "skipped": false + }, + { + "title": "should check Label when out of stock", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Stocks Tab should check Label when out of stock", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckLabelAvailableLater\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckLabelAvailableLater', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'available_later', '1');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_later', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'available_later', '2');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_later', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9122e46e-dbcc-4b14-8e26-487965a13d10", + "parentUUID": "40b9ff37-a555-47cb-a6d9-ad0ece06ce7a", + "isHook": false, + "skipped": false + }, + { + "title": "should check Availability date", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Stocks Tab should check Availability date", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckAvailableDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckAvailableDate', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'available_date');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_date')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "870aa991-b3c4-491a-8d3b-fef84aafba7c", + "parentUUID": "40b9ff37-a555-47cb-a6d9-ad0ece06ce7a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "67c4a936-db59-401f-8d27-38be86df1d46", + "6f0e6c69-7a92-47c3-99ae-8d15fadbc1d4", + "11231f8f-5e29-4121-b189-8f40f64182e7", + "261c118c-6d66-4ca0-bbb6-a2c14891ee90", + "9122e46e-dbcc-4b14-8e26-487965a13d10", + "870aa991-b3c4-491a-8d3b-fef84aafba7c" + ], + "failures": [], + "pending": [ + "ba988243-3d1e-4986-9012-ff6469526b06" + ], + "skipped": [], + "duration": 81, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "37ec59a3-0982-4307-9315-6e412fee0da8", + "title": "Shipping Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Shipping tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should go to Shipping tab", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postGoToShippingTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postGoToShippingTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'shipping')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'shipping')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2267c476-b927-450b-a85a-f95803152b10", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + }, + { + "title": "should check Width", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should check Width", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckWidth\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckWidth', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'width');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'width')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(xmlValue).to.be.a('string');\n (0, chai_1.expect)(value).to.eq(parseInt(xmlValue, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50e923e1-3b80-4cdf-b351-ebc40054101b", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + }, + { + "title": "should check Height", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should check Height", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckHeight\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckHeight', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'height');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'height')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(xmlValue).to.be.a('string');\n (0, chai_1.expect)(value).to.eq(parseInt(xmlValue, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "836de254-ff34-4a22-a1be-52238016b0c0", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + }, + { + "title": "should check Depth", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should check Depth", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckDepth\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckDepth', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'depth');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'depth')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(xmlValue).to.be.a('string');\n (0, chai_1.expect)(value).to.eq(parseInt(xmlValue, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c753e75a-107b-4ac6-8a31-002b8715ce36", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + }, + { + "title": "should check Weight", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should check Weight", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckWeight\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckWeight', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'weight');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'weight')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(xmlValue).to.be.a('string');\n (0, chai_1.expect)(value).to.eq(parseInt(xmlValue, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e77d41bc-ce61-4619-a073-eb78808e407c", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + }, + { + "title": "should check Delivery time", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should check Delivery time", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckDeliveryTime\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckDeliveryTime', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'additional_delivery_times');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'additional_delivery_times')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a845a1e6-360e-42e9-a6ef-12af3078dd6b", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + }, + { + "title": "should check Delivery time of in-stock products", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should check Delivery time of in-stock products", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckDeliveryInStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckDeliveryInStock', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'delivery_in_stock', '1');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'delivery_in_stock', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'delivery_in_stock', '2');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'delivery_in_stock', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a98c370-b5b6-40d8-bec2-1bed928c85d1", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + }, + { + "title": "should check Delivery time of out-of-stock products with allowed orders", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should check Delivery time of out-of-stock products with allowed orders", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckDeliveryOutStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckDeliveryOutStock', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'delivery_out_stock', '1');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'delivery_out_stock', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'delivery_out_stock', '2');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'delivery_out_stock', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58b31003-ac91-40da-b7fb-f6a900fcd9d7", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + }, + { + "title": "should check Additional shipping costs", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Shipping Tab should check Additional shipping costs", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckShippingCost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckShippingCost', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'additional_shipping_cost');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'additional_shipping_cost')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9a6d316-45fe-4456-adba-8bd0dd68856f", + "parentUUID": "37ec59a3-0982-4307-9315-6e412fee0da8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2267c476-b927-450b-a85a-f95803152b10", + "50e923e1-3b80-4cdf-b351-ebc40054101b", + "836de254-ff34-4a22-a1be-52238016b0c0", + "c753e75a-107b-4ac6-8a31-002b8715ce36", + "e77d41bc-ce61-4619-a073-eb78808e407c", + "a845a1e6-360e-42e9-a6ef-12af3078dd6b", + "2a98c370-b5b6-40d8-bec2-1bed928c85d1", + "58b31003-ac91-40da-b7fb-f6a900fcd9d7", + "e9a6d316-45fe-4456-adba-8bd0dd68856f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 92, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d0071086-8dc2-4c41-846c-4e285816de3d", + "title": "Pricing Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Pricing tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Pricing Tab should go to Pricing tab", + "timedOut": false, + "duration": 66, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postGoToPricingTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postGoToPricingTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'pricing')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fe0434d-6ff4-4fcf-b77f-905d0d2f50a5", + "parentUUID": "d0071086-8dc2-4c41-846c-4e285816de3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check Retail Price (tax excl.)", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Pricing Tab should check Retail Price (tax excl.)", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckPrice', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'price');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'price')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40545476-5c16-4bff-9d55-4f0a3c8204b8", + "parentUUID": "d0071086-8dc2-4c41-846c-4e285816de3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check Tax Rule", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Pricing Tab should check Tax Rule", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckTaxRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckTaxRule', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'id_tax_rules_group');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'id_tax_rules_group')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5e2e61c-3b2d-44cb-ad38-1a7614036e2d", + "parentUUID": "d0071086-8dc2-4c41-846c-4e285816de3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check Ecotax", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Pricing Tab should check Ecotax", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckEcotax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckEcotax', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'ecotax');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'ecotax')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e488535-dc83-46c1-87b4-5c0a59c83329", + "parentUUID": "d0071086-8dc2-4c41-846c-4e285816de3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check Cost Price", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Pricing Tab should check Cost Price", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckWholesalePrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckWholesalePrice', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'wholesale_price');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'wholesale_price')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de240e6a-dfc2-46e5-a172-b6fde86289d4", + "parentUUID": "d0071086-8dc2-4c41-846c-4e285816de3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check Unit Price", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Pricing Tab should check Unit Price", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckUnitPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckUnitPrice', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'unit_price');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'unit_price')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a672a0e3-133a-4990-afc3-23515491dd6b", + "parentUUID": "d0071086-8dc2-4c41-846c-4e285816de3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check Unity", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Pricing Tab should check Unity", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckUnity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckUnity', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'unity');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'unity')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca347dd3-5ea0-4bce-acc0-c327bd7329cb", + "parentUUID": "d0071086-8dc2-4c41-846c-4e285816de3d", + "isHook": false, + "skipped": false + }, + { + "title": "should check \"Display the \"On sale!\" flag on the product page\"", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Pricing Tab should check \"Display the \"On sale!\" flag on the product page\"", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckOnSale\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckOnSale', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'on_sale');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'on_sale')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "290bd56b-18d7-4908-baa0-e49fd68a4853", + "parentUUID": "d0071086-8dc2-4c41-846c-4e285816de3d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2fe0434d-6ff4-4fcf-b77f-905d0d2f50a5", + "40545476-5c16-4bff-9d55-4f0a3c8204b8", + "c5e2e61c-3b2d-44cb-ad38-1a7614036e2d", + "2e488535-dc83-46c1-87b4-5c0a59c83329", + "de240e6a-dfc2-46e5-a172-b6fde86289d4", + "a672a0e3-133a-4990-afc3-23515491dd6b", + "ca347dd3-5ea0-4bce-acc0-c327bd7329cb", + "290bd56b-18d7-4908-baa0-e49fd68a4853" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 94, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2ba5302f-3380-4e42-9074-a48c92f07469", + "title": "SEO Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to SEO tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO SEO Tab should go to SEO tab", + "timedOut": false, + "duration": 56, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postGoToSEOTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postGoToSEOTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'seo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'seo')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c2baa90-f4fa-4f04-a3ad-a982d5fae061", + "parentUUID": "2ba5302f-3380-4e42-9074-a48c92f07469", + "isHook": false, + "skipped": false + }, + { + "title": "should check Meta title", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO SEO Tab should check Meta title", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckMetaTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckMetaTitle', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'meta_title', '1');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'meta_title', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'meta_title', '2');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'meta_title', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "005117e3-e855-4c58-97ab-4abcbf2b6eb0", + "parentUUID": "2ba5302f-3380-4e42-9074-a48c92f07469", + "isHook": false, + "skipped": false + }, + { + "title": "should check Meta description", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO SEO Tab should check Meta description", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckMetaDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckMetaDescription', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'meta_description', '1');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'meta_description', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'meta_description', '2');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'meta_description', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fb6424a7-8093-4797-91e9-f26a625ceadc", + "parentUUID": "2ba5302f-3380-4e42-9074-a48c92f07469", + "isHook": false, + "skipped": false + }, + { + "title": "should check Friendly URL", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO SEO Tab should check Friendly URL", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckLinkRewrite\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckLinkRewrite', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlCreate, 'link_rewrite', '1');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'link_rewrite', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlCreate, 'link_rewrite', '2');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'link_rewrite', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38878360-b3cb-450e-b1b5-b42cd07fd699", + "parentUUID": "2ba5302f-3380-4e42-9074-a48c92f07469", + "isHook": false, + "skipped": false + }, + { + "title": "should check Redirection page", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO SEO Tab should check Redirection page", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckRedirectType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckRedirectType', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'redirect_type');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'redirect_type', '1')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b6bcdfb-8c5b-4976-926c-eed4ef660a58", + "parentUUID": "2ba5302f-3380-4e42-9074-a48c92f07469", + "isHook": false, + "skipped": false + }, + { + "title": "should check Redirection product", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO SEO Tab should check Redirection product", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckIdTypeRedirected\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckIdTypeRedirected', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'id_type_redirected');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'id_type_redirected', '1')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fddbdf34-8082-43c1-b9d4-b1a0f31af0ff", + "parentUUID": "2ba5302f-3380-4e42-9074-a48c92f07469", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5c2baa90-f4fa-4f04-a3ad-a982d5fae061", + "005117e3-e855-4c58-97ab-4abcbf2b6eb0", + "fb6424a7-8093-4797-91e9-f26a625ceadc", + "38878360-b3cb-450e-b1b5-b42cd07fd699", + "2b6bcdfb-8c5b-4976-926c-eed4ef660a58", + "fddbdf34-8082-43c1-b9d4-b1a0f31af0ff" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 88, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0deb9cc2-50d0-42a2-8c81-990eef6ef7f4", + "title": "Options Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Options tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Options Tab should go to Options tab", + "timedOut": false, + "duration": 42, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postGoToOptionsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postGoToOptionsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'options')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'options')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56c26fd1-5164-41f9-96f7-9637401dea02", + "parentUUID": "0deb9cc2-50d0-42a2-8c81-990eef6ef7f4", + "isHook": false, + "skipped": false + }, + { + "title": "should check Visibility", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Options Tab should check Visibility", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckVisibility\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckVisibility', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'visibility');\n return [4 /*yield*/, optionsTab_1.default.getValue(page, 'visibility')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02ab76a1-710b-4ef0-a58c-000b36cff313", + "parentUUID": "0deb9cc2-50d0-42a2-8c81-990eef6ef7f4", + "isHook": false, + "skipped": false + }, + { + "title": "should check Available for order", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Options Tab should check Available for order", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckAvailableForOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckAvailableForOrder', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'available_for_order');\n return [4 /*yield*/, optionsTab_1.default.getValue(page, 'available_for_order')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a36f554b-66af-4ff7-8766-a369caac4f99", + "parentUUID": "0deb9cc2-50d0-42a2-8c81-990eef6ef7f4", + "isHook": false, + "skipped": false + }, + { + "title": "should check Show prices", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Options Tab should check Show prices", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckShowPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckShowPrice', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'show_price');\n return [4 /*yield*/, optionsTab_1.default.getValue(page, 'show_price')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "747d66bb-e981-4914-865a-14f037c5482c", + "parentUUID": "0deb9cc2-50d0-42a2-8c81-990eef6ef7f4", + "isHook": false, + "skipped": false + }, + { + "title": "should check Web only (not sold in your retail store)", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Options Tab should check Web only (not sold in your retail store)", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postCheckOnlineOnly\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'postCheckOnlineOnly', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlCreate, 'online_only');\n return [4 /*yield*/, optionsTab_1.default.getValue(page, 'online_only')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "273841c6-6a38-444f-9fb3-f3aa2921cc42", + "parentUUID": "0deb9cc2-50d0-42a2-8c81-990eef6ef7f4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "56c26fd1-5164-41f9-96f7-9637401dea02", + "02ab76a1-710b-4ef0-a58c-000b36cff313", + "a36f554b-66af-4ff7-8766-a369caac4f99", + "747d66bb-e981-4914-865a-14f037c5482c", + "273841c6-6a38-444f-9fb3-f3aa2921cc42" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 56, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e077184e-2592-4be1-80c6-862c2e2bc87e", + "title": "Product Page : List & Reset", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Product Page : List & Reset should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_goToProductsPageBeforePut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageBeforePut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b5d8520-8d65-4b3f-b64b-683353ea77f6", + "parentUUID": "e077184e-2592-4be1-80c6-862c2e2bc87e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : POST Endpoint : api/products - Method : POST - Check On BO Product Page : List & Reset should reset all filters", + "timedOut": false, + "duration": 2911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_resetFilterFirstAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirstAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e6e5180-d24c-4cbf-b093-3c416325cf47", + "parentUUID": "e077184e-2592-4be1-80c6-862c2e2bc87e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7b5d8520-8d65-4b3f-b64b-683353ea77f6", + "7e6e5180-d24c-4cbf-b093-3c416325cf47" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7729, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b5bb0e7a-4e31-4588-b988-4bfda013c2b8", + "title": "Endpoint : api/products - Method : PUT ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "44ef26ce-6391-461f-bbae-e0b1fedc99d7", + "title": "Endpoint : api/products - Method : PUT - Update Product ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status of api/products/{id}", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Update Product should check response status of api/products/{id}", + "timedOut": false, + "duration": 48, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestPutStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutStatus1', baseContext)];\n case 1:\n _a.sent();\n xmlUpdate = (0, product_1.default)(productNodeID.toString());\n return [4 /*yield*/, productWs_1.default.update(apiContext, authorization, productNodeID.toString(), xmlUpdate)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "734f9d7d-7552-4ba6-950d-5110cf87a3e3", + "parentUUID": "44ef26ce-6391-461f-bbae-e0b1fedc99d7", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Update Product should check response root node", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestPutRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(productXml_1.default.getRootNodeName(xmlResponse)).to.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86a3cb62-4594-4cee-9e04-2bff9f3f0190", + "parentUUID": "44ef26ce-6391-461f-bbae-e0b1fedc99d7", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Update Product should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestPutNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = productXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.eq('product');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5b1f683-96df-46cb-b947-9bf0c87e0998", + "parentUUID": "44ef26ce-6391-461f-bbae-e0b1fedc99d7", + "isHook": false, + "skipped": false + }, + { + "title": "should check id of the product", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Update Product should check id of the product", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestPutCheckId1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlID;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutCheckId1', baseContext)];\n case 1:\n _a.sent();\n xmlID = productXml_1.default.getAttributeValue(xmlResponse, 'id');\n (0, chai_1.expect)(xmlID).to.be.a('string');\n productNodeID = parseInt(xmlID, 10);\n (0, chai_1.expect)(xmlID).to.eq(productNodeID.toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "662b208b-f9ef-4eb3-b4ba-a2011845ab6c", + "parentUUID": "44ef26ce-6391-461f-bbae-e0b1fedc99d7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "734f9d7d-7552-4ba6-950d-5110cf87a3e3", + "86a3cb62-4594-4cee-9e04-2bff9f3f0190", + "e5b1f683-96df-46cb-b947-9bf0c87e0998", + "662b208b-f9ef-4eb3-b4ba-a2011845ab6c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 52, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f1e8cfb2-2f57-4817-9dc9-c001c1862389", + "title": "Endpoint : api/products/{id} - Method : PUT - Check with WS ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products/{id} - Method : PUT - Check with WS should check response status", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetPutStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productWs_1.default.getById(apiContext, authorization, productNodeID.toString())];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fc71d1d-6477-4fec-b765-77eeacc3b39d", + "parentUUID": "f1e8cfb2-2f57-4817-9dc9-c001c1862389", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products/{id} - Method : PUT - Check with WS should check response root node", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetPutRootNode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutRootNode2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(productXml_1.default.getRootNodeName(xmlResponse)).to.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7254a4ac-9370-4c47-beef-05da62fc2b94", + "parentUUID": "f1e8cfb2-2f57-4817-9dc9-c001c1862389", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products/{id} - Method : PUT - Check with WS should check number of node under prestashop", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetPutNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = productXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.eq('product');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c07ad3c-d5c9-4c6f-8554-224b9ac796d2", + "parentUUID": "f1e8cfb2-2f57-4817-9dc9-c001c1862389", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under products node", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products/{id} - Method : PUT - Check with WS should check number of nodes under products node", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestGetPutNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n productsNodes = productXml_1.default.getProductNodes(xmlResponse);\n (0, chai_1.expect)(productsNodes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6534a091-d253-40f6-9889-2df8bd26f809", + "parentUUID": "f1e8cfb2-2f57-4817-9dc9-c001c1862389", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node id, name ...", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products/{id} - Method : PUT - Check with WS should check each node id, name ...", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestEndpointProductsIdMethodGetAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var o, oNode, objectNodeValueEN, updateNodeValueEN, objectNodeValueFR, updateNodeValueFR, objectNodeValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointProductsIdMethodGetAfterPut', baseContext)];\n case 1:\n _a.sent();\n // Check nodes are equal to them done in Create\n for (o = 0; o < productsNodes.length; o++) {\n oNode = productsNodes[o];\n if (['manufacturer_name', 'quantity', 'date_add', 'date_upd'].includes(oNode.nodeName)) {\n // It can be defined in POST/PUT\n }\n else if (oNode.nodeName === 'id') {\n (0, chai_1.expect)(oNode.textContent).to.eq(productNodeID.toString());\n }\n else if ([\n 'name',\n 'delivery_in_stock',\n 'delivery_out_stock',\n 'meta_description',\n 'meta_keywords',\n 'meta_title',\n 'link_rewrite',\n 'description',\n 'description_short',\n 'available_now',\n 'available_later',\n ].includes(oNode.nodeName)) {\n objectNodeValueEN = productXml_1.default.getAttributeLangValue(xmlResponse, oNode.nodeName, '1');\n updateNodeValueEN = productXml_1.default.getAttributeLangValue(xmlUpdate, oNode.nodeName, '1');\n (0, chai_1.expect)(objectNodeValueEN).to.eq(updateNodeValueEN);\n objectNodeValueFR = productXml_1.default.getAttributeLangValue(xmlResponse, oNode.nodeName, '2');\n updateNodeValueFR = productXml_1.default.getAttributeLangValue(xmlUpdate, oNode.nodeName, '2');\n (0, chai_1.expect)(objectNodeValueFR).to.eq(updateNodeValueFR);\n }\n else if (oNode.nodeName === 'new') {\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/33429\n }\n else if (oNode.nodeName === 'position_in_category') {\n // @todo : https://github.com/PrestaShop/PrestaShop/issues/14903\n }\n else if (oNode.nodeName === 'associations') {\n // Don't check all associations at the moment\n }\n else {\n objectNodeValue = productXml_1.default.getAttributeValue(xmlUpdate, oNode.nodeName);\n (0, chai_1.expect)(objectNodeValue).to.be.a('string');\n (0, chai_1.expect)(oNode.textContent).to.eq(objectNodeValue);\n }\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "623abc6e-0af4-4547-95e5-968e61cc798f", + "parentUUID": "f1e8cfb2-2f57-4817-9dc9-c001c1862389", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1fc71d1d-6477-4fec-b765-77eeacc3b39d", + "7254a4ac-9370-4c47-beef-05da62fc2b94", + "9c07ad3c-d5c9-4c6f-8554-224b9ac796d2", + "6534a091-d253-40f6-9889-2df8bd26f809", + "623abc6e-0af4-4547-95e5-968e61cc798f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 92, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e50b1600-4812-40e3-9107-6731e0d99696", + "title": "Endpoint : api/products - Method : PUT - Check On BO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "0bf195d7-4519-44d2-98a9-8a48fa09963c", + "title": "Product Page : Filter & Edit", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter product by ID", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Product Page : Filter & Edit should filter product by ID", + "timedOut": false, + "duration": 1285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_filterToUpdateAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterPut', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, products_1.default.filterProducts(page, 'id_product', { min: productNodeID, max: productNodeID }, 'input')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.eq(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'id_product', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.eq(productNodeID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4730f845-0e0f-47f7-be3f-bcf64c145d59", + "parentUUID": "0bf195d7-4519-44d2-98a9-8a48fa09963c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit product page", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Product Page : Filter & Edit should go to edit product page", + "timedOut": false, + "duration": 1087, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_goToEditProductPageAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditProductPageAfterPut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76e187a0-3f9b-47a5-a442-d9041ce61bad", + "parentUUID": "0bf195d7-4519-44d2-98a9-8a48fa09963c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4730f845-0e0f-47f7-be3f-bcf64c145d59", + "76e187a0-3f9b-47a5-a442-d9041ce61bad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2372, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "856f9966-c00f-4697-8378-96ef88cea0d6", + "title": "Main Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check active", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Main Tab should check active", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckProductActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckProductActive', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'active');\n return [4 /*yield*/, add_1.default.getProductStatus(page)];\n case 2:\n value = (_a.sent()) ? '1' : '0';\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d7b5b05-4339-4706-bd45-1abae31643c1", + "parentUUID": "856f9966-c00f-4697-8378-96ef88cea0d6", + "isHook": false, + "skipped": false + }, + { + "title": "should check type", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Main Tab should check type", + "timedOut": false, + "duration": 15, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckProductType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckProductType', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'product_type');\n return [4 /*yield*/, add_1.default.getProductType(page)];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc7fed95-aede-4714-b9f2-9a6babe6e7ea", + "parentUUID": "856f9966-c00f-4697-8378-96ef88cea0d6", + "isHook": false, + "skipped": false + }, + { + "title": "should check name", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Main Tab should check name", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckName', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'name', '1');\n return [4 /*yield*/, add_1.default.getProductName(page, 'en')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'name', '2');\n return [4 /*yield*/, add_1.default.getProductName(page, 'fr')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c01291d7-4492-49c2-b8d3-bb2ca2e55aaa", + "parentUUID": "856f9966-c00f-4697-8378-96ef88cea0d6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3d7b5b05-4339-4706-bd45-1abae31643c1", + "bc7fed95-aede-4714-b9f2-9a6babe6e7ea", + "c01291d7-4492-49c2-b8d3-bb2ca2e55aaa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 36, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "21d975fb-f0c7-44f8-a3ab-4aa08a9c0710", + "title": "Description Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check short description", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Description Tab should check short description", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckShortDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckShortDescription', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'description_short', '1');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'summary', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'description_short', '2');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'summary', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6dfbc2ac-2454-47d4-9ccd-66e5ddbe9422", + "parentUUID": "21d975fb-f0c7-44f8-a3ab-4aa08a9c0710", + "isHook": false, + "skipped": false + }, + { + "title": "should check description", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Description Tab should check description", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckDescription', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'description', '1');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'description', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'description', '2');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'description', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8db5bd61-b32c-47a6-8301-859a6febbb0e", + "parentUUID": "21d975fb-f0c7-44f8-a3ab-4aa08a9c0710", + "isHook": false, + "skipped": false + }, + { + "title": "should check default category", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Description Tab should check default category", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckDefaultCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckDefaultCategory', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'id_category_default');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'id_category_default', '1')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0095c39f-73d6-4a54-8435-1169b42537e5", + "parentUUID": "21d975fb-f0c7-44f8-a3ab-4aa08a9c0710", + "isHook": false, + "skipped": false + }, + { + "title": "should check manufacturer", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Description Tab should check manufacturer", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckManufacturer\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckManufacturer', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'id_manufacturer');\n return [4 /*yield*/, descriptionTab_1.default.getValue(page, 'manufacturer', '1')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f96b9cbd-e88d-42ca-b17b-3160f31d9d78", + "parentUUID": "21d975fb-f0c7-44f8-a3ab-4aa08a9c0710", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6dfbc2ac-2454-47d4-9ccd-66e5ddbe9422", + "8db5bd61-b32c-47a6-8301-859a6febbb0e", + "0095c39f-73d6-4a54-8435-1169b42537e5", + "f96b9cbd-e88d-42ca-b17b-3160f31d9d78" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 27, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "title": "Details Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to details tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Details Tab should go to details tab", + "timedOut": false, + "duration": 60, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putGoToDetailsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putGoToDetailsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'details')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'details')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "008065bb-17d1-4dca-8d93-2aae0c18ca3a", + "parentUUID": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "isHook": false, + "skipped": false + }, + { + "title": "should check reference", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Details Tab should check reference", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckReference', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'reference');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'reference')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41090a73-2453-44b5-8b62-78e49010cfda", + "parentUUID": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "isHook": false, + "skipped": false + }, + { + "title": "should check MPN", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Details Tab should check MPN", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckMPN\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckMPN', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'mpn');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'mpn')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8253dd6-4554-4c7a-9f70-627cacfef7b1", + "parentUUID": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "isHook": false, + "skipped": false + }, + { + "title": "should check UPC", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Details Tab should check UPC", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckUPC\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckUPC', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'upc');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'upc')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e77c41a0-014f-40b9-9fa5-62c291215744", + "parentUUID": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "isHook": false, + "skipped": false + }, + { + "title": "should check EAN13", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Details Tab should check EAN13", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckEAN13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckEAN13', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'ean13');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'ean13')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e24a1718-f20d-4ddf-9bd8-6ae8baf38f84", + "parentUUID": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "isHook": false, + "skipped": false + }, + { + "title": "should check ISBN", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Details Tab should check ISBN", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckISBN\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckISBN', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'isbn');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'isbn')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3165250e-fda1-42d4-8997-fabc538c942d", + "parentUUID": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "isHook": false, + "skipped": false + }, + { + "title": "should check \"Display condition on product page\"", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Details Tab should check \"Display condition on product page\"", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckShowCondition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckShowCondition', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'show_condition');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'show_condition')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78cf3b37-dbbb-41e7-9812-304d3b45c237", + "parentUUID": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "isHook": false, + "skipped": false + }, + { + "title": "should check condition", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Details Tab should check condition", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckCondition\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckCondition', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'condition');\n return [4 /*yield*/, detailsTab_1.default.getValue(page, 'condition')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28c8a52b-85d7-41ee-bf2d-0dee69fd1566", + "parentUUID": "5122fde8-89df-47d4-afd7-c79bfb06a762", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "008065bb-17d1-4dca-8d93-2aae0c18ca3a", + "41090a73-2453-44b5-8b62-78e49010cfda", + "b8253dd6-4554-4c7a-9f70-627cacfef7b1", + "e77c41a0-014f-40b9-9fa5-62c291215744", + "e24a1718-f20d-4ddf-9bd8-6ae8baf38f84", + "3165250e-fda1-42d4-8997-fabc538c942d", + "78cf3b37-dbbb-41e7-9812-304d3b45c237", + "28c8a52b-85d7-41ee-bf2d-0dee69fd1566" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 86, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e2bce99f-2375-45a4-a1a2-512038882e1e", + "title": "Stocks Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Stocks tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Stocks Tab should go to Stocks tab", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putGoToStocksTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putGoToStocksTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'stock')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'stock')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c60fb42-69ee-4c0c-aabb-0d31a1b7d74e", + "parentUUID": "e2bce99f-2375-45a4-a1a2-512038882e1e", + "isHook": false, + "skipped": false + }, + { + "title": "should check Minimum quantity for sale", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Stocks Tab should check Minimum quantity for sale", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckMinimalQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckMinimalQuantity', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'minimal_quantity');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'minimal_quantity')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1806a2e-7c82-4ff8-8342-821c23ffd023", + "parentUUID": "e2bce99f-2375-45a4-a1a2-512038882e1e", + "isHook": false, + "skipped": false + }, + { + "title": "should check Receive a low stock alert by email", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Stocks Tab should check Receive a low stock alert by email", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckLowStockAlert\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckLowStockAlert', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'low_stock_alert');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'low_stock_threshold_enabled')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "435b5446-3284-4e9d-97e0-08a15e2b4f0e", + "parentUUID": "e2bce99f-2375-45a4-a1a2-512038882e1e", + "isHook": false, + "skipped": false + }, + { + "title": "should check the low stock alert by email", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Stocks Tab should check the low stock alert by email", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckLowStockThreshold\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckLowStockThreshold', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'low_stock_threshold');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'low_stock_threshold')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "419de762-46ec-40cc-86be-69d611d97773", + "parentUUID": "e2bce99f-2375-45a4-a1a2-512038882e1e", + "isHook": false, + "skipped": false + }, + { + "title": "should check Label when in stock", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Stocks Tab should check Label when in stock", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckLabelAvailableNow\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckLabelAvailableNow', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'available_now', '1');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_now', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'available_now', '2');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_now', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f5bb6286-8004-4349-96b2-fc59d58d7fa9", + "parentUUID": "e2bce99f-2375-45a4-a1a2-512038882e1e", + "isHook": false, + "skipped": false + }, + { + "title": "should check Label when out of stock", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Stocks Tab should check Label when out of stock", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckLabelAvailableLater\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckLabelAvailableLater', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'available_later', '1');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_later', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'available_later', '2');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_later', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07c538cd-29d9-4192-a5a8-539b964bf369", + "parentUUID": "e2bce99f-2375-45a4-a1a2-512038882e1e", + "isHook": false, + "skipped": false + }, + { + "title": "should check Availability date", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Stocks Tab should check Availability date", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckAvailableDate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckAvailableDate', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'available_date');\n return [4 /*yield*/, stocksTab_1.default.getValue(page, 'available_date')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6ebffd3-36e4-4a6a-b510-0bdf9bb6809f", + "parentUUID": "e2bce99f-2375-45a4-a1a2-512038882e1e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7c60fb42-69ee-4c0c-aabb-0d31a1b7d74e", + "a1806a2e-7c82-4ff8-8342-821c23ffd023", + "419de762-46ec-40cc-86be-69d611d97773", + "f5bb6286-8004-4349-96b2-fc59d58d7fa9", + "07c538cd-29d9-4192-a5a8-539b964bf369", + "a6ebffd3-36e4-4a6a-b510-0bdf9bb6809f" + ], + "failures": [], + "pending": [ + "435b5446-3284-4e9d-97e0-08a15e2b4f0e" + ], + "skipped": [], + "duration": 77, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "title": "Shipping Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Shipping tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should go to Shipping tab", + "timedOut": false, + "duration": 54, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putGoToShippingTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putGoToShippingTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'shipping')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'shipping')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86d3e4da-1993-4ea9-9771-7d593739e0ef", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Width", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should check Width", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckWidth\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckWidth', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'width');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'width')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(xmlValue).to.be.a('string');\n (0, chai_1.expect)(value).to.eq(parseInt(xmlValue, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74a47bb1-16fd-459f-9f09-b7f67f806e0b", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Height", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should check Height", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckHeight\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckHeight', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'height');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'height')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(xmlValue).to.be.a('string');\n (0, chai_1.expect)(value).to.eq(parseInt(xmlValue, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de90b3f7-f988-442d-a789-ce501831cce5", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Depth", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should check Depth", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckDepth\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckDepth', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'depth');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'depth')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(xmlValue).to.be.a('string');\n (0, chai_1.expect)(value).to.eq(parseInt(xmlValue, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8296a39c-9430-4a72-8605-8672622ec328", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Weight", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should check Weight", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckWeight\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckWeight', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'weight');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'weight')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(xmlValue).to.be.a('string');\n (0, chai_1.expect)(value).to.eq(parseInt(xmlValue, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26d232cf-ec1a-44e3-8ce0-cadcb2a7a52a", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Delivery time", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should check Delivery time", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckDeliveryTime\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckDeliveryTime', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'additional_delivery_times');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'additional_delivery_times')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16f5e14c-a900-4a5f-8460-790c226cfbec", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Delivery time of in-stock products", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should check Delivery time of in-stock products", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckDeliveryInStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckDeliveryInStock', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'delivery_in_stock', '1');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'delivery_in_stock', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'delivery_in_stock', '2');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'delivery_in_stock', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "94bcafc2-72c8-4752-ab54-097c9a59a232", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Delivery time of out-of-stock products with allowed orders", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should check Delivery time of out-of-stock products with allowed orders", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckDeliveryOutStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckDeliveryOutStock', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'delivery_out_stock', '1');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'delivery_out_stock', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'delivery_out_stock', '2');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'delivery_out_stock', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1800d725-7ef5-49c3-9b31-a733e3bee203", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + }, + { + "title": "should check Additional shipping costs", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Shipping Tab should check Additional shipping costs", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckShippingCost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckShippingCost', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'additional_shipping_cost');\n return [4 /*yield*/, shippingTab_1.default.getValue(page, 'additional_shipping_cost')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "772781f8-fa3f-45cf-aa76-b51021a8c692", + "parentUUID": "16e1cfa4-fc35-403e-a5c2-65b78055971c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "86d3e4da-1993-4ea9-9771-7d593739e0ef", + "74a47bb1-16fd-459f-9f09-b7f67f806e0b", + "de90b3f7-f988-442d-a789-ce501831cce5", + "8296a39c-9430-4a72-8605-8672622ec328", + "26d232cf-ec1a-44e3-8ce0-cadcb2a7a52a", + "16f5e14c-a900-4a5f-8460-790c226cfbec", + "94bcafc2-72c8-4752-ab54-097c9a59a232", + "1800d725-7ef5-49c3-9b31-a733e3bee203", + "772781f8-fa3f-45cf-aa76-b51021a8c692" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 85, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "title": "Pricing Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Pricing tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Pricing Tab should go to Pricing tab", + "timedOut": false, + "duration": 55, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putGoToPricingTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putGoToPricingTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'pricing')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'pricing')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77094c92-cdac-4e62-8e4a-4b52ba160e94", + "parentUUID": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "isHook": false, + "skipped": false + }, + { + "title": "should check Retail Price (tax excl.)", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Pricing Tab should check Retail Price (tax excl.)", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckPrice', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'price');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'price')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95be12b8-87e4-4a68-88fb-98dca3d2f338", + "parentUUID": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "isHook": false, + "skipped": false + }, + { + "title": "should check Tax Rule", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Pricing Tab should check Tax Rule", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckTaxRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckTaxRule', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'id_tax_rules_group');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'id_tax_rules_group')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98c534a8-1e3e-48c3-91c8-6708355031ee", + "parentUUID": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "isHook": false, + "skipped": false + }, + { + "title": "should check Ecotax", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Pricing Tab should check Ecotax", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckEcotax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckEcotax', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'ecotax');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'ecotax')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64c60ab4-2f5d-4498-8d8c-c41b9beb2590", + "parentUUID": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "isHook": false, + "skipped": false + }, + { + "title": "should check Cost Price", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Pricing Tab should check Cost Price", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckWholesalePrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckWholesalePrice', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'wholesale_price');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'wholesale_price')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37d69027-05e3-4995-bc6a-be4d91267890", + "parentUUID": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "isHook": false, + "skipped": false + }, + { + "title": "should check Unit Price", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Pricing Tab should check Unit Price", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckUnitPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckUnitPrice', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'unit_price');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'unit_price')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3895027b-bc39-4330-8643-417a0c36de53", + "parentUUID": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "isHook": false, + "skipped": false + }, + { + "title": "should check Unity", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Pricing Tab should check Unity", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckUnity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckUnity', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'unity');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'unity')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb76f98f-1032-498c-a27e-8404204e2453", + "parentUUID": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "isHook": false, + "skipped": false + }, + { + "title": "should check \"Display the \"On sale!\" flag on the product page\"", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Pricing Tab should check \"Display the \"On sale!\" flag on the product page\"", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckOnSale\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckOnSale', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'on_sale');\n return [4 /*yield*/, pricingTab_1.default.getValue(page, 'on_sale')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b35d6b5-af6c-4005-945b-8add9d45b323", + "parentUUID": "8c202ff7-167e-4c30-ac7b-b2644e933d31", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "77094c92-cdac-4e62-8e4a-4b52ba160e94", + "95be12b8-87e4-4a68-88fb-98dca3d2f338", + "98c534a8-1e3e-48c3-91c8-6708355031ee", + "64c60ab4-2f5d-4498-8d8c-c41b9beb2590", + "37d69027-05e3-4995-bc6a-be4d91267890", + "3895027b-bc39-4330-8643-417a0c36de53", + "cb76f98f-1032-498c-a27e-8404204e2453", + "3b35d6b5-af6c-4005-945b-8add9d45b323" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 83, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "78d87f88-a051-4965-ad78-3d2ce3c794c6", + "title": "SEO Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to SEO tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO SEO Tab should go to SEO tab", + "timedOut": false, + "duration": 55, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putGoToSEOTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putGoToSEOTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'seo')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'seo')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ffee150-56b4-4cba-b7ae-eebb20810cec", + "parentUUID": "78d87f88-a051-4965-ad78-3d2ce3c794c6", + "isHook": false, + "skipped": false + }, + { + "title": "should check Meta title", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO SEO Tab should check Meta title", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckMetaTitle\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckMetaTitle', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'meta_title', '1');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'meta_title', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'meta_title', '2');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'meta_title', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20104221-10b9-42a4-9d5c-a8a6916ade86", + "parentUUID": "78d87f88-a051-4965-ad78-3d2ce3c794c6", + "isHook": false, + "skipped": false + }, + { + "title": "should check Meta description", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO SEO Tab should check Meta description", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckMetaDescription\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckMetaDescription', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'meta_description', '1');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'meta_description', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'meta_description', '2');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'meta_description', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc80aa6f-45b1-4b58-82e2-ca4356f061b2", + "parentUUID": "78d87f88-a051-4965-ad78-3d2ce3c794c6", + "isHook": false, + "skipped": false + }, + { + "title": "should check Friendly URL", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO SEO Tab should check Friendly URL", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckLinkRewrite\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueEn, valueEn, xmlValueFr, valueFr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckLinkRewrite', baseContext)];\n case 1:\n _a.sent();\n xmlValueEn = productXml_1.default.getAttributeLangValue(xmlUpdate, 'link_rewrite', '1');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'link_rewrite', '1')];\n case 2:\n valueEn = (_a.sent());\n (0, chai_1.expect)(valueEn).to.eq(xmlValueEn);\n xmlValueFr = productXml_1.default.getAttributeLangValue(xmlUpdate, 'link_rewrite', '2');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'link_rewrite', '2')];\n case 3:\n valueFr = (_a.sent());\n (0, chai_1.expect)(valueFr).to.eq(xmlValueFr);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5828b564-30ba-4775-97c1-b0c0c7cc85ef", + "parentUUID": "78d87f88-a051-4965-ad78-3d2ce3c794c6", + "isHook": false, + "skipped": false + }, + { + "title": "should check Redirection page", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO SEO Tab should check Redirection page", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckRedirectType\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckRedirectType', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'redirect_type');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'redirect_type', '1')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b918e5a6-95f9-4971-931e-86132468ff0b", + "parentUUID": "78d87f88-a051-4965-ad78-3d2ce3c794c6", + "isHook": false, + "skipped": false + }, + { + "title": "should check Redirection product", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO SEO Tab should check Redirection product", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckIdTypeRedirected\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckIdTypeRedirected', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'id_type_redirected');\n return [4 /*yield*/, seoTab_1.default.getValue(page, 'id_type_redirected', '1')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "504185c3-d3cb-4536-9094-7c4471ca5929", + "parentUUID": "78d87f88-a051-4965-ad78-3d2ce3c794c6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0ffee150-56b4-4cba-b7ae-eebb20810cec", + "20104221-10b9-42a4-9d5c-a8a6916ade86", + "bc80aa6f-45b1-4b58-82e2-ca4356f061b2", + "5828b564-30ba-4775-97c1-b0c0c7cc85ef", + "b918e5a6-95f9-4971-931e-86132468ff0b", + "504185c3-d3cb-4536-9094-7c4471ca5929" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 85, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "76b9f0d0-8659-4c95-a9fc-ba9580243df5", + "title": "Options Tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Options tab", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Options Tab should go to Options tab", + "timedOut": false, + "duration": 47, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putGoToOptionsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putGoToOptionsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToTab(page, 'options')];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isTabActive(page, 'options')];\n case 3:\n isTabActive = _a.sent();\n (0, chai_1.expect)(isTabActive).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38d86f1c-2af6-406e-bba9-121aa5ba227a", + "parentUUID": "76b9f0d0-8659-4c95-a9fc-ba9580243df5", + "isHook": false, + "skipped": false + }, + { + "title": "should check Visibility", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Options Tab should check Visibility", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckVisibility\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckVisibility', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'visibility');\n return [4 /*yield*/, optionsTab_1.default.getValue(page, 'visibility')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81ea3026-5b17-4b35-ac01-af0af57248ea", + "parentUUID": "76b9f0d0-8659-4c95-a9fc-ba9580243df5", + "isHook": false, + "skipped": false + }, + { + "title": "should check Available for order", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Options Tab should check Available for order", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckAvailableForOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckAvailableForOrder', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'available_for_order');\n return [4 /*yield*/, optionsTab_1.default.getValue(page, 'available_for_order')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4404c6a-731b-40e1-8783-90f183648202", + "parentUUID": "76b9f0d0-8659-4c95-a9fc-ba9580243df5", + "isHook": false, + "skipped": false + }, + { + "title": "should check Show prices", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Options Tab should check Show prices", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckShowPrice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckShowPrice', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'show_price');\n return [4 /*yield*/, optionsTab_1.default.getValue(page, 'show_price')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ba8cf16-073f-4d70-aa1c-4aa8b6fee63a", + "parentUUID": "76b9f0d0-8659-4c95-a9fc-ba9580243df5", + "isHook": false, + "skipped": false + }, + { + "title": "should check Web only (not sold in your retail store)", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Options Tab should check Web only (not sold in your retail store)", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_putCheckOnlineOnly\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValue, value;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'putCheckOnlineOnly', baseContext)];\n case 1:\n _a.sent();\n xmlValue = productXml_1.default.getAttributeValue(xmlUpdate, 'online_only');\n return [4 /*yield*/, optionsTab_1.default.getValue(page, 'online_only')];\n case 2:\n value = (_a.sent());\n (0, chai_1.expect)(value).to.eq(xmlValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2543b2f9-622f-47ad-9ec8-9ff954e60165", + "parentUUID": "76b9f0d0-8659-4c95-a9fc-ba9580243df5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "38d86f1c-2af6-406e-bba9-121aa5ba227a", + "81ea3026-5b17-4b35-ac01-af0af57248ea", + "d4404c6a-731b-40e1-8783-90f183648202", + "4ba8cf16-073f-4d70-aa1c-4aa8b6fee63a", + "2543b2f9-622f-47ad-9ec8-9ff954e60165" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 61, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7e9320e2-d5aa-4927-910a-6e7d6b592250", + "title": "Product Page : List & Reset", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Product Page : List & Reset should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_goToProductsPageAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageAfterPut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "36df2eb4-dfb1-4258-9d30-ebcf7333899e", + "parentUUID": "7e9320e2-d5aa-4927-910a-6e7d6b592250", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : PUT Endpoint : api/products - Method : PUT - Check On BO Product Page : List & Reset should reset all filters", + "timedOut": false, + "duration": 2935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_resetFilterFirstAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirstAfterPut', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ab47732-47f4-471c-aa7d-3030c0e887af", + "parentUUID": "7e9320e2-d5aa-4927-910a-6e7d6b592250", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "36df2eb4-dfb1-4258-9d30-ebcf7333899e", + "8ab47732-47f4-471c-aa7d-3030c0e887af" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7813, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "76cc4112-b676-46eb-bf49-61048eac54a7", + "title": "Endpoint : api/products - Method : DELETE ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint api/products/{id} with method DELETE", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : DELETE should request the endpoint api/products/{id} with method DELETE", + "timedOut": false, + "duration": 48, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestEndpointProductsMethodDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointProductsMethodDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productWs_1.default.delete(apiContext, authorization, productNodeID.toString())];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1321d7e4-ae64-4997-9733-6ca96bdba535", + "parentUUID": "76cc4112-b676-46eb-bf49-61048eac54a7", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint api/products/{id} with method GET", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : DELETE should request the endpoint api/products/{id} with method GET", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_requestEndpointProductsIdMethodGetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointProductsIdMethodGetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productWs_1.default.getById(apiContext, authorization, productNodeID.toString())];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(404);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6069606-90fa-4729-87cb-75e52e19fb43", + "parentUUID": "76cc4112-b676-46eb-bf49-61048eac54a7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter product by ID", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : DELETE should filter product by ID", + "timedOut": false, + "duration": 1274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_filterToUpdateAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, products_1.default.filterProducts(page, 'id_product', { min: productNodeID, max: productNodeID }, 'input')];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "149aacfa-3c99-4d0b-8995-bb69b2b3a0c3", + "parentUUID": "76cc4112-b676-46eb-bf49-61048eac54a7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Products : CRUD Products : CRUD Endpoint : api/products - Method : DELETE should reset all filters", + "timedOut": false, + "duration": 2923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b1abc18c-a324-4935-8053-a94581f95e9e", + "parentUUID": "76cc4112-b676-46eb-bf49-61048eac54a7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1321d7e4-ae64-4997-9733-6ca96bdba535", + "d6069606-90fa-4729-87cb-75e52e19fb43", + "149aacfa-3c99-4d0b-8995-bb69b2b3a0c3", + "b1abc18c-a324-4935-8053-a94581f95e9e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4266, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "title": "Remove a new webservice key named \"Webservice Key - Products\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Remove a new webservice key named \"Webservice Key - Products\"\"", + "fullTitle": "WS - Products : CRUD Remove a new webservice key named \"Webservice Key - Products\" \"before all\" hook in \"Remove a new webservice key named \"Webservice Key - Products\"\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87b740cb-0cb0-4f96-b7a2-3afb69fc2606", + "parentUUID": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Remove a new webservice key named \"Webservice Key - Products\"\"", + "fullTitle": "WS - Products : CRUD Remove a new webservice key named \"Webservice Key - Products\" \"after all\" hook in \"Remove a new webservice key named \"Webservice Key - Products\"\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4cab5b15-e7d7-480a-9a26-3cfbe5bd8d51", + "parentUUID": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Products : CRUD Remove a new webservice key named \"Webservice Key - Products\" should login in BO", + "timedOut": false, + "duration": 1750, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b12d47d2-26fa-4004-86b3-4cc4ba677cd5", + "parentUUID": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Products : CRUD Remove a new webservice key named \"Webservice Key - Products\" should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4846, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_1_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b840c4e4-3aad-4b0c-af9c-e17a2e3c5deb", + "parentUUID": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "WS - Products : CRUD Remove a new webservice key named \"Webservice Key - Products\" should reset all filters and get number of webservices", + "timedOut": false, + "duration": 295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_1_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4dd65b3a-81b2-4363-94a8-2207f466848e", + "parentUUID": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by key description", + "fullTitle": "WS - Products : CRUD Remove a new webservice key named \"Webservice Key - Products\" should filter list by key description", + "timedOut": false, + "duration": 918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_1_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var key;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', keyDescription)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 3:\n key = _a.sent();\n (0, chai_1.expect)(key).to.contains(keyDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93428f9d-7da3-4cff-9667-3ac201d8bcbe", + "parentUUID": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "isHook": false, + "skipped": false + }, + { + "title": "should delete webservice key", + "fullTitle": "WS - Products : CRUD Remove a new webservice key named \"Webservice Key - Products\" should delete webservice key", + "timedOut": false, + "duration": 865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_1_deleteWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.deleteWebserviceKey(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(webservice_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c29a5138-42ec-49f3-a7e7-6800e51a74c2", + "parentUUID": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "WS - Products : CRUD Remove a new webservice key named \"Webservice Key - Products\" should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 812, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_1_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfWebserviceKeyAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeyAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeyAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6b31c85-15a2-474f-8edb-e3e2906c3310", + "parentUUID": "84be57d8-b5a7-4a5a-a33f-fe268ae4a2eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b12d47d2-26fa-4004-86b3-4cc4ba677cd5", + "b840c4e4-3aad-4b0c-af9c-e17a2e3c5deb", + "4dd65b3a-81b2-4363-94a8-2207f466848e", + "93428f9d-7da3-4cff-9667-3ac201d8bcbe", + "c29a5138-42ec-49f3-a7e7-6800e51a74c2", + "d6b31c85-15a2-474f-8edb-e3e2906c3310" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9486, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8ae034ec-9024-4098-b3e8-a2564cbb2625", + "title": "Disable the Webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the Webservice\"", + "fullTitle": "WS - Products : CRUD Disable the Webservice \"before all\" hook in \"Disable the Webservice\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51eaf580-75b0-40ed-9bcd-a2d8b79d1ac0", + "parentUUID": "8ae034ec-9024-4098-b3e8-a2564cbb2625", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the Webservice\"", + "fullTitle": "WS - Products : CRUD Disable the Webservice \"after all\" hook in \"Disable the Webservice\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "41237ade-b521-4fc6-a7c8-78d063963e9b", + "parentUUID": "8ae034ec-9024-4098-b3e8-a2564cbb2625", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Products : CRUD Disable the Webservice should login in BO", + "timedOut": false, + "duration": 1784, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68256112-efbf-49e1-a62b-736c8b90bc5b", + "parentUUID": "8ae034ec-9024-4098-b3e8-a2564cbb2625", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Products : CRUD Disable the Webservice should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4847, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_2_goToAdvParametersWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvParametersWebservice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23f83459-9f0a-4849-9ed4-e1d4a24d7c53", + "parentUUID": "8ae034ec-9024-4098-b3e8-a2564cbb2625", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the webservice", + "fullTitle": "WS - Products : CRUD Disable the Webservice should disable the webservice", + "timedOut": false, + "duration": 362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_2_setWebserviceStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWebserviceStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setWebserviceStatus(page, status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(webservice_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11e7a422-5532-4eab-af86-98a5f8d06703", + "parentUUID": "8ae034ec-9024-4098-b3e8-a2564cbb2625", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "68256112-efbf-49e1-a62b-736c8b90bc5b", + "23f83459-9f0a-4849-9ed4-e1d4a24d7c53", + "11e7a422-5532-4eab-af86-98a5f8d06703" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6993, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ff19045f-e82d-4a32-b641-ea9294ef794b", + "title": "POST-TEST: Disable Ecotax", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/03_productsCRUD.ts", + "file": "/campaigns/functional/WS/03_productsCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable Ecotax\"", + "fullTitle": "WS - Products : CRUD POST-TEST: Disable Ecotax \"before all\" hook in \"POST-TEST: Disable Ecotax\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c02a168-a002-475e-94b5-47b968931d09", + "parentUUID": "ff19045f-e82d-4a32-b641-ea9294ef794b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable Ecotax\"", + "fullTitle": "WS - Products : CRUD POST-TEST: Disable Ecotax \"after all\" hook in \"POST-TEST: Disable Ecotax\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "df56522f-d1f4-4e1e-99e5-a1dfd11ab246", + "parentUUID": "ff19045f-e82d-4a32-b641-ea9294ef794b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Products : CRUD POST-TEST: Disable Ecotax should login in BO", + "timedOut": false, + "duration": 1715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02dc84a0-d9a6-4d71-94b4-dd3686b4ed90", + "parentUUID": "ff19045f-e82d-4a32-b641-ea9294ef794b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'International > Taxes' page", + "fullTitle": "WS - Products : CRUD POST-TEST: Disable Ecotax should go to 'International > Taxes' page", + "timedOut": false, + "duration": 4910, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_3_goToTaxesPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToTaxesPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.taxesLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(taxes_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b4285f9-6179-4e40-bdf7-d8e9f389c82d", + "parentUUID": "ff19045f-e82d-4a32-b641-ea9294ef794b", + "isHook": false, + "skipped": false + }, + { + "title": "should disable Ecotax", + "fullTitle": "WS - Products : CRUD POST-TEST: Disable Ecotax should disable Ecotax", + "timedOut": false, + "duration": 422, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_productsCRUD_postTest_3_disableEcoTax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableEcoTax', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, taxes_1.default.enableEcoTax(page, false)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.equal('Update successful');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1c5c84a-0a95-4bd7-8dbe-a4331928ddf3", + "parentUUID": "ff19045f-e82d-4a32-b641-ea9294ef794b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "02dc84a0-d9a6-4d71-94b4-dd3686b4ed90", + "1b4285f9-6179-4e40-bdf7-d8e9f389c82d", + "d1c5c84a-0a95-4bd7-8dbe-a4331928ddf3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7047, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d40c3da4-2078-443c-aa77-3bb4a520ffd8", + "title": "WS - Stores : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"WS - Stores : CRUD\"", + "fullTitle": "WS - Stores : CRUD \"before all\" hook in \"WS - Stores : CRUD\"", + "timedOut": false, + "duration": 45, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, helpers_1.default.createAPIContext(global.FO.URL)];\n case 3:\n apiContext = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "703f6c9e-5b71-4de7-ba03-2fe64787df41", + "parentUUID": "d40c3da4-2078-443c-aa77-3bb4a520ffd8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"WS - Stores : CRUD\"", + "fullTitle": "WS - Stores : CRUD \"after all\" hook in \"WS - Stores : CRUD\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2357059d-3ae2-474e-a26d-10b39925ec87", + "parentUUID": "d40c3da4-2078-443c-aa77-3bb4a520ffd8", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "a7bac0b0-8f6f-4948-8c58-4410244d08ab", + "title": "Enable the Webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the Webservice\"", + "fullTitle": "WS - Stores : CRUD Enable the Webservice \"before all\" hook in \"Enable the Webservice\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4980de4a-7f47-4f3f-814f-7e997fdb1de2", + "parentUUID": "a7bac0b0-8f6f-4948-8c58-4410244d08ab", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the Webservice\"", + "fullTitle": "WS - Stores : CRUD Enable the Webservice \"after all\" hook in \"Enable the Webservice\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d62f3295-caf3-4e93-88c5-cb3b8f3adfdc", + "parentUUID": "a7bac0b0-8f6f-4948-8c58-4410244d08ab", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Stores : CRUD Enable the Webservice should login in BO", + "timedOut": false, + "duration": 1707, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "92d3e81f-884f-46e1-af4b-31d34afbfbb1", + "parentUUID": "a7bac0b0-8f6f-4948-8c58-4410244d08ab", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Stores : CRUD Enable the Webservice should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4836, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_preTest_1_goToAdvParametersWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvParametersWebservice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46b7263e-a5ce-445c-802a-3ba8213c0de5", + "parentUUID": "a7bac0b0-8f6f-4948-8c58-4410244d08ab", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the webservice", + "fullTitle": "WS - Stores : CRUD Enable the Webservice should enable the webservice", + "timedOut": false, + "duration": 363, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_preTest_1_setWebserviceStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWebserviceStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setWebserviceStatus(page, status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(webservice_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "77b9831b-c4bc-470c-90cc-95341558ea28", + "parentUUID": "a7bac0b0-8f6f-4948-8c58-4410244d08ab", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "92d3e81f-884f-46e1-af4b-31d34afbfbb1", + "46b7263e-a5ce-445c-802a-3ba8213c0de5", + "77b9831b-c4bc-470c-90cc-95341558ea28" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6906, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5baa5e62-bca3-42f9-8fe0-a7d04911d13e", + "title": "Add a new webservice key named \"Webservice Key - Stores\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Add a new webservice key named \"Webservice Key - Stores\"\"", + "fullTitle": "WS - Stores : CRUD Add a new webservice key named \"Webservice Key - Stores\" \"before all\" hook in \"Add a new webservice key named \"Webservice Key - Stores\"\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fcc41ad0-6c92-4b01-ab32-8c79a5e53a7a", + "parentUUID": "5baa5e62-bca3-42f9-8fe0-a7d04911d13e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Add a new webservice key named \"Webservice Key - Stores\"\"", + "fullTitle": "WS - Stores : CRUD Add a new webservice key named \"Webservice Key - Stores\" \"after all\" hook in \"Add a new webservice key named \"Webservice Key - Stores\"\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2f300615-5171-46de-a208-0c00436b6f6a", + "parentUUID": "5baa5e62-bca3-42f9-8fe0-a7d04911d13e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Stores : CRUD Add a new webservice key named \"Webservice Key - Stores\" should login in BO", + "timedOut": false, + "duration": 1723, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "85754394-6852-4988-9cfa-2a4d21c82467", + "parentUUID": "5baa5e62-bca3-42f9-8fe0-a7d04911d13e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Stores : CRUD Add a new webservice key named \"Webservice Key - Stores\" should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_preTest_2_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a1d57777-7c1a-4a73-888f-b2deb7015e1d", + "parentUUID": "5baa5e62-bca3-42f9-8fe0-a7d04911d13e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "WS - Stores : CRUD Add a new webservice key named \"Webservice Key - Stores\" should reset all filters and get number of webservices", + "timedOut": false, + "duration": 2006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_preTest_2_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "07ea07a1-f0b3-45ae-b473-40ccda1f5cc3", + "parentUUID": "5baa5e62-bca3-42f9-8fe0-a7d04911d13e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add new webservice key page", + "fullTitle": "WS - Stores : CRUD Add a new webservice key named \"Webservice Key - Stores\" should go to add new webservice key page", + "timedOut": false, + "duration": 886, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_preTest_2_goToAddNewWebserviceKeyPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAddNewWebserviceKeyPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.goToAddNewWebserviceKeyPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "539f92a6-ae0c-4de9-80e3-06468337f0e0", + "parentUUID": "5baa5e62-bca3-42f9-8fe0-a7d04911d13e", + "isHook": false, + "skipped": false + }, + { + "title": "should create webservice key and check result", + "fullTitle": "WS - Stores : CRUD Add a new webservice key named \"Webservice Key - Stores\" should create webservice key and check result", + "timedOut": false, + "duration": 1061, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_preTest_2_createWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, numberOfWebserviceKeysAfterCreation;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditWebservice(page, webserviceData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [4 /*yield*/, webservice_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfWebserviceKeysAfterCreation = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeysAfterCreation).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3d2ffc1-2fde-40a2-ad91-f1b8594c90de", + "parentUUID": "5baa5e62-bca3-42f9-8fe0-a7d04911d13e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "85754394-6852-4988-9cfa-2a4d21c82467", + "a1d57777-7c1a-4a73-888f-b2deb7015e1d", + "07ea07a1-f0b3-45ae-b473-40ccda1f5cc3", + "539f92a6-ae0c-4de9-80e3-06468337f0e0", + "c3d2ffc1-2fde-40a2-ad91-f1b8594c90de" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10525, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "49885408-1353-4c39-91af-b315e0d1b375", + "title": "Stores : CRUD", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "b24c0ea7-9814-4c87-926a-2c9b380f67d0", + "title": "Fetch the Webservice Key", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Fetch the Webservice Key should login in BO", + "timedOut": false, + "duration": 1724, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "319174e2-c13f-4907-a273-f0d541587da5", + "parentUUID": "b24c0ea7-9814-4c87-926a-2c9b380f67d0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Fetch the Webservice Key should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4851, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "feccda39-e921-4903-b13c-2ea0281615a8", + "parentUUID": "b24c0ea7-9814-4c87-926a-2c9b380f67d0", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by key description", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Fetch the Webservice Key should filter list by key description", + "timedOut": false, + "duration": 2963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var description;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', wsKeyDescription)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 4:\n description = _a.sent();\n (0, chai_1.expect)(description).to.contains(wsKeyDescription);\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'key')];\n case 5:\n wsKey = _a.sent();\n authorization = \"Basic \".concat(Buffer.from(\"\".concat(wsKey, \":\")).toString('base64'));\n (0, chai_1.expect)(wsKey).to.not.have.lengthOf(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32735834-dedf-459c-aa8f-312ed3d4fad0", + "parentUUID": "b24c0ea7-9814-4c87-926a-2c9b380f67d0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "319174e2-c13f-4907-a273-f0d541587da5", + "feccda39-e921-4903-b13c-2ea0281615a8", + "32735834-dedf-459c-aa8f-312ed3d4fad0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9538, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "73c5b9e4-2420-42b0-990e-ffffdd484dcb", + "title": "Endpoint : api/stores - Schema : Blank ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Blank should check response status", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestStoreBlankStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestStoreBlankStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, storeWS_1.default.getBlank(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9aba40a-7517-419a-9aa5-f1bc232e95c2", + "parentUUID": "73c5b9e4-2420-42b0-990e-ffffdd484dcb", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the blank XML can be parsed", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Blank should check that the blank XML can be parsed", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestBlankValid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isValidXML;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankValid', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n isValidXML = xml_1.default.isValid(xmlResponse);\n (0, chai_1.expect)(isValidXML).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "034125ea-d93a-4a01-a31a-a60ea4e4a9a9", + "parentUUID": "73c5b9e4-2420-42b0-990e-ffffdd484dcb", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Blank should check response root node", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestStoreBlankRootNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestStoreBlankRootNode', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(storeXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ec5a37c9-3b94-4b7f-980c-201cd7eba3d4", + "parentUUID": "73c5b9e4-2420-42b0-990e-ffffdd484dcb", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Blank should check number of node under prestashop", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestBlankChildNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankChildNode', baseContext)];\n case 1:\n _a.sent();\n rootNodes = storeXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('store');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c8034c9-6655-4b4d-b0a2-1ba3844af7ba", + "parentUUID": "73c5b9e4-2420-42b0-990e-ffffdd484dcb", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and has empty values", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Blank should check each node name, attributes and has empty values", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestBlankChildNodes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nodes, c, node, nodeAttributes, isEmptyNode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestBlankChildNodes', baseContext)];\n case 1:\n _a.sent();\n nodes = storeXml_1.default.getStoreNodes(xmlResponse);\n (0, chai_1.expect)(nodes.length).to.be.gt(0);\n for (c = 0; c < nodes.length; c++) {\n node = nodes[c];\n nodeAttributes = node.attributes;\n (0, chai_1.expect)(nodeAttributes.length).to.be.eq(0);\n isEmptyNode = xml_1.default.isEmpty(node);\n (0, chai_1.expect)(isEmptyNode, \"The node \".concat(node.nodeName, \" is not empty\")).to.eq(true);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7e5e760-4519-4261-ba37-1b954a4a3d9d", + "parentUUID": "73c5b9e4-2420-42b0-990e-ffffdd484dcb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a9aba40a-7517-419a-9aa5-f1bc232e95c2", + "034125ea-d93a-4a01-a31a-a60ea4e4a9a9", + "ec5a37c9-3b94-4b7f-980c-201cd7eba3d4", + "6c8034c9-6655-4b4d-b0a2-1ba3844af7ba", + "b7e5e760-4519-4261-ba37-1b954a4a3d9d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e70d52cb-6c2c-4bc9-ad9c-7f208780d9e2", + "title": "Endpoint : api/stores - Schema : Synopsis ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Synopsis should check response status", + "timedOut": false, + "duration": 24, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestSynopsisStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, storeWS_1.default.getSynopsis(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6ea8fff-624b-4bc2-bacc-317216197da4", + "parentUUID": "e70d52cb-6c2c-4bc9-ad9c-7f208780d9e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the synopsis XML can be parsed", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Synopsis should check that the synopsis XML can be parsed", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestSynopsisValid\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isValidXML;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisValid', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n isValidXML = xml_1.default.isValid(xmlResponse);\n (0, chai_1.expect)(isValidXML).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40518d51-5df8-48be-87fc-1009efcc119e", + "parentUUID": "e70d52cb-6c2c-4bc9-ad9c-7f208780d9e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Synopsis should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestSynopsisRootNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisRootNode', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(storeXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d8794b7-4cec-4251-88d3-76a3f6d0f2a7", + "parentUUID": "e70d52cb-6c2c-4bc9-ad9c-7f208780d9e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Synopsis should check number of node under prestashop", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestSynopsisChildNode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisChildNode', baseContext)];\n case 1:\n _a.sent();\n rootNodes = storeXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('store');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26223a1b-3f2f-41a8-9168-6d0f85c7d0ad", + "parentUUID": "e70d52cb-6c2c-4bc9-ad9c-7f208780d9e2", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and has empty values", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Schema : Synopsis should check each node name, attributes and has empty values", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestSynopsisChildNodes\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var nodes, c, node, nodeAttributes, isEmptyNode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestSynopsisChildNodes', baseContext)];\n case 1:\n _a.sent();\n nodes = storeXml_1.default.getStoreNodes(xmlResponse);\n (0, chai_1.expect)(nodes.length).to.be.gt(0);\n for (c = 0; c < nodes.length; c++) {\n node = nodes[c];\n nodeAttributes = node.attributes;\n (0, chai_1.expect)(nodeAttributes.length).to.be.gte(1);\n // Attribute : format\n if (node.nodeName !== 'postcode') {\n (0, chai_1.expect)(nodeAttributes[nodeAttributes.length - 1].nodeName).to.be.eq('format');\n }\n isEmptyNode = xml_1.default.isEmpty(node);\n (0, chai_1.expect)(isEmptyNode, \"The node \".concat(node.nodeName, \" is not empty\")).to.eq(true);\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "685f35ec-58d7-40b6-90c6-1dc9a851295c", + "parentUUID": "e70d52cb-6c2c-4bc9-ad9c-7f208780d9e2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e6ea8fff-624b-4bc2-bacc-317216197da4", + "40518d51-5df8-48be-87fc-1009efcc119e", + "4d8794b7-4cec-4251-88d3-76a3f6d0f2a7", + "26223a1b-3f2f-41a8-9168-6d0f85c7d0ad", + "685f35ec-58d7-40b6-90c6-1dc9a851295c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f6874f0c-66c4-476c-bf3c-d00e26f46d4e", + "title": "Endpoint : api/stores - Method : GET ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : GET should check response status", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, storeWS_1.default.getAll(apiContext, authorization)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8193260e-5aa8-46a5-a358-20a44ae0e961", + "parentUUID": "f6874f0c-66c4-476c-bf3c-d00e26f46d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : GET should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(storeXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0c84080b-8d0a-4c17-be4f-3f4b0e02bf13", + "parentUUID": "f6874f0c-66c4-476c-bf3c-d00e26f46d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : GET should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = storeXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('stores');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "961f1f8f-9c21-43e8-975a-ce1117a58447", + "parentUUID": "f6874f0c-66c4-476c-bf3c-d00e26f46d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under stores node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : GET should check number of nodes under stores node", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n storesNode = storeXml_1.default.getAllStores(xmlResponse);\n (0, chai_1.expect)(storesNode.length).to.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "299ca827-21a3-4d78-b812-c848e34d4167", + "parentUUID": "f6874f0c-66c4-476c-bf3c-d00e26f46d4e", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node name, attributes and xlink:href", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : GET should check each node name, attributes and xlink:href", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetCheckAll1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var i, storeNode, storeNodeAttributes, storeNodeAttributeId;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetCheckAll1', baseContext)];\n case 1:\n _a.sent();\n for (i = 0; i < storesNode.length; i++) {\n storeNode = storesNode[i];\n (0, chai_1.expect)(storeNode.nodeName).to.be.eq('store');\n storeNodeAttributes = storeNode.attributes;\n (0, chai_1.expect)(storeNodeAttributes.length).to.be.eq(2);\n // Attribute : id\n (0, chai_1.expect)(storeNodeAttributes[0].nodeName).to.be.eq('id');\n storeNodeAttributeId = storeNodeAttributes[0].nodeValue;\n (0, chai_1.expect)(storeNodeAttributeId).to.be.eq(parseInt(storeNodeAttributeId, 10).toString());\n // Attribute : xlink:href\n (0, chai_1.expect)(storeNodeAttributes[1].nodeName).to.be.eq('xlink:href');\n (0, chai_1.expect)(storeNodeAttributes[1].nodeValue).to.be.a('string');\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29a9c229-3c85-4c76-a00f-24ff9476649d", + "parentUUID": "f6874f0c-66c4-476c-bf3c-d00e26f46d4e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8193260e-5aa8-46a5-a358-20a44ae0e961", + "0c84080b-8d0a-4c17-be4f-3f4b0e02bf13", + "961f1f8f-9c21-43e8-975a-ce1117a58447", + "299ca827-21a3-4d78-b812-c848e34d4167", + "29a9c229-3c85-4c76-a00f-24ff9476649d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 24, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f69519c5-e65b-4d44-9f32-e7f708121058", + "title": "Endpoint : api/stores - Method : POST ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "87e84983-417e-4a9a-a44b-affc1aedf1a4", + "title": "Endpoint : api/stores - Method : POST - Add Store ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Add Store should check response status", + "timedOut": false, + "duration": 26, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestPostStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostStatus1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, storeWS_1.default.add(apiContext, authorization, xmlCreate)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(201);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10924b2c-63e5-4428-9a93-8195001465a6", + "parentUUID": "87e84983-417e-4a9a-a44b-affc1aedf1a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Add Store should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestPostRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(storeXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f0118a2-ddb3-4fe1-976f-5feea63c4f6a", + "parentUUID": "87e84983-417e-4a9a-a44b-affc1aedf1a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Add Store should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestPostNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = storeXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('store');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ded5194-a180-49a3-ac72-706f6ae4d534", + "parentUUID": "87e84983-417e-4a9a-a44b-affc1aedf1a4", + "isHook": false, + "skipped": false + }, + { + "title": "should check id of the store", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Add Store should check id of the store", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestPostCheckId1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPostCheckId1', baseContext)];\n case 1:\n _a.sent();\n // Attribute : id\n storeNodeID = storeXml_1.default.getEltTextContent(xmlResponse, 'id');\n (0, chai_1.expect)(storeNodeID).to.be.a('string');\n (0, chai_1.expect)(storeNodeID).to.be.eq(parseInt(storeNodeID, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "803683bf-e07e-4549-88ce-0a92e4e5de93", + "parentUUID": "87e84983-417e-4a9a-a44b-affc1aedf1a4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "10924b2c-63e5-4428-9a93-8195001465a6", + "6f0118a2-ddb3-4fe1-976f-5feea63c4f6a", + "7ded5194-a180-49a3-ac72-706f6ae4d534", + "803683bf-e07e-4549-88ce-0a92e4e5de93" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 29, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "63e0f348-6892-4557-b08a-134486a977df", + "title": "Endpoint : api/stores/{id} - Method : POST - Check with WS ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores/{id} - Method : POST - Check with WS should check response status", + "timedOut": false, + "duration": 21, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetIDStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, storeWS_1.default.getById(apiContext, authorization, storeNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "826f1c8b-1ba0-4874-bde3-f4b0d51f6c83", + "parentUUID": "63e0f348-6892-4557-b08a-134486a977df", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores/{id} - Method : POST - Check with WS should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetIDRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(storeXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fc82a37-3b2a-4353-8724-640cc48a1bf3", + "parentUUID": "63e0f348-6892-4557-b08a-134486a977df", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores/{id} - Method : POST - Check with WS should check number of node under prestashop", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetIDNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = storeXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('store');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddcda24b-d391-4254-8810-24706411f404", + "parentUUID": "63e0f348-6892-4557-b08a-134486a977df", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under stores node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores/{id} - Method : POST - Check with WS should check number of nodes under stores node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetIDNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n storesNodes = storeXml_1.default.getStoreNodes(xmlResponse);\n (0, chai_1.expect)(storesNodes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a46ab21-abe7-49d0-b30f-d6a4ca34a272", + "parentUUID": "63e0f348-6892-4557-b08a-134486a977df", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node id, name ...", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores/{id} - Method : POST - Check with WS should check each node id, name ...", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetIDCheckAll\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var o, oNode, objectNodeValueEN, createNodeValueEN, objectNodeValueFR, createNodeValueFR, objectNodeValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetIDCheckAll', baseContext)];\n case 1:\n _a.sent();\n // Check nodes are equal to them done in Create\n for (o = 0; o < storesNodes.length; o++) {\n oNode = storesNodes[o];\n if (oNode.nodeName === 'id') {\n (0, chai_1.expect)(oNode.textContent, \"node name: \".concat(oNode.nodeName)).to.be.eq(storeNodeID);\n }\n else if (oNode.nodeName === 'name' || oNode.nodeName === 'hours' || oNode.nodeName === 'address1'\n || oNode.nodeName === 'address2' || oNode.nodeName === 'note') {\n objectNodeValueEN = storeXml_1.default.getLangEltTextContent(xmlResponse, oNode.nodeName, '1');\n createNodeValueEN = storeXml_1.default.getLangEltTextContent(xmlCreate, oNode.nodeName, '1');\n (0, chai_1.expect)(objectNodeValueEN, \"node name: \".concat(oNode.nodeName)).to.be.eq(createNodeValueEN);\n objectNodeValueFR = storeXml_1.default.getLangEltTextContent(xmlResponse, oNode.nodeName, '2');\n createNodeValueFR = storeXml_1.default.getLangEltTextContent(xmlCreate, oNode.nodeName, '2');\n (0, chai_1.expect)(objectNodeValueFR, \"node name: \".concat(oNode.nodeName)).to.be.eq(createNodeValueFR);\n }\n else if (oNode.nodeName !== 'date_add' && oNode.nodeName !== 'date_upd') {\n objectNodeValue = storeXml_1.default.getEltTextContent(xmlCreate, oNode.nodeName);\n (0, chai_1.expect)(objectNodeValue).to.be.a('string');\n (0, chai_1.expect)(oNode.textContent, \"node name: \".concat(oNode.nodeName)).to.be.eq(objectNodeValue);\n }\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ccabab35-7688-43e8-b773-a34bbfd4b2a9", + "parentUUID": "63e0f348-6892-4557-b08a-134486a977df", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "826f1c8b-1ba0-4874-bde3-f4b0d51f6c83", + "7fc82a37-3b2a-4353-8724-640cc48a1bf3", + "ddcda24b-d391-4254-8810-24706411f404", + "4a46ab21-abe7-49d0-b30f-d6a4ca34a272", + "ccabab35-7688-43e8-b773-a34bbfd4b2a9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 31, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "title": "Endpoint : api/stores - Method : POST - Check On BO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Contact' page", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should go to 'Shop Parameters > Contact' page", + "timedOut": false, + "duration": 4584, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_goToLocationsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocationsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.contactLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, contact_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, contact_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(contact_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f973bf31-7c62-4c3d-b40d-7999b69a630f", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' page", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should go to 'Stores' page", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_goToStoresPagePost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoresPagePost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4820568d-e13b-464f-b046-d01844d6689c", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should filter store by ID", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should filter store by ID", + "timedOut": false, + "duration": 997, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_filterToUpdateAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterPost', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'id_store', storeNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.eq(1);\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'id_store')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(storeNodeID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "99fac882-a4ea-4cbc-a5a4-a923b4c33cde", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit store page", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should go to edit store page", + "timedOut": false, + "duration": 924, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_goToEditStorePageAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditStorePageAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.gotoEditStorePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e04c5121-c1f9-4b99-bf46-35e116ef5695", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's name language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's name language 1", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreNameLang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueName1, valueName1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreNameLang1', baseContext)];\n case 1:\n _a.sent();\n xmlValueName1 = storeXml_1.default.getLangEltTextContent(xmlCreate, 'name', '1');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'name', '1')];\n case 2:\n valueName1 = _a.sent();\n (0, chai_1.expect)(valueName1).to.be.eq(xmlValueName1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d32da121-3aa6-4434-89d9-2e91ee17a648", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's name language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's name language 2", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreNameLang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueName2, valueName2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreNameLang2', baseContext)];\n case 1:\n _a.sent();\n xmlValueName2 = storeXml_1.default.getLangEltTextContent(xmlCreate, 'name', '2');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'name', '2')];\n case 2:\n valueName2 = _a.sent();\n (0, chai_1.expect)(valueName2).to.be.eq(xmlValueName2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb19003b-3d07-44fe-b10b-82bc1ad8273c", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's address 1 language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's address 1 language 1", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreAddress1Lang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueAddress, valueAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreAddress1Lang1', baseContext)];\n case 1:\n _a.sent();\n xmlValueAddress = storeXml_1.default.getLangEltTextContent(xmlCreate, 'address1', '1');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'address1', '1')];\n case 2:\n valueAddress = _a.sent();\n (0, chai_1.expect)(valueAddress).to.be.eq(xmlValueAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e9feaa4-fcc7-4766-b3ec-33df5e8ce7ac", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's address 1 language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's address 1 language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreAddress1Lang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueAddress, valueAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreAddress1Lang2', baseContext)];\n case 1:\n _a.sent();\n xmlValueAddress = storeXml_1.default.getLangEltTextContent(xmlCreate, 'address1', '2');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'address1', '2')];\n case 2:\n valueAddress = _a.sent();\n (0, chai_1.expect)(valueAddress).to.be.eq(xmlValueAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8469d1e-c0fb-4bd1-a9bb-4b04368cafb9", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's address 2 language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's address 2 language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreAddress2Lang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueAddress, valueAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreAddress2Lang1', baseContext)];\n case 1:\n _a.sent();\n xmlValueAddress = storeXml_1.default.getLangEltTextContent(xmlCreate, 'address2', '1');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'address2', '1')];\n case 2:\n valueAddress = _a.sent();\n (0, chai_1.expect)(valueAddress).to.be.eq(xmlValueAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0b4f094e-f2ae-4502-a27a-78c6ce733338", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's address 2 language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's address 2 language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreAddress2Lang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueAddress, valueAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreAddress2Lang2', baseContext)];\n case 1:\n _a.sent();\n xmlValueAddress = storeXml_1.default.getLangEltTextContent(xmlCreate, 'address2', '2');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'address2', '2')];\n case 2:\n valueAddress = _a.sent();\n (0, chai_1.expect)(valueAddress).to.be.eq(xmlValueAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c2691b0-1408-4602-9d5e-50fa2d21241f", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's postcode", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's postcode", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStorePostcode\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValuePostcode, valuePostcode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStorePostcode', baseContext)];\n case 1:\n _a.sent();\n xmlValuePostcode = storeXml_1.default.getEltTextContent(xmlCreate, 'postcode');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'postcode')];\n case 2:\n valuePostcode = _a.sent();\n (0, chai_1.expect)(valuePostcode).to.be.eq(xmlValuePostcode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63df81ae-9a16-4f28-812d-c536303894e5", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's city", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's city", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreCity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueCity, valueCity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreCity', baseContext)];\n case 1:\n _a.sent();\n xmlValueCity = storeXml_1.default.getEltTextContent(xmlCreate, 'city');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'city')];\n case 2:\n valueCity = _a.sent();\n (0, chai_1.expect)(valueCity).to.be.eq(xmlValueCity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5ebee5f-6817-48e7-8232-82f25d0848df", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's country", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's country", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreCountry\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIDCountry, valueIDCountry;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreCountry', baseContext)];\n case 1:\n _a.sent();\n xmlValueIDCountry = storeXml_1.default.getEltTextContent(xmlCreate, 'id_country');\n return [4 /*yield*/, add_1.default.getSelectValue(page, 'id_country')];\n case 2:\n valueIDCountry = _a.sent();\n (0, chai_1.expect)(valueIDCountry).to.be.eq(xmlValueIDCountry);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21051110-1b0c-470b-849c-8408c11c2b6b", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's state", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's state", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreState\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIDState, valueIDState;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreState', baseContext)];\n case 1:\n _a.sent();\n xmlValueIDState = storeXml_1.default.getEltTextContent(xmlCreate, 'id_state');\n return [4 /*yield*/, add_1.default.getSelectValue(page, 'id_state')];\n case 2:\n valueIDState = _a.sent();\n (0, chai_1.expect)(valueIDState).to.be.eq(xmlValueIDState);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f08ffc0b-de69-4215-9b49-3fea2835c104", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's latitude", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's latitude", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreLatitude\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueLatitude, valueLatitude;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreLatitude', baseContext)];\n case 1:\n _a.sent();\n xmlValueLatitude = storeXml_1.default.getEltTextContent(xmlCreate, 'latitude');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'latitude')];\n case 2:\n valueLatitude = _a.sent();\n (0, chai_1.expect)(valueLatitude).to.be.eq(xmlValueLatitude);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efdc96bc-4207-4c4e-a6c6-e08a264fb0fe", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's longitude", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's longitude", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreLongitude\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueLongitude, valueLongitude;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreLongitude', baseContext)];\n case 1:\n _a.sent();\n xmlValueLongitude = storeXml_1.default.getEltTextContent(xmlCreate, 'longitude');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'longitude')];\n case 2:\n valueLongitude = _a.sent();\n (0, chai_1.expect)(valueLongitude).to.be.eq(xmlValueLongitude);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29e44b3f-aebe-4d32-b511-6601e0ce9331", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's phone", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's phone", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStorePhone\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValuePhone, valuePhone;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStorePhone', baseContext)];\n case 1:\n _a.sent();\n xmlValuePhone = storeXml_1.default.getEltTextContent(xmlCreate, 'phone');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'phone')];\n case 2:\n valuePhone = _a.sent();\n (0, chai_1.expect)(valuePhone).to.be.eq(xmlValuePhone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5f92743-1bcf-4693-a735-4de1658da505", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's fax", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's fax", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreFax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueFax, valueFax;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreFax', baseContext)];\n case 1:\n _a.sent();\n xmlValueFax = storeXml_1.default.getEltTextContent(xmlCreate, 'fax');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'fax')];\n case 2:\n valueFax = _a.sent();\n (0, chai_1.expect)(valueFax).to.be.eq(xmlValueFax);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e191f29-e9ae-41e6-9dea-6888a1246cdc", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's email", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's email", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueFax, valueFax;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreEmail', baseContext)];\n case 1:\n _a.sent();\n xmlValueFax = storeXml_1.default.getEltTextContent(xmlCreate, 'email');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'email')];\n case 2:\n valueFax = _a.sent();\n (0, chai_1.expect)(valueFax).to.be.eq(xmlValueFax);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09a823b4-6944-4f52-9cf2-6d6cc96d9eed", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store is active", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store is active", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreActive\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueActive, active;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreActive', baseContext)];\n case 1:\n _a.sent();\n xmlValueActive = storeXml_1.default.getEltTextContent(xmlCreate, 'active');\n return [4 /*yield*/, add_1.default.isActive(page, 'on')];\n case 2:\n active = _a.sent();\n (0, chai_1.expect)(active).to.be.eq(xmlValueActive !== '0');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c827e509-5d35-4409-931c-0a0c315b1173", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's monday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's monday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursmondayLang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9c0e32b-0782-493c-b362-ff4c1fbfd4b5", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's monday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's monday hours language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursmondayLang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6624ae0-eea5-4a89-b158-9a47ab4bdf69", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's tuesday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's tuesday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourstuesdayLang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e23d3c12-e602-4977-9a6d-ffff42c48ab3", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's tuesday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's tuesday hours language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourstuesdayLang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70e884a3-685e-4cbe-ba93-27c926ed11d0", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's wednesday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's wednesday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourswednesdayLang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "10f5431d-a830-4dad-9708-1501cc3e6eec", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's wednesday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's wednesday hours language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourswednesdayLang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08944495-e12b-4e5a-a7e1-0565be3a7f0b", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's thursday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's thursday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursthursdayLang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5787467-b0f1-4fdb-9c63-f26df6b6f173", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's thursday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's thursday hours language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursthursdayLang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8173f861-a78e-46e2-9481-4cf4e43baa5a", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's friday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's friday hours language 1", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursfridayLang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6ef344bb-e825-4a4e-a885-f3201424a606", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's friday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's friday hours language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursfridayLang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "683dec24-a7de-4bd1-9017-775411a31071", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's saturday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's saturday hours language 1", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourssaturdayLang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a05ee28-5851-4e5b-9f45-93083f5f2f41", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's saturday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's saturday hours language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourssaturdayLang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75814be6-fc11-4e6d-88b0-825e65e1168d", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's sunday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's sunday hours language 1", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourssundayLang1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d0151d4-ff64-439f-a1a0-342c9536c1e4", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's sunday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should check store's sunday hours language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourssundayLang2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\"), baseContext)];\n case 1:\n _a.sent();\n dayHours = hoursArrLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc78a40b-a7f9-4209-86de-a58133d22d7a", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' page", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should go to 'Stores' page", + "timedOut": false, + "duration": 839, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_goToStoresPagePostReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoresPagePostReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d470bed-cb95-40c9-8b21-018f9446ce1f", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : POST Endpoint : api/stores - Method : POST - Check On BO should reset all filters", + "timedOut": false, + "duration": 2915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_resetFilterFirstAfterPost\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStores;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirstAfterPost', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStores = _a.sent();\n (0, chai_1.expect)(numberOfStores).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d589a343-579d-4cfe-9c93-96e8442ab0cd", + "parentUUID": "d6ccebe8-8d45-4df1-ac3e-1386fde4b1e7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f973bf31-7c62-4c3d-b40d-7999b69a630f", + "4820568d-e13b-464f-b046-d01844d6689c", + "99fac882-a4ea-4cbc-a5a4-a923b4c33cde", + "e04c5121-c1f9-4b99-bf46-35e116ef5695", + "d32da121-3aa6-4434-89d9-2e91ee17a648", + "eb19003b-3d07-44fe-b10b-82bc1ad8273c", + "4e9feaa4-fcc7-4766-b3ec-33df5e8ce7ac", + "f8469d1e-c0fb-4bd1-a9bb-4b04368cafb9", + "0b4f094e-f2ae-4502-a27a-78c6ce733338", + "4c2691b0-1408-4602-9d5e-50fa2d21241f", + "63df81ae-9a16-4f28-812d-c536303894e5", + "e5ebee5f-6817-48e7-8232-82f25d0848df", + "21051110-1b0c-470b-849c-8408c11c2b6b", + "f08ffc0b-de69-4215-9b49-3fea2835c104", + "efdc96bc-4207-4c4e-a6c6-e08a264fb0fe", + "29e44b3f-aebe-4d32-b511-6601e0ce9331", + "a5f92743-1bcf-4693-a735-4de1658da505", + "3e191f29-e9ae-41e6-9dea-6888a1246cdc", + "09a823b4-6944-4f52-9cf2-6d6cc96d9eed", + "c827e509-5d35-4409-931c-0a0c315b1173", + "a9c0e32b-0782-493c-b362-ff4c1fbfd4b5", + "e6624ae0-eea5-4a89-b158-9a47ab4bdf69", + "e23d3c12-e602-4977-9a6d-ffff42c48ab3", + "70e884a3-685e-4cbe-ba93-27c926ed11d0", + "10f5431d-a830-4dad-9708-1501cc3e6eec", + "08944495-e12b-4e5a-a7e1-0565be3a7f0b", + "b5787467-b0f1-4fdb-9c63-f26df6b6f173", + "8173f861-a78e-46e2-9481-4cf4e43baa5a", + "6ef344bb-e825-4a4e-a885-f3201424a606", + "683dec24-a7de-4bd1-9017-775411a31071", + "5a05ee28-5851-4e5b-9f45-93083f5f2f41", + "75814be6-fc11-4e6d-88b0-825e65e1168d", + "3d0151d4-ff64-439f-a1a0-342c9536c1e4", + "dc78a40b-a7f9-4209-86de-a58133d22d7a", + "2d470bed-cb95-40c9-8b21-018f9446ce1f", + "d589a343-579d-4cfe-9c93-96e8442ab0cd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11235, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "200650b8-0932-41a3-b097-60d612b7fe0e", + "title": "Endpoint : api/stores - Method : PUT ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "50048451-ab9b-4fde-a8be-8da74a3174af", + "title": "Endpoint : api/stores - Method : PUT - Update Store ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status of api/stores/{id}", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Update Store should check response status of api/stores/{id}", + "timedOut": false, + "duration": 46, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestPutStatus1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutStatus1', baseContext)];\n case 1:\n _a.sent();\n xmlUpdate = (0, store_1.getUpdateStoreXml)(storeNodeID);\n return [4 /*yield*/, storeWS_1.default.update(apiContext, authorization, storeNodeID, xmlUpdate)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2d97e19-3b31-4387-afc0-161d169a54e8", + "parentUUID": "50048451-ab9b-4fde-a8be-8da74a3174af", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Update Store should check response root node", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestPutRootNode1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutRootNode1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(storeXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47279e6e-3a31-414d-8720-3442786ce507", + "parentUUID": "50048451-ab9b-4fde-a8be-8da74a3174af", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Update Store should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestPutNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = storeXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('store');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a3d121a-de7f-412c-a160-847a594c7458", + "parentUUID": "50048451-ab9b-4fde-a8be-8da74a3174af", + "isHook": false, + "skipped": false + }, + { + "title": "should check id of the store", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Update Store should check id of the store", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestPutCheckId1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestPutCheckId1', baseContext)];\n case 1:\n _a.sent();\n // Attribute : id\n storeNodeID = storeXml_1.default.getEltTextContent(xmlResponse, 'id');\n (0, chai_1.expect)(storeNodeID).to.be.a('string');\n (0, chai_1.expect)(storeNodeID).to.be.eq(parseInt(storeNodeID, 10).toString());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3661d3d-2b0b-4b64-ac5e-5b9e91755ddb", + "parentUUID": "50048451-ab9b-4fde-a8be-8da74a3174af", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f2d97e19-3b31-4387-afc0-161d169a54e8", + "47279e6e-3a31-414d-8720-3442786ce507", + "7a3d121a-de7f-412c-a160-847a594c7458", + "f3661d3d-2b0b-4b64-ac5e-5b9e91755ddb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 50, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0e73faf7-d5c7-4ddb-8467-685d251e1fc3", + "title": "Endpoint : api/stores/{id} - Method : PUT - Check with WS ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check response status", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores/{id} - Method : PUT - Check with WS should check response status", + "timedOut": false, + "duration": 23, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetPutStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, storeWS_1.default.getById(apiContext, authorization, storeNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4bc799c6-37f6-4963-ad6e-ae6b0de188c5", + "parentUUID": "0e73faf7-d5c7-4ddb-8467-685d251e1fc3", + "isHook": false, + "skipped": false + }, + { + "title": "should check response root node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores/{id} - Method : PUT - Check with WS should check response root node", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetPutRootNode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutRootNode2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, apiResponse.text()];\n case 2:\n xmlResponse = _a.sent();\n (0, chai_1.expect)(storeXml_1.default.getRootNodeName(xmlResponse)).to.be.eq('prestashop');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cd4ba71-b2f5-4f98-9670-a3257964be3e", + "parentUUID": "0e73faf7-d5c7-4ddb-8467-685d251e1fc3", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of node under prestashop", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores/{id} - Method : PUT - Check with WS should check number of node under prestashop", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetPutNodeNumber1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rootNodes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutNodeNumber1', baseContext)];\n case 1:\n _a.sent();\n rootNodes = storeXml_1.default.getPrestaShopNodes(xmlResponse);\n (0, chai_1.expect)(rootNodes.length).to.be.eq(1);\n (0, chai_1.expect)(rootNodes[0].nodeName).to.be.eq('store');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf60f5bf-8f59-4df6-8759-20fc53b2871f", + "parentUUID": "0e73faf7-d5c7-4ddb-8467-685d251e1fc3", + "isHook": false, + "skipped": false + }, + { + "title": "should check number of nodes under stores node", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores/{id} - Method : PUT - Check with WS should check number of nodes under stores node", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestGetPutNumberOfNodes1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestGetPutNumberOfNodes1', baseContext)];\n case 1:\n _a.sent();\n storesNodes = storeXml_1.default.getStoreNodes(xmlResponse);\n (0, chai_1.expect)(storesNodes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0755b8d3-8cac-4253-a74c-0e0fb6160c33", + "parentUUID": "0e73faf7-d5c7-4ddb-8467-685d251e1fc3", + "isHook": false, + "skipped": false + }, + { + "title": "should check each node id, name ...", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores/{id} - Method : PUT - Check with WS should check each node id, name ...", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestEndpointStoresIdMethodGetAfterPut\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var o, oNode, objectNodeValueEN, createNodeValueEN, objectNodeValueFR, createNodeValueFR, objectNodeValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointStoresIdMethodGetAfterPut', baseContext)];\n case 1:\n _a.sent();\n // Check nodes are equal to them done in Create\n for (o = 0; o < storesNodes.length; o++) {\n oNode = storesNodes[o];\n if (oNode.nodeName === 'id') {\n (0, chai_1.expect)(oNode.textContent, \"node name: \".concat(oNode.nodeName)).to.be.eq(storeNodeID);\n }\n else if (oNode.nodeName === 'name' || oNode.nodeName === 'hours' || oNode.nodeName === 'address1'\n || oNode.nodeName === 'address2' || oNode.nodeName === 'note') {\n objectNodeValueEN = storeXml_1.default.getLangEltTextContent(xmlResponse, oNode.nodeName, '1');\n createNodeValueEN = storeXml_1.default.getLangEltTextContent(xmlUpdate, oNode.nodeName, '1');\n (0, chai_1.expect)(objectNodeValueEN, \"node name: \".concat(oNode.nodeName)).to.be.eq(createNodeValueEN);\n objectNodeValueFR = storeXml_1.default.getLangEltTextContent(xmlResponse, oNode.nodeName, '2');\n createNodeValueFR = storeXml_1.default.getLangEltTextContent(xmlUpdate, oNode.nodeName, '2');\n (0, chai_1.expect)(objectNodeValueFR, \"node name: \".concat(oNode.nodeName)).to.be.eq(createNodeValueFR);\n }\n else if (oNode.nodeName !== 'date_add' && oNode.nodeName !== 'date_upd') {\n objectNodeValue = storeXml_1.default.getEltTextContent(xmlUpdate, oNode.nodeName);\n (0, chai_1.expect)(objectNodeValue).to.be.a('string');\n (0, chai_1.expect)(oNode.textContent, \"node name: \".concat(oNode.nodeName)).to.be.eq(objectNodeValue);\n }\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3ec87ff4-7c3d-453b-8cfb-5cf9d4247858", + "parentUUID": "0e73faf7-d5c7-4ddb-8467-685d251e1fc3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4bc799c6-37f6-4963-ad6e-ae6b0de188c5", + "4cd4ba71-b2f5-4f98-9670-a3257964be3e", + "cf60f5bf-8f59-4df6-8759-20fc53b2871f", + "0755b8d3-8cac-4253-a74c-0e0fb6160c33", + "3ec87ff4-7c3d-453b-8cfb-5cf9d4247858" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "title": "Endpoint : api/stores - Method : PUT - Check On BO ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter store by ID", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should filter store by ID", + "timedOut": false, + "duration": 980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_filterToUpdateAfterPost2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterPost2', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'id_store', storeNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.eq(1);\n return [4 /*yield*/, stores_1.default.getTextColumn(page, 1, 'id_store')];\n case 5:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains(storeNodeID);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c707a9b-df72-40f6-bea7-8eb913a94d84", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit store page", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should go to edit store page", + "timedOut": false, + "duration": 898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_goToEditStorePageAfterPost2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditStorePageAfterPost2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.gotoEditStorePage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitleEdit);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "224c70d9-4b5c-44dd-831a-fb016baf9da0", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's name language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's name language 1", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreNameLang12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueName1, valueName1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreNameLang12', baseContext)];\n case 1:\n _a.sent();\n xmlValueName1 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'name', '1');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'name', '1')];\n case 2:\n valueName1 = _a.sent();\n (0, chai_1.expect)(valueName1).to.be.eq(xmlValueName1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "045acecb-ebfa-467a-b7e0-9b6cf62f9ba6", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's name language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's name language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreNameLang22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueName2, valueName2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreNameLang22', baseContext)];\n case 1:\n _a.sent();\n xmlValueName2 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'name', '2');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'name', '2')];\n case 2:\n valueName2 = _a.sent();\n (0, chai_1.expect)(valueName2).to.be.eq(xmlValueName2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c429878-5427-411e-900a-42c3dcfd0e5e", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's address 1 language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's address 1 language 1", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreAddress1Lang12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueAddress, valueAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreAddress1Lang12', baseContext)];\n case 1:\n _a.sent();\n xmlValueAddress = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'address1', '1');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'address1', '1')];\n case 2:\n valueAddress = _a.sent();\n (0, chai_1.expect)(valueAddress).to.be.eq(xmlValueAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1743793-be9d-4369-aa17-6ea1897714ba", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's address 1 language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's address 1 language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreAddress1Lang22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueAddress, valueAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreAddress1Lang22', baseContext)];\n case 1:\n _a.sent();\n xmlValueAddress = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'address1', '2');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'address1', '2')];\n case 2:\n valueAddress = _a.sent();\n (0, chai_1.expect)(valueAddress).to.be.eq(xmlValueAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1914bf55-60f8-46e1-9550-c7d5c7586994", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's address 2 language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's address 2 language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreAddress1Lang13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueAddress, valueAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreAddress1Lang13', baseContext)];\n case 1:\n _a.sent();\n xmlValueAddress = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'address2', '1');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'address2', '1')];\n case 2:\n valueAddress = _a.sent();\n (0, chai_1.expect)(valueAddress).to.be.eq(xmlValueAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "385981c0-b7e4-43bc-bc8b-5be45ba38e84", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's address 2 language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's address 2 language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreAddress2Lang22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueAddress, valueAddress;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreAddress2Lang22', baseContext)];\n case 1:\n _a.sent();\n xmlValueAddress = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'address2', '2');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'address2', '2')];\n case 2:\n valueAddress = _a.sent();\n (0, chai_1.expect)(valueAddress).to.be.eq(xmlValueAddress);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "98361b41-5a31-4a6b-a40d-91056315d16a", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's postcode", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's postcode", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStorePostcode2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValuePostcode, valuePostcode;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStorePostcode2', baseContext)];\n case 1:\n _a.sent();\n xmlValuePostcode = storeXml_1.default.getEltTextContent(xmlUpdate, 'postcode');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'postcode')];\n case 2:\n valuePostcode = _a.sent();\n (0, chai_1.expect)(valuePostcode).to.be.eq(xmlValuePostcode);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20ed3498-c46f-4a69-a5eb-2728bbab24da", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's city", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's city", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreCity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueCity, valueCity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreCity2', baseContext)];\n case 1:\n _a.sent();\n xmlValueCity = storeXml_1.default.getEltTextContent(xmlUpdate, 'city');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'city')];\n case 2:\n valueCity = _a.sent();\n (0, chai_1.expect)(valueCity).to.be.eq(xmlValueCity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f595981-76a9-4506-b44b-c1be30d65550", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's country", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's country", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreCountry2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIDCountry, valueIDCountry;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreCountry2', baseContext)];\n case 1:\n _a.sent();\n xmlValueIDCountry = storeXml_1.default.getEltTextContent(xmlUpdate, 'id_country');\n return [4 /*yield*/, add_1.default.getSelectValue(page, 'id_country')];\n case 2:\n valueIDCountry = _a.sent();\n (0, chai_1.expect)(valueIDCountry).to.be.eq(xmlValueIDCountry);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c012e0f-6a93-4fb6-8a3e-b0b572c9c614", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's state", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's state", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreState2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueIDState, valueIDState;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreState2', baseContext)];\n case 1:\n _a.sent();\n xmlValueIDState = storeXml_1.default.getEltTextContent(xmlUpdate, 'id_state');\n return [4 /*yield*/, add_1.default.getSelectValue(page, 'id_state')];\n case 2:\n valueIDState = _a.sent();\n (0, chai_1.expect)(valueIDState).to.be.eq(xmlValueIDState);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88a21a14-847f-41c2-bbe5-3604dc12b558", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's latitude", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's latitude", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreLatitude2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueLatitude, valueLatitude;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreLatitude2', baseContext)];\n case 1:\n _a.sent();\n xmlValueLatitude = storeXml_1.default.getEltTextContent(xmlUpdate, 'latitude');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'latitude')];\n case 2:\n valueLatitude = _a.sent();\n (0, chai_1.expect)(valueLatitude).to.be.eq(xmlValueLatitude);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aade16fd-aa73-456c-839a-2131815d69c7", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's longitude", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's longitude", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreLongitude2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueLongitude, valueLongitude;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreLongitude2', baseContext)];\n case 1:\n _a.sent();\n xmlValueLongitude = storeXml_1.default.getEltTextContent(xmlUpdate, 'longitude');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'longitude')];\n case 2:\n valueLongitude = _a.sent();\n (0, chai_1.expect)(valueLongitude).to.be.eq(xmlValueLongitude);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "240932d3-1640-4991-83b0-238b426c4624", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's phone", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's phone", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStorePhone2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValuePhone, valuePhone;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStorePhone2', baseContext)];\n case 1:\n _a.sent();\n xmlValuePhone = storeXml_1.default.getEltTextContent(xmlUpdate, 'phone');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'phone')];\n case 2:\n valuePhone = _a.sent();\n (0, chai_1.expect)(valuePhone).to.be.eq(xmlValuePhone);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c040ea9-da25-4ae3-91b0-4913d030dfea", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's fax", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's fax", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreFax2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueFax, valueFax;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreFax2', baseContext)];\n case 1:\n _a.sent();\n xmlValueFax = storeXml_1.default.getEltTextContent(xmlUpdate, 'fax');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'fax')];\n case 2:\n valueFax = _a.sent();\n (0, chai_1.expect)(valueFax).to.be.eq(xmlValueFax);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e67d64a-7dad-43f8-af75-997f48f29d1c", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's email", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's email", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreEmail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueFax, valueFax;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreEmail2', baseContext)];\n case 1:\n _a.sent();\n xmlValueFax = storeXml_1.default.getEltTextContent(xmlUpdate, 'email');\n return [4 /*yield*/, add_1.default.getInputValue(page, 'email')];\n case 2:\n valueFax = _a.sent();\n (0, chai_1.expect)(valueFax).to.be.eq(xmlValueFax);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cc5d2cc-d5c5-4a27-bf40-74d2a9b7091b", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store is active", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store is active", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreActive2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueActive, active;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkStoreActive2', baseContext)];\n case 1:\n _a.sent();\n xmlValueActive = storeXml_1.default.getEltTextContent(xmlUpdate, 'active');\n return [4 /*yield*/, add_1.default.isActive(page, 'on')];\n case 2:\n active = _a.sent();\n (0, chai_1.expect)(active).to.be.eq((xmlValueActive !== '0'));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "230de75f-e7ad-49a9-9874-e1b6ea729586", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's monday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's monday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursmondayLang10\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang1, hoursArrUpdatedLang1, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang1 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '1');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang1).to.be.a('string');\n hoursArrUpdatedLang1 = xmlValueUpdatedHoursLang1.split(',');\n dayHours = hoursArrUpdatedLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34ccfd44-5dad-4768-b379-c6c056d16ce5", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's monday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's monday hours language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursmondayLang20\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang2, hoursArrUpdatedLang2, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang2 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '2');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang2).to.be.a('string');\n hoursArrUpdatedLang2 = xmlValueUpdatedHoursLang2.split(',');\n dayHours = hoursArrUpdatedLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6191492-c3fb-4013-ab32-82e3e31f367c", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's tuesday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's tuesday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourstuesdayLang11\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang1, hoursArrUpdatedLang1, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang1 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '1');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang1).to.be.a('string');\n hoursArrUpdatedLang1 = xmlValueUpdatedHoursLang1.split(',');\n dayHours = hoursArrUpdatedLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbd5d950-da6b-414a-b305-558a91dc729a", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's tuesday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's tuesday hours language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourstuesdayLang21\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang2, hoursArrUpdatedLang2, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang2 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '2');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang2).to.be.a('string');\n hoursArrUpdatedLang2 = xmlValueUpdatedHoursLang2.split(',');\n dayHours = hoursArrUpdatedLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4edc7c54-208e-4588-b620-f60c612ca4cf", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's wednesday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's wednesday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourswednesdayLang12\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang1, hoursArrUpdatedLang1, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang1 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '1');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang1).to.be.a('string');\n hoursArrUpdatedLang1 = xmlValueUpdatedHoursLang1.split(',');\n dayHours = hoursArrUpdatedLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3afde61-16ab-484f-8ab1-38eae9d43e4a", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's wednesday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's wednesday hours language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourswednesdayLang22\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang2, hoursArrUpdatedLang2, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang2 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '2');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang2).to.be.a('string');\n hoursArrUpdatedLang2 = xmlValueUpdatedHoursLang2.split(',');\n dayHours = hoursArrUpdatedLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32217380-d78e-4ee0-9920-d85215a0330e", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's thursday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's thursday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursthursdayLang13\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang1, hoursArrUpdatedLang1, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang1 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '1');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang1).to.be.a('string');\n hoursArrUpdatedLang1 = xmlValueUpdatedHoursLang1.split(',');\n dayHours = hoursArrUpdatedLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb667b6a-48d9-4f87-8e37-1afb6b40dabf", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's thursday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's thursday hours language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursthursdayLang23\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang2, hoursArrUpdatedLang2, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang2 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '2');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang2).to.be.a('string');\n hoursArrUpdatedLang2 = xmlValueUpdatedHoursLang2.split(',');\n dayHours = hoursArrUpdatedLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9fef251-12f1-4ae3-99dc-d74562cfa6c3", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's friday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's friday hours language 1", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursfridayLang14\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang1, hoursArrUpdatedLang1, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang1 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '1');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang1).to.be.a('string');\n hoursArrUpdatedLang1 = xmlValueUpdatedHoursLang1.split(',');\n dayHours = hoursArrUpdatedLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "33de5395-fe49-4633-8fac-bedcdf218c4e", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's friday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's friday hours language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHoursfridayLang24\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang2, hoursArrUpdatedLang2, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang2 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '2');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang2).to.be.a('string');\n hoursArrUpdatedLang2 = xmlValueUpdatedHoursLang2.split(',');\n dayHours = hoursArrUpdatedLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4a873a3-3b01-4a33-995e-b2bcf0348836", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's saturday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's saturday hours language 1", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourssaturdayLang15\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang1, hoursArrUpdatedLang1, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang1 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '1');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang1).to.be.a('string');\n hoursArrUpdatedLang1 = xmlValueUpdatedHoursLang1.split(',');\n dayHours = hoursArrUpdatedLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61c6072f-3fcf-4073-98f0-071a1740a00b", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's saturday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's saturday hours language 2", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourssaturdayLang25\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang2, hoursArrUpdatedLang2, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang2 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '2');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang2).to.be.a('string');\n hoursArrUpdatedLang2 = xmlValueUpdatedHoursLang2.split(',');\n dayHours = hoursArrUpdatedLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d955816c-921a-42b4-8246-cc38eabb9075", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's sunday hours language 1", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's sunday hours language 1", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourssundayLang16\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang1, hoursArrUpdatedLang1, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang1\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang1 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '1');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang1).to.be.a('string');\n hoursArrUpdatedLang1 = xmlValueUpdatedHoursLang1.split(',');\n dayHours = hoursArrUpdatedLang1[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '1')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6574948c-4f8e-477b-bc48-691a73615784", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should check store's sunday hours language 2", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should check store's sunday hours language 2", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_checkStoreHourssundayLang26\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var xmlValueUpdatedHoursLang2, hoursArrUpdatedLang2, dayHours, expectedDayHours, dayValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkStoreHours\".concat(day, \"Lang2\").concat(index), baseContext)];\n case 1:\n _a.sent();\n xmlValueUpdatedHoursLang2 = storeXml_1.default.getLangEltTextContent(xmlUpdate, 'hours', '2');\n (0, chai_1.expect)(xmlValueUpdatedHoursLang2).to.be.a('string');\n hoursArrUpdatedLang2 = xmlValueUpdatedHoursLang2.split(',');\n dayHours = hoursArrUpdatedLang2[index];\n if (index === 0) {\n expectedDayHours = dayHours.substring(3, dayHours.length - 2);\n }\n else if (index === (week.length - 1)) {\n expectedDayHours = dayHours.substring(2, dayHours.length - 3);\n }\n else {\n expectedDayHours = dayHours.substring(2, dayHours.length - 2);\n }\n return [4 /*yield*/, add_1.default.getInputValue(page, \"\".concat(day), '2')];\n case 2:\n dayValue = _a.sent();\n (0, chai_1.expect)(dayValue).to.be.eq(expectedDayHours);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5d97e30-f89c-4478-a0b8-df059df4b4c4", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Stores' page", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should go to 'Stores' page", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_goToStoresPagePostReset2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoresPagePostReset2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, contact_1.default.goToStoresPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stores_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fff1deff-f43e-4a56-9745-bf6ec7129ba7", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : PUT Endpoint : api/stores - Method : PUT - Check On BO should reset all filters", + "timedOut": false, + "duration": 2931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_resetFilterFirstAfterPost2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStores;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirstAfterPost2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStores = _a.sent();\n (0, chai_1.expect)(numberOfStores).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31c8ba96-c374-4e77-beb8-7d83262d4a9d", + "parentUUID": "d6c12fcd-8075-4977-936a-38804a8cb1ce", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6c707a9b-df72-40f6-bea7-8eb913a94d84", + "224c70d9-4b5c-44dd-831a-fb016baf9da0", + "045acecb-ebfa-467a-b7e0-9b6cf62f9ba6", + "2c429878-5427-411e-900a-42c3dcfd0e5e", + "d1743793-be9d-4369-aa17-6ea1897714ba", + "1914bf55-60f8-46e1-9550-c7d5c7586994", + "385981c0-b7e4-43bc-bc8b-5be45ba38e84", + "98361b41-5a31-4a6b-a40d-91056315d16a", + "20ed3498-c46f-4a69-a5eb-2728bbab24da", + "5f595981-76a9-4506-b44b-c1be30d65550", + "5c012e0f-6a93-4fb6-8a3e-b0b572c9c614", + "88a21a14-847f-41c2-bbe5-3604dc12b558", + "aade16fd-aa73-456c-839a-2131815d69c7", + "240932d3-1640-4991-83b0-238b426c4624", + "1c040ea9-da25-4ae3-91b0-4913d030dfea", + "9e67d64a-7dad-43f8-af75-997f48f29d1c", + "5cc5d2cc-d5c5-4a27-bf40-74d2a9b7091b", + "230de75f-e7ad-49a9-9874-e1b6ea729586", + "34ccfd44-5dad-4768-b379-c6c056d16ce5", + "e6191492-c3fb-4013-ab32-82e3e31f367c", + "dbd5d950-da6b-414a-b305-558a91dc729a", + "4edc7c54-208e-4588-b620-f60c612ca4cf", + "c3afde61-16ab-484f-8ab1-38eae9d43e4a", + "32217380-d78e-4ee0-9920-d85215a0330e", + "cb667b6a-48d9-4f87-8e37-1afb6b40dabf", + "a9fef251-12f1-4ae3-99dc-d74562cfa6c3", + "33de5395-fe49-4633-8fac-bedcdf218c4e", + "a4a873a3-3b01-4a33-995e-b2bcf0348836", + "61c6072f-3fcf-4073-98f0-071a1740a00b", + "d955816c-921a-42b4-8246-cc38eabb9075", + "6574948c-4f8e-477b-bc48-691a73615784", + "c5d97e30-f89c-4478-a0b8-df059df4b4c4", + "fff1deff-f43e-4a56-9745-bf6ec7129ba7", + "31c8ba96-c374-4e77-beb8-7d83262d4a9d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5755, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6cb98c51-4cae-4b12-8c86-c6a97285ebcd", + "title": "Endpoint : api/stores - Method : DELETE ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should request the endpoint api/stores/{id} with method DELETE", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : DELETE should request the endpoint api/stores/{id} with method DELETE", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestEndpointStoresMethodDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointStoresMethodDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, storeWS_1.default.delete(apiContext, authorization, storeNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(200);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "376097e9-044a-4b81-9e48-9e6c13d5ef1a", + "parentUUID": "6cb98c51-4cae-4b12-8c86-c6a97285ebcd", + "isHook": false, + "skipped": false + }, + { + "title": "should request the endpoint api/stores/{id} with method GET", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : DELETE should request the endpoint api/stores/{id} with method GET", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_requestEndpointStoresIdMethodGetAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var apiResponse;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'requestEndpointStoresIdMethodGetAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, storeWS_1.default.getById(apiContext, authorization, storeNodeID)];\n case 2:\n apiResponse = _a.sent();\n (0, chai_1.expect)(apiResponse.status()).to.eq(404);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c59793f1-e969-4c80-8212-c8434921409f", + "parentUUID": "6cb98c51-4cae-4b12-8c86-c6a97285ebcd", + "isHook": false, + "skipped": false + }, + { + "title": "should filter store by ID", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : DELETE should filter store by ID", + "timedOut": false, + "duration": 947, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_filterToUpdateAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStoresAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterToUpdateAfterDelete', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, stores_1.default.resetFilter(page)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, stores_1.default.filterTable(page, 'input', 'id_store', storeNodeID)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stores_1.default.getNumberOfElementInGrid(page)];\n case 4:\n numberOfStoresAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfStoresAfterFilter).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c2892e3-0c30-4614-8c7c-4a10ef93025f", + "parentUUID": "6cb98c51-4cae-4b12-8c86-c6a97285ebcd", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "WS - Stores : CRUD Stores : CRUD Endpoint : api/stores - Method : DELETE should reset all filters", + "timedOut": false, + "duration": 2923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_resetFilterFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfStores;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stores_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfStores = _a.sent();\n (0, chai_1.expect)(numberOfStores).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0aea12be-ed78-4fb4-af4a-26663600d598", + "parentUUID": "6cb98c51-4cae-4b12-8c86-c6a97285ebcd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "376097e9-044a-4b81-9e48-9e6c13d5ef1a", + "c59793f1-e969-4c80-8212-c8434921409f", + "7c2892e3-0c30-4614-8c7c-4a10ef93025f", + "0aea12be-ed78-4fb4-af4a-26663600d598" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3915, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "title": "Remove a new webservice key named \"Webservice Key - Stores\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Remove a new webservice key named \"Webservice Key - Stores\"\"", + "fullTitle": "WS - Stores : CRUD Remove a new webservice key named \"Webservice Key - Stores\" \"before all\" hook in \"Remove a new webservice key named \"Webservice Key - Stores\"\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6096ab43-67d4-4b76-8b55-126215fb544c", + "parentUUID": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Remove a new webservice key named \"Webservice Key - Stores\"\"", + "fullTitle": "WS - Stores : CRUD Remove a new webservice key named \"Webservice Key - Stores\" \"after all\" hook in \"Remove a new webservice key named \"Webservice Key - Stores\"\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c0f3c7c5-41a4-461b-8f8f-baac49e70cb9", + "parentUUID": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Stores : CRUD Remove a new webservice key named \"Webservice Key - Stores\" should login in BO", + "timedOut": false, + "duration": 1788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e144c0de-3a53-44ed-b7a4-ef077e852212", + "parentUUID": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Stores : CRUD Remove a new webservice key named \"Webservice Key - Stores\" should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4854, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_postTest_1_goToWebservicePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToWebservicePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d40c26a2-5c11-4711-a375-93e3a403de6a", + "parentUUID": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of webservices", + "fullTitle": "WS - Stores : CRUD Remove a new webservice key named \"Webservice Key - Stores\" should reset all filters and get number of webservices", + "timedOut": false, + "duration": 296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_postTest_1_firstReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'firstReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeys = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeys).to.be.eq(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e14a276-c98d-42e6-a41d-17fa16e4c198", + "parentUUID": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by key description", + "fullTitle": "WS - Stores : CRUD Remove a new webservice key named \"Webservice Key - Stores\" should filter list by key description", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_postTest_1_filterBeforeDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var key;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterBeforeDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.filterWebserviceTable(page, 'input', 'description', keyDescription)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getTextColumnFromTable(page, 1, 'description')];\n case 3:\n key = _a.sent();\n (0, chai_1.expect)(key).to.contains(keyDescription);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d0a6b38-fd74-48ae-978a-0996c9e37592", + "parentUUID": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "isHook": false, + "skipped": false + }, + { + "title": "should delete webservice key", + "fullTitle": "WS - Stores : CRUD Remove a new webservice key named \"Webservice Key - Stores\" should delete webservice key", + "timedOut": false, + "duration": 872, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_postTest_1_deleteWebserviceKey\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteWebserviceKey', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.deleteWebserviceKey(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(webservice_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09fad1ed-ed21-439e-bbc4-9265ba7074bf", + "parentUUID": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and check the number of webservice keys", + "fullTitle": "WS - Stores : CRUD Remove a new webservice key named \"Webservice Key - Stores\" should reset filter and check the number of webservice keys", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_postTest_1_resetFilterAfterDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfWebserviceKeyAfterDelete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilterAfterDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfWebserviceKeyAfterDelete = _a.sent();\n (0, chai_1.expect)(numberOfWebserviceKeyAfterDelete).to.be.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3adfe01-1fcf-480e-9ab3-60bc46114f66", + "parentUUID": "33476bd9-12be-4cf9-a70a-37479fcb99ad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e144c0de-3a53-44ed-b7a4-ef077e852212", + "d40c26a2-5c11-4711-a375-93e3a403de6a", + "3e14a276-c98d-42e6-a41d-17fa16e4c198", + "3d0a6b38-fd74-48ae-978a-0996c9e37592", + "09fad1ed-ed21-439e-bbc4-9265ba7074bf", + "d3adfe01-1fcf-480e-9ab3-60bc46114f66" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9567, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3b54f39e-83cd-450b-84a4-d6f0d713add6", + "title": "Disable the Webservice", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/functional/WS/04_storesCRUD.ts", + "file": "/campaigns/functional/WS/04_storesCRUD.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the Webservice\"", + "fullTitle": "WS - Stores : CRUD Disable the Webservice \"before all\" hook in \"Disable the Webservice\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71870ac7-0480-4377-8f9c-857053fa87ad", + "parentUUID": "3b54f39e-83cd-450b-84a4-d6f0d713add6", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the Webservice\"", + "fullTitle": "WS - Stores : CRUD Disable the Webservice \"after all\" hook in \"Disable the Webservice\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6e4c5020-d5ea-4f2c-b2a2-d706f29dad08", + "parentUUID": "3b54f39e-83cd-450b-84a4-d6f0d713add6", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "WS - Stores : CRUD Disable the Webservice should login in BO", + "timedOut": false, + "duration": 1748, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22ea9af1-51cc-4d29-9f8c-4a01e415b81e", + "parentUUID": "3b54f39e-83cd-450b-84a4-d6f0d713add6", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > Webservice' page", + "fullTitle": "WS - Stores : CRUD Disable the Webservice should go to 'Advanced Parameters > Webservice' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_postTest_2_goToAdvParametersWebservice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvParametersWebservice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.webserviceLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(webservice_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38c087d7-ca34-4cf4-93d4-a8784057e42f", + "parentUUID": "3b54f39e-83cd-450b-84a4-d6f0d713add6", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the webservice", + "fullTitle": "WS - Stores : CRUD Disable the Webservice should disable the webservice", + "timedOut": false, + "duration": 354, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"functional_WS_storesCRUD_postTest_2_setWebserviceStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWebserviceStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, webservice_1.default.setWebserviceStatus(page, status)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(webservice_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "928cc7fe-ab3c-4e26-9668-7319d12b7168", + "parentUUID": "3b54f39e-83cd-450b-84a4-d6f0d713add6", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "22ea9af1-51cc-4d29-9f8c-4a01e415b81e", + "38c087d7-ca34-4cf4-93d4-a8784057e42f", + "928cc7fe-ab3c-4e26-9668-7319d12b7168" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6946, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "8d8813c6-eeba-4ea5-b187-3cd2388e3b54", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 381, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "18a0578b-2eae-404a-80cf-c1bae4a6df05", + "parentUUID": "8d8813c6-eeba-4ea5-b187-3cd2388e3b54", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 42, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac4d44f2-fc70-4b7a-a31f-cd4a1f4b9180", + "parentUUID": "8d8813c6-eeba-4ea5-b187-3cd2388e3b54", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "369a200e-1318-4ae9-ab55-e7528598bc18", + "parentUUID": "8d8813c6-eeba-4ea5-b187-3cd2388e3b54", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "1794cf0f-b7e1-4f83-8225-d6ece6561d4c", + "title": "Wishlist module - Statistics tab settings", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/blockwishlist/02_configuration/02_statisticsTabSettings.ts", + "file": "/campaigns/modules/blockwishlist/02_configuration/02_statisticsTabSettings.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Wishlist module - Statistics tab settings\"", + "fullTitle": "Wishlist module - Statistics tab settings \"before all\" hook in \"Wishlist module - Statistics tab settings\"", + "timedOut": false, + "duration": 46, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a4c365e-93d0-4c7c-acb1-6a3a952cf643", + "parentUUID": "1794cf0f-b7e1-4f83-8225-d6ece6561d4c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Wishlist module - Statistics tab settings\"", + "fullTitle": "Wishlist module - Statistics tab settings \"after all\" hook in \"Wishlist module - Statistics tab settings\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "42f64a39-a095-47cb-9429-1bffb4852129", + "parentUUID": "1794cf0f-b7e1-4f83-8225-d6ece6561d4c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "57fc74cb-6694-4f92-9c45-e37b5a5bdc25", + "title": "Check the Back Office", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/blockwishlist/02_configuration/02_statisticsTabSettings.ts", + "file": "/campaigns/modules/blockwishlist/02_configuration/02_statisticsTabSettings.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Wishlist module - Statistics tab settings Check the Back Office should login in BO", + "timedOut": false, + "duration": 6362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e754ec8-25b1-47d0-ba7a-8929fb5d5ea3", + "parentUUID": "57fc74cb-6694-4f92-9c45-e37b5a5bdc25", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Wishlist module - Statistics tab settings Check the Back Office should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6505, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49350db0-6cce-4d08-a835-ba508a6c3243", + "parentUUID": "57fc74cb-6694-4f92-9c45-e37b5a5bdc25", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Wishlist", + "fullTitle": "Wishlist module - Statistics tab settings Check the Back Office should search the module Wishlist", + "timedOut": false, + "duration": 646, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.blockwishlist)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c809eaf-be57-428f-b949-43705bc499d1", + "parentUUID": "57fc74cb-6694-4f92-9c45-e37b5a5bdc25", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Wishlist'", + "fullTitle": "Wishlist module - Statistics tab settings Check the Back Office should go to the configuration page of the module 'Wishlist'", + "timedOut": false, + "duration": 2557, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, isConfigurationTabActive, isStatisticsTabActive;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.blockwishlist.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, blockwishlist_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(blockwishlist_1.default.pageTitle);\n return [4 /*yield*/, blockwishlist_1.default.isTabActive(page, 'Configuration')];\n case 4:\n isConfigurationTabActive = _a.sent();\n (0, chai_1.expect)(isConfigurationTabActive).to.eq(true);\n return [4 /*yield*/, blockwishlist_1.default.isTabActive(page, 'Statistics')];\n case 5:\n isStatisticsTabActive = _a.sent();\n (0, chai_1.expect)(isStatisticsTabActive).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c6f4eb4-90bd-4e7f-9cca-332abec615c3", + "parentUUID": "57fc74cb-6694-4f92-9c45-e37b5a5bdc25", + "isHook": false, + "skipped": false + }, + { + "title": "should go on Statistics Tab", + "fullTitle": "Wishlist module - Statistics tab settings Check the Back Office should go on Statistics Tab", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_goToStatisticsTab\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStatisticsTab', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, blockwishlist_1.default.goToStatisticsTab(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statistics_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(statistics_1.default.pageTitle);\n return [4 /*yield*/, statistics_1.default.getTextForEmptyTable(page)];\n case 4:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fceb3fda-1942-49cc-8b3a-d817bfe3cbd7", + "parentUUID": "57fc74cb-6694-4f92-9c45-e37b5a5bdc25", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3e754ec8-25b1-47d0-ba7a-8929fb5d5ea3", + "49350db0-6cce-4d08-a835-ba508a6c3243", + "6c809eaf-be57-428f-b949-43705bc499d1", + "6c6f4eb4-90bd-4e7f-9cca-332abec615c3", + "fceb3fda-1942-49cc-8b3a-d817bfe3cbd7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 16873, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f247f29c-e73e-42ec-80c5-ff890556b619", + "title": "Go to the FO and add to favorites some products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/blockwishlist/02_configuration/02_statisticsTabSettings.ts", + "file": "/campaigns/modules/blockwishlist/02_configuration/02_statisticsTabSettings.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to the FO", + "fullTitle": "Wishlist module - Statistics tab settings Go to the FO and add to favorites some products should go to the FO", + "timedOut": false, + "duration": 1816, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, statistics_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbf3afcb-066e-437f-8943-41dc8db85f85", + "parentUUID": "f247f29c-e73e-42ec-80c5-ff890556b619", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "Wishlist module - Statistics tab settings Go to the FO and add to favorites some products should go to login page", + "timedOut": false, + "duration": 734, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cbffe6bf-6ec6-470f-b82c-94cb7017028f", + "parentUUID": "f247f29c-e73e-42ec-80c5-ff890556b619", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "Wishlist module - Statistics tab settings Go to the FO and add to favorites some products should sign in with default customer", + "timedOut": false, + "duration": 655, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_sighInFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9cf56d1-afd2-48fb-a4aa-bdc243fbae38", + "parentUUID": "f247f29c-e73e-42ec-80c5-ff890556b619", + "isHook": false, + "skipped": false + }, + { + "title": "should go to all products page", + "fullTitle": "Wishlist module - Statistics tab settings Go to the FO and add to favorites some products should go to all products page", + "timedOut": false, + "duration": 1038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_goToAllProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc903d58-a635-464f-abd0-0b32b0241c4c", + "parentUUID": "f247f29c-e73e-42ec-80c5-ff890556b619", + "isHook": false, + "skipped": false + }, + { + "title": "should add product #1 to wishlist", + "fullTitle": "Wishlist module - Statistics tab settings Go to the FO and add to favorites some products should add product #1 to wishlist", + "timedOut": false, + "duration": 2189, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_addToFavorite1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isAddedToWishlist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addToFavorite\".concat(idxProduct), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.addToWishList(page, idxProduct)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(category_1.default.messageAddedToWishlist);\n return [4 /*yield*/, category_1.default.isAddedToWishlist(page, idxProduct)];\n case 3:\n isAddedToWishlist = _a.sent();\n (0, chai_1.expect)(isAddedToWishlist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b9455e6-e8e1-4bb2-86d2-06751390436a", + "parentUUID": "f247f29c-e73e-42ec-80c5-ff890556b619", + "isHook": false, + "skipped": false + }, + { + "title": "should add product #2 to wishlist", + "fullTitle": "Wishlist module - Statistics tab settings Go to the FO and add to favorites some products should add product #2 to wishlist", + "timedOut": false, + "duration": 2123, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_addToFavorite2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isAddedToWishlist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addToFavorite\".concat(idxProduct), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.addToWishList(page, idxProduct)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(category_1.default.messageAddedToWishlist);\n return [4 /*yield*/, category_1.default.isAddedToWishlist(page, idxProduct)];\n case 3:\n isAddedToWishlist = _a.sent();\n (0, chai_1.expect)(isAddedToWishlist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1daefd2-7e00-4631-9c16-61476ea86542", + "parentUUID": "f247f29c-e73e-42ec-80c5-ff890556b619", + "isHook": false, + "skipped": false + }, + { + "title": "should add product #3 to wishlist", + "fullTitle": "Wishlist module - Statistics tab settings Go to the FO and add to favorites some products should add product #3 to wishlist", + "timedOut": false, + "duration": 2115, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_addToFavorite3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isAddedToWishlist;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"addToFavorite\".concat(idxProduct), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.addToWishList(page, idxProduct)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.be.eq(category_1.default.messageAddedToWishlist);\n return [4 /*yield*/, category_1.default.isAddedToWishlist(page, idxProduct)];\n case 3:\n isAddedToWishlist = _a.sent();\n (0, chai_1.expect)(isAddedToWishlist).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8b6a8e2-82ff-4a15-8484-fe64b8fc6646", + "parentUUID": "f247f29c-e73e-42ec-80c5-ff890556b619", + "isHook": false, + "skipped": false + }, + { + "title": "should logout", + "fullTitle": "Wishlist module - Statistics tab settings Go to the FO and add to favorites some products should logout", + "timedOut": false, + "duration": 1322, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_foLogout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'foLogout', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.logout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0325577e-7a9a-4eff-8f13-3aa52c6efb58", + "parentUUID": "f247f29c-e73e-42ec-80c5-ff890556b619", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dbf3afcb-066e-437f-8943-41dc8db85f85", + "cbffe6bf-6ec6-470f-b82c-94cb7017028f", + "b9cf56d1-afd2-48fb-a4aa-bdc243fbae38", + "fc903d58-a635-464f-abd0-0b32b0241c4c", + "5b9455e6-e8e1-4bb2-86d2-06751390436a", + "c1daefd2-7e00-4631-9c16-61476ea86542", + "d8b6a8e2-82ff-4a15-8484-fe64b8fc6646", + "0325577e-7a9a-4eff-8f13-3aa52c6efb58" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11992, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "989ab1e9-8abc-4e4b-bca7-41bdec92f656", + "title": "Return to BO and check statistics", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/blockwishlist/02_configuration/02_statisticsTabSettings.ts", + "file": "/campaigns/modules/blockwishlist/02_configuration/02_statisticsTabSettings.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to BO", + "fullTitle": "Wishlist module - Statistics tab settings Return to BO and check statistics should go to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_goToBoBack\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToBoBack', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, statistics_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statistics_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "471bef04-6793-44a4-b3cb-825e4ff112ef", + "parentUUID": "989ab1e9-8abc-4e4b-bca7-41bdec92f656", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the refresh button", + "fullTitle": "Wishlist module - Statistics tab settings Return to BO and check statistics should click on the refresh button", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_blockwishlist_configuration_statisticsTabSettings_clickOnRefreshButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnRefreshButton', baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [4 /*yield*/, statistics_1.default.refreshStatistics(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, statistics_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(statistics_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de23fcf1-ecc5-402e-b881-a0ae6b19b04e", + "parentUUID": "989ab1e9-8abc-4e4b-bca7-41bdec92f656", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "471bef04-6793-44a4-b3cb-825e4ff112ef" + ], + "failures": [], + "pending": [ + "de23fcf1-ecc5-402e-b881-a0ae6b19b04e" + ], + "skipped": [], + "duration": 6, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "080b1c6d-6945-4a49-af3c-1ee4e4ccbb58", + "title": "PrestaShop API Resources module - Uninstall and install module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PrestaShop API Resources module - Uninstall and install module\"", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module \"before all\" hook in \"PrestaShop API Resources module - Uninstall and install module\"", + "timedOut": false, + "duration": 44, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53e4615e-daea-4f8a-8d36-514de28025c8", + "parentUUID": "080b1c6d-6945-4a49-af3c-1ee4e4ccbb58", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PrestaShop API Resources module - Uninstall and install module\"", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module \"after all\" hook in \"PrestaShop API Resources module - Uninstall and install module\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('module.zip')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "72bb0b2b-0ec7-466f-9b62-2e0c11ef0862", + "parentUUID": "080b1c6d-6945-4a49-af3c-1ee4e4ccbb58", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "4a21e730-f5e6-4d24-a2ed-1695f8361482", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4e73be67-223c-43b2-8830-ca42deac6452", + "parentUUID": "4a21e730-f5e6-4d24-a2ed-1695f8361482", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d6a0c0df-4110-40b2-8f96-976a6a9efa9d", + "parentUUID": "4a21e730-f5e6-4d24-a2ed-1695f8361482", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4afd57a6-1101-4d62-b5c9-e685342d16f8", + "parentUUID": "4a21e730-f5e6-4d24-a2ed-1695f8361482", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 5064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a14c3cea-e24c-4fab-a132-b5ed6b675f4a", + "parentUUID": "4a21e730-f5e6-4d24-a2ed-1695f8361482", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 1038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70ba7019-8bc9-41ba-8a95-4e8f20c23bfc", + "parentUUID": "4a21e730-f5e6-4d24-a2ed-1695f8361482", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4afd57a6-1101-4d62-b5c9-e685342d16f8", + "a14c3cea-e24c-4fab-a132-b5ed6b675f4a", + "70ba7019-8bc9-41ba-8a95-4e8f20c23bfc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7933, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3b9ac7cb-52b5-4d85-a1b5-7f15de4b9bff", + "title": "BackOffice - Login", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Login should login in BO", + "timedOut": false, + "duration": 1719, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1223154e-bc54-43bc-bb0c-75e8b50c8956", + "parentUUID": "3b9ac7cb-52b5-4d85-a1b5-7f15de4b9bff", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1223154e-bc54-43bc-bb0c-75e8b50c8956" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1719, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b5f7816e-5257-44fb-828e-640ed2818392", + "title": "BackOffice - Uninstall Module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Uninstall Module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5221, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dddbea73-4edf-4188-bb0b-a7450c5699f3", + "parentUUID": "b5f7816e-5257-44fb-828e-640ed2818392", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module PrestaShop API Resources", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Uninstall Module should search the module PrestaShop API Resources", + "timedOut": false, + "duration": 626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psApiResources)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78665778-621c-476d-bef0-65f49f85e7f5", + "parentUUID": "b5f7816e-5257-44fb-828e-640ed2818392", + "isHook": false, + "skipped": false + }, + { + "title": "should display the uninstall modal and cancel it", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Uninstall Module should display the uninstall modal and cancel it", + "timedOut": false, + "duration": 1890, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_uninstallModuleAndCancel\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isModuleVisible, isModalVisible, dirExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModuleAndCancel', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psApiResources, 'uninstall', true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.eq('');\n return [4 /*yield*/, moduleManager_1.moduleManager.isModuleVisible(page, modules_1.default.psApiResources)];\n case 3:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [4 /*yield*/, moduleManager_1.moduleManager.isModalActionVisible(page, modules_1.default.psApiResources, 'uninstall')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(false);\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/modules/\").concat(modules_1.default.psApiResources.tag, \"/\"))];\n case 5:\n dirExists = _a.sent();\n (0, chai_1.expect)(dirExists).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bff9cc73-7318-4eb4-97f1-65f7203c279b", + "parentUUID": "b5f7816e-5257-44fb-828e-640ed2818392", + "isHook": false, + "skipped": false + }, + { + "title": "should uninstall the module", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Uninstall Module should uninstall the module", + "timedOut": false, + "duration": 2450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage, dirExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psApiResources, 'uninstall', false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uninstallModuleSuccessMessage(modules_1.default.psApiResources.tag));\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/modules/\").concat(modules_1.default.psApiResources.tag, \"/\"))];\n case 3:\n dirExists = _a.sent();\n (0, chai_1.expect)(dirExists).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f15dd3e6-4ba6-4d88-aaee-2365db2cd749", + "parentUUID": "b5f7816e-5257-44fb-828e-640ed2818392", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dddbea73-4edf-4188-bb0b-a7450c5699f3", + "78665778-621c-476d-bef0-65f49f85e7f5", + "bff9cc73-7318-4eb4-97f1-65f7203c279b", + "f15dd3e6-4ba6-4d88-aaee-2365db2cd749" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10187, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3c1b0cd9-9d25-43d4-bb77-905513f44a64", + "title": "BackOffice - Check that the module is not present", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is not present should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 7421, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27c83e83-6efa-4ae7-a9a1-8db2d28b81e1", + "parentUUID": "3c1b0cd9-9d25-43d4-bb77-905513f44a64", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is not present should check that no records found", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f750083c-5c1f-4177-a2d3-1bb71216a866", + "parentUUID": "3c1b0cd9-9d25-43d4-bb77-905513f44a64", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is not present should go to add New API Access page", + "timedOut": false, + "duration": 1050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1fb6b812-003e-49c3-b5b5-e660cf95b108", + "parentUUID": "3c1b0cd9-9d25-43d4-bb77-905513f44a64", + "isHook": false, + "skipped": false + }, + { + "title": "should check that scopes from Core are present and enabled", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is not present should check that scopes from Core are present and enabled", + "timedOut": false, + "duration": 16, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_checkScopesCore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var scopes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkScopesCore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getApiScopes(page, '__core_scopes')];\n case 2:\n scopes = _a.sent();\n (0, chai_1.expect)(scopes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ce3375b5-4ba1-47b0-b5c9-16a589b12a34", + "parentUUID": "3c1b0cd9-9d25-43d4-bb77-905513f44a64", + "isHook": false, + "skipped": false + }, + { + "title": "should check that scopes from Module are not present", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is not present should check that scopes from Module are not present", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_checkScopeModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var scopes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkScopeModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getApiScopes(page, modules_1.default.psApiResources.tag)];\n case 2:\n scopes = _a.sent();\n (0, chai_1.expect)(scopes.length).to.be.eq(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80ab1855-55f6-423a-8dbe-10c1fb9f64b0", + "parentUUID": "3c1b0cd9-9d25-43d4-bb77-905513f44a64", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "27c83e83-6efa-4ae7-a9a1-8db2d28b81e1", + "f750083c-5c1f-4177-a2d3-1bb71216a866", + "1fb6b812-003e-49c3-b5b5-e660cf95b108", + "ce3375b5-4ba1-47b0-b5c9-16a589b12a34", + "80ab1855-55f6-423a-8dbe-10c1fb9f64b0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8498, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d71a07dd-a2ba-4eab-b4e7-b43cbfaf2cd7", + "title": "BackOffice - Install the module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Install the module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5901, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7997ae58-2eeb-4c28-8c54-5eadec9a1796", + "parentUUID": "d71a07dd-a2ba-4eab-b4e7-b43cbfaf2cd7", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module PrestaShop API Resources", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Install the module should search the module PrestaShop API Resources", + "timedOut": false, + "duration": 590, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psApiResources)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d94f01e4-2c64-4b7a-8b80-e40e86d42c46", + "parentUUID": "d71a07dd-a2ba-4eab-b4e7-b43cbfaf2cd7", + "isHook": false, + "skipped": false + }, + { + "title": "should install the module", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Install the module should install the module", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage, dirExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psApiResources, 'install', false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.installModuleSuccessMessage(modules_1.default.psApiResources.tag));\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/modules/\").concat(modules_1.default.psApiResources.tag, \"/\"))];\n case 3:\n dirExists = _a.sent();\n (0, chai_1.expect)(dirExists).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "296ff484-1cff-4b7d-aa8a-34da7c96926c", + "parentUUID": "d71a07dd-a2ba-4eab-b4e7-b43cbfaf2cd7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7997ae58-2eeb-4c28-8c54-5eadec9a1796", + "d94f01e4-2c64-4b7a-8b80-e40e86d42c46", + "296ff484-1cff-4b7d-aa8a-34da7c96926c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7435, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "504dd500-ba89-4efd-adc9-40ef517c09e9", + "title": "BackOffice - Check that the module is present", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is present should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 7440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_goToAuthorizationServerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAuthorizationServerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "89eadbda-72ce-47e9-96c0-d8a9c80c560a", + "parentUUID": "504dd500-ba89-4efd-adc9-40ef517c09e9", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is present should check that no records found", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_checkThatNoRecordFound\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkThatNoRecordFound', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc7b1247-c9b8-430c-b532-66265d62b4a8", + "parentUUID": "504dd500-ba89-4efd-adc9-40ef517c09e9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is present should go to add New API Access page", + "timedOut": false, + "duration": 1125, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_goToNewAPIAccessPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewAPIAccessPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "196ef9a1-f7eb-40d2-a974-b91b147798f1", + "parentUUID": "504dd500-ba89-4efd-adc9-40ef517c09e9", + "isHook": false, + "skipped": false + }, + { + "title": "should check that scopes from Core are present", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is present should check that scopes from Core are present", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_checkScopesCore\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var scopes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkScopesCore', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getApiScopes(page, '__core_scopes')];\n case 2:\n scopes = _a.sent();\n (0, chai_1.expect)(scopes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4402700d-126b-4bf0-8908-8533669d7c3f", + "parentUUID": "504dd500-ba89-4efd-adc9-40ef517c09e9", + "isHook": false, + "skipped": false + }, + { + "title": "should check that scopes from Module are present", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module BackOffice - Check that the module is present should check that scopes from Module are present", + "timedOut": false, + "duration": 3, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_checkScopeModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var scopes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkScopeModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getApiScopes(page, modules_1.default.psApiResources.tag)];\n case 2:\n scopes = _a.sent();\n (0, chai_1.expect)(scopes.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97dc125c-405d-48fb-99e7-370bbeca5ee1", + "parentUUID": "504dd500-ba89-4efd-adc9-40ef517c09e9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "89eadbda-72ce-47e9-96c0-d8a9c80c560a", + "cc7b1247-c9b8-430c-b532-66265d62b4a8", + "196ef9a1-f7eb-40d2-a974-b91b147798f1", + "4402700d-126b-4bf0-8908-8533669d7c3f", + "97dc125c-405d-48fb-99e7-370bbeca5ee1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8588, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1f1ae105-9542-4da4-ab42-336cdaf706c3", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5ca0475-45fc-41b9-af5b-f8264f009b9b", + "parentUUID": "1f1ae105-9542-4da4-ab42-336cdaf706c3", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8247b9c6-a29a-49dd-bc49-4d97a1305a7e", + "parentUUID": "1f1ae105-9542-4da4-ab42-336cdaf706c3", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "badfcade-e172-41ec-87ac-310301f6d0c4", + "parentUUID": "1f1ae105-9542-4da4-ab42-336cdaf706c3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "411e150e-d300-422a-b38d-a78153817277", + "parentUUID": "1f1ae105-9542-4da4-ab42-336cdaf706c3", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "PrestaShop API Resources module - Uninstall and install module Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 526, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_uninstallAndInstallModule_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81255f62-6070-4c00-a638-23645ed6f1a0", + "parentUUID": "1f1ae105-9542-4da4-ab42-336cdaf706c3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "badfcade-e172-41ec-87ac-310301f6d0c4", + "411e150e-d300-422a-b38d-a78153817277", + "81255f62-6070-4c00-a638-23645ed6f1a0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7353, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2ccdb4be-0f6a-45ad-aa72-4180a55775da", + "title": "PrestaShop API Resources module - Disable/Enable module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PrestaShop API Resources module - Disable/Enable module\"", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module \"before all\" hook in \"PrestaShop API Resources module - Disable/Enable module\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82ec9172-44ce-48ee-9ec3-1c2d55040bf4", + "parentUUID": "2ccdb4be-0f6a-45ad-aa72-4180a55775da", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PrestaShop API Resources module - Disable/Enable module\"", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module \"after all\" hook in \"PrestaShop API Resources module - Disable/Enable module\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "68415a3c-24e5-4dd3-b43b-ccc011d6e7d7", + "parentUUID": "2ccdb4be-0f6a-45ad-aa72-4180a55775da", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0454f247-0935-4548-9c35-36f3c34d5d66", + "title": "Enable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the feature flag \"Authorization server\" \"before all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5fe51ef8-9f8a-4b9b-bd3f-f79630e49e23", + "parentUUID": "0454f247-0935-4548-9c35-36f3c34d5d66", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the feature flag \"Authorization server\" \"after all\" hook in \"Enable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e70756ca-044c-4d59-b61e-689848eb8fc7", + "parentUUID": "0454f247-0935-4548-9c35-36f3c34d5d66", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1756, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd6257b3-f587-4d89-9338-3ee9ce7a5e26", + "parentUUID": "0454f247-0935-4548-9c35-36f3c34d5d66", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_enableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8730a3c4-3c39-4a4e-916f-40022fd343a9", + "parentUUID": "0454f247-0935-4548-9c35-36f3c34d5d66", + "isHook": false, + "skipped": false + }, + { + "title": "should enable \"Authorization server\"", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the feature flag \"Authorization server\" should enable \"Authorization server\"", + "timedOut": false, + "duration": 972, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_enableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a8a7396e-08d5-4171-b8f3-853a14666b8b", + "parentUUID": "0454f247-0935-4548-9c35-36f3c34d5d66", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fd6257b3-f587-4d89-9338-3ee9ce7a5e26", + "8730a3c4-3c39-4a4e-916f-40022fd343a9", + "a8a7396e-08d5-4171-b8f3-853a14666b8b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7569, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7c787e13-3850-4976-b236-a046bd16e660", + "title": "BackOffice - Login", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module BackOffice - Login should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e130a971-f5f8-43fb-a62a-82907e5d8fec", + "parentUUID": "7c787e13-3850-4976-b236-a046bd16e660", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e130a971-f5f8-43fb-a62a-82907e5d8fec" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1737, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7620c210-7a4b-4027-b067-49dfafd55c20", + "title": "Disable the module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_goToModuleManagerPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToModuleManagerPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac43d876-dd0f-4ed1-bc6b-ea5c726f6304", + "parentUUID": "7620c210-7a4b-4027-b067-49dfafd55c20", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module PrestaShop API Resources", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the module should search the module PrestaShop API Resources", + "timedOut": false, + "duration": 645, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_searchModule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psApiResources)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48157f59-4a4e-4c08-8609-de04bd6536f4", + "parentUUID": "7620c210-7a4b-4027-b067-49dfafd55c20", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the module", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the module should disable the module", + "timedOut": false, + "duration": 1346, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_disableModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"Module\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psApiResources, test.action)];\n case 2:\n successMessage = _a.sent();\n if (test.state) {\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.enableModuleSuccessMessage(modules_1.default.psApiResources.tag));\n }\n else {\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.disableModuleSuccessMessage(modules_1.default.psApiResources.tag));\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3be140c-c331-4444-a844-01aa44fd2ebd", + "parentUUID": "7620c210-7a4b-4027-b067-49dfafd55c20", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the module should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 7415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_goToAuthorizationServerPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAuthorizationServerPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0be44ba-dc09-417a-8633-bf8248a2e5ed", + "parentUUID": "7620c210-7a4b-4027-b067-49dfafd55c20", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the module should check that no records found", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_checkThatNoRecordFound0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkThatNoRecordFound\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48416f83-19b7-4bdf-a27c-672053301c02", + "parentUUID": "7620c210-7a4b-4027-b067-49dfafd55c20", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the module should go to add New API Access page", + "timedOut": false, + "duration": 1156, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_goToNewAPIAccessPage0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewAPIAccessPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e569675b-7cd8-4aec-9ddb-ecd210f55803", + "parentUUID": "7620c210-7a4b-4027-b067-49dfafd55c20", + "isHook": false, + "skipped": false + }, + { + "title": "should check that scopes from Core are present and enabled", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the module should check that scopes from Core are present and enabled", + "timedOut": false, + "duration": 38, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_checkScopesCore0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var scopes, scopes_1, scopes_1_1, scope, isScopeDisabled, e_1_1;\n var e_1, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkScopesCore\".concat(index), baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, add_1.default.getApiScopes(page, '__core_scopes')];\n case 2:\n scopes = _b.sent();\n (0, chai_1.expect)(scopes.length).to.be.gt(0);\n _b.label = 3;\n case 3:\n _b.trys.push([3, 8, 9, 10]);\n scopes_1 = __values(scopes), scopes_1_1 = scopes_1.next();\n _b.label = 4;\n case 4:\n if (!!scopes_1_1.done) return [3 /*break*/, 7];\n scope = scopes_1_1.value;\n return [4 /*yield*/, add_1.default.isAPIScopeDisabled(page, scope)];\n case 5:\n isScopeDisabled = _b.sent();\n (0, chai_1.expect)(isScopeDisabled).to.be.equal(false);\n _b.label = 6;\n case 6:\n scopes_1_1 = scopes_1.next();\n return [3 /*break*/, 4];\n case 7: return [3 /*break*/, 10];\n case 8:\n e_1_1 = _b.sent();\n e_1 = { error: e_1_1 };\n return [3 /*break*/, 10];\n case 9:\n try {\n if (scopes_1_1 && !scopes_1_1.done && (_a = scopes_1.return)) _a.call(scopes_1);\n }\n finally { if (e_1) throw e_1.error; }\n return [7 /*endfinally*/];\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0304cf25-6a5f-444b-b3c8-fea43e5c0b01", + "parentUUID": "7620c210-7a4b-4027-b067-49dfafd55c20", + "isHook": false, + "skipped": false + }, + { + "title": "should check that scopes from Module are present and disabled", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the module should check that scopes from Module are present and disabled", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_checkScopesModule0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkScopesModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e6d2950-75e6-43bf-a171-94dc7b7b093d", + "parentUUID": "7620c210-7a4b-4027-b067-49dfafd55c20", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ac43d876-dd0f-4ed1-bc6b-ea5c726f6304", + "48157f59-4a4e-4c08-8609-de04bd6536f4", + "b3be140c-c331-4444-a844-01aa44fd2ebd", + "e0be44ba-dc09-417a-8633-bf8248a2e5ed", + "48416f83-19b7-4bdf-a27c-672053301c02", + "e569675b-7cd8-4aec-9ddb-ecd210f55803", + "0304cf25-6a5f-444b-b3c8-fea43e5c0b01" + ], + "failures": [], + "pending": [ + "9e6d2950-75e6-43bf-a171-94dc7b7b093d" + ], + "skipped": [], + "duration": 16823, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "946426b0-8352-4001-9f5a-c35355c03e47", + "title": "Enable the module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_goToModuleManagerPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToModuleManagerPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12bc6da8-3f51-4471-bb15-0cd974a7d337", + "parentUUID": "946426b0-8352-4001-9f5a-c35355c03e47", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module PrestaShop API Resources", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the module should search the module PrestaShop API Resources", + "timedOut": false, + "duration": 616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_searchModule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"searchModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psApiResources)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca48c533-1ee4-4ec1-90c2-f1d8a8675737", + "parentUUID": "946426b0-8352-4001-9f5a-c35355c03e47", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the module", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the module should enable the module", + "timedOut": false, + "duration": 849, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_enableModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.action, \"Module\"), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psApiResources, test.action)];\n case 2:\n successMessage = _a.sent();\n if (test.state) {\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.enableModuleSuccessMessage(modules_1.default.psApiResources.tag));\n }\n else {\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.disableModuleSuccessMessage(modules_1.default.psApiResources.tag));\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "894cc918-8d3e-4278-9792-44c396008c69", + "parentUUID": "946426b0-8352-4001-9f5a-c35355c03e47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > API Access' page", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the module should go to 'Advanced Parameters > API Access' page", + "timedOut": false, + "duration": 7362, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_goToAuthorizationServerPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAuthorizationServerPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.authorizationServerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(APIAccess_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bbf9da6-4d65-4b30-95b0-af905bda24d0", + "parentUUID": "946426b0-8352-4001-9f5a-c35355c03e47", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no records found", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the module should check that no records found", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_checkThatNoRecordFound1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noRecordsFoundText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkThatNoRecordFound\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.getTextForEmptyTable(page)];\n case 2:\n noRecordsFoundText = _a.sent();\n (0, chai_1.expect)(noRecordsFoundText).to.contains('warning No records found');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8a08d61e-09f5-4ed7-8d3c-35c3c04d2f3c", + "parentUUID": "946426b0-8352-4001-9f5a-c35355c03e47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to add New API Access page", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the module should go to add New API Access page", + "timedOut": false, + "duration": 1083, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_goToNewAPIAccessPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToNewAPIAccessPage\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, APIAccess_1.default.goToNewAPIAccessPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(add_1.default.pageTitleCreate);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90e3102b-bdd0-401e-99de-f7e776f20119", + "parentUUID": "946426b0-8352-4001-9f5a-c35355c03e47", + "isHook": false, + "skipped": false + }, + { + "title": "should check that scopes from Core are present and enabled", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the module should check that scopes from Core are present and enabled", + "timedOut": false, + "duration": 36, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_checkScopesCore1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var scopes, scopes_1, scopes_1_1, scope, isScopeDisabled, e_1_1;\n var e_1, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkScopesCore\".concat(index), baseContext)];\n case 1:\n _b.sent();\n return [4 /*yield*/, add_1.default.getApiScopes(page, '__core_scopes')];\n case 2:\n scopes = _b.sent();\n (0, chai_1.expect)(scopes.length).to.be.gt(0);\n _b.label = 3;\n case 3:\n _b.trys.push([3, 8, 9, 10]);\n scopes_1 = __values(scopes), scopes_1_1 = scopes_1.next();\n _b.label = 4;\n case 4:\n if (!!scopes_1_1.done) return [3 /*break*/, 7];\n scope = scopes_1_1.value;\n return [4 /*yield*/, add_1.default.isAPIScopeDisabled(page, scope)];\n case 5:\n isScopeDisabled = _b.sent();\n (0, chai_1.expect)(isScopeDisabled).to.be.equal(false);\n _b.label = 6;\n case 6:\n scopes_1_1 = scopes_1.next();\n return [3 /*break*/, 4];\n case 7: return [3 /*break*/, 10];\n case 8:\n e_1_1 = _b.sent();\n e_1 = { error: e_1_1 };\n return [3 /*break*/, 10];\n case 9:\n try {\n if (scopes_1_1 && !scopes_1_1.done && (_a = scopes_1.return)) _a.call(scopes_1);\n }\n finally { if (e_1) throw e_1.error; }\n return [7 /*endfinally*/];\n case 10: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d263e965-bd21-4a5f-896a-45b3d28e366c", + "parentUUID": "946426b0-8352-4001-9f5a-c35355c03e47", + "isHook": false, + "skipped": false + }, + { + "title": "should check that scopes from Module are present and enabled", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Enable the module should check that scopes from Module are present and enabled", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_checkScopesModule1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"checkScopesModule\".concat(index), baseContext)];\n case 1:\n _a.sent();\n this.skip();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48082a4b-a33b-4e26-838c-3f798b32980a", + "parentUUID": "946426b0-8352-4001-9f5a-c35355c03e47", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "12bc6da8-3f51-4471-bb15-0cd974a7d337", + "ca48c533-1ee4-4ec1-90c2-f1d8a8675737", + "894cc918-8d3e-4278-9792-44c396008c69", + "7bbf9da6-4d65-4b30-95b0-af905bda24d0", + "8a08d61e-09f5-4ed7-8d3c-35c3c04d2f3c", + "90e3102b-bdd0-401e-99de-f7e776f20119", + "d263e965-bd21-4a5f-896a-45b3d28e366c" + ], + "failures": [], + "pending": [ + "48082a4b-a33b-4e26-838c-3f798b32980a" + ], + "skipped": [], + "duration": 15866, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "00a2ac97-989b-4afa-80e2-006298c21799", + "title": "Disable the feature flag \"Authorization server\"", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "file": "/campaigns/modules/ps_apiresources/01_installation/02_disableEnableModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the feature flag \"Authorization server\" \"before all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a703c40b-acc3-4cf7-8013-c7f30defe3a2", + "parentUUID": "00a2ac97-989b-4afa-80e2-006298c21799", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the feature flag \"Authorization server\" \"after all\" hook in \"Disable the feature flag \"Authorization server\"\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a2b4fe95-9d4c-4f37-987f-5f757c628f14", + "parentUUID": "00a2ac97-989b-4afa-80e2-006298c21799", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the feature flag \"Authorization server\" should login in BO", + "timedOut": false, + "duration": 1883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "accec244-4124-464e-a0c3-f3314594ee05", + "parentUUID": "00a2ac97-989b-4afa-80e2-006298c21799", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > New & Experimental Features' page", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the feature flag \"Authorization server\" should go to 'Advanced Parameters > New & Experimental Features' page", + "timedOut": false, + "duration": 4876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_disableAuthorizationServer_goToFeatureFlagPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFeatureFlagPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.featureFlagLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(featureFlag_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "43a80e20-7b72-45e9-a18f-31e863d130a5", + "parentUUID": "00a2ac97-989b-4afa-80e2-006298c21799", + "isHook": false, + "skipped": false + }, + { + "title": "should disable \"Authorization server\"", + "fullTitle": "PrestaShop API Resources module - Disable/Enable module Disable the feature flag \"Authorization server\" should disable \"Authorization server\"", + "timedOut": false, + "duration": 529, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_apiresources_installation_disableEnableModule_disableAuthorizationServer_setFeatureFlag\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setFeatureFlag', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, featureFlag_1.default.setFeatureFlag(page, featureFlag, expectedStatus)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.be.contain(featureFlag_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efa6876e-8592-478a-a7ba-4d934ffe9ea9", + "parentUUID": "00a2ac97-989b-4afa-80e2-006298c21799", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "accec244-4124-464e-a0c3-f3314594ee05", + "43a80e20-7b72-45e9-a18f-31e863d130a5", + "efa6876e-8592-478a-a7ba-4d934ffe9ea9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7288, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "title": "Cash on delivery (COD) module - Reset module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_cashondelivery/01_installation/04_resetModule.ts", + "file": "/campaigns/modules/ps_cashondelivery/01_installation/04_resetModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Cash on delivery (COD) module - Reset module\"", + "fullTitle": "Cash on delivery (COD) module - Reset module \"before all\" hook in \"Cash on delivery (COD) module - Reset module\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d814896-b7ab-4298-a471-79a105f01311", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Cash on delivery (COD) module - Reset module\"", + "fullTitle": "Cash on delivery (COD) module - Reset module \"after all\" hook in \"Cash on delivery (COD) module - Reset module\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d52843b-5f81-425b-9f19-9d0f0e76062b", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Cash on delivery (COD) module - Reset module should login in BO", + "timedOut": false, + "duration": 1772, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a8adf26-5fc9-42b6-be82-87181bb9b689", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Cash on delivery (COD) module - Reset module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d858108-c601-4d93-8d06-279e80c04839", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Cash on delivery (COD)", + "fullTitle": "Cash on delivery (COD) module - Reset module should search the module Cash on delivery (COD)", + "timedOut": false, + "duration": 627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psCashOnDelivery)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe978081-e60c-48ee-a6f9-43a035289729", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should display the reset modal and cancel it", + "fullTitle": "Cash on delivery (COD) module - Reset module should display the reset modal and cancel it", + "timedOut": false, + "duration": 1794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_resetModuleAndCancel\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isModuleVisible, isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModuleAndCancel', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psCashOnDelivery, 'reset', true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.eq('');\n return [4 /*yield*/, moduleManager_1.moduleManager.isModuleVisible(page, modules_1.default.psCashOnDelivery)];\n case 3:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [4 /*yield*/, moduleManager_1.moduleManager.isModalActionVisible(page, modules_1.default.psCashOnDelivery, 'reset')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40ebbeef-eebe-454a-b533-b9c448abd2d8", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the module", + "fullTitle": "Cash on delivery (COD) module - Reset module should reset the module", + "timedOut": false, + "duration": 2351, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_resetModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psCashOnDelivery, 'reset')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.resetModuleSuccessMessage(modules_1.default.psCashOnDelivery.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b84ae92c-3ece-4072-9f61-d924e579c2ac", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Front Office", + "fullTitle": "Cash on delivery (COD) module - Reset module should go to Front Office", + "timedOut": false, + "duration": 10046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db4c20a0-c9ef-4e92-8781-687b2d2082f6", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "Cash on delivery (COD) module - Reset module should go to login page", + "timedOut": false, + "duration": 715, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6210f8c8-0e19-40d4-90f1-cc9c7c7f0a7b", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "Cash on delivery (COD) module - Reset module should sign in with default customer", + "timedOut": false, + "duration": 642, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_sighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cfc11e18-75fa-412d-bf14-2e8038c45ce7", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart", + "fullTitle": "Cash on delivery (COD) module - Reset module should add the first product to the cart", + "timedOut": false, + "duration": 2966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Add first product to cart by quick view\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1)];\n case 3:\n // Add first product to cart by quick view\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5238c374-1756-47b3-8680-df3bc3dff751", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and check Step Address", + "fullTitle": "Cash on delivery (COD) module - Reset module should proceed to checkout and check Step Address", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_checkAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage, isStepPersonalInformationComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [4 /*yield*/, checkout_1.default.isStepCompleted(page, checkout_1.default.personalInformationStepForm)];\n case 4:\n isStepPersonalInformationComplete = _a.sent();\n (0, chai_1.expect)(isStepPersonalInformationComplete).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0483acda-5edb-4a07-b40d-c0a6248289b5", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Address and go to Delivery Step", + "fullTitle": "Cash on delivery (COD) module - Reset module should validate Step Address and go to Delivery Step", + "timedOut": false, + "duration": 798, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_checkDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c10e4c1d-f83e-499f-8fe4-9eb725e4f820", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "Cash on delivery (COD) module - Reset module should go to payment step", + "timedOut": false, + "duration": 301, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1489b79-3d2e-4c66-8b2c-3516e44d8efc", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + }, + { + "title": "should check the 'Cash on delivery (COD)' payment module", + "fullTitle": "Cash on delivery (COD) module - Reset module should check the 'Cash on delivery (COD)' payment module", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_installation_resetModule_checkPaymentModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isPaymentMethodExist(page, modules_1.default.psCashOnDelivery.tag)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6fbb06fd-689c-40d1-9e16-fe5ba23e9ff2", + "parentUUID": "0ab9d1c6-d175-40f0-b5c9-9dfba0ec8013", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2a8adf26-5fc9-42b6-be82-87181bb9b689", + "0d858108-c601-4d93-8d06-279e80c04839", + "fe978081-e60c-48ee-a6f9-43a035289729", + "40ebbeef-eebe-454a-b533-b9c448abd2d8", + "b84ae92c-3ece-4072-9f61-d924e579c2ac", + "db4c20a0-c9ef-4e92-8781-687b2d2082f6", + "6210f8c8-0e19-40d4-90f1-cc9c7c7f0a7b", + "cfc11e18-75fa-412d-bf14-2e8038c45ce7", + "5238c374-1756-47b3-8680-df3bc3dff751", + "0483acda-5edb-4a07-b40d-c0a6248289b5", + "c10e4c1d-f83e-499f-8fe4-9eb725e4f820", + "d1489b79-3d2e-4c66-8b2c-3516e44d8efc", + "6fbb06fd-689c-40d1-9e16-fe5ba23e9ff2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 28507, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "93161f87-f480-407e-a3c6-5f65781e21db", + "title": "Cash on delivery (COD) module - Place an order with it", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_cashondelivery/02_configuration/01_placeOrderWithIt.ts", + "file": "/campaigns/modules/ps_cashondelivery/02_configuration/01_placeOrderWithIt.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Cash on delivery (COD) module - Place an order with it\"", + "fullTitle": "Cash on delivery (COD) module - Place an order with it \"before all\" hook in \"Cash on delivery (COD) module - Place an order with it\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02c8a99e-6b2a-4703-ad3f-0d39047646aa", + "parentUUID": "93161f87-f480-407e-a3c6-5f65781e21db", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Cash on delivery (COD) module - Place an order with it\"", + "fullTitle": "Cash on delivery (COD) module - Place an order with it \"after all\" hook in \"Cash on delivery (COD) module - Place an order with it\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a7ea077b-4cf4-4055-97dc-189cfc83a00b", + "parentUUID": "93161f87-f480-407e-a3c6-5f65781e21db", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "title": "FO - Order a product with Cash on delivery payment", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_cashondelivery/02_configuration/01_placeOrderWithIt.ts", + "file": "/campaigns/modules/ps_cashondelivery/02_configuration/01_placeOrderWithIt.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO home page", + "fullTitle": "Cash on delivery (COD) module - Place an order with it FO - Order a product with Cash on delivery payment should go to FO home page", + "timedOut": false, + "duration": 448, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_goToFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17e5927f-1775-4a6f-a478-4248a4a343b4", + "parentUUID": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "Cash on delivery (COD) module - Place an order with it FO - Order a product with Cash on delivery payment should go to login page", + "timedOut": false, + "duration": 709, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7a886137-dce5-4176-84b3-f57f9ea41711", + "parentUUID": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "Cash on delivery (COD) module - Place an order with it FO - Order a product with Cash on delivery payment should sign in with default customer", + "timedOut": false, + "duration": 481, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_sighInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'sighInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edb3c8f8-bf65-411d-8ec9-04a2aa2565d6", + "parentUUID": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "isHook": false, + "skipped": false + }, + { + "title": "should add the first product to the cart", + "fullTitle": "Cash on delivery (COD) module - Place an order with it FO - Order a product with Cash on delivery payment should add the first product to the cart", + "timedOut": false, + "duration": 2893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n // Add first product to cart by quick view\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1)];\n case 3:\n // Add first product to cart by quick view\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ae8a363-d396-42bf-965d-62745598a0e4", + "parentUUID": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and check Step Address", + "fullTitle": "Cash on delivery (COD) module - Place an order with it FO - Order a product with Cash on delivery payment should proceed to checkout and check Step Address", + "timedOut": false, + "duration": 228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_checkAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage, isStepPersonalInformationComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [4 /*yield*/, checkout_1.default.isStepCompleted(page, checkout_1.default.personalInformationStepForm)];\n case 4:\n isStepPersonalInformationComplete = _a.sent();\n (0, chai_1.expect)(isStepPersonalInformationComplete).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06a77fcf-77ed-4181-bf50-e2f405bd6851", + "parentUUID": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Address and go to Delivery Step", + "fullTitle": "Cash on delivery (COD) module - Place an order with it FO - Order a product with Cash on delivery payment should validate Step Address and go to Delivery Step", + "timedOut": false, + "duration": 795, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_checkDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1b0879d-1a11-415d-904e-ee409f573d64", + "parentUUID": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "Cash on delivery (COD) module - Place an order with it FO - Order a product with Cash on delivery payment should go to payment step", + "timedOut": false, + "duration": 273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "478b9641-4303-495a-8cb0-b2690bc4d725", + "parentUUID": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "Cash on delivery (COD) module - Place an order with it FO - Order a product with Cash on delivery payment should choose payment method and confirm the order", + "timedOut": false, + "duration": 1317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.cashOnDelivery.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [4 /*yield*/, orderConfirmation_1.default.getOrderReferenceValue(page)];\n case 4:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference.length).to.be.gt(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "365d6f99-6331-4aef-9500-9f2c5c09120d", + "parentUUID": "2c3e39c1-fd2b-428e-b5c0-df062f5ee717", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "17e5927f-1775-4a6f-a478-4248a4a343b4", + "7a886137-dce5-4176-84b3-f57f9ea41711", + "edb3c8f8-bf65-411d-8ec9-04a2aa2565d6", + "5ae8a363-d396-42bf-965d-62745598a0e4", + "06a77fcf-77ed-4181-bf50-e2f405bd6851", + "d1b0879d-1a11-415d-904e-ee409f573d64", + "478b9641-4303-495a-8cb0-b2690bc4d725", + "365d6f99-6331-4aef-9500-9f2c5c09120d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7144, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "240a876f-5f2d-45b3-8ab5-90ceaad99a83", + "title": "BO - Check the last order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_cashondelivery/02_configuration/01_placeOrderWithIt.ts", + "file": "/campaigns/modules/ps_cashondelivery/02_configuration/01_placeOrderWithIt.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Cash on delivery (COD) module - Place an order with it BO - Check the last order should login in BO", + "timedOut": false, + "duration": 5360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "037d9873-8943-437a-9406-674068d1da30", + "parentUUID": "240a876f-5f2d-45b3-8ab5-90ceaad99a83", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "Cash on delivery (COD) module - Place an order with it BO - Check the last order should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 4298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7731ebe0-d802-4568-89dd-cf42b2f7a2bb", + "parentUUID": "240a876f-5f2d-45b3-8ab5-90ceaad99a83", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of orders", + "fullTitle": "Cash on delivery (COD) module - Place an order with it BO - Check the last order should reset all filters and get number of orders", + "timedOut": false, + "duration": 2009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_resetFiltersFirst\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrders;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFiltersFirst', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "036b2b53-90f9-4240-bbd1-6d2c4a49a2d7", + "parentUUID": "240a876f-5f2d-45b3-8ab5-90ceaad99a83", + "isHook": false, + "skipped": false + }, + { + "title": "should check the last order", + "fullTitle": "Cash on delivery (COD) module - Place an order with it BO - Check the last order should check the last order", + "timedOut": false, + "duration": 28, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_cashondelivery_configuration_placeOrderWithIt_checkLastOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var rowOrderReference, rowOrderPayment, rowOrderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLastOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 1)];\n case 2:\n rowOrderReference = _a.sent();\n (0, chai_1.expect)(rowOrderReference).to.be.equal(orderReference);\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'payment', 1)];\n case 3:\n rowOrderPayment = _a.sent();\n (0, chai_1.expect)(rowOrderPayment).to.be.equal(paymentMethods_1.default.cashOnDelivery.displayName);\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'osname', 1)];\n case 4:\n rowOrderStatus = _a.sent();\n (0, chai_1.expect)(rowOrderStatus).to.be.equal(orderStatuses_1.default.awaitingCashOnDelivery.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aee31cf1-c879-4e33-bbcd-ffdcbe517dcb", + "parentUUID": "240a876f-5f2d-45b3-8ab5-90ceaad99a83", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "037d9873-8943-437a-9406-674068d1da30", + "7731ebe0-d802-4568-89dd-cf42b2f7a2bb", + "036b2b53-90f9-4240-bbd1-6d2c4a49a2d7", + "aee31cf1-c879-4e33-bbcd-ffdcbe517dcb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11695, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "428abf68-61d8-4150-88fb-50aa1d205c5c", + "title": "Mail alerts module - Uninstall and install module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Uninstall and install module\"", + "fullTitle": "Mail alerts module - Uninstall and install module \"before all\" hook in \"Mail alerts module - Uninstall and install module\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9fb15d38-47be-4dbe-8ed0-f2a86d813d91", + "parentUUID": "428abf68-61d8-4150-88fb-50aa1d205c5c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Uninstall and install module\"", + "fullTitle": "Mail alerts module - Uninstall and install module \"after all\" hook in \"Mail alerts module - Uninstall and install module\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('module.zip')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2014e0e5-f676-4a14-ad22-4a1140544f26", + "parentUUID": "428abf68-61d8-4150-88fb-50aa1d205c5c", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "fd8e8bdb-e2bb-4143-9414-f9b9cc9f30eb", + "title": "PRE-TEST: Create product 'Product Out of stock not allowed'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'Product Out of stock not allowed'\"", + "fullTitle": "Mail alerts module - Uninstall and install module PRE-TEST: Create product 'Product Out of stock not allowed' \"before all\" hook in \"PRE-TEST: Create product 'Product Out of stock not allowed'\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7178e06c-3665-4bf2-9417-1c02113192c3", + "parentUUID": "fd8e8bdb-e2bb-4143-9414-f9b9cc9f30eb", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'Product Out of stock not allowed'\"", + "fullTitle": "Mail alerts module - Uninstall and install module PRE-TEST: Create product 'Product Out of stock not allowed' \"after all\" hook in \"PRE-TEST: Create product 'Product Out of stock not allowed'\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "da503905-ba33-4902-9213-205cebae290b", + "parentUUID": "fd8e8bdb-e2bb-4143-9414-f9b9cc9f30eb", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Uninstall and install module PRE-TEST: Create product 'Product Out of stock not allowed' should login in BO", + "timedOut": false, + "duration": 1762, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bef05a2b-3013-42fb-b343-b4af0308f7e8", + "parentUUID": "fd8e8bdb-e2bb-4143-9414-f9b9cc9f30eb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Uninstall and install module PRE-TEST: Create product 'Product Out of stock not allowed' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 5161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_preTest_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40bc5816-7439-476c-ab24-ceb7a1a02351", + "parentUUID": "fd8e8bdb-e2bb-4143-9414-f9b9cc9f30eb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "Mail alerts module - Uninstall and install module PRE-TEST: Create product 'Product Out of stock not allowed' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_preTest_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8169a0fc-0c52-4397-9e53-a8dca728daeb", + "parentUUID": "fd8e8bdb-e2bb-4143-9414-f9b9cc9f30eb", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "Mail alerts module - Uninstall and install module PRE-TEST: Create product 'Product Out of stock not allowed' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 911, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_preTest_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "502606f6-4041-45e2-813f-b494ecfd3774", + "parentUUID": "fd8e8bdb-e2bb-4143-9414-f9b9cc9f30eb", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "Mail alerts module - Uninstall and install module PRE-TEST: Create product 'Product Out of stock not allowed' should create product", + "timedOut": false, + "duration": 5514, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_preTest_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d8427cfc-d3a8-4741-a2a7-5b746ec640a8", + "parentUUID": "fd8e8bdb-e2bb-4143-9414-f9b9cc9f30eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bef05a2b-3013-42fb-b343-b4af0308f7e8", + "40bc5816-7439-476c-ab24-ceb7a1a02351", + "8169a0fc-0c52-4397-9e53-a8dca728daeb", + "502606f6-4041-45e2-813f-b494ecfd3774", + "d8427cfc-d3a8-4741-a2a7-5b746ec640a8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13573, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "40c71e7b-0069-4973-bd9a-1104123deca1", + "title": "BackOffice - Fetch the ID of the product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Fetch the ID of the product should login in BO", + "timedOut": false, + "duration": 1769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "766a619d-7812-42bd-a4ce-c19067939d18", + "parentUUID": "40c71e7b-0069-4973-bd9a-1104123deca1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Fetch the ID of the product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0758a4c-7ed7-4f77-8257-1e8d33d050b5", + "parentUUID": "40c71e7b-0069-4973-bd9a-1104123deca1", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'product_name'", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Fetch the ID of the product should filter list by 'product_name'", + "timedOut": false, + "duration": 1284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_filterProductName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterProductName', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productOutOfStockNotAllowed.name, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.eq(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'id_product', 1)];\n case 4:\n idProduct = (_a.sent());\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41329aba-c732-48b8-a8d5-172d909891e5", + "parentUUID": "40c71e7b-0069-4973-bd9a-1104123deca1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "766a619d-7812-42bd-a4ce-c19067939d18", + "b0758a4c-7ed7-4f77-8257-1e8d33d050b5", + "41329aba-c732-48b8-a8d5-172d909891e5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7014, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b86445a9-6716-4751-8fea-ec5348a49fec", + "title": "BackOffice - Uninstall Module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Uninstall Module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "263c91b1-5649-49dd-b0b1-27031a138969", + "parentUUID": "b86445a9-6716-4751-8fea-ec5348a49fec", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Uninstall Module should search the module Mail alerts", + "timedOut": false, + "duration": 586, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dbc76542-0e78-4978-b20a-b883f56c3e89", + "parentUUID": "b86445a9-6716-4751-8fea-ec5348a49fec", + "isHook": false, + "skipped": false + }, + { + "title": "should display the uninstall modal and cancel it", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Uninstall Module should display the uninstall modal and cancel it", + "timedOut": false, + "duration": 1893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_uninstallModuleAndCancel\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isModuleVisible, isModalVisible, dirExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModuleAndCancel', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psEmailAlerts, 'uninstall', true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.eq('');\n return [4 /*yield*/, moduleManager_1.moduleManager.isModuleVisible(page, modules_1.default.psEmailAlerts)];\n case 3:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [4 /*yield*/, moduleManager_1.moduleManager.isModalActionVisible(page, modules_1.default.psEmailAlerts, 'uninstall')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(false);\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/modules/\").concat(modules_1.default.psEmailAlerts.tag, \"/\"))];\n case 5:\n dirExists = _a.sent();\n (0, chai_1.expect)(dirExists).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9c3605d2-aa85-4c42-a93f-5dd70855f4f6", + "parentUUID": "b86445a9-6716-4751-8fea-ec5348a49fec", + "isHook": false, + "skipped": false + }, + { + "title": "should uninstall the module", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Uninstall Module should uninstall the module", + "timedOut": false, + "duration": 2952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage, dirExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psEmailAlerts, 'uninstall', false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uninstallModuleSuccessMessage(modules_1.default.psEmailAlerts.tag));\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/modules/\").concat(modules_1.default.psEmailAlerts.tag, \"/\"))];\n case 3:\n dirExists = _a.sent();\n (0, chai_1.expect)(dirExists).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c35563ac-64b6-42d6-ace5-d228fc3c3dd7", + "parentUUID": "b86445a9-6716-4751-8fea-ec5348a49fec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "263c91b1-5649-49dd-b0b1-27031a138969", + "dbc76542-0e78-4978-b20a-b883f56c3e89", + "9c3605d2-aa85-4c42-a93f-5dd70855f4f6", + "c35563ac-64b6-42d6-ace5-d228fc3c3dd7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11393, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "575f46bf-a1fe-4695-b6a5-ceeb50702778", + "title": "FrontOffice - Check that the module is not present", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Front Office", + "fullTitle": "Mail alerts module - Uninstall and install module FrontOffice - Check that the module is not present should go to Front Office", + "timedOut": false, + "duration": 9436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f988ce40-c127-4d56-a08e-02ef4a0aa3d3", + "parentUUID": "575f46bf-a1fe-4695-b6a5-ceeb50702778", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the All Products Page", + "fullTitle": "Mail alerts module - Uninstall and install module FrontOffice - Check that the module is not present should go to the All Products Page", + "timedOut": false, + "duration": 1009, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToAllProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8c9d606-5754-4f24-852d-e3f4441a9439", + "parentUUID": "575f46bf-a1fe-4695-b6a5-ceeb50702778", + "isHook": false, + "skipped": false + }, + { + "title": "should go the the second page", + "fullTitle": "Mail alerts module - Uninstall and install module FrontOffice - Check that the module is not present should go the the second page", + "timedOut": false, + "duration": 235, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToSecondPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSecondPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToNextPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.getNThChildFromIDProduct(page, idProduct)];\n case 3:\n nthProduct = _a.sent();\n (0, chai_1.expect)(nthProduct).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52128070-35bd-42ae-ba1d-7a2ceb2cc417", + "parentUUID": "575f46bf-a1fe-4695-b6a5-ceeb50702778", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "Mail alerts module - Uninstall and install module FrontOffice - Check that the module is not present should go to the product page", + "timedOut": false, + "duration": 2989, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, hasFlagOutOfStock, hasBlockMailAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToProductPage(page, nthProduct)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(productOutOfStockNotAllowed.name.toUpperCase());\n return [4 /*yield*/, product_2.default.hasProductFlag(page, 'out_of_stock')];\n case 4:\n hasFlagOutOfStock = _a.sent();\n (0, chai_1.expect)(hasFlagOutOfStock).to.be.equal(true);\n return [4 /*yield*/, product_2.default.hasBlockMailAlert(page)];\n case 5:\n hasBlockMailAlert = _a.sent();\n (0, chai_1.expect)(hasBlockMailAlert).to.be.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b0918a7c-aa46-4ad3-a8e2-03edcb03ae87", + "parentUUID": "575f46bf-a1fe-4695-b6a5-ceeb50702778", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f988ce40-c127-4d56-a08e-02ef4a0aa3d3", + "b8c9d606-5754-4f24-852d-e3f4441a9439", + "52128070-35bd-42ae-ba1d-7a2ceb2cc417", + "b0918a7c-aa46-4ad3-a8e2-03edcb03ae87" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13669, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c83624d4-0fb3-4a08-aec3-0ec24004f209", + "title": "BackOffice - Install the module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Install the module should go back to BO", + "timedOut": false, + "duration": 4769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goBackToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.reloadPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96d91809-33e4-45de-b3d2-8a77c1fd5429", + "parentUUID": "c83624d4-0fb3-4a08-aec3-0ec24004f209", + "isHook": false, + "skipped": false + }, + { + "title": "should install the module", + "fullTitle": "Mail alerts module - Uninstall and install module BackOffice - Install the module should install the module", + "timedOut": false, + "duration": 1012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_uninstallModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage, dirExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uninstallModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psEmailAlerts, 'install', false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.installModuleSuccessMessage(modules_1.default.psEmailAlerts.tag));\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/modules/\").concat(modules_1.default.psEmailAlerts.tag, \"/\"))];\n case 3:\n dirExists = _a.sent();\n (0, chai_1.expect)(dirExists).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0a9ba647-7cd6-4d24-86ca-25b1054676d5", + "parentUUID": "c83624d4-0fb3-4a08-aec3-0ec24004f209", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "96d91809-33e4-45de-b3d2-8a77c1fd5429", + "0a9ba647-7cd6-4d24-86ca-25b1054676d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5781, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ab9e90c-b4b2-48d6-9e78-721ff59bc9ad", + "title": "FrontOffice - Check that the module is present", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to Front Office", + "fullTitle": "Mail alerts module - Uninstall and install module FrontOffice - Check that the module is present should go to Front Office", + "timedOut": false, + "duration": 9470, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "660035f9-0f9a-4a95-a56a-f083deaa1546", + "parentUUID": "1ab9e90c-b4b2-48d6-9e78-721ff59bc9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the All Products Page", + "fullTitle": "Mail alerts module - Uninstall and install module FrontOffice - Check that the module is present should go to the All Products Page", + "timedOut": false, + "duration": 965, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToAllProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAllProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible, 'Home category page was not opened').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "781c69e1-a886-4808-9501-f7e5a2f5caf1", + "parentUUID": "1ab9e90c-b4b2-48d6-9e78-721ff59bc9ad", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "Mail alerts module - Uninstall and install module FrontOffice - Check that the module is present should go to the product page", + "timedOut": false, + "duration": 1181, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_goToProductPageWithMailAlert\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, hasFlagOutOfStock, hasBlockMailAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPageWithMailAlert', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToNextPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.goToProductPage(page, nthProduct)];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle.toUpperCase()).to.contains(productOutOfStockNotAllowed.name.toUpperCase());\n return [4 /*yield*/, product_2.default.hasProductFlag(page, 'out_of_stock')];\n case 5:\n hasFlagOutOfStock = _a.sent();\n (0, chai_1.expect)(hasFlagOutOfStock).to.be.equal(true);\n return [4 /*yield*/, product_2.default.hasBlockMailAlert(page)];\n case 6:\n hasBlockMailAlert = _a.sent();\n (0, chai_1.expect)(hasBlockMailAlert).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd17e813-dced-4683-bbdd-715f8429dab5", + "parentUUID": "1ab9e90c-b4b2-48d6-9e78-721ff59bc9ad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "660035f9-0f9a-4a95-a56a-f083deaa1546", + "781c69e1-a886-4808-9501-f7e5a2f5caf1", + "cd17e813-dced-4683-bbdd-715f8429dab5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11616, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "title": "POST-TEST: Delete product 'Product Out of stock not allowed'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "file": "/campaigns/modules/ps_emailalerts/01_installation/01_uninstallAndInstallModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Product Out of stock not allowed'\"", + "fullTitle": "Mail alerts module - Uninstall and install module POST-TEST: Delete product 'Product Out of stock not allowed' \"before all\" hook in \"POST-TEST: Delete product 'Product Out of stock not allowed'\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "837f6e97-7dc6-4c2d-9cfe-0f6762b05880", + "parentUUID": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Product Out of stock not allowed'\"", + "fullTitle": "Mail alerts module - Uninstall and install module POST-TEST: Delete product 'Product Out of stock not allowed' \"after all\" hook in \"POST-TEST: Delete product 'Product Out of stock not allowed'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a84d7f94-c743-4830-b4f4-51e00f2a9ca7", + "parentUUID": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Uninstall and install module POST-TEST: Delete product 'Product Out of stock not allowed' should login in BO", + "timedOut": false, + "duration": 5188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0151c293-6c25-4784-80cc-cca43a5f605f", + "parentUUID": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Uninstall and install module POST-TEST: Delete product 'Product Out of stock not allowed' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_postTest_0_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d300bdd-5fc2-42ea-9fc5-f3cf3b83cff8", + "parentUUID": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "Mail alerts module - Uninstall and install module POST-TEST: Delete product 'Product Out of stock not allowed' should reset all filters", + "timedOut": false, + "duration": 3019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_postTest_0_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9923409-8c87-480c-98f7-26edc0ba88b5", + "parentUUID": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "Mail alerts module - Uninstall and install module POST-TEST: Delete product 'Product Out of stock not allowed' should click on delete product button", + "timedOut": false, + "duration": 300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_postTest_0_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0602f30f-ae0f-4057-b60e-d498bdfa5e9e", + "parentUUID": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "Mail alerts module - Uninstall and install module POST-TEST: Delete product 'Product Out of stock not allowed' should delete product", + "timedOut": false, + "duration": 658, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_postTest_0_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e4426c6-fc73-4ada-b35e-e46aacf905cf", + "parentUUID": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "Mail alerts module - Uninstall and install module POST-TEST: Delete product 'Product Out of stock not allowed' should reset filter", + "timedOut": false, + "duration": 20, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_installation_uninstallAndInstallModule_postTest_0_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f363e0fd-103c-4f4d-9d13-711932840377", + "parentUUID": "5a785f5b-3b30-4c20-9395-c62982f4147c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0151c293-6c25-4784-80cc-cca43a5f605f", + "9d300bdd-5fc2-42ea-9fc5-f3cf3b83cff8", + "a9923409-8c87-480c-98f7-26edc0ba88b5", + "0602f30f-ae0f-4057-b60e-d498bdfa5e9e", + "5e4426c6-fc73-4ada-b35e-e46aacf905cf", + "f363e0fd-103c-4f4d-9d13-711932840377" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13502, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "26ac1def-624a-449a-86df-2a555c5782f7", + "title": "Mail alerts module - Customer notifications - Enable/Disable product availability", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Customer notifications - Enable/Disable product availability\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability \"before all\" hook in \"Mail alerts module - Customer notifications - Enable/Disable product availability\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "756762e6-ca7d-420e-817f-470c88146390", + "parentUUID": "26ac1def-624a-449a-86df-2a555c5782f7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Customer notifications - Enable/Disable product availability\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability \"after all\" hook in \"Mail alerts module - Customer notifications - Enable/Disable product availability\"", + "timedOut": false, + "duration": 20, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('module.zip')];\n case 2:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "a8754d38-b875-4e61-96c7-f3928ff7fa34", + "parentUUID": "26ac1def-624a-449a-86df-2a555c5782f7", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "e5fe0b31-9886-4251-a695-8981dafa927d", + "title": "PRE-TEST: Create product 'Intelligent Cotton Keyboard'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'Intelligent Cotton Keyboard'\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Create product 'Intelligent Cotton Keyboard' \"before all\" hook in \"PRE-TEST: Create product 'Intelligent Cotton Keyboard'\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5804bce7-a447-4c04-ab49-2cc0f8d56660", + "parentUUID": "e5fe0b31-9886-4251-a695-8981dafa927d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'Intelligent Cotton Keyboard'\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Create product 'Intelligent Cotton Keyboard' \"after all\" hook in \"PRE-TEST: Create product 'Intelligent Cotton Keyboard'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f81a94e2-177e-44d3-8057-2a0c37d609d9", + "parentUUID": "e5fe0b31-9886-4251-a695-8981dafa927d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Create product 'Intelligent Cotton Keyboard' should login in BO", + "timedOut": false, + "duration": 1774, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b377f631-94be-4a5f-9b38-5c58fd182412", + "parentUUID": "e5fe0b31-9886-4251-a695-8981dafa927d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Create product 'Intelligent Cotton Keyboard' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_preTest_1_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4479761b-d4cf-4d22-ac19-bb0c3646afe6", + "parentUUID": "e5fe0b31-9886-4251-a695-8981dafa927d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Create product 'Intelligent Cotton Keyboard' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_preTest_1_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a4e894f-3d6f-4349-9a15-040089cec08a", + "parentUUID": "e5fe0b31-9886-4251-a695-8981dafa927d", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Create product 'Intelligent Cotton Keyboard' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_preTest_1_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5588af24-b4af-4d23-997c-65d72c959a01", + "parentUUID": "e5fe0b31-9886-4251-a695-8981dafa927d", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Create product 'Intelligent Cotton Keyboard' should create product", + "timedOut": false, + "duration": 5278, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_preTest_1_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5c5c4ae-8839-4502-8937-0764ef36e2fc", + "parentUUID": "e5fe0b31-9886-4251-a695-8981dafa927d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b377f631-94be-4a5f-9b38-5c58fd182412", + "4479761b-d4cf-4d22-ac19-bb0c3646afe6", + "2a4e894f-3d6f-4349-9a15-040089cec08a", + "5588af24-b4af-4d23-997c-65d72c959a01", + "d5c5c4ae-8839-4502-8937-0764ef36e2fc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13126, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "44577d26-29c0-4cbb-a5af-0e6dc901e2b7", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "19be6373-4c5d-4847-8977-b47260b75e78", + "parentUUID": "44577d26-29c0-4cbb-a5af-0e6dc901e2b7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "74c45983-b60d-48db-a4b5-bee494fb7e6d", + "parentUUID": "44577d26-29c0-4cbb-a5af-0e6dc901e2b7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d98fa400-565a-480f-adde-a3307cfa907f", + "parentUUID": "44577d26-29c0-4cbb-a5af-0e6dc901e2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_preTest_2_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d99fcb3c-c90a-4c06-8b0c-55694150f836", + "parentUUID": "44577d26-29c0-4cbb-a5af-0e6dc901e2b7", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 575, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_preTest_2_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2eb934dc-417f-4764-a806-ec9ed6688724", + "parentUUID": "44577d26-29c0-4cbb-a5af-0e6dc901e2b7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d98fa400-565a-480f-adde-a3307cfa907f", + "d99fcb3c-c90a-4c06-8b0c-55694150f836", + "2eb934dc-417f-4764-a806-ec9ed6688724" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7177, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "81cf5825-91a8-4bda-a5f4-1a36664f930a", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1f5a0f0-f1dd-4f10-ba85-7a5a6c714d08", + "parentUUID": "81cf5825-91a8-4bda-a5f4-1a36664f930a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "ce73e4c1-9248-4f77-9b55-ce78bf4c4772", + "parentUUID": "81cf5825-91a8-4bda-a5f4-1a36664f930a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1731, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75f01310-ded3-46bf-a140-e0b37ee2e993", + "parentUUID": "81cf5825-91a8-4bda-a5f4-1a36664f930a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4670, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_preTest_3_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ad0a96e-0626-4711-a532-823d49331d6f", + "parentUUID": "81cf5825-91a8-4bda-a5f4-1a36664f930a", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 286, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_preTest_3_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88c5b9a6-ea00-4efd-97c6-ab8740b6c031", + "parentUUID": "81cf5825-91a8-4bda-a5f4-1a36664f930a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75f01310-ded3-46bf-a140-e0b37ee2e993", + "9ad0a96e-0626-4711-a532-823d49331d6f", + "88c5b9a6-ea00-4efd-97c6-ab8740b6c031" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6687, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ffe03c45-a185-4e9a-b73e-92cdcc260da7", + "title": "BO - Check Configure page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability BO - Check Configure page should login in BO", + "timedOut": false, + "duration": 1720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a12a3b22-69eb-41bd-b196-2033622113f8", + "parentUUID": "ffe03c45-a185-4e9a-b73e-92cdcc260da7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability BO - Check Configure page should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 6280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5b9b900e-70d3-4dfc-91f8-63fcdf631d6d", + "parentUUID": "ffe03c45-a185-4e9a-b73e-92cdcc260da7", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability BO - Check Configure page should search the module Mail alerts", + "timedOut": false, + "duration": 625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "054a8cb0-8364-4c9d-af06-4375e7313ed9", + "parentUUID": "ffe03c45-a185-4e9a-b73e-92cdcc260da7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability BO - Check Configure page should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1488, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, isChecked;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psEmailAlerts_1.default.pageTitle);\n return [4 /*yield*/, psEmailAlerts_1.default.getProductAvailabilityStatus(page)];\n case 4:\n isChecked = _a.sent();\n (0, chai_1.expect)(isChecked).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11c0f265-6334-42c0-884b-f567a5c466cf", + "parentUUID": "ffe03c45-a185-4e9a-b73e-92cdcc260da7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a12a3b22-69eb-41bd-b196-2033622113f8", + "5b9b900e-70d3-4dfc-91f8-63fcdf631d6d", + "054a8cb0-8364-4c9d-af06-4375e7313ed9", + "11c0f265-6334-42c0-884b-f567a5c466cf" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10113, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "title": "Case 1: You are not logged to your account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should define to \"No\" the \"Product Availability\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should define to \"No\" the \"Product Availability\"", + "timedOut": false, + "duration": 344, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_case1DefineNoProductAvailability\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'case1DefineNoProductAvailability', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setProductAvailabilityStatus(page, false)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.saveFormCustomerNotifications(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7aec7d56-8e80-405c-8d48-423bdf16b5e5", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the FO", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should go to the FO", + "timedOut": false, + "duration": 1804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47ab90ad-8905-4224-a109-77bf1deda934", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should search the product", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should search the product", + "timedOut": false, + "duration": 810, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_searchProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(searchResults_1.searchResultsPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34630c67-bf45-40b5-86a1-733d477bf773", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the product page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should go to the product page", + "timedOut": false, + "duration": 2952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, availabilityLabel, hasBlockMailAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [4 /*yield*/, product_2.default.getProductAvailabilityLabel(page)];\n case 4:\n availabilityLabel = _a.sent();\n (0, chai_1.expect)(availabilityLabel).to.contains('Out-of-Stock');\n return [4 /*yield*/, product_2.default.hasBlockMailAlert(page)];\n case 5:\n hasBlockMailAlert = _a.sent();\n (0, chai_1.expect)(hasBlockMailAlert).to.be.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a425a3f-6ae7-4e07-8574-3c24fd04b8fe", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should define to \"Yes\" the \"Product Availability\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should define to \"Yes\" the \"Product Availability\"", + "timedOut": false, + "duration": 336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_case1DefineYesProductAvailability\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'case1DefineYesProductAvailability', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psEmailAlerts_1.default.pageTitle);\n return [4 /*yield*/, psEmailAlerts_1.default.setProductAvailabilityStatus(page, true)];\n case 4:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.saveFormCustomerNotifications(page)];\n case 5:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45ebb228-fb3a-497d-9395-36215827c9d8", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should reload the product page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should reload the product page", + "timedOut": false, + "duration": 260, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_reloadProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, hasBlockMailAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'reloadProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 1)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, page.reload()];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [4 /*yield*/, product_2.default.hasBlockMailAlert(page)];\n case 5:\n hasBlockMailAlert = _a.sent();\n (0, chai_1.expect)(hasBlockMailAlert).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8363f157-ade8-4619-be0d-5d3ee3c08743", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the block \"Email Alerts\" with a valid email", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should fill the block \"Email Alerts\" with a valid email", + "timedOut": false, + "duration": 153, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_fillBlockValidEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillBlockValidEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.notifyEmailAlert(page, emailValid)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(product_2.default.messageAlertNotificationSaved);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "08c03fcb-c82e-4e5a-86dc-8970dcffb606", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the block \"Email Alerts\" with an invalid email", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should fill the block \"Email Alerts\" with an invalid email", + "timedOut": false, + "duration": 360, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_fillBlockInvalidEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillBlockInvalidEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, page.reload()];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.notifyEmailAlert(page, emailInvalid)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(product_2.default.messageAlertNotificationEmailInvalid);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c62734f2-31be-4e7e-a208-7d8f420e6756", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the block \"Email Alerts\" with numbers", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should fill the block \"Email Alerts\" with numbers", + "timedOut": false, + "duration": 95, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_fillBlockNumbers\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillBlockNumbers', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.notifyEmailAlert(page, '123456')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(product_2.default.messageAlertNotificationEmailInvalid);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "024ecf0d-b9db-4aee-b191-0cd868c9b464", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the block \"Email Alerts\" with invalid characters", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 1: You are not logged to your account on FO should fill the block \"Email Alerts\" with invalid characters", + "timedOut": false, + "duration": 98, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_fillBlockInvalidChars\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillBlockInvalidChars', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.notifyEmailAlert(page, '**¨¨@')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(product_2.default.messageAlertNotificationEmailInvalid);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c580035-9f00-4396-9533-fbd072b9c2a0", + "parentUUID": "a645e104-058a-4040-a2c4-d5c23babd9d1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7aec7d56-8e80-405c-8d48-423bdf16b5e5", + "47ab90ad-8905-4224-a109-77bf1deda934", + "34630c67-bf45-40b5-86a1-733d477bf773", + "1a425a3f-6ae7-4e07-8574-3c24fd04b8fe", + "45ebb228-fb3a-497d-9395-36215827c9d8", + "8363f157-ade8-4619-be0d-5d3ee3c08743", + "08c03fcb-c82e-4e5a-86dc-8970dcffb606", + "c62734f2-31be-4e7e-a208-7d8f420e6756", + "024ecf0d-b9db-4aee-b191-0cd868c9b464", + "5c580035-9f00-4396-9533-fbd072b9c2a0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7212, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "title": "Case 2: You are logged in to your account on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should define to \"No\" the \"Product Availability\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 2: You are logged in to your account on FO should define to \"No\" the \"Product Availability\"", + "timedOut": false, + "duration": 337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_case2DefineNoProductAvailability\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'case2DefineNoProductAvailability', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psEmailAlerts_1.default.pageTitle);\n return [4 /*yield*/, psEmailAlerts_1.default.setProductAvailabilityStatus(page, false)];\n case 4:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.saveFormCustomerNotifications(page)];\n case 5:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b6313c32-a577-4c6b-b517-70bf501baab0", + "parentUUID": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 2: You are logged in to your account on FO should go to login page", + "timedOut": false, + "duration": 697, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 1)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, product_2.default.goToLoginPage(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "551b369d-bb84-462c-b6df-f9e037a5a180", + "parentUUID": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "isHook": false, + "skipped": false + }, + { + "title": "should login on the Front Office", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 2: You are logged in to your account on FO should login on the Front Office", + "timedOut": false, + "duration": 654, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_loginFrontOffice\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected, pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFrontOffice', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9b52926f-e698-4afc-879c-03cc60544658", + "parentUUID": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the block \"Notify when it' available\" is not present", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 2: You are logged in to your account on FO should check the block \"Notify when it' available\" is not present", + "timedOut": false, + "duration": 2000, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_checkBlockNotPresent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasBlockMailAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBlockNotPresent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.hasBlockMailAlert(page)];\n case 2:\n hasBlockMailAlert = _a.sent();\n (0, chai_1.expect)(hasBlockMailAlert).to.be.equal(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "41b09a23-a7ce-4dd9-9d15-07a1793d8cd0", + "parentUUID": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "isHook": false, + "skipped": false + }, + { + "title": "should define to \"Yes\" the \"Product Availability\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 2: You are logged in to your account on FO should define to \"Yes\" the \"Product Availability\"", + "timedOut": false, + "duration": 310, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_case2DefineYesProductAvailability\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'case2DefineYesProductAvailability', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psEmailAlerts_1.default.pageTitle);\n return [4 /*yield*/, psEmailAlerts_1.default.setProductAvailabilityStatus(page, true)];\n case 4:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.saveFormCustomerNotifications(page)];\n case 5:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddf62cec-ffeb-4dbd-b55b-f7223e8ff01e", + "parentUUID": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "isHook": false, + "skipped": false + }, + { + "title": "should check the block \"Notify when it' available\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 2: You are logged in to your account on FO should check the block \"Notify when it' available\"", + "timedOut": false, + "duration": 261, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_checkBlockPresent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, hasBlockMailAlert;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkBlockPresent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 1)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, page.reload()];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [4 /*yield*/, product_2.default.hasBlockMailAlert(page)];\n case 5:\n hasBlockMailAlert = _a.sent();\n (0, chai_1.expect)(hasBlockMailAlert).to.be.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35d36724-9c45-4c90-a125-9cbde91627ce", + "parentUUID": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "isHook": false, + "skipped": false + }, + { + "title": "should click on \"Notify me when available\" button", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 2: You are logged in to your account on FO should click on \"Notify me when available\" button", + "timedOut": false, + "duration": 87, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_clickNotifyButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickNotifyButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.notifyEmailAlert(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(product_2.default.messageAlertNotificationSaved);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50b4933c-ddc9-44db-b1ef-cb221402f432", + "parentUUID": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "isHook": false, + "skipped": false + }, + { + "title": "should reload the page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Case 2: You are logged in to your account on FO should reload the page", + "timedOut": false, + "duration": 252, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_alertAlreadyRegistered\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'alertAlreadyRegistered', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, page.reload()];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_2.default.getBlockMailAlertNotification(page)];\n case 3:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(product_2.default.messageAlertNotificationAlreadyRegistered);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8142d6c4-6e8a-43af-9352-e05623d53294", + "parentUUID": "f8aadd4a-c3ea-4d91-a39f-6f71486e9cc0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b6313c32-a577-4c6b-b517-70bf501baab0", + "551b369d-bb84-462c-b6df-f9e037a5a180", + "9b52926f-e698-4afc-879c-03cc60544658", + "41b09a23-a7ce-4dd9-9d15-07a1793d8cd0", + "ddf62cec-ffeb-4dbd-b55b-f7223e8ff01e", + "35d36724-9c45-4c90-a125-9cbde91627ce", + "50b4933c-ddc9-44db-b1ef-cb221402f432", + "8142d6c4-6e8a-43af-9352-e05623d53294" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4598, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "title": "Check email for product availability", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91e54740-0490-4c70-8ccf-d8708968fb2c", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Intelligent Cotton Keyboard'", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should filter by name 'Intelligent Cotton Keyboard'", + "timedOut": false, + "duration": 1296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_filterProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productData.name, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.eq(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e7365d02-2fd2-4c32-ad6f-c79ce8586c25", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to product page and update product quantity to 1", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to product page and update product quantity to 1", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_updateQuantityTo1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantityTo1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setProductQuantity(page, 1)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dae8699-d756-4396-8b19-01de3afa3ec6", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should check received email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_checkEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmail', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(numberOfEmails).to.equal(2);\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Product available\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61c51dd0-031a-4a92-a207-a3b27e07e6f1", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should add the created product to the cart", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should add the created product to the cart", + "timedOut": false, + "duration": 5692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.changePage(browserContext, 1)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, page.reload()];\n case 3:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_2.default.addProductToTheCart(page, 1)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e8298c4-9ff3-4593-8251-d416a91e91a4", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to delivery step", + "timedOut": false, + "duration": 1008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d9cc724-abd2-4748-bd9f-d0b75d7e5730", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to payment step", + "timedOut": false, + "duration": 279, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12520396-08bf-43db-a307-2a47fec71ad6", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should choose payment method and confirm the order", + "timedOut": false, + "duration": 1367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e1d4cdc-d60f-4d28-94f4-a0cfc31dc3be", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the created product page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to the created product page", + "timedOut": false, + "duration": 1918, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToCreatedProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreatedProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.searchProduct(page, productData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 4:\n _a.sent();\n return [4 /*yield*/, product_2.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e946758-ed7f-4b94-8988-0c0529626420", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Notify me when available' button", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should click on 'Notify me when available' button", + "timedOut": false, + "duration": 75, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_clickNotifyButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickNotifyButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.notifyEmailAlert(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(product_2.default.messageAlertNotificationSaved);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e81bcb06-0bce-45e1-bbd2-8d4111890cfd", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to orders page", + "timedOut": false, + "duration": 4019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, page.reload()];\n case 3:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 4:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ab08e0a-7d3a-4140-9c4c-a00d9676b874", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Delivered' and check it", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should change the order status to 'Delivered' and check it", + "timedOut": false, + "duration": 969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.delivered)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cd0f7e2-68db-4964-89d6-e982f3969779", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to the first order page", + "timedOut": false, + "duration": 996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToOrderPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderPage1', baseContext)];\n case 1:\n _a.sent();\n // View order\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n // View order\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(tabListBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc78c895-e0ff-4be5-82f5-34a99e9da892", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on return products button and type the quantity", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should click on return products button and type the quantity", + "timedOut": false, + "duration": 1370, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_returnProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, tabListBlock_1.default.clickOnReturnProductsButton(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.checkReturnedQuantity(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.clickOnReturnProducts(page)];\n case 4:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq('The product was successfully returned.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72f36e80-49e9-4856-8b0e-a07b3776c1c4", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should check received email", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_checkEmail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmail2', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails.length).to.equal(numberOfEmails + 4);\n (0, chai_1.expect)(allEmails[allEmails.length - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Product available\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "003ea7e3-29d1-4fa3-a617-de9dfba55635", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3619, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToProductsPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e1f5537a-a4b7-4da7-9bf4-a2d068e85cf9", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Intelligent Cotton Keyboard'", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should filter by name 'Intelligent Cotton Keyboard'", + "timedOut": false, + "duration": 1257, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_filterByName2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterByName2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', productData.name, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.eq(productData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ab226fc7-44d2-47c6-bf4a-b68b45c69664", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to product page and update product quantity to 0", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to product page and update product quantity to 0", + "timedOut": false, + "duration": 2523, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_updateQuantityToO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var message;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantityToO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocksTab_1.default.setProductQuantity(page, 0)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 4:\n message = _a.sent();\n (0, chai_1.expect)(message).to.eq(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f754bc4-0c28-44d0-b543-87da96dd11de", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'Notify me when available' button", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should click on 'Notify me when available' button", + "timedOut": false, + "duration": 397, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_clickNotifyButton1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickNotifyButton1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.changePage(browserContext, 1)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, page.reload()];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_2.default.notifyEmailAlert(page)];\n case 4:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.be.equal(product_2.default.messageAlertNotificationSaved);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ac558798-d339-4c24-96ba-e9f5352dc81e", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should go to stocks page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should go to stocks page", + "timedOut": false, + "duration": 5444, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_2.default.changePage(browserContext, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 5:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4d60e67d-794a-4d71-9092-8e4d2870756a", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Intelligent Cotton Keyboard'", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should filter by name 'Intelligent Cotton Keyboard'", + "timedOut": false, + "duration": 1185, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_filterStocks\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterStocks', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, productData.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "032ce8d4-431c-4276-b247-ff964cb44829", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should update product quantity to 1", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should update product quantity to 1", + "timedOut": false, + "duration": 336, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_updateQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.updateRowQuantityWithInput(page, 1, 1)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb059645-4453-4303-bad4-155a646aa3d6", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability Check email for product availability should check received email", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_checkEmail3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmail3', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails.length).to.equal(numberOfEmails + 5);\n (0, chai_1.expect)(allEmails[allEmails.length - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Product available\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b3a3298-674e-48dd-915a-75333dc0ba6a", + "parentUUID": "502247c2-b3c3-496b-a2a5-91f4932cacfb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "91e54740-0490-4c70-8ccf-d8708968fb2c", + "e7365d02-2fd2-4c32-ad6f-c79ce8586c25", + "5dae8699-d756-4396-8b19-01de3afa3ec6", + "61c51dd0-031a-4a92-a207-a3b27e07e6f1", + "2e8298c4-9ff3-4593-8251-d416a91e91a4", + "3d9cc724-abd2-4748-bd9f-d0b75d7e5730", + "12520396-08bf-43db-a307-2a47fec71ad6", + "2e1d4cdc-d60f-4d28-94f4-a0cfc31dc3be", + "5e946758-ed7f-4b94-8988-0c0529626420", + "e81bcb06-0bce-45e1-bbd2-8d4111890cfd", + "4ab08e0a-7d3a-4140-9c4c-a00d9676b874", + "9cd0f7e2-68db-4964-89d6-e982f3969779", + "cc78c895-e0ff-4be5-82f5-34a99e9da892", + "72f36e80-49e9-4856-8b0e-a07b3776c1c4", + "003ea7e3-29d1-4fa3-a617-de9dfba55635", + "e1f5537a-a4b7-4da7-9bf4-a2d068e85cf9", + "ab226fc7-44d2-47c6-bf4a-b68b45c69664", + "5f754bc4-0c28-44d0-b543-87da96dd11de", + "ac558798-d339-4c24-96ba-e9f5352dc81e", + "4d60e67d-794a-4d71-9092-8e4d2870756a", + "032ce8d4-431c-4276-b247-ff964cb44829", + "cb059645-4453-4303-bad4-155a646aa3d6", + "2b3a3298-674e-48dd-915a-75333dc0ba6a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 40359, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "title": "POST-TEST: Delete product 'Intelligent Cotton Keyboard'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Intelligent Cotton Keyboard'\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Delete product 'Intelligent Cotton Keyboard' \"before all\" hook in \"POST-TEST: Delete product 'Intelligent Cotton Keyboard'\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "71c3e6f5-62af-4dfa-bc53-1efb47ff1c5b", + "parentUUID": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Intelligent Cotton Keyboard'\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Delete product 'Intelligent Cotton Keyboard' \"after all\" hook in \"POST-TEST: Delete product 'Intelligent Cotton Keyboard'\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4458e5b1-4d6c-424b-b78e-99b07af815e0", + "parentUUID": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Delete product 'Intelligent Cotton Keyboard' should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bebfb15d-7d3e-4d18-bed8-29821d432cc4", + "parentUUID": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Delete product 'Intelligent Cotton Keyboard' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_1_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e8ed3ea4-3a1e-4307-bfa9-b1930104c0ef", + "parentUUID": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Delete product 'Intelligent Cotton Keyboard' should reset all filters", + "timedOut": false, + "duration": 2961, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_1_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4872b288-16aa-4188-a3e7-c3bb0a9b359a", + "parentUUID": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Delete product 'Intelligent Cotton Keyboard' should click on delete product button", + "timedOut": false, + "duration": 299, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_1_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "084b9944-2d0b-4761-9957-2e6fe6e018a1", + "parentUUID": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Delete product 'Intelligent Cotton Keyboard' should delete product", + "timedOut": false, + "duration": 695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_1_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4097f951-7f72-4b8f-b636-216a43f40684", + "parentUUID": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Delete product 'Intelligent Cotton Keyboard' should reset filter", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_1_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "745c48bd-54d2-49ee-a167-04f73fb7317e", + "parentUUID": "c8d5cdfa-3004-4d34-a521-581ec3d7208d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bebfb15d-7d3e-4d18-bed8-29821d432cc4", + "e8ed3ea4-3a1e-4307-bfa9-b1930104c0ef", + "4872b288-16aa-4188-a3e7-c3bb0a9b359a", + "084b9944-2d0b-4761-9957-2e6fe6e018a1", + "4097f951-7f72-4b8f-b636-216a43f40684", + "745c48bd-54d2-49ee-a167-04f73fb7317e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9573, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "68c4a918-79bc-4793-996c-c16051d35c47", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0689fa56-0313-47ef-a63b-8afb3e22edea", + "parentUUID": "68c4a918-79bc-4793-996c-c16051d35c47", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "48f766f3-8485-43bc-b4ea-5ed18ba53c6f", + "parentUUID": "68c4a918-79bc-4793-996c-c16051d35c47", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1785, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7cf1dbe-d01c-4c76-b14a-3bd10cc9a910", + "parentUUID": "68c4a918-79bc-4793-996c-c16051d35c47", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db276755-887f-4b29-acf9-73ea2a7c6219", + "parentUUID": "68c4a918-79bc-4793-996c-c16051d35c47", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2892d251-17e0-4ba4-8f8f-ef8040cb5f9f", + "parentUUID": "68c4a918-79bc-4793-996c-c16051d35c47", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a7cf1dbe-d01c-4c76-b14a-3bd10cc9a910", + "db276755-887f-4b29-acf9-73ea2a7c6219", + "2892d251-17e0-4ba4-8f8f-ef8040cb5f9f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7049, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d748c491-e598-4728-ae7b-bd4d258dc270", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/01_enableDisableProductAvailability.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "070a4463-e1c7-4727-b3e8-d2b33c72f0a7", + "parentUUID": "d748c491-e598-4728-ae7b-bd4d258dc270", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 14, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c02a0b36-b8c0-49e2-af45-b72edf24ddaf", + "parentUUID": "d748c491-e598-4728-ae7b-bd4d258dc270", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1708, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50cafbb6-bc34-492f-8143-d1e55a93a2f0", + "parentUUID": "d748c491-e598-4728-ae7b-bd4d258dc270", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3606, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_3_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d54ea21-94fc-4d8a-8b30-f2072a80c8ce", + "parentUUID": "d748c491-e598-4728-ae7b-bd4d258dc270", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "Mail alerts module - Customer notifications - Enable/Disable product availability POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableProductAvailability_postTest_3_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3791f42b-fd9b-4f8f-9b28-5591f09d820f", + "parentUUID": "d748c491-e598-4728-ae7b-bd4d258dc270", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "50cafbb6-bc34-492f-8143-d1e55a93a2f0", + "2d54ea21-94fc-4d8a-8b30-f2072a80c8ce", + "3791f42b-fd9b-4f8f-9b28-5591f09d820f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5582, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3c9582b9-f2fb-44e3-86e6-50487005b67d", + "title": "Mail alerts module - Enable/Disable return", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Enable/Disable return\"", + "fullTitle": "Mail alerts module - Enable/Disable return \"before all\" hook in \"Mail alerts module - Enable/Disable return\"", + "timedOut": false, + "duration": 51, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n // Get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56c33856-6f6a-4298-aeda-3c48fbf98913", + "parentUUID": "3c9582b9-f2fb-44e3-86e6-50487005b67d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Enable/Disable return\"", + "fullTitle": "Mail alerts module - Enable/Disable return \"after all\" hook in \"Mail alerts module - Enable/Disable return\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bd965ac4-5bc9-4ac7-b86d-fbe976d44395", + "parentUUID": "3c9582b9-f2fb-44e3-86e6-50487005b67d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56ba1c6b-95cd-49b7-a7b1-57154df5e46d", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "13a13a6a-2675-4172-bb06-4fd589244252", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1779, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "637b16d6-92f1-4eb5-9d87-405c9fe98650", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "93f0ffac-f7be-4a90-b5c4-909812542212", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 615, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6dea7d22-275d-4bfd-afb9-f3cf858c1a46", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7050, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5445e5d-f6a9-41bd-b40c-fbb9441c086c", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "79ee4a3b-768f-440f-b898-fa2aff7341f9", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6013824-587a-45ea-8739-c95fe4be9cef", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "721c4e24-d63c-4611-aa8d-388c20971e8a", + "parentUUID": "cd4d8d09-3321-4bce-85aa-cea67b3dd63b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "637b16d6-92f1-4eb5-9d87-405c9fe98650", + "93f0ffac-f7be-4a90-b5c4-909812542212", + "6dea7d22-275d-4bfd-afb9-f3cf858c1a46", + "c5445e5d-f6a9-41bd-b40c-fbb9441c086c", + "79ee4a3b-768f-440f-b898-fa2aff7341f9", + "d6013824-587a-45ea-8739-c95fe4be9cef", + "721c4e24-d63c-4611-aa8d-388c20971e8a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12928, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4be383f9-45b0-4219-9dfb-5fd80738d73b", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17967bc9-dd85-4d11-98df-d348f0af4a68", + "parentUUID": "4be383f9-45b0-4219-9dfb-5fd80738d73b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d32ebca-709a-44d3-a2e1-68077d2e8c96", + "parentUUID": "4be383f9-45b0-4219-9dfb-5fd80738d73b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "281ff059-8791-47f0-a2d6-73cc25e7f11f", + "parentUUID": "4be383f9-45b0-4219-9dfb-5fd80738d73b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4874, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_2_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2d65854b-9eb7-4461-9450-37633b592bd0", + "parentUUID": "4be383f9-45b0-4219-9dfb-5fd80738d73b", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 563, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_preTest_2_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24103804-8c86-4028-b932-9e220dbf5ecd", + "parentUUID": "4be383f9-45b0-4219-9dfb-5fd80738d73b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "281ff059-8791-47f0-a2d6-73cc25e7f11f", + "2d65854b-9eb7-4461-9450-37633b592bd0", + "24103804-8c86-4028-b932-9e220dbf5ecd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7151, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8465f596-8ec6-4e9a-b978-1e955f6c0702", + "title": "BO: case 1 - Enable 'Order edit' in the module 'Mail alerts'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Order edit' in the module 'Mail alerts' should login in BO", + "timedOut": false, + "duration": 1685, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50781a97-78ac-4ab0-90d8-5ecf7bb0a51a", + "parentUUID": "8465f596-8ec6-4e9a-b978-1e955f6c0702", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Order edit' in the module 'Mail alerts' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5244, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4086470c-6958-4b2d-8181-06cffb6632ee", + "parentUUID": "8465f596-8ec6-4e9a-b978-1e955f6c0702", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Order edit' in the module 'Mail alerts' should search the module Mail alerts", + "timedOut": false, + "duration": 633, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3026e8d-cf82-4b95-8ede-f621726467ea", + "parentUUID": "8465f596-8ec6-4e9a-b978-1e955f6c0702", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Order edit' in the module 'Mail alerts' should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "660b0c49-d317-44a8-8e46-3a1d0b6e91a8", + "parentUUID": "8465f596-8ec6-4e9a-b978-1e955f6c0702", + "isHook": false, + "skipped": false + }, + { + "title": "should enable edit order", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Order edit' in the module 'Mail alerts' should enable edit order", + "timedOut": false, + "duration": 864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_enableEditOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableEditOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setEditOrder(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d385f809-b2c1-4bcf-8a45-b672400ac929", + "parentUUID": "8465f596-8ec6-4e9a-b978-1e955f6c0702", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "50781a97-78ac-4ab0-90d8-5ecf7bb0a51a", + "4086470c-6958-4b2d-8181-06cffb6632ee", + "d3026e8d-cf82-4b95-8ede-f621726467ea", + "660b0c49-d317-44a8-8e46-3a1d0b6e91a8", + "d385f809-b2c1-4bcf-8a45-b672400ac929" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9856, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "title": "BO: Edit the created order and check emails", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check emails should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34038621-48bf-4516-a44d-7015e62ea250", + "parentUUID": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check emails should go to the first order page", + "timedOut": false, + "duration": 903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_goToFirstOrderPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7b18c853-e82e-4e6d-8164-f3cc30721e31", + "parentUUID": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "isHook": false, + "skipped": false + }, + { + "title": "should update quantity of the ordered product", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check emails should update quantity of the ordered product", + "timedOut": false, + "duration": 2203, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_updateQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.modifyProductQuantity(page, 1, 5)];\n case 2:\n quantity = _a.sent();\n (0, chai_1.expect)(quantity, 'Quantity was not updated').to.equal(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0dd114c3-f570-4fff-896b-7dd1ed73f316", + "parentUUID": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check emails should check that the confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_checkMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail', baseContext)];\n case 1:\n _a.sent();\n newEmailsNumber = allEmails.length;\n (0, chai_1.expect)(newMail.subject).to.contains(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Your order has been changed\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6989fa20-5ac7-49c7-880d-51bede599611", + "parentUUID": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product 'Customizable mug' to the cart", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check emails should add the product 'Customizable mug' to the cart", + "timedOut": false, + "duration": 1773, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_addCustomizedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCustomizedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, products_1.default.demo_14.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "436f1347-1037-43a3-afc3-9eb3bb9827f0", + "parentUUID": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check emails should check that the confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_checkMail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail2', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails.length).to.equal(newEmailsNumber + 1);\n (0, chai_1.expect)(newMail.subject).to.contains(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Your order has been changed\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "15fef4ab-7e39-4f21-8def-5ca34be5f213", + "parentUUID": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the first product", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check emails should delete the first product", + "timedOut": false, + "duration": 4367, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteProduct(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulDeleteProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "337568ed-a65d-466f-ba59-8f1c3851a04a", + "parentUUID": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check emails should check that the confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_checkMail3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail3', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails.length).to.equal(newEmailsNumber + 2);\n (0, chai_1.expect)(newMail.subject).to.contains(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Your order has been changed\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6dfba44-1770-490a-a8e0-2e33d378b295", + "parentUUID": "c9b33187-c6e0-407d-b8bf-3cf384bc5111", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "34038621-48bf-4516-a44d-7015e62ea250", + "7b18c853-e82e-4e6d-8164-f3cc30721e31", + "0dd114c3-f570-4fff-896b-7dd1ed73f316", + "6989fa20-5ac7-49c7-880d-51bede599611", + "436f1347-1037-43a3-afc3-9eb3bb9827f0", + "15fef4ab-7e39-4f21-8def-5ca34be5f213", + "337568ed-a65d-466f-ba59-8f1c3851a04a", + "e6dfba44-1770-490a-a8e0-2e33d378b295" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12862, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "32a7d07e-3461-4fda-bcc2-3aab480c1bab", + "title": "BO: case 2 - Disable 'Order edit' in the module 'Mail alerts'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 2 - Disable 'Order edit' in the module 'Mail alerts' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 4852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_goToModuleManagerPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0875726c-2e14-466e-96b4-969cf0c3c0e4", + "parentUUID": "32a7d07e-3461-4fda-bcc2-3aab480c1bab", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 2 - Disable 'Order edit' in the module 'Mail alerts' should search the module Mail alerts", + "timedOut": false, + "duration": 587, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_searchModule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a407637-f253-4373-b03b-351078cdfa7d", + "parentUUID": "32a7d07e-3461-4fda-bcc2-3aab480c1bab", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 2 - Disable 'Order edit' in the module 'Mail alerts' should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1378, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_goToConfigurationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e874919c-ee1d-4121-a00c-df5a3815350a", + "parentUUID": "32a7d07e-3461-4fda-bcc2-3aab480c1bab", + "isHook": false, + "skipped": false + }, + { + "title": "should disable order edit", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 2 - Disable 'Order edit' in the module 'Mail alerts' should disable order edit", + "timedOut": false, + "duration": 896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_disableNewOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableNewOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setEditOrder(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70263ef3-6dd9-4245-aa99-71ea6fa86b54", + "parentUUID": "32a7d07e-3461-4fda-bcc2-3aab480c1bab", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0875726c-2e14-466e-96b4-969cf0c3c0e4", + "4a407637-f253-4373-b03b-351078cdfa7d", + "e874919c-ee1d-4121-a00c-df5a3815350a", + "70263ef3-6dd9-4245-aa99-71ea6fa86b54" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7713, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "title": "BO: Edit the created order and check that no emails received", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check that no emails received should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3590, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_goToOrdersPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "866d5d1d-e945-4898-b0f1-ec3f174b07d7", + "parentUUID": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check that no emails received should go to the first order page", + "timedOut": false, + "duration": 825, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_goToFirstOrderPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrderPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3d5160f-bc88-4030-9083-81116a3c9cb3", + "parentUUID": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "isHook": false, + "skipped": false + }, + { + "title": "should update quantity of the ordered product", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check that no emails received should update quantity of the ordered product", + "timedOut": false, + "duration": 695, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_updateQuantity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var quantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantity2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.modifyProductQuantity(page, 1, 4)];\n case 2:\n quantity = _a.sent();\n (0, chai_1.expect)(quantity, 'Quantity was not updated').to.equal(4);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aecd545c-8e27-4a48-8990-deaf8cffc06e", + "parentUUID": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is not received", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check that no emails received should check that the confirmation mail is not received", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_checkMail4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail4', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails.length).to.equal(newEmailsNumber + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1466da4d-4ff1-4de2-9305-457e38266f9c", + "parentUUID": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "isHook": false, + "skipped": false + }, + { + "title": "should add the product 'Customizable mug' to the cart", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check that no emails received should add the product 'Customizable mug' to the cart", + "timedOut": false, + "duration": 1809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_addProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.searchProduct(page, products_1.default.demo_12.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.addProductToCart(page)];\n case 3:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulAddProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5af607c9-5130-469d-8648-2d8fb89d75d4", + "parentUUID": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is not received", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check that no emails received should check that the confirmation mail is not received", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_checkMail5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail5', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails.length).to.equal(newEmailsNumber + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3448e9bb-9a09-41d3-9d2b-94ece48786b3", + "parentUUID": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the first product", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check that no emails received should delete the first product", + "timedOut": false, + "duration": 4088, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_deleteProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.deleteProduct(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(productsBlock_1.default.successfulDeleteProductMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd297bbe-69de-4843-a309-3f678733df38", + "parentUUID": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is not received", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Edit the created order and check that no emails received should check that the confirmation mail is not received", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_checkMail6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail6', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails.length).to.equal(newEmailsNumber + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f57315d2-2001-470f-88ca-f6d4efa829e2", + "parentUUID": "0ffd8e1a-e21c-42ec-985f-e51e328d4503", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "866d5d1d-e945-4898-b0f1-ec3f174b07d7", + "f3d5160f-bc88-4030-9083-81116a3c9cb3", + "aecd545c-8e27-4a48-8990-deaf8cffc06e", + "1466da4d-4ff1-4de2-9305-457e38266f9c", + "5af607c9-5130-469d-8648-2d8fb89d75d4", + "3448e9bb-9a09-41d3-9d2b-94ece48786b3", + "dd297bbe-69de-4843-a309-3f678733df38", + "f57315d2-2001-470f-88ca-f6d4efa829e2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11008, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bf2ac045-dce0-4e9d-8850-28a4b7603603", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/01_customerNotifications/02_enableDisableOrderEdit.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bbaa71f-4341-4ead-a015-60b3853fccbe", + "parentUUID": "bf2ac045-dce0-4e9d-8850-28a4b7603603", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c34d6503-4d2a-4873-9fb2-b91d830577ca", + "parentUUID": "bf2ac045-dce0-4e9d-8850-28a4b7603603", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1749, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61a8a4a0-637b-43ba-a1a5-02ffdd92fe77", + "parentUUID": "bf2ac045-dce0-4e9d-8850-28a4b7603603", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2b4cf72-c71d-4199-956b-e866649cf10c", + "parentUUID": "bf2ac045-dce0-4e9d-8850-28a4b7603603", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 386, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_customerNotifications_enableDisableOrderEdit_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f3dc534c-632e-493d-adeb-69cd1b2c6428", + "parentUUID": "bf2ac045-dce0-4e9d-8850-28a4b7603603", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "61a8a4a0-637b-43ba-a1a5-02ffdd92fe77", + "b2b4cf72-c71d-4199-956b-e866649cf10c", + "f3dc534c-632e-493d-adeb-69cd1b2c6428" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7016, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "06c109c7-89ca-4ad6-ad09-4f385aa955e7", + "title": "Mail alerts module - Enable/Disable new order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Enable/Disable new order\"", + "fullTitle": "Mail alerts module - Enable/Disable new order \"before all\" hook in \"Mail alerts module - Enable/Disable new order\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29e6d5ad-bc89-45b3-9a8f-9c778a971c0c", + "parentUUID": "06c109c7-89ca-4ad6-ad09-4f385aa955e7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Enable/Disable new order\"", + "fullTitle": "Mail alerts module - Enable/Disable new order \"after all\" hook in \"Mail alerts module - Enable/Disable new order\"", + "timedOut": false, + "duration": 18, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "34a38623-0bf7-47c9-b11f-2c36f4cf988d", + "parentUUID": "06c109c7-89ca-4ad6-ad09-4f385aa955e7", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "3e022679-b445-4beb-bbdd-a678d31c59b8", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable new order PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cb5d73d8-0515-48fd-8d9d-9c945b8c80ee", + "parentUUID": "3e022679-b445-4beb-bbdd-a678d31c59b8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable new order PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f8c190b5-fe60-40c1-8ce6-5143f6400167", + "parentUUID": "3e022679-b445-4beb-bbdd-a678d31c59b8", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable new order PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "367acbbe-62fd-4fdb-b1a7-11f2841c8ae2", + "parentUUID": "3e022679-b445-4beb-bbdd-a678d31c59b8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable new order PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_preTest_4_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea37a3c2-5a59-4f09-8661-2c5cb9399bcd", + "parentUUID": "3e022679-b445-4beb-bbdd-a678d31c59b8", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "Mail alerts module - Enable/Disable new order PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 603, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_preTest_4_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bad720b8-2abe-4bbe-9edc-4d8b2023e8cc", + "parentUUID": "3e022679-b445-4beb-bbdd-a678d31c59b8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "367acbbe-62fd-4fdb-b1a7-11f2841c8ae2", + "ea37a3c2-5a59-4f09-8661-2c5cb9399bcd", + "bad720b8-2abe-4bbe-9edc-4d8b2023e8cc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7281, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "65792340-25f6-4161-b3e7-4a0eddb40c94", + "title": "BO: case 1 - Enable 'New order' in the module 'Mail alerts'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 1 - Enable 'New order' in the module 'Mail alerts' should login in BO", + "timedOut": false, + "duration": 1711, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48837d9b-8808-4d5f-8528-dc08e533ca01", + "parentUUID": "65792340-25f6-4161-b3e7-4a0eddb40c94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 1 - Enable 'New order' in the module 'Mail alerts' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2dc9ff66-9522-40bd-b729-c14b4145941d", + "parentUUID": "65792340-25f6-4161-b3e7-4a0eddb40c94", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 1 - Enable 'New order' in the module 'Mail alerts' should search the module Mail alerts", + "timedOut": false, + "duration": 616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "953fcae8-a900-4676-ba5d-2a1646722561", + "parentUUID": "65792340-25f6-4161-b3e7-4a0eddb40c94", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 1 - Enable 'New order' in the module 'Mail alerts' should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1398, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3aca5384-b42b-4f76-a172-e04d74133491", + "parentUUID": "65792340-25f6-4161-b3e7-4a0eddb40c94", + "isHook": false, + "skipped": false + }, + { + "title": "should enable new order and set email", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 1 - Enable 'New order' in the module 'Mail alerts' should enable new order and set email", + "timedOut": false, + "duration": 1031, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_enableNewOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableNewOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setNewOrder(page, true, 'demo@prestashop.com')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49d29873-f80d-4132-98d1-936ab47b324b", + "parentUUID": "65792340-25f6-4161-b3e7-4a0eddb40c94", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "48837d9b-8808-4d5f-8528-dc08e533ca01", + "2dc9ff66-9522-40bd-b729-c14b4145941d", + "953fcae8-a900-4676-ba5d-2a1646722561", + "3aca5384-b42b-4f76-a172-e04d74133491", + "49d29873-f80d-4132-98d1-936ab47b324b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9946, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c8dbb5d5-1565-4e7c-8b6e-527b8cd98894", + "title": "FO: Create new order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create new order should view my shop", + "timedOut": false, + "duration": 1692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2afd5dfe-818b-4cc4-96c4-184942e19911", + "parentUUID": "c8dbb5d5-1565-4e7c-8b6e-527b8cd98894", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create new order should login", + "timedOut": false, + "duration": 1168, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d15c4368-0003-420f-b6ac-6abd8e6b6ad9", + "parentUUID": "c8dbb5d5-1565-4e7c-8b6e-527b8cd98894", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create new order should add product to cart", + "timedOut": false, + "duration": 7040, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42100b97-821e-45da-a08c-a0c84b90ab3a", + "parentUUID": "c8dbb5d5-1565-4e7c-8b6e-527b8cd98894", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create new order should go to delivery step", + "timedOut": false, + "duration": 980, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74e96afe-1895-4067-8f6c-4b38ecc2675d", + "parentUUID": "c8dbb5d5-1565-4e7c-8b6e-527b8cd98894", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create new order should go to payment step", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e289c99-c65a-4aa0-aca3-7994276c022f", + "parentUUID": "c8dbb5d5-1565-4e7c-8b6e-527b8cd98894", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create new order should choose payment method and confirm the order", + "timedOut": false, + "duration": 1443, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d83aa626-ac4f-42e5-846b-a89dc9e08489", + "parentUUID": "c8dbb5d5-1565-4e7c-8b6e-527b8cd98894", + "isHook": false, + "skipped": false + }, + { + "title": "should close the shop page", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create new order should close the shop page", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_closeShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdd3c336-d6e8-40aa-bd46-8fd644adf83d", + "parentUUID": "c8dbb5d5-1565-4e7c-8b6e-527b8cd98894", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2afd5dfe-818b-4cc4-96c4-184942e19911", + "d15c4368-0003-420f-b6ac-6abd8e6b6ad9", + "42100b97-821e-45da-a08c-a0c84b90ab3a", + "74e96afe-1895-4067-8f6c-4b38ecc2675d", + "1e289c99-c65a-4aa0-aca3-7994276c022f", + "d83aa626-ac4f-42e5-846b-a89dc9e08489", + "cdd3c336-d6e8-40aa-bd46-8fd644adf83d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12602, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "7490f021-8eb9-48c5-967f-7e5141fb28ec", + "title": "BO: Get create order ID and reference", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: Get create order ID and reference should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3607, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c579e76-4a34-44d1-a924-bf76dd3e3807", + "parentUUID": "7490f021-8eb9-48c5-967f-7e5141fb28ec", + "isHook": false, + "skipped": false + }, + { + "title": "should get the first order ID", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: Get create order ID and reference should get the first order ID", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_getOrderID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getOrderIDNumber(page)];\n case 2:\n orderID = _a.sent();\n (0, chai_1.expect)(orderID).to.not.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "80ade3b3-0b65-42b0-ae8c-18a3cfad27e9", + "parentUUID": "7490f021-8eb9-48c5-967f-7e5141fb28ec", + "isHook": false, + "skipped": false + }, + { + "title": "should get the first Order reference", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: Get create order ID and reference should get the first Order reference", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_getOrderReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 1)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecaf0c6f-2eb7-4708-a759-3606968913d5", + "parentUUID": "7490f021-8eb9-48c5-967f-7e5141fb28ec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1c579e76-4a34-44d1-a924-bf76dd3e3807", + "80ade3b3-0b65-42b0-ae8c-18a3cfad27e9", + "ecaf0c6f-2eb7-4708-a759-3606968913d5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3619, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cbd64e66-2a7c-4f77-bd85-2aa81a43ea79", + "title": "Check emails", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get the number of all emails", + "fullTitle": "Mail alerts module - Enable/Disable new order Check emails should get the number of all emails", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_getNumberOfEmails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfEmails', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(numberOfEmails).to.not.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a209d666-a32a-41b0-aba1-d5c7a8b82393", + "parentUUID": "cbd64e66-2a7c-4f77-bd85-2aa81a43ea79", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the order confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable new order Check emails should check that the order confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_checkOrderConfirmationMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderConfirmationMail', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Order confirmation\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24fc3aee-7d19-4911-8dd4-e0bb1d2626fc", + "parentUUID": "cbd64e66-2a7c-4f77-bd85-2aa81a43ea79", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the payment confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable new order Check emails should check that the payment confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_checkPaymentMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentMail', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[numberOfEmails - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting bank wire payment\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6662e15-10a0-45ab-bd49-764f23655e81", + "parentUUID": "cbd64e66-2a7c-4f77-bd85-2aa81a43ea79", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new order mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable new order Check emails should check that the new order mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_checkNewOrderMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewOrderMail', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[numberOfEmails - 3].subject).to\n .equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] New order : #\").concat(orderID, \" - \").concat(orderReference));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1096e179-4777-4ae6-a02c-5c0382b11178", + "parentUUID": "cbd64e66-2a7c-4f77-bd85-2aa81a43ea79", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a209d666-a32a-41b0-aba1-d5c7a8b82393", + "24fc3aee-7d19-4911-8dd4-e0bb1d2626fc", + "d6662e15-10a0-45ab-bd49-764f23655e81", + "1096e179-4777-4ae6-a02c-5c0382b11178" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "4fe08e4a-7170-4852-ae77-1c8f8a29c6d3", + "title": "BO: case 2 - Disable 'New order' in the module 'Mail alerts'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 2 - Disable 'New order' in the module 'Mail alerts' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 4883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "39f5bec8-1bc5-436a-ac1d-487ab104410a", + "parentUUID": "4fe08e4a-7170-4852-ae77-1c8f8a29c6d3", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 2 - Disable 'New order' in the module 'Mail alerts' should search the module Mail alerts", + "timedOut": false, + "duration": 561, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4cbe8bae-daef-4aec-9da1-2ed5b77a725f", + "parentUUID": "4fe08e4a-7170-4852-ae77-1c8f8a29c6d3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 2 - Disable 'New order' in the module 'Mail alerts' should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1377, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a41bc5c-8631-4fd8-99e6-4bcf615bd795", + "parentUUID": "4fe08e4a-7170-4852-ae77-1c8f8a29c6d3", + "isHook": false, + "skipped": false + }, + { + "title": "should disable new order", + "fullTitle": "Mail alerts module - Enable/Disable new order BO: case 2 - Disable 'New order' in the module 'Mail alerts' should disable new order", + "timedOut": false, + "duration": 917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_enableReturns2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setNewOrder(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c32c03f3-e613-4335-9ce1-6cf6bf8492ba", + "parentUUID": "4fe08e4a-7170-4852-ae77-1c8f8a29c6d3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "39f5bec8-1bc5-436a-ac1d-487ab104410a", + "4cbe8bae-daef-4aec-9da1-2ed5b77a725f", + "5a41bc5c-8631-4fd8-99e6-4bcf615bd795", + "c32c03f3-e613-4335-9ce1-6cf6bf8492ba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7738, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1f3d9809-6042-42c3-9648-10e4e4edda1e", + "title": "FO: Create second order", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create second order should view my shop", + "timedOut": false, + "duration": 1718, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d70a2778-e700-4e5c-b190-2e358ff96e96", + "parentUUID": "1f3d9809-6042-42c3-9648-10e4e4edda1e", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create second order should add product to cart", + "timedOut": false, + "duration": 7089, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a76e8b02-e626-429f-945f-f30844a2ff81", + "parentUUID": "1f3d9809-6042-42c3-9648-10e4e4edda1e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create second order should go to delivery step", + "timedOut": false, + "duration": 990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d5fe747a-70ba-4951-af85-06ed182c1758", + "parentUUID": "1f3d9809-6042-42c3-9648-10e4e4edda1e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create second order should go to payment step", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b2ef7493-a37b-4a2f-a37b-4df25df8ee6d", + "parentUUID": "1f3d9809-6042-42c3-9648-10e4e4edda1e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "Mail alerts module - Enable/Disable new order FO: Create second order should choose payment method and confirm the order", + "timedOut": false, + "duration": 1275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96a30258-2433-478f-8dab-7f0b119deaa5", + "parentUUID": "1f3d9809-6042-42c3-9648-10e4e4edda1e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d70a2778-e700-4e5c-b190-2e358ff96e96", + "a76e8b02-e626-429f-945f-f30844a2ff81", + "d5fe747a-70ba-4951-af85-06ed182c1758", + "b2ef7493-a37b-4a2f-a37b-4df25df8ee6d", + "96a30258-2433-478f-8dab-7f0b119deaa5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11356, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3188464a-1b81-4cff-849a-97835a8ae37e", + "title": "Check emails", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should check the number of emails", + "fullTitle": "Mail alerts module - Enable/Disable new order Check emails should check the number of emails", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_checkNumberOfEmails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfEmails', baseContext)];\n case 1:\n _a.sent();\n number = allEmails.length;\n (0, chai_1.expect)(number).to.equal(numberOfEmails + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd9b33b7-118d-45e7-8f47-036f7f1f03ea", + "parentUUID": "3188464a-1b81-4cff-849a-97835a8ae37e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new order confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable new order Check emails should check that the new order confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_checkOrderConfirmationMail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkOrderConfirmationMail2', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Order confirmation\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d33b5304-e97b-49c9-a185-4310ad600f16", + "parentUUID": "3188464a-1b81-4cff-849a-97835a8ae37e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the payment confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable new order Check emails should check that the payment confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_checkPaymentMail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPaymentMail2', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 2].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Awaiting bank wire payment\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "962dcb75-b418-41cc-96de-33e4e2e2d047", + "parentUUID": "3188464a-1b81-4cff-849a-97835a8ae37e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the new order mail is not in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable new order Check emails should check that the new order mail is not in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_checkNewOrderMailNotExist\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNewOrderMailNotExist', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[allEmails.length - 3].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Order confirmation\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f0b8444-996b-4037-b927-165f76f60144", + "parentUUID": "3188464a-1b81-4cff-849a-97835a8ae37e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd9b33b7-118d-45e7-8f47-036f7f1f03ea", + "d33b5304-e97b-49c9-a185-4310ad600f16", + "962dcb75-b418-41cc-96de-33e4e2e2d047", + "1f0b8444-996b-4037-b927-165f76f60144" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "692b74f9-6a96-4c95-b379-84b89555330e", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/01_enableDisableNewOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable new order POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a68b6318-989c-4152-a4f7-edac987d4b65", + "parentUUID": "692b74f9-6a96-4c95-b379-84b89555330e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable new order POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "994e88b7-b23c-413a-8b14-d56dcdc74bfc", + "parentUUID": "692b74f9-6a96-4c95-b379-84b89555330e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable new order POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "023c323c-6858-4aeb-97b9-d983faed4662", + "parentUUID": "692b74f9-6a96-4c95-b379-84b89555330e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable new order POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4876, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "942dfcc4-edaf-4725-860f-4a7f15d30253", + "parentUUID": "692b74f9-6a96-4c95-b379-84b89555330e", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "Mail alerts module - Enable/Disable new order POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 405, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableNewOrder_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a86f1e04-4520-4acc-8127-52d908fc9131", + "parentUUID": "692b74f9-6a96-4c95-b379-84b89555330e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "023c323c-6858-4aeb-97b9-d983faed4662", + "942dfcc4-edaf-4725-860f-4a7f15d30253", + "a86f1e04-4520-4acc-8127-52d908fc9131" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6957, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "502182a8-a82b-4cba-9af9-745965228c81", + "title": "Mail alerts module - Enable/Disable out of stock", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Enable/Disable out of stock\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock \"before all\" hook in \"Mail alerts module - Enable/Disable out of stock\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "eb9c4caf-14d2-47bc-ba85-62a36d058d3d", + "parentUUID": "502182a8-a82b-4cba-9af9-745965228c81", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Enable/Disable out of stock\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock \"after all\" hook in \"Mail alerts module - Enable/Disable out of stock\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "834cafe0-7686-488d-8b52-335d97382d29", + "parentUUID": "502182a8-a82b-4cba-9af9-745965228c81", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "0ecf61db-02c8-418c-949b-72f179c4052a", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "563add72-6335-4d9e-9cc0-170962ead3c8", + "parentUUID": "0ecf61db-02c8-418c-949b-72f179c4052a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "08d2fcac-0bb7-40ee-847c-8221efc451d3", + "parentUUID": "0ecf61db-02c8-418c-949b-72f179c4052a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ae6ba22-a67f-4e87-9e72-cac87b25d8b0", + "parentUUID": "0ecf61db-02c8-418c-949b-72f179c4052a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4885, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_1_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "694fadc7-0d2f-449b-ac11-fc9a6b940700", + "parentUUID": "0ecf61db-02c8-418c-949b-72f179c4052a", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 589, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_1_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "00fa030a-ac8a-4195-b11e-fbed7f3870ba", + "parentUUID": "0ecf61db-02c8-418c-949b-72f179c4052a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8ae6ba22-a67f-4e87-9e72-cac87b25d8b0", + "694fadc7-0d2f-449b-ac11-fc9a6b940700", + "00fa030a-ac8a-4195-b11e-fbed7f3870ba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7213, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "386ff383-bb58-470a-93ee-7dca05576d6d", + "title": "PRE-TEST: Create product 'Elegant Rubber Tuna'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'Elegant Rubber Tuna'\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Elegant Rubber Tuna' \"before all\" hook in \"PRE-TEST: Create product 'Elegant Rubber Tuna'\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5db7cbd0-eb53-4b1f-a8d2-5bb93658c21b", + "parentUUID": "386ff383-bb58-470a-93ee-7dca05576d6d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'Elegant Rubber Tuna'\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Elegant Rubber Tuna' \"after all\" hook in \"PRE-TEST: Create product 'Elegant Rubber Tuna'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "217392cc-664d-4753-9774-ef3cf4f33a36", + "parentUUID": "386ff383-bb58-470a-93ee-7dca05576d6d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Elegant Rubber Tuna' should login in BO", + "timedOut": false, + "duration": 1698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8332c547-889a-4424-a8a0-466e8f5d7e60", + "parentUUID": "386ff383-bb58-470a-93ee-7dca05576d6d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Elegant Rubber Tuna' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4935, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_2_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d5209e6-673a-45ba-a050-c9c090805bdb", + "parentUUID": "386ff383-bb58-470a-93ee-7dca05576d6d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Elegant Rubber Tuna' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 224, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_2_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd853b47-226d-4f74-84ac-3e5fc04d8e06", + "parentUUID": "386ff383-bb58-470a-93ee-7dca05576d6d", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Elegant Rubber Tuna' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 912, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_2_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "db4c5a1c-7e98-4e43-a618-7de0dbc0fb9a", + "parentUUID": "386ff383-bb58-470a-93ee-7dca05576d6d", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Elegant Rubber Tuna' should create product", + "timedOut": false, + "duration": 5281, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_2_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55d2b4ea-468d-4d5d-9c05-e93d84db2d6b", + "parentUUID": "386ff383-bb58-470a-93ee-7dca05576d6d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8332c547-889a-4424-a8a0-466e8f5d7e60", + "6d5209e6-673a-45ba-a050-c9c090805bdb", + "bd853b47-226d-4f74-84ac-3e5fc04d8e06", + "db4c5a1c-7e98-4e43-a618-7de0dbc0fb9a", + "55d2b4ea-468d-4d5d-9c05-e93d84db2d6b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13050, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e71f7d4f-a5a0-43d6-ba32-a5c7c78207b9", + "title": "PRE-TEST: Create product 'Practical Granite Chair'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create product 'Practical Granite Chair'\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Practical Granite Chair' \"before all\" hook in \"PRE-TEST: Create product 'Practical Granite Chair'\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20921f85-d8d9-4a44-968f-c609bb182fa7", + "parentUUID": "e71f7d4f-a5a0-43d6-ba32-a5c7c78207b9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create product 'Practical Granite Chair'\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Practical Granite Chair' \"after all\" hook in \"PRE-TEST: Create product 'Practical Granite Chair'\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "0f655988-e40c-4890-88ab-4c171aa1736f", + "parentUUID": "e71f7d4f-a5a0-43d6-ba32-a5c7c78207b9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Practical Granite Chair' should login in BO", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45fbacc1-de33-46a9-93ff-383e822597f7", + "parentUUID": "e71f7d4f-a5a0-43d6-ba32-a5c7c78207b9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Practical Granite Chair' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_3_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91d127ab-c9f4-41eb-b3b8-076f02ab063b", + "parentUUID": "e71f7d4f-a5a0-43d6-ba32-a5c7c78207b9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Practical Granite Chair' should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_3_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "be5fb234-43d9-4114-9f37-eda914a4bc71", + "parentUUID": "e71f7d4f-a5a0-43d6-ba32-a5c7c78207b9", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'standard product' and go to new product page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Practical Granite Chair' should choose 'standard product' and go to new product page", + "timedOut": false, + "duration": 896, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_3_chooseTypeOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseTypeOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, productData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f1978c3-7718-4037-abdd-bd18e57376bb", + "parentUUID": "e71f7d4f-a5a0-43d6-ba32-a5c7c78207b9", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "Mail alerts module - Enable/Disable out of stock PRE-TEST: Create product 'Practical Granite Chair' should create product", + "timedOut": false, + "duration": 5443, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_preTest_3_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, productData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b28cfb20-e403-4708-96ae-fd726146ec18", + "parentUUID": "e71f7d4f-a5a0-43d6-ba32-a5c7c78207b9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "45fbacc1-de33-46a9-93ff-383e822597f7", + "91d127ab-c9f4-41eb-b3b8-076f02ab063b", + "be5fb234-43d9-4114-9f37-eda914a4bc71", + "1f1978c3-7718-4037-abdd-bd18e57376bb", + "b28cfb20-e403-4708-96ae-fd726146ec18" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13258, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "de8bdf65-6dce-410e-9222-c57169dcda45", + "title": "BO: case 1 - Enable 'Out of stock' in the module 'Mail alerts'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 1 - Enable 'Out of stock' in the module 'Mail alerts' should login in BO", + "timedOut": false, + "duration": 1691, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c8c6c3cb-7bb5-47fc-b0e2-6feaabf131f9", + "parentUUID": "de8bdf65-6dce-410e-9222-c57169dcda45", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 1 - Enable 'Out of stock' in the module 'Mail alerts' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5217, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "992188e6-00c7-40b8-bdce-7bf6f3ebf2a0", + "parentUUID": "de8bdf65-6dce-410e-9222-c57169dcda45", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 1 - Enable 'Out of stock' in the module 'Mail alerts' should search the module Mail alerts", + "timedOut": false, + "duration": 625, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "24d73ef5-c3e8-4923-bc8f-eb7444023353", + "parentUUID": "de8bdf65-6dce-410e-9222-c57169dcda45", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 1 - Enable 'Out of stock' in the module 'Mail alerts' should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc527ccb-5b24-411e-aa36-c20e18791a28", + "parentUUID": "de8bdf65-6dce-410e-9222-c57169dcda45", + "isHook": false, + "skipped": false + }, + { + "title": "should enable out of stock and set email", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 1 - Enable 'Out of stock' in the module 'Mail alerts' should enable out of stock and set email", + "timedOut": false, + "duration": 1026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_enableOutOfStock\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableOutOfStock', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setOutOfStock(page, true, 'demo@prestashop.com')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5bd3a258-636c-4f76-895d-dec8883a8862", + "parentUUID": "de8bdf65-6dce-410e-9222-c57169dcda45", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c8c6c3cb-7bb5-47fc-b0e2-6feaabf131f9", + "992188e6-00c7-40b8-bdce-7bf6f3ebf2a0", + "24d73ef5-c3e8-4923-bc8f-eb7444023353", + "cc527ccb-5b24-411e-aa36-c20e18791a28", + "5bd3a258-636c-4f76-895d-dec8883a8862" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9978, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "cf2ab6e8-5259-44e9-8fd2-8cf0449af240", + "title": "Update product quantity and check email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock Update product quantity and check email should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4844, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_goToStocksPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9593e500-0620-4e4f-89e8-d84f7ff1dc47", + "parentUUID": "cf2ab6e8-5259-44e9-8fd2-8cf0449af240", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Elegant Rubber Tuna'", + "fullTitle": "Mail alerts module - Enable/Disable out of stock Update product quantity and check email should filter by name 'Elegant Rubber Tuna'", + "timedOut": false, + "duration": 1173, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_filterStocks\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterStocks', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, firstProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "81476644-812a-436a-b6a7-61ce287c563e", + "parentUUID": "cf2ab6e8-5259-44e9-8fd2-8cf0449af240", + "isHook": false, + "skipped": false + }, + { + "title": "should update product quantity to -3", + "fullTitle": "Mail alerts module - Enable/Disable out of stock Update product quantity and check email should update product quantity to -3", + "timedOut": false, + "duration": 327, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_updateQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.updateRowQuantityWithInput(page, 1, -3)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0158e19b-feb8-4a07-91be-add72b45ef84", + "parentUUID": "cf2ab6e8-5259-44e9-8fd2-8cf0449af240", + "isHook": false, + "skipped": false + }, + { + "title": "should check received email", + "fullTitle": "Mail alerts module - Enable/Disable out of stock Update product quantity and check email should check received email", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_checkEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmail', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(newMail.subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Product out of stock\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "46249235-8458-4cff-9c6c-742e9bb97cf9", + "parentUUID": "cf2ab6e8-5259-44e9-8fd2-8cf0449af240", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "9593e500-0620-4e4f-89e8-d84f7ff1dc47", + "81476644-812a-436a-b6a7-61ce287c563e", + "0158e19b-feb8-4a07-91be-add72b45ef84", + "46249235-8458-4cff-9c6c-742e9bb97cf9" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6345, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "662c9105-4c55-420e-ac34-e0a9981eec86", + "title": "BO: case 2 - Disable 'Out of stock' in the module 'Mail alerts'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 2 - Disable 'Out of stock' in the module 'Mail alerts' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 4882, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_goToModuleManagerPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5e9bbeed-dabd-499c-b6e8-da0c1a737de3", + "parentUUID": "662c9105-4c55-420e-ac34-e0a9981eec86", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 2 - Disable 'Out of stock' in the module 'Mail alerts' should search the module Mail alerts", + "timedOut": false, + "duration": 573, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_searchModule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e207ea48-55a1-4c1e-96ad-75bc9268fded", + "parentUUID": "662c9105-4c55-420e-ac34-e0a9981eec86", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 2 - Disable 'Out of stock' in the module 'Mail alerts' should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1379, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_goToConfigurationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2d45ef9-cc89-41fb-a6a1-e7dd0026afa9", + "parentUUID": "662c9105-4c55-420e-ac34-e0a9981eec86", + "isHook": false, + "skipped": false + }, + { + "title": "should disable out of stock", + "fullTitle": "Mail alerts module - Enable/Disable out of stock BO: case 2 - Disable 'Out of stock' in the module 'Mail alerts' should disable out of stock", + "timedOut": false, + "duration": 933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_disableOutOfStock2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableOutOfStock2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setOutOfStock(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2e872cb-b5b7-4106-a26e-c8215b8179f3", + "parentUUID": "662c9105-4c55-420e-ac34-e0a9981eec86", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5e9bbeed-dabd-499c-b6e8-da0c1a737de3", + "e207ea48-55a1-4c1e-96ad-75bc9268fded", + "f2d45ef9-cc89-41fb-a6a1-e7dd0026afa9", + "f2e872cb-b5b7-4106-a26e-c8215b8179f3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7767, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "127cea39-dc33-4bf1-be46-77b1f3cc65ca", + "title": "Update product quantity and check email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Catalog > Stocks' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock Update product quantity and check email should go to 'Catalog > Stocks' page", + "timedOut": false, + "duration": 4696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_goToStocksPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStocksPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.stocksLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(stocks_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9887bec-8419-4c52-8920-2d5896861eb8", + "parentUUID": "127cea39-dc33-4bf1-be46-77b1f3cc65ca", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by name 'Practical Granite Chair'", + "fullTitle": "Mail alerts module - Enable/Disable out of stock Update product quantity and check email should filter by name 'Practical Granite Chair'", + "timedOut": false, + "duration": 1173, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_filterStocks2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterStocks2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.simpleFilter(page, secondProduct.name)];\n case 2:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cccf7a29-ca7c-4751-a726-7be85288770f", + "parentUUID": "127cea39-dc33-4bf1-be46-77b1f3cc65ca", + "isHook": false, + "skipped": false + }, + { + "title": "should update product quantity to -3", + "fullTitle": "Mail alerts module - Enable/Disable out of stock Update product quantity and check email should update product quantity to -3", + "timedOut": false, + "duration": 210, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_updateQuantity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateQuantity2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, stocks_1.default.updateRowQuantityWithInput(page, 1, -3)];\n case 2:\n updateMessage = _a.sent();\n (0, chai_1.expect)(updateMessage).to.contains(stocks_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "877154bc-a170-4998-9305-fd1cf7d287f4", + "parentUUID": "127cea39-dc33-4bf1-be46-77b1f3cc65ca", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no email received", + "fullTitle": "Mail alerts module - Enable/Disable out of stock Update product quantity and check email should check that no email received", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_checkEmail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEmail2', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(numberOfEmails).to.equal(allEmails.length);\n (0, chai_1.expect)(newMail.subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Product out of stock\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54019dd9-ca3e-46a6-aaf7-3509d973e078", + "parentUUID": "127cea39-dc33-4bf1-be46-77b1f3cc65ca", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c9887bec-8419-4c52-8920-2d5896861eb8", + "cccf7a29-ca7c-4751-a726-7be85288770f", + "877154bc-a170-4998-9305-fd1cf7d287f4", + "54019dd9-ca3e-46a6-aaf7-3509d973e078" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6079, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5135d560-21ae-41ff-be8b-2a3727184db9", + "title": "POST-TEST: Delete product 'Elegant Rubber Tuna'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Elegant Rubber Tuna'\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Elegant Rubber Tuna' \"before all\" hook in \"POST-TEST: Delete product 'Elegant Rubber Tuna'\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "84d55ddf-b36f-470a-bd93-aec11d5c70ed", + "parentUUID": "5135d560-21ae-41ff-be8b-2a3727184db9", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Elegant Rubber Tuna'\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Elegant Rubber Tuna' \"after all\" hook in \"POST-TEST: Delete product 'Elegant Rubber Tuna'\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "fa9c1b34-4957-40c0-866f-bbc6dfe371bb", + "parentUUID": "5135d560-21ae-41ff-be8b-2a3727184db9", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Elegant Rubber Tuna' should login in BO", + "timedOut": false, + "duration": 1763, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dffc3eaa-db71-4beb-954f-305208a35535", + "parentUUID": "5135d560-21ae-41ff-be8b-2a3727184db9", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Elegant Rubber Tuna' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3948, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_1_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2521e4f-1b48-4c09-ad47-7c361f3b5ca6", + "parentUUID": "5135d560-21ae-41ff-be8b-2a3727184db9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Elegant Rubber Tuna' should reset all filters", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_1_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40fb3e88-2efc-4de5-9e2c-df60598a1edb", + "parentUUID": "5135d560-21ae-41ff-be8b-2a3727184db9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Elegant Rubber Tuna' should click on delete product button", + "timedOut": false, + "duration": 291, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_1_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d72d2bb5-e771-4472-aa3e-006691bb8aef", + "parentUUID": "5135d560-21ae-41ff-be8b-2a3727184db9", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Elegant Rubber Tuna' should delete product", + "timedOut": false, + "duration": 682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_1_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c988c232-0be8-4c60-b267-2b8cb19e350a", + "parentUUID": "5135d560-21ae-41ff-be8b-2a3727184db9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Elegant Rubber Tuna' should reset filter", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_1_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e6269176-b4ea-48fb-983c-b27c1cc6c8c8", + "parentUUID": "5135d560-21ae-41ff-be8b-2a3727184db9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dffc3eaa-db71-4beb-954f-305208a35535", + "c2521e4f-1b48-4c09-ad47-7c361f3b5ca6", + "40fb3e88-2efc-4de5-9e2c-df60598a1edb", + "d72d2bb5-e771-4472-aa3e-006691bb8aef", + "c988c232-0be8-4c60-b267-2b8cb19e350a", + "e6269176-b4ea-48fb-983c-b27c1cc6c8c8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6725, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "title": "POST-TEST: Delete product 'Practical Granite Chair'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Delete product 'Practical Granite Chair'\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Practical Granite Chair' \"before all\" hook in \"POST-TEST: Delete product 'Practical Granite Chair'\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f54755d4-ee97-4979-82d8-be18e6c25bc5", + "parentUUID": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Delete product 'Practical Granite Chair'\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Practical Granite Chair' \"after all\" hook in \"POST-TEST: Delete product 'Practical Granite Chair'\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "bc355f5e-1e13-4150-a34e-fb7cdf624ee6", + "parentUUID": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Practical Granite Chair' should login in BO", + "timedOut": false, + "duration": 1768, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8fe6b515-2c7c-474a-8aa4-e701d479f003", + "parentUUID": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Practical Granite Chair' should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 3952, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_2_goToProductsPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a926ae7a-4983-423c-939e-f5ce9bb26014", + "parentUUID": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Practical Granite Chair' should reset all filters", + "timedOut": false, + "duration": 19, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_2_resetFilters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 3:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9bec205a-ead8-461d-86c7-6b2d93d5818c", + "parentUUID": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Practical Granite Chair' should click on delete product button", + "timedOut": false, + "duration": 284, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_2_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "103dd5c3-f31f-453b-8393-69c11e21eb27", + "parentUUID": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Practical Granite Chair' should delete product", + "timedOut": false, + "duration": 677, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_2_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2719c660-fbe9-457b-9b05-f778d293875a", + "parentUUID": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Delete product 'Practical Granite Chair' should reset filter", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_2_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d39060a-8d77-494a-9b94-3c6a959b4174", + "parentUUID": "f063ddd1-bf68-475c-8a3a-ffbd8b9a639c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8fe6b515-2c7c-474a-8aa4-e701d479f003", + "a926ae7a-4983-423c-939e-f5ce9bb26014", + "9bec205a-ead8-461d-86c7-6b2d93d5818c", + "103dd5c3-f31f-453b-8393-69c11e21eb27", + "2719c660-fbe9-457b-9b05-f778d293875a", + "1d39060a-8d77-494a-9b94-3c6a959b4174" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6718, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2dc14f4a-ce48-4c90-b681-eb3ee5f8c035", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/02_enableDisableOutOfStock.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d679f95b-1633-467f-9432-876b4f684f4a", + "parentUUID": "2dc14f4a-ce48-4c90-b681-eb3ee5f8c035", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6886735c-496f-4014-b4e2-731dd9606159", + "parentUUID": "2dc14f4a-ce48-4c90-b681-eb3ee5f8c035", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "189f23ca-8aa1-48b2-ad37-20d52acd4613", + "parentUUID": "2dc14f4a-ce48-4c90-b681-eb3ee5f8c035", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_3_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "397dc168-0939-4f05-8863-ed19c2aef12c", + "parentUUID": "2dc14f4a-ce48-4c90-b681-eb3ee5f8c035", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "Mail alerts module - Enable/Disable out of stock POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 411, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableOutOfStock_postTest_3_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc3fafce-dad8-475a-867f-39b94c43e85f", + "parentUUID": "2dc14f4a-ce48-4c90-b681-eb3ee5f8c035", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "189f23ca-8aa1-48b2-ad37-20d52acd4613", + "397dc168-0939-4f05-8863-ed19c2aef12c", + "dc3fafce-dad8-475a-867f-39b94c43e85f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6984, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "be091fbe-713f-4d77-a2a3-8fe83ff93f88", + "title": "Mail alerts module - Enable/Disable return", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Enable/Disable return\"", + "fullTitle": "Mail alerts module - Enable/Disable return \"before all\" hook in \"Mail alerts module - Enable/Disable return\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // Handle every new email\n mailListener.on('new', function (email) {\n newMail = email;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0d8e40e-df99-4a46-b693-834f9e8f9410", + "parentUUID": "be091fbe-713f-4d77-a2a3-8fe83ff93f88", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Enable/Disable return\"", + "fullTitle": "Mail alerts module - Enable/Disable return \"after all\" hook in \"Mail alerts module - Enable/Disable return\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e7606622-05ad-4bf1-afc2-405291f2d943", + "parentUUID": "be091fbe-713f-4d77-a2a3-8fe83ff93f88", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3864bfda-703f-4389-8a3d-bfcc5fe6b32c", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6ef17b73-e374-41d7-9b1c-f7815e6ef6b0", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1788, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_1_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cc544efa-4f52-43c3-a69c-8c56cf1790a0", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 679, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_1_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d08f43c-1ca7-4972-8b1b-bc90d12323d7", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 623, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_1_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4fbf5a63-e3c2-49dc-8433-716343e631bc", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7037, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_1_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "65b5e12c-e715-4106-8a58-535fa9a969b5", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 1002, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_1_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "655735b6-2f1e-404e-a748-29a31ec23447", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 282, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_1_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d0a644b-6fbc-4a6c-8d52-115ebdc4535e", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1502, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_1_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b8b8ab5b-83fc-4e1e-8ba5-caed2ab9b90a", + "parentUUID": "46dc8b83-3336-42b7-8c33-85ed5de8d1b5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cc544efa-4f52-43c3-a69c-8c56cf1790a0", + "3d08f43c-1ca7-4972-8b1b-bc90d12323d7", + "4fbf5a63-e3c2-49dc-8433-716343e631bc", + "65b5e12c-e715-4106-8a58-535fa9a969b5", + "655735b6-2f1e-404e-a748-29a31ec23447", + "1d0a644b-6fbc-4a6c-8d52-115ebdc4535e", + "b8b8ab5b-83fc-4e1e-8ba5-caed2ab9b90a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12913, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "8156b744-1f45-4995-85d0-637e79db6b33", + "title": "PRE-TEST: Create order by customer on FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO \"before all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c7687f50-e56e-42c5-8bfc-a3ea9cebd1c4", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO \"after all\" hook in \"PRE-TEST: Create order by customer on FO\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5369b18d-3bf8-42fb-8734-015df1195ac5", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open FO page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should open FO page", + "timedOut": false, + "duration": 1638, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_2_openFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'openFO', baseContext)];\n case 1:\n _a.sent();\n // Go to FO and change language\n return [4 /*yield*/, home_1.homePage.goToFo(page)];\n case 2:\n // Go to FO and change language\n _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8f40acf8-eb30-490d-9303-96455c2d9c10", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to login page", + "timedOut": false, + "duration": 684, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_2_goToLoginPageFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPageFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "699dbb45-7672-46fb-87df-b959040abe9b", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with customer credentials", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should sign in with customer credentials", + "timedOut": false, + "duration": 486, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_2_signInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'signInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, orderData.customer)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8cbd62f5-b395-4860-acb3-df2edc88de5f", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should add product to cart", + "timedOut": false, + "duration": 7035, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_2_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to the first product page\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, orderData.products[0].product.id)];\n case 3:\n // Go to the first product page\n _a.sent();\n // Add the product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderData.products[0].quantity)];\n case 4:\n // Add the product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 5:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(orderData.products[0].quantity);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3b452e5-66db-4b7b-b9b2-9ff45d331fc7", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": false, + "skipped": false + }, + { + "title": "should go to delivery step", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to delivery step", + "timedOut": false, + "duration": 979, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_2_goToDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff76ef18-a87b-4377-8527-b8cbd6c298c5", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": false, + "skipped": false + }, + { + "title": "should go to payment step", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should go to payment step", + "timedOut": false, + "duration": 280, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_2_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95033b72-2d30-4720-88c0-c5c792fd51ff", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": false, + "skipped": false + }, + { + "title": "should choose payment method and confirm the order", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Create order by customer on FO should choose payment method and confirm the order", + "timedOut": false, + "duration": 1490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_2_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, orderData.paymentMethod.moduleName)];\n case 2:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b555d780-7d56-4182-a4a5-1b1010a8a000", + "parentUUID": "8156b744-1f45-4995-85d0-637e79db6b33", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8f40acf8-eb30-490d-9303-96455c2d9c10", + "699dbb45-7672-46fb-87df-b959040abe9b", + "8cbd62f5-b395-4860-acb3-df2edc88de5f", + "b3b452e5-66db-4b7b-b9b2-9ff45d331fc7", + "ff76ef18-a87b-4377-8527-b8cbd6c298c5", + "95033b72-2d30-4720-88c0-c5c792fd51ff", + "b555d780-7d56-4182-a4a5-1b1010a8a000" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12592, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a6e8b546-fe75-455c-8500-f7ab029e1caf", + "title": "PRE-TEST: Enable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Enable merchandise returns \"before all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35839dba-b8da-466e-9efd-73d3234ccdd4", + "parentUUID": "a6e8b546-fe75-455c-8500-f7ab029e1caf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Enable merchandise returns \"after all\" hook in \"PRE-TEST: Enable merchandise returns\"", + "timedOut": false, + "duration": 11, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "38022979-3462-42d3-a5c9-3dc309581d93", + "parentUUID": "a6e8b546-fe75-455c-8500-f7ab029e1caf", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Enable merchandise returns should login in BO", + "timedOut": false, + "duration": 1710, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3a238b09-1fb8-487f-9ef6-fa053f112141", + "parentUUID": "a6e8b546-fe75-455c-8500-f7ab029e1caf", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Enable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 4595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_3_goToMerchandiseReturnsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f6bf554e-138d-4604-baae-9335310b4358", + "parentUUID": "a6e8b546-fe75-455c-8500-f7ab029e1caf", + "isHook": false, + "skipped": false + }, + { + "title": "should enable merchandise returns", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Enable merchandise returns should enable merchandise returns", + "timedOut": false, + "duration": 285, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_3_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, true)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57ca0cac-8bf0-4211-be5c-7b240fafaf50", + "parentUUID": "a6e8b546-fe75-455c-8500-f7ab029e1caf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3a238b09-1fb8-487f-9ef6-fa053f112141", + "f6bf554e-138d-4604-baae-9335310b4358", + "57ca0cac-8bf0-4211-be5c-7b240fafaf50" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6590, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d548f341-d050-4a8e-afb1-deb57d136079", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5525ffb6-bc03-4ba2-b9f7-8b3bbc5d9b08", + "parentUUID": "d548f341-d050-4a8e-afb1-deb57d136079", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "76419f1b-b258-410a-aaa6-74253ba5950a", + "parentUUID": "d548f341-d050-4a8e-afb1-deb57d136079", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1d4e5c43-339b-4b24-81fc-b8c9b31e3ec4", + "parentUUID": "d548f341-d050-4a8e-afb1-deb57d136079", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4898, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_4_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fd8eea8-42be-4cea-a326-44aeeae1355b", + "parentUUID": "d548f341-d050-4a8e-afb1-deb57d136079", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "Mail alerts module - Enable/Disable return PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 600, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_preTest_4_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c8aa2ed-3910-456e-86d4-aa62bbdc723e", + "parentUUID": "d548f341-d050-4a8e-afb1-deb57d136079", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1d4e5c43-339b-4b24-81fc-b8c9b31e3ec4", + "7fd8eea8-42be-4cea-a326-44aeeae1355b", + "4c8aa2ed-3910-456e-86d4-aa62bbdc723e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7203, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6021eff5-ec6f-48b5-8e7c-638551653bec", + "title": "BO: case 1 - Enable 'Returns' in the module 'Mail alerts'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Returns' in the module 'Mail alerts' should login in BO", + "timedOut": false, + "duration": 1742, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a061c729-abc7-4f11-a8a4-40444a1ac5db", + "parentUUID": "6021eff5-ec6f-48b5-8e7c-638551653bec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Returns' in the module 'Mail alerts' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5216, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe70b4e2-70ec-457e-87ba-b2efdd8bfd6e", + "parentUUID": "6021eff5-ec6f-48b5-8e7c-638551653bec", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Returns' in the module 'Mail alerts' should search the module Mail alerts", + "timedOut": false, + "duration": 597, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2e2402e-7e39-4c36-b408-c1ca14c51100", + "parentUUID": "6021eff5-ec6f-48b5-8e7c-638551653bec", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Returns' in the module 'Mail alerts' should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1417, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1613e742-f9df-41c7-8bd9-55b45137fb15", + "parentUUID": "6021eff5-ec6f-48b5-8e7c-638551653bec", + "isHook": false, + "skipped": false + }, + { + "title": "should enable returns and set email", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 1 - Enable 'Returns' in the module 'Mail alerts' should enable returns and set email", + "timedOut": false, + "duration": 999, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_enableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setReturns(page, true, 'demo@prestashop.com')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "504d49cf-73e3-42b7-9b4a-d5ff756565e0", + "parentUUID": "6021eff5-ec6f-48b5-8e7c-638551653bec", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a061c729-abc7-4f11-a8a4-40444a1ac5db", + "fe70b4e2-70ec-457e-87ba-b2efdd8bfd6e", + "a2e2402e-7e39-4c36-b408-c1ca14c51100", + "1613e742-f9df-41c7-8bd9-55b45137fb15", + "504d49cf-73e3-42b7-9b4a-d5ff756565e0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 9971, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "53737a83-0dfa-463b-b1a0-c64f03fb0a58", + "title": "BO: Change the first created orders status to 'Delivered'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Orders > Orders' page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Change the first created orders status to 'Delivered' should go to 'Orders > Orders' page", + "timedOut": false, + "duration": 3621, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75260467-bf24-464d-8881-4349fafa97c6", + "parentUUID": "53737a83-0dfa-463b-b1a0-c64f03fb0a58", + "isHook": false, + "skipped": false + }, + { + "title": "should get the first order ID", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Change the first created orders status to 'Delivered' should get the first order ID", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_getOrderID\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderID', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getOrderIDNumber(page)];\n case 2:\n orderID = _a.sent();\n (0, chai_1.expect)(orderID).to.not.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2a877cc4-a0e5-4850-8a58-fe1df7963d2a", + "parentUUID": "53737a83-0dfa-463b-b1a0-c64f03fb0a58", + "isHook": false, + "skipped": false + }, + { + "title": "should get the first Order reference", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Change the first created orders status to 'Delivered' should get the first Order reference", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_getOrderReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 1)];\n case 2:\n orderReference = _a.sent();\n (0, chai_1.expect)(orderReference).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e62ee3b8-551c-4c91-a853-c11759e59eed", + "parentUUID": "53737a83-0dfa-463b-b1a0-c64f03fb0a58", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Delivered' and check it", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Change the first created orders status to 'Delivered' should change the order status to 'Delivered' and check it", + "timedOut": false, + "duration": 977, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_updateOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 1, orderStatuses_1.default.delivered)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13f6d478-e5b4-4e32-b3a1-c202294179c6", + "parentUUID": "53737a83-0dfa-463b-b1a0-c64f03fb0a58", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "75260467-bf24-464d-8881-4349fafa97c6", + "2a877cc4-a0e5-4850-8a58-fe1df7963d2a", + "e62ee3b8-551c-4c91-a853-c11759e59eed", + "13f6d478-e5b4-4e32-b3a1-c202294179c6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4610, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "415c9dee-7794-4f98-981b-551ace51e171", + "title": "BO: Change the second created orders status to 'Delivered'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should get the second order ID", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Change the second created orders status to 'Delivered' should get the second order ID", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_getOrderID2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderID2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getOrderIDNumber(page, 2)];\n case 2:\n secondOrderID = _a.sent();\n (0, chai_1.expect)(orderID).to.not.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "74c0be20-66df-499c-a661-1f52bce3c897", + "parentUUID": "415c9dee-7794-4f98-981b-551ace51e171", + "isHook": false, + "skipped": false + }, + { + "title": "should get the created Order reference", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Change the second created orders status to 'Delivered' should get the created Order reference", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_getOrderReference2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getOrderReference2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 2)];\n case 2:\n secondOrderReference = _a.sent();\n (0, chai_1.expect)(orderReference).to.not.eq(null);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "926fda22-6c5d-47e3-b6aa-50137b225c1f", + "parentUUID": "415c9dee-7794-4f98-981b-551ace51e171", + "isHook": false, + "skipped": false + }, + { + "title": "should change the order status to 'Delivered' and check it", + "fullTitle": "Mail alerts module - Enable/Disable return BO: Change the second created orders status to 'Delivered' should change the order status to 'Delivered' and check it", + "timedOut": false, + "duration": 967, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_updateOrderStatus2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'updateOrderStatus2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.setOrderStatus(page, 2, orderStatuses_1.default.delivered)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(orders_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7bf7f594-26c1-4b88-960d-8439a8116eda", + "parentUUID": "415c9dee-7794-4f98-981b-551ace51e171", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "74c0be20-66df-499c-a661-1f52bce3c897", + "926fda22-6c5d-47e3-b6aa-50137b225c1f", + "7bf7f594-26c1-4b88-960d-8439a8116eda" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 978, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "title": "FO: Create merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should view my shop", + "timedOut": false, + "duration": 1716, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efb7c69a-5366-4fa9-9eb5-9e43a1c66884", + "parentUUID": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "isHook": false, + "skipped": false + }, + { + "title": "should login", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should login", + "timedOut": false, + "duration": 1198, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 3:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 4:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "355c553e-624c-42ac-97cd-5b6b718e1947", + "parentUUID": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should go to my account page", + "timedOut": false, + "duration": 698, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToAccountPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0cc391b-08d4-43e1-a030-6514ed2ad40e", + "parentUUID": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should go to 'Order history and details' page", + "timedOut": false, + "duration": 722, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToOrderHistoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c6749814-5fe4-4ce4-b7d2-80f2e8e22479", + "parentUUID": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order in the list and check the existence of order return form", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should go to the first order in the list and check the existence of order return form", + "timedOut": false, + "duration": 778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_isOrderReturnFormVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9189a8af-3d8e-434a-a1ff-b376c5a657cb", + "parentUUID": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should create a merchandise return", + "timedOut": false, + "duration": 966, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_createMerchandiseReturn\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'message test')];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2466a55-a101-4b0a-ae21-f3c1f1bee241", + "parentUUID": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should check that the confirmation mail is in mailbox", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_checkMail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.contains(\"New return from order #\".concat(orderID, \" - \").concat(orderReference));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01363044-35b9-40c3-b431-9e6a26f0cc8d", + "parentUUID": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "isHook": false, + "skipped": false + }, + { + "title": "should close the shop page", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should close the shop page", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_closeShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(viewOrderBasePage_1.viewOrderBasePage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cdb46b12-e9e2-4f89-b7f3-e8bcb62c4495", + "parentUUID": "fc7c44f6-4740-4954-abfd-12be1cb5654c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "efb7c69a-5366-4fa9-9eb5-9e43a1c66884", + "355c553e-624c-42ac-97cd-5b6b718e1947", + "a0cc391b-08d4-43e1-a030-6514ed2ad40e", + "c6749814-5fe4-4ce4-b7d2-80f2e8e22479", + "9189a8af-3d8e-434a-a1ff-b376c5a657cb", + "f2466a55-a101-4b0a-ae21-f3c1f1bee241", + "01363044-35b9-40c3-b431-9e6a26f0cc8d", + "cdb46b12-e9e2-4f89-b7f3-e8bcb62c4495" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6084, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "825e56bd-3520-4abc-91f1-39002fe03072", + "title": "BO: case 2 - Disable 'Returns' in the module 'Mail alerts'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 2 - Disable 'Returns' in the module 'Mail alerts' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 4871, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToModuleManagerPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c10faa02-968c-4dd9-be2d-eef7fdd1cbfa", + "parentUUID": "825e56bd-3520-4abc-91f1-39002fe03072", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Mail alerts", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 2 - Disable 'Returns' in the module 'Mail alerts' should search the module Mail alerts", + "timedOut": false, + "duration": 575, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_searchModule2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailAlerts)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "56098773-fcb8-4209-ab7d-ebf2a5ab672e", + "parentUUID": "825e56bd-3520-4abc-91f1-39002fe03072", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Mail alerts'", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 2 - Disable 'Returns' in the module 'Mail alerts' should go to the configuration page of the module 'Mail alerts'", + "timedOut": false, + "duration": 1382, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToConfigurationPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailAlerts.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailAlerts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e28bcc6-14ff-47d7-b25c-bcc5318bd02d", + "parentUUID": "825e56bd-3520-4abc-91f1-39002fe03072", + "isHook": false, + "skipped": false + }, + { + "title": "should disable returns", + "fullTitle": "Mail alerts module - Enable/Disable return BO: case 2 - Disable 'Returns' in the module 'Mail alerts' should disable returns", + "timedOut": false, + "duration": 899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_enableReturns2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableReturns2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailAlerts_1.default.setReturns(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailAlerts_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "61e6ba8a-5218-41c2-9caa-d2f11c080644", + "parentUUID": "825e56bd-3520-4abc-91f1-39002fe03072", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c10faa02-968c-4dd9-be2d-eef7fdd1cbfa", + "56098773-fcb8-4209-ab7d-ebf2a5ab672e", + "0e28bcc6-14ff-47d7-b25c-bcc5318bd02d", + "61e6ba8a-5218-41c2-9caa-d2f11c080644" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7727, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "74c93e7b-8a00-4f0a-82cf-e3b5a49ca7ca", + "title": "FO: Create merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should view my shop", + "timedOut": false, + "duration": 1682, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_viewMyShop2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, viewOrderBasePage_1.viewOrderBasePage.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Home page is not displayed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d009b0f1-de90-48b9-be08-1c76a434dd14", + "parentUUID": "74c93e7b-8a00-4f0a-82cf-e3b5a49ca7ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to my account page", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should go to my account page", + "timedOut": false, + "duration": 694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToAccountPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAccountPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToMyAccountPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(myAccount_1.myAccountPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1a810d6a-cec1-400a-8f3f-d4dd5dce184b", + "parentUUID": "74c93e7b-8a00-4f0a-82cf-e3b5a49ca7ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Order history and details' page", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should go to 'Order history and details' page", + "timedOut": false, + "duration": 712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_goToOrderHistoryPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderHistoryPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, myAccount_1.myAccountPage.goToHistoryAndDetailsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderHistory_1.orderHistoryPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "775269bd-6cd5-4619-8f65-c48f93d6126b", + "parentUUID": "74c93e7b-8a00-4f0a-82cf-e3b5a49ca7ca", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the second order in the list and check the existence of order return form", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should go to the second order in the list and check the existence of order return form", + "timedOut": false, + "duration": 746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_isOrderReturnFormVisible2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'isOrderReturnFormVisible2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderHistory_1.orderHistoryPage.goToDetailsPage(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.isOrderReturnFormVisible(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "537a0f00-0347-4360-9a8e-55f304696198", + "parentUUID": "74c93e7b-8a00-4f0a-82cf-e3b5a49ca7ca", + "isHook": false, + "skipped": false + }, + { + "title": "should create a merchandise return", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should create a merchandise return", + "timedOut": false, + "duration": 830, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_createMerchandiseReturn2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createMerchandiseReturn2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderDetails_1.default.requestMerchandiseReturn(page, 'message test')];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf8c212c-01a4-4ee5-a032-90ee2328915e", + "parentUUID": "74c93e7b-8a00-4f0a-82cf-e3b5a49ca7ca", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the confirmation mail is in mailbox", + "fullTitle": "Mail alerts module - Enable/Disable return FO: Create merchandise returns should check that the confirmation mail is in mailbox", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_checkMail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkMail2', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(newMail.subject).to.not.contains(\"New return from order #\".concat(secondOrderID, \" - \").concat(secondOrderReference));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "32344b92-7a11-4cb7-8897-f839e8bc1259", + "parentUUID": "74c93e7b-8a00-4f0a-82cf-e3b5a49ca7ca", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d009b0f1-de90-48b9-be08-1c76a434dd14", + "1a810d6a-cec1-400a-8f3f-d4dd5dce184b", + "775269bd-6cd5-4619-8f65-c48f93d6126b", + "537a0f00-0347-4360-9a8e-55f304696198", + "cf8c212c-01a4-4ee5-a032-90ee2328915e", + "32344b92-7a11-4cb7-8897-f839e8bc1259" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4664, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b1fc92e7-7ab4-48fc-8e31-7ffae82d8ca0", + "title": "POST-TEST: Disable merchandise returns", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Disable merchandise returns \"before all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa229902-5b80-4c37-87d9-e2599087e5fa", + "parentUUID": "b1fc92e7-7ab4-48fc-8e31-7ffae82d8ca0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Disable merchandise returns \"after all\" hook in \"POST-TEST: Disable merchandise returns\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b43924d7-cb04-476f-8f12-590d3a682c05", + "parentUUID": "b1fc92e7-7ab4-48fc-8e31-7ffae82d8ca0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Disable merchandise returns should login in BO", + "timedOut": false, + "duration": 1694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c056bbc6-1528-446e-b1e1-4b0c47891170", + "parentUUID": "b1fc92e7-7ab4-48fc-8e31-7ffae82d8ca0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Customer Service > Merchandise Returns' page", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Disable merchandise returns should go to 'Customer Service > Merchandise Returns' page", + "timedOut": false, + "duration": 3620, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_postTest_1_goToMerchandiseReturnsPageToDisable\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToMerchandiseReturnsPageToDisable', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.customerServiceParentLink, dashboard_1.default.merchandiseReturnsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(merchandiseReturns_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ea6808f4-282a-410e-99a7-08e88b341d44", + "parentUUID": "b1fc92e7-7ab4-48fc-8e31-7ffae82d8ca0", + "isHook": false, + "skipped": false + }, + { + "title": "should disable merchandise returns", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Disable merchandise returns should disable merchandise returns", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_postTest_1_disableReturns\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableReturns', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, merchandiseReturns_1.default.setOrderReturnStatus(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(merchandiseReturns_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dec988d9-1b84-4e0d-ad79-f7abf7e44663", + "parentUUID": "b1fc92e7-7ab4-48fc-8e31-7ffae82d8ca0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c056bbc6-1528-446e-b1e1-4b0c47891170", + "ea6808f4-282a-410e-99a7-08e88b341d44", + "dec988d9-1b84-4e0d-ad79-f7abf7e44663" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5622, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "03c8b266-4c60-4022-8ae4-2eb7747097dc", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "file": "/campaigns/modules/ps_emailalerts/02_configuration/02_merchantNotifications/04_enableDisableReturn.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b571fffb-f604-4ecb-b761-3200827288f9", + "parentUUID": "03c8b266-4c60-4022-8ae4-2eb7747097dc", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f41f6397-6efe-4fbb-8027-73f8b99ac556", + "parentUUID": "03c8b266-4c60-4022-8ae4-2eb7747097dc", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1880, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e1756f7-caed-4ca2-a9a2-4cb882308c32", + "parentUUID": "03c8b266-4c60-4022-8ae4-2eb7747097dc", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4976, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_postTest_2_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f66a8cca-9dd8-4cb0-8db3-4bf13b853811", + "parentUUID": "03c8b266-4c60-4022-8ae4-2eb7747097dc", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "Mail alerts module - Enable/Disable return POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 410, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailalerts_configuration_merchantNotifications_enableDisableReturn_postTest_2_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "351b8113-7451-4524-8076-688abfcc1545", + "parentUUID": "03c8b266-4c60-4022-8ae4-2eb7747097dc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0e1756f7-caed-4ca2-a9a2-4cb882308c32", + "f66a8cca-9dd8-4cb0-8db3-4bf13b853811", + "351b8113-7451-4524-8076-688abfcc1545" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7266, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "81c3e3a5-830a-44ba-a428-7469a6e12b57", + "title": "Mail alerts module - Enable/Disable send a verification email after subscription", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Enable/Disable send a verification email after subscription\"", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription \"before all\" hook in \"Mail alerts module - Enable/Disable send a verification email after subscription\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55e113dc-70e7-4224-a14a-415b91560c6d", + "parentUUID": "81c3e3a5-830a-44ba-a428-7469a6e12b57", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Enable/Disable send a verification email after subscription\"", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription \"after all\" hook in \"Mail alerts module - Enable/Disable send a verification email after subscription\"", + "timedOut": false, + "duration": 13, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "00d177b9-b1d7-4f64-b934-694854ad46d4", + "parentUUID": "81c3e3a5-830a-44ba-a428-7469a6e12b57", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "9133907d-b4f9-4b12-a37e-a4803d0653dd", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "49b78ac8-7582-4145-97bf-563a0c3d8836", + "parentUUID": "9133907d-b4f9-4b12-a37e-a4803d0653dd", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "3e972fbe-e9e3-4aba-858e-5db324c44c68", + "parentUUID": "9133907d-b4f9-4b12-a37e-a4803d0653dd", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e078092-e9e5-41d4-89e1-2734762dccb4", + "parentUUID": "9133907d-b4f9-4b12-a37e-a4803d0653dd", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4888, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_preTest_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82b6aa4d-0cea-417c-9b2d-a5483d754b8b", + "parentUUID": "9133907d-b4f9-4b12-a37e-a4803d0653dd", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 595, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_preTest_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2558a33a-2915-480f-b719-70c50e6a4303", + "parentUUID": "9133907d-b4f9-4b12-a37e-a4803d0653dd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3e078092-e9e5-41d4-89e1-2734762dccb4", + "82b6aa4d-0cea-417c-9b2d-a5483d754b8b", + "2558a33a-2915-480f-b719-70c50e6a4303" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7182, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b795c173-167f-464f-bb4e-ac5e2d9415de", + "title": "BO: case 1 - Enable 'Send verification email' in the module 'Newsletter subscription'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription BO: case 1 - Enable 'Send verification email' in the module 'Newsletter subscription' should login in BO", + "timedOut": false, + "duration": 1743, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d859cb88-2458-4ee6-b642-932652a56fa5", + "parentUUID": "b795c173-167f-464f-bb4e-ac5e2d9415de", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription BO: case 1 - Enable 'Send verification email' in the module 'Newsletter subscription' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e82f167a-b75b-4996-9157-a4077a043ef9", + "parentUUID": "b795c173-167f-464f-bb4e-ac5e2d9415de", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Newsletter subscription", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription BO: case 1 - Enable 'Send verification email' in the module 'Newsletter subscription' should search the module Newsletter subscription", + "timedOut": false, + "duration": 605, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailSubscription)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "836ebbe9-4d39-4955-b43a-c4674d47b8a4", + "parentUUID": "b795c173-167f-464f-bb4e-ac5e2d9415de", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Newsletter subscription'", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription BO: case 1 - Enable 'Send verification email' in the module 'Newsletter subscription' should go to the configuration page of the module 'Newsletter subscription'", + "timedOut": false, + "duration": 1490, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailSubscription.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailSubscription_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9a68466e-933e-4c45-a840-275f8b64d02f", + "parentUUID": "b795c173-167f-464f-bb4e-ac5e2d9415de", + "isHook": false, + "skipped": false + }, + { + "title": "should enable send verification email", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription BO: case 1 - Enable 'Send verification email' in the module 'Newsletter subscription' should enable send verification email", + "timedOut": false, + "duration": 1051, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_enableSendVerificationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableSendVerificationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.setSendVerificationEmail(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailSubscription_1.default.updateSettingsSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b385e0e-f540-4196-9991-79fdb8fab6be", + "parentUUID": "b795c173-167f-464f-bb4e-ac5e2d9415de", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d859cb88-2458-4ee6-b642-932652a56fa5", + "e82f167a-b75b-4996-9157-a4077a043ef9", + "836ebbe9-4d39-4955-b43a-c4674d47b8a4", + "9a68466e-933e-4c45-a840-275f8b64d02f", + "8b385e0e-f540-4196-9991-79fdb8fab6be" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10097, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "51aea905-c1d3-4910-a228-78b9f734ba70", + "title": "Go to FO to subscribe to the newsletter and check received email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription Go to FO to subscribe to the newsletter and check received email should view my shop", + "timedOut": false, + "duration": 1055, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_goToFOToSubscribeToNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOToSubscribeToNewsletter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f1bd785-f64d-4f6a-ad05-c2604fd5d081", + "parentUUID": "51aea905-c1d3-4910-a228-78b9f734ba70", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription Go to FO to subscribe to the newsletter and check received email should subscribe to newsletter", + "timedOut": false, + "duration": 298, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_subscribeToNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeToNewsletter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, 'test@prestashop.com')];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains(home_1.homePage.successSendVerificationEmailMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fbb70578-7696-49c7-94fe-2648284c1d42", + "parentUUID": "51aea905-c1d3-4910-a228-78b9f734ba70", + "isHook": false, + "skipped": false + }, + { + "title": "should check the verification email", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription Go to FO to subscribe to the newsletter and check received email should check the verification email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_checkVerificationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkVerificationEmail', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Email verification\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d003e8e8-9542-4037-a4bc-8d65aadf025d", + "parentUUID": "51aea905-c1d3-4910-a228-78b9f734ba70", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f1bd785-f64d-4f6a-ad05-c2604fd5d081", + "fbb70578-7696-49c7-94fe-2648284c1d42", + "d003e8e8-9542-4037-a4bc-8d65aadf025d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1353, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "71ff7ff6-727d-4153-ab3a-9a9e0fae8db7", + "title": "BO: case 2 - Disable 'Send verification email'' in the module 'Newsletter subscription'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription BO: case 2 - Disable 'Send verification email'' in the module 'Newsletter subscription' should go back to BO", + "timedOut": false, + "duration": 13, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailSubscription_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b7257334-635d-479c-a2bd-ff708918be7a", + "parentUUID": "71ff7ff6-727d-4153-ab3a-9a9e0fae8db7", + "isHook": false, + "skipped": false + }, + { + "title": "should enable send verification email", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription BO: case 2 - Disable 'Send verification email'' in the module 'Newsletter subscription' should enable send verification email", + "timedOut": false, + "duration": 353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_disableSendVerificationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableSendVerificationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.setSendVerificationEmail(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailSubscription_1.default.updateSettingsSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2607c5bf-bfd7-4feb-a441-3cd7c10e9d40", + "parentUUID": "71ff7ff6-727d-4153-ab3a-9a9e0fae8db7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b7257334-635d-479c-a2bd-ff708918be7a", + "2607c5bf-bfd7-4feb-a441-3cd7c10e9d40" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 366, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9419fcee-754b-4b35-9935-da30f334f765", + "title": "Go to FO to subscribe to the newsletter and check no verification email is sent", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription Go to FO to subscribe to the newsletter and check no verification email is sent should view my shop", + "timedOut": false, + "duration": 1036, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_goToFOToSubscribeToNewsletter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOToSubscribeToNewsletter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "53a81dbc-637a-400c-a595-afa34ba5b603", + "parentUUID": "9419fcee-754b-4b35-9935-da30f334f765", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription Go to FO to subscribe to the newsletter and check no verification email is sent should subscribe to newsletter", + "timedOut": false, + "duration": 144, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_subscribeToNewsletter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeToNewsletter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, 'hello@prestashop.com')];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains(home_1.homePage.successSubscriptionMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44e96fa1-6396-40a7-9186-322f04cd8b0f", + "parentUUID": "9419fcee-754b-4b35-9935-da30f334f765", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no verification email is sent", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription Go to FO to subscribe to the newsletter and check no verification email is sent should check that no verification email is sent", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_checkNoVerificationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoVerificationEmail', baseContext)];\n case 1:\n _a.sent();\n number = allEmails.length;\n (0, chai_1.expect)(number).to.equal(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "057c8af2-0101-47e7-b95f-45081f89da9d", + "parentUUID": "9419fcee-754b-4b35-9935-da30f334f765", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "53a81dbc-637a-400c-a595-afa34ba5b603", + "44e96fa1-6396-40a7-9186-322f04cd8b0f", + "057c8af2-0101-47e7-b95f-45081f89da9d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1180, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b5c622d2-6b68-4b9a-abc3-fb07c5fd749d", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/01_checkVerificationEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d400da69-2154-4033-8366-90bb8398ccdc", + "parentUUID": "b5c622d2-6b68-4b9a-abc3-fb07c5fd749d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "421c3ec1-64d5-4cc1-bbad-cc63d529f652", + "parentUUID": "b5c622d2-6b68-4b9a-abc3-fb07c5fd749d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1687, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "712eba05-f9c3-41d1-9962-89539ce98bd6", + "parentUUID": "b5c622d2-6b68-4b9a-abc3-fb07c5fd749d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4899, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_postTest_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fde13541-db3f-4912-a36d-c58fe26d7f86", + "parentUUID": "b5c622d2-6b68-4b9a-abc3-fb07c5fd749d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "Mail alerts module - Enable/Disable send a verification email after subscription POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 414, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkVerificationEmail_postTest_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14630a98-1e21-4c77-98bb-322b2847bd5d", + "parentUUID": "b5c622d2-6b68-4b9a-abc3-fb07c5fd749d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "712eba05-f9c3-41d1-9962-89539ce98bd6", + "fde13541-db3f-4912-a36d-c58fe26d7f86", + "14630a98-1e21-4c77-98bb-322b2847bd5d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7000, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "60138530-63b3-4c73-93fa-1e0071955a58", + "title": "Mail alerts module - Enable/Disable send a confirmation email after subscription", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Enable/Disable send a confirmation email after subscription\"", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription \"before all\" hook in \"Mail alerts module - Enable/Disable send a confirmation email after subscription\"", + "timedOut": false, + "duration": 48, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b9d03f2b-d0f0-40a5-bde2-43ece41b07c7", + "parentUUID": "60138530-63b3-4c73-93fa-1e0071955a58", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Enable/Disable send a confirmation email after subscription\"", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription \"after all\" hook in \"Mail alerts module - Enable/Disable send a confirmation email after subscription\"", + "timedOut": false, + "duration": 12, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e875beaf-03d0-4d2a-9e9f-a8b78d175fba", + "parentUUID": "60138530-63b3-4c73-93fa-1e0071955a58", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "43166ee6-96a3-4aac-915b-0a1bb4896a75", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff22aacc-59a3-4058-9cfc-3916ff5cbab3", + "parentUUID": "43166ee6-96a3-4aac-915b-0a1bb4896a75", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 9, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d9fb85d-ce42-480c-a34b-9d9f13750a98", + "parentUUID": "43166ee6-96a3-4aac-915b-0a1bb4896a75", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1737, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "598d1615-729e-4717-9a4e-dada0f333de7", + "parentUUID": "43166ee6-96a3-4aac-915b-0a1bb4896a75", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "17773229-541e-499b-93f1-99c570c7e29c", + "parentUUID": "43166ee6-96a3-4aac-915b-0a1bb4896a75", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 592, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edbdf346-4ef0-447e-88ba-c48741627c3d", + "parentUUID": "43166ee6-96a3-4aac-915b-0a1bb4896a75", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "598d1615-729e-4717-9a4e-dada0f333de7", + "17773229-541e-499b-93f1-99c570c7e29c", + "edbdf346-4ef0-447e-88ba-c48741627c3d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7220, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2ac2d454-2482-4c82-82e7-fc4200219c16", + "title": "BO: case 1 - Enable 'Send confirmation email' in the module 'Newsletter subscription'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription BO: case 1 - Enable 'Send confirmation email' in the module 'Newsletter subscription' should login in BO", + "timedOut": false, + "duration": 1705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fc23471b-28c7-44fc-a0e0-edaaf432b1b0", + "parentUUID": "2ac2d454-2482-4c82-82e7-fc4200219c16", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription BO: case 1 - Enable 'Send confirmation email' in the module 'Newsletter subscription' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5211, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e843790c-5db0-4c59-97f3-da9078556f41", + "parentUUID": "2ac2d454-2482-4c82-82e7-fc4200219c16", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Newsletter subscription", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription BO: case 1 - Enable 'Send confirmation email' in the module 'Newsletter subscription' should search the module Newsletter subscription", + "timedOut": false, + "duration": 631, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailSubscription)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd38a862-9a20-49e3-b36c-c2bbb27bed47", + "parentUUID": "2ac2d454-2482-4c82-82e7-fc4200219c16", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Newsletter subscription'", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription BO: case 1 - Enable 'Send confirmation email' in the module 'Newsletter subscription' should go to the configuration page of the module 'Newsletter subscription'", + "timedOut": false, + "duration": 1451, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailSubscription.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailSubscription_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5716669d-5117-4660-bff3-0872751015b9", + "parentUUID": "2ac2d454-2482-4c82-82e7-fc4200219c16", + "isHook": false, + "skipped": false + }, + { + "title": "should enable 'Send confirmation email'", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription BO: case 1 - Enable 'Send confirmation email' in the module 'Newsletter subscription' should enable 'Send confirmation email'", + "timedOut": false, + "duration": 1028, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_enableNewOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableNewOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.setSendConfirmationEmail(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailSubscription_1.default.updateSettingsSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "677875cb-5d5d-44c2-a188-174cf31aaaae", + "parentUUID": "2ac2d454-2482-4c82-82e7-fc4200219c16", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "fc23471b-28c7-44fc-a0e0-edaaf432b1b0", + "e843790c-5db0-4c59-97f3-da9078556f41", + "fd38a862-9a20-49e3-b36c-c2bbb27bed47", + "5716669d-5117-4660-bff3-0872751015b9", + "677875cb-5d5d-44c2-a188-174cf31aaaae" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10026, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "57eb315f-6eae-4bb1-ab82-5514d5687007", + "title": "Go to FO to subscribe to the newsletter and check received email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check received email should view my shop", + "timedOut": false, + "duration": 1019, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goToFOToSubscribeToNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOToSubscribeToNewsletter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca793359-fbcb-4c23-a15b-5d811d7d2106", + "parentUUID": "57eb315f-6eae-4bb1-ab82-5514d5687007", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check received email should subscribe to newsletter", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_subscribeToNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeToNewsletter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, 'bonjour@prestashop.com')];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains(home_1.homePage.successSubscriptionMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e5f3c4c3-2918-43cc-968b-51af03bd9282", + "parentUUID": "57eb315f-6eae-4bb1-ab82-5514d5687007", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check received email should check the confirmation email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_checkConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Newsletter confirmation\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bff46f56-4641-443f-af78-720ec98d8eac", + "parentUUID": "57eb315f-6eae-4bb1-ab82-5514d5687007", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ca793359-fbcb-4c23-a15b-5d811d7d2106", + "e5f3c4c3-2918-43cc-968b-51af03bd9282", + "bff46f56-4641-443f-af78-720ec98d8eac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1321, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "6abb3569-24b7-484f-a68c-550f6146ac63", + "title": "Enable 'Send verification email' in the module 'Newsletter subscription'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Enable 'Send verification email' in the module 'Newsletter subscription' should go back to BO", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailSubscription_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8910ba18-2494-4313-9a08-1612423c1ea4", + "parentUUID": "6abb3569-24b7-484f-a68c-550f6146ac63", + "isHook": false, + "skipped": false + }, + { + "title": "should enable 'Send verification email'", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Enable 'Send verification email' in the module 'Newsletter subscription' should enable 'Send verification email'", + "timedOut": false, + "duration": 366, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_enableConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'enableConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.setSendVerificationEmail(page, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailSubscription_1.default.updateSettingsSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "893961c8-f881-4b22-8013-6eeab2372a80", + "parentUUID": "6abb3569-24b7-484f-a68c-550f6146ac63", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8910ba18-2494-4313-9a08-1612423c1ea4", + "893961c8-f881-4b22-8013-6eeab2372a80" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 377, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c8ddd420-84f8-4fb4-9c0b-4c7a99a7c25f", + "title": "Go to FO to subscribe to the newsletter and check validation email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check validation email should view my shop", + "timedOut": false, + "duration": 1006, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goToFOToSubscribeToNewsletter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOToSubscribeToNewsletter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4066e5b8-3110-4676-902e-8fbaec2ba3ca", + "parentUUID": "c8ddd420-84f8-4fb4-9c0b-4c7a99a7c25f", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check validation email should subscribe to newsletter", + "timedOut": false, + "duration": 293, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_subscribeToNewsletter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeToNewsletter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, 'hola@prestashop.com')];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains('A verification email has been sent. Please check your inbox');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "054b160b-0fcf-4496-b9c3-45860465e3af", + "parentUUID": "c8ddd420-84f8-4fb4-9c0b-4c7a99a7c25f", + "isHook": false, + "skipped": false + }, + { + "title": "should check verification email", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check validation email should check verification email", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_checkVerificationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkVerificationEmail', baseContext)];\n case 1:\n _a.sent();\n number = allEmails.length;\n (0, chai_1.expect)(number).to.equal(numberOfEmails + 1);\n (0, chai_1.expect)(allEmails[number - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Email verification\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e545f86d-c3b6-4b19-9bb4-00cafb65d792", + "parentUUID": "c8ddd420-84f8-4fb4-9c0b-4c7a99a7c25f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the link provided in the email", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check validation email should click on the link provided in the email", + "timedOut": false, + "duration": 262, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_clickOnProvidedLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var link;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnProvidedLink', baseContext)];\n case 1:\n _a.sent();\n link = allEmails[numberOfEmails].text.match(/https?:\\/\\/.*emailsubscription[^\\s]*/)[0];\n return [4 /*yield*/, home_1.homePage.goTo(page, link)];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "70e31c3f-5e8b-45c2-95fb-08930103fda5", + "parentUUID": "c8ddd420-84f8-4fb4-9c0b-4c7a99a7c25f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the success message", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check validation email should check the success message", + "timedOut": false, + "duration": 27, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_checkSuccessMessage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSuccessMessage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, emailSubscription_1.emailSubscriptionPage.getSuccessMessage(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal(emailSubscription_1.emailSubscriptionPage.emailRegistrationSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "700e7698-9e14-4057-962e-edb00a390f00", + "parentUUID": "c8ddd420-84f8-4fb4-9c0b-4c7a99a7c25f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the confirmation email", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check validation email should check the confirmation email", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_checkConfirmationEmail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkConfirmationEmail2', baseContext)];\n case 1:\n _a.sent();\n (0, chai_1.expect)(allEmails[numberOfEmails + 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Newsletter confirmation\"));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31ad088a-783c-4ae7-9c1c-f2665bf7e608", + "parentUUID": "c8ddd420-84f8-4fb4-9c0b-4c7a99a7c25f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4066e5b8-3110-4676-902e-8fbaec2ba3ca", + "054b160b-0fcf-4496-b9c3-45860465e3af", + "e545f86d-c3b6-4b19-9bb4-00cafb65d792", + "70e31c3f-5e8b-45c2-95fb-08930103fda5", + "700e7698-9e14-4057-962e-edb00a390f00", + "31ad088a-783c-4ae7-9c1c-f2665bf7e608" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1590, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fa552553-1314-4763-91d8-8d37b11f5bb0", + "title": "BO: case 2 - Disable all options in the module 'Newsletter subscription'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription BO: case 2 - Disable all options in the module 'Newsletter subscription' should go back to BO", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goBackToBO1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailSubscription_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d2ebd79-9487-4f1a-9e25-be5e3868a5b1", + "parentUUID": "fa552553-1314-4763-91d8-8d37b11f5bb0", + "isHook": false, + "skipped": false + }, + { + "title": "should disable 'Send confirmation email'", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription BO: case 2 - Disable all options in the module 'Newsletter subscription' should disable 'Send confirmation email'", + "timedOut": false, + "duration": 374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_disableSendConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableSendConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.setSendConfirmationEmail(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailSubscription_1.default.updateSettingsSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "713f74c6-e40d-4f54-adcc-26b1add0b086", + "parentUUID": "fa552553-1314-4763-91d8-8d37b11f5bb0", + "isHook": false, + "skipped": false + }, + { + "title": "should disable 'Send verification email'", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription BO: case 2 - Disable all options in the module 'Newsletter subscription' should disable 'Send verification email'", + "timedOut": false, + "duration": 990, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_disableSendVerificationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableSendVerificationEmail', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.setSendVerificationEmail(page, false)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailSubscription_1.default.updateSettingsSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "50495e04-8573-4b8c-9f9a-9d3191275937", + "parentUUID": "fa552553-1314-4763-91d8-8d37b11f5bb0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "5d2ebd79-9487-4f1a-9e25-be5e3868a5b1", + "713f74c6-e40d-4f54-adcc-26b1add0b086", + "50495e04-8573-4b8c-9f9a-9d3191275937" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1375, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5acddc85-844e-4e04-9981-81dac3e1dd0f", + "title": "Go to FO to subscribe to the newsletter and check no confirmation email is sent", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check no confirmation email is sent should view my shop", + "timedOut": false, + "duration": 996, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goToFOToSubscribeToNewsletter3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOToSubscribeToNewsletter3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d0b50b8a-d411-44e8-8df3-0ae8de2710c2", + "parentUUID": "5acddc85-844e-4e04-9981-81dac3e1dd0f", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check no confirmation email is sent should subscribe to newsletter", + "timedOut": false, + "duration": 152, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_subscribeToNewsletter3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeToNewsletter3', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, 'hola3@prestashop.com')];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains(home_1.homePage.successSubscriptionMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f1efbbe2-c79d-414c-b343-f91dd30527b3", + "parentUUID": "5acddc85-844e-4e04-9981-81dac3e1dd0f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no confirmation email is sent", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription Go to FO to subscribe to the newsletter and check no confirmation email is sent should check that no confirmation email is sent", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_checkNoConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n number = allEmails.length;\n (0, chai_1.expect)(number).to.equal(numberOfEmails + 2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2429489c-4d58-4ff3-8df3-d43f85b31dce", + "parentUUID": "5acddc85-844e-4e04-9981-81dac3e1dd0f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d0b50b8a-d411-44e8-8df3-0ae8de2710c2", + "f1efbbe2-c79d-414c-b343-f91dd30527b3", + "2429489c-4d58-4ff3-8df3-d43f85b31dce" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1148, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ce4a14d0-6cc4-4e11-bcc2-bc6776e859b7", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/02_checkConfirmationEmail.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 27, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3be67a31-613f-43cb-ab96-7ca54e761288", + "parentUUID": "ce4a14d0-6cc4-4e11-bcc2-bc6776e859b7", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "8da95512-b599-4927-a185-ef12a30a5067", + "parentUUID": "ce4a14d0-6cc4-4e11-bcc2-bc6776e859b7", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1714, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "64f88741-a73c-4a47-ad53-6ea77d973884", + "parentUUID": "ce4a14d0-6cc4-4e11-bcc2-bc6776e859b7", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d750443-ed0c-4931-bb28-af628f86e743", + "parentUUID": "ce4a14d0-6cc4-4e11-bcc2-bc6776e859b7", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "Mail alerts module - Enable/Disable send a confirmation email after subscription POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkConfirmationEmail_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b10a22d1-91d3-4547-adbd-0e73c27ddc6a", + "parentUUID": "ce4a14d0-6cc4-4e11-bcc2-bc6776e859b7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "64f88741-a73c-4a47-ad53-6ea77d973884", + "3d750443-ed0c-4931-bb28-af628f86e743", + "b10a22d1-91d3-4547-adbd-0e73c27ddc6a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7035, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e0a779a7-6c65-4ea7-a572-8a02f594ad24", + "title": "Mail alerts module - Check welcome voucher code", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Mail alerts module - Check welcome voucher code\"", + "fullTitle": "Mail alerts module - Check welcome voucher code \"before all\" hook in \"Mail alerts module - Check welcome voucher code\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n // Start listening to maildev server\n mailListener = mailHelper_1.default.createMailListener();\n mailHelper_1.default.startListener(mailListener);\n // get all emails\n // @ts-ignore\n mailListener.getAllEmail(function (err, emails) {\n allEmails = emails;\n });\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2c036a63-57d0-400e-9ac0-f5cba33e8a2f", + "parentUUID": "e0a779a7-6c65-4ea7-a572-8a02f594ad24", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Mail alerts module - Check welcome voucher code\"", + "fullTitle": "Mail alerts module - Check welcome voucher code \"after all\" hook in \"Mail alerts module - Check welcome voucher code\"", + "timedOut": false, + "duration": 23, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n // Stop listening to maildev server\n mailHelper_1.default.stopListener(mailListener);\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "9fd819e9-d26d-492c-a638-ab73e1356818", + "parentUUID": "e0a779a7-6c65-4ea7-a572-8a02f594ad24", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "f0417a8a-1d82-4657-b3ba-38d7c1db5892", + "title": "PRE-TEST: Setup SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Check welcome voucher code PRE-TEST: Setup SMTP config \"before all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "62688537-024f-4f0e-93fe-6797b7a4fb3a", + "parentUUID": "f0417a8a-1d82-4657-b3ba-38d7c1db5892", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "fullTitle": "Mail alerts module - Check welcome voucher code PRE-TEST: Setup SMTP config \"after all\" hook in \"PRE-TEST: Setup SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2f63a3e3-80c2-4ab4-a107-ac696d175406", + "parentUUID": "f0417a8a-1d82-4657-b3ba-38d7c1db5892", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Check welcome voucher code PRE-TEST: Setup SMTP config should login in BO", + "timedOut": false, + "duration": 1705, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "319ca43c-fd34-4856-a6a0-e1d11999df62", + "parentUUID": "f0417a8a-1d82-4657-b3ba-38d7c1db5892", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Check welcome voucher code PRE-TEST: Setup SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_preTest_goToEmailSetupPageForSetupSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForSetupSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "13cdc51f-e67f-4e17-9b8f-c8300710cbaa", + "parentUUID": "f0417a8a-1d82-4657-b3ba-38d7c1db5892", + "isHook": false, + "skipped": false + }, + { + "title": "should fill the smtp parameters form fields", + "fullTitle": "Mail alerts module - Check welcome voucher code PRE-TEST: Setup SMTP config should fill the smtp parameters form fields", + "timedOut": false, + "duration": 601, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_preTest_fillSmtpParametersFormField\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertSuccessMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'fillSmtpParametersFormField', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.setupSmtpParameters(page, smtpServer, customers_1.default.johnDoe.email, customers_1.default.johnDoe.password, smtpPort.toString())];\n case 2:\n alertSuccessMessage = _a.sent();\n (0, chai_1.expect)(alertSuccessMessage).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5ec2a218-10f9-40f8-9034-924f662cf8f8", + "parentUUID": "f0417a8a-1d82-4657-b3ba-38d7c1db5892", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "319ca43c-fd34-4856-a6a0-e1d11999df62", + "13cdc51f-e67f-4e17-9b8f-c8300710cbaa", + "5ec2a218-10f9-40f8-9034-924f662cf8f8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7200, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "d8acec88-3e2b-40b8-a179-809fa517f196", + "title": "Set a welcome voucher in the module 'Newsletter subscription'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Check welcome voucher code Set a welcome voucher in the module 'Newsletter subscription' should login in BO", + "timedOut": false, + "duration": 1726, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e63d69fd-2705-42a1-80d5-c649fe00dd46", + "parentUUID": "d8acec88-3e2b-40b8-a179-809fa517f196", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Mail alerts module - Check welcome voucher code Set a welcome voucher in the module 'Newsletter subscription' should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5195, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8aeefd40-f516-4d7f-bb88-652e2f7cd511", + "parentUUID": "d8acec88-3e2b-40b8-a179-809fa517f196", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Newsletter subscription", + "fullTitle": "Mail alerts module - Check welcome voucher code Set a welcome voucher in the module 'Newsletter subscription' should search the module Newsletter subscription", + "timedOut": false, + "duration": 608, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psEmailSubscription)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bbe8c09d-c53e-44bf-b24e-65824c7bc94a", + "parentUUID": "d8acec88-3e2b-40b8-a179-809fa517f196", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Newsletter subscription'", + "fullTitle": "Mail alerts module - Check welcome voucher code Set a welcome voucher in the module 'Newsletter subscription' should go to the configuration page of the module 'Newsletter subscription'", + "timedOut": false, + "duration": 1453, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psEmailSubscription.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailSubscription_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8d6ba1dd-102b-4d59-a4f6-cc2e717c098b", + "parentUUID": "d8acec88-3e2b-40b8-a179-809fa517f196", + "isHook": false, + "skipped": false + }, + { + "title": "should set a welcome voucher", + "fullTitle": "Mail alerts module - Check welcome voucher code Set a welcome voucher in the module 'Newsletter subscription' should set a welcome voucher", + "timedOut": false, + "duration": 1064, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_setWelcomeVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setWelcomeVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.setWelcomeVoucher(page, 'welcome')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailSubscription_1.default.updateSettingsSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd007aa2-bf88-475b-a069-38c64db622a6", + "parentUUID": "d8acec88-3e2b-40b8-a179-809fa517f196", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e63d69fd-2705-42a1-80d5-c649fe00dd46", + "8aeefd40-f516-4d7f-bb88-652e2f7cd511", + "bbe8c09d-c53e-44bf-b24e-65824c7bc94a", + "8d6ba1dd-102b-4d59-a4f6-cc2e717c098b", + "fd007aa2-bf88-475b-a069-38c64db622a6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 10046, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "277c7385-4521-4f5d-b00b-fb6b17276cd4", + "title": "Go to FO to subscribe to the newsletter and check received email", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Check welcome voucher code Go to FO to subscribe to the newsletter and check received email should view my shop", + "timedOut": false, + "duration": 1016, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_goToFOToSubscribeToNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOToSubscribeToNewsletter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c3612fe-be76-4ab9-bd6d-96d1c1664d8d", + "parentUUID": "277c7385-4521-4f5d-b00b-fb6b17276cd4", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter", + "fullTitle": "Mail alerts module - Check welcome voucher code Go to FO to subscribe to the newsletter and check received email should subscribe to newsletter", + "timedOut": false, + "duration": 297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_subscribeToNewsletter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeToNewsletter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, 'bonjour4@prestashop.com')];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains(home_1.homePage.successSubscriptionMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a2d849fd-b5c5-4c03-9d10-0ee137a05467", + "parentUUID": "277c7385-4521-4f5d-b00b-fb6b17276cd4", + "isHook": false, + "skipped": false + }, + { + "title": "should check the voucher email", + "fullTitle": "Mail alerts module - Check welcome voucher code Go to FO to subscribe to the newsletter and check received email should check the voucher email", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_checkConfirmationEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkConfirmationEmail', baseContext)];\n case 1:\n _a.sent();\n numberOfEmails = allEmails.length;\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].subject).to.equal(\"[\".concat(global.INSTALL.SHOP_NAME, \"] Newsletter voucher\"));\n (0, chai_1.expect)(allEmails[numberOfEmails - 1].text).to.contains('We are pleased to offer you the following voucher: welcome');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3d9c936a-ebae-41a4-86c9-7e2f692694ab", + "parentUUID": "277c7385-4521-4f5d-b00b-fb6b17276cd4", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c3612fe-be76-4ab9-bd6d-96d1c1664d8d", + "a2d849fd-b5c5-4c03-9d10-0ee137a05467", + "3d9c936a-ebae-41a4-86c9-7e2f692694ab" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1313, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1176904a-5e11-4235-a2d7-c4b17cd421dc", + "title": "Delete voucher 'Newsletter subscription'", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "Mail alerts module - Check welcome voucher code Delete voucher 'Newsletter subscription' should go back to BO", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(psEmailSubscription_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a118cfea-7584-4616-9e9d-b0cdf360efd3", + "parentUUID": "1176904a-5e11-4235-a2d7-c4b17cd421dc", + "isHook": false, + "skipped": false + }, + { + "title": "should delete the voucher", + "fullTitle": "Mail alerts module - Check welcome voucher code Delete voucher 'Newsletter subscription' should delete the voucher", + "timedOut": false, + "duration": 345, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_deleteVoucher\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteVoucher', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.setWelcomeVoucher(page, '')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.contains(psEmailSubscription_1.default.updateSettingsSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "472f7b1e-914c-4dbf-a52d-11dd8bc42b37", + "parentUUID": "1176904a-5e11-4235-a2d7-c4b17cd421dc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a118cfea-7584-4616-9e9d-b0cdf360efd3", + "472f7b1e-914c-4dbf-a52d-11dd8bc42b37" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 356, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a7af4759-c49b-4329-a093-36ebedf83e14", + "title": "Go to FO to subscribe to the newsletter and check no voucher email is sent", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should view my shop", + "fullTitle": "Mail alerts module - Check welcome voucher code Go to FO to subscribe to the newsletter and check no voucher email is sent should view my shop", + "timedOut": false, + "duration": 1026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_goToFOToSubscribeToNewsletter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOToSubscribeToNewsletter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psEmailSubscription_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.equal(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5d81dc5-7ecc-4486-97fd-5c499bf7d326", + "parentUUID": "a7af4759-c49b-4329-a093-36ebedf83e14", + "isHook": false, + "skipped": false + }, + { + "title": "should subscribe to newsletter", + "fullTitle": "Mail alerts module - Check welcome voucher code Go to FO to subscribe to the newsletter and check no voucher email is sent should subscribe to newsletter", + "timedOut": false, + "duration": 150, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_subscribeToNewsletter2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newsletterSubscribeAlertMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'subscribeToNewsletter2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.subscribeToNewsletter(page, 'hola2@prestashop.com')];\n case 2:\n newsletterSubscribeAlertMessage = _a.sent();\n (0, chai_1.expect)(newsletterSubscribeAlertMessage).to.contains(home_1.homePage.successSubscriptionMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6b6319c-f215-45be-8960-b1ffb0a52d11", + "parentUUID": "a7af4759-c49b-4329-a093-36ebedf83e14", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no voucher email is sent", + "fullTitle": "Mail alerts module - Check welcome voucher code Go to FO to subscribe to the newsletter and check no voucher email is sent should check that no voucher email is sent", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_checkNoVoucherEmail\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var number;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoVoucherEmail', baseContext)];\n case 1:\n _a.sent();\n number = allEmails.length;\n (0, chai_1.expect)(number).to.equal(numberOfEmails);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d64c63af-1a9e-4b49-8f11-4e152dc4cdad", + "parentUUID": "a7af4759-c49b-4329-a093-36ebedf83e14", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c5d81dc5-7ecc-4486-97fd-5c499bf7d326", + "d6b6319c-f215-45be-8960-b1ffb0a52d11", + "d64c63af-1a9e-4b49-8f11-4e152dc4cdad" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1176, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "64dab60e-0ab9-4530-908b-2e254f0db81d", + "title": "POST-TEST: Reset SMTP config", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "file": "/campaigns/modules/ps_emailsubscription/02_configuration/03_checkWelcomeVoucher.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Check welcome voucher code POST-TEST: Reset SMTP config \"before all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 28, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1728b394-2d69-49c1-9613-51ce87df5603", + "parentUUID": "64dab60e-0ab9-4530-908b-2e254f0db81d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "fullTitle": "Mail alerts module - Check welcome voucher code POST-TEST: Reset SMTP config \"after all\" hook in \"POST-TEST: Reset SMTP config\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "669ed7ca-c808-4326-ba77-f398ab40123f", + "parentUUID": "64dab60e-0ab9-4530-908b-2e254f0db81d", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Mail alerts module - Check welcome voucher code POST-TEST: Reset SMTP config should login in BO", + "timedOut": false, + "duration": 1681, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45abb2ac-c49f-45a9-bfae-7d695a6d674b", + "parentUUID": "64dab60e-0ab9-4530-908b-2e254f0db81d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Parameters > E-mail' page", + "fullTitle": "Mail alerts module - Check welcome voucher code POST-TEST: Reset SMTP config should go to 'Advanced Parameters > E-mail' page", + "timedOut": false, + "duration": 4915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_postTest_goToEmailSetupPageForResetSmtpParams\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEmailSetupPageForResetSmtpParams', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.advancedParametersLink, dashboard_1.default.emailLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, email_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, email_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(email_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bc5fcea1-8ae9-452d-841d-40ad00b28f49", + "parentUUID": "64dab60e-0ab9-4530-908b-2e254f0db81d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset parameters", + "fullTitle": "Mail alerts module - Check welcome voucher code POST-TEST: Reset SMTP config should reset parameters", + "timedOut": false, + "duration": 419, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_emailsubscription_configuration_checkWelcomeVoucher_postTest_resetMailParameters\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successParametersReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetMailParameters', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, email_1.default.resetDefaultParameters(page)];\n case 2:\n successParametersReset = _a.sent();\n (0, chai_1.expect)(successParametersReset).to.contains(email_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3031772-244a-4181-b0f8-e24b3ba681fb", + "parentUUID": "64dab60e-0ab9-4530-908b-2e254f0db81d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "45abb2ac-c49f-45a9-bfae-7d695a6d674b", + "bc5fcea1-8ae9-452d-841d-40ad00b28f49", + "d3031772-244a-4181-b0f8-e24b3ba681fb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7015, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "title": "Faceted search module - Uninstall and delete module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_facetedsearch/01_installation/04_uninstallAndDeleteModule.ts", + "file": "/campaigns/modules/ps_facetedsearch/01_installation/04_uninstallAndDeleteModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Faceted search module - Uninstall and delete module\"", + "fullTitle": "Faceted search module - Uninstall and delete module \"before all\" hook in \"Faceted search module - Uninstall and delete module\"", + "timedOut": false, + "duration": 34, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dcbe1f39-07e1-4f13-95ee-05538d0e6738", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Faceted search module - Uninstall and delete module\"", + "fullTitle": "Faceted search module - Uninstall and delete module \"after all\" hook in \"Faceted search module - Uninstall and delete module\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('module.zip')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "7c1ebb41-ebce-4940-9284-065d701ed503", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Faceted search module - Uninstall and delete module should login in BO", + "timedOut": false, + "duration": 1855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1879a73-b266-498e-8ab6-97a280e15212", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Faceted search module - Uninstall and delete module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5190, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "42cb8744-d7b3-4a3e-97df-e7cfdef9fa8f", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Faceted search", + "fullTitle": "Faceted search module - Uninstall and delete module should search the module Faceted search", + "timedOut": false, + "duration": 627, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psFacetedSearch)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8c5d90ee-b6a8-49f9-a764-7dc9ed7103ea", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": false, + "skipped": false + }, + { + "title": "should display the uninstall modal and cancel it", + "fullTitle": "Faceted search module - Uninstall and delete module should display the uninstall modal and cancel it", + "timedOut": false, + "duration": 1893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_resetModuleAndCancel\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isModuleVisible, isModalVisible, dirExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModuleAndCancel', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psFacetedSearch, 'uninstall', true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.eq('');\n return [4 /*yield*/, moduleManager_1.moduleManager.isModuleVisible(page, modules_1.default.psFacetedSearch)];\n case 3:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [4 /*yield*/, moduleManager_1.moduleManager.isModalActionVisible(page, modules_1.default.psFacetedSearch, 'uninstall')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(false);\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/modules/\").concat(modules_1.default.psFacetedSearch.tag, \"/\"))];\n case 5:\n dirExists = _a.sent();\n (0, chai_1.expect)(dirExists).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d68f30b4-8cce-4ef4-9af0-aa0f7724720c", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": false, + "skipped": false + }, + { + "title": "should uninstall the module", + "fullTitle": "Faceted search module - Uninstall and delete module should uninstall the module", + "timedOut": false, + "duration": 8007, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_resetModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage, dirExists;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psFacetedSearch, 'uninstall', false, true)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uninstallModuleSuccessMessage(modules_1.default.psFacetedSearch.tag));\n return [4 /*yield*/, files_1.default.doesFileExist(\"\".concat(files_1.default.getRootPath(), \"/modules/\").concat(modules_1.default.psFacetedSearch.tag, \"/\"))];\n case 3:\n dirExists = _a.sent();\n (0, chai_1.expect)(dirExists).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e255d3f8-bd60-4bcd-8116-3a0795d52ffd", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to Front Office", + "fullTitle": "Faceted search module - Uninstall and delete module should go to Front Office", + "timedOut": false, + "duration": 4852, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_goToFo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9d857ef-a1f6-45c8-a8ac-5e67b7a7e624", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the category Page", + "fullTitle": "Faceted search module - Uninstall and delete module should go to the category Page", + "timedOut": false, + "duration": 819, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_goToCategoryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCategoryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, categories_1.default.clothes.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(categories_1.default.clothes.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dd698bd8-1675-41b9-b718-b38f8c7fe761", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": false, + "skipped": false + }, + { + "title": "should check that Faceted search is not present", + "fullTitle": "Faceted search module - Uninstall and delete module should check that Faceted search is not present", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_checkModuleNotPresent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var hasFilters;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkModuleNotPresent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 2:\n hasFilters = _a.sent();\n (0, chai_1.expect)(hasFilters).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8640392d-bdb8-41ea-8fc3-47c17a40e822", + "parentUUID": "3d9bb775-5250-423e-8d52-dd5af6ac65c0", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "2f505408-8174-4455-9951-b1d5dd450af0", + "title": "POST-CONDITION : Install the module Faceted search", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_facetedsearch/01_installation/04_uninstallAndDeleteModule.ts", + "file": "/campaigns/modules/ps_facetedsearch/01_installation/04_uninstallAndDeleteModule.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to Back Office", + "fullTitle": "Faceted search module - Uninstall and delete module POST-CONDITION : Install the module Faceted search should go back to Back Office", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_returnToBo\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'returnToBo', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63a8936d-6e28-4a3d-b6cd-9b50ae91050a", + "parentUUID": "2f505408-8174-4455-9951-b1d5dd450af0", + "isHook": false, + "skipped": false + }, + { + "title": "should download the zip of the module 'Faceted search'", + "fullTitle": "Faceted search module - Uninstall and delete module POST-CONDITION : Install the module Faceted search should download the zip of the module 'Faceted search'", + "timedOut": false, + "duration": 649, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_downloadModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var found;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.downloadFile(modules_1.default.psFacetedSearch.releaseZip, 'module.zip')];\n case 2:\n _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist('module.zip')];\n case 3:\n found = _a.sent();\n (0, chai_1.expect)(found).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f7be710-2ac4-4af7-87b4-46c2fa7b6bf6", + "parentUUID": "2f505408-8174-4455-9951-b1d5dd450af0", + "isHook": false, + "skipped": false + }, + { + "title": "should upload the module 'Faceted search'", + "fullTitle": "Faceted search module - Uninstall and delete module POST-CONDITION : Install the module Faceted search should upload the module 'Faceted search'", + "timedOut": false, + "duration": 5337, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_uploadModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'uploadModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.uploadModule(page, 'module.zip')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.uploadModuleSuccessMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0158dc38-d757-4a37-9fb5-19e9f15d84cd", + "parentUUID": "2f505408-8174-4455-9951-b1d5dd450af0", + "isHook": false, + "skipped": false + }, + { + "title": "should close upload module modal", + "fullTitle": "Faceted search module - Uninstall and delete module POST-CONDITION : Install the module Faceted search should close upload module modal", + "timedOut": false, + "duration": 211, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_closeModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeUploadModuleModal(page)];\n case 2:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b5c1b879-2371-4f1e-9cef-05b5d34ff9c0", + "parentUUID": "2f505408-8174-4455-9951-b1d5dd450af0", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module 'Faceted search'", + "fullTitle": "Faceted search module - Uninstall and delete module POST-CONDITION : Install the module Faceted search should search the module 'Faceted search'", + "timedOut": false, + "duration": 2046, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_installation_uninstallAndDeleteModule_checkModulePresent\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkModulePresent', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psFacetedSearch)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible, 'Module is not visible!').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf596c4e-ae42-45c3-abbb-49c3b63f688f", + "parentUUID": "2f505408-8174-4455-9951-b1d5dd450af0", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "63a8936d-6e28-4a3d-b6cd-9b50ae91050a", + "6f7be710-2ac4-4af7-87b4-46c2fa7b6bf6", + "0158dc38-d757-4a37-9fb5-19e9f15d84cd", + "b5c1b879-2371-4f1e-9cef-05b5d34ff9c0", + "bf596c4e-ae42-45c3-abbb-49c3b63f688f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8247, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c1879a73-b266-498e-8ab6-97a280e15212", + "42cb8744-d7b3-4a3e-97df-e7cfdef9fa8f", + "8c5d90ee-b6a8-49f9-a764-7dc9ed7103ea", + "d68f30b4-8cce-4ef4-9af0-aa0f7724720c", + "e255d3f8-bd60-4bcd-8116-3a0795d52ffd", + "e9d857ef-a1f6-45c8-a8ac-5e67b7a7e624", + "dd698bd8-1675-41b9-b718-b38f8c7fe761", + "8640392d-bdb8-41ea-8fc3-47c17a40e822" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 23253, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "c261acd9-62ca-48f6-b557-232fa842c06f", + "title": "Faceted search module - Edit template - Product stock filter", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_facetedsearch/02_configuration/14_editTemplateProductStockFilter.ts", + "file": "/campaigns/modules/ps_facetedsearch/02_configuration/14_editTemplateProductStockFilter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Faceted search module - Edit template - Product stock filter\"", + "fullTitle": "Faceted search module - Edit template - Product stock filter \"before all\" hook in \"Faceted search module - Edit template - Product stock filter\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5cb4f37d-2dc5-43ed-be15-340ed03f01a0", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Faceted search module - Edit template - Product stock filter\"", + "fullTitle": "Faceted search module - Edit template - Product stock filter \"after all\" hook in \"Faceted search module - Edit template - Product stock filter\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('module.zip')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "761c27e4-afbc-4c2c-aa6a-a4d4108d934b", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Faceted search module - Edit template - Product stock filter should login in BO", + "timedOut": false, + "duration": 1905, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3e019727-f8b5-4083-a638-daeac4d7b1c0", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Faceted search module - Edit template - Product stock filter should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5263, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "610bf31a-d397-4cd5-9dba-178c36f5e7ed", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Faceted search", + "fullTitle": "Faceted search module - Edit template - Product stock filter should search the module Faceted search", + "timedOut": false, + "duration": 628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psFacetedSearch)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "add9eb31-0340-4ca6-8018-3c17e85706df", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Faceted search'", + "fullTitle": "Faceted search module - Edit template - Product stock filter should go to the configuration page of the module 'Faceted search'", + "timedOut": false, + "duration": 1412, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psFacetedSearch.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3b4eb096-282f-4ae0-9e2c-802a72f72991", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the filter template", + "fullTitle": "Faceted search module - Edit template - Product stock filter should edit the filter template", + "timedOut": false, + "duration": 893, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_editFilterTemplate_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editFilterTemplate_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.editFilterTemplate(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.getPanelTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(filterTemplate_1.default.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3be735ee-b5d2-498f-9c81-151ff3ecd9d7", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the filter \"Product stock filter\" ", + "fullTitle": "Faceted search module - Edit template - Product stock filter should disable the filter \"Product stock filter\" ", + "timedOut": false, + "duration": 891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_setProductStockFilter_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setProductStockFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.setFilterForm(page, 'Product stock filter', test.filterStatus, test.filterType)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.match(/× Your filter \"[-A-Za-z0-9\\s]+\" was updated successfully./);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8e8b1f2-6686-4fc4-b402-ab129b537ae2", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "Faceted search module - Edit template - Product stock filter should view my shop", + "timedOut": false, + "duration": 1020, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_viewMyShop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "82860f65-782e-49b6-add3-3302d38d0619", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the \"All products\" page", + "fullTitle": "Faceted search module - Edit template - Product stock filter should check the \"All products\" page", + "timedOut": false, + "duration": 962, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_goToAllProductsPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible, hasSearchFilters, isSearchFilterRadio, isSearchFilterDropdown, isSearchFiltersCheckbox;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProductsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.be.eq(true);\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 4:\n hasSearchFilters = _a.sent();\n (0, chai_1.expect)(hasSearchFilters).to.be.eq(test.expectedHasSearchFilters);\n return [4 /*yield*/, category_1.default.isSearchFilterRadio(page, 'availability')];\n case 5:\n isSearchFilterRadio = _a.sent();\n (0, chai_1.expect)(isSearchFilterRadio).to.be.eq(test.expectedIsSearchFilterRadio);\n return [4 /*yield*/, category_1.default.isSearchFilterDropdown(page, 'availability')];\n case 6:\n isSearchFilterDropdown = _a.sent();\n (0, chai_1.expect)(isSearchFilterDropdown).to.be.eq(test.expectedIsSearchFilterDropdown);\n return [4 /*yield*/, category_1.default.isSearchFiltersCheckbox(page, 'availability')];\n case 7:\n isSearchFiltersCheckbox = _a.sent();\n (0, chai_1.expect)(isSearchFiltersCheckbox).to.be.eq(test.expectedIsSearchFilterCheckbox);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4491089c-8c28-4d13-846a-f0b7bb12b5ec", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and return to the backOffice", + "fullTitle": "Faceted search module - Edit template - Product stock filter should close the page and return to the backOffice", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_closePageFo_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageFo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ae4cfbeb-bf15-46e6-a566-0e35682ea817", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the filter template", + "fullTitle": "Faceted search module - Edit template - Product stock filter should edit the filter template", + "timedOut": false, + "duration": 302, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_editFilterTemplate_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editFilterTemplate_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.editFilterTemplate(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.getPanelTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(filterTemplate_1.default.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "112b9947-8aac-407a-a446-5ff7014719b3", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the filter \"Product stock filter\" with filter mode \"radio\"", + "fullTitle": "Faceted search module - Edit template - Product stock filter should enable the filter \"Product stock filter\" with filter mode \"radio\"", + "timedOut": false, + "duration": 902, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_setProductStockFilter_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setProductStockFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.setFilterForm(page, 'Product stock filter', test.filterStatus, test.filterType)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.match(/× Your filter \"[-A-Za-z0-9\\s]+\" was updated successfully./);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9658d3f9-3329-4752-acf9-47fd01bada06", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "Faceted search module - Edit template - Product stock filter should view my shop", + "timedOut": false, + "duration": 983, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e6f14da-0497-46de-aa85-8fedaec32f62", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the \"All products\" page", + "fullTitle": "Faceted search module - Edit template - Product stock filter should check the \"All products\" page", + "timedOut": false, + "duration": 963, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_goToAllProductsPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible, hasSearchFilters, isSearchFilterRadio, isSearchFilterDropdown, isSearchFiltersCheckbox;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProductsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.be.eq(true);\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 4:\n hasSearchFilters = _a.sent();\n (0, chai_1.expect)(hasSearchFilters).to.be.eq(test.expectedHasSearchFilters);\n return [4 /*yield*/, category_1.default.isSearchFilterRadio(page, 'availability')];\n case 5:\n isSearchFilterRadio = _a.sent();\n (0, chai_1.expect)(isSearchFilterRadio).to.be.eq(test.expectedIsSearchFilterRadio);\n return [4 /*yield*/, category_1.default.isSearchFilterDropdown(page, 'availability')];\n case 6:\n isSearchFilterDropdown = _a.sent();\n (0, chai_1.expect)(isSearchFilterDropdown).to.be.eq(test.expectedIsSearchFilterDropdown);\n return [4 /*yield*/, category_1.default.isSearchFiltersCheckbox(page, 'availability')];\n case 7:\n isSearchFiltersCheckbox = _a.sent();\n (0, chai_1.expect)(isSearchFiltersCheckbox).to.be.eq(test.expectedIsSearchFilterCheckbox);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f4dcd1c5-0a93-4493-91b1-fe720bfba56b", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and return to the backOffice", + "fullTitle": "Faceted search module - Edit template - Product stock filter should close the page and return to the backOffice", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_closePageFo_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageFo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d1a4ba3a-2c69-4baa-b263-4283ba0d6272", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the filter template", + "fullTitle": "Faceted search module - Edit template - Product stock filter should edit the filter template", + "timedOut": false, + "duration": 296, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_editFilterTemplate_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editFilterTemplate_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.editFilterTemplate(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.getPanelTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(filterTemplate_1.default.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f2d5f331-5418-484c-b764-45a00ccf4647", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the filter \"Product stock filter\" with filter mode \"dropdown\"", + "fullTitle": "Faceted search module - Edit template - Product stock filter should enable the filter \"Product stock filter\" with filter mode \"dropdown\"", + "timedOut": false, + "duration": 861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_setProductStockFilter_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setProductStockFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.setFilterForm(page, 'Product stock filter', test.filterStatus, test.filterType)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.match(/× Your filter \"[-A-Za-z0-9\\s]+\" was updated successfully./);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0339e5b0-2498-42e2-b44a-83c7e8152f33", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "Faceted search module - Edit template - Product stock filter should view my shop", + "timedOut": false, + "duration": 991, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_viewMyShop_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0e39181-fec3-4785-a9ec-673849cdaede", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the \"All products\" page", + "fullTitle": "Faceted search module - Edit template - Product stock filter should check the \"All products\" page", + "timedOut": false, + "duration": 936, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_goToAllProductsPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible, hasSearchFilters, isSearchFilterRadio, isSearchFilterDropdown, isSearchFiltersCheckbox;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProductsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.be.eq(true);\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 4:\n hasSearchFilters = _a.sent();\n (0, chai_1.expect)(hasSearchFilters).to.be.eq(test.expectedHasSearchFilters);\n return [4 /*yield*/, category_1.default.isSearchFilterRadio(page, 'availability')];\n case 5:\n isSearchFilterRadio = _a.sent();\n (0, chai_1.expect)(isSearchFilterRadio).to.be.eq(test.expectedIsSearchFilterRadio);\n return [4 /*yield*/, category_1.default.isSearchFilterDropdown(page, 'availability')];\n case 6:\n isSearchFilterDropdown = _a.sent();\n (0, chai_1.expect)(isSearchFilterDropdown).to.be.eq(test.expectedIsSearchFilterDropdown);\n return [4 /*yield*/, category_1.default.isSearchFiltersCheckbox(page, 'availability')];\n case 7:\n isSearchFiltersCheckbox = _a.sent();\n (0, chai_1.expect)(isSearchFiltersCheckbox).to.be.eq(test.expectedIsSearchFilterCheckbox);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "01be021b-5f83-4aaf-b67e-ef542b38be43", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and return to the backOffice", + "fullTitle": "Faceted search module - Edit template - Product stock filter should close the page and return to the backOffice", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_closePageFo_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageFo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05d491d6-dbac-4541-b49b-0cee56c91ed4", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the filter template", + "fullTitle": "Faceted search module - Edit template - Product stock filter should edit the filter template", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_editFilterTemplate_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editFilterTemplate_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.editFilterTemplate(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.getPanelTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(filterTemplate_1.default.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cbf24d3-aeb5-43fb-b49f-9dfe201551db", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the filter \"Product stock filter\" with filter mode \"checkbox\"", + "fullTitle": "Faceted search module - Edit template - Product stock filter should enable the filter \"Product stock filter\" with filter mode \"checkbox\"", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_setProductStockFilter_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setProductStockFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.setFilterForm(page, 'Product stock filter', test.filterStatus, test.filterType)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.match(/× Your filter \"[-A-Za-z0-9\\s]+\" was updated successfully./);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f98bfd9b-d23a-429d-bd43-600e503b1410", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "Faceted search module - Edit template - Product stock filter should view my shop", + "timedOut": false, + "duration": 975, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_viewMyShop_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7fa1c051-fc08-4639-92b7-00c3e96cb1ae", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should check the \"All products\" page", + "fullTitle": "Faceted search module - Edit template - Product stock filter should check the \"All products\" page", + "timedOut": false, + "duration": 938, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_goToAllProductsPage_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible, hasSearchFilters, isSearchFilterRadio, isSearchFilterDropdown, isSearchFiltersCheckbox;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProductsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.be.eq(true);\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 4:\n hasSearchFilters = _a.sent();\n (0, chai_1.expect)(hasSearchFilters).to.be.eq(test.expectedHasSearchFilters);\n return [4 /*yield*/, category_1.default.isSearchFilterRadio(page, 'availability')];\n case 5:\n isSearchFilterRadio = _a.sent();\n (0, chai_1.expect)(isSearchFilterRadio).to.be.eq(test.expectedIsSearchFilterRadio);\n return [4 /*yield*/, category_1.default.isSearchFilterDropdown(page, 'availability')];\n case 6:\n isSearchFilterDropdown = _a.sent();\n (0, chai_1.expect)(isSearchFilterDropdown).to.be.eq(test.expectedIsSearchFilterDropdown);\n return [4 /*yield*/, category_1.default.isSearchFiltersCheckbox(page, 'availability')];\n case 7:\n isSearchFiltersCheckbox = _a.sent();\n (0, chai_1.expect)(isSearchFiltersCheckbox).to.be.eq(test.expectedIsSearchFilterCheckbox);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b429d1c-2b55-4abc-a23e-61ed9c765d1f", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and return to the backOffice", + "fullTitle": "Faceted search module - Edit template - Product stock filter should close the page and return to the backOffice", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductStockFilter_closePageFo_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageFo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8553bba2-915c-4f07-a8ee-952affd9bfd2", + "parentUUID": "c261acd9-62ca-48f6-b557-232fa842c06f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3e019727-f8b5-4083-a638-daeac4d7b1c0", + "610bf31a-d397-4cd5-9dba-178c36f5e7ed", + "add9eb31-0340-4ca6-8018-3c17e85706df", + "3b4eb096-282f-4ae0-9e2c-802a72f72991", + "3be735ee-b5d2-498f-9c81-151ff3ecd9d7", + "f8e8b1f2-6686-4fc4-b402-ab129b537ae2", + "82860f65-782e-49b6-add3-3302d38d0619", + "4491089c-8c28-4d13-846a-f0b7bb12b5ec", + "ae4cfbeb-bf15-46e6-a566-0e35682ea817", + "112b9947-8aac-407a-a446-5ff7014719b3", + "9658d3f9-3329-4752-acf9-47fd01bada06", + "8e6f14da-0497-46de-aa85-8fedaec32f62", + "f4dcd1c5-0a93-4493-91b1-fe720bfba56b", + "d1a4ba3a-2c69-4baa-b263-4283ba0d6272", + "f2d5f331-5418-484c-b764-45a00ccf4647", + "0339e5b0-2498-42e2-b44a-83c7e8152f33", + "a0e39181-fec3-4785-a9ec-673849cdaede", + "01be021b-5f83-4aaf-b67e-ef542b38be43", + "05d491d6-dbac-4541-b49b-0cee56c91ed4", + "2cbf24d3-aeb5-43fb-b49f-9dfe201551db", + "f98bfd9b-d23a-429d-bd43-600e503b1410", + "7fa1c051-fc08-4639-92b7-00c3e96cb1ae", + "8b429d1c-2b55-4abc-a23e-61ed9c765d1f", + "8553bba2-915c-4f07-a8ee-952affd9bfd2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22339, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "title": "Faceted search module - Edit template - Product brand filter", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_facetedsearch/02_configuration/15_editTemplateProductBrandFilter.ts", + "file": "/campaigns/modules/ps_facetedsearch/02_configuration/15_editTemplateProductBrandFilter.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Faceted search module - Edit template - Product brand filter\"", + "fullTitle": "Faceted search module - Edit template - Product brand filter \"before all\" hook in \"Faceted search module - Edit template - Product brand filter\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ec28d55-bdd4-4eae-b08c-b04cf858a3fc", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Faceted search module - Edit template - Product brand filter\"", + "fullTitle": "Faceted search module - Edit template - Product brand filter \"after all\" hook in \"Faceted search module - Edit template - Product brand filter\"", + "timedOut": false, + "duration": 7, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, files_1.default.deleteFile('module.zip')];\n case 2:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "b9cf634d-ed74-415d-9c82-a13409498615", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Faceted search module - Edit template - Product brand filter should login in BO", + "timedOut": false, + "duration": 1720, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0dd1c9a2-8dc5-4639-98e7-5271a484ca25", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Faceted search module - Edit template - Product brand filter should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5202, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97003c3d-7db8-4a4c-88ac-96fc2aca8eeb", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Faceted search", + "fullTitle": "Faceted search module - Edit template - Product brand filter should search the module Faceted search", + "timedOut": false, + "duration": 641, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psFacetedSearch)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "303e887d-35b2-4d57-8c7e-4d1c677dcc5d", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the configuration page of the module 'Faceted search'", + "fullTitle": "Faceted search module - Edit template - Product brand filter should go to the configuration page of the module 'Faceted search'", + "timedOut": false, + "duration": 1383, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_goToConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.goToConfigurationPage(page, modules_1.default.psFacetedSearch.tag)];\n case 2:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6d4051de-dd80-4baa-ab25-6a773e382cdd", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the filter template", + "fullTitle": "Faceted search module - Edit template - Product brand filter should edit the filter template", + "timedOut": false, + "duration": 864, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_editFilterTemplate_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editFilterTemplate_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.editFilterTemplate(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.getPanelTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(filterTemplate_1.default.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1cd765e-d850-47a3-918a-2228cedc845d", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should disable the filter \"Product brand filter\" ", + "fullTitle": "Faceted search module - Edit template - Product brand filter should disable the filter \"Product brand filter\" ", + "timedOut": false, + "duration": 887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_setProductBrandFilter_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setProductBrandFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.setFilterForm(page, 'Product brand filter', test.filterStatus, test.filterType)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.match(/× Your filter \"[-A-Za-z0-9\\s]+\" was updated successfully./);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b352a0af-2cac-4989-9ccf-415e3590e7aa", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "Faceted search module - Edit template - Product brand filter should view my shop", + "timedOut": false, + "duration": 1038, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_viewMyShop_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c6737b2-d3e3-43f8-83a9-b1321c93f653", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should check the \"All products\" page", + "fullTitle": "Faceted search module - Edit template - Product brand filter should check the \"All products\" page", + "timedOut": false, + "duration": 934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_goToAllProductsPage_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible, hasSearchFilters, isSearchFilterRadio, isSearchFilterDropdown, isSearchFiltersCheckbox;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProductsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.be.eq(true);\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 4:\n hasSearchFilters = _a.sent();\n (0, chai_1.expect)(hasSearchFilters).to.be.eq(test.expectedHasSearchFilters);\n return [4 /*yield*/, category_1.default.isSearchFilterRadio(page, 'manufacturer')];\n case 5:\n isSearchFilterRadio = _a.sent();\n (0, chai_1.expect)(isSearchFilterRadio).to.be.eq(test.expectedIsSearchFilterRadio);\n return [4 /*yield*/, category_1.default.isSearchFilterDropdown(page, 'manufacturer')];\n case 6:\n isSearchFilterDropdown = _a.sent();\n (0, chai_1.expect)(isSearchFilterDropdown).to.be.eq(test.expectedIsSearchFilterDropdown);\n return [4 /*yield*/, category_1.default.isSearchFiltersCheckbox(page, 'manufacturer')];\n case 7:\n isSearchFiltersCheckbox = _a.sent();\n (0, chai_1.expect)(isSearchFiltersCheckbox).to.be.eq(test.expectedIsSearchFilterCheckbox);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "186278fb-1bdc-49d9-be73-0b4b7d31088f", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and return to the backOffice", + "fullTitle": "Faceted search module - Edit template - Product brand filter should close the page and return to the backOffice", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_closePageFo_0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageFo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f33ed440-4257-4b00-9435-e6698b216280", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the filter template", + "fullTitle": "Faceted search module - Edit template - Product brand filter should edit the filter template", + "timedOut": false, + "duration": 308, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_editFilterTemplate_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editFilterTemplate_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.editFilterTemplate(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.getPanelTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(filterTemplate_1.default.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b1ae7c2-ba65-4c61-911b-de1725a135f3", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the filter \"Product brand filter\" with filter mode \"radio\"", + "fullTitle": "Faceted search module - Edit template - Product brand filter should enable the filter \"Product brand filter\" with filter mode \"radio\"", + "timedOut": false, + "duration": 915, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_setProductBrandFilter_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setProductBrandFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.setFilterForm(page, 'Product brand filter', test.filterStatus, test.filterType)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.match(/× Your filter \"[-A-Za-z0-9\\s]+\" was updated successfully./);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e338a62c-5e18-458a-b0ab-cb71e567b5ff", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "Faceted search module - Edit template - Product brand filter should view my shop", + "timedOut": false, + "duration": 1003, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_viewMyShop_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "125112c2-8c2b-4a68-b717-2f3c450a70d5", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should check the \"All products\" page", + "fullTitle": "Faceted search module - Edit template - Product brand filter should check the \"All products\" page", + "timedOut": false, + "duration": 944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_goToAllProductsPage_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible, hasSearchFilters, isSearchFilterRadio, isSearchFilterDropdown, isSearchFiltersCheckbox;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProductsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.be.eq(true);\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 4:\n hasSearchFilters = _a.sent();\n (0, chai_1.expect)(hasSearchFilters).to.be.eq(test.expectedHasSearchFilters);\n return [4 /*yield*/, category_1.default.isSearchFilterRadio(page, 'manufacturer')];\n case 5:\n isSearchFilterRadio = _a.sent();\n (0, chai_1.expect)(isSearchFilterRadio).to.be.eq(test.expectedIsSearchFilterRadio);\n return [4 /*yield*/, category_1.default.isSearchFilterDropdown(page, 'manufacturer')];\n case 6:\n isSearchFilterDropdown = _a.sent();\n (0, chai_1.expect)(isSearchFilterDropdown).to.be.eq(test.expectedIsSearchFilterDropdown);\n return [4 /*yield*/, category_1.default.isSearchFiltersCheckbox(page, 'manufacturer')];\n case 7:\n isSearchFiltersCheckbox = _a.sent();\n (0, chai_1.expect)(isSearchFiltersCheckbox).to.be.eq(test.expectedIsSearchFilterCheckbox);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8b6bcfde-8119-431a-b127-3f11969ca44a", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and return to the backOffice", + "fullTitle": "Faceted search module - Edit template - Product brand filter should close the page and return to the backOffice", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_closePageFo_1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageFo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0e2d6e9-4a92-4281-92b9-1ce0d83b426b", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the filter template", + "fullTitle": "Faceted search module - Edit template - Product brand filter should edit the filter template", + "timedOut": false, + "duration": 300, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_editFilterTemplate_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editFilterTemplate_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.editFilterTemplate(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.getPanelTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(filterTemplate_1.default.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "30f80073-17d2-4a0e-8faa-a559c8496e14", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the filter \"Product brand filter\" with filter mode \"dropdown\"", + "fullTitle": "Faceted search module - Edit template - Product brand filter should enable the filter \"Product brand filter\" with filter mode \"dropdown\"", + "timedOut": false, + "duration": 857, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_setProductBrandFilter_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setProductBrandFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.setFilterForm(page, 'Product brand filter', test.filterStatus, test.filterType)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.match(/× Your filter \"[-A-Za-z0-9\\s]+\" was updated successfully./);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cf4e001f-19ca-403e-9593-ec15afc9d840", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "Faceted search module - Edit template - Product brand filter should view my shop", + "timedOut": false, + "duration": 993, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_viewMyShop_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "91045a41-8b8c-4d16-aede-edad3a4ba1d7", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should check the \"All products\" page", + "fullTitle": "Faceted search module - Edit template - Product brand filter should check the \"All products\" page", + "timedOut": false, + "duration": 934, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_goToAllProductsPage_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible, hasSearchFilters, isSearchFilterRadio, isSearchFilterDropdown, isSearchFiltersCheckbox;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProductsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.be.eq(true);\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 4:\n hasSearchFilters = _a.sent();\n (0, chai_1.expect)(hasSearchFilters).to.be.eq(test.expectedHasSearchFilters);\n return [4 /*yield*/, category_1.default.isSearchFilterRadio(page, 'manufacturer')];\n case 5:\n isSearchFilterRadio = _a.sent();\n (0, chai_1.expect)(isSearchFilterRadio).to.be.eq(test.expectedIsSearchFilterRadio);\n return [4 /*yield*/, category_1.default.isSearchFilterDropdown(page, 'manufacturer')];\n case 6:\n isSearchFilterDropdown = _a.sent();\n (0, chai_1.expect)(isSearchFilterDropdown).to.be.eq(test.expectedIsSearchFilterDropdown);\n return [4 /*yield*/, category_1.default.isSearchFiltersCheckbox(page, 'manufacturer')];\n case 7:\n isSearchFiltersCheckbox = _a.sent();\n (0, chai_1.expect)(isSearchFiltersCheckbox).to.be.eq(test.expectedIsSearchFilterCheckbox);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d37f4372-d356-4bc2-95ed-4a3a19ee05c5", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and return to the backOffice", + "fullTitle": "Faceted search module - Edit template - Product brand filter should close the page and return to the backOffice", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_closePageFo_2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageFo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a77ffbf2-7014-4d51-881a-95084c01f9c7", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the filter template", + "fullTitle": "Faceted search module - Edit template - Product brand filter should edit the filter template", + "timedOut": false, + "duration": 338, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_editFilterTemplate_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"editFilterTemplate_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.editFilterTemplate(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.getPanelTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(filterTemplate_1.default.title);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "674feb38-a910-4243-a992-fbdd491040db", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should enable the filter \"Product brand filter\" with filter mode \"checkbox\"", + "fullTitle": "Faceted search module - Edit template - Product brand filter should enable the filter \"Product brand filter\" with filter mode \"checkbox\"", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_setProductBrandFilter_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"setProductBrandFilter_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, filterTemplate_1.default.setFilterForm(page, 'Product brand filter', test.filterStatus, test.filterType)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.match(/× Your filter \"[-A-Za-z0-9\\s]+\" was updated successfully./);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16d0e4c3-2fae-4bc3-9dc8-e94796e9f1bb", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should view my shop", + "fullTitle": "Faceted search module - Edit template - Product brand filter should view my shop", + "timedOut": false, + "duration": 987, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_viewMyShop_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"viewMyShop_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.be.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "662a608f-6c86-4728-b2a2-2349e9357d84", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should check the \"All products\" page", + "fullTitle": "Faceted search module - Edit template - Product brand filter should check the \"All products\" page", + "timedOut": false, + "duration": 932, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_goToAllProductsPage_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCategoryPageVisible, hasSearchFilters, isSearchFilterRadio, isSearchFilterDropdown, isSearchFiltersCheckbox;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"goToAllProductsPage_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsBlockPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, category_1.default.isCategoryPage(page)];\n case 3:\n isCategoryPageVisible = _a.sent();\n (0, chai_1.expect)(isCategoryPageVisible).to.be.eq(true);\n return [4 /*yield*/, category_1.default.hasSearchFilters(page)];\n case 4:\n hasSearchFilters = _a.sent();\n (0, chai_1.expect)(hasSearchFilters).to.be.eq(test.expectedHasSearchFilters);\n return [4 /*yield*/, category_1.default.isSearchFilterRadio(page, 'manufacturer')];\n case 5:\n isSearchFilterRadio = _a.sent();\n (0, chai_1.expect)(isSearchFilterRadio).to.be.eq(test.expectedIsSearchFilterRadio);\n return [4 /*yield*/, category_1.default.isSearchFilterDropdown(page, 'manufacturer')];\n case 6:\n isSearchFilterDropdown = _a.sent();\n (0, chai_1.expect)(isSearchFilterDropdown).to.be.eq(test.expectedIsSearchFilterDropdown);\n return [4 /*yield*/, category_1.default.isSearchFiltersCheckbox(page, 'manufacturer')];\n case 7:\n isSearchFiltersCheckbox = _a.sent();\n (0, chai_1.expect)(isSearchFiltersCheckbox).to.be.eq(test.expectedIsSearchFilterCheckbox);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9020c573-3b0a-4d0c-a179-fbe5962e06ac", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + }, + { + "title": "should close the page and return to the backOffice", + "fullTitle": "Faceted search module - Edit template - Product brand filter should close the page and return to the backOffice", + "timedOut": false, + "duration": 11, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_facetedsearch_configuration_editTemplateProductBrandFilter_closePageFo_3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"closePageFo_\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, category_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, psFacetedSearch_1.default.getPageSubtitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.eq(psFacetedSearch_1.default.pageSubTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d48b574b-3907-4c56-8740-56d1941ee9a2", + "parentUUID": "b7620f5f-8cd2-483b-9a0d-495dcd5d6d77", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0dd1c9a2-8dc5-4639-98e7-5271a484ca25", + "97003c3d-7db8-4a4c-88ac-96fc2aca8eeb", + "303e887d-35b2-4d57-8c7e-4d1c677dcc5d", + "6d4051de-dd80-4baa-ab25-6a773e382cdd", + "c1cd765e-d850-47a3-918a-2228cedc845d", + "b352a0af-2cac-4989-9ccf-415e3590e7aa", + "6c6737b2-d3e3-43f8-83a9-b1321c93f653", + "186278fb-1bdc-49d9-be73-0b4b7d31088f", + "f33ed440-4257-4b00-9435-e6698b216280", + "8b1ae7c2-ba65-4c61-911b-de1725a135f3", + "e338a62c-5e18-458a-b0ab-cb71e567b5ff", + "125112c2-8c2b-4a68-b717-2f3c450a70d5", + "8b6bcfde-8119-431a-b127-3f11969ca44a", + "f0e2d6e9-4a92-4281-92b9-1ce0d83b426b", + "30f80073-17d2-4a0e-8faa-a559c8496e14", + "cf4e001f-19ca-403e-9593-ec15afc9d840", + "91045a41-8b8c-4d16-aede-edad3a4ba1d7", + "d37f4372-d356-4bc2-95ed-4a3a19ee05c5", + "a77ffbf2-7014-4d51-881a-95084c01f9c7", + "674feb38-a910-4243-a992-fbdd491040db", + "16d0e4c3-2fae-4bc3-9dc8-e94796e9f1bb", + "662a608f-6c86-4728-b2a2-2349e9357d84", + "9020c573-3b0a-4d0c-a179-fbe5962e06ac", + "d48b574b-3907-4c56-8740-56d1941ee9a2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22084, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a1c989f2-f519-45fd-917a-916b566506ae", + "title": "Theme Customization module - Reset module", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_themecusto/01_installation/04_resetModule.ts", + "file": "/campaigns/modules/ps_themecusto/01_installation/04_resetModule.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Theme Customization module - Reset module\"", + "fullTitle": "Theme Customization module - Reset module \"before all\" hook in \"Theme Customization module - Reset module\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "800d7ca9-3253-40f3-8f1c-b8d487c2aea3", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Theme Customization module - Reset module\"", + "fullTitle": "Theme Customization module - Reset module \"after all\" hook in \"Theme Customization module - Reset module\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "f841e65c-e8b2-4d2e-b2d7-90f9aa171651", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Theme Customization module - Reset module should login in BO", + "timedOut": false, + "duration": 1712, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d049064-ccab-4a48-b6ec-84c3c857c8ce", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Modules > Module Manager' page", + "fullTitle": "Theme Customization module - Reset module should go to 'Modules > Module Manager' page", + "timedOut": false, + "duration": 5208, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_installation_resetModule_goToModuleManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToModuleManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleManagerLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(moduleManager_1.moduleManager.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0caac83-a5f6-475b-9626-4254e32f7133", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": false, + "skipped": false + }, + { + "title": "should search the module Theme Customization", + "fullTitle": "Theme Customization module - Reset module should search the module Theme Customization", + "timedOut": false, + "duration": 626, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_installation_resetModule_searchModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModuleVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'searchModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.searchModule(page, modules_1.default.psThemeCusto)];\n case 2:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "20efd478-41f1-46b3-804b-8abed8718c69", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": false, + "skipped": false + }, + { + "title": "should display the reset modal and cancel it", + "fullTitle": "Theme Customization module - Reset module should display the reset modal and cancel it", + "timedOut": false, + "duration": 1794, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_installation_resetModule_resetModuleAndCancel\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult, isModuleVisible, isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModuleAndCancel', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psThemeCusto, 'reset', true)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.eq('');\n return [4 /*yield*/, moduleManager_1.moduleManager.isModuleVisible(page, modules_1.default.psThemeCusto)];\n case 3:\n isModuleVisible = _a.sent();\n (0, chai_1.expect)(isModuleVisible).to.eq(true);\n return [4 /*yield*/, moduleManager_1.moduleManager.isModalActionVisible(page, modules_1.default.psThemeCusto, 'reset')];\n case 4:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "475f6f6f-f131-4d9d-8367-3a23a603e20c", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": false, + "skipped": false + }, + { + "title": "should reset the module", + "fullTitle": "Theme Customization module - Reset module should reset the module", + "timedOut": false, + "duration": 2353, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_installation_resetModule_resetModule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetModule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, moduleManager_1.moduleManager.setActionInModule(page, modules_1.default.psThemeCusto, 'reset')];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.eq(moduleManager_1.moduleManager.resetModuleSuccessMessage(modules_1.default.psThemeCusto.tag));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "250f3e5d-7a38-4edd-af7f-9eed5708dead", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "Theme Customization module - Reset module should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 8481, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_installation_resetModule_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c62289e-8b3a-47fc-b8be-468634a026d7", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Pages configuration' page", + "fullTitle": "Theme Customization module - Reset module should go to 'Pages configuration' page", + "timedOut": false, + "duration": 2018, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_installation_resetModule_goToPagesConfigurationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPagesConfigurationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToSubTabPagesConfiguration(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, pagesConfiguration_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(pagesConfiguration_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "35bb7807-3a0a-4c4f-aaab-f6ba04fddcb9", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Customization' page", + "fullTitle": "Theme Customization module - Reset module should go to 'Advanced Customization' page", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_installation_resetModule_goToAdvancedCustomizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedCustomizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToSubTabAdvancedCustomization(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(advancedCustomization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "88f23a2e-ee98-4ef7-a34a-5ca850d4faed", + "parentUUID": "a1c989f2-f519-45fd-917a-916b566506ae", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0d049064-ccab-4a48-b6ec-84c3c857c8ce", + "f0caac83-a5f6-475b-9626-4254e32f7133", + "20efd478-41f1-46b3-804b-8abed8718c69", + "475f6f6f-f131-4d9d-8367-3a23a603e20c", + "250f3e5d-7a38-4edd-af7f-9eed5708dead", + "5c62289e-8b3a-47fc-b8be-468634a026d7", + "35bb7807-3a0a-4c4f-aaab-f6ba04fddcb9", + "88f23a2e-ee98-4ef7-a34a-5ca850d4faed" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 23123, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b07c10af-e9da-4a27-b804-44e316c6c08d", + "title": "Theme Customization module - Advanced Customization tab ", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_themecusto/02_configuration/02_advancedCustomizationTab.ts", + "file": "/campaigns/modules/ps_themecusto/02_configuration/02_advancedCustomizationTab.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Theme Customization module - Advanced Customization tab \"", + "fullTitle": "Theme Customization module - Advanced Customization tab \"before all\" hook in \"Theme Customization module - Advanced Customization tab \"", + "timedOut": false, + "duration": 39, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "34d0a827-e0e1-40b0-a020-b4205d547e13", + "parentUUID": "b07c10af-e9da-4a27-b804-44e316c6c08d", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Theme Customization module - Advanced Customization tab \"", + "fullTitle": "Theme Customization module - Advanced Customization tab \"after all\" hook in \"Theme Customization module - Advanced Customization tab \"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "6cb19298-c125-45d1-bbe1-60c2b27e378d", + "parentUUID": "b07c10af-e9da-4a27-b804-44e316c6c08d", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "8788d246-dcd3-4630-971e-bba0d03ff3a8", + "title": "Advanced Customization tab", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/modules/ps_themecusto/02_configuration/02_advancedCustomizationTab.ts", + "file": "/campaigns/modules/ps_themecusto/02_configuration/02_advancedCustomizationTab.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Theme Customization module - Advanced Customization tab Advanced Customization tab should login in BO", + "timedOut": false, + "duration": 1923, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6932c1f7-c735-483d-8c71-92c470d6bdb4", + "parentUUID": "8788d246-dcd3-4630-971e-bba0d03ff3a8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Design > Theme & Logo' page", + "fullTitle": "Theme Customization module - Advanced Customization tab Advanced Customization tab should go to 'Design > Theme & Logo' page", + "timedOut": false, + "duration": 4894, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_configuration_advancedCustomizationTab_goToThemeAndLogoPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToThemeAndLogoPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.designParentLink, dashboard_1.default.themeAndLogoParentLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(themeAndLogo_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ffedc5dc-4e70-4f0b-987b-18ced7641b36", + "parentUUID": "8788d246-dcd3-4630-971e-bba0d03ff3a8", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Advanced Customization' page", + "fullTitle": "Theme Customization module - Advanced Customization tab Advanced Customization tab should go to 'Advanced Customization' page", + "timedOut": false, + "duration": 792, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_configuration_advancedCustomizationTab_goToAdvancedCustomizationPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToAdvancedCustomizationPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, themeAndLogo_1.default.goToSubTabAdvancedCustomization(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(advancedCustomization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e2980ac-8d37-4cc5-9fad-b3c1ec8a051a", + "parentUUID": "8788d246-dcd3-4630-971e-bba0d03ff3a8", + "isHook": false, + "skipped": false + }, + { + "title": "should download theme", + "fullTitle": "Theme Customization module - Advanced Customization tab Advanced Customization tab should download theme", + "timedOut": false, + "duration": 229, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_configuration_advancedCustomizationTab_downloadTheme\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var filePath, exist, fileType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'downloadTheme', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.downloadTheme(page)];\n case 2:\n filePath = _a.sent();\n return [4 /*yield*/, files_1.default.doesFileExist(filePath)];\n case 3:\n exist = _a.sent();\n (0, chai_1.expect)(exist, 'Theme was not downloaded').to.eq(true);\n return [4 /*yield*/, files_1.default.getFileType(filePath)];\n case 4:\n fileType = _a.sent();\n (0, chai_1.expect)(fileType).to.be.equal('zip');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2e9efce1-0de9-494f-a61e-0ac586675529", + "parentUUID": "8788d246-dcd3-4630-971e-bba0d03ff3a8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the link \"How to use parents/child themes\"", + "fullTitle": "Theme Customization module - Advanced Customization tab Advanced Customization tab should click on the link \"How to use parents/child themes\"", + "timedOut": false, + "duration": 567, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_configuration_advancedCustomizationTab_clickHowToUseParentsChildThemesLink\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickHowToUseParentsChildThemesLink', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.clickHowToUseParentsChildThemesLink(page)];\n case 2:\n page = _a.sent();\n (0, chai_1.expect)(page.url()).to.equal('https://devdocs.prestashop-project.org/1.7/themes/reference/template-inheritance/parent-child-feature/');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9269ba06-cd46-4f52-b9e3-8556ca7e1b96", + "parentUUID": "8788d246-dcd3-4630-971e-bba0d03ff3a8", + "isHook": false, + "skipped": false + }, + { + "title": "should click on the button \"Upload child theme\"", + "fullTitle": "Theme Customization module - Advanced Customization tab Advanced Customization tab should click on the button \"Upload child theme\"", + "timedOut": false, + "duration": 253, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"modules_ps_themecusto_configuration_advancedCustomizationTab_clickOnUploadChildThemeButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var modalTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnUploadChildThemeButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, advancedCustomization_1.default.clickOnUploadChildThemeButton(page)];\n case 3:\n modalTitle = _a.sent();\n (0, chai_1.expect)(modalTitle).to.contains('Drop your child theme archive here or select file');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c16697d-4df7-47dd-9cd2-7fa02bdba9c0", + "parentUUID": "8788d246-dcd3-4630-971e-bba0d03ff3a8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6932c1f7-c735-483d-8c71-92c470d6bdb4", + "ffedc5dc-4e70-4f0b-987b-18ced7641b36", + "7e2980ac-8d37-4cc5-9fad-b3c1ec8a051a", + "2e9efce1-0de9-494f-a61e-0ac586675529", + "9269ba06-cd46-4f52-b9e3-8556ca7e1b96", + "4c16697d-4df7-47dd-9cd2-7fa02bdba9c0" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 8658, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "62cbe844-6fd2-4cf2-ba71-7c451390a436", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 1789, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0d0def91-bdc9-477a-8bdf-0af71498e7fa", + "parentUUID": "62cbe844-6fd2-4cf2-ba71-7c451390a436", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 26, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5fbbbf5-7856-4c1c-a4c5-5b1b0a8ebc7a", + "parentUUID": "62cbe844-6fd2-4cf2-ba71-7c451390a436", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ad775c94-84b6-4e6e-bb70-86b2ae5883a2", + "parentUUID": "62cbe844-6fd2-4cf2-ba71-7c451390a436", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "2ed6055e-00ea-4aaa-9f46-7bc91aeb67ee", + "title": "Regression - Checkout: Create 100% discount with free shipping discount code", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "file": "/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Regression - Checkout: Create 100% discount with free shipping discount code\"", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code \"before all\" hook in \"Regression - Checkout: Create 100% discount with free shipping discount code\"", + "timedOut": false, + "duration": 81, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef18f6fc-af08-47f8-8b77-acc11663d441", + "parentUUID": "2ed6055e-00ea-4aaa-9f46-7bc91aeb67ee", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Regression - Checkout: Create 100% discount with free shipping discount code\"", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code \"after all\" hook in \"Regression - Checkout: Create 100% discount with free shipping discount code\"", + "timedOut": false, + "duration": 10, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "e9ab1d8c-a2e6-4d70-acd4-cba88e71a299", + "parentUUID": "2ed6055e-00ea-4aaa-9f46-7bc91aeb67ee", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code should login in BO", + "timedOut": false, + "duration": 6883, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a34e25d-6151-4fd4-89a3-835a6fa84f29", + "parentUUID": "2ed6055e-00ea-4aaa-9f46-7bc91aeb67ee", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "72a34083-847c-4484-88b3-930aebf8d86c", + "title": "SETUP", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "file": "/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to cart rule page", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code SETUP should go to cart rule page", + "timedOut": false, + "duration": 3778, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_goToCartRulesPageToCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCartRulesPageToCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "860111c8-2c46-4ad6-a293-cc8e7e5b5ae3", + "parentUUID": "72a34083-847c-4484-88b3-930aebf8d86c", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "ee2fb0ce-a164-4dd9-b3ea-3c2ff76d7f69", + "title": "Create a percentage cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "file": "/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code SETUP Create a percentage cart rule should go to new cart rule page", + "timedOut": false, + "duration": 877, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_goToNewCartRulePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b36b3b87-3662-45cd-b1ad-d4154bc5e9aa", + "parentUUID": "ee2fb0ce-a164-4dd9-b3ea-3c2ff76d7f69", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code SETUP Create a percentage cart rule should create new cart rule", + "timedOut": false, + "duration": 4212, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_createPercentCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createPercentCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditCartRules(page, percentCartRule)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5f8d1fcb-2068-4f72-a4b5-246a1383729b", + "parentUUID": "ee2fb0ce-a164-4dd9-b3ea-3c2ff76d7f69", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b36b3b87-3662-45cd-b1ad-d4154bc5e9aa", + "5f8d1fcb-2068-4f72-a4b5-246a1383729b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5089, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "455ff37d-6a77-4a9c-b9d1-2f7474881ec7", + "title": "Change terms and conditions setting no", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "file": "/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code SETUP Change terms and conditions setting no should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 4295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_goToOrderSettingsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1363efb7-83cc-48e4-8d18-5328f8d0ecec", + "parentUUID": "455ff37d-6a77-4a9c-b9d1-2f7474881ec7", + "isHook": false, + "skipped": false + }, + { + "title": "should change the terms and conditions back to disabled", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code SETUP Change terms and conditions setting no should change the terms and conditions back to disabled", + "timedOut": false, + "duration": 514, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_disableTermAndConditions\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'disableTermAndConditions', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setTermsOfService(page, false)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3bb658da-5628-4f5e-9a05-3004ff591592", + "parentUUID": "455ff37d-6a77-4a9c-b9d1-2f7474881ec7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "1363efb7-83cc-48e4-8d18-5328f8d0ecec", + "3bb658da-5628-4f5e-9a05-3004ff591592" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4809, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "860111c8-2c46-4ad6-a293-cc8e7e5b5ae3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3778, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "title": "Place an order with discounts in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "file": "/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should go to FO page", + "timedOut": false, + "duration": 1120, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "16b19f40-276d-4c66-b0b4-4ab81b54eeea", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should add first product to cart and Proceed to checkout", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should add first product to cart and Proceed to checkout", + "timedOut": false, + "duration": 2241, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "55a352ef-30f8-414d-b627-d02db47cb01a", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should add our discount code and check that the total price is 0", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should add our discount code and check that the total price is 0", + "timedOut": false, + "duration": 3486, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_addPercentDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPercentDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, percentCartRule.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 3:\n totalPrice = _a.sent();\n (0, chai_1.expect)(totalPrice, 'Order total price is incorrect').to.equal(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "59a820f9-759b-4564-9f6a-b381cc31f374", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to checkout process", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should go to checkout process", + "timedOut": false, + "duration": 274, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_proceedToCheckout\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'proceedToCheckout', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "014694d6-1a57-4496-9c57-76f74dc75d23", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should fill personal information as a guest", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should fill personal information as a guest", + "timedOut": false, + "duration": 881, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_setPersonalInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepPersonalInfoCompleted;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setPersonalInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setGuestPersonalInformation(page, customerData)];\n case 2:\n isStepPersonalInfoCompleted = _a.sent();\n (0, chai_1.expect)(isStepPersonalInfoCompleted, 'Step personal information is not completed').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "813c9090-fd81-4b65-a939-271dda397925", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should fill address form and go to delivery step", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should fill address form and go to delivery step", + "timedOut": false, + "duration": 1623, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_setAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'setAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.setAddress(page, addressData)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete')\n .to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "90e69167-27b4-41dc-ad53-a0025d1f2a43", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to last step", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should go to last step", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_goToLastStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLastStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete')\n .to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da4b85ae-8166-4b54-b219-cb81dc2720e0", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should contain no payment needed text", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should contain no payment needed text", + "timedOut": false, + "duration": 12, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_checkNoPaymentNeededText\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var noPaymentNeededText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoPaymentNeededText', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.getNoPaymentNeededBlockContent(page)];\n case 2:\n noPaymentNeededText = _a.sent();\n (0, chai_1.expect)(noPaymentNeededText).to.contains(checkout_1.default.noPaymentNeededText);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "96d368f1-d3f9-4f93-ba8c-f8ed237e7954", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should check that complete order button is enabled", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should check that complete order button is enabled", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_checkCompleteIsNotDisabled\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var confirmButtonVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCompleteIsNotDisabled', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isPaymentConfirmationButtonVisibleAndEnabled(page)];\n case 2:\n confirmButtonVisible = _a.sent();\n (0, chai_1.expect)(confirmButtonVisible, 'Confirm button visible').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "05ea7e14-b9b2-4f60-9c5c-2b84ffd7c8d3", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + }, + { + "title": "should complete the order", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code Place an order with discounts in FO should complete the order", + "timedOut": false, + "duration": 2395, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_completeOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'completeOrder', baseContext)];\n case 1:\n _a.sent();\n // complete the order\n return [4 /*yield*/, checkout_1.default.orderWithoutPaymentMethod(page)];\n case 2:\n // complete the order\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 3:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "301e4257-7fc9-4cc6-961e-a517c9073438", + "parentUUID": "0c52945d-947c-4b91-afe6-dcf2ba3bc99a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "16b19f40-276d-4c66-b0b4-4ab81b54eeea", + "55a352ef-30f8-414d-b627-d02db47cb01a", + "59a820f9-759b-4564-9f6a-b381cc31f374", + "014694d6-1a57-4496-9c57-76f74dc75d23", + "813c9090-fd81-4b65-a939-271dda397925", + "90e69167-27b4-41dc-ad53-a0025d1f2a43", + "da4b85ae-8166-4b54-b219-cb81dc2720e0", + "96d368f1-d3f9-4f93-ba8c-f8ed237e7954", + "05ea7e14-b9b2-4f60-9c5c-2b84ffd7c8d3", + "301e4257-7fc9-4cc6-961e-a517c9073438" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12893, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "39a315c1-2e54-46af-9f15-4c266cfc3f9b", + "title": "CLEANUP", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "file": "/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code CLEANUP should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_BackToBOForCleanup\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'BackToBOForCleanup', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.closePage(browserContext, page, 0)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7d6b4b8-719a-419d-8a36-4a96f2690e90", + "parentUUID": "39a315c1-2e54-46af-9f15-4c266cfc3f9b", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "788f796b-c29a-4f22-8501-76e24c32dde5", + "title": "Delete created cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "file": "/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to cart rules page", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code CLEANUP Delete created cart rules should go to cart rules page", + "timedOut": false, + "duration": 3764, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_goToCartRulesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCartRulesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToSubMenu(page, discounts_1.default.catalogParentLink, discounts_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd3d85d9-887b-4d1d-9fa1-17e6adc5baa4", + "parentUUID": "788f796b-c29a-4f22-8501-76e24c32dde5", + "isHook": false, + "skipped": false + }, + { + "title": "should delete our 100% cart rules", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code CLEANUP Delete created cart rules should delete our 100% cart rules", + "timedOut": false, + "duration": 2026, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_deleteCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.deleteCartRule(page)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(discounts_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1dd4011c-8662-4230-bce2-13421ef0d223", + "parentUUID": "788f796b-c29a-4f22-8501-76e24c32dde5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bd3d85d9-887b-4d1d-9fa1-17e6adc5baa4", + "1dd4011c-8662-4230-bce2-13421ef0d223" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5790, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5839a691-25d1-4075-b3f9-6bc44509b697", + "title": "Change terms and conditions setting back to yes", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "file": "/campaigns/regression/checkout/100PercentDiscount_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'Shop Parameters > Order Settings' page", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code CLEANUP Change terms and conditions setting back to yes should go to 'Shop Parameters > Order Settings' page", + "timedOut": false, + "duration": 3692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_goToOrderSettingsPageToReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrderSettingsPageToReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.shopParametersParentLink, dashboard_1.default.orderSettingsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orderSettings_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e582fa4d-ad1b-4306-a89c-2818249c41f1", + "parentUUID": "5839a691-25d1-4075-b3f9-6bc44509b697", + "isHook": false, + "skipped": false + }, + { + "title": "should change the terms and conditions back to enabled", + "fullTitle": "Regression - Checkout: Create 100% discount with free shipping discount code CLEANUP Change terms and conditions setting back to yes should change the terms and conditions back to enabled", + "timedOut": false, + "duration": 415, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_checkout_100PercentDiscount_FO_resetTermsAndConditionsValue\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetTermsAndConditionsValue', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderSettings_1.default.setTermsOfService(page, true, 'Terms and conditions of use')];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.contains(orderSettings_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8128d68d-2d9c-481e-a42a-5ee693ac9575", + "parentUUID": "5839a691-25d1-4075-b3f9-6bc44509b697", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e582fa4d-ad1b-4306-a89c-2818249c41f1", + "8128d68d-2d9c-481e-a42a-5ee693ac9575" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4107, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "a7d6b4b8-719a-419d-8a36-4a96f2690e90" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "4a34e25d-6151-4fd4-89a3-835a6fa84f29" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6883, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "882d2827-9b0e-4521-9001-7f88d76e09b2", + "title": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Regression - Currencies: Change currency precision and check orders total price in FO, BO and database\"", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database \"before all\" hook in \"Regression - Currencies: Change currency precision and check orders total price in FO, BO and database\"", + "timedOut": false, + "duration": 40, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f0e40f6c-81f6-4bc2-94aa-ea11008be067", + "parentUUID": "882d2827-9b0e-4521-9001-7f88d76e09b2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Regression - Currencies: Change currency precision and check orders total price in FO, BO and database\"", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database \"after all\" hook in \"Regression - Currencies: Change currency precision and check orders total price in FO, BO and database\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c658b056-a905-41b2-88ec-704ffdccca17", + "parentUUID": "882d2827-9b0e-4521-9001-7f88d76e09b2", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database should login in BO", + "timedOut": false, + "duration": 1870, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c045d26f-ba89-47d8-8bc4-3c1c241711b2", + "parentUUID": "882d2827-9b0e-4521-9001-7f88d76e09b2", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "ab5b2e21-90dc-44e5-ab3d-093127844dcf", + "title": "Create cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to cart rule page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Create cart rules should go to cart rule page", + "timedOut": false, + "duration": 3664, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToCartRulesPageToCreate\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCartRulesPageToCreate', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_3.default.goToSubMenu(page, add_3.default.catalogParentLink, add_3.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "efb4416d-e255-45fe-bee4-ea96339a6557", + "parentUUID": "ab5b2e21-90dc-44e5-ab3d-093127844dcf", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "bfd1ce6a-efa4-4403-91f8-df15bc70166b", + "title": "Create a percentage cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Create cart rules Create a percentage cart rule should go to new cart rule page", + "timedOut": false, + "duration": 821, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToNewCartRulePage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ece40f42-42a6-42fd-974a-843b1fbf051e", + "parentUUID": "bfd1ce6a-efa4-4403-91f8-df15bc70166b", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Create cart rules Create a percentage cart rule should create new cart rule", + "timedOut": false, + "duration": 3927, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_createPercentCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createPercentCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditCartRules(page, percentCartRule)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aaee7b4c-a424-4bb4-b6ef-3bf7c75fea04", + "parentUUID": "bfd1ce6a-efa4-4403-91f8-df15bc70166b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ece40f42-42a6-42fd-974a-843b1fbf051e", + "aaee7b4c-a424-4bb4-b6ef-3bf7c75fea04" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4748, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "651a4754-eee5-4e78-b951-b16651ffa0f7", + "title": "Create a gift cart rule", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to new cart rule page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Create cart rules Create a gift cart rule should go to new cart rule page", + "timedOut": false, + "duration": 913, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToNewCartRulePage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewCartRulePage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToAddNewCartRulesPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_2.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_2.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "52eb812d-19b2-4524-8a1c-745ce53f084f", + "parentUUID": "651a4754-eee5-4e78-b951-b16651ffa0f7", + "isHook": false, + "skipped": false + }, + { + "title": "should create new cart rule", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Create cart rules Create a gift cart rule should create new cart rule", + "timedOut": false, + "duration": 3892, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_createGiftCartRule\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var validationMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createGiftCartRule', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_2.default.createEditCartRules(page, giftCartRule)];\n case 2:\n validationMessage = _a.sent();\n (0, chai_1.expect)(validationMessage).to.contains(add_2.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9ddfa3d3-e9f5-443e-a39a-a604b5af7f60", + "parentUUID": "651a4754-eee5-4e78-b951-b16651ffa0f7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "52eb812d-19b2-4524-8a1c-745ce53f084f", + "9ddfa3d3-e9f5-443e-a39a-a604b5af7f60" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4805, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "efb4416d-e255-45fe-bee4-ea96339a6557" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3664, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "3146b549-3a8e-4156-8309-8a036636944a", + "title": "Change currency precision", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to localization page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Change currency precision should go to localization page", + "timedOut": false, + "duration": 4937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToLocalizationPageToChangePrecision\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPageToChangePrecision', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.internationalParentLink, dashboard_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3adce7e9-64df-46e0-b515-424895c8a99a", + "parentUUID": "3146b549-3a8e-4156-8309-8a036636944a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to currencies page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Change currency precision should go to currencies page", + "timedOut": false, + "duration": 891, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToCurrenciesPageToChangePrecision\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPageToChangePrecision', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d6bb8ad8-d33b-45fb-b803-23d0777a3868", + "parentUUID": "3146b549-3a8e-4156-8309-8a036636944a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code 'EUR'", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Change currency precision should filter by iso code 'EUR'", + "timedOut": false, + "duration": 357, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_filterCurrenciesToChangePrecision\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCurrenciesToChangePrecision', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.euro.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5a43bf3f-2e4f-4ad4-9301-f2e2efeb7f4d", + "parentUUID": "3146b549-3a8e-4156-8309-8a036636944a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit currency page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Change currency precision should go to edit currency page", + "timedOut": false, + "duration": 1205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToEditCurrencyToChangePrecision\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCurrencyToChangePrecision', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToEditCurrencyPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_3.default.editCurrencyPage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1b87239d-cdba-4c63-8b65-f7897ce7929a", + "parentUUID": "3146b549-3a8e-4156-8309-8a036636944a", + "isHook": false, + "skipped": false + }, + { + "title": "should set precision to 3", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Change currency precision should set precision to 3", + "timedOut": false, + "duration": 5584, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_changePrecision\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'changePrecision', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_3.default.setCurrencyPrecision(page, 3)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "06aed4d2-a46d-4ed4-8f92-d245ba908a87", + "parentUUID": "3146b549-3a8e-4156-8309-8a036636944a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3adce7e9-64df-46e0-b515-424895c8a99a", + "d6bb8ad8-d33b-45fb-b803-23d0777a3868", + "5a43bf3f-2e4f-4ad4-9301-f2e2efeb7f4d", + "1b87239d-cdba-4c63-8b65-f7897ce7929a", + "06aed4d2-a46d-4ed4-8f92-d245ba908a87" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12974, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "92f99608-03ff-4c37-b153-8120ff89494d", + "title": "Place an order with discounts in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to FO page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Place an order with discounts in FO should go to FO page", + "timedOut": false, + "duration": 2692, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_viewMyShop\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewMyShop', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.viewMyShop(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 4:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage, 'Fail to open FO home page').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "86bc2663-fbd9-444e-887c-2a22e3626531", + "parentUUID": "92f99608-03ff-4c37-b153-8120ff89494d", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Place an order with discounts in FO should go to login page", + "timedOut": false, + "duration": 782, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToFOLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFOLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to open FO login page').to.contains(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6a57d5b1-48e8-4761-95e6-4a2b58b394aa", + "parentUUID": "92f99608-03ff-4c37-b153-8120ff89494d", + "isHook": false, + "skipped": false + }, + { + "title": "should sign in with default customer", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Place an order with discounts in FO should sign in with default customer", + "timedOut": false, + "duration": 701, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_loginInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCustomerConnected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.isCustomerConnected(page)];\n case 3:\n isCustomerConnected = _a.sent();\n (0, chai_1.expect)(isCustomerConnected, 'Customer is not connected').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72769b3a-c664-44e8-bc71-a6ecd5d87db5", + "parentUUID": "92f99608-03ff-4c37-b153-8120ff89494d", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Place an order with discounts in FO should add product to cart", + "timedOut": false, + "duration": 6275, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n // Go to home page\n return [4 /*yield*/, login_1.loginPage.goToHomePage(page)];\n case 2:\n // Go to home page\n _a.sent();\n // Go to product page after searching its name\n return [4 /*yield*/, home_1.homePage.searchProduct(page, orderToMake.products[0].product.name)];\n case 3:\n // Go to product page after searching its name\n _a.sent();\n return [4 /*yield*/, searchResults_1.searchResultsPage.goToProductPage(page, 1)];\n case 4:\n _a.sent();\n // Add the created product to the cart\n return [4 /*yield*/, product_1.default.addProductToTheCart(page, orderToMake.products[0].quantity)];\n case 5:\n // Add the created product to the cart\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 6:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle, 'Fail to go to cart page').to.contains(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "027a41a8-d7a5-4015-98e9-0a979bbcd62b", + "parentUUID": "92f99608-03ff-4c37-b153-8120ff89494d", + "isHook": false, + "skipped": false + }, + { + "title": "should add percent discount and check that the discount was added", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Place an order with discounts in FO should add percent discount and check that the discount was added", + "timedOut": false, + "duration": 3491, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_addPercentDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var firstSubtotalDiscountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addPercentDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, percentCartRule.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getSubtotalDiscountValue(page)];\n case 3:\n firstSubtotalDiscountValue = _a.sent();\n (0, chai_1.expect)(firstSubtotalDiscountValue, 'First discount was not applied')\n .to.equal(-(orderToMake.discountPercentValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "add0b7c6-5fd3-4970-bf1b-fcb8dd48748f", + "parentUUID": "92f99608-03ff-4c37-b153-8120ff89494d", + "isHook": false, + "skipped": false + }, + { + "title": "should add free gift discount and check that the discount was added", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Place an order with discounts in FO should add free gift discount and check that the discount was added", + "timedOut": false, + "duration": 3482, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_addGiftDiscount\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var finalSubtotalDiscountValue;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addGiftDiscount', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.addPromoCode(page, giftCartRule.code)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getSubtotalDiscountValue(page)];\n case 3:\n finalSubtotalDiscountValue = _a.sent();\n (0, chai_1.expect)(finalSubtotalDiscountValue, 'Second discount was not applied')\n .to.equal(-(orderToMake.discountPercentValue + orderToMake.discountGiftValue));\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c10e2d7a-140b-43a7-bdab-249d6947ad9b", + "parentUUID": "92f99608-03ff-4c37-b153-8120ff89494d", + "isHook": false, + "skipped": false + }, + { + "title": "should check order total price", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Place an order with discounts in FO should check order total price", + "timedOut": false, + "duration": 2010, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_checkToTalPriceInFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkToTalPriceInFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n totalPrice = _a.sent();\n (0, chai_1.expect)(totalPrice, 'Order total price is incorrect')\n .to.equal(orderToMake.totalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bd760902-8a15-457e-9585-6f826d0ee3bf", + "parentUUID": "92f99608-03ff-4c37-b153-8120ff89494d", + "isHook": false, + "skipped": false + }, + { + "title": "should confirm the order", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Place an order with discounts in FO should confirm the order", + "timedOut": false, + "duration": 3242, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete, isStepDeliveryComplete, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n // Proceed to checkout the shopping cart\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n // Proceed to checkout the shopping cart\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 3:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 4:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n // Payment step - Choose payment step\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 5:\n // Payment step - Choose payment step\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 6:\n cardTitle = _a.sent();\n // Check the confirmation message\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "21690ace-93f1-4d00-92b2-e5f1aa92dac6", + "parentUUID": "92f99608-03ff-4c37-b153-8120ff89494d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "86bc2663-fbd9-444e-887c-2a22e3626531", + "6a57d5b1-48e8-4761-95e6-4a2b58b394aa", + "72769b3a-c664-44e8-bc71-a6ecd5d87db5", + "027a41a8-d7a5-4015-98e9-0a979bbcd62b", + "add0b7c6-5fd3-4970-bf1b-fcb8dd48748f", + "c10e2d7a-140b-43a7-bdab-249d6947ad9b", + "bd760902-8a15-457e-9585-6f826d0ee3bf", + "21690ace-93f1-4d00-92b2-e5f1aa92dac6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 22675, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2fc2dffa-90b3-4175-9cd7-10e0111f14a2", + "title": "Check order total price with precision in orders page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go back to BO", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in orders page should go back to BO", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Close tab and init other page objects with new current tab\n page = _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "101e8a60-24c9-406e-93f0-22fb6a505cef", + "parentUUID": "2fc2dffa-90b3-4175-9cd7-10e0111f14a2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to orders page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in orders page should go to orders page", + "timedOut": false, + "duration": 4616, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToSubMenu(page, discounts_1.default.ordersParentLink, discounts_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "78b633b8-4a33-4298-bd86-41bf3904668f", + "parentUUID": "2fc2dffa-90b3-4175-9cd7-10e0111f14a2", + "isHook": false, + "skipped": false + }, + { + "title": "should check order total price", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in orders page should check order total price", + "timedOut": false, + "duration": 41, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_checkToTalPriceInBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a, totalPriceInOrdersPage;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkToTalPriceInBO', baseContext)];\n case 1:\n _b.sent();\n // Get order reference to use in sql query\n _a = orderToMake;\n return [4 /*yield*/, orders_1.default.getTextColumn(page, 'reference', 1)];\n case 2:\n // Get order reference to use in sql query\n _a.reference = _b.sent();\n return [4 /*yield*/, orders_1.default.getOrderATIPrice(page, 1)];\n case 3:\n totalPriceInOrdersPage = _b.sent();\n (0, chai_1.expect)(totalPriceInOrdersPage, 'Order total price is incorrect').to.equal(orderToMake.totalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2efae79f-d4e3-4e12-8ba6-80ef186a5de6", + "parentUUID": "2fc2dffa-90b3-4175-9cd7-10e0111f14a2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "101e8a60-24c9-406e-93f0-22fb6a505cef", + "78b633b8-4a33-4298-bd86-41bf3904668f", + "2efae79f-d4e3-4e12-8ba6-80ef186a5de6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4663, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "095cce62-4cde-4613-b5ed-ed3bf33dd8d5", + "title": "Check order total price with precision in database", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to sql manager page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in database should go to sql manager page", + "timedOut": false, + "duration": 3717, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToSqlManagerPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSqlManagerPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToSubMenu(page, orders_1.default.advancedParametersLink, orders_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b64c3e01-c10c-45a9-a8c6-fc65f506d841", + "parentUUID": "095cce62-4cde-4613-b5ed-ed3bf33dd8d5", + "isHook": false, + "skipped": false + } + ], + "suites": [ + { + "uuid": "80c5c9f7-589a-4bfd-8830-bbe48f434f3b", + "title": "Create new SQL query to get last order total price", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'New SQL query' page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in database Create new SQL query to get last order total price should go to 'New SQL query' page", + "timedOut": false, + "duration": 818, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToCreateSqlQueryPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCreateSqlQueryPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToNewSQLQueryPage(page)];\n case 2:\n _a.sent();\n // Adding order reference to sql query\n sqlQueryData.sqlQuery = sqlQueryTemplate(orderToMake.reference);\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2626f4b9-5d62-4db4-b612-47c5fb5db1f1", + "parentUUID": "80c5c9f7-589a-4bfd-8830-bbe48f434f3b", + "isHook": false, + "skipped": false + }, + { + "title": "should create new SQL query", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in database Create new SQL query to get last order total price should create new SQL query", + "timedOut": false, + "duration": 1227, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_createSqlQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSqlQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.createEditSQLQuery(page, sqlQueryData)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(add_1.default.successfulCreationMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a94cd130-42fc-4ae8-a4a3-32fb6100e228", + "parentUUID": "80c5c9f7-589a-4bfd-8830-bbe48f434f3b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2626f4b9-5d62-4db4-b612-47c5fb5db1f1", + "a94cd130-42fc-4ae8-a4a3-32fb6100e228" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2045, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f96bc3b7-9a7c-49c2-9f5c-d75e0a4c4517", + "title": "Check last order total price in database", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should filter list by name", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in database Check last order total price in database should filter list by name", + "timedOut": false, + "duration": 2969, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_filterSqlQueriesToView\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterSqlQueriesToView', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, 'name', sqlQueryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n sqlQueryName = _a.sent();\n (0, chai_1.expect)(sqlQueryName).to.contains(sqlQueryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c2a86c9c-88e2-4326-80cb-2c1f738cb78b", + "parentUUID": "f96bc3b7-9a7c-49c2-9f5c-d75e0a4c4517", + "isHook": false, + "skipped": false + }, + { + "title": "should click on view button", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in database Check last order total price in database should click on view button", + "timedOut": false, + "duration": 867, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_viewSqlQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'viewSqlQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToViewSQLQueryPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, view_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(view_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7d6de4c6-f0d2-40f1-8e8e-1e64e96da484", + "parentUUID": "f96bc3b7-9a7c-49c2-9f5c-d75e0a4c4517", + "isHook": false, + "skipped": false + }, + { + "title": "should check order discount in database", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in database Check last order total price in database should check order discount in database", + "timedOut": false, + "duration": 25, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_checkLastOrderDiscountInDatabase\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var discountInDatabase;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkLastOrderDiscountInDatabase', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, 'total_discounts')];\n case 2:\n discountInDatabase = _a.sent();\n (0, chai_1.expect)(parseFloat(discountInDatabase), 'Discount price is incorrect in database')\n .to.equal(orderToMake.discountPercentValue + orderToMake.discountGiftValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c9b8a70f-352f-48a7-acf8-2d3f3b758862", + "parentUUID": "f96bc3b7-9a7c-49c2-9f5c-d75e0a4c4517", + "isHook": false, + "skipped": false + }, + { + "title": "should check last order total price", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Check order total price with precision in database Check last order total price in database should check last order total price", + "timedOut": false, + "duration": 9, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_checkToTalPriceInDatabase\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPriceInDatabase;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkToTalPriceInDatabase', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, view_1.default.getTextColumn(page, 1, 'total_paid_tax_incl')];\n case 2:\n totalPriceInDatabase = _a.sent();\n (0, chai_1.expect)(parseFloat(totalPriceInDatabase), 'Total price is incorrect in database')\n .to.equal(orderToMake.totalPrice);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6b636581-f3a1-4239-b478-7d43962f3969", + "parentUUID": "f96bc3b7-9a7c-49c2-9f5c-d75e0a4c4517", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c2a86c9c-88e2-4326-80cb-2c1f738cb78b", + "7d6de4c6-f0d2-40f1-8e8e-1e64e96da484", + "c9b8a70f-352f-48a7-acf8-2d3f3b758862", + "6b636581-f3a1-4239-b478-7d43962f3969" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3870, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "b64c3e01-c10c-45a9-a8c6-fc65f506d841" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3717, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "b8aebed7-a12b-4df2-a357-5ce6bbf114a2", + "title": "Reset currency precision and delete created data", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "f726d7af-5ec2-409f-b3dd-b6a3dae1ed6b", + "title": "Reset currency precision", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to localization page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Reset currency precision should go to localization page", + "timedOut": false, + "duration": 3694, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToLocalizationPageToReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLocalizationPageToReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.goToSubMenu(page, sqlManager_1.default.internationalParentLink, sqlManager_1.default.localizationLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, localization_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(localization_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "256ed0c1-22f6-4b5a-a2e7-28e5b97bacbf", + "parentUUID": "f726d7af-5ec2-409f-b3dd-b6a3dae1ed6b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to currencies page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Reset currency precision should go to currencies page", + "timedOut": false, + "duration": 769, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToCurrenciesPageToReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCurrenciesPageToReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, localization_1.default.goToSubTabCurrencies(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(currencies_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8684bd23-5451-496d-a463-bab69427a4c8", + "parentUUID": "f726d7af-5ec2-409f-b3dd-b6a3dae1ed6b", + "isHook": false, + "skipped": false + }, + { + "title": "should filter by iso code 'EUR'", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Reset currency precision should filter by iso code 'EUR'", + "timedOut": false, + "duration": 339, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_filterCurrenciesToReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfCurrenciesAfterFilter;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterCurrenciesToReset', baseContext)];\n case 1:\n _a.sent();\n // Filter\n return [4 /*yield*/, currencies_1.default.filterTable(page, 'input', 'iso_code', currencies_2.default.euro.isoCode)];\n case 2:\n // Filter\n _a.sent();\n return [4 /*yield*/, currencies_1.default.getNumberOfElementInGrid(page)];\n case 3:\n numberOfCurrenciesAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfCurrenciesAfterFilter).to.be.at.least(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3f0f7ac2-a190-4195-bf39-236e7a310e46", + "parentUUID": "f726d7af-5ec2-409f-b3dd-b6a3dae1ed6b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to edit currency page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Reset currency precision should go to edit currency page", + "timedOut": false, + "duration": 1255, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToEditCurrencyPageToReset\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToEditCurrencyPageToReset', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToEditCurrencyPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_3.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_3.default.editCurrencyPage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "029c9256-cf7d-4888-a146-3c5221f07f2a", + "parentUUID": "f726d7af-5ec2-409f-b3dd-b6a3dae1ed6b", + "isHook": false, + "skipped": false + }, + { + "title": "should reset currency precision", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Reset currency precision should reset currency precision", + "timedOut": false, + "duration": 5547, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_resetCurrencyPrecision\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetCurrencyPrecision', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_3.default.setCurrencyPrecision(page, 2)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.contains(currencies_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a24b6d85-f0d4-4e35-8102-2e6aab2ff846", + "parentUUID": "f726d7af-5ec2-409f-b3dd-b6a3dae1ed6b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "256ed0c1-22f6-4b5a-a2e7-28e5b97bacbf", + "8684bd23-5451-496d-a463-bab69427a4c8", + "3f0f7ac2-a190-4195-bf39-236e7a310e46", + "029c9256-cf7d-4888-a146-3c5221f07f2a", + "a24b6d85-f0d4-4e35-8102-2e6aab2ff846" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 11604, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a3378f0b-f426-47a3-b24a-a764ffadf661", + "title": "Delete created cart rules", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to cart rules page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Delete created cart rules should go to cart rules page", + "timedOut": false, + "duration": 3887, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToCartRulesPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCartRulesPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, currencies_1.default.goToSubMenu(page, currencies_1.default.catalogParentLink, currencies_1.default.discountsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(discounts_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "54a3f8d9-ecd3-4f3e-bb97-56a1db42d39f", + "parentUUID": "a3378f0b-f426-47a3-b24a-a764ffadf661", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete cart rules", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Delete created cart rules should bulk delete cart rules", + "timedOut": false, + "duration": 532, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_deleteCartRules\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var deleteTextResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteCartRules', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.bulkDeleteCartRules(page)];\n case 2:\n deleteTextResult = _a.sent();\n (0, chai_1.expect)(deleteTextResult).to.be.contains(discounts_1.default.successfulMultiDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c1d7b602-6d9f-4b91-a65b-db7ef16295c8", + "parentUUID": "a3378f0b-f426-47a3-b24a-a764ffadf661", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "54a3f8d9-ecd3-4f3e-bb97-56a1db42d39f", + "c1d7b602-6d9f-4b91-a65b-db7ef16295c8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4419, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "f36956f8-7e94-451c-8fe0-ee82cea96102", + "title": "Delete SQL query", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/currencies/computingPrecision_FO.ts", + "file": "/campaigns/regression/currencies/computingPrecision_FO.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should go to 'SQL Manager' page", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Delete SQL query should go to 'SQL Manager' page", + "timedOut": false, + "duration": 3696, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_goToSqlManagerPageToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSqlManagerPageToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, discounts_1.default.goToSubMenu(page, discounts_1.default.advancedParametersLink, discounts_1.default.databaseLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(sqlManager_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6f8e010f-8cb0-4e90-a523-7191c2fcb63a", + "parentUUID": "f36956f8-7e94-451c-8fe0-ee82cea96102", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by name", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Delete SQL query should filter list by name", + "timedOut": false, + "duration": 1401, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_filterSQLQueriesToDelete\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var sqlQueryName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterSQLQueriesToDelete', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.resetFilter(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.filterSQLQuery(page, 'name', sqlQueryData.name)];\n case 3:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.getTextColumnFromTable(page, 1, 'name')];\n case 4:\n sqlQueryName = _a.sent();\n (0, chai_1.expect)(sqlQueryName).to.contains(sqlQueryData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4d10a49-5629-44c8-9289-3591be4b4be3", + "parentUUID": "f36956f8-7e94-451c-8fe0-ee82cea96102", + "isHook": false, + "skipped": false + }, + { + "title": "should delete SQL query", + "fullTitle": "Regression - Currencies: Change currency precision and check orders total price in FO, BO and database Reset currency precision and delete created data Delete SQL query should delete SQL query", + "timedOut": false, + "duration": 1460, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_currencies_computingPrecision_FO_deleteSQLQuery\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textResult;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteSQLQuery', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, sqlManager_1.default.deleteSQLQuery(page, 1)];\n case 2:\n textResult = _a.sent();\n (0, chai_1.expect)(textResult).to.equal(sqlManager_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4d171db-c18e-4afd-8af5-6019b55e3184", + "parentUUID": "f36956f8-7e94-451c-8fe0-ee82cea96102", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6f8e010f-8cb0-4e90-a523-7191c2fcb63a", + "d4d10a49-5629-44c8-9289-3591be4b4be3", + "a4d171db-c18e-4afd-8af5-6019b55e3184" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6557, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [ + "c045d26f-ba89-47d8-8bc4-3c1c241711b2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1870, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ebedde85-f781-4868-bd7f-dd9f67b158bf", + "title": "Regression : Access to Module catalog is denied with neither left menu and Url", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/regression/menu/deniedAccessToModuleCatalogPage.ts", + "file": "/campaigns/regression/menu/deniedAccessToModuleCatalogPage.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Regression : Access to Module catalog is denied with neither left menu and Url\"", + "fullTitle": "Regression : Access to Module catalog is denied with neither left menu and Url \"before all\" hook in \"Regression : Access to Module catalog is denied with neither left menu and Url\"", + "timedOut": false, + "duration": 33, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e9eb95c3-77fd-4c0c-9c95-7bc2d4bb07f8", + "parentUUID": "ebedde85-f781-4868-bd7f-dd9f67b158bf", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Regression : Access to Module catalog is denied with neither left menu and Url\"", + "fullTitle": "Regression : Access to Module catalog is denied with neither left menu and Url \"after all\" hook in \"Regression : Access to Module catalog is denied with neither left menu and Url\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d57378f2-a9ff-465f-991d-c20fee4c43af", + "parentUUID": "ebedde85-f781-4868-bd7f-dd9f67b158bf", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "Regression : Access to Module catalog is denied with neither left menu and Url should login in BO", + "timedOut": false, + "duration": 1933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "da129a1f-ffe8-445c-8f63-90e9aebd1069", + "parentUUID": "ebedde85-f781-4868-bd7f-dd9f67b158bf", + "isHook": false, + "skipped": false + }, + { + "title": "should go check that `Module Catalog` on left menu is not visible", + "fullTitle": "Regression : Access to Module catalog is denied with neither left menu and Url should go check that `Module Catalog` on left menu is not visible", + "timedOut": false, + "duration": 2831, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_menu_deniedAccessToModuleCatalogPage_menuTabNotVisible\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isMenuTabVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'menuTabNotVisible', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.isSubmenuVisible(page, dashboard_1.default.modulesParentLink, dashboard_1.default.moduleCatalogueLink)];\n case 2:\n isMenuTabVisible = _a.sent();\n (0, chai_1.expect)(isMenuTabVisible, 'The Menu tab is still visible').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ecafedf1-1ce2-40ae-9b70-bafab40ed91d", + "parentUUID": "ebedde85-f781-4868-bd7f-dd9f67b158bf", + "isHook": false, + "skipped": false + }, + { + "title": "should trigger a not found alert when accessing by legacy url", + "fullTitle": "Regression : Access to Module catalog is denied with neither left menu and Url should trigger a not found alert when accessing by legacy url", + "timedOut": false, + "duration": 10192, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_menu_deniedAccessToModuleCatalogPage_checkUrlAccessibility\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var alertText;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUrlAccessibility', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.navigateToPageWithInvalidToken(page, pageLegacyUrl)];\n case 2:\n _a.sent();\n return [4 /*yield*/, moduleCatalog_1.default.getAlertDangerBlockParagraphContent(page)];\n case 3:\n alertText = _a.sent();\n (0, chai_1.expect)(alertText).to.contain(moduleCatalog_1.default.pageNotFoundMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "76fd0f63-d8e9-4b88-9234-c3d730eee3a1", + "parentUUID": "ebedde85-f781-4868-bd7f-dd9f67b158bf", + "isHook": false, + "skipped": false + }, + { + "title": "should redirect to dashboard when accessing by symfony url", + "fullTitle": "Regression : Access to Module catalog is denied with neither left menu and Url should redirect to dashboard when accessing by symfony url", + "timedOut": false, + "duration": 10289, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"regression_menu_deniedAccessToModuleCatalogPage_checkUrlAccessibility2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkUrlAccessibility2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.navigateToPageWithInvalidToken(page, pageSymfonyUrl)];\n case 2:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(dashboard_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5db82482-496b-4433-9932-6322653f844e", + "parentUUID": "ebedde85-f781-4868-bd7f-dd9f67b158bf", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "da129a1f-ffe8-445c-8f63-90e9aebd1069", + "ecafedf1-1ce2-40ae-9b70-bafab40ed91d", + "76fd0f63-d8e9-4b88-9234-c3d730eee3a1", + "5db82482-496b-4433-9932-6322653f844e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 25245, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + }, + { + "uuid": "7f6b8337-150b-429c-985c-83a8bc544b47", + "title": "", + "fullFile": "", + "file": "", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"{root}\"", + "fullTitle": "\"before all\" hook in \"{root}\"", + "timedOut": false, + "duration": 519, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this;\n return [4 /*yield*/, helpers_1.default.createBrowser()];\n case 1:\n _a.browser = _b.sent();\n // Create object for browser errors\n if (global.BROWSER.interceptErrors) {\n global.browserErrors = {\n responses: [],\n js: [],\n console: [],\n };\n }\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "834e04ca-f27f-4867-b095-c68b2b140e48", + "parentUUID": "7f6b8337-150b-429c-985c-83a8bc544b47", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"{root}\"", + "fullTitle": "\"after all\" hook in \"{root}\"", + "timedOut": false, + "duration": 43, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n var browserErrors, reportName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowser(this.browser)];\n case 1:\n _a.sent();\n if (!global.BROWSER.interceptErrors) return [3 /*break*/, 4];\n browserErrors = {\n responses: __spreadArray([], __read(new Set(global.browserErrors.responses)), false),\n js: __spreadArray([], __read(new Set(global.browserErrors.js)), false),\n console: __spreadArray([], __read(new Set(global.browserErrors.console)), false),\n };\n return [4 /*yield*/, files_1.default.generateReportFilename()];\n case 2:\n reportName = _a.sent();\n return [4 /*yield*/, files_1.default.createFile('.', \"\".concat(reportName, \".json\"), JSON.stringify(browserErrors))];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8e38d4e4-1c24-419f-a6f7-6705050e5906", + "parentUUID": "7f6b8337-150b-429c-985c-83a8bc544b47", + "isHook": true, + "skipped": false + }, + { + "title": "\"after each\" hook in \"{root}\"", + "fullTitle": "\"after each\" hook in \"{root}\"", + "timedOut": false, + "duration": 0, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "var _a;\nreturn __awaiter(this, void 0, void 0, function () {\n var currentTab;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!(global.SCREENSHOT.AFTER_FAIL && ((_a = this.currentTest) === null || _a === void 0 ? void 0 : _a.state) === 'failed')) return [3 /*break*/, 4];\n return [4 /*yield*/, helpers_1.default.getLastOpenedTab(this.browser)];\n case 1:\n currentTab = _b.sent();\n if (!(currentTab !== null)) return [3 /*break*/, 3];\n return [4 /*yield*/, currentTab.screenshot({\n path: \"\".concat(global.SCREENSHOT.FOLDER, \"/fail_test_\").concat(screenshotNumber, \".png\"),\n fullPage: true,\n })];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n screenshotNumber += 1;\n _b.label = 4;\n case 4: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "324af93c-80d6-4883-9955-dc4edb681052", + "parentUUID": "7f6b8337-150b-429c-985c-83a8bc544b47", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "title": "Install Prestashop", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/01_installShop/01_installShop.ts", + "file": "/campaigns/sanity/01_installShop/01_installShop.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"Install Prestashop\"", + "fullTitle": "Install Prestashop \"before all\" hook in \"Install Prestashop\"", + "timedOut": false, + "duration": 47, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bf484836-e813-4a40-a36d-f1cd32824604", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"Install Prestashop\"", + "fullTitle": "Install Prestashop \"after all\" hook in \"Install Prestashop\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "c29c636d-464a-4e31-8c95-7071228d2242", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the Install page", + "fullTitle": "Install Prestashop should open the Install page", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_goToInstallPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepTitle, installationTitles;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToInstallPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.goTo(page, global.INSTALL.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, install_1.default.getStepTitle(page, 'Choose your language')];\n case 3:\n stepTitle = _a.sent();\n installationTitles = [install_1.default.firstStepFrTitle, install_1.default.firstStepEnTitle];\n (0, chai_1.expect)(installationTitles.some(function (x) { return stepTitle.includes(x); })).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ba0385a6-03b4-43f7-99b3-fe91887187c2", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should change language to English and check title", + "fullTitle": "Install Prestashop should change language to English and check title", + "timedOut": false, + "duration": 169, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_ChangeLanguageToEnglish\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'ChangeLanguageToEnglish', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.setInstallLanguage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, install_1.default.getStepTitle(page, 'Choose your language')];\n case 3:\n stepTitle = _a.sent();\n (0, chai_1.expect)(stepTitle).to.contain(install_1.default.firstStepEnTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4f76763-50e7-4f1c-b951-9837426e87e8", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next and go to step 'License Agreements'", + "fullTitle": "Install Prestashop should click on next and go to step 'License Agreements'", + "timedOut": false, + "duration": 146, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_goToLicenseAgreements\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLicenseAgreements', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.nextStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, install_1.default.getStepTitle(page, 'License agreements')];\n case 3:\n stepTitle = _a.sent();\n (0, chai_1.expect)(stepTitle).to.contain(install_1.default.secondStepEnTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc8879b2-7df0-4bc2-9251-1417b1485155", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should agree to terms and conditions and go to step 'System compatibility'", + "fullTitle": "Install Prestashop should agree to terms and conditions and go to step 'System compatibility'", + "timedOut": false, + "duration": 524, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_goToSystemCompatibility\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToSystemCompatibility', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.agreeToTermsAndConditions(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, install_1.default.nextStep(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, install_1.default.isThirdStepVisible(page)];\n case 4:\n if (!!(_a.sent())) return [3 /*break*/, 6];\n return [4 /*yield*/, install_1.default.getStepTitle(page, 'System compatibility')];\n case 5:\n stepTitle = _a.sent();\n (0, chai_1.expect)(stepTitle).to.contain(install_1.default.thirdStepEnTitle);\n _a.label = 6;\n case 6: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4f335706-c59e-4fb4-b23f-044a80201cfc", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next and go to step 'Store Information'", + "fullTitle": "Install Prestashop should click on next and go to step 'Store Information'", + "timedOut": false, + "duration": 22, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_goToStoreInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToStoreInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isThirdStepVisible(page)];\n case 2:\n if (!!(_a.sent())) return [3 /*break*/, 4];\n return [4 /*yield*/, install_1.default.nextStep(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [4 /*yield*/, install_1.default.getStepTitle(page, 'Store information')];\n case 5:\n stepTitle = _a.sent();\n (0, chai_1.expect)(stepTitle).to.contain(install_1.default.fourthStepEnTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fda8060e-6a74-47e2-934a-b5c4335d8844", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should fill shop Information form and go to step 'Content Configuration'", + "fullTitle": "Install Prestashop should fill shop Information form and go to step 'Content Configuration'", + "timedOut": false, + "duration": 420, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_goToContentConfiguration\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToContentConfiguration', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.fillInformationForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, install_1.default.nextStep(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, install_1.default.waitForFinishedForthStep(page)];\n case 4:\n _a.sent();\n return [4 /*yield*/, install_1.default.getStepTitle(page, 'Content of your store')];\n case 5:\n stepTitle = _a.sent();\n (0, chai_1.expect)(stepTitle).to.contain(install_1.default.fifthStepEnTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "87fa563c-edec-4ff8-88b9-d0552f171d78", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should click on next and go to step 'System Configuration'", + "fullTitle": "Install Prestashop should click on next and go to step 'System Configuration'", + "timedOut": false, + "duration": 143, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_goToDatabaseInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToDatabaseInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.nextStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, install_1.default.waitForFinishedFifthStep(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, install_1.default.getStepTitle(page, 'System configuration')];\n case 4:\n stepTitle = _a.sent();\n (0, chai_1.expect)(stepTitle).to.contain(install_1.default.sixthStepEnTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "adb5f26e-00a0-4b34-8b0a-28ad731c0db2", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should fill database configuration form and check database connection", + "fullTitle": "Install Prestashop should fill database configuration form and check database connection", + "timedOut": false, + "duration": 3219, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_checkDatabaseConnection\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDatabaseConnection', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.fillDatabaseForm(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, install_1.default.isDatabaseConnected(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b82e303c-3291-4c8b-95d3-18e02fec30f9", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should start the installation process", + "fullTitle": "Install Prestashop should start the installation process", + "timedOut": false, + "duration": 166, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_startInstallation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'startInstallation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.nextStep(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationInProgress(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "47a0933a-87f3-4bcb-93a5-68c6e9fa51b0", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Generate Setting file' be finished", + "fullTitle": "Install Prestashop should installation step 'Generate Setting file' be finished", + "timedOut": false, + "duration": 793, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep0\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0503db7a-2701-4353-88ba-02b671fca20f", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Install database' be finished", + "fullTitle": "Install Prestashop should installation step 'Install database' be finished", + "timedOut": false, + "duration": 6317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95f2b641-5423-467f-be48-1c4135445082", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Default data' be finished", + "fullTitle": "Install Prestashop should installation step 'Default data' be finished", + "timedOut": false, + "duration": 5814, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c312e438-f3f5-43bb-a68d-c3119b723730", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Populate database' be finished", + "fullTitle": "Install Prestashop should installation step 'Populate database' be finished", + "timedOut": false, + "duration": 1294, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep3\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2fba4467-538f-4cfd-b6bd-dbe09e1ffb7a", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Shop configuration' be finished", + "fullTitle": "Install Prestashop should installation step 'Shop configuration' be finished", + "timedOut": false, + "duration": 1797, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep4\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c5b9bd77-40ad-4666-9502-82bf7106acc8", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Install theme' be finished", + "fullTitle": "Install Prestashop should installation step 'Install theme' be finished", + "timedOut": false, + "duration": 7828, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep5\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "44d8873d-12fb-4072-ac06-cc2dd39bdc4d", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Install modules' be finished", + "fullTitle": "Install Prestashop should installation step 'Install modules' be finished", + "timedOut": false, + "duration": 7823, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep6\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7e47648c-4bcd-487e-9680-1d6fecb31a20", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Install fixtures' be finished", + "fullTitle": "Install Prestashop should installation step 'Install fixtures' be finished", + "timedOut": false, + "duration": 2313, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep7\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37b0f1be-ed98-4058-88ea-bbf44dfb6bd5", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation step 'Post installation scripts' be finished", + "fullTitle": "Install Prestashop should installation step 'Post installation scripts' be finished", + "timedOut": false, + "duration": 3804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_CheckStep8\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var stepFinished;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"CheckStep\".concat(index), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationStepFinished(page, test.args.step.name, test.args.step.timeout)];\n case 2:\n stepFinished = _a.sent();\n (0, chai_1.expect)(stepFinished, \"Fail to finish the step \".concat(test.args.step.name)).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "68b1e39a-fbb4-4763-b782-e55071c32132", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should installation be successful", + "fullTitle": "Install Prestashop should installation be successful", + "timedOut": false, + "duration": 803, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_checkInstallationSuccessful\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, stepTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkInstallationSuccessful', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.isInstallationSuccessful(page)];\n case 2:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [4 /*yield*/, install_1.default.getStepTitle(page, 'Installation finished')];\n case 3:\n stepTitle = _a.sent();\n (0, chai_1.expect)(stepTitle).to.contain(install_1.default.finalStepEnTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6fe4410-a5a4-4369-b5da-6cd943dd7173", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + }, + { + "title": "should go to FO and check that Prestashop logo exists", + "fullTitle": "Install Prestashop should go to FO and check that Prestashop logo exists", + "timedOut": false, + "duration": 1804, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_installShop_installShop_checkPrestashopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkPrestashopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, install_1.default.goToFOAfterInstall(page)];\n case 2:\n page = _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8bd4dee3-4b1b-4077-99da-b9b6f8b49968", + "parentUUID": "d64fdad6-c9eb-48d1-9715-a190b770caed", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ba0385a6-03b4-43f7-99b3-fe91887187c2", + "d4f76763-50e7-4f1c-b951-9837426e87e8", + "dc8879b2-7df0-4bc2-9251-1417b1485155", + "4f335706-c59e-4fb4-b23f-044a80201cfc", + "fda8060e-6a74-47e2-934a-b5c4335d8844", + "87fa563c-edec-4ff8-88b9-d0552f171d78", + "adb5f26e-00a0-4b34-8b0a-28ad731c0db2", + "b82e303c-3291-4c8b-95d3-18e02fec30f9", + "47a0933a-87f3-4bcb-93a5-68c6e9fa51b0", + "0503db7a-2701-4353-88ba-02b671fca20f", + "95f2b641-5423-467f-be48-1c4135445082", + "c312e438-f3f5-43bb-a68d-c3119b723730", + "2fba4467-538f-4cfd-b6bd-dbe09e1ffb7a", + "c5b9bd77-40ad-4666-9502-82bf7106acc8", + "44d8873d-12fb-4072-ac06-cc2dd39bdc4d", + "7e47648c-4bcd-487e-9680-1d6fecb31a20", + "37b0f1be-ed98-4058-88ea-bbf44dfb6bd5", + "68b1e39a-fbb4-4763-b782-e55071c32132", + "a6fe4410-a5a4-4369-b5da-6cd943dd7173", + "8bd4dee3-4b1b-4077-99da-b9b6f8b49968" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 46074, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "fde6d865-2b82-4409-9a94-28729abc224a", + "title": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/02_ordersBO/01_filterOrders.ts", + "file": "/campaigns/sanity/02_ordersBO/01_filterOrders.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS\"", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS \"before all\" hook in \"BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS\"", + "timedOut": false, + "duration": 35, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8acdfe95-028c-4d8f-a937-c81baa6880ed", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS\"", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS \"after all\" hook in \"BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "247c2677-e46a-4652-8b74-65e7f2eeb96b", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should login in BO", + "timedOut": false, + "duration": 3297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8db20fa2-41a9-49b0-9985-041dd5dbfee7", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the 'Orders > Orders' page", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should go to the 'Orders > Orders' page", + "timedOut": false, + "duration": 4432, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_filterOrders_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f551d684-a8b4-4add-8b7e-a90761bb3c66", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters and get number of orders", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should reset all filters and get number of orders", + "timedOut": false, + "duration": 2012, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_filterOrders_resetFilters1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilters1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrders = _a.sent();\n (0, chai_1.expect)(numberOfOrders).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29e1c274-2e1a-4c35-9569-3720bf2a2d8c", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'id_order' and check the result", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should filter the Orders table by 'id_order' and check the result", + "timedOut": false, + "duration": 2496, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_filterOrders_filterOrders_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterOrders_\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5c9a2bc9-bb25-435b-8cd1-fc014b958635", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should reset all filters", + "timedOut": false, + "duration": 878, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_filterOrders_resetFilters_filterId\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilters_\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1c8427ec-d4ad-4d6d-b1bf-d5ca8025dc18", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'reference' and check the result", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should filter the Orders table by 'reference' and check the result", + "timedOut": false, + "duration": 2450, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_filterOrders_filterOrders_filterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterOrders_\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "244e4f98-b2ec-4301-8e91-7f4fd7138b08", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should reset all filters", + "timedOut": false, + "duration": 903, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_filterOrders_resetFilters_filterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilters_\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "29f5757f-c832-4e39-b21b-ba6dc29c2f6c", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should filter the Orders table by 'osname' and check the result", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should filter the Orders table by 'osname' and check the result", + "timedOut": false, + "duration": 2317, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_filterOrders_filterOrders_filterOsName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"filterOrders_\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.filterOrders(page, test.args.filterType, test.args.filterBy, test.args.filterValue)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getTextColumn(page, test.args.filterBy, 1)];\n case 3:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(test.args.filterValue);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "780c1549-532a-49d7-b4d6-43e3e8a27a53", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should reset all filters", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should reset all filters", + "timedOut": false, + "duration": 875, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_filterOrders_resetFilters_filterOsName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfOrdersAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetFilters_\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfOrdersAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfOrdersAfterReset).to.be.equal(numberOfOrders);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c84ffb87-a7a7-40ce-a71f-a063521dfaad", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + }, + { + "title": "should log out from BO", + "fullTitle": "BO - Orders - Orders : Filter the Orders table by ID, REFERENCE, STATUS should log out from BO", + "timedOut": false, + "duration": 752, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "527af11c-5514-4c53-902e-bd33ee8aa3ac", + "parentUUID": "fde6d865-2b82-4409-9a94-28729abc224a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "8db20fa2-41a9-49b0-9985-041dd5dbfee7", + "f551d684-a8b4-4add-8b7e-a90761bb3c66", + "29e1c274-2e1a-4c35-9569-3720bf2a2d8c", + "5c9a2bc9-bb25-435b-8cd1-fc014b958635", + "1c8427ec-d4ad-4d6d-b1bf-d5ca8025dc18", + "244e4f98-b2ec-4301-8e91-7f4fd7138b08", + "29f5757f-c832-4e39-b21b-ba6dc29c2f6c", + "780c1549-532a-49d7-b4d6-43e3e8a27a53", + "c84ffb87-a7a7-40ce-a71f-a063521dfaad", + "527af11c-5514-4c53-902e-bd33ee8aa3ac" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 20412, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "title": "BO - Orders - Orders : Edit Order BO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/02_ordersBO/02_editOrder.ts", + "file": "/campaigns/sanity/02_ordersBO/02_editOrder.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Orders - Orders : Edit Order BO\"", + "fullTitle": "BO - Orders - Orders : Edit Order BO \"before all\" hook in \"BO - Orders - Orders : Edit Order BO\"", + "timedOut": false, + "duration": 32, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d4f01594-86dd-474c-b19b-3fe25667e508", + "parentUUID": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Orders - Orders : Edit Order BO\"", + "fullTitle": "BO - Orders - Orders : Edit Order BO \"after all\" hook in \"BO - Orders - Orders : Edit Order BO\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "42937c03-7316-4574-889d-7e8061291f6b", + "parentUUID": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Orders - Orders : Edit Order BO should login in BO", + "timedOut": false, + "duration": 1760, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0ddab167-653b-4900-b640-790d2611067a", + "parentUUID": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the 'Orders > Orders' page", + "fullTitle": "BO - Orders - Orders : Edit Order BO should go to the 'Orders > Orders' page", + "timedOut": false, + "duration": 4865, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_editOrder_goToOrdersPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToOrdersPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.ordersParentLink, dashboard_1.default.ordersLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orders_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, orders_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(orders_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1187585c-7573-4ec9-b582-42b9f3230813", + "parentUUID": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first order page", + "fullTitle": "BO - Orders - Orders : Edit Order BO should go to the first order page", + "timedOut": false, + "duration": 1074, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_editOrder_goToFirstOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToFirstOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, orders_1.default.goToOrder(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(productsBlock_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "48d53255-eeaf-431c-9b93-ce308b5491a7", + "parentUUID": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "isHook": false, + "skipped": false + }, + { + "title": "should modify the product quantity and check the validation", + "fullTitle": "BO - Orders - Orders : Edit Order BO should modify the product quantity and check the validation", + "timedOut": false, + "duration": 2204, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_editOrder_editOrderQuantity\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var newQuantity;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editOrderQuantity', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.modifyProductQuantity(page, 1, 5)];\n case 2:\n newQuantity = _a.sent();\n (0, chai_1.expect)(newQuantity, 'Quantity was not updated').to.equal(5);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9dda0ae4-a812-4565-a0f0-74618dd82b0e", + "parentUUID": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "isHook": false, + "skipped": false + }, + { + "title": "should modify the order status and check the validation", + "fullTitle": "BO - Orders - Orders : Edit Order BO should modify the order status and check the validation", + "timedOut": false, + "duration": 1479, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_ordersBO_editOrder_editOrderStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var orderStatus;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editOrderStatus', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, productsBlock_1.default.modifyOrderStatus(page, orderStatuses_1.default.paymentAccepted.name)];\n case 2:\n orderStatus = _a.sent();\n (0, chai_1.expect)(orderStatus).to.equal(orderStatuses_1.default.paymentAccepted.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "66e8c240-ea37-44d3-a309-11fbba651d8f", + "parentUUID": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "isHook": false, + "skipped": false + }, + { + "title": "should log out from BO", + "fullTitle": "BO - Orders - Orders : Edit Order BO should log out from BO", + "timedOut": false, + "duration": 702, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"logoutBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.logoutBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0acbc90e-28e7-47af-8a0d-ed44be42794b", + "parentUUID": "bcda9169-c56b-4352-a3e9-e0305a44a78e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0ddab167-653b-4900-b640-790d2611067a", + "1187585c-7573-4ec9-b582-42b9f3230813", + "48d53255-eeaf-431c-9b93-ce308b5491a7", + "9dda0ae4-a812-4565-a0f0-74618dd82b0e", + "66e8c240-ea37-44d3-a309-11fbba651d8f", + "0acbc90e-28e7-47af-8a0d-ed44be42794b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12084, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e337c94e-00c4-4736-9943-235358c540ff", + "title": "BO - Catalog - Products : Filter in Products Page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/01_filterProducts.ts", + "file": "/campaigns/sanity/03_productsBO/01_filterProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Filter in Products Page\"", + "fullTitle": "BO - Catalog - Products : Filter in Products Page \"before all\" hook in \"BO - Catalog - Products : Filter in Products Page\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c546910b-16b4-4c0e-bcc5-42ea0ca478c4", + "parentUUID": "e337c94e-00c4-4736-9943-235358c540ff", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Filter in Products Page\"", + "fullTitle": "BO - Catalog - Products : Filter in Products Page \"after all\" hook in \"BO - Catalog - Products : Filter in Products Page\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "dc742791-360f-4fea-b388-498007fcd8a4", + "parentUUID": "e337c94e-00c4-4736-9943-235358c540ff", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "title": "Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/01_filterProducts.ts", + "file": "/campaigns/sanity/03_productsBO/01_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should login in BO", + "timedOut": false, + "duration": 1801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b76f0c3-b7bc-4d71-b000-983627c51947", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4162, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd9e813d-38a1-4db1-8fa9-5545133550d6", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should check that no filter is applied by default", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should check that no filter is applied by default", + "timedOut": false, + "duration": 1005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_checkNoFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNoFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.isResetButtonVisible(page)];\n case 2:\n isVisible = _a.sent();\n (0, chai_1.expect)(isVisible, 'Reset button is visible!').to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97089cac-b663-4623-a677-da33180d01ea", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should get number of products", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should get number of products", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromHeader(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f06d96d-e6a6-4004-bd55-54719c17b378", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'id_product' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'id_product' and check result", + "timedOut": false, + "duration": 1374, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_filterIDMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n else if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(textColumn).to.eq(true);\n }\n else {\n (0, chai_1.expect)(textColumn).to.be.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dc15ebb3-e397-4da1-8fdb-3808d37031d6", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2944, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_resetAfterfilterIDMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1f796e43-88f4-4cfd-bdb5-91051791b5b9", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'product_name' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'product_name' and check result", + "timedOut": false, + "duration": 1295, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_filterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n else if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(textColumn).to.eq(true);\n }\n else {\n (0, chai_1.expect)(textColumn).to.be.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8038655b-5066-4f7d-b500-e19428c52be5", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_resetAfterfilterName\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "27864a82-4518-4e08-9504-6d6ccbed9509", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'reference' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'reference' and check result", + "timedOut": false, + "duration": 495, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_filterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n else if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(textColumn).to.eq(true);\n }\n else {\n (0, chai_1.expect)(textColumn).to.be.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "26d85dc9-f5eb-4d51-8489-82fdcba779e0", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 3005, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_resetAfterfilterReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9befd93f-c998-4c1e-981b-8c80c09120d8", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'category' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'category' and check result", + "timedOut": false, + "duration": 1269, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_filterCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n else if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(textColumn).to.eq(true);\n }\n else {\n (0, chai_1.expect)(textColumn).to.be.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "511552b7-fd4e-461c-a8a2-b2044cb8cd8e", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_resetAfterfilterCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ddd51c92-a79a-4a23-944d-735d8e0e63b2", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'price' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'price' and check result", + "timedOut": false, + "duration": 1325, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_filterPriceMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n else if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(textColumn).to.eq(true);\n }\n else {\n (0, chai_1.expect)(textColumn).to.be.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "737b1ead-6d90-45b2-8507-b16fe3772d40", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2897, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_resetAfterfilterPriceMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e200fc3-b687-40dc-8105-8c861b7a8c66", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'quantity' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'quantity' and check result", + "timedOut": false, + "duration": 474, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_filterQuantityMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n else if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(textColumn).to.eq(true);\n }\n else {\n (0, chai_1.expect)(textColumn).to.be.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "57a65013-439c-420c-afd0-9c6457efff1d", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_resetAfterfilterQuantityMinMax\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4a2c21d2-fffc-44ad-9b36-aca2ba5f891f", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'active' and check result", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should filter list by 'active' and check result", + "timedOut": false, + "duration": 521, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_filterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, i, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, test.args.filterBy, test.args.filterValue, test.args.filterType)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.above(0);\n }\n else {\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.be.below(numberOfProducts);\n }\n i = 1;\n _a.label = 4;\n case 4:\n if (!(i <= numberOfProductsAfterFilter)) return [3 /*break*/, 7];\n return [4 /*yield*/, products_1.default.getTextColumn(page, test.args.filterBy, i)];\n case 5:\n textColumn = _a.sent();\n if (typeof test.args.filterValue !== 'string') {\n (0, chai_1.expect)(textColumn).to.within(test.args.filterValue.min, test.args.filterValue.max);\n }\n else if (test.args.filterBy === 'active') {\n (0, chai_1.expect)(textColumn).to.eq(true);\n }\n else {\n (0, chai_1.expect)(textColumn).to.be.contain(test.args.filterValue);\n }\n _a.label = 6;\n case 6:\n i++;\n return [3 /*break*/, 4];\n case 7: return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "292b07be-ba0a-4ec6-a6cc-82ca05998008", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Filter in Products Page Filter products table by : ID, Name, Reference, Category, Price, Quantity and Status should reset filter", + "timedOut": false, + "duration": 2989, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_filterProducts_resetAfterfilterStatus\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', \"resetAfter\".concat(test.args.identifier), baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c3dfac6f-672d-4746-a5e5-877825ac4db6", + "parentUUID": "fbd5a27b-59ba-4a0b-ad76-1a740eec3cf3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4b76f0c3-b7bc-4d71-b000-983627c51947", + "fd9e813d-38a1-4db1-8fa9-5545133550d6", + "97089cac-b663-4623-a677-da33180d01ea", + "2f06d96d-e6a6-4004-bd55-54719c17b378", + "dc15ebb3-e397-4da1-8fdb-3808d37031d6", + "1f796e43-88f4-4cfd-bdb5-91051791b5b9", + "8038655b-5066-4f7d-b500-e19428c52be5", + "27864a82-4518-4e08-9504-6d6ccbed9509", + "26d85dc9-f5eb-4d51-8489-82fdcba779e0", + "9befd93f-c998-4c1e-981b-8c80c09120d8", + "511552b7-fd4e-461c-a8a2-b2044cb8cd8e", + "ddd51c92-a79a-4a23-944d-735d8e0e63b2", + "737b1ead-6d90-45b2-8507-b16fe3772d40", + "1e200fc3-b687-40dc-8105-8c861b7a8c66", + "57a65013-439c-420c-afd0-9c6457efff1d", + "4a2c21d2-fffc-44ad-9b36-aca2ba5f891f", + "292b07be-ba0a-4ec6-a6cc-82ca05998008", + "c3dfac6f-672d-4746-a5e5-877825ac4db6" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 34303, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "a311ac0f-8356-4568-b99a-86a108f09ad8", + "title": "BO - Catalog - Products : CRUD standard product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/02_CRUDStandardProduct.ts", + "file": "/campaigns/sanity/03_productsBO/02_CRUDStandardProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : CRUD standard product\"", + "fullTitle": "BO - Catalog - Products : CRUD standard product \"before all\" hook in \"BO - Catalog - Products : CRUD standard product\"", + "timedOut": false, + "duration": 36, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d74a2a05-531d-41fd-8a0f-7850c591436d", + "parentUUID": "a311ac0f-8356-4568-b99a-86a108f09ad8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : CRUD standard product\"", + "fullTitle": "BO - Catalog - Products : CRUD standard product \"after all\" hook in \"BO - Catalog - Products : CRUD standard product\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "35ef542c-0a31-4424-91f3-b495eddfbeb0", + "parentUUID": "a311ac0f-8356-4568-b99a-86a108f09ad8", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/02_CRUDStandardProduct.ts", + "file": "/campaigns/sanity/03_productsBO/02_CRUDStandardProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should login in BO", + "timedOut": false, + "duration": 1733, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b33ed2a6-2b80-4ca0-ad8d-e7d9df6023a3", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4928, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c77d197a-0444-4ad0-8318-3625bb2179d6", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 234, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "dce35f1e-6a73-4982-9401-a3a40eb28601", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should choose 'Standard product'", + "timedOut": false, + "duration": 858, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "618d4a09-de59-4476-a77d-77beb04e34fa", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should go to new product page", + "timedOut": false, + "duration": 49, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "586f1c9e-223d-482a-b6e8-0b6c574cf4fb", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should create standard product", + "timedOut": false, + "duration": 5445, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "140cc307-e33b-471b-b6f8-71deea075210", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_checkSaveButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSaveButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "f8286d33-8b7b-4c66-9be1-b20cf3f2ce3e", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should preview product", + "timedOut": false, + "duration": 1921, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8aa5272b-1a0d-45e4-95ed-ce77701ecd70", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should check all product information", + "timedOut": false, + "duration": 146, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(newProductData.name),\n (0, chai_1.expect)(result.price).to.equal(newProductData.price),\n (0, chai_1.expect)(result.summary).to.equal(newProductData.summary),\n (0, chai_1.expect)(result.description).to.equal(newProductData.description),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a36fbc32-b791-4044-ae6b-cead0cab4119", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD standard product Create product should go back to BO", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6010b24b-fec1-48e0-9cdd-591f00c9a05e", + "parentUUID": "f6141a29-8adb-4cec-8eb3-c68fa5ca8ba2", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b33ed2a6-2b80-4ca0-ad8d-e7d9df6023a3", + "c77d197a-0444-4ad0-8318-3625bb2179d6", + "dce35f1e-6a73-4982-9401-a3a40eb28601", + "618d4a09-de59-4476-a77d-77beb04e34fa", + "586f1c9e-223d-482a-b6e8-0b6c574cf4fb", + "140cc307-e33b-471b-b6f8-71deea075210", + "f8286d33-8b7b-4c66-9be1-b20cf3f2ce3e", + "8aa5272b-1a0d-45e4-95ed-ce77701ecd70", + "a36fbc32-b791-4044-ae6b-cead0cab4119", + "6010b24b-fec1-48e0-9cdd-591f00c9a05e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 15329, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9672f508-c039-4b7b-bb38-c8515d208d30", + "title": "Edit product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/02_CRUDStandardProduct.ts", + "file": "/campaigns/sanity/03_productsBO/02_CRUDStandardProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should edit the created product", + "fullTitle": "BO - Catalog - Products : CRUD standard product Edit product should edit the created product", + "timedOut": false, + "duration": 3402, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_editProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, editProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a7199980-c30b-41b3-bc16-fc9a4466e3e7", + "parentUUID": "9672f508-c039-4b7b-bb38-c8515d208d30", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD standard product Edit product should preview product", + "timedOut": false, + "duration": 1738, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_previewEditedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewEditedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "51348ac4-4b7c-4c46-9180-5fdd8589ba20", + "parentUUID": "9672f508-c039-4b7b-bb38-c8515d208d30", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD standard product Edit product should check all product information", + "timedOut": false, + "duration": 142, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_checkEditedProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(editProductData.priceTaxExcluded, 10)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(editProductData.name),\n (0, chai_1.expect)(result.price).to.equal(editProductData.priceTaxExcluded + taxValue),\n (0, chai_1.expect)(result.description).to.equal(editProductData.description),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "95f5b1ad-7f35-405d-894f-5a4b83d2ac20", + "parentUUID": "9672f508-c039-4b7b-bb38-c8515d208d30", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD standard product Edit product should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fd83c464-9462-4ada-8a36-0c2757538d10", + "parentUUID": "9672f508-c039-4b7b-bb38-c8515d208d30", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a7199980-c30b-41b3-bc16-fc9a4466e3e7", + "51348ac4-4b7c-4c46-9180-5fdd8589ba20", + "95f5b1ad-7f35-405d-894f-5a4b83d2ac20", + "fd83c464-9462-4ada-8a36-0c2757538d10" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5287, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "9b0fddbb-b7e0-46f7-bc03-029af329b1eb", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/02_CRUDStandardProduct.ts", + "file": "/campaigns/sanity/03_productsBO/02_CRUDStandardProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : CRUD standard product Delete product should delete product", + "timedOut": false, + "duration": 1586, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDStandardProduct_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "60315fa8-38ee-4ad2-a2ee-38b49952c648", + "parentUUID": "9b0fddbb-b7e0-46f7-bc03-029af329b1eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "60315fa8-38ee-4ad2-a2ee-38b49952c648" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1586, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "1ef7e266-338a-4125-b1ba-365aeb5a92f2", + "title": "BO - Catalog - Products : CRUD product with combinations", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/sanity/03_productsBO/03_CRUDProductWithCombinations.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : CRUD product with combinations\"", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations \"before all\" hook in \"BO - Catalog - Products : CRUD product with combinations\"", + "timedOut": false, + "duration": 37, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "620ed81e-eb30-435b-b101-fb1e457561c9", + "parentUUID": "1ef7e266-338a-4125-b1ba-365aeb5a92f2", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : CRUD product with combinations\"", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations \"after all\" hook in \"BO - Catalog - Products : CRUD product with combinations\"", + "timedOut": false, + "duration": 8, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "507c0ba7-d452-45bc-b4bc-af39d9f239fe", + "parentUUID": "1ef7e266-338a-4125-b1ba-365aeb5a92f2", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/sanity/03_productsBO/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should login in BO", + "timedOut": false, + "duration": 1767, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "14e4f698-a458-4cad-907e-46815c3e1fbb", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4933, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "629aeabf-ca44-4739-bd0c-043a31f1fd02", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 233, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8146bee2-18c1-4c46-b7ca-e3c107a42a1d", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Product with combinations'", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should choose 'Product with combinations'", + "timedOut": false, + "duration": 855, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_chooseProductWithCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseProductWithCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ded7490-7c87-4232-b1ae-2906e1fd03a8", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should go to new product page", + "timedOut": false, + "duration": 53, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5d123bc3-6ff4-4095-8c07-9ad24468a042", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should create product", + "timedOut": false, + "duration": 4906, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_createProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cd1bd80b-5461-4c8b-9350-d446cd1a322e", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_checkSaveButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSaveButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d92174c2-8195-4465-9f28-ffaf3ce3bc85", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should create combinations and check generate combinations button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should create combinations and check generate combinations button", + "timedOut": false, + "duration": 2341, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_createCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var generateCombinationsButton;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setProductAttributes(page, newProductData.attributes)];\n case 2:\n generateCombinationsButton = _a.sent();\n (0, chai_1.expect)(generateCombinationsButton).to.equal('Generate 4 combinations');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c4cf0e1c-dcdb-41ae-8fec-cf0e5a1cdc24", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should click on generate combinations button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should click on generate combinations button", + "timedOut": false, + "duration": 238, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_generateCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal('Successfully generated 4 combinations.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5dfc0b33-044b-4755-8105-5d978e1d004b", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should check that combinations generation modal is closed", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should check that combinations generation modal is closed", + "timedOut": false, + "duration": 10, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_generateCombinationsModalIsClosed\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinationsModalIsClosed', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinationModalIsClosed(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "73d72ca0-7523-409b-b201-3ab7df5c65e1", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should save the product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should save the product", + "timedOut": false, + "duration": 1703, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_saveProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'saveProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 2:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c92fabac-50d1-480d-92b2-c5019bfcb4fa", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should preview product", + "timedOut": false, + "duration": 1863, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1bf8cc1e-d330-475c-9cd8-9b3236876159", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should check all product information", + "timedOut": false, + "duration": 151, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, productAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(newProductData.name),\n (0, chai_1.expect)(result.price).to.equal(newProductData.price),\n (0, chai_1.expect)(result.summary).to.equal(newProductData.summary),\n (0, chai_1.expect)(result.description).to.equal(newProductData.description),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductAttributes(page)];\n case 4:\n productAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n // color\n (0, chai_1.expect)(productAttributes[0].value).to.equal(newProductData.attributes[1].values.join(' ')),\n // size\n (0, chai_1.expect)(productAttributes[1].value).to.equal(newProductData.attributes[0].values.join(' ')),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a4dd914a-23f2-4240-be48-3d538728c24e", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Create product should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bed4a376-3b3a-4523-b85c-d087cd15edc5", + "parentUUID": "9fd487e7-d4d0-45ab-89de-c0c18633052f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "14e4f698-a458-4cad-907e-46815c3e1fbb", + "629aeabf-ca44-4739-bd0c-043a31f1fd02", + "8146bee2-18c1-4c46-b7ca-e3c107a42a1d", + "4ded7490-7c87-4232-b1ae-2906e1fd03a8", + "5d123bc3-6ff4-4095-8c07-9ad24468a042", + "cd1bd80b-5461-4c8b-9350-d446cd1a322e", + "d92174c2-8195-4465-9f28-ffaf3ce3bc85", + "c4cf0e1c-dcdb-41ae-8fec-cf0e5a1cdc24", + "5dfc0b33-044b-4755-8105-5d978e1d004b", + "73d72ca0-7523-409b-b201-3ab7df5c65e1", + "c92fabac-50d1-480d-92b2-c5019bfcb4fa", + "1bf8cc1e-d330-475c-9cd8-9b3236876159", + "a4dd914a-23f2-4240-be48-3d538728c24e", + "bed4a376-3b3a-4523-b85c-d087cd15edc5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 19066, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "title": "Edit product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/sanity/03_productsBO/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should edit the created product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should edit the created product", + "timedOut": false, + "duration": 3387, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_editProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, editProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bdd3a868-0c0f-463e-8c01-f400b9f9914b", + "parentUUID": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "isHook": false, + "skipped": false + }, + { + "title": "should add combinations and check generate combinations button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should add combinations and check generate combinations button", + "timedOut": false, + "duration": 591, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_addCombinations\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var generateCombinationsButton;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addCombinations', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.setProductAttributes(page, editProductData.attributes)];\n case 2:\n generateCombinationsButton = _a.sent();\n (0, chai_1.expect)(generateCombinationsButton).to.equal('Generate 6 combinations');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8219b161-4634-41fe-98c6-f55538f92b77", + "parentUUID": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "isHook": false, + "skipped": false + }, + { + "title": "should click on generate combinations button", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should click on generate combinations button", + "timedOut": false, + "duration": 247, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_generateCombinations2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var successMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinations2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinations(page)];\n case 2:\n successMessage = _a.sent();\n (0, chai_1.expect)(successMessage).to.equal('Successfully generated 6 combinations.');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2b660778-d657-4f10-a7dc-0f094831319f", + "parentUUID": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "isHook": false, + "skipped": false + }, + { + "title": "should check that combinations generation modal is closed", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should check that combinations generation modal is closed", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_generateCombinationsModalIsClosed2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalClosed;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'generateCombinationsModalIsClosed2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, combinationsTab_1.default.generateCombinationModalIsClosed(page)];\n case 2:\n isModalClosed = _a.sent();\n (0, chai_1.expect)(isModalClosed).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fbd2a674-c7f5-47a1-b554-2a67912aa6bc", + "parentUUID": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "isHook": false, + "skipped": false + }, + { + "title": "should save the product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should save the product", + "timedOut": false, + "duration": 1801, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_saveProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var updateProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'saveProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.saveProduct(page)];\n case 2:\n updateProductMessage = _a.sent();\n (0, chai_1.expect)(updateProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9e8a5610-07a0-4aa4-80ee-8fa77cca98f9", + "parentUUID": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should preview product", + "timedOut": false, + "duration": 1725, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_previewEditedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewEditedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9673d6ad-ac65-4ab1-9dc5-813e8c129066", + "parentUUID": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should check all product information", + "timedOut": false, + "duration": 161, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_checkEditedProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result, productAttributes;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(editProductData.name),\n (0, chai_1.expect)(result.price).to.equal(editProductData.price),\n (0, chai_1.expect)(result.description).to.equal(editProductData.description),\n ])];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductAttributes(page)];\n case 4:\n productAttributes = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(productAttributes[0].value).to.equal(\"\".concat(newProductData.attributes[1].values.join(' '), \" \").concat(editProductData.attributes[1].values.join(' '))),\n (0, chai_1.expect)(productAttributes[1].value).to.equal(newProductData.attributes[0].values.join(' ')),\n ])];\n case 5:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "072c25f2-671c-422a-b193-4dfbbe5db549", + "parentUUID": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Edit product should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e0fc11a5-0fc0-45cc-8e60-cbb1b06a80aa", + "parentUUID": "814690a6-3b02-4cdc-86c4-bfbf577c1860", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "bdd3a868-0c0f-463e-8c01-f400b9f9914b", + "8219b161-4634-41fe-98c6-f55538f92b77", + "2b660778-d657-4f10-a7dc-0f094831319f", + "fbd2a674-c7f5-47a1-b554-2a67912aa6bc", + "9e8a5610-07a0-4aa4-80ee-8fa77cca98f9", + "9673d6ad-ac65-4ab1-9dc5-813e8c129066", + "072c25f2-671c-422a-b193-4dfbbe5db549", + "e0fc11a5-0fc0-45cc-8e60-cbb1b06a80aa" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7922, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "845a7fa4-ba9c-4f13-825c-cc1a18444fc3", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/03_CRUDProductWithCombinations.ts", + "file": "/campaigns/sanity/03_productsBO/03_CRUDProductWithCombinations.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : CRUD product with combinations Delete product should delete product", + "timedOut": false, + "duration": 1628, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDProductWithCombinations_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e01b4cdf-bc9c-44fc-bb51-25b366ba494d", + "parentUUID": "845a7fa4-ba9c-4f13-825c-cc1a18444fc3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "e01b4cdf-bc9c-44fc-bb51-25b366ba494d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1628, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "692aff97-ec26-4076-941c-385c9842fa7f", + "title": "BO - Catalog - Products : CRUD virtual product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/04_CRUDVirtualProduct.ts", + "file": "/campaigns/sanity/03_productsBO/04_CRUDVirtualProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : CRUD virtual product\"", + "fullTitle": "BO - Catalog - Products : CRUD virtual product \"before all\" hook in \"BO - Catalog - Products : CRUD virtual product\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c1b4952-947e-4e8f-a0e8-2df4b1e84453", + "parentUUID": "692aff97-ec26-4076-941c-385c9842fa7f", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : CRUD virtual product\"", + "fullTitle": "BO - Catalog - Products : CRUD virtual product \"after all\" hook in \"BO - Catalog - Products : CRUD virtual product\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "57ae2a84-c75f-4287-bdf7-946aad0aa529", + "parentUUID": "692aff97-ec26-4076-941c-385c9842fa7f", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/04_CRUDVirtualProduct.ts", + "file": "/campaigns/sanity/03_productsBO/04_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should login in BO", + "timedOut": false, + "duration": 1727, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4ae01b97-c4a8-4635-b896-782bf4beecd4", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4937, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ca550d67-06b1-4dc8-b230-72c3154300fd", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 225, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ff384ff0-01fd-4395-a521-0d4f83f40186", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Virtual product'", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should choose 'Virtual product'", + "timedOut": false, + "duration": 859, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_chooseVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "215b7ecf-641e-4fc3-b48c-22a179cbeb43", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should go to new product page", + "timedOut": false, + "duration": 50, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7ea79b29-bdf8-4bdc-b89c-14d0a228192b", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should create virtual product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should create virtual product", + "timedOut": false, + "duration": 4904, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_createVirtualProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createVirtualProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a5c9282a-e13c-43a6-8002-0b134edae7fe", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should check that the save button is changed to 'Save and publish'", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should check that the save button is changed to 'Save and publish'", + "timedOut": false, + "duration": 8, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_checkSaveButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var saveButtonName;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkSaveButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.getSaveButtonName(page)];\n case 2:\n saveButtonName = _a.sent();\n (0, chai_1.expect)(saveButtonName).to.equal('Save and publish');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a9260836-3eb9-421d-92ee-6fa99df2c374", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should preview product", + "timedOut": false, + "duration": 1822, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_previewProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(newProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2f95d11f-f5eb-40ab-b592-f3ddd19bc8d3", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should check all product information", + "timedOut": false, + "duration": 147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_checkProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(newProductData.name),\n (0, chai_1.expect)(result.price).to.equal(newProductData.price),\n (0, chai_1.expect)(result.summary).to.equal(newProductData.summary),\n (0, chai_1.expect)(result.description).to.equal(newProductData.description),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "858aa1c3-9c07-499d-aac8-9d1fa1947ea5", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Create product should go back to BO", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_goBackToBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4362507d-9210-40e4-8f5f-0375b5f7a115", + "parentUUID": "8d41ba8c-2c54-413d-9330-db7a5c716c2e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4ae01b97-c4a8-4635-b896-782bf4beecd4", + "ca550d67-06b1-4dc8-b230-72c3154300fd", + "ff384ff0-01fd-4395-a521-0d4f83f40186", + "215b7ecf-641e-4fc3-b48c-22a179cbeb43", + "7ea79b29-bdf8-4bdc-b89c-14d0a228192b", + "a5c9282a-e13c-43a6-8002-0b134edae7fe", + "a9260836-3eb9-421d-92ee-6fa99df2c374", + "2f95d11f-f5eb-40ab-b592-f3ddd19bc8d3", + "858aa1c3-9c07-499d-aac8-9d1fa1947ea5", + "4362507d-9210-40e4-8f5f-0375b5f7a115" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 14683, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "e81e7e36-0c78-4b5c-a4cb-dbe494b30fd7", + "title": "Edit product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/04_CRUDVirtualProduct.ts", + "file": "/campaigns/sanity/03_productsBO/04_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should edit the created product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should edit the created product", + "timedOut": false, + "duration": 3004, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_editProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, editProductData)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c66bc6ec-0049-46ef-bb84-0a3713444a47", + "parentUUID": "e81e7e36-0c78-4b5c-a4cb-dbe494b30fd7", + "isHook": false, + "skipped": false + }, + { + "title": "should preview product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should preview product", + "timedOut": false, + "duration": 1746, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_previewEditedProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'previewEditedProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.previewProduct(page)];\n case 2:\n // Click on preview button\n page = _a.sent();\n return [4 /*yield*/, product_1.default.changeLanguage(page, 'en')];\n case 3:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(editProductData.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "12a37db0-2a6f-45b2-85db-76cd9a9fa9e6", + "parentUUID": "e81e7e36-0c78-4b5c-a4cb-dbe494b30fd7", + "isHook": false, + "skipped": false + }, + { + "title": "should check all product information", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should check all product information", + "timedOut": false, + "duration": 139, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_checkEditedProductInformation\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var taxValue, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkEditedProductInformation', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, basicHelper_1.default.percentage(editProductData.priceTaxExcluded, 10)];\n case 2:\n taxValue = _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 3:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(editProductData.name),\n (0, chai_1.expect)(result.price).to.equal(editProductData.priceTaxExcluded + taxValue),\n (0, chai_1.expect)(result.description).to.equal(editProductData.description),\n ])];\n case 4:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa78d17e-a0f5-4e46-9cdd-8bc916b97972", + "parentUUID": "e81e7e36-0c78-4b5c-a4cb-dbe494b30fd7", + "isHook": false, + "skipped": false + }, + { + "title": "should go back to BO", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Edit product should go back to BO", + "timedOut": false, + "duration": 5, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_goBackToBO2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goBackToBO2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.closePage(browserContext, page, 0)];\n case 2:\n // Go back to BO\n page = _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6299afab-9bb6-416e-9fe0-f2f79291fa2f", + "parentUUID": "e81e7e36-0c78-4b5c-a4cb-dbe494b30fd7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c66bc6ec-0049-46ef-bb84-0a3713444a47", + "12a37db0-2a6f-45b2-85db-76cd9a9fa9e6", + "aa78d17e-a0f5-4e46-9cdd-8bc916b97972", + "6299afab-9bb6-416e-9fe0-f2f79291fa2f" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4894, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "70b8036f-b76b-46c4-bcfb-84ffcdfd5147", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/04_CRUDVirtualProduct.ts", + "file": "/campaigns/sanity/03_productsBO/04_CRUDVirtualProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : CRUD virtual product Delete product should delete product", + "timedOut": false, + "duration": 1506, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_CRUDVirtualProduct_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.deleteProduct(page)];\n case 2:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "45b3ef8c-24ef-4ec3-97df-9fcd62072be5", + "parentUUID": "70b8036f-b76b-46c4-bcfb-84ffcdfd5147", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "45b3ef8c-24ef-4ec3-97df-9fcd62072be5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1506, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "5bf29ac0-53e3-45fd-9944-45ddcc8941ec", + "title": "BO - Catalog - Products : Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/05_deleteProduct.ts", + "file": "/campaigns/sanity/03_productsBO/05_deleteProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Delete product\"", + "fullTitle": "BO - Catalog - Products : Delete product \"before all\" hook in \"BO - Catalog - Products : Delete product\"", + "timedOut": false, + "duration": 31, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "02917496-8e67-4b45-b9f5-1023f5ed4e1e", + "parentUUID": "5bf29ac0-53e3-45fd-9944-45ddcc8941ec", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Delete product\"", + "fullTitle": "BO - Catalog - Products : Delete product \"after all\" hook in \"BO - Catalog - Products : Delete product\"", + "timedOut": false, + "duration": 6, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "2d24e16c-9277-45c6-b1bd-e56723bdfd29", + "parentUUID": "5bf29ac0-53e3-45fd-9944-45ddcc8941ec", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "785995b1-5b63-438d-8254-ea705447d4ea", + "title": "Create product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/05_deleteProduct.ts", + "file": "/campaigns/sanity/03_productsBO/05_deleteProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Delete product Create product should login in BO", + "timedOut": false, + "duration": 1721, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "09e8b968-4aa2-4863-a93d-8d2a32ca9cb4", + "parentUUID": "785995b1-5b63-438d-8254-ea705447d4ea", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Delete product Create product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4942, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9d0491d4-9bd5-43bc-8585-acb4838bc30f", + "parentUUID": "785995b1-5b63-438d-8254-ea705447d4ea", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Products : Delete product Create product should reset filter and get number of products", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "63e85b1f-f186-4a64-bb06-ad466f2d7c6d", + "parentUUID": "785995b1-5b63-438d-8254-ea705447d4ea", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Delete product Create product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 231, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "712cd508-7e55-48c3-ab53-575872842667", + "parentUUID": "785995b1-5b63-438d-8254-ea705447d4ea", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : Delete product Create product should choose 'Standard product'", + "timedOut": false, + "duration": 861, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, newProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "38e00552-b9b3-4287-a304-eea8fb33813b", + "parentUUID": "785995b1-5b63-438d-8254-ea705447d4ea", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : Delete product Create product should go to new product page", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "6c9cf773-dd88-42d0-8761-b30e0f6c7275", + "parentUUID": "785995b1-5b63-438d-8254-ea705447d4ea", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Delete product Create product should create standard product", + "timedOut": false, + "duration": 5097, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, newProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "cce31832-5f15-4ba9-acd8-7f690d841209", + "parentUUID": "785995b1-5b63-438d-8254-ea705447d4ea", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "09e8b968-4aa2-4863-a93d-8d2a32ca9cb4", + "9d0491d4-9bd5-43bc-8585-acb4838bc30f", + "63e85b1f-f186-4a64-bb06-ad466f2d7c6d", + "712cd508-7e55-48c3-ab53-575872842667", + "38e00552-b9b3-4287-a304-eea8fb33813b", + "6c9cf773-dd88-42d0-8761-b30e0f6c7275", + "cce31832-5f15-4ba9-acd8-7f690d841209" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 12921, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "aebd405c-3db5-4cb7-993c-2462c7ebcf5d", + "title": "Delete product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/05_deleteProduct.ts", + "file": "/campaigns/sanity/03_productsBO/05_deleteProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Go to catalog' button", + "fullTitle": "BO - Catalog - Products : Delete product Delete product should click on 'Go to catalog' button", + "timedOut": false, + "duration": 841, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_goToCatalogPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "22860562-8ddc-4497-8f8f-54d728b76325", + "parentUUID": "aebd405c-3db5-4cb7-993c-2462c7ebcf5d", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Reference' and check result", + "fullTitle": "BO - Catalog - Products : Delete product Delete product should filter list by 'Reference' and check result", + "timedOut": false, + "duration": 1271, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'reference', newProductData.reference, 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(1);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'reference', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.equal(newProductData.reference);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "04ab271c-3978-4f65-bf5f-1081e125891d", + "parentUUID": "aebd405c-3db5-4cb7-993c-2462c7ebcf5d", + "isHook": false, + "skipped": false + }, + { + "title": "should click on delete product button", + "fullTitle": "BO - Catalog - Products : Delete product Delete product should click on delete product button", + "timedOut": false, + "duration": 268, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnDeleteProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1e9ae50b-5695-4f43-b2b5-61e0191aa552", + "parentUUID": "aebd405c-3db5-4cb7-993c-2462c7ebcf5d", + "isHook": false, + "skipped": false + }, + { + "title": "should delete product", + "fullTitle": "BO - Catalog - Products : Delete product Delete product should delete product", + "timedOut": false, + "duration": 603, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_deleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'deleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnConfirmDialogButton(page)];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal(products_1.default.successfulDeleteMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "23485fd5-e04d-408e-b2d4-e17a67c0f3c0", + "parentUUID": "aebd405c-3db5-4cb7-993c-2462c7ebcf5d", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Delete product Delete product should reset filter", + "timedOut": false, + "duration": 2917, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProduct_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "97af049d-4bc3-4444-a69d-33338b1922e1", + "parentUUID": "aebd405c-3db5-4cb7-993c-2462c7ebcf5d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "22860562-8ddc-4497-8f8f-54d728b76325", + "04ab271c-3978-4f65-bf5f-1081e125891d", + "1e9ae50b-5695-4f43-b2b5-61e0191aa552", + "23485fd5-e04d-408e-b2d4-e17a67c0f3c0", + "97af049d-4bc3-4444-a69d-33338b1922e1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5900, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "2a323cc9-844b-4ee4-8c9d-3d7bbe06d020", + "title": "BO - Catalog - Products : Delete products with bulk actions", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/06_deleteProductsWithBulkActions.ts", + "file": "/campaigns/sanity/03_productsBO/06_deleteProductsWithBulkActions.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Catalog - Products : Delete products with bulk actions\"", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions \"before all\" hook in \"BO - Catalog - Products : Delete products with bulk actions\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "75d0350d-0a03-4b5e-b6c1-20ce38a54926", + "parentUUID": "2a323cc9-844b-4ee4-8c9d-3d7bbe06d020", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Catalog - Products : Delete products with bulk actions\"", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions \"after all\" hook in \"BO - Catalog - Products : Delete products with bulk actions\"", + "timedOut": false, + "duration": 4, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "d5b0faa0-25bc-44f8-a7d9-b1bc905d7d30", + "parentUUID": "2a323cc9-844b-4ee4-8c9d-3d7bbe06d020", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "c12ac739-a24b-46ff-bc51-c2d68f65be02", + "title": "Create first product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/06_deleteProductsWithBulkActions.ts", + "file": "/campaigns/sanity/03_productsBO/06_deleteProductsWithBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should login in BO", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create first product should login in BO", + "timedOut": false, + "duration": 1699, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"loginBO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, loginBO_1.default.loginBO(this, page)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0f44e697-2baa-48e5-ad54-239f1454226f", + "parentUUID": "c12ac739-a24b-46ff-bc51-c2d68f65be02", + "isHook": false, + "skipped": false + }, + { + "title": "should go to 'Catalog > Products' page", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create first product should go to 'Catalog > Products' page", + "timedOut": false, + "duration": 4946, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_goToProductsPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductsPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, dashboard_1.default.goToSubMenu(page, dashboard_1.default.catalogParentLink, dashboard_1.default.productsLink)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeSfToolBar(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2cd78646-1039-4ebe-bfe8-f201effe68c1", + "parentUUID": "c12ac739-a24b-46ff-bc51-c2d68f65be02", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter and get number of products", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create first product should reset filter and get number of products", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_getNumberOfProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'getNumberOfProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a79fe8ea-72c9-470c-aa68-02a871223b1c", + "parentUUID": "c12ac739-a24b-46ff-bc51-c2d68f65be02", + "isHook": false, + "skipped": false + }, + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create first product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 222, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_clickOnNewProductButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "5092ebb6-d94e-4e59-bdee-923102e1531b", + "parentUUID": "c12ac739-a24b-46ff-bc51-c2d68f65be02", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create first product should choose 'Standard product'", + "timedOut": false, + "duration": 860, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_chooseStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.selectProductType(page, firstProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9ebcc45-7474-45c6-b561-45128b2a80ce", + "parentUUID": "c12ac739-a24b-46ff-bc51-c2d68f65be02", + "isHook": false, + "skipped": false + }, + { + "title": "should go to new product page", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create first product should go to new product page", + "timedOut": false, + "duration": 49, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_goToNewProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToNewProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnAddNewProduct(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(add_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d047b38b-bae7-4651-ab20-e759f95c4a22", + "parentUUID": "c12ac739-a24b-46ff-bc51-c2d68f65be02", + "isHook": false, + "skipped": false + }, + { + "title": "should create standard product", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create first product should create standard product", + "timedOut": false, + "duration": 5228, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_createStandardProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createStandardProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, firstProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a0f1c056-0db3-4a78-8731-c49d951a955d", + "parentUUID": "c12ac739-a24b-46ff-bc51-c2d68f65be02", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0f44e697-2baa-48e5-ad54-239f1454226f", + "2cd78646-1039-4ebe-bfe8-f201effe68c1", + "a79fe8ea-72c9-470c-aa68-02a871223b1c", + "5092ebb6-d94e-4e59-bdee-923102e1531b", + "d9ebcc45-7474-45c6-b561-45128b2a80ce", + "d047b38b-bae7-4651-ab20-e759f95c4a22", + "a0f1c056-0db3-4a78-8731-c49d951a955d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 13022, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "0a3bb4fb-e243-457b-bbc8-bbb51a0f8e23", + "title": "Create second product", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/06_deleteProductsWithBulkActions.ts", + "file": "/campaigns/sanity/03_productsBO/06_deleteProductsWithBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'New product' button and check new product modal", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create second product should click on 'New product' button and check new product modal", + "timedOut": false, + "duration": 315, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_clickOnNewProductButton2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnNewProductButton2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.clickOnNewProductButton(page)];\n case 2:\n isModalVisible = _a.sent();\n (0, chai_1.expect)(isModalVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "338ec6e5-c9c2-48f0-9f42-c7daed8982db", + "parentUUID": "0a3bb4fb-e243-457b-bbc8-bbb51a0f8e23", + "isHook": false, + "skipped": false + }, + { + "title": "should choose 'Standard product'", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create second product should choose 'Standard product'", + "timedOut": false, + "duration": 2436, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_chooseStandardProduct2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isIframeVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'chooseStandardProduct2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.chooseProductType(page, secondProductData.type)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.isChooseProductIframeVisible(page)];\n case 3:\n isIframeVisible = _a.sent();\n (0, chai_1.expect)(isIframeVisible).to.eq(false);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "37102b35-acf5-4871-9d0f-063ab9325771", + "parentUUID": "0a3bb4fb-e243-457b-bbc8-bbb51a0f8e23", + "isHook": false, + "skipped": false + }, + { + "title": "should create product", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Create second product should create product", + "timedOut": false, + "duration": 4511, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_createSecondProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var createProductMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'createSecondProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.closeSfToolBar(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, add_1.default.setProduct(page, secondProductData)];\n case 3:\n createProductMessage = _a.sent();\n (0, chai_1.expect)(createProductMessage).to.equal(add_1.default.successfulUpdateMessage);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "11cd50ea-51af-436e-9ef2-d9b30bf70c3b", + "parentUUID": "0a3bb4fb-e243-457b-bbc8-bbb51a0f8e23", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "338ec6e5-c9c2-48f0-9f42-c7daed8982db", + "37102b35-acf5-4871-9d0f-063ab9325771", + "11cd50ea-51af-436e-9ef2-d9b30bf70c3b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7262, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "48a4bc64-09d4-4f40-8406-b8f51c773be9", + "title": "Bulk delete created products", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/03_productsBO/06_deleteProductsWithBulkActions.ts", + "file": "/campaigns/sanity/03_productsBO/06_deleteProductsWithBulkActions.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should click on 'Go to catalog' button", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Bulk delete created products should click on 'Go to catalog' button", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_goToCatalogPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToCatalogPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, add_1.default.goToCatalogPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d9f72350-7146-42b9-a2c1-df3d94f1931a", + "parentUUID": "48a4bc64-09d4-4f40-8406-b8f51c773be9", + "isHook": false, + "skipped": false + }, + { + "title": "should filter list by 'Name' and check result", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Bulk delete created products should filter list by 'Name' and check result", + "timedOut": false, + "duration": 1297, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_filterListByReference\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterFilter, textColumn;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'filterListByReference', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.filterProducts(page, 'product_name', 'toDelete', 'input')];\n case 2:\n _a.sent();\n return [4 /*yield*/, products_1.default.getNumberOfProductsFromList(page)];\n case 3:\n numberOfProductsAfterFilter = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterFilter).to.equal(2);\n return [4 /*yield*/, products_1.default.getTextColumn(page, 'product_name', 1)];\n case 4:\n textColumn = _a.sent();\n (0, chai_1.expect)(textColumn).to.contains('TODELETE');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8ea4842d-90df-440f-9e38-17d43ee250d5", + "parentUUID": "48a4bc64-09d4-4f40-8406-b8f51c773be9", + "isHook": false, + "skipped": false + }, + { + "title": "should select the 2 products", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Bulk delete created products should select the 2 products", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_clickOnDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isBulkDeleteButtonEnabled;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkSelectProducts(page)];\n case 2:\n isBulkDeleteButtonEnabled = _a.sent();\n (0, chai_1.expect)(isBulkDeleteButtonEnabled).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ed5da4fe-d222-42d6-841c-45b3eeea2b35", + "parentUUID": "48a4bc64-09d4-4f40-8406-b8f51c773be9", + "isHook": false, + "skipped": false + }, + { + "title": "should click on bulk actions button", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Bulk delete created products should click on bulk actions button", + "timedOut": false, + "duration": 307, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_clickOnBulkDeleteButton\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'clickOnBulkDeleteButton', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.clickOnBulkActionsProducts(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal('Deleting 2 products');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "175a54b9-047f-4cb5-b638-8b23fe0f4549", + "parentUUID": "48a4bc64-09d4-4f40-8406-b8f51c773be9", + "isHook": false, + "skipped": false + }, + { + "title": "should bulk delete products", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Bulk delete created products should bulk delete products", + "timedOut": false, + "duration": 487, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_bulkDeleteProduct\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var textMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'bulkDeleteProduct', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.bulkActionsProduct(page, 'delete')];\n case 2:\n textMessage = _a.sent();\n (0, chai_1.expect)(textMessage).to.equal('Deleting 2 / 2 products');\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "9cd3f0c1-9dcd-4dab-a588-4ad05d2d0f0b", + "parentUUID": "48a4bc64-09d4-4f40-8406-b8f51c773be9", + "isHook": false, + "skipped": false + }, + { + "title": "should close progress modal", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Bulk delete created products should close progress modal", + "timedOut": false, + "duration": 481, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_closeProgressModal\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isModalNotVisible;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'closeProgressModal', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.closeBulkActionsProgressModal(page, 'delete')];\n case 2:\n isModalNotVisible = _a.sent();\n (0, chai_1.expect)(isModalNotVisible).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "28debda9-cdf0-4e0e-a109-55b6a5a1d303", + "parentUUID": "48a4bc64-09d4-4f40-8406-b8f51c773be9", + "isHook": false, + "skipped": false + }, + { + "title": "should reset filter", + "fullTitle": "BO - Catalog - Products : Delete products with bulk actions Bulk delete created products should reset filter", + "timedOut": false, + "duration": 2895, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_productsBO_deleteProductsWithBulkActions_resetFilter\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProductsAfterReset;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'resetFilter', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, products_1.default.resetAndGetNumberOfLines(page)];\n case 2:\n numberOfProductsAfterReset = _a.sent();\n (0, chai_1.expect)(numberOfProductsAfterReset).to.equal(numberOfProducts);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4528ec76-c124-49f1-bcfb-d2f1bd7d9e7a", + "parentUUID": "48a4bc64-09d4-4f40-8406-b8f51c773be9", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d9f72350-7146-42b9-a2c1-df3d94f1931a", + "8ea4842d-90df-440f-9e38-17d43ee250d5", + "ed5da4fe-d222-42d6-841c-45b3eeea2b35", + "175a54b9-047f-4cb5-b638-8b23fe0f4549", + "9cd3f0c1-9dcd-4dab-a588-4ad05d2d0f0b", + "28debda9-cdf0-4e0e-a109-55b6a5a1d303", + "4528ec76-c124-49f1-bcfb-d2f1bd7d9e7a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6362, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "722539ff-551e-4a6a-a726-78da1798b0b1", + "title": "FO - Catalog : Filter Products by categories in Home page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/04_catalogFO/01_filterProducts.ts", + "file": "/campaigns/sanity/04_catalogFO/01_filterProducts.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Catalog : Filter Products by categories in Home page\"", + "fullTitle": "FO - Catalog : Filter Products by categories in Home page \"before all\" hook in \"FO - Catalog : Filter Products by categories in Home page\"", + "timedOut": false, + "duration": 38, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b3e9b2be-9207-4a16-bb0b-f89f0ea4ccb8", + "parentUUID": "722539ff-551e-4a6a-a726-78da1798b0b1", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Catalog : Filter Products by categories in Home page\"", + "fullTitle": "FO - Catalog : Filter Products by categories in Home page \"after all\" hook in \"FO - Catalog : Filter Products by categories in Home page\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "4f51f0a6-288e-4b64-bc4a-b08c8747feac", + "parentUUID": "722539ff-551e-4a6a-a726-78da1798b0b1", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "1fa2773f-38f4-48b3-aca4-d832cfafcebb", + "title": "Catalog FO: Filter products from catalog", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/04_catalogFO/01_filterProducts.ts", + "file": "/campaigns/sanity/04_catalogFO/01_filterProducts.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Catalog : Filter Products by categories in Home page Catalog FO: Filter products from catalog should open the shop page", + "timedOut": false, + "duration": 596, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_catalogFO_filterProducts_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "31270116-4620-49d9-8b1b-33091338c3ef", + "parentUUID": "1fa2773f-38f4-48b3-aca4-d832cfafcebb", + "isHook": false, + "skipped": false + }, + { + "title": "should check and get the products number", + "fullTitle": "FO - Catalog : Filter Products by categories in Home page Catalog FO: Filter products from catalog should check and get the products number", + "timedOut": false, + "duration": 1021, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_catalogFO_filterProducts_checkNumberOfProducts\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProducts', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToAllProductsPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductsNumber(page)];\n case 3:\n allProductsNumber = _a.sent();\n (0, chai_1.expect)(allProductsNumber).to.be.above(0);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "2573e0aa-b33c-43ef-b8f7-91072e2d7e3f", + "parentUUID": "1fa2773f-38f4-48b3-aca4-d832cfafcebb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products by the category 'Accessories' and check result", + "fullTitle": "FO - Catalog : Filter Products by categories in Home page Catalog FO: Filter products from catalog should filter products by the category 'Accessories' and check result", + "timedOut": false, + "duration": 909, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_catalogFO_filterProducts_FilterProductByCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'FilterProductByCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToCategory(page, categories_1.default.accessories.id)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(categories_1.default.accessories.name);\n return [4 /*yield*/, home_1.homePage.getProductsNumber(page)];\n case 4:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.below(allProductsNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "aa6d201b-2a91-48f7-bd38-05018ecd8d5e", + "parentUUID": "1fa2773f-38f4-48b3-aca4-d832cfafcebb", + "isHook": false, + "skipped": false + }, + { + "title": "should filter products by the subcategory 'Stationery' and check result", + "fullTitle": "FO - Catalog : Filter Products by categories in Home page Catalog FO: Filter products from catalog should filter products by the subcategory 'Stationery' and check result", + "timedOut": false, + "duration": 1123, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_catalogFO_filterProducts_FilterProductBySubCategory\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var numberOfProducts;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'FilterProductBySubCategory', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.reloadPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToSubCategory(page, categories_1.default.accessories.id, categories_1.default.stationery.id)];\n case 3:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getProductsNumber(page)];\n case 4:\n numberOfProducts = _a.sent();\n (0, chai_1.expect)(numberOfProducts).to.be.below(allProductsNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4707dbb9-9172-4615-b811-50009674bb09", + "parentUUID": "1fa2773f-38f4-48b3-aca4-d832cfafcebb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "31270116-4620-49d9-8b1b-33091338c3ef", + "2573e0aa-b33c-43ef-b8f7-91072e2d7e3f", + "aa6d201b-2a91-48f7-bd38-05018ecd8d5e", + "4707dbb9-9172-4615-b811-50009674bb09" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 3649, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "abec3bee-3360-47f6-850e-2c95cc68a6e5", + "title": "FO - Catalog : Check the Product page", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/04_catalogFO/02_checkProduct.ts", + "file": "/campaigns/sanity/04_catalogFO/02_checkProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Catalog : Check the Product page\"", + "fullTitle": "FO - Catalog : Check the Product page \"before all\" hook in \"FO - Catalog : Check the Product page\"", + "timedOut": false, + "duration": 29, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "58f76e56-0b3f-41bb-9bbf-70a3b4429787", + "parentUUID": "abec3bee-3360-47f6-850e-2c95cc68a6e5", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Catalog : Check the Product page\"", + "fullTitle": "FO - Catalog : Check the Product page \"after all\" hook in \"FO - Catalog : Check the Product page\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "5ba63ab0-736f-4108-86c6-faa8014044f3", + "parentUUID": "abec3bee-3360-47f6-850e-2c95cc68a6e5", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "ad07d65a-6d24-4fa8-9096-6f04a9166664", + "title": "Catalog FO: Check products from catalog", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/04_catalogFO/02_checkProduct.ts", + "file": "/campaigns/sanity/04_catalogFO/02_checkProduct.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Catalog : Check the Product page Catalog FO: Check products from catalog should open the shop page", + "timedOut": false, + "duration": 443, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_catalogFO_checkProduct_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "40bfea79-3555-4889-a50c-d9e7f4c4592f", + "parentUUID": "ad07d65a-6d24-4fa8-9096-6f04a9166664", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "FO - Catalog : Check the Product page Catalog FO: Check products from catalog should go to the first product page", + "timedOut": false, + "duration": 802, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_catalogFO_checkProduct_goToProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "b414a91b-47cb-43ab-9db5-ed00b92c618b", + "parentUUID": "ad07d65a-6d24-4fa8-9096-6f04a9166664", + "isHook": false, + "skipped": false + }, + { + "title": "should check the product page", + "fullTitle": "FO - Catalog : Check the Product page Catalog FO: Check products from catalog should check the product page", + "timedOut": false, + "duration": 39, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_catalogFO_checkProduct_checkProductPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.getProductInformation(page)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_1.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.description).to.contains(products_1.default.demo_1.description),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "edd49a41-9b03-4ec0-97e3-6b09a9bc7d22", + "parentUUID": "ad07d65a-6d24-4fa8-9096-6f04a9166664", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "40bfea79-3555-4889-a50c-d9e7f4c4592f", + "b414a91b-47cb-43ab-9db5-ed00b92c618b", + "edd49a41-9b03-4ec0-97e3-6b09a9bc7d22" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1284, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "13ab322a-de5e-48cf-979c-f95d462df3e8", + "title": "FO - Cart : Check Cart in FO", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/05_cartFO/01_editCheckCart.ts", + "file": "/campaigns/sanity/05_cartFO/01_editCheckCart.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"FO - Cart : Check Cart in FO\"", + "fullTitle": "FO - Cart : Check Cart in FO \"before all\" hook in \"FO - Cart : Check Cart in FO\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "600dbdbe-bfd6-4fa9-ab1b-73e186fb2855", + "parentUUID": "13ab322a-de5e-48cf-979c-f95d462df3e8", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"FO - Cart : Check Cart in FO\"", + "fullTitle": "FO - Cart : Check Cart in FO \"after all\" hook in \"FO - Cart : Check Cart in FO\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "90c0cdb7-9f01-4eb6-8701-14436ad988aa", + "parentUUID": "13ab322a-de5e-48cf-979c-f95d462df3e8", + "isHook": true, + "skipped": false + } + ], + "tests": [], + "suites": [ + { + "uuid": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "title": "Cart FO: edit check cart", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/05_cartFO/01_editCheckCart.ts", + "file": "/campaigns/sanity/05_cartFO/01_editCheckCart.ts", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should open the shop page", + "timedOut": false, + "duration": 440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "ef019580-9f2c-49e0-9535-513a2ccc2577", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the first product page", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should go to the first product page", + "timedOut": false, + "duration": 800, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_goToProductPage1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_1.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a821b320-0229-4e33-bf3f-c2804acc56bc", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and check that the number of products was updated in cart header", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should add product to cart and check that the number of products was updated in cart header", + "timedOut": false, + "duration": 5513, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_addProductToCart1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(1);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d7fba8d6-8295-4291-9a06-82c557d6225b", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the home page", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should go to the home page", + "timedOut": false, + "duration": 245, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomePage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n isHomePage = _a.sent();\n (0, chai_1.expect)(isHomePage).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8791fdbe-4351-420c-bf52-6356de41babc", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should go to the second product page", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should go to the second product page", + "timedOut": false, + "duration": 856, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_goToProductPage2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToProductPage2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToProductPage(page, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, product_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.contains(products_1.default.demo_3.name);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4b5966e0-0309-4854-8ba2-d3d919de05ae", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should add product to cart and check that the number of products was updated in cart header", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should add product to cart and check that the number of products was updated in cart header", + "timedOut": false, + "duration": 5680, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_addProductToCart2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var notificationsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, product_1.default.addProductToTheCart(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.getCartNotificationsNumber(page)];\n case 3:\n notificationsNumber = _a.sent();\n (0, chai_1.expect)(notificationsNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "e074dd95-8b09-4ae9-88cc-c01748b03b64", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should check the first product details", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should check the first product details", + "timedOut": false, + "duration": 51, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_checkProductDetail1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductDetail1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductDetail(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_1.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "d3bf11b3-906a-4446-967a-1fd4d3328649", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should check the second product details", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should check the second product details", + "timedOut": false, + "duration": 44, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_checkProductDetail2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkProductDetail2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductDetail(page, 2)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_3.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_3.finalPrice),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "bee3c8f3-c2c0-4c50-b99c-0fd1f183fa52", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should get the ATI price", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should get the ATI price", + "timedOut": false, + "duration": 2008, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_checkTotalATI\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkTotalATI', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 2:\n // getNumberFromText is used to get the price ATI\n totalATI = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fe057b26-9fbe-4dfa-a15d-c9f9fdc2883c", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should get the product number and check that is equal to 2", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should get the product number and check that is equal to 2", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_checkNumberOfProductsInCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkNumberOfProductsInCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductsNumber(page)];\n case 2:\n // getNumberFromText is used to get the products number\n itemsNumber = _a.sent();\n (0, chai_1.expect)(itemsNumber).to.be.equal(2);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "fad0d583-8e32-4acd-ab07-fe9aaa2d1a7b", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the quantity of the first product ordered", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should edit the quantity of the first product ordered", + "timedOut": false, + "duration": 2085, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_editProductQuantity1\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice, productsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductQuantity1', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 1, 3)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 3:\n totalPrice = _a.sent();\n (0, chai_1.expect)(totalPrice).to.be.above(totalATI);\n return [4 /*yield*/, cart_1.cartPage.getProductsNumber(page)];\n case 4:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.be.above(itemsNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "850fbff9-6067-4835-9ad6-b9477d5edc27", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + }, + { + "title": "should edit the quantity of the second product ordered", + "fullTitle": "FO - Cart : Check Cart in FO Cart FO: edit check cart should edit the quantity of the second product ordered", + "timedOut": false, + "duration": 4074, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_cartFO_editCheckCart_editProductQuantity2\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var totalPrice, productsNumber;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'editProductQuantity2', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.editProductQuantity(page, 2, 2)];\n case 2:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getATIPrice(page)];\n case 3:\n totalPrice = _a.sent();\n (0, chai_1.expect)(totalPrice).to.be.above(totalATI);\n return [4 /*yield*/, cart_1.cartPage.getCartNotificationsNumber(page)];\n case 4:\n productsNumber = _a.sent();\n (0, chai_1.expect)(productsNumber).to.be.above(itemsNumber);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a6a0376b-6c18-4cad-8598-819cf25d0fb5", + "parentUUID": "be19d4d6-aeec-41cf-b1a0-c4b1bb43be96", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ef019580-9f2c-49e0-9535-513a2ccc2577", + "a821b320-0229-4e33-bf3f-c2804acc56bc", + "d7fba8d6-8295-4291-9a06-82c557d6225b", + "8791fdbe-4351-420c-bf52-6356de41babc", + "4b5966e0-0309-4854-8ba2-d3d919de05ae", + "e074dd95-8b09-4ae9-88cc-c01748b03b64", + "d3bf11b3-906a-4446-967a-1fd4d3328649", + "bee3c8f3-c2c0-4c50-b99c-0fd1f183fa52", + "fe057b26-9fbe-4dfa-a15d-c9f9fdc2883c", + "fad0d583-8e32-4acd-ab07-fe9aaa2d1a7b", + "850fbff9-6067-4835-9ad6-b9477d5edc27", + "a6a0376b-6c18-4cad-8598-819cf25d0fb5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 21800, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 0 + }, + { + "uuid": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "title": "BO - Checkout : Order a product and check order confirmation", + "fullFile": "/home/runner/work/PrestaShop/PrestaShop/tests/UI/campaigns/sanity/06_checkoutFO/01_orderProduct.ts", + "file": "/campaigns/sanity/06_checkoutFO/01_orderProduct.ts", + "beforeHooks": [ + { + "title": "\"before all\" hook in \"BO - Checkout : Order a product and check order confirmation\"", + "fullTitle": "BO - Checkout : Order a product and check order confirmation \"before all\" hook in \"BO - Checkout : Order a product and check order confirmation\"", + "timedOut": false, + "duration": 30, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.createBrowserContext(this.browser)];\n case 1:\n browserContext = _a.sent();\n return [4 /*yield*/, helpers_1.default.newTab(browserContext)];\n case 2:\n page = _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "3c13d1d5-fa69-4e54-91cc-98e48d31d3e1", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": true, + "skipped": false + } + ], + "afterHooks": [ + { + "title": "\"after all\" hook in \"BO - Checkout : Order a product and check order confirmation\"", + "fullTitle": "BO - Checkout : Order a product and check order confirmation \"after all\" hook in \"BO - Checkout : Order a product and check order confirmation\"", + "timedOut": false, + "duration": 5, + "state": null, + "speed": null, + "pass": false, + "fail": false, + "pending": false, + "context": null, + "code": "return __awaiter(void 0, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, helpers_1.default.closeBrowserContext(browserContext)];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });", + "err": {}, + "uuid": "83954b2e-c386-49f6-868e-c5274e335855", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": true, + "skipped": false + } + ], + "tests": [ + { + "title": "should open the shop page", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should open the shop page", + "timedOut": false, + "duration": 460, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_goToShopFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToShopFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goTo(page, global.FO.URL)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 3:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "490b20c0-1c76-434b-8416-39419612d90a", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to login page", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should go to login page", + "timedOut": false, + "duration": 739, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_goToLoginPage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToLoginPage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.goToLoginPage(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(login_1.loginPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "4c46a4ae-3115-4f1c-9ea0-82e31f51f48c", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should sign In in FO with default account", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should sign In in FO with default account", + "timedOut": false, + "duration": 676, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_loginFO\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var connected;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'loginFO', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, login_1.loginPage.customerLogin(page, customers_1.default.johnDoe)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isCustomerConnected(page)];\n case 3:\n connected = _a.sent();\n (0, chai_1.expect)(connected, 'Customer is not connected in FO').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "7c1a5d17-3c3f-447b-bacf-b05887969798", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should go to home page", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should go to home page", + "timedOut": false, + "duration": 18, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_goToHomePage\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isHomepage, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToHomePage', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 2:\n isHomepage = _a.sent();\n if (!!isHomepage) return [3 /*break*/, 4];\n return [4 /*yield*/, home_1.homePage.goToHomePage(page)];\n case 3:\n _a.sent();\n _a.label = 4;\n case 4: return [4 /*yield*/, home_1.homePage.isHomePage(page)];\n case 5:\n result = _a.sent();\n (0, chai_1.expect)(result).to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "a71ea46d-b28a-43fb-9f7a-93e36210ff54", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should add first product to cart and Proceed to checkout", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should add first product to cart and Proceed to checkout", + "timedOut": false, + "duration": 2147, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_addProductToCart\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'addProductToCart', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.addProductToCartByQuickView(page, 1, 1)];\n case 2:\n _a.sent();\n return [4 /*yield*/, home_1.homePage.proceedToCheckout(page)];\n case 3:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getPageTitle(page)];\n case 4:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(cart_1.cartPage.pageTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "c739948e-6555-4f04-9d0d-bb5d24c75e95", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should check the cart details", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should check the cart details", + "timedOut": false, + "duration": 57, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_checkCartDetails\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkCartDetails', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.getProductDetail(page, 1)];\n case 2:\n result = _a.sent();\n return [4 /*yield*/, Promise.all([\n (0, chai_1.expect)(result.name).to.equal(products_1.default.demo_1.name),\n (0, chai_1.expect)(result.price).to.equal(products_1.default.demo_1.finalPrice),\n (0, chai_1.expect)(result.quantity).to.equal(1),\n ])];\n case 3:\n _a.sent();\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "8510f859-33d8-4438-8db9-4b85a64cc134", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should proceed to checkout and check Step Address", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should proceed to checkout and check Step Address", + "timedOut": false, + "duration": 267, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_checkAddressStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isCheckoutPage, isStepPersonalInformationComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkAddressStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, cart_1.cartPage.clickOnProceedToCheckout(page)];\n case 2:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.isCheckoutPage(page)];\n case 3:\n isCheckoutPage = _a.sent();\n (0, chai_1.expect)(isCheckoutPage, 'Browser is not in checkout Page').to.eq(true);\n return [4 /*yield*/, checkout_1.default.isStepCompleted(page, checkout_1.default.personalInformationStepForm)];\n case 4:\n isStepPersonalInformationComplete = _a.sent();\n (0, chai_1.expect)(isStepPersonalInformationComplete, 'Step Personal information is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "1300fdba-2845-4a59-a1f7-ebf1e1e33a6b", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Address and go to Delivery Step", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should validate Step Address and go to Delivery Step", + "timedOut": false, + "duration": 809, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_checkDeliveryStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepAddressComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'checkDeliveryStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToDeliveryStep(page)];\n case 2:\n isStepAddressComplete = _a.sent();\n (0, chai_1.expect)(isStepAddressComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "72149fd3-77af-4a55-92a7-7e9279814d0e", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should validate Step Delivery and go to Payment Step", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should validate Step Delivery and go to Payment Step", + "timedOut": false, + "duration": 319, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_goToPaymentStep\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var isStepDeliveryComplete;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'goToPaymentStep', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.goToPaymentStep(page)];\n case 2:\n isStepDeliveryComplete = _a.sent();\n (0, chai_1.expect)(isStepDeliveryComplete, 'Step Address is not complete').to.eq(true);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "0e43c90d-05e2-4fd4-bde0-e01ac063d07d", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + }, + { + "title": "should Pay by back wire and confirm order", + "fullTitle": "BO - Checkout : Order a product and check order confirmation should Pay by back wire and confirm order", + "timedOut": false, + "duration": 1529, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": "{\n \"title\": \"testIdentifier\",\n \"value\": \"sanity_checkoutFO_orderProduct_confirmOrder\"\n}", + "code": "return __awaiter(this, void 0, void 0, function () {\n var pageTitle, cardTitle;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, testContext_1.default.addContextItem(this, 'testIdentifier', 'confirmOrder', baseContext)];\n case 1:\n _a.sent();\n return [4 /*yield*/, checkout_1.default.choosePaymentAndOrder(page, paymentMethods_1.default.wirePayment.moduleName)];\n case 2:\n _a.sent();\n return [4 /*yield*/, orderConfirmation_1.default.getPageTitle(page)];\n case 3:\n pageTitle = _a.sent();\n (0, chai_1.expect)(pageTitle).to.equal(orderConfirmation_1.default.pageTitle);\n return [4 /*yield*/, orderConfirmation_1.default.getOrderConfirmationCardTitle(page)];\n case 4:\n cardTitle = _a.sent();\n (0, chai_1.expect)(cardTitle).to.contains(orderConfirmation_1.default.orderConfirmationCardTitle);\n return [2 /*return*/];\n }\n });\n});", + "err": {}, + "uuid": "de7ecd44-4ca1-43cc-9bcd-76f3d2c14a65", + "parentUUID": "ac40d4e4-75f6-4be3-aa05-f9f71d17278b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "490b20c0-1c76-434b-8416-39419612d90a", + "4c46a4ae-3115-4f1c-9ea0-82e31f51f48c", + "7c1a5d17-3c3f-447b-bacf-b05887969798", + "a71ea46d-b28a-43fb-9f7a-93e36210ff54", + "c739948e-6555-4f04-9d0d-bb5d24c75e95", + "8510f859-33d8-4438-8db9-4b85a64cc134", + "1300fdba-2845-4a59-a1f7-ebf1e1e33a6b", + "72149fd3-77af-4a55-92a7-7e9279814d0e", + "0e43c90d-05e2-4fd4-bde0-e01ac063d07d", + "de7ecd44-4ca1-43cc-9bcd-76f3d2c14a65" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 7021, + "root": false, + "rootEmpty": false, + "_timeout": 0 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 0 + } + ], + "meta": { + "mocha": { + "version": "10.2.0" + }, + "mochawesome": { + "options": { + "quiet": false, + "reportFilename": "mochawesome", + "saveHtml": true, + "saveJson": true, + "consoleReporter": "spec", + "useInlineDiffs": false, + "code": true + }, + "version": "7.1.3" + }, + "marge": { + "options": null, + "version": "6.2.0" + } + } +} \ No newline at end of file diff --git a/tests/resources/reports/autoupgrade_2024-01-30-develop.json b/tests/resources/reports/autoupgrade_2024-01-30-develop.json new file mode 100644 index 00000000..64500bb0 --- /dev/null +++ b/tests/resources/reports/autoupgrade_2024-01-30-develop.json @@ -0,0 +1 @@ +{"stats":{"suites":1,"tests":2,"passes":0,"pending":0,"failures":2,"testsRegistered":2,"other":0,"hasOther":0,"skipped":0,"hasSkipped":0,"start":"2024-01-30T00:09:47.000+00:00","end":"2024-01-30T00:11:51.000+00:00","duration":124000},"results":[{"uuid":"65b892c16840d","title":"Upgrade to branch develop","fullFile":"","file":"","tests":[],"suites":[{"uuid":"65b892c16840d","title":"[dev] Upgrade to branch develop","file":"","tests":[{"title":"[dev] Upgrade from 8.0.4 to develop","fullTitle":"[dev] Upgrade from 8.0.4 to develop","timedOut":false,"duration":124000,"state":"failed","pass":false,"fail":true,"pending":false,"context":"{\"title\": \"testIdentifier\",\"value\": \"[dev] Upgrade from 8.0.4 to develop\"}","uuid":"65b892c1683e5","parentUUID":"65b892c16840d","isHook":false,"skipped":false}],"suites":[],"passes":[],"failures":["65b892c1683e5"],"pending":[],"skipped":[],"duration":124000,"root":false,"rootEmpty":false}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":124000,"root":true,"rootEmpty":true},{"uuid":"65b892c168416","title":"Upgrade to branch develop","fullFile":"","file":"","tests":[],"suites":[{"uuid":"65b892c168416","title":"[master] Upgrade to branch develop","file":"","tests":[{"title":"[master] Upgrade from 8.0.4 to develop","fullTitle":"[master] Upgrade from 8.0.4 to develop","timedOut":false,"duration":21607000,"state":"failed","pass":false,"fail":true,"pending":false,"context":"{\"title\": \"testIdentifier\",\"value\": \"[master] Upgrade from 8.0.4 to develop\"}","uuid":"65b892c16840a","parentUUID":"65b892c168416","isHook":false,"skipped":false}],"suites":[],"passes":[],"failures":["65b892c16840a"],"pending":[],"skipped":[],"duration":21607000,"root":false,"rootEmpty":false}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":124000,"root":true,"rootEmpty":true}]} \ No newline at end of file